diff --git a/frontend/167.28293ff5a3323208.js b/frontend/167.08268ac8336448ff.js similarity index 89% rename from frontend/167.28293ff5a3323208.js rename to frontend/167.08268ac8336448ff.js index 5285165e..ac303e16 100644 --- a/frontend/167.28293ff5a3323208.js +++ b/frontend/167.08268ac8336448ff.js @@ -1 +1 @@ -"use strict";(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[167],{9676:(dp,Lt,g)=>{g.r(Lt),g.d(Lt,{ECLModule:()=>mp});var u=g(6895),b=g(9116),Vt=g(8878),t=g(4650),h=g(1576),H=g(3162);function zt(i,o){1&i&&t._UZ(0,"mat-progress-bar",3)}let Tt=(()=>{var i;class o{constructor(e){this.router=e,this.loading=!1,this.router.events.subscribe(a=>{switch(!0){case a instanceof b.OD:this.loading=!0;break;case a instanceof b.m2:case a instanceof b.gk:case a instanceof b.Q3:this.loading=!1}})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(b.F0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-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(e,a){1&e&&(t.TgZ(0,"div",0),t.YNc(1,zt,1,0,"mat-progress-bar",1),t._UZ(2,"router-outlet",null,2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",a.loading))},dependencies:[u.O5,h.xw,h.Wh,h.yH,H.pW,b.lC],data:{animation:[Vt.g]}}),o})();var m=g(7579),_=g(2722),lt=g(1365),vt=g(3396),L=g(2687),l=g(7731),f=g(2501),R=g(5043),E=g(9653),M=g(62),I=g(2216),Z=g(5829),F=g(4859),T=g(3546),Zt=g(782),rt=g(7392),ct=g(8255),q=g(3848);const St=function(i){return{backgroundColor:i}};function Gt(i,o){if(1&i&&t._UZ(0,"span",6),2&i){const n=t.oxw();t.Q6J("ngStyle",t.VKq(1,St,null==n.information?null:n.information.color))}}function Wt(i,o){if(1&i&&(t.TgZ(0,"div")(1,"h4",1),t._uU(2,"Color"),t.qZA(),t.TgZ(3,"div",2),t._UZ(4,"span",7),t._uU(5),t.ALo(6,"uppercase"),t.qZA()()),2&i){const n=t.oxw();t.xp6(4),t.Q6J("ngStyle",t.VKq(4,St,null==n.information?null:n.information.color)),t.xp6(1),t.hij(" ",t.lcZ(6,2,null==n.information?null:n.information.color)," ")}}function Kt(i,o){if(1&i&&(t.TgZ(0,"span",2),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(n)}}let Xt=(()=>{var i;class o{constructor(e){this.commonService=e,this.chains=[""]}ngOnChanges(){this.chains=[],this.chains.push("Bitcoin "+(this.information.network?this.commonService.titleCase(this.information.network):"Testnet"))}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(M.v))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},features:[t.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(e,a){1&e&&(t.TgZ(0,"div",0)(1,"div")(2,"h4",1),t._uU(3,"Alias"),t.qZA(),t.TgZ(4,"div",2),t._uU(5),t.YNc(6,Gt,1,3,"span",3),t.qZA()(),t.YNc(7,Wt,7,6,"div",4),t.TgZ(8,"div")(9,"h4",1),t._uU(10,"Implementation"),t.qZA(),t.TgZ(11,"div",2),t._uU(12),t.qZA()(),t.TgZ(13,"div")(14,"h4",1),t._uU(15,"Chain"),t.qZA(),t.YNc(16,Kt,2,1,"span",5),t.qZA()()),2&e&&(t.xp6(5),t.hij(" ",null==a.information?null:a.information.alias," "),t.xp6(1),t.Q6J("ngIf",!a.showColorFieldSeparately),t.xp6(1),t.Q6J("ngIf",a.showColorFieldSeparately),t.xp6(5),t.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):""),t.xp6(4),t.Q6J("ngForOf",a.chains))},dependencies:[u.sg,u.O5,u.PC,h.xw,h.Wh,h.yH,Z.Zl,u.gd]}),o})();function $t(i,o){if(1&i&&(t.TgZ(0,"div",2)(1,"div")(2,"h4",3),t._uU(3,"Lightning"),t.qZA(),t.TgZ(4,"div",4),t._uU(5),t.ALo(6,"number"),t.qZA(),t._UZ(7,"mat-progress-bar",5),t.qZA(),t.TgZ(8,"div")(9,"h4",3),t._uU(10,"On-chain"),t.qZA(),t.TgZ(11,"div",4),t._uU(12),t.ALo(13,"number"),t.qZA(),t._UZ(14,"mat-progress-bar",5),t.qZA(),t.TgZ(15,"div")(16,"h4",3),t._uU(17,"Total"),t.qZA(),t.TgZ(18,"div",4),t._uU(19),t.ALo(20,"number"),t.qZA()()()),2&i){const n=t.oxw();t.xp6(5),t.hij("",t.lcZ(6,5,n.balances.lightning)," Sats"),t.xp6(2),t.s9C("value",n.balances.lightning/n.balances.total*100),t.xp6(5),t.hij("",t.lcZ(13,7,n.balances.onchain)," Sats"),t.xp6(2),t.s9C("value",n.balances.onchain/n.balances.total*100),t.xp6(5),t.hij("",t.lcZ(20,9,n.balances.total)," Sats")}}function jt(i,o){if(1&i&&(t.TgZ(0,"div",6)(1,"p"),t._uU(2),t.qZA()()),2&i){const n=t.oxw();t.xp6(2),t.Oqu(n.errorMessage)}}let te=(()=>{var i;class o{constructor(){this.balances={onchain:0,lightning:0,total:0}}}return(i=o).\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-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(e,a){if(1&e&&(t.YNc(0,$t,21,11,"div",0),t.YNc(1,jt,3,1,"ng-template",null,1,t.W1O)),2&e){const s=t.MAs(2);t.Q6J("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",s)}},dependencies:[u.O5,h.xw,h.Wh,h.yH,H.pW,u.JJ]}),o})();function ee(i,o){if(1&i&&(t.TgZ(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),t._uU(4,"Daily"),t.qZA(),t.TgZ(5,"div",5),t._uU(6),t.ALo(7,"number"),t.qZA()(),t.TgZ(8,"div")(9,"h4",4),t._uU(10,"Weekly"),t.qZA(),t.TgZ(11,"div",5),t._uU(12),t.ALo(13,"number"),t.qZA()(),t.TgZ(14,"div")(15,"h4",4),t._uU(16,"Monthly"),t.qZA(),t.TgZ(17,"div",5),t._uU(18),t.ALo(19,"number"),t.qZA()()(),t.TgZ(20,"div",3)(21,"div")(22,"h4",4),t._uU(23,"Transactions"),t.qZA(),t.TgZ(24,"div",5),t._uU(25),t.ALo(26,"number"),t.qZA()(),t.TgZ(27,"div")(28,"h4",4),t._uU(29,"Transactions"),t.qZA(),t.TgZ(30,"div",5),t._uU(31),t.ALo(32,"number"),t.qZA()(),t.TgZ(33,"div")(34,"h4",4),t._uU(35,"Transactions"),t.qZA(),t.TgZ(36,"div",5),t._uU(37),t.ALo(38,"number"),t.qZA()()()()),2&i){const n=t.oxw();t.xp6(6),t.hij("",t.lcZ(7,6,null==n.fees?null:n.fees.daily_fee)," Sats"),t.xp6(6),t.hij("",t.lcZ(13,8,null==n.fees?null:n.fees.weekly_fee)," Sats"),t.xp6(6),t.hij("",t.lcZ(19,10,null==n.fees?null:n.fees.monthly_fee)," Sats"),t.xp6(7),t.Oqu(t.lcZ(26,12,null==n.fees?null:n.fees.daily_txs)),t.xp6(6),t.Oqu(t.lcZ(32,14,null==n.fees?null:n.fees.weekly_txs)),t.xp6(6),t.Oqu(t.lcZ(38,16,null==n.fees?null:n.fees.monthly_txs))}}function ne(i,o){if(1&i&&(t.TgZ(0,"div",6)(1,"p"),t._uU(2),t.qZA()()),2&i){const n=t.oxw();t.xp6(2),t.Oqu(n.errorMessage)}}let ie=(()=>{var i;class o{constructor(){this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100}ngOnChanges(){if(this.fees?.monthly_fee){this.totalFees=[{name:"Monthly",value:this.fees.monthly_fee},{name:"Weekly",value:this.fees.weekly_fee||0},{name:"Daily ",value:this.fees.daily_fee||0}];const a=10**(Math.ceil(Math.log(this.fees.monthly_fee+1)/Math.LN10)-1);this.maxFeeValue=Math.ceil(this.fees.monthly_fee/a)*a/5||100,Object.assign(this,this.totalFees)}else this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100,Object.assign(this,this.totalFees)}}return(i=o).\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-fee-info"]],inputs:{fees:"fees",errorMessage:"errorMessage"},features:[t.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"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,a){if(1&e&&(t.YNc(0,ee,39,18,"div",0),t.YNc(1,ne,3,1,"ng-template",null,1,t.W1O)),2&e){const s=t.MAs(2);t.Q6J("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",s)}},dependencies:[u.O5,h.xw,h.Wh,h.yH,u.JJ]}),o})();function ae(i,o){if(1&i&&(t.TgZ(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),t._uU(4,"Active"),t.qZA(),t.TgZ(5,"div",5),t._UZ(6,"span",6),t._uU(7),t.ALo(8,"number"),t.qZA()(),t.TgZ(9,"div")(10,"h4",4),t._uU(11,"Pending"),t.qZA(),t.TgZ(12,"div",5),t._UZ(13,"span",7),t._uU(14),t.ALo(15,"number"),t.qZA()(),t.TgZ(16,"div")(17,"h4",4),t._uU(18,"Inactive"),t.qZA(),t.TgZ(19,"div",5),t._UZ(20,"span",8),t._uU(21),t.ALo(22,"number"),t.qZA()()(),t.TgZ(23,"div",3)(24,"div")(25,"h4",4),t._uU(26,"Capacity"),t.qZA(),t.TgZ(27,"div",5),t._uU(28),t.ALo(29,"number"),t.qZA()(),t.TgZ(30,"div")(31,"h4",4),t._uU(32,"Capacity"),t.qZA(),t.TgZ(33,"div",5),t._uU(34),t.ALo(35,"number"),t.qZA()(),t.TgZ(36,"div")(37,"h4",4),t._uU(38,"Capacity"),t.qZA(),t.TgZ(39,"div",5),t._uU(40),t.ALo(41,"number"),t.qZA()()()()),2&i){const n=t.oxw();t.xp6(7),t.Oqu(t.lcZ(8,6,(null==n.channelsStatus.active?null:n.channelsStatus.active.channels)||0)),t.xp6(7),t.Oqu(t.lcZ(15,8,(null==n.channelsStatus.pending?null:n.channelsStatus.pending.channels)||0)),t.xp6(7),t.Oqu(t.lcZ(22,10,(null==n.channelsStatus.inactive?null:n.channelsStatus.inactive.channels)||0)),t.xp6(7),t.hij("",t.lcZ(29,12,(null==n.channelsStatus.active?null:n.channelsStatus.active.capacity)||0)," Sats"),t.xp6(6),t.hij("",t.lcZ(35,14,(null==n.channelsStatus.pending?null:n.channelsStatus.pending.capacity)||0)," Sats"),t.xp6(6),t.hij("",t.lcZ(41,16,(null==n.channelsStatus.inactive?null:n.channelsStatus.inactive.capacity)||0)," Sats")}}function oe(i,o){if(1&i&&(t.TgZ(0,"div",9)(1,"p"),t._uU(2),t.qZA()()),2&i){const n=t.oxw();t.xp6(2),t.Oqu(n.errorMessage)}}let se=(()=>{var i;class o{constructor(){this.channelsStatus={}}}return(i=o).\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-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(e,a){if(1&e&&(t.YNc(0,ae,42,18,"div",0),t.YNc(1,oe,3,1,"ng-template",null,1,t.W1O)),2&e){const s=t.MAs(2);t.Q6J("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",s)}},dependencies:[u.O5,h.xw,h.Wh,h.yH,u.JJ]}),o})();var C=g(9549),X=g(4850),W=g(266),P=g(6839);const le=function(){return["../connections/channels/open"]},re=function(i,o){return{filterColumn:i,filterValue:o}};function ce(i,o){if(1&i&&(t.TgZ(0,"div",19)(1,"a",20),t._uU(2),t.ALo(3,"slice"),t.qZA(),t.TgZ(4,"div",6)(5,"mat-hint",21)(6,"strong",8),t._uU(7,"Local:"),t.qZA(),t._uU(8),t.ALo(9,"number"),t.qZA(),t.TgZ(10,"mat-hint",22),t._UZ(11,"fa-icon",23),t._uU(12),t.ALo(13,"number"),t.qZA(),t.TgZ(14,"mat-hint",24)(15,"strong",8),t._uU(16,"Remote:"),t.qZA(),t._uU(17),t.ALo(18,"number"),t.qZA()(),t._UZ(19,"mat-progress-bar",25),t.qZA()),2&i){const n=o.$implicit,e=t.oxw(3);t.xp6(1),t.s9C("matTooltip",n.alias||n.shortChannelId),t.s9C("matTooltipDisabled",(n.alias||n.shortChannelId).length<26),t.Q6J("routerLink",t.DdM(23,le))("state",t.WLB(24,re,n.alias?"alias":"shortChannelId",n.alias||n.shortChannelId)),t.xp6(1),t.AsE(" ",t.Dn7(3,11,(null==n?null:n.alias)||(null==n?null:n.shortChannelId),0,24),"",((null==n?null:n.alias)||(null==n?null:n.shortChannelId)).length>25?"...":""," "),t.xp6(6),t.hij("",t.xi3(9,15,(null==n?null:n.toLocal)||0,"1.0-0")," Sats"),t.xp6(3),t.Q6J("icon",e.faBalanceScale),t.xp6(1),t.hij(" (",t.lcZ(13,18,(null==n?null:n.balancedness)||0),") "),t.xp6(5),t.hij("",t.xi3(18,20,(null==n?null:n.toRemote)||0,"1.0-0")," Sats"),t.xp6(2),t.s9C("value",n.toLocal&&n.toLocal>0?+n.toLocal/(+n.toLocal+ +n.toRemote)*100:0)}}function ue(i,o){if(1&i&&(t.TgZ(0,"div",17),t.YNc(1,ce,20,27,"div",18),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",n.allChannels)}}function pe(i,o){if(1&i&&(t.TgZ(0,"div",3)(1,"div",4)(2,"span",5),t._uU(3,"Total Capacity"),t.qZA(),t.TgZ(4,"div",6)(5,"mat-hint",7)(6,"strong",8),t._uU(7,"Local:"),t.qZA(),t._uU(8),t.ALo(9,"number"),t.qZA(),t.TgZ(10,"mat-hint",9),t._UZ(11,"fa-icon",10),t._uU(12),t.ALo(13,"number"),t.qZA(),t.TgZ(14,"mat-hint",11)(15,"strong",8),t._uU(16,"Remote:"),t.qZA(),t._uU(17),t.ALo(18,"number"),t.qZA()(),t._UZ(19,"mat-progress-bar",12),t.qZA(),t.TgZ(20,"div",13),t._UZ(21,"mat-divider",14),t.qZA(),t.TgZ(22,"div",15),t.YNc(23,ue,2,1,"div",16),t.qZA()()),2&i){const n=t.oxw(),e=t.MAs(2);t.xp6(8),t.hij("",t.xi3(9,7,(null==n.channelBalances?null:n.channelBalances.localBalance)||0,"1.0-0")," Sats"),t.xp6(3),t.Q6J("icon",n.faBalanceScale),t.xp6(1),t.hij(" (",t.lcZ(13,10,(null==n.channelBalances?null:n.channelBalances.balancedness)||0),") "),t.xp6(5),t.hij("",t.xi3(18,12,(null==n.channelBalances?null:n.channelBalances.remoteBalance)||0,"1.0-0")," Sats"),t.xp6(2),t.s9C("value",null!=n.channelBalances&&n.channelBalances.localBalance&&(null==n.channelBalances?null:n.channelBalances.localBalance)>0?+(null==n.channelBalances?null:n.channelBalances.localBalance)/(+(null==n.channelBalances?null:n.channelBalances.localBalance)+ +(null==n.channelBalances?null:n.channelBalances.remoteBalance))*100:0),t.xp6(4),t.Q6J("ngIf",n.allChannels&&(null==n.allChannels?null:n.allChannels.length)>0)("ngIfElse",e)}}function me(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",26),t._uU(1," No channels available. "),t.TgZ(2,"button",27),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.goToChannels())}),t._uU(3,"Open Channel"),t.qZA()()}}function de(i,o){if(1&i&&(t.TgZ(0,"div",28)(1,"p"),t._uU(2),t.qZA()()),2&i){const n=t.oxw();t.xp6(2),t.Oqu(n.errorMessage)}}let he=(()=>{var i;class o{constructor(e){this.router=e,this.faBalanceScale=L.DL8,this.faDumbbell=L.FlN,this.sortBy="Balance Score"}goToChannels(){this.router.navigateByUrl("/ecl/connections")}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(b.F0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-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","8","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90"],[1,"font-weight-900","mr-5px"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90"],["matTooltip","Balance Score",1,"mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90"],["mode","determinate","color","accent",1,"dashboard-progress-bar","this-channel-bar",3,"value"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[1,"channels-capacity-scroll",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"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(e,a){if(1&e&&(t.YNc(0,pe,24,15,"div",0),t.YNc(1,me,4,0,"ng-template",null,1,t.W1O),t.YNc(3,de,3,1,"ng-template",null,2,t.W1O)),2&e){const s=t.MAs(4);t.Q6J("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",s)}},dependencies:[u.sg,u.O5,I.BN,h.xw,h.Wh,h.yH,F.lW,C.bx,X.d,H.pW,W.gM,P.$V,b.rH,u.OU,u.JJ],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}),o})();function _e(i,o){if(1&i&&(t.TgZ(0,"mat-hint",19)(1,"strong",20),t._uU(2,"Capacity: "),t.qZA(),t._uU(3),t.ALo(4,"number"),t.qZA()),2&i){const n=t.oxw().$implicit;t.xp6(3),t.hij("",t.xi3(4,1,n.toRemote||0,"1.0-0")," Sats")}}function ge(i,o){if(1&i&&(t.TgZ(0,"mat-hint",19)(1,"strong",20),t._uU(2,"Capacity: "),t.qZA(),t._uU(3),t.ALo(4,"number"),t.qZA()),2&i){const n=t.oxw().$implicit;t.xp6(3),t.hij("",t.xi3(4,1,n.toLocal||0,"1.0-0")," Sats")}}function fe(i,o){if(1&i&&t._UZ(0,"mat-progress-bar",21),2&i){const n=t.oxw().$implicit,e=t.oxw(3);t.s9C("value",e.totalLiquidity>0?(+n.toRemote||0)/e.totalLiquidity*100:0)}}function Ce(i,o){if(1&i&&t._UZ(0,"mat-progress-bar",21),2&i){const n=t.oxw().$implicit,e=t.oxw(3);t.s9C("value",e.totalLiquidity>0?(+n.toLocal||0)/e.totalLiquidity*100:0)}}const xe=function(){return["../connections/channels/open"]},ye=function(i,o){return{filterColumn:i,filterValue:o}};function be(i,o){if(1&i&&(t.TgZ(0,"div",14)(1,"a",15),t._uU(2),t.ALo(3,"slice"),t.qZA(),t.TgZ(4,"div",16),t.YNc(5,_e,5,4,"mat-hint",17),t.YNc(6,ge,5,4,"mat-hint",17),t.qZA(),t.YNc(7,fe,1,1,"mat-progress-bar",18),t.YNc(8,Ce,1,1,"mat-progress-bar",18),t.qZA()),2&i){const n=o.$implicit,e=t.oxw(3);t.xp6(1),t.s9C("matTooltip",n.alias||n.shortChannelId),t.s9C("matTooltipDisabled",(n.alias||n.shortChannelId).length<26),t.Q6J("routerLink",t.DdM(14,xe))("state",t.WLB(15,ye,n.alias?"alias":"shortChannelId",n.alias||n.shortChannelId)),t.xp6(1),t.AsE(" ",t.Dn7(3,10,n.alias||n.shortChannelId,0,24),"",(n.alias||n.shortChannelId).length>25?"...":""," "),t.xp6(3),t.Q6J("ngIf","In"===e.direction),t.xp6(1),t.Q6J("ngIf","Out"===e.direction),t.xp6(1),t.Q6J("ngIf","In"===e.direction),t.xp6(1),t.Q6J("ngIf","Out"===e.direction)}}function Le(i,o){if(1&i&&(t.TgZ(0,"div",12),t.YNc(1,be,9,18,"div",13),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",n.allChannels)}}const Te=function(i,o,n){return{"mb-4":i,"mb-2":o,"mb-1":n}};function ve(i,o){if(1&i&&(t.TgZ(0,"div",3)(1,"div",4)(2,"span",5),t._uU(3,"Total Capacity"),t.qZA(),t.TgZ(4,"mat-hint",6),t._uU(5),t.ALo(6,"number"),t.qZA(),t._UZ(7,"mat-progress-bar",7),t.qZA(),t.TgZ(8,"div",8),t._UZ(9,"mat-divider",9),t.qZA(),t.TgZ(10,"div",10),t.YNc(11,Le,2,1,"div",11),t.qZA()()),2&i){const n=t.oxw(),e=t.MAs(2);t.Q6J("ngClass",t.kEZ(7,Te,n.screenSize===n.screenSizeEnum.XS||n.screenSize===n.screenSizeEnum.SM,n.screenSize===n.screenSizeEnum.MD,n.screenSize===n.screenSizeEnum.LG||n.screenSize===n.screenSizeEnum.XL)),t.xp6(5),t.hij("",t.xi3(6,4,n.totalLiquidity,"1.0-0")," Sats"),t.xp6(6),t.Q6J("ngIf",n.allChannels&&n.allChannels.length>0)("ngIfElse",e)}}function Ze(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.goToChannels())}),t._uU(1,"Open Channel"),t.qZA()}}function Se(i,o){if(1&i&&(t.TgZ(0,"div",22),t._uU(1," No channels available. "),t.YNc(2,Ze,2,0,"button",23),t.qZA()),2&i){const n=t.oxw();t.xp6(2),t.Q6J("ngIf","Out"===n.direction)}}function Ae(i,o){if(1&i&&(t.TgZ(0,"div",25)(1,"p"),t._uU(2),t.qZA()()),2&i){const n=t.oxw();t.xp6(2),t.Oqu(n.errorMessage)}}let Ee=(()=>{var i;class o{constructor(e,a){this.router=e,this.commonService=a,this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}goToChannels(){this.router.navigateByUrl("/ecl/connections")}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(b.F0),t.Y36(M.v))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",allChannels:"allChannels",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","8","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],[1,"font-size-90"],["mode","determinate","color","accent","value","100",1,"dashboard-progress-bar","this-channel-bar"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],["fxLayout","column","fxFlex.gt-sm","88","fxFlex","84","fxLayoutAlign","start start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100","class","w-100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100",1,"w-100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"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 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(e,a){if(1&e&&(t.YNc(0,ve,12,11,"div",0),t.YNc(1,Se,3,1,"ng-template",null,1,t.W1O),t.YNc(3,Ae,3,1,"ng-template",null,2,t.W1O)),2&e){const s=t.MAs(4);t.Q6J("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",s)}},dependencies:[u.mk,u.sg,u.O5,h.xw,h.Wh,h.yH,Z.oO,F.lW,C.bx,X.d,H.pW,W.gM,P.$V,b.rH,u.OU,u.JJ]}),o})();var G=g(5698),w=g(8739),v=g(6308),c=g(671),Y=g(9300),k=g(2994),D=g(5412),ut=g(3289),K=g(493),pt=g(8104),d=g(4006),Q=g(4144),$=g(3390);const we=["paymentReq"];function Ie(i,o){if(1&i&&(t.TgZ(0,"mat-hint"),t._uU(1),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Oqu(n.paymentDecodedHint)}}function Fe(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Payment request is required."),t.qZA())}function qe(i,o){if(1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Oqu(n.paymentDecodedHint)}}function Ne(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Payment amount is required."),t.qZA())}function Oe(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"mat-form-field",1)(1,"mat-label"),t._uU(2,"Amount (Sats)"),t.qZA(),t.TgZ(3,"input",18,19),t.NdJ("ngModelChange",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.paymentAmount=a)})("change",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.onAmountChange(a))}),t.qZA(),t.TgZ(5,"mat-hint"),t._uU(6,"It is a zero amount invoice, enter amount to be paid."),t.qZA(),t.YNc(7,Ne,2,0,"mat-error",12),t.qZA()}if(2&i){const n=t.oxw();t.xp6(3),t.Q6J("ngModel",n.paymentAmount),t.xp6(4),t.Q6J("ngIf",!n.paymentAmount)}}function Pe(i,o){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Oqu(n.paymentError)}}function ke(i,o){if(1&i&&(t.TgZ(0,"div",20),t._UZ(1,"fa-icon",21),t.YNc(2,Pe,2,1,"span",12),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Q6J("icon",n.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==n.paymentError)}}let Ue=(()=>{var i;class o{constructor(e,a,s,r,p,x,N,y){this.dialogRef=e,this.store=a,this.eclEffects=s,this.logger=r,this.commonService=p,this.decimalPipe=x,this.actions=N,this.dataService=y,this.faExclamationTriangle=L.eHv,this.selNode={},this.paymentDecoded={},this.zeroAmtInvoice=!1,this.paymentAmount=null,this.paymentRequest="",this.paymentDecodedHint="",this.selActiveChannel={},this.activeChannels={},this.feeLimit=null,this.selFeeLimitType=l.Vc[0],this.feeLimitTypes=l.Vc,this.paymentError="",this.unSubs=[new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.store.select(f.LR).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(f.Xz).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.activeChannels=e.activeChannels,this.logger.info(e)}),this.actions.pipe((0,_.R)(this.unSubs[1]),(0,Y.h)(e=>e.type===l.lr.UPDATE_API_CALL_STATUS_ECL||e.type===l.lr.SEND_PAYMENT_STATUS_ECL)).subscribe(e=>{e.type===l.lr.SEND_PAYMENT_STATUS_ECL&&this.dialogRef.close(),e.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&e.payload.status===l.Bn.ERROR&&"SendPayment"===e.payload.action&&(delete this.paymentDecoded.amount,this.paymentError=e.payload.message)})}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp?this.sendPayment():(this.paymentAmount=null,this.paymentError="",this.paymentDecodedHint="",this.paymentReq.control.setErrors(null),this.dataService.decodePayment(this.paymentRequest,!0).pipe((0,G.q)(1)).subscribe({next:e=>{this.paymentDecoded=e,this.paymentDecoded.timestamp&&!this.paymentDecoded.amount?(this.paymentDecoded.amount=0,this.zeroAmtInvoice=!0,this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description):(this.zeroAmtInvoice=!1,this.selNode&&this.selNode.fiatConversion&&this.paymentDecoded.amount?this.commonService.convertCurrency(+this.paymentDecoded.amount,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[2])).subscribe({next:a=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats ("+a.symbol+this.decimalPipe.transform(a.OTHER?a.OTHER:0,l.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:a=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description)},error:e=>{this.logger.error(e),this.paymentDecodedHint="ERROR: "+(e.message?e.message:"string"==typeof e?e:JSON.stringify(e)),this.paymentReq.control.setErrors({decodeError:!0})}}))}sendPayment(){this.store.dispatch((0,k.oV)(this.zeroAmtInvoice&&this.paymentAmount?{payload:{invoice:this.paymentRequest,amountMsat:1e3*this.paymentAmount,fromDialog:!0}}:{payload:{invoice:this.paymentRequest,fromDialog:!0}}))}onPaymentRequestEntry(e){this.paymentRequest=e&&"string"==typeof e?e.trim():e,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,G.q)(1)).subscribe({next:a=>{this.paymentDecoded=a,this.paymentDecoded.timestamp&&!this.paymentDecoded.amount?(this.paymentDecoded.amount=0,this.zeroAmtInvoice=!0,this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description):(this.zeroAmtInvoice=!1,this.selNode&&this.selNode.fiatConversion&&this.paymentDecoded.amount?this.commonService.convertCurrency(+this.paymentDecoded.amount,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[3])).subscribe({next:s=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats ("+s.symbol+this.decimalPipe.transform(s.OTHER?s.OTHER:0,l.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:s=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description)},error:a=>{this.logger.error(a),this.paymentDecodedHint="ERROR: "+(a.message?a.message:"string"==typeof a?a:JSON.stringify(a)),this.paymentReq.control.setErrors({decodeError:!0})}}))}onAmountChange(e){delete this.paymentDecoded.amount,this.paymentDecoded.amount=e}resetData(){this.paymentDecoded={},this.paymentRequest="",this.selActiveChannel=null,this.feeLimit=null,this.selFeeLimitType=l.Vc[0],this.paymentReq.control.setErrors(null),this.paymentError="",this.paymentDecodedHint="",this.zeroAmtInvoice=!1}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(D.so),t.Y36(E.yh),t.Y36(ut.o),t.Y36(R.mQ),t.Y36(M.v),t.Y36(u.JJ),t.Y36(K.eX),t.Y36(pt.D))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-lightning-send-payments"]],viewQuery:function(e,a){if(1&e&&t.Gf(we,5),2&e){let s;t.iGM(s=t.CRH())&&(a.paymentReq=s.first)}},decls:26,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 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"],["fxLayout","column","fxFlex","100"],["autoFocus","","matInput","","name","paymentRequest","rows","4","tabindex","1","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","3",3,"click"],["matInput","","name","amount","tabindex","2","required","",3,"ngModel","ngModelChange","change"],["paymentAmt","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,a){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Send Payment"),t.qZA()(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8)(11,"mat-form-field",9)(12,"mat-label"),t._uU(13,"Payment Request"),t.qZA(),t.TgZ(14,"textarea",10,11),t.NdJ("ngModelChange",function(r){return a.onPaymentRequestEntry(r)})("matTextareaAutosize",function(){return!0}),t.qZA(),t.YNc(16,Ie,2,1,"mat-hint",12),t.YNc(17,Fe,2,0,"mat-error",12),t.YNc(18,qe,2,1,"mat-error",12),t.qZA(),t.YNc(19,Oe,8,2,"mat-form-field",13),t.YNc(20,ke,3,2,"div",14),t.TgZ(21,"div",15)(22,"button",16),t.NdJ("click",function(){return a.resetData()}),t._uU(23,"Clear Fields"),t.qZA(),t.TgZ(24,"button",17),t.NdJ("click",function(){return a.onSendPayment()}),t._uU(25,"Send Payment"),t.qZA()()()()()()),2&e){const s=t.MAs(15);t.xp6(6),t.Q6J("mat-dialog-close",!1),t.xp6(8),t.Q6J("ngModel",a.paymentRequest),t.xp6(2),t.Q6J("ngIf",a.paymentRequest&&""!==a.paymentDecodedHint),t.xp6(1),t.Q6J("ngIf",!a.paymentRequest),t.xp6(1),t.Q6J("ngIf",null==s.errors?null:s.errors.decodeError),t.xp6(1),t.Q6J("ngIf",a.zeroAmtInvoice),t.xp6(1),t.Q6J("ngIf",""!==a.paymentError)}},dependencies:[u.O5,d._Y,d.Fj,d.JJ,d.JL,d.Q7,d.On,d.F,I.BN,h.xw,h.Wh,h.yH,D.ZT,F.lW,T.dn,T.dk,Q.Nt,C.KE,C.hX,C.bx,C.TO,$.h]}),o})();var B=g(752);const Re=["scrollContainer"];function Me(i,o){if(1&i&&(t.TgZ(0,"div",9)(1,"div",1)(2,"h4",11),t._uU(3,"Description"),t.qZA(),t.TgZ(4,"span",12),t._uU(5),t.qZA()()()),2&i){const n=t.oxw();t.xp6(5),t.Oqu(n.description)}}function De(i,o){1&i&&t._UZ(0,"mat-divider",14)}function Je(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"mat-expansion-panel",23),t.NdJ("opened",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onExpansionOpen(!0))})("closed",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onExpansionOpen(!1))}),t.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"h4",24),t._uU(4),t.qZA(),t.TgZ(5,"h4",25),t._uU(6),t.ALo(7,"number"),t.qZA()()(),t.TgZ(8,"div",8)(9,"div",9)(10,"div",26)(11,"h4",11),t._uU(12,"Fees (mSats)"),t.qZA(),t.TgZ(13,"span",12),t._uU(14),t.ALo(15,"number"),t.qZA()(),t.TgZ(16,"div",26)(17,"h4",11),t._uU(18,"Date/Time"),t.qZA(),t.TgZ(19,"span",12),t._uU(20),t.ALo(21,"date"),t.qZA()()(),t._UZ(22,"mat-divider",14),t.TgZ(23,"div",9)(24,"div",1)(25,"h4",11),t._uU(26,"ID"),t.qZA(),t.TgZ(27,"span",27),t._uU(28),t.qZA()()(),t._UZ(29,"mat-divider",14),t.TgZ(30,"div",9)(31,"div",1)(32,"h4",11),t._uU(33,"To Channel"),t.qZA(),t.TgZ(34,"span",27),t._uU(35),t.qZA()()()()()}if(2&i){const n=o.$implicit,e=o.index,a=t.oxw();t.Q6J("expanded",a.expansionOpen),t.xp6(4),t.hij("Part ",e+1,""),t.xp6(2),t.hij("",t.lcZ(7,7,n.amount)," (Sats)"),t.xp6(8),t.Oqu(t.lcZ(15,9,n.feesPaid)),t.xp6(6),t.Oqu(t.xi3(21,11,n.timestamp,"dd/MMM/y HH:mm")),t.xp6(8),t.Oqu(n.id),t.xp6(7),t.Oqu(n.toChannelAlias)}}let He=(()=>{var i;class o{constructor(e,a){this.dialogRef=e,this.data=a,this.description=null,this.shouldScroll=!0,this.expansionOpen=!0}ngOnInit(){this.payment=this.data.payment,this.data.sentPaymentInfo.length>0&&this.data.sentPaymentInfo[0].paymentRequest&&this.data.sentPaymentInfo[0].paymentRequest.description&&""!==this.data.sentPaymentInfo[0].paymentRequest.description&&(this.description=this.data.sentPaymentInfo[0].paymentRequest.description)}ngAfterViewChecked(){this.shouldScroll=this.scrollContainer.nativeElement.classList.value.includes("ps--active-y")}onScrollDown(){this.scrollContainer.nativeElement.scrollTop=this.scrollContainer.nativeElement.scrollTop+62.6}onExpansionOpen(e){this.expansionOpen=e}onClose(){this.dialogRef.close(!1)}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(D.so),t.Y36(D.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-payment-information"]],viewQuery:function(e,a){if(1&e&&t.Gf(Re,5),2&e){let s;t.iGM(s=t.CRH())&&(a.scrollContainer=s.first)}},decls:66,vars:15,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"h-40","padding-gap-x-large",3,"perfectScrollbar"],["scrollContainer",""],["fxLayout","column"],["fxLayout","row"],["fxFlex","30"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],["fxFlex","70"],[1,"w-100","my-1"],["fxLayout","row",4,"ngIf"],["class","w-100 my-1",4,"ngIf"],["class","flat-expansion-panel my-1",3,"expanded","opened","closed",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container","padding-gap-x-large"],["mat-mini-fab","","aria-label","Scroll Down","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center"],["fxLayout","row","fxLayoutAlign","end center",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","tabindex","1","mat-button","","color","primary","type","button","default","",1,"mr-1",3,"mat-dialog-close"],[1,"flat-expansion-panel","my-1",3,"expanded","opened","closed"],["fxFlex","30","fxLayoutAlign","start",1,"font-bold-500"],["fxFlex","70","fxLayoutAlign","start",1,"font-bold-500"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Payment Information"),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return a.onClose()}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6,7)(10,"div",8)(11,"div",9)(12,"div",10)(13,"h4",11),t._uU(14,"Amount (Sats)"),t.qZA(),t.TgZ(15,"span",12),t._uU(16),t.ALo(17,"number"),t.qZA()(),t.TgZ(18,"div",13)(19,"h4",11),t._uU(20,"Date/Time"),t.qZA(),t.TgZ(21,"span",12),t._uU(22),t.ALo(23,"date"),t.qZA()()(),t._UZ(24,"mat-divider",14),t.TgZ(25,"div",9)(26,"div",1)(27,"h4",11),t._uU(28,"ID"),t.qZA(),t.TgZ(29,"span",12),t._uU(30),t.qZA()()(),t._UZ(31,"mat-divider",14),t.TgZ(32,"div",9)(33,"div",1)(34,"h4",11),t._uU(35,"Payment Hash"),t.qZA(),t.TgZ(36,"span",12),t._uU(37),t.qZA()()(),t._UZ(38,"mat-divider",14),t.TgZ(39,"div",9)(40,"div",1)(41,"h4",11),t._uU(42,"Payment Preimage"),t.qZA(),t.TgZ(43,"span",12),t._uU(44),t.qZA()()(),t._UZ(45,"mat-divider",14),t.TgZ(46,"div",9)(47,"div",1)(48,"h4",11),t._uU(49,"Recipient Node"),t.qZA(),t.TgZ(50,"span",12),t._uU(51),t.qZA()()(),t._UZ(52,"mat-divider",14),t.YNc(53,Me,6,1,"div",15),t.YNc(54,De,1,0,"mat-divider",16),t.TgZ(55,"div",9)(56,"div",1)(57,"mat-accordion"),t.YNc(58,Je,36,14,"mat-expansion-panel",17),t.qZA()()()()(),t.TgZ(59,"div",18)(60,"button",19),t.NdJ("click",function(){return a.onScrollDown()}),t.TgZ(61,"mat-icon",20),t._uU(62,"arrow_downward"),t.qZA()()(),t.TgZ(63,"div",21)(64,"button",22),t._uU(65,"OK"),t.qZA()()()()),2&e&&(t.xp6(16),t.Oqu(t.lcZ(17,10,a.payment.recipientAmount)),t.xp6(6),t.Oqu(t.xi3(23,12,a.payment.firstPartTimestamp,"dd/MMM/y HH:mm")),t.xp6(8),t.Oqu(a.payment.id),t.xp6(7),t.Oqu(a.payment.paymentHash),t.xp6(7),t.Oqu(a.payment.paymentPreimage),t.xp6(7),t.Oqu(a.payment.recipientNodeAlias),t.xp6(2),t.Q6J("ngIf",a.description),t.xp6(1),t.Q6J("ngIf",a.description),t.xp6(4),t.Q6J("ngForOf",a.payment.parts),t.xp6(6),t.Q6J("mat-dialog-close",!1))},dependencies:[u.sg,u.O5,h.xw,h.Wh,h.yH,D.ZT,F.lW,F.nh,T.dn,T.dk,B.pp,B.ib,B.yz,B.yK,rt.Hw,X.d,P.$V,u.JJ,u.uU]}),o})();var S=g(7861),A=g(4385),it=g(3093),z=g(9445),V=g(3238);const Qe=["sendPaymentForm"];function Ye(i,o){if(1&i&&(t.TgZ(0,"mat-hint"),t._uU(1),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Oqu(n.paymentDecodedHint)}}function Be(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Payment request is required."),t.qZA())}function Ve(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"form",4,5)(2,"mat-form-field",6)(3,"mat-label"),t._uU(4,"Payment Request"),t.qZA(),t.TgZ(5,"textarea",7,8),t.NdJ("ngModelChange",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.onPaymentRequestEntry(a))})("matTextareaAutosize",function(){return!0}),t.qZA(),t.YNc(7,Ye,2,1,"mat-hint",9),t.YNc(8,Be,2,0,"mat-error",9),t.qZA(),t.TgZ(9,"div",10)(10,"button",11),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.resetData())}),t._uU(11,"Clear Field"),t.qZA(),t.TgZ(12,"button",12),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onSendPayment())}),t._uU(13,"Send Payment"),t.qZA()()()}if(2&i){const n=t.oxw();t.xp6(5),t.Q6J("ngModel",n.paymentRequest),t.xp6(2),t.Q6J("ngIf",n.paymentRequest&&""!==n.paymentDecodedHint),t.xp6(1),t.Q6J("ngIf",!n.paymentRequest)}}function ze(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",13)(1,"button",12),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.openSendPaymentModal())}),t._uU(2,"Send Payment"),t.qZA()()}}function Ge(i,o){if(1&i&&(t.TgZ(0,"mat-option",59),t._uU(1),t.qZA()),2&i){const n=o.$implicit,e=t.oxw(2);t.Q6J("value",n),t.xp6(1),t.Oqu(e.getLabel(n))}}function We(i,o){1&i&&t._UZ(0,"mat-progress-bar",60)}function Ke(i,o){1&i&&(t.TgZ(0,"th",61),t._uU(1,"Date/Time"),t.qZA())}function Xe(i,o){if(1&i&&(t.TgZ(0,"td",62),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,null==n?null:n.firstPartTimestamp,"dd/MMM/y HH:mm"))}}function $e(i,o){1&i&&(t.TgZ(0,"th",61),t._uU(1,"ID"),t.qZA())}const J=function(i){return{width:i}};function je(i,o){if(1&i&&(t.TgZ(0,"td",62)(1,"div",63)(2,"span",64),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.id)}}function tn(i,o){1&i&&(t.TgZ(0,"th",61),t._uU(1,"Destination Node ID"),t.qZA())}function en(i,o){if(1&i&&(t.TgZ(0,"td",62)(1,"div",63)(2,"span",64),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.recipientNodeId)}}function nn(i,o){1&i&&(t.TgZ(0,"th",61),t._uU(1,"Destination"),t.qZA())}function an(i,o){if(1&i&&(t.TgZ(0,"td",62)(1,"div",63)(2,"span",64),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.recipientNodeAlias)}}function on(i,o){1&i&&(t.TgZ(0,"th",61),t._uU(1,"Description"),t.qZA())}function sn(i,o){if(1&i&&(t.TgZ(0,"td",62)(1,"div",63)(2,"span",64),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.description)}}function ln(i,o){1&i&&(t.TgZ(0,"th",61),t._uU(1,"Payment Hash"),t.qZA())}function rn(i,o){if(1&i&&(t.TgZ(0,"td",62)(1,"div",63)(2,"span",64),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.paymentHash)}}function cn(i,o){1&i&&(t.TgZ(0,"th",61),t._uU(1,"Preimage"),t.qZA())}function un(i,o){if(1&i&&(t.TgZ(0,"td",62)(1,"div",63)(2,"span",64),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.paymentPreimage)}}function pn(i,o){1&i&&(t.TgZ(0,"th",65),t._uU(1,"Amount (Sats)"),t.qZA())}function mn(i,o){if(1&i&&(t.TgZ(0,"td",62)(1,"span",66),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==n?null:n.recipientAmount))}}function dn(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"th",67)(1,"div",68)(2,"mat-select",69),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",70),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.onDownloadCSV())}),t._uU(5,"Download CSV"),t.qZA()()()()}}function hn(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"td",71)(1,"button",72),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw(2);return t.KtG(r.onPaymentClick(s))}),t._uU(2,"View Info"),t.qZA()()}}function _n(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"No payment available."),t.qZA())}function gn(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"Getting payments..."),t.qZA())}function fn(i,o){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&i){const n=t.oxw(3);t.xp6(1),t.Oqu(n.errorMessage)}}function Cn(i,o){if(1&i&&(t.TgZ(0,"td",73),t.YNc(1,_n,2,0,"p",9),t.YNc(2,gn,2,0,"p",9),t.YNc(3,fn,2,1,"p",9),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=n.payments&&n.payments.data)||(null==n.payments||null==n.payments.data?null:n.payments.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.payments&&n.payments.data)||(null==n.payments||null==n.payments.data?null:n.payments.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.payments&&n.payments.data)||(null==n.payments||null==n.payments.data?null:n.payments.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function xn(i,o){if(1&i&&(t.TgZ(0,"span",74),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,n.timestamp,"dd/MMM/y HH:mm")," ")}}function yn(i,o){if(1&i&&(t.ynx(0),t.YNc(1,xn,3,4,"span",75),t.BQk()),2&i){const n=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==n?null:n.parts)}}function bn(i,o){if(1&i&&(t.TgZ(0,"td",62)(1,"span",74),t._uU(2),t.qZA(),t.YNc(3,yn,2,1,"ng-container",9),t.qZA()),2&i){const n=o.$implicit;t.xp6(2),t.hij(" Total Attempts: ",(null==n||null==n.parts?null:n.parts.length)||0," "),t.xp6(1),t.Q6J("ngIf",null==n?null:n.is_expanded)}}function Ln(i,o){if(1&i&&(t.TgZ(0,"span",74)(1,"span",76)(2,"span",64),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(4);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(n.id)}}function Tn(i,o){if(1&i&&(t.TgZ(0,"span"),t.YNc(1,Ln,4,4,"span",75),t.qZA()),2&i){const n=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==n?null:n.parts)}}function vn(i,o){if(1&i&&(t.TgZ(0,"td",62)(1,"div",76)(2,"span",64),t._uU(3),t.qZA()(),t.YNc(4,Tn,2,1,"span",9),t.qZA()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(3,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.id),t.xp6(1),t.Q6J("ngIf",null==n?null:n.is_expanded)}}function Zn(i,o){if(1&i&&(t.TgZ(0,"span",74)(1,"span",76)(2,"span",64),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(4);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(n.toChannelId)}}function Sn(i,o){if(1&i&&(t.TgZ(0,"span"),t.YNc(1,Zn,4,4,"span",75),t.qZA()),2&i){const n=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==n?null:n.parts)}}function An(i,o){if(1&i&&(t.TgZ(0,"td",62)(1,"div",76)(2,"span",64),t._uU(3),t.qZA()(),t.YNc(4,Sn,2,1,"span",9),t.qZA()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(3,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.recipientNodeId),t.xp6(1),t.Q6J("ngIf",null==n?null:n.is_expanded)}}function En(i,o){if(1&i&&(t.TgZ(0,"span",74)(1,"span",76)(2,"span",64),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(4);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(n.toChannelAlias)}}function wn(i,o){if(1&i&&(t.TgZ(0,"span"),t.YNc(1,En,4,4,"span",75),t.qZA()),2&i){const n=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==n?null:n.parts)}}function In(i,o){if(1&i&&(t.TgZ(0,"td",62)(1,"div",76)(2,"span",64),t._uU(3),t.qZA()(),t.YNc(4,wn,2,1,"span",9),t.qZA()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(3,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.recipientNodeAlias),t.xp6(1),t.Q6J("ngIf",null==n?null:n.is_expanded)}}function Fn(i,o){if(1&i&&(t.TgZ(0,"span",77),t._uU(1),t.ALo(2,"number"),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,n.amount,"1.0-0")," ")}}function qn(i,o){if(1&i&&(t.TgZ(0,"span"),t.YNc(1,Fn,3,4,"span",78),t.qZA()),2&i){const n=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==n?null:n.parts)}}function Nn(i,o){if(1&i&&(t.TgZ(0,"td",62)(1,"span",77),t._uU(2),t.ALo(3,"number"),t.qZA(),t.YNc(4,qn,2,1,"span",9),t.qZA()),2&i){const n=o.$implicit;t.xp6(2),t.Oqu(t.xi3(3,2,null==n?null:n.recipientAmount,"1.0-0")),t.xp6(2),t.Q6J("ngIf",null==n?null:n.is_expanded)}}function On(i,o){if(1&i&&(t.TgZ(0,"span",74)(1,"span",76)(2,"span",64),t._uU(3),t.ALo(4,"number"),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(4);t.xp6(1),t.Q6J("ngStyle",t.VKq(5,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.hij("Fee Paid: ",t.xi3(4,2,n.feesPaid,"1.0-0")," (Sats)")}}function Pn(i,o){if(1&i&&(t.TgZ(0,"span"),t.YNc(1,On,5,7,"span",75),t.qZA()),2&i){const n=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==n?null:n.parts)}}function kn(i,o){if(1&i&&(t.TgZ(0,"td",62)(1,"div",76)(2,"span",64),t._uU(3),t.qZA()(),t.YNc(4,Pn,2,1,"span",9),t.qZA()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(3,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.description),t.xp6(1),t.Q6J("ngIf",null==n?null:n.is_expanded)}}function Un(i,o){if(1&i&&(t.TgZ(0,"span",74)(1,"span",76)(2,"span",64),t._uU(3),t.ALo(4,"number"),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(4);t.xp6(1),t.Q6J("ngStyle",t.VKq(5,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.hij("Fee Paid: ",t.xi3(4,2,n.feesPaid,"1.0-0")," (Sats)")}}function Rn(i,o){if(1&i&&(t.TgZ(0,"span"),t.YNc(1,Un,5,7,"span",75),t.qZA()),2&i){const n=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==n?null:n.parts)}}function Mn(i,o){if(1&i&&(t.TgZ(0,"td",62)(1,"div",76)(2,"span",64),t._uU(3),t.qZA()(),t.YNc(4,Rn,2,1,"span",9),t.qZA()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(3,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.paymentHash),t.xp6(1),t.Q6J("ngIf",null==n?null:n.is_expanded)}}function Dn(i,o){if(1&i&&(t.TgZ(0,"span",74)(1,"span",76)(2,"span",64),t._uU(3),t.ALo(4,"number"),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(4);t.xp6(1),t.Q6J("ngStyle",t.VKq(5,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.hij("Fee Paid: ",t.xi3(4,2,n.feesPaid,"1.0-0")," (Sats)")}}function Jn(i,o){if(1&i&&(t.TgZ(0,"span"),t.YNc(1,Dn,5,7,"span",75),t.qZA()),2&i){const n=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==n?null:n.parts)}}function Hn(i,o){if(1&i&&(t.TgZ(0,"td",62)(1,"div",76)(2,"span",64),t._uU(3),t.qZA()(),t.YNc(4,Jn,2,1,"span",9),t.qZA()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(3,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.paymentPreimage),t.xp6(1),t.Q6J("ngIf",null==n?null:n.is_expanded)}}function Qn(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",82)(1,"button",83),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw(2).$implicit,p=t.oxw(2);return t.KtG(p.onPartClick(s,r))}),t._uU(2),t.qZA()()}if(2&i){const n=o.index;t.xp6(2),t.hij("View ",n+1,"")}}function Yn(i,o){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,Qn,3,1,"div",81),t.qZA()),2&i){const n=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==n?null:n.parts)}}function Bn(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"td",62)(1,"span",79)(2,"button",80),t.NdJ("click",function(){const s=t.CHM(n).$implicit;return t.KtG(s.is_expanded=!s.is_expanded)}),t._uU(3),t.qZA()(),t.YNc(4,Yn,2,1,"div",9),t.qZA()}if(2&i){const n=o.$implicit;t.xp6(3),t.Oqu(null!=n&&n.is_expanded?"Hide":"Show"),t.xp6(1),t.Q6J("ngIf",null==n?null:n.is_expanded)}}function Vn(i,o){1&i&&t._UZ(0,"tr",84)}const zn=function(i){return{"display-none":i}};function Gn(i,o){if(1&i&&t._UZ(0,"tr",85),2&i){const n=t.oxw(2);t.Q6J("ngClass",t.VKq(1,zn,(null==n.payments||null==n.payments.data?null:n.payments.data.length)>0))}}function Wn(i,o){1&i&&t._UZ(0,"tr",86)}function Kn(i,o){1&i&&t._UZ(0,"tr",84)}const Xn=function(){return["all"]},$n=function(i){return{"error-border":i}},jn=function(){return["no_payment"]};function ti(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",14)(1,"div",15)(2,"div",16),t._UZ(3,"fa-icon",17),t.TgZ(4,"span",18),t._uU(5,"Payments History"),t.qZA()(),t.TgZ(6,"div",19)(7,"mat-form-field",20)(8,"mat-label"),t._uU(9,"Filter By"),t.qZA(),t.TgZ(10,"mat-select",21),t.NdJ("ngModelChange",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.selFilterBy=a)})("selectionChange",function(){t.CHM(n);const a=t.oxw();return a.selFilter="",t.KtG(a.applyFilter())}),t.TgZ(11,"perfect-scrollbar"),t.YNc(12,Ge,2,2,"mat-option",22),t.qZA()()(),t.TgZ(13,"mat-form-field",20)(14,"mat-label"),t._uU(15,"Filter"),t.qZA(),t.TgZ(16,"input",23),t.NdJ("ngModelChange",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.selFilter=a)})("input",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.applyFilter())})("keyup",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.applyFilter())}),t.qZA()()()(),t.TgZ(17,"div",24)(18,"div",25),t.YNc(19,We,1,0,"mat-progress-bar",26),t.TgZ(20,"table",27,28),t.ynx(22,29),t.YNc(23,Ke,2,0,"th",30),t.YNc(24,Xe,3,4,"td",31),t.BQk(),t.ynx(25,32),t.YNc(26,$e,2,0,"th",30),t.YNc(27,je,4,4,"td",31),t.BQk(),t.ynx(28,33),t.YNc(29,tn,2,0,"th",30),t.YNc(30,en,4,4,"td",31),t.BQk(),t.ynx(31,34),t.YNc(32,nn,2,0,"th",30),t.YNc(33,an,4,4,"td",31),t.BQk(),t.ynx(34,35),t.YNc(35,on,2,0,"th",30),t.YNc(36,sn,4,4,"td",31),t.BQk(),t.ynx(37,36),t.YNc(38,ln,2,0,"th",30),t.YNc(39,rn,4,4,"td",31),t.BQk(),t.ynx(40,37),t.YNc(41,cn,2,0,"th",30),t.YNc(42,un,4,4,"td",31),t.BQk(),t.ynx(43,38),t.YNc(44,pn,2,0,"th",39),t.YNc(45,mn,4,3,"td",31),t.BQk(),t.ynx(46,40),t.YNc(47,dn,6,0,"th",41),t.YNc(48,hn,3,0,"td",42),t.BQk(),t.ynx(49,43),t.YNc(50,Cn,4,3,"td",44),t.BQk(),t.ynx(51,45),t.YNc(52,bn,4,2,"td",31),t.BQk(),t.ynx(53,46),t.YNc(54,vn,5,5,"td",31),t.BQk(),t.ynx(55,47),t.YNc(56,An,5,5,"td",31),t.BQk(),t.ynx(57,48),t.YNc(58,In,5,5,"td",31),t.BQk(),t.ynx(59,49),t.YNc(60,Nn,5,5,"td",31),t.BQk(),t.ynx(61,50),t.YNc(62,kn,5,5,"td",31),t.BQk(),t.ynx(63,51),t.YNc(64,Mn,5,5,"td",31),t.BQk(),t.ynx(65,52),t.YNc(66,Hn,5,5,"td",31),t.BQk(),t.ynx(67,53),t.YNc(68,Bn,5,2,"td",31),t.BQk(),t.YNc(69,Vn,1,0,"tr",54),t.YNc(70,Gn,1,3,"tr",55),t.YNc(71,Wn,1,0,"tr",56),t.YNc(72,Kn,1,0,"tr",57),t.qZA()()(),t._UZ(73,"mat-paginator",58),t.qZA()}if(2&i){const n=t.oxw();t.xp6(3),t.Q6J("icon",n.faHistory),t.xp6(7),t.Q6J("ngModel",n.selFilterBy),t.xp6(2),t.Q6J("ngForOf",t.DdM(17,Xn).concat(n.displayedColumns.slice(0,-1))),t.xp6(4),t.Q6J("ngModel",n.selFilter),t.xp6(3),t.Q6J("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("matSortActive",n.tableSetting.sortBy)("matSortDirection",n.tableSetting.sortOrder)("dataSource",n.payments)("ngClass",t.VKq(18,$n,""!==n.errorMessage)),t.xp6(49),t.Q6J("matRowDefColumns",n.partColumns)("matRowDefWhen",n.is_group),t.xp6(1),t.Q6J("matFooterRowDef",t.DdM(20,jn)),t.xp6(1),t.Q6J("matHeaderRowDef",n.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",n.displayedColumns),t.xp6(1),t.Q6J("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS)}}let At=(()=>{var i;class o{constructor(e,a,s,r,p,x,N,y){this.logger=e,this.commonService=a,this.store=s,this.rtlEffects=r,this.decimalPipe=p,this.dataService=x,this.datePipe=N,this.camelCaseWithSpaces=y,this.calledFrom="transactions",this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="transactions",this.tableSetting={tableId:"payments",recordsPerPage:l.IV,sortBy:"firstPartTimestamp",sortOrder:l.Pi.DESCENDING},this.faHistory=L.qO$,this.newlyAddedPayment="",this.selNode={},this.information={},this.payments=new c.by([]),this.paymentJSONArr=[],this.paymentDecoded={},this.displayedColumns=[],this.partColumns=[],this.paymentRequest="",this.paymentDecodedHint="",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,new m.x,new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(f.LR).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(f.yD).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.store.select(f.nF).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=e.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||l.c3.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.partColumns=[],this.displayedColumns.map(a=>this.partColumns.push("group_"+a)),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(f.PP).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.paymentJSONArr=e.payments&&e.payments.sent&&e.payments.sent.length>0?e.payments.sent:[],this.paymentJSONArr.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadPaymentsTable(this.paymentJSONArr),this.logger.info(e)})}ngAfterViewInit(){this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr)}applyFilter(){this.payments.filter=this.selFilter.trim().toLowerCase()}getLabel(e){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(s=>s.column===e);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):this.commonService.titleCase(e)}setFilterPredicate(){this.payments.filterPredicate=(e,a)=>{let s="";switch(this.selFilterBy){case"all":s=(e.firstPartTimestamp?this.datePipe.transform(new Date(e.firstPartTimestamp),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(e).toLowerCase();break;case"firstPartTimestamp":s=this.datePipe.transform(new Date(e.firstPartTimestamp||0),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;default:s=typeof e[this.selFilterBy]>"u"?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return s.includes(a)}}loadPaymentsTable(e){this.payments=new c.by(e?[...e]:[]),this.payments.sort=this.sort,this.payments.sortingDataAccessor=(a,s)=>{switch(s){case"firstPartTimestamp":return this.commonService.sortByKey(a.parts,"timestamp","number",this.sort?.direction),a.firstPartTimestamp;case"id":return this.commonService.sortByKey(a.parts,"id","string",this.sort?.direction),a.id;case"recipientNodeAlias":return this.commonService.sortByKey(a.parts,"toChannelAlias","string",this.sort?.direction),a.recipientNodeAlias;case"recipientAmount":return this.commonService.sortByKey(a.parts,"amount","number",this.sort?.direction),a.recipientAmount;default:return a[s]&&isNaN(a[s])?a[s].toLocaleLowerCase():a[s]?+a[s]:null}},this.payments.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter()}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp?this.sendPayment():this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,G.q)(1)).subscribe(e=>{this.paymentDecoded=e,this.paymentDecoded.timestamp?(this.paymentDecoded.amount||(this.paymentDecoded.amount=0),this.sendPayment()):this.resetData()})}sendPayment(){this.newlyAddedPayment=this.paymentDecoded.paymentHash||"",this.paymentDecoded.amount&&0!==this.paymentDecoded.amount?(this.store.dispatch((0,S.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Confirm Send Payment",noBtnText:"Cancel",yesBtnText:"Send Payment",message:[[{key:"paymentHash",value:this.paymentDecoded.paymentHash,title:"Payment Hash",width:100}],[{key:"nodeId",value:this.paymentDecoded.nodeId,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:50,type:l.Gi.DATE_TIME},{key:"amount",value:this.paymentDecoded.amount,title:"Amount (Sats)",width:50,type:l.Gi.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:l.Gi.NUMBER},{key:"minFinalCltvExpiry",value:this.paymentDecoded.minFinalCltvExpiry,title:"CLTV Expiry",width:50}]]}}})),this.rtlEffects.closeConfirm.pipe((0,G.q)(1)).subscribe(a=>{a&&(this.store.dispatch((0,k.oV)({payload:{invoice:this.paymentRequest,fromDialog:!1}})),this.resetData())})):(this.store.dispatch((0,S.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Enter Amount and Confirm Send Payment",message:[[{key:"paymentHash",value:this.paymentDecoded.paymentHash,title:"Payment Hash",width:100}],[{key:"nodeId",value:this.paymentDecoded.nodeId,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:40,type:l.Gi.DATE_TIME},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:l.Gi.NUMBER},{key:"minFinalCltvExpiry",value:this.paymentDecoded.minFinalCltvExpiry,title:"CLTV Expiry",width:30}]],noBtnText:"Cancel",yesBtnText:"Send Payment",flgShowInput:!0,titleMessage:"It is a zero amount invoice. Enter the amount (Sats) to pay.",getInputs:[{placeholder:"Amount (Sats)",inputType:l.Gi.NUMBER,inputValue:"",width:30}]}}})),this.rtlEffects.closeConfirm.pipe((0,G.q)(1)).subscribe(s=>{s&&(this.paymentDecoded.amount=s[0].inputValue,this.store.dispatch((0,k.oV)({payload:{invoice:this.paymentRequest,amountMsat:1e3*s[0].inputValue,fromDialog:!1}})),this.resetData())}))}onPaymentRequestEntry(e){this.paymentRequest=e,this.paymentDecodedHint="",this.paymentRequest&&this.paymentRequest.length>100&&this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,G.q)(1)).subscribe(a=>{this.paymentDecoded=a,this.paymentDecoded.amount?this.selNode&&this.selNode.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.amount,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[4])).subscribe({next:s=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats ("+s.symbol+this.decimalPipe.transform(s.OTHER?s.OTHER:0,l.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:s=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description:this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description})}openSendPaymentModal(){this.store.dispatch((0,S.qR)({payload:{data:{component:Ue}}}))}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}is_group(e,a){return a.parts&&a.parts.length>1}onPaymentClick(e){e.paymentHash&&""!==e.paymentHash.trim()?this.dataService.decodePayments(e.paymentHash).pipe((0,G.q)(1)).subscribe({next:a=>{setTimeout(()=>{this.showPaymentView(e,a.length&&a.length>0?a[0]:[])},0)},error:a=>{this.showPaymentView(e,[])}}):this.showPaymentView(e,[])}showPaymentView(e,a){this.store.dispatch((0,S.qR)({payload:{data:{sentPaymentInfo:a,payment:e,component:He}}}))}onPartClick(e,a){a.paymentHash&&""!==a.paymentHash.trim()?this.dataService.decodePayments(a.paymentHash).pipe((0,G.q)(1)).subscribe({next:s=>{setTimeout(()=>{this.showPartView(e,a,s.length&&s.length>0?s[0]:[])},0)},error:s=>{this.showPartView(e,a,[])}}):this.showPartView(e,a,[])}showPartView(e,a,s){const r=[[{key:"paymentHash",value:a.paymentHash,title:"Payment Hash",width:100,type:l.Gi.STRING}],[{key:"paymentPreimage",value:a.paymentPreimage,title:"Payment Preimage",width:100,type:l.Gi.STRING}],[{key:"toChannelId",value:e.toChannelId,title:"Channel",width:100,type:l.Gi.STRING}],[{key:"id",value:e.id,title:"Part ID",width:50,type:l.Gi.STRING},{key:"timestamp",value:e.timestamp,title:"Time",width:50,type:l.Gi.DATE_TIME}],[{key:"amount",value:e.amount,title:"Amount (Sats)",width:50,type:l.Gi.NUMBER},{key:"feesPaid",value:e.feesPaid,title:"Fee (Sats)",width:50,type:l.Gi.NUMBER}]];s&&s.length>0&&s[0].paymentRequest&&s[0].paymentRequest.description&&""!==s[0].paymentRequest.description&&r.splice(3,0,[{key:"description",value:s[0].paymentRequest.description,title:"Description",width:100,type:l.Gi.STRING}]),this.store.dispatch((0,S.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Payment Part Information",message:r}}}))}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){const e=JSON.parse(JSON.stringify(this.payments.data)),a=e?.reduce((s,r)=>(r.paymentHash&&""!==r.paymentHash.trim()&&(s=""===s?r.paymentHash:s+","+r.paymentHash),s),"");this.dataService.decodePayments(a).pipe((0,_.R)(this.unSubs[5])).subscribe(s=>{s.forEach((p,x)=>{p.length>0&&p[0].paymentRequest&&p[0].paymentRequest.description&&""!==p[0].paymentRequest.description&&(e[x].description=p[0].paymentRequest.description)});const r=e?.reduce((p,x)=>p.concat(x),[]);this.commonService.downloadFile(r,"Payments")})}}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(M.v),t.Y36(E.yh),t.Y36(it.V),t.Y36(u.JJ),t.Y36(pt.D),t.Y36(u.uU),t.Y36(z.i1))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-lightning-payments"]],viewQuery:function(e,a){if(1&e&&(t.Gf(Qe,5),t.Gf(v.YE,5),t.Gf(w.NW,5)),2&e){let s;t.iGM(s=t.CRH())&&(a.form=s.first),t.iGM(s=t.CRH())&&(a.sort=s.first),t.iGM(s=t.CRH())&&(a.paginator=s.first)}},inputs:{calledFrom:"calledFrom"},features:[t._Bn([{provide:A.PG,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.ye,useValue:(0,l.pt)("Payments")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","colWidth","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["sendPaymentForm","ngForm"],["fxLayout","column","fxFlex","100"],["matInput","","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.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","colWidth",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","colWidth","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["table",""],["matColumnDef","firstPartTimestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","recipientNodeId"],["matColumnDef","recipientNodeAlias"],["matColumnDef","description"],["matColumnDef","paymentHash"],["matColumnDef","paymentPreimage"],["matColumnDef","recipientAmount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_payment"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["matColumnDef","group_firstPartTimestamp"],["matColumnDef","group_id"],["matColumnDef","group_recipientNodeId"],["matColumnDef","group_recipientNodeAlias"],["matColumnDef","group_recipientAmount"],["matColumnDef","group_description"],["matColumnDef","group_paymentHash"],["matColumnDef","group_paymentPreimage"],["matColumnDef","group_actions"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],["fxLayoutAlign","start center",1,"part-row-span"],["fxLayoutAlign","start center","class","part-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"ellipsis-parent","part-row-span",3,"ngStyle"],["fxLayoutAlign","end center",1,"part-row-span"],["fxLayoutAlign","end center","class","part-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"part-group-head"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-part-expand",3,"click"],["class","part-group-details","fxLayoutAlign","end center",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"part-group-details"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-part-info",3,"click"],["mat-row",""],["mat-footer-row","",3,"ngClass"],["mat-header-row",""]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t.YNc(1,Ve,14,3,"form",1),t.YNc(2,ze,3,0,"div",2),t.YNc(3,ti,74,21,"div",3),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf","home"===a.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===a.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===a.calledFrom))},dependencies:[u.mk,u.sg,u.O5,u.PC,d._Y,d.Fj,d.JJ,d.JL,d.Q7,d.On,d.F,I.BN,h.xw,h.Wh,h.yH,Z.oO,Z.Zl,F.lW,Q.Nt,C.KE,C.hX,C.bx,C.TO,H.pW,A.gD,A.$L,V.ey,v.YE,v.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.mD,c.Ke,c.ge,c.ev,c.yh,c.XQ,c.Gk,c.Q2,w.NW,P.Vv,P.$V,u.JJ,u.uU],styles:[".mat-column-group_actions[_ngcontent-%COMP%] .part-group-head[_ngcontent-%COMP%], .mat-column-group_actions[_ngcontent-%COMP%] .part-group-details[_ngcontent-%COMP%]{min-height:3rem}.mat-column-group_actions[_ngcontent-%COMP%] .btn-part-expand[_ngcontent-%COMP%]{min-width:8rem;width:8rem;margin:0}.mat-column-group_actions[_ngcontent-%COMP%] .btn-part-info[_ngcontent-%COMP%]{min-width:7rem;margin:0}.mat-column-group_firstPartTimestamp[_ngcontent-%COMP%] .part-row-span[_ngcontent-%COMP%]:not(:first-of-type){padding-left:2rem}.part-row-span[_ngcontent-%COMP%]{min-height:3rem}.mat-column-group_firstPartTimestamp[_ngcontent-%COMP%]{min-width:11rem}"]}),o})();var j=g(6534);function ei(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Description is required."),t.qZA())}function ni(i,o){if(1&i&&(t.TgZ(0,"mat-option",25),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&i){const n=o.$implicit;t.Q6J("value",n),t.xp6(1),t.Oqu(t.lcZ(2,2,n))}}function ii(i,o){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Oqu(n.invoiceError)}}function ai(i,o){if(1&i&&(t.TgZ(0,"div",26),t._UZ(1,"fa-icon",27),t.YNc(2,ii,2,1,"span",11),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Q6J("icon",n.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==n.invoiceError)}}let oi=(()=>{var i;class o{constructor(e,a,s,r,p,x){this.dialogRef=e,this.data=a,this.store=s,this.decimalPipe=r,this.commonService=p,this.actions=x,this.faExclamationTriangle=L.eHv,this.selNode={},this.description="",this.invoiceValue=null,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(f.LR).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(f.yD).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.actions.pipe((0,_.R)(this.unSubs[2]),(0,Y.h)(e=>e.type===l.lr.UPDATE_API_CALL_STATUS_ECL)).subscribe(e=>{e.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&"CreateInvoice"===e.payload.action&&(e.payload.status===l.Bn.ERROR&&(this.invoiceError=e.payload.message),e.payload.status===l.Bn.COMPLETED&&this.dialogRef.close())})}onAddInvoice(e){if(this.invoiceError="",!this.description)return!0;let a=this.expiry?this.expiry:l.$Y;this.expiry&&this.selTimeUnit!==l.Qk.SECS&&(a=this.commonService.convertTime(this.expiry,this.selTimeUnit,l.Qk.SECS));let s=null;s=this.invoiceValue?{description:this.description,expireIn:a,amountMsat:1e3*this.invoiceValue}:{description:this.description,expireIn:a},this.store.dispatch((0,k.Z$)({payload:s}))}resetData(){this.description="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint="",this.selTimeUnit=l.Qk.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode&&this.selNode.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[3])).subscribe({next:e=>{this.invoiceValueHint="= "+e.symbol+this.decimalPipe.transform(e.OTHER,l.Xz.OTHER)+" "+e.unit},error:e=>{this.invoiceValueHint="Conversion Error: "+e}}))}onTimeUnitChange(e){this.expiry&&this.selTimeUnit!==e.value&&(this.expiry=this.commonService.convertTime(this.expiry,this.selTimeUnit,e.value)),this.selTimeUnit=e.value}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(D.so),t.Y36(D.WI),t.Y36(E.yh),t.Y36(u.JJ),t.Y36(M.v),t.Y36(K.eX))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-create-invoices"]],decls:41,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 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"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end"],["matInput","","autoFocus","","tabindex","2","name","description","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between start","fxFlex","100"],["fxLayout","column","fxFlex","40"],["matInput","","type","number","tabindex","3","name","invValue",3,"step","min","ngModel","ngModelChange","keyup"],["matSuffix",""],["fxLayout","column","fxFlex","30"],["matInput","","type","number","name","exp","tabindex","4",3,"step","min","ngModel","ngModelChange"],["fxLayout","column","fxFlex","26"],["tabindex","5","name","timeUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","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"]],template:function(e,a){if(1&e){const s=t.EpF();t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Create Invoice"),t.qZA()(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8)(11,"mat-form-field",9)(12,"mat-label"),t._uU(13,"Description"),t.qZA(),t.TgZ(14,"input",10),t.NdJ("ngModelChange",function(p){return a.description=p}),t.qZA(),t.YNc(15,ei,2,0,"mat-error",11),t.qZA(),t.TgZ(16,"div",12)(17,"mat-form-field",13)(18,"mat-label"),t._uU(19,"Amount"),t.qZA(),t.TgZ(20,"input",14),t.NdJ("ngModelChange",function(p){return a.invoiceValue=p})("keyup",function(){return a.onInvoiceValueChange()}),t.qZA(),t.TgZ(21,"span",15),t._uU(22," Sats "),t.qZA(),t.TgZ(23,"mat-hint"),t._uU(24),t.qZA()(),t.TgZ(25,"mat-form-field",16)(26,"mat-label"),t._uU(27,"Expiry"),t.qZA(),t.TgZ(28,"input",17),t.NdJ("ngModelChange",function(p){return a.expiry=p}),t.qZA(),t.TgZ(29,"span",15),t._uU(30),t.ALo(31,"titlecase"),t.qZA()(),t.TgZ(32,"mat-form-field",18)(33,"mat-select",19),t.NdJ("selectionChange",function(p){return a.onTimeUnitChange(p)}),t.YNc(34,ni,3,4,"mat-option",20),t.qZA()()(),t.YNc(35,ai,3,2,"div",21),t.TgZ(36,"div",22)(37,"button",23),t.NdJ("click",function(){return a.resetData()}),t._uU(38,"Clear Field"),t.qZA(),t.TgZ(39,"button",24),t.NdJ("click",function(){t.CHM(s);const p=t.MAs(10);return t.KtG(a.onAddInvoice(p))}),t._uU(40,"Create Invoice"),t.qZA()()()()()()}2&e&&(t.xp6(6),t.Q6J("mat-dialog-close",!1),t.xp6(8),t.Q6J("ngModel",a.description),t.xp6(1),t.Q6J("ngIf",!a.description),t.xp6(5),t.Q6J("step",100)("min",1)("ngModel",a.invoiceValue),t.xp6(4),t.Oqu(a.invoiceValueHint),t.xp6(4),t.Q6J("step",a.selTimeUnit===a.timeUnitEnum.SECS?300:a.selTimeUnit===a.timeUnitEnum.MINS?10:a.selTimeUnit===a.timeUnitEnum.HOURS?2:1)("min",1)("ngModel",a.expiry),t.xp6(2),t.hij("",t.lcZ(31,14,a.selTimeUnit)," "),t.xp6(3),t.Q6J("value",a.selTimeUnit),t.xp6(1),t.Q6J("ngForOf",a.timeUnits),t.xp6(1),t.Q6J("ngIf",""!==a.invoiceError))},dependencies:[u.sg,u.O5,d._Y,d.Fj,d.wV,d.JJ,d.JL,d.Q7,d.qQ,d.On,d.F,I.BN,h.xw,h.Wh,h.yH,D.ZT,F.lW,T.dn,T.dk,Q.Nt,C.KE,C.hX,C.bx,C.TO,C.R9,A.gD,V.ey,$.h,j.q,u.rS]}),o})();var si=g(7766);function li(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Description is required."),t.qZA())}function ri(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"form",4,5)(2,"mat-form-field",6)(3,"mat-label"),t._uU(4,"Description"),t.qZA(),t.TgZ(5,"input",7),t.NdJ("ngModelChange",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.description=a)}),t.qZA(),t.YNc(6,li,2,0,"mat-error",8),t.qZA(),t.TgZ(7,"mat-form-field",9)(8,"mat-label"),t._uU(9,"Amount"),t.qZA(),t.TgZ(10,"input",10,11),t.NdJ("ngModelChange",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.invoiceValue=a)})("keyup",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onInvoiceValueChange())}),t.qZA(),t.TgZ(12,"span",12),t._uU(13," Sats "),t.qZA(),t.TgZ(14,"mat-hint"),t._uU(15),t.qZA()(),t.TgZ(16,"div",13)(17,"button",14),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.resetData())}),t._uU(18,"Clear Field"),t.qZA(),t.TgZ(19,"button",15),t.NdJ("click",function(){t.CHM(n);const a=t.MAs(1),s=t.oxw();return t.KtG(s.onAddInvoice(a))}),t._uU(20,"Create Invoice"),t.qZA()()()}if(2&i){const n=t.oxw();t.xp6(5),t.Q6J("ngModel",n.description),t.xp6(1),t.Q6J("ngIf",!n.description),t.xp6(4),t.Q6J("step",100)("min",1)("ngModel",n.invoiceValue),t.xp6(5),t.Oqu(n.invoiceValueHint)}}function ci(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",16)(1,"button",17),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.openCreateInvoiceModal())}),t._uU(2,"Create Invoice"),t.qZA()()}}function ui(i,o){if(1&i&&(t.TgZ(0,"mat-option",55),t._uU(1),t.qZA()),2&i){const n=o.$implicit,e=t.oxw(2);t.Q6J("value",n),t.xp6(1),t.Oqu(e.getLabel(n))}}function pi(i,o){1&i&&t._UZ(0,"mat-progress-bar",56)}function mi(i,o){1&i&&t._UZ(0,"th",57)}const mt=function(i){return{"mr-0":i}};function di(i,o){if(1&i&&t._UZ(0,"span",62),2&i){const n=t.oxw(3);t.Q6J("ngClass",t.VKq(1,mt,n.screenSize===n.screenSizeEnum.XS))}}function hi(i,o){if(1&i&&t._UZ(0,"span",63),2&i){const n=t.oxw(3);t.Q6J("ngClass",t.VKq(1,mt,n.screenSize===n.screenSizeEnum.XS))}}function _i(i,o){if(1&i&&t._UZ(0,"span",64),2&i){const n=t.oxw(3);t.Q6J("ngClass",t.VKq(1,mt,n.screenSize===n.screenSizeEnum.XS))}}function gi(i,o){if(1&i&&(t.TgZ(0,"td",58),t.YNc(1,di,1,3,"span",59),t.YNc(2,hi,1,3,"span",60),t.YNc(3,_i,1,3,"span",61),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Q6J("ngIf","received"===(null==n?null:n.status)),t.xp6(1),t.Q6J("ngIf","unpaid"===(null==n?null:n.status)),t.xp6(1),t.Q6J("ngIf",!(null!=n&&n.status)||"expired"===(null==n?null:n.status)||"unknown"===(null==n?null:n.status))}}function fi(i,o){1&i&&(t.TgZ(0,"th",65),t._uU(1,"Date Created"),t.qZA())}function Ci(i,o){if(1&i&&(t.TgZ(0,"td",58),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*(null==n?null:n.timestamp),"dd/MMM/y HH:mm"))}}function xi(i,o){1&i&&(t.TgZ(0,"th",65),t._uU(1,"Date Expiry"),t.qZA())}function yi(i,o){if(1&i&&(t.TgZ(0,"td",58),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*(null==n?null:n.expiresAt),"dd/MMM/y HH:mm")||"-")}}function bi(i,o){1&i&&(t.TgZ(0,"th",65),t._uU(1,"Date Settled"),t.qZA())}function Li(i,o){if(1&i&&(t.TgZ(0,"td",58),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*(null==n?null:n.receivedAt),"dd/MMM/y HH:mm")||"-")}}function Ti(i,o){1&i&&(t.TgZ(0,"th",65),t._uU(1,"Node ID"),t.qZA())}const dt=function(i){return{width:i}};function vi(i,o){if(1&i&&(t.TgZ(0,"td",58)(1,"div",66)(2,"span",67),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,dt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.nodeId)}}function Zi(i,o){1&i&&(t.TgZ(0,"th",65),t._uU(1,"Description"),t.qZA())}function Si(i,o){if(1&i&&(t.TgZ(0,"td",58)(1,"div",66)(2,"span",67),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,dt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.description)}}function Ai(i,o){1&i&&(t.TgZ(0,"th",65),t._uU(1,"Payment Hash"),t.qZA())}function Ei(i,o){if(1&i&&(t.TgZ(0,"td",58)(1,"div",66)(2,"span",67),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,dt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.paymentHash)}}function wi(i,o){1&i&&(t.TgZ(0,"th",68),t._uU(1,"Amount (Sats)"),t.qZA())}function Ii(i,o){if(1&i&&(t.TgZ(0,"td",58)(1,"span",69),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.Oqu(null!=n&&n.amount?t.xi3(3,1,null==n?null:n.amount,"1.0-0"):"-")}}function Fi(i,o){1&i&&(t.TgZ(0,"th",70),t._uU(1," Amount Settled (Sats)"),t.qZA())}function qi(i,o){if(1&i&&(t.TgZ(0,"td",58)(1,"span",69),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.Oqu(null!=n&&n.amountSettled?t.xi3(3,1,null==n?null:n.amountSettled,"1.0-0"):"-")}}function Ni(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"th",71)(1,"div",72)(2,"mat-select",73),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",74),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.onDownloadCSV())}),t._uU(5,"Download CSV"),t.qZA()()()()}}function Oi(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"td",75)(1,"div",72)(2,"mat-select",76),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",74),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw(2);return t.KtG(r.onInvoiceClick(s))}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",74),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw(2);return t.KtG(r.onRefreshInvoice(s))}),t._uU(7,"Refresh"),t.qZA()()()()}}function Pi(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"No invoice available."),t.qZA())}function ki(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"Getting invoices..."),t.qZA())}function Ui(i,o){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&i){const n=t.oxw(3);t.xp6(1),t.Oqu(n.errorMessage)}}function Ri(i,o){if(1&i&&(t.TgZ(0,"td",77),t.YNc(1,Pi,2,0,"p",8),t.YNc(2,ki,2,0,"p",8),t.YNc(3,Ui,2,1,"p",8),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=n.invoices&&n.invoices.data)||(null==n.invoices||null==n.invoices.data?null:n.invoices.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.invoices&&n.invoices.data)||(null==n.invoices||null==n.invoices.data?null:n.invoices.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.invoices&&n.invoices.data)||(null==n.invoices||null==n.invoices.data?null:n.invoices.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}const Mi=function(i){return{"display-none":i}};function Di(i,o){if(1&i&&t._UZ(0,"tr",78),2&i){const n=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Mi,(null==n.invoices?null:n.invoices.data)&&(null==n.invoices||null==n.invoices.data?null:n.invoices.data.length)>0))}}function Ji(i,o){1&i&&t._UZ(0,"tr",79)}function Hi(i,o){1&i&&t._UZ(0,"tr",80)}const Qi=function(){return["all"]},Yi=function(i){return{"error-border":i}},Bi=function(){return["no_invoice"]};function Vi(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",18)(1,"div",19)(2,"div",20),t._UZ(3,"fa-icon",21),t.TgZ(4,"span",22),t._uU(5,"Invoices History"),t.qZA()(),t.TgZ(6,"div",23)(7,"mat-form-field",24)(8,"mat-label"),t._uU(9,"Filter By"),t.qZA(),t.TgZ(10,"mat-select",25),t.NdJ("ngModelChange",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.selFilterBy=a)})("selectionChange",function(){t.CHM(n);const a=t.oxw();return a.selFilter="",t.KtG(a.applyFilter())}),t.TgZ(11,"perfect-scrollbar"),t.YNc(12,ui,2,2,"mat-option",26),t.qZA()()(),t.TgZ(13,"mat-form-field",24)(14,"mat-label"),t._uU(15,"Filter"),t.qZA(),t.TgZ(16,"input",27),t.NdJ("ngModelChange",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.selFilter=a)})("input",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.applyFilter())})("keyup",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.applyFilter())}),t.qZA()()()(),t.TgZ(17,"div",28),t.YNc(18,pi,1,0,"mat-progress-bar",29),t.TgZ(19,"table",30,31),t.ynx(21,32),t.YNc(22,mi,1,0,"th",33),t.YNc(23,gi,4,3,"td",34),t.BQk(),t.ynx(24,35),t.YNc(25,fi,2,0,"th",36),t.YNc(26,Ci,3,4,"td",34),t.BQk(),t.ynx(27,37),t.YNc(28,xi,2,0,"th",36),t.YNc(29,yi,3,4,"td",34),t.BQk(),t.ynx(30,38),t.YNc(31,bi,2,0,"th",36),t.YNc(32,Li,3,4,"td",34),t.BQk(),t.ynx(33,39),t.YNc(34,Ti,2,0,"th",36),t.YNc(35,vi,4,4,"td",34),t.BQk(),t.ynx(36,40),t.YNc(37,Zi,2,0,"th",36),t.YNc(38,Si,4,4,"td",34),t.BQk(),t.ynx(39,41),t.YNc(40,Ai,2,0,"th",36),t.YNc(41,Ei,4,4,"td",34),t.BQk(),t.ynx(42,42),t.YNc(43,wi,2,0,"th",43),t.YNc(44,Ii,4,4,"td",34),t.BQk(),t.ynx(45,44),t.YNc(46,Fi,2,0,"th",45),t.YNc(47,qi,4,4,"td",34),t.BQk(),t.ynx(48,46),t.YNc(49,Ni,6,0,"th",47),t.YNc(50,Oi,8,0,"td",48),t.BQk(),t.ynx(51,49),t.YNc(52,Ri,4,3,"td",50),t.BQk(),t.YNc(53,Di,1,3,"tr",51),t.YNc(54,Ji,1,0,"tr",52),t.YNc(55,Hi,1,0,"tr",53),t.qZA()(),t._UZ(56,"mat-paginator",54),t.qZA()}if(2&i){const n=t.oxw();t.xp6(3),t.Q6J("icon",n.faHistory),t.xp6(7),t.Q6J("ngModel",n.selFilterBy),t.xp6(2),t.Q6J("ngForOf",t.DdM(15,Qi).concat(n.displayedColumns.slice(0,-1))),t.xp6(4),t.Q6J("ngModel",n.selFilter),t.xp6(2),t.Q6J("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("matSortActive",n.tableSetting.sortBy)("matSortDirection",n.tableSetting.sortOrder)("dataSource",n.invoices)("ngClass",t.VKq(16,Yi,""!==n.errorMessage)),t.xp6(34),t.Q6J("matFooterRowDef",t.DdM(18,Bi)),t.xp6(1),t.Q6J("matHeaderRowDef",n.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",n.displayedColumns),t.xp6(1),t.Q6J("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS)}}let Et=(()=>{var i;class o{constructor(e,a,s,r,p,x,N){this.logger=e,this.store=a,this.decimalPipe=s,this.commonService=r,this.datePipe=p,this.actions=x,this.camelCaseWithSpaces=N,this.calledFrom="transactions",this.faHistory=L.qO$,this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="transactions",this.tableSetting={tableId:"invoices",recordsPerPage:l.IV,sortBy:"expiresAt",sortOrder:l.Pi.DESCENDING},this.selNode={},this.newlyAddedInvoiceMemo="",this.newlyAddedInvoiceValue=0,this.description="",this.invoiceValue=null,this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.invoices=new c.by([]),this.invoiceJSONArr=[],this.information={},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],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(f.LR).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(f.yD).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.store.select(f.nF).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=e.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||l.c3.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("status"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(f.Ef).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.invoiceJSONArr=e.invoices&&e.invoices.length>0?e.invoices:[],this.invoiceJSONArr&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadInvoicesTable(this.invoiceJSONArr),this.logger.info(e)}),this.actions.pipe((0,_.R)(this.unSubs[4]),(0,Y.h)(e=>e.type===l.lr.SET_LOOKUP_ECL||e.type===l.lr.UPDATE_API_CALL_STATUS_ECL)).subscribe(e=>{e.type===l.lr.SET_LOOKUP_ECL&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&e.payload&&(this.updateInvoicesData(JSON.parse(JSON.stringify(e.payload))),this.loadInvoicesTable(this.invoiceJSONArr))})}ngAfterViewInit(){this.invoiceJSONArr&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadInvoicesTable(this.invoiceJSONArr)}openCreateInvoiceModal(){this.store.dispatch((0,S.qR)({payload:{data:{pageSize:this.pageSize,component:oi}}}))}onAddInvoice(e){if(!this.description)return!0;const a=this.expiry?this.expiry:l.$Y;this.newlyAddedInvoiceMemo="ulbl"+Math.random().toString(36).slice(2)+Date.now(),this.newlyAddedInvoiceValue=this.invoiceValue;let s=null;s=this.invoiceValue?{description:this.description,expireIn:a,amountMsat:1e3*this.invoiceValue}:{description:this.description,expireIn:a},this.store.dispatch((0,k.Z$)({payload:s})),this.resetData()}onInvoiceClick(e){this.store.dispatch((0,S.qR)({payload:{data:{invoice:e,newlyAdded:!1,component:si.R}}}))}onRefreshInvoice(e){this.store.dispatch((0,k.n7)({payload:e.paymentHash}))}updateInvoicesData(e){this.invoiceJSONArr=this.invoiceJSONArr?.map(a=>a.paymentHash===e.paymentHash?e:a)}applyFilter(){this.invoices.filter=this.selFilter.trim().toLowerCase()}getLabel(e){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(s=>s.column===e);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):this.commonService.titleCase(e)}setFilterPredicate(){this.invoices.filterPredicate=(e,a)=>{let s="";switch(this.selFilterBy){case"all":s=(e.timestamp?this.datePipe.transform(new Date(1e3*e.timestamp),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(e).toLowerCase();break;case"status":s=e?.status&&"expired"!==e?.status&&"unknown"!==e?.status?e.status?.toLowerCase():"expired/unknown";break;case"timestamp":case"expiresAt":case"receivedAt":s=this.datePipe.transform(new Date(1e3*(e[this.selFilterBy]||0)),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;case"amount":case"amountSettled":s=e[this.selFilterBy]?.toString()||"-";break;default:s=typeof e[this.selFilterBy]>"u"?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return"status"===this.selFilterBy?0===s.indexOf(a):s.includes(a)}}loadInvoicesTable(e){this.invoices=new c.by(e?[...e]:[]),this.invoices.sort=this.sort,this.invoices.sortingDataAccessor=(a,s)=>a[s]&&isNaN(a[s])?a[s].toLocaleLowerCase():a[s]?+a[s]:null,this.invoices.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter()}resetData(){this.description="",this.invoiceValue=null,this.expiry=null,this.invoiceValueHint=""}onInvoiceValueChange(){this.selNode&&this.selNode.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[5])).subscribe({next:e=>{this.invoiceValueHint="= "+e.symbol+this.decimalPipe.transform(e.OTHER,l.Xz.OTHER)+" "+e.unit},error:e=>{this.invoiceValueHint="Conversion Error: "+e}}))}onDownloadCSV(){this.invoices.data&&this.invoices.data.length>0&&this.commonService.downloadFile(this.invoices.data,"Invoices")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(E.yh),t.Y36(u.JJ),t.Y36(M.v),t.Y36(u.uU),t.Y36(K.eX),t.Y36(z.i1))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-lightning-invoices"]],viewQuery:function(e,a){if(1&e&&(t.Gf(v.YE,5),t.Gf(w.NW,5)),2&e){let s;t.iGM(s=t.CRH())&&(a.sort=s.first),t.iGM(s=t.CRH())&&(a.paginator=s.first)}},inputs:{calledFrom:"calledFrom"},features:[t._Bn([{provide:A.PG,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.ye,useValue:(0,l.pt)("Invoices")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100"],["addInvoiceForm","ngForm"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["matInput","","tabindex","2","name","description","required","true",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end"],["matInput","","type","number","tabindex","3","name","invValue",3,"step","min","ngModel","ngModelChange","keyup"],["invcVal","ngModel"],["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-flat-button","","color","primary","tabindex","8",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["table",""],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Status",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","expiresAt"],["matColumnDef","receivedAt"],["matColumnDef","nodeId"],["matColumnDef","description"],["matColumnDef","paymentHash"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amountSettled"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","class","p1-3",4,"matHeaderCellDef"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Status"],["mat-cell",""],["class","dot green","matTooltip","Received","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Unpaid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Expired/Unknown","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Received","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Unpaid","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Expired/Unknown","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",1,"p1-3"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","4",1,"mr-0"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t.YNc(1,ri,21,6,"form",1),t.YNc(2,ci,3,0,"div",2),t.YNc(3,Vi,57,19,"div",3),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf","home"===a.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===a.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===a.calledFrom))},dependencies:[u.mk,u.sg,u.O5,u.PC,d._Y,d.Fj,d.wV,d.JJ,d.JL,d.Q7,d.qQ,d.On,d.F,I.BN,h.xw,h.Wh,h.yH,Z.oO,Z.Zl,F.lW,Q.Nt,C.KE,C.hX,C.bx,C.TO,C.R9,H.pW,A.gD,A.$L,V.ey,v.YE,v.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.mD,c.Ke,c.ge,c.ev,c.yh,c.XQ,c.Gk,c.Q2,W.gM,w.NW,P.Vv,P.$V,j.q,u.JJ,u.uU],styles:[".mat-column-status[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}"]}),o})();function zi(i,o){if(1&i&&(t.TgZ(0,"button",26)(1,"mat-icon"),t._uU(2,"more_vert"),t.qZA()()),2&i){t.oxw();const n=t.MAs(11);t.Q6J("matMenuTriggerFor",n)}}function Gi(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){const s=t.CHM(n).index,r=t.oxw().$implicit,p=t.oxw(2);return t.KtG(p.onNavigateTo(r.links[s]))}),t._uU(1),t.qZA()}if(2&i){const n=o.$implicit;t.xp6(1),t.Oqu(n)}}function Wi(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(3);return t.KtG(a.onsortChannelsBy())}),t._uU(1),t.qZA()}if(2&i){const n=t.oxw(3);t.xp6(1),t.hij("Sort By ","Balance Score"===n.sortField?"Capacity":"Balance Score","")}}function Ki(i,o){1&i&&t._UZ(0,"mat-progress-bar",28)}function Xi(i,o){if(1&i&&t._UZ(0,"rtl-ecl-node-info",29),2&i){const n=t.oxw(3);t.Q6J("information",n.information)("showColorFieldSeparately",!1)}}function $i(i,o){if(1&i&&t._UZ(0,"rtl-ecl-balances-info",30),2&i){const n=t.oxw(3);t.Q6J("balances",n.balances)("errorMessage",n.errorMessages[2]+" "+n.errorMessages[3])}}function ji(i,o){if(1&i&&t._UZ(0,"rtl-ecl-channel-capacity-info",31),2&i){const n=t.oxw(3);t.Q6J("sortBy",n.sortField)("channelBalances",n.channelBalances)("allChannels",n.allChannelsCapacity)("errorMessage",n.errorMessages[2])}}function ta(i,o){if(1&i&&t._UZ(0,"rtl-ecl-fee-info",32),2&i){const n=t.oxw(3);t.Q6J("fees",n.fees)("errorMessage",n.errorMessages[1])}}function ea(i,o){if(1&i&&t._UZ(0,"rtl-ecl-channel-status-info",33),2&i){const n=t.oxw(3);t.Q6J("channelsStatus",n.channelsStatus)("errorMessage",n.errorMessages[2])}}function na(i,o){1&i&&(t.TgZ(0,"h3"),t._uU(1,"Error! Unable to find information!"),t.qZA())}const wt=function(i){return{"dashboard-card-content":!0,"error-border":i}};function ia(i,o){if(1&i&&(t.TgZ(0,"mat-grid-tile",8)(1,"mat-card",9)(2,"mat-card-header")(3,"mat-card-title",10)(4,"div"),t._UZ(5,"fa-icon",11),t.TgZ(6,"span"),t._uU(7),t.qZA()(),t.TgZ(8,"div"),t.YNc(9,zi,3,1,"button",12),t.TgZ(10,"mat-menu",13,14),t.YNc(12,Gi,2,1,"button",15),t.YNc(13,Wi,2,1,"button",16),t.qZA()()()(),t.TgZ(14,"mat-card-content",17),t.YNc(15,Ki,1,0,"mat-progress-bar",18),t.TgZ(16,"div",19),t.YNc(17,Xi,1,2,"rtl-ecl-node-info",20),t.YNc(18,$i,1,2,"rtl-ecl-balances-info",21),t.YNc(19,ji,1,4,"rtl-ecl-channel-capacity-info",22),t.YNc(20,ta,1,2,"rtl-ecl-fee-info",23),t.YNc(21,ea,1,2,"rtl-ecl-channel-status-info",24),t.YNc(22,na,2,0,"h3",25),t.qZA()()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.Q6J("colspan",n.cols)("rowspan",n.rows),t.xp6(5),t.Q6J("icon",n.icon),t.xp6(2),t.Oqu(n.title),t.xp6(2),t.Q6J("ngIf",n.links[0]),t.xp6(3),t.Q6J("ngForOf",n.goToOptions),t.xp6(1),t.Q6J("ngIf","capacity"===n.id),t.xp6(1),t.s9C("fxFlex","capacity"===n.id?90:70),t.Q6J("ngClass",t.VKq(16,wt,"node"===n.id&&e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.ERROR||"balance"===n.id&&(e.apiCallStatusAllChannels.status===e.apiCallStatusEnum.ERROR||e.apiCallStatusOCBal.status===e.apiCallStatusEnum.ERROR)||("capacity"===n.id||"status"===n.id)&&e.apiCallStatusAllChannels.status===e.apiCallStatusEnum.ERROR||"fee"===n.id&&e.apiCallStatusFees.status===e.apiCallStatusEnum.ERROR)),t.xp6(1),t.Q6J("ngIf","node"===n.id&&e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.INITIATED||"balance"===n.id&&(e.apiCallStatusAllChannels.status===e.apiCallStatusEnum.INITIATED||e.apiCallStatusOCBal.status===e.apiCallStatusEnum.INITIATED)||("capacity"===n.id||"status"===n.id)&&e.apiCallStatusAllChannels.status===e.apiCallStatusEnum.INITIATED||"fee"===n.id&&e.apiCallStatusFees.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngSwitch",n.id),t.xp6(1),t.Q6J("ngSwitchCase","node"),t.xp6(1),t.Q6J("ngSwitchCase","balance"),t.xp6(1),t.Q6J("ngSwitchCase","capacity"),t.xp6(1),t.Q6J("ngSwitchCase","fee"),t.xp6(1),t.Q6J("ngSwitchCase","status")}}function aa(i,o){if(1&i&&(t.TgZ(0,"div",2)(1,"div",3),t._UZ(2,"fa-icon",4),t.TgZ(3,"span",5),t._uU(4),t.qZA()(),t.TgZ(5,"mat-grid-list",6),t.YNc(6,ia,23,18,"mat-grid-tile",7),t.qZA()()),2&i){const n=t.oxw();t.xp6(2),t.Q6J("icon",n.apiCallStatusNodeInfo.status===n.apiCallStatusEnum.ERROR?n.faFrown:n.faSmile),t.xp6(2),t.Oqu(n.apiCallStatusNodeInfo.status===n.apiCallStatusEnum.COMPLETED?"Welcome "+n.information.alias+"! Your node is up and running.":n.apiCallStatusNodeInfo.status===n.apiCallStatusEnum.INITIATED?"Wait! Getting your node information...":"Error! Please check the server connection."),t.xp6(1),t.Q6J("rowHeight",n.operatorCardHeight),t.xp6(1),t.Q6J("ngForOf",n.operatorCards)}}function oa(i,o){if(1&i&&(t.TgZ(0,"button",26)(1,"mat-icon"),t._uU(2,"more_vert"),t.qZA()()),2&i){t.oxw();const n=t.MAs(9);t.Q6J("matMenuTriggerFor",n)}}function sa(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){const s=t.CHM(n).index,r=t.oxw(2).$implicit,p=t.oxw(2);return t.KtG(p.onNavigateTo(r.links[s]))}),t._uU(1),t.qZA()}if(2&i){const n=o.$implicit;t.xp6(1),t.Oqu(n)}}function la(i,o){if(1&i&&(t.TgZ(0,"mat-card-header")(1,"mat-card-title",10)(2,"div"),t._UZ(3,"fa-icon",11),t.TgZ(4,"span"),t._uU(5),t.qZA()(),t.TgZ(6,"div"),t.YNc(7,oa,3,1,"button",12),t.TgZ(8,"mat-menu",13,42),t.YNc(10,sa,2,1,"button",15),t.qZA()()()()),2&i){const n=t.oxw().$implicit;t.xp6(3),t.Q6J("icon",n.icon),t.xp6(2),t.Oqu(n.title),t.xp6(2),t.Q6J("ngIf",n.links[0]),t.xp6(3),t.Q6J("ngForOf",n.goToOptions)}}function ra(i,o){1&i&&t._UZ(0,"mat-progress-bar",28)}function ca(i,o){if(1&i&&t._UZ(0,"rtl-ecl-node-info",43),2&i){const n=t.oxw(3);t.Q6J("information",n.information)}}function ua(i,o){if(1&i&&t._UZ(0,"rtl-ecl-balances-info",30),2&i){const n=t.oxw(3);t.Q6J("balances",n.balances)("errorMessage",n.errorMessages[2]+" "+n.errorMessages[3])}}function pa(i,o){if(1&i&&t._UZ(0,"rtl-ecl-channel-liquidity-info",44),2&i){const n=t.oxw(3);t.Q6J("direction","In")("totalLiquidity",n.totalInboundLiquidity)("allChannels",n.allInboundChannels)("errorMessage",n.errorMessages[2])}}function ma(i,o){if(1&i&&t._UZ(0,"rtl-ecl-channel-liquidity-info",44),2&i){const n=t.oxw(3);t.Q6J("direction","Out")("totalLiquidity",n.totalOutboundLiquidity)("allChannels",n.allOutboundChannels)("errorMessage",n.errorMessages[2])}}function da(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){const s=t.CHM(n).index,r=t.oxw(2).$implicit,p=t.oxw(2);return t.KtG(p.onNavigateTo(r.links[s]))}),t._uU(1),t.qZA()}if(2&i){const n=o.$implicit;t.xp6(1),t.Oqu(n)}}function ha(i,o){if(1&i&&(t.TgZ(0,"span",45)(1,"mat-tab-group",46)(2,"mat-tab",47),t._UZ(3,"rtl-ecl-lightning-invoices",48),t.qZA(),t.TgZ(4,"mat-tab",49),t._UZ(5,"rtl-ecl-lightning-payments",50),t.qZA()(),t.TgZ(6,"div",51)(7,"button",26)(8,"mat-icon"),t._uU(9,"more_vert"),t.qZA()(),t.TgZ(10,"mat-menu",13,52),t.YNc(12,da,2,1,"button",15),t.qZA()()()),2&i){const n=t.MAs(11),e=t.oxw().$implicit;t.xp6(3),t.Q6J("calledFrom","home"),t.xp6(2),t.Q6J("calledFrom","home"),t.xp6(2),t.Q6J("matMenuTriggerFor",n),t.xp6(5),t.Q6J("ngForOf",e.goToOptions)}}function _a(i,o){1&i&&(t.TgZ(0,"h3"),t._uU(1,"Error! Unable to find information!"),t.qZA())}const ga=function(i){return{"p-0":i}};function fa(i,o){if(1&i&&(t.TgZ(0,"mat-grid-tile",8)(1,"mat-card",36),t.YNc(2,la,11,4,"mat-card-header",37),t.TgZ(3,"mat-card-content",38),t.YNc(4,ra,1,0,"mat-progress-bar",18),t.TgZ(5,"div",19),t.YNc(6,ca,1,1,"rtl-ecl-node-info",39),t.YNc(7,ua,1,2,"rtl-ecl-balances-info",21),t.YNc(8,pa,1,4,"rtl-ecl-channel-liquidity-info",40),t.YNc(9,ma,1,4,"rtl-ecl-channel-liquidity-info",40),t.YNc(10,ha,13,4,"span",41),t.YNc(11,_a,2,0,"h3",25),t.qZA()()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.Q6J("colspan",n.cols)("rowspan",n.rows),t.xp6(1),t.Q6J("ngClass",t.VKq(13,ga,"transactions"===n.id)),t.xp6(1),t.Q6J("ngIf","transactions"!==n.id),t.xp6(1),t.s9C("fxFlex","transactions"===n.id?100:"balance"===n.id?70:90),t.Q6J("ngClass",t.VKq(15,wt,"node"===n.id&&e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.ERROR||"balance"===n.id&&(e.apiCallStatusAllChannels.status===e.apiCallStatusEnum.ERROR||e.apiCallStatusOCBal.status===e.apiCallStatusEnum.ERROR)||("inboundLiq"===n.id||"outboundLiq"===n.id)&&e.apiCallStatusAllChannels.status===e.apiCallStatusEnum.ERROR)),t.xp6(1),t.Q6J("ngIf","node"===n.id&&e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.INITIATED||"balance"===n.id&&(e.apiCallStatusAllChannels.status===e.apiCallStatusEnum.INITIATED||e.apiCallStatusOCBal.status===e.apiCallStatusEnum.INITIATED)||("inboundLiq"===n.id||"outboundLiq"===n.id)&&e.apiCallStatusAllChannels.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngSwitch",n.id),t.xp6(1),t.Q6J("ngSwitchCase","node"),t.xp6(1),t.Q6J("ngSwitchCase","balance"),t.xp6(1),t.Q6J("ngSwitchCase","inboundLiq"),t.xp6(1),t.Q6J("ngSwitchCase","outboundLiq"),t.xp6(1),t.Q6J("ngSwitchCase","transactions")}}function Ca(i,o){if(1&i&&(t.TgZ(0,"div",34),t._UZ(1,"fa-icon",4),t.TgZ(2,"span",5),t._uU(3),t.qZA()(),t.TgZ(4,"mat-grid-list",35),t.YNc(5,fa,12,17,"mat-grid-tile",7),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Q6J("icon",n.faSmile),t.xp6(2),t.hij("Welcome ",n.information.alias,"! Your node is up and running."),t.xp6(1),t.Q6J("rowHeight",n.merchantCardHeight),t.xp6(1),t.Q6J("ngForOf",n.merchantCards)}}let xa=(()=>{var i;class o{constructor(e,a,s,r){this.logger=e,this.store=a,this.commonService=s,this.router=r,this.faSmile=vt.ctA,this.faFrown=vt.KfU,this.faAngleDoubleDown=L.Sbq,this.faAngleDoubleUp=L.Vfw,this.faChartPie=L.OS1,this.faBolt=L.BDt,this.faServer=L.xf3,this.faNetworkWired=L.kXW,this.userPersonaEnum=l.ol,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:0},this.selNode={},this.information={},this.channels=[],this.onchainBalance={},this.balances={onchain:-1,lightning:-1,total:0},this.channelsStatus={},this.allChannelsCapacity=[],this.allInboundChannels=[],this.allOutboundChannels=[],this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.operatorCards=[],this.merchantCards=[],this.screenSize="",this.operatorCardHeight="390px",this.merchantCardHeight="62px",this.sortField="Balance Score",this.errorMessages=["","","",""],this.apiCallStatusNodeInfo={status:l.Bn.COMPLETED},this.apiCallStatusFees={status:l.Bn.COMPLETED},this.apiCallStatusOCBal={status:l.Bn.COMPLETED},this.apiCallStatusAllChannels={status:l.Bn.COMPLETED},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],this.screenSize=this.commonService.getScreenSize(),this.screenSize===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","connections/channels/inactive"],icon:this.faNetworkWired,title:"Channels",cols:10,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:6,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:6,rows:4},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:6,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:6,rows:8}]):this.screenSize===l.cu.SM||this.screenSize===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","connections/channels/inactive"],icon:this.faNetworkWired,title:"Channels",cols:5,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:3,rows:4},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:3,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:3,rows:8}]):(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:4,rows:2},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:3,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/inactive"],icon:this.faNetworkWired,title:"Channels",cols:3,rows:1}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:2,rows:5},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:2,rows:10},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:2,rows:10},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:2,rows:5}])}ngOnInit(){this.store.select(f.LR).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(f.T$).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=e.apiCallStatus,this.apiCallStatusNodeInfo.status===l.Bn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message?this.apiCallStatusNodeInfo.message:""),this.information=e.information}),this.store.select(f.JG).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.errorMessages[1]="",this.apiCallStatusFees=e.apiCallStatus,this.apiCallStatusFees.status===l.Bn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message?this.apiCallStatusFees.message:""),this.fees=e.fees}),this.store.select(f.Xz).pipe((0,_.R)(this.unSubs[3]),(0,lt.M)(this.store.select(f.kY))).subscribe(([e,a])=>{this.errorMessages[2]="",this.errorMessages[3]="",this.apiCallStatusAllChannels=e.apiCallStatus,this.apiCallStatusOCBal=a.apiCallStatus,this.apiCallStatusAllChannels.status===l.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusAllChannels.message?JSON.stringify(this.apiCallStatusAllChannels.message):this.apiCallStatusAllChannels.message?this.apiCallStatusAllChannels.message:""),this.apiCallStatusOCBal.status===l.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusOCBal.message?JSON.stringify(this.apiCallStatusOCBal.message):this.apiCallStatusOCBal.message?this.apiCallStatusOCBal.message:""),this.channels=e.activeChannels,this.onchainBalance=a.onchainBalance,this.balances.onchain=this.onchainBalance.total||0,this.balances.lightning=e.lightningBalance.localBalance,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances);const s=e.lightningBalance.localBalance?+e.lightningBalance.localBalance:0,r=e.lightningBalance.remoteBalance?+e.lightningBalance.remoteBalance:0;this.channelBalances={localBalance:s,remoteBalance:r,balancedness:+(1-Math.abs((s-r)/(s+r))).toFixed(3)},this.channelsStatus=e.channelsStatus,this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.allChannelsCapacity=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.channels,"balancedness"))),this.allInboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.channels?.filter(x=>(x.toRemote||0)>0),"toRemote"))),this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.channels?.filter(x=>(x.toLocal||0)>0),"toLocal"))),this.channels.forEach(x=>{this.totalInboundLiquidity=this.totalInboundLiquidity+Math.ceil(x.toRemote||0),this.totalOutboundLiquidity=this.totalOutboundLiquidity+Math.floor(x.toLocal||0)}),this.logger.info(e)})}onNavigateTo(e){this.router.navigateByUrl("/ecl/"+e)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.allChannelsCapacity=this.channels.sort((e,a)=>{const s=+(e.toLocal||0)+ +(e.toRemote||0),r=+(a.toLocal||0)+ +(a.toRemote||0);return s>r?-1:s{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(E.yh),t.Y36(M.v),t.Y36(b.F0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-home"]],decls:3,vars:2,consts:[["fxLayout","column",4,"ngIf","ngIfElse"],["merchantDashboard",""],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","mb-2"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","10","gutterSize","20px",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",3,"colspan","rowspan",4,"ngFor","ngForOf"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",3,"colspan","rowspan"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card"],["fxLayoutAlign","space-between center"],[1,"mr-1",3,"icon"],["mat-icon-button","","class","more-button","aria-label","Toggle menu",3,"matMenuTriggerFor",4,"ngIf"],["xPosition","before",1,"dashboard-vert-menu"],["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-2"],["cols","6","gutterSize","20px",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card",3,"ngClass"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",3,"fxFlex","ngClass"],["fxFlex","100",3,"information",4,"ngSwitchCase"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","errorMessage",4,"ngSwitchCase"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",4,"ngSwitchCase"],["menuMerchant","matMenu"],["fxFlex","100",3,"information"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","errorMessage"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["mat-stretch-tabs","false","mat-align-tabs","start","fxLayout","column",1,"dashboard-tabs-group"],["label","Receive"],[1,"h-100",3,"calledFrom"],["label","Pay"],[3,"calledFrom"],[1,"underline"],["menuTransactions","matMenu"]],template:function(e,a){if(1&e&&(t.YNc(0,aa,7,4,"div",0),t.YNc(1,Ca,6,4,"ng-template",null,1,t.W1O)),2&e){const s=t.MAs(2);t.Q6J("ngIf",(null==a.selNode?null:a.selNode.userPersona)===a.userPersonaEnum.OPERATOR)("ngIfElse",s)}},dependencies:[u.mk,u.sg,u.O5,u.RF,u.n9,u.ED,I.BN,h.xw,h.Wh,h.yH,Z.oO,F.RK,T.a8,T.dn,T.dk,T.n5,Zt.Il,Zt.DX,rt.Hw,ct.VK,ct.OP,ct.p6,H.pW,q.uX,q.SP,Xt,te,ie,se,he,Ee,At,Et]}),o})();var ya=g(8377);const ba=["form"];function La(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Bitcoin address is required."),t.qZA())}function Ta(i,o){if(1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Oqu(n.amountError)}}function va(i,o){if(1&i&&(t.TgZ(0,"mat-option",29),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.Q6J("value",n),t.xp6(1),t.Oqu(n)}}function Za(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Target Confirmation Blocks is required."),t.qZA())}function Sa(i,o){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Oqu(n.sendFundError)}}function Aa(i,o){if(1&i&&(t.TgZ(0,"div",30),t._UZ(1,"fa-icon",31),t.YNc(2,Sa,2,1,"span",12),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Q6J("icon",n.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==n.sendFundError)}}let It=(()=>{var i;class o{constructor(e,a,s,r,p,x){this.dialogRef=e,this.logger=a,this.store=s,this.commonService=r,this.decimalPipe=p,this.actions=x,this.faExclamationTriangle=L.eHv,this.selNode={},this.addressTypes=[],this.selectedAddress=l._t[1],this.blockchainBalance={},this.information={},this.newAddress="",this.transaction={},this.sendFundError="",this.fiatConversion=!1,this.amountUnits=l.uA,this.selAmountUnit=l.uA[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=l.Xz,this.amountError="Amount is Required.",this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.store.select(ya.dT).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.fiatConversion=e.settings.fiatConversion,this.amountUnits=e.settings.currencyUnits,this.logger.info(e)}),this.actions.pipe((0,_.R)(this.unSubs[1]),(0,Y.h)(e=>e.type===l.lr.UPDATE_API_CALL_STATUS_ECL||e.type===l.lr.SEND_ONCHAIN_FUNDS_RES_ECL)).subscribe(e=>{e.type===l.lr.SEND_ONCHAIN_FUNDS_RES_ECL&&(this.store.dispatch((0,S.jW)({payload:"Fund Sent Successfully!"})),this.dialogRef.close()),e.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&e.payload.status===l.Bn.ERROR&&"SendOnchainFunds"===e.payload.action&&(this.sendFundError=e.payload.message)})}onSendFunds(){if(this.invalidValues)return!0;this.sendFundError="",this.transaction.amount&&this.selAmountUnit!==l.NT.SATS?this.commonService.convertCurrency(this.transaction.amount,this.selAmountUnit===this.amountUnits[2]?l.NT.OTHER:this.selAmountUnit,l.NT.SATS,this.amountUnits[2],this.fiatConversion).pipe((0,_.R)(this.unSubs[2])).subscribe({next:e=>{this.transaction.amount=parseInt(e[l.NT.SATS]),this.selAmountUnit=l.NT.SATS,this.store.dispatch((0,k.Iy)({payload:this.transaction}))},error:e=>{this.selAmountUnit=l.NT.SATS,this.amountError="Conversion Error: "+e}}):this.store.dispatch((0,k.Iy)({payload:this.transaction}))}get invalidValues(){return!this.transaction.address||""===this.transaction.address||!this.transaction.amount||this.transaction.amount<=0||!this.transaction.blocks||this.transaction.blocks<=0}resetData(){this.sendFundError="",this.transaction={}}onAmountUnitChange(e){const a=this,s=this.selAmountUnit===this.amountUnits[2]?l.NT.OTHER:this.selAmountUnit;let r=e.value===this.amountUnits[2]?l.NT.OTHER:e.value;this.transaction.amount&&this.selAmountUnit!==e.value&&this.commonService.convertCurrency(this.transaction.amount,s,r,this.amountUnits[2],this.fiatConversion).pipe((0,_.R)(this.unSubs[3])).subscribe({next:p=>{this.selAmountUnit=e.value,a.transaction.amount=+a.decimalPipe.transform(p[r],a.currencyUnitFormats[r]).replace(/,/g,"")},error:p=>{this.amountError="Conversion Error: "+p,this.selAmountUnit=s,r=s}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(D.so),t.Y36(R.mQ),t.Y36(E.yh),t.Y36(M.v),t.Y36(u.JJ),t.Y36(K.eX))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-on-chain-send-modal"]],viewQuery:function(e,a){if(1&e&&t.Gf(ba,7),2&e){let s;t.iGM(s=t.CRH())&&(a.form=s.first)}},decls:42,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 center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"overflow-x-hidden",3,"submit","reset"],["form","ngForm"],["fxLayout","column","fxFlex","55"],["matInput","","autoFocus","","tabindex","1","name","addr","required","",3,"ngModel","ngModelChange"],["addrs","ngModel"],[4,"ngIf"],["fxLayout","column","fxFlex","30"],["matInput","","name","amt","type","number","tabindex","2","required","",3,"step","min","ngModel","ngModelChange"],["amnt","ngModel"],["matSuffix",""],["fxLayout","column","fxFlex","10","fxLayoutAlign","start end"],["tabindex","3","required","","name","amountUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","60","fxLayoutAlign","space-between stretch","fxLayout","row wrap"],["fxLayout","column","fxFlex","48","fxLayoutAlign","start center"],["matInput","","type","number","name","blocks","tabindex","8","required","true",3,"step","min","ngModel","ngModelChange"],["blocks","ngModel"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit","tabindex","8"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Send Payment"),t.qZA()(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8),t.NdJ("submit",function(){return a.onSendFunds()})("reset",function(){return a.resetData()}),t.TgZ(11,"mat-form-field",9)(12,"mat-label"),t._uU(13,"Bitcoin Address"),t.qZA(),t.TgZ(14,"input",10,11),t.NdJ("ngModelChange",function(r){return a.transaction.address=r}),t.qZA(),t.YNc(16,La,2,0,"mat-error",12),t.qZA(),t.TgZ(17,"mat-form-field",13)(18,"mat-label"),t._uU(19,"Amount"),t.qZA(),t.TgZ(20,"input",14,15),t.NdJ("ngModelChange",function(r){return a.transaction.amount=r}),t.qZA(),t.TgZ(22,"span",16),t._uU(23),t.qZA(),t.YNc(24,Ta,2,1,"mat-error",12),t.qZA(),t.TgZ(25,"mat-form-field",17)(26,"mat-select",18),t.NdJ("selectionChange",function(r){return a.onAmountUnitChange(r)}),t.YNc(27,va,2,2,"mat-option",19),t.qZA()(),t.TgZ(28,"div",20)(29,"mat-form-field",21)(30,"mat-label"),t._uU(31,"Target Confirmation Blocks"),t.qZA(),t.TgZ(32,"input",22,23),t.NdJ("ngModelChange",function(r){return a.transaction.blocks=r}),t.qZA(),t.YNc(34,Za,2,0,"mat-error",12),t.qZA()(),t._UZ(35,"div",24),t.YNc(36,Aa,3,2,"div",25),t.TgZ(37,"div",26)(38,"button",27),t._uU(39,"Clear Fields"),t.qZA(),t.TgZ(40,"button",28),t._uU(41,"Send Funds"),t.qZA()()()()()()),2&e&&(t.xp6(6),t.Q6J("mat-dialog-close",!1),t.xp6(8),t.Q6J("ngModel",a.transaction.address),t.xp6(2),t.Q6J("ngIf",!a.transaction.address),t.xp6(4),t.Q6J("step",100)("min",0)("ngModel",a.transaction.amount),t.xp6(3),t.hij("",a.selAmountUnit," "),t.xp6(1),t.Q6J("ngIf",!a.transaction.amount),t.xp6(2),t.Q6J("value",a.selAmountUnit),t.xp6(1),t.Q6J("ngForOf",a.amountUnits),t.xp6(5),t.Q6J("step",1)("min",0)("ngModel",a.transaction.blocks),t.xp6(2),t.Q6J("ngIf",!a.transaction.blocks),t.xp6(2),t.Q6J("ngIf",""!==a.sendFundError))},dependencies:[u.sg,u.O5,d._Y,d.Fj,d.wV,d.JJ,d.JL,d.Q7,d.qQ,d.On,d.F,I.BN,h.xw,h.Wh,h.yH,D.ZT,F.lW,T.dn,T.dk,Q.Nt,C.KE,C.hX,C.TO,C.R9,A.gD,V.ey,$.h,j.q]}),o})();var ht=g(1203);function Ea(i,o){if(1&i&&(t.TgZ(0,"mat-option",34),t._uU(1),t.qZA()),2&i){const n=o.$implicit,e=t.oxw();t.Q6J("value",n),t.xp6(1),t.Oqu(e.getLabel(n))}}function wa(i,o){1&i&&t._UZ(0,"mat-progress-bar",35)}function Ia(i,o){1&i&&(t.TgZ(0,"th",36),t._uU(1,"Date/Time"),t.qZA())}function Fa(i,o){if(1&i&&(t.TgZ(0,"td",37),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*(null==n?null:n.timestamp),"dd/MMM/y HH:mm"))}}function qa(i,o){1&i&&(t.TgZ(0,"th",36),t._uU(1,"Address"),t.qZA())}const _t=function(i){return{width:i}};function Na(i,o){if(1&i&&(t.TgZ(0,"td",37)(1,"div",38)(2,"span",39),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,_t,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.address)}}function Oa(i,o){1&i&&(t.TgZ(0,"th",36),t._uU(1,"Blockhash"),t.qZA())}function Pa(i,o){if(1&i&&(t.TgZ(0,"td",37)(1,"div",38)(2,"span",39),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,_t,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.blockHash)}}function ka(i,o){1&i&&(t.TgZ(0,"th",36),t._uU(1,"Transaction ID"),t.qZA())}function Ua(i,o){if(1&i&&(t.TgZ(0,"td",37)(1,"div",38)(2,"span",39),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,_t,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.txid)}}function Ra(i,o){1&i&&(t.TgZ(0,"th",40),t._uU(1,"Amount (Sats)"),t.qZA())}function Ma(i,o){if(1&i&&(t.TgZ(0,"span",43),t._uU(1),t.ALo(2,"number"),t.qZA()),2&i){const n=t.oxw().$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,null==n?null:n.amount))}}function Da(i,o){if(1&i&&(t.TgZ(0,"span",44),t._uU(1),t.ALo(2,"number"),t.qZA()),2&i){const n=t.oxw().$implicit;t.xp6(1),t.hij("(",t.lcZ(2,1,-1*(null==n?null:n.amount)),")")}}function Ja(i,o){if(1&i&&(t.TgZ(0,"td",37),t.YNc(1,Ma,3,3,"span",41),t.YNc(2,Da,3,3,"span",42),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Q6J("ngIf",(null==n?null:n.amount)>0||0===(null==n?null:n.amount)),t.xp6(1),t.Q6J("ngIf",(null==n?null:n.amount)<0)}}function Ha(i,o){1&i&&(t.TgZ(0,"th",40),t._uU(1,"Fees (Sats)"),t.qZA())}function Qa(i,o){if(1&i&&(t.TgZ(0,"td",37)(1,"span",43),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==n?null:n.fees))}}function Ya(i,o){1&i&&(t.TgZ(0,"th",40),t._uU(1,"Confirmations"),t.qZA())}function Ba(i,o){if(1&i&&(t.TgZ(0,"td",37)(1,"span",43),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==n?null:n.confirmations)," ")}}function Va(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"th",45)(1,"div",46)(2,"mat-select",47),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",48),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onDownloadCSV())}),t._uU(5,"Download CSV"),t.qZA()()()()}}function za(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"td",49)(1,"button",50),t.NdJ("click",function(a){const r=t.CHM(n).$implicit,p=t.oxw();return t.KtG(p.onTransactionClick(r,a))}),t._uU(2,"View Info"),t.qZA()()}}function Ga(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"No transaction available."),t.qZA())}function Wa(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"Getting transactions..."),t.qZA())}function Ka(i,o){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Oqu(n.errorMessage)}}function Xa(i,o){if(1&i&&(t.TgZ(0,"td",51),t.YNc(1,Ga,2,0,"p",52),t.YNc(2,Wa,2,0,"p",52),t.YNc(3,Ka,2,1,"p",52),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=n.listTransactions&&n.listTransactions.data)||(null==n.listTransactions||null==n.listTransactions.data?null:n.listTransactions.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.listTransactions&&n.listTransactions.data)||(null==n.listTransactions||null==n.listTransactions.data?null:n.listTransactions.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.listTransactions&&n.listTransactions.data)||(null==n.listTransactions||null==n.listTransactions.data?null:n.listTransactions.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}const $a=function(i){return{"display-none":i}};function ja(i,o){if(1&i&&t._UZ(0,"tr",53),2&i){const n=t.oxw();t.Q6J("ngClass",t.VKq(1,$a,(null==n.listTransactions?null:n.listTransactions.data)&&(null==n.listTransactions||null==n.listTransactions.data?null:n.listTransactions.data.length)>0))}}function to(i,o){1&i&&t._UZ(0,"tr",54)}function eo(i,o){1&i&&t._UZ(0,"tr",55)}const no=function(){return["all"]},io=function(i){return{"error-border":i}},ao=function(){return["no_transaction"]};let oo=(()=>{var i;class o{constructor(e,a,s,r,p){this.logger=e,this.commonService=a,this.store=s,this.datePipe=r,this.camelCaseWithSpaces=p,this.faHistory=L.qO$,this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="on_chain",this.tableSetting={tableId:"transaction",recordsPerPage:l.IV,sortBy:"timestamp",sortOrder:l.Pi.DESCENDING},this.displayedColumns=[],this.listTransactions=new c.by([]),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()}ngOnInit(){this.store.dispatch((0,k.mC)()),this.store.select(f.nF).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=e.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||l.c3.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(f.dx).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),e.transactions&&this.sort&&this.paginator&&this.loadTransactionsTable(e.transactions),this.logger.info(e)})}applyFilter(){this.listTransactions.filter=this.selFilter.trim().toLowerCase()}getLabel(e){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(s=>s.column===e);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):this.commonService.titleCase(e)}setFilterPredicate(){this.listTransactions.filterPredicate=(e,a)=>{let s="";switch(this.selFilterBy){case"all":s=(e.timestamp?this.datePipe.transform(new Date(1e3*e.timestamp),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(e).toLowerCase();break;case"timestamp":s=this.datePipe.transform(new Date(1e3*(e[this.selFilterBy]||0)),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;default:s=typeof e[this.selFilterBy]>"u"?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return s.includes(a)}}onTransactionClick(e,a){this.store.dispatch((0,S.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Transaction Information",message:[[{key:"blockHash",value:e.blockHash,title:"Block Hash",width:100}],[{key:"txid",value:e.txid,title:"Transaction ID",width:100}],[{key:"timestamp",value:e.timestamp,title:"Date/Time",width:50,type:l.Gi.DATE_TIME},{key:"confirmations",value:e.confirmations,title:"Number of Confirmations",width:50,type:l.Gi.NUMBER}],[{key:"fees",value:e.fees,title:"Fees (Sats)",width:50,type:l.Gi.NUMBER},{key:"amount",value:e.amount,title:"Amount (Sats)",width:50,type:l.Gi.NUMBER}],[{key:"address",value:e.address,title:"Address",width:100,type:l.Gi.STRING}]]}}}))}loadTransactionsTable(e){this.listTransactions=new c.by([...e]),this.listTransactions.sort=this.sort,this.listTransactions.sortingDataAccessor=(a,s)=>a[s]&&isNaN(a[s])?a[s].toLocaleLowerCase():a[s]?+a[s]:null,this.listTransactions.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.listTransactions)}onDownloadCSV(){this.listTransactions.data&&this.listTransactions.data.length>0&&this.commonService.downloadFile(this.listTransactions.data,"Transactions")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(M.v),t.Y36(E.yh),t.Y36(u.uU),t.Y36(z.i1))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-on-chain-transaction-history"]],viewQuery:function(e,a){if(1&e&&(t.Gf(v.YE,5),t.Gf(w.NW,5)),2&e){let s;t.iGM(s=t.CRH())&&(a.sort=s.first),t.iGM(s=t.CRH())&&(a.paginator=s.first)}},features:[t._Bn([{provide:A.PG,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.ye,useValue:(0,l.pt)("Transactions")}])],decls:52,vars:19,consts:[["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","start stretch"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["table",""],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","address"],["matColumnDef","blockHash"],["matColumnDef","txid"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","fees"],["matColumnDef","confirmations"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_transaction"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center",4,"ngIf"],["fxLayoutAlign","end center","class","red",4,"ngIf"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",1,"red"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,a){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span",4),t._uU(5,"Transaction History"),t.qZA()(),t.TgZ(6,"div",5)(7,"mat-form-field",6)(8,"mat-label"),t._uU(9,"Filter By"),t.qZA(),t.TgZ(10,"mat-select",7),t.NdJ("ngModelChange",function(r){return a.selFilterBy=r})("selectionChange",function(){return a.selFilter="",a.applyFilter()}),t.TgZ(11,"perfect-scrollbar"),t.YNc(12,Ea,2,2,"mat-option",8),t.qZA()()(),t.TgZ(13,"mat-form-field",6)(14,"mat-label"),t._uU(15,"Filter"),t.qZA(),t.TgZ(16,"input",9),t.NdJ("ngModelChange",function(r){return a.selFilter=r})("input",function(){return a.applyFilter()})("keyup",function(){return a.applyFilter()}),t.qZA()()()(),t.TgZ(17,"div",10)(18,"div",11),t.YNc(19,wa,1,0,"mat-progress-bar",12),t.TgZ(20,"table",13,14),t.ynx(22,15),t.YNc(23,Ia,2,0,"th",16),t.YNc(24,Fa,3,4,"td",17),t.BQk(),t.ynx(25,18),t.YNc(26,qa,2,0,"th",16),t.YNc(27,Na,4,4,"td",17),t.BQk(),t.ynx(28,19),t.YNc(29,Oa,2,0,"th",16),t.YNc(30,Pa,4,4,"td",17),t.BQk(),t.ynx(31,20),t.YNc(32,ka,2,0,"th",16),t.YNc(33,Ua,4,4,"td",17),t.BQk(),t.ynx(34,21),t.YNc(35,Ra,2,0,"th",22),t.YNc(36,Ja,3,2,"td",17),t.BQk(),t.ynx(37,23),t.YNc(38,Ha,2,0,"th",22),t.YNc(39,Qa,4,3,"td",17),t.BQk(),t.ynx(40,24),t.YNc(41,Ya,2,0,"th",22),t.YNc(42,Ba,4,3,"td",17),t.BQk(),t.ynx(43,25),t.YNc(44,Va,6,0,"th",26),t.YNc(45,za,3,0,"td",27),t.BQk(),t.ynx(46,28),t.YNc(47,Xa,4,3,"td",29),t.BQk(),t.YNc(48,ja,1,3,"tr",30),t.YNc(49,to,1,0,"tr",31),t.YNc(50,eo,1,0,"tr",32),t.qZA(),t._UZ(51,"mat-paginator",33),t.qZA()()()),2&e&&(t.xp6(3),t.Q6J("icon",a.faHistory),t.xp6(7),t.Q6J("ngModel",a.selFilterBy),t.xp6(2),t.Q6J("ngForOf",t.DdM(15,no).concat(a.displayedColumns.slice(0,-1))),t.xp6(4),t.Q6J("ngModel",a.selFilter),t.xp6(3),t.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.listTransactions)("ngClass",t.VKq(16,io,""!==a.errorMessage)),t.xp6(28),t.Q6J("matFooterRowDef",t.DdM(18,ao)),t.xp6(1),t.Q6J("matHeaderRowDef",a.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",a.displayedColumns),t.xp6(1),t.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[u.mk,u.sg,u.O5,u.PC,d.Fj,d.JJ,d.On,I.BN,h.xw,h.Wh,h.yH,Z.oO,Z.Zl,F.lW,Q.Nt,C.KE,C.hX,H.pW,A.gD,A.$L,V.ey,v.YE,v.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.mD,c.Ke,c.ge,c.ev,c.yh,c.XQ,c.Gk,c.Q2,w.NW,P.Vv,P.$V,u.JJ,u.uU]}),o})();function so(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",12),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw();return t.KtG(r.activeLink=s.link)}),t._uU(1),t.qZA()}if(2&i){const n=o.$implicit,e=t.oxw();t.s9C("routerLink",n.link),t.Q6J("active",e.activeLink===n.link),t.xp6(1),t.Oqu(n.name)}}let lo=(()=>{var i;class o{constructor(e,a){this.store=e,this.router=a,this.selNode={},this.faExchangeAlt=L.Ssp,this.faChartPie=L.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"}],this.activeLink=this.links[0].link,this.unSubs=[new m.x,new m.x,new m.x,new m.x]}ngOnInit(){const e=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Y.h)(a=>a instanceof b.Av)).subscribe({next:a=>{const s=this.links.find(r=>a.urlAfterRedirects.includes(r.link));this.activeLink=s?s.link:this.links[0].link}}),this.store.select(f.LR).pipe((0,_.R)(this.unSubs[1])).subscribe(a=>{this.selNode=a}),this.store.select(f.kY).pipe((0,_.R)(this.unSubs[2])).subscribe(a=>{this.balances=[{title:"Total Balance",dataValue:a.onchainBalance.total||0},{title:"Confirmed",dataValue:a.onchainBalance.confirmed||0},{title:"Unconfirmed",dataValue:a.onchainBalance.unconfirmed||0}]})}openSendFundsModal(){this.store.dispatch((0,S.qR)({payload:{data:{component:It}}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(E.yh),t.Y36(b.F0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-on-chain"]],decls:23,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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["tabPanel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxLayout","row","fxFlex","100"],["mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,a){if(1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"On-chain Balance"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),t._UZ(7,"rtl-currency-unit-converter",5),t.qZA()()(),t.TgZ(8,"div",0),t._UZ(9,"fa-icon",1),t.TgZ(10,"span",2),t._uU(11,"On-chain Transactions"),t.qZA()(),t.TgZ(12,"div",6)(13,"mat-card")(14,"mat-card-content",4)(15,"nav",7),t.YNc(16,so,2,3,"div",8),t.qZA(),t._UZ(17,"mat-tab-nav-panel",null,9),t.TgZ(19,"div",10),t._UZ(20,"router-outlet"),t.qZA(),t.TgZ(21,"div",10),t._UZ(22,"rtl-ecl-on-chain-transaction-history",11),t.qZA()()()()),2&e){const s=t.MAs(18);t.xp6(1),t.Q6J("icon",a.faChartPie),t.xp6(6),t.Q6J("values",a.balances),t.xp6(2),t.Q6J("icon",a.faExchangeAlt),t.xp6(6),t.Q6J("tabPanel",s),t.xp6(1),t.Q6J("ngForOf",a.links)}},dependencies:[u.sg,I.BN,h.xw,h.Wh,h.yH,T.a8,T.dn,q.BU,q.sW,q.Nj,ht.D,b.lC,b.rH,oo]}),o})();var Ft=g(2673);function ro(i,o){if(1&i&&(t.TgZ(0,"span",10),t._uU(1,"Channels"),t.qZA()),2&i){const n=t.oxw();t.s9C("matBadge",n.activeChannels)}}function co(i,o){if(1&i&&(t.TgZ(0,"span",10),t._uU(1,"Peers"),t.qZA()),2&i){const n=t.oxw();t.s9C("matBadge",n.activePeers)}}let uo=(()=>{var i;class o{constructor(e,a){this.store=e,this.router=a,this.activePeers=0,this.activeChannels=0,this.faUsers=L.FVb,this.faChartPie=L.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]}ngOnInit(){this.activeLink=this.links.findIndex(e=>e.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Y.h)(e=>e instanceof b.Av)).subscribe({next:e=>{this.activeLink=this.links.findIndex(a=>a.link===e.urlAfterRedirects.substring(e.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(f.Bo).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.activePeers=e.peers&&e.peers.length?e.peers.length:0}),this.store.select(f.Xz).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.activeChannels=e.channelsStatus&&e.channelsStatus.active&&e.channelsStatus.active.channels?e.channelsStatus.active.channels:0}),this.store.select(f.kY).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.balances=[{title:"Total Balance",dataValue:e.onchainBalance.total||0},{title:"Confirmed",dataValue:e.onchainBalance.confirmed||0},{title:"Unconfirmed",dataValue:e.onchainBalance.unconfirmed||0}]})}onSelectedTabChange(e){this.router.navigateByUrl("/ecl/connections/"+this.links[e.index].link)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(E.yh),t.Y36(b.F0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-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"],["mat-stretch-tabs","false","mat-align-tabs","start",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(e,a){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"On-chain Balance"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),t._UZ(7,"rtl-currency-unit-converter",5),t.qZA()()(),t.TgZ(8,"div",0),t._UZ(9,"fa-icon",1),t.TgZ(10,"span",2),t._uU(11,"Connections"),t.qZA()(),t.TgZ(12,"div",6)(13,"mat-card")(14,"mat-card-content",4)(15,"mat-tab-group",7),t.NdJ("selectedIndexChange",function(r){return a.activeLink=r})("selectedTabChange",function(r){return a.onSelectedTabChange(r)}),t.TgZ(16,"mat-tab"),t.YNc(17,ro,2,1,"ng-template",8),t.qZA(),t.TgZ(18,"mat-tab"),t.YNc(19,co,2,1,"ng-template",8),t.qZA()(),t.TgZ(20,"div",9),t._UZ(21,"router-outlet"),t.qZA()()()()),2&e&&(t.xp6(1),t.Q6J("icon",a.faChartPie),t.xp6(6),t.Q6J("values",a.balances),t.xp6(2),t.Q6J("icon",a.faUsers),t.xp6(6),t.Q6J("selectedIndex",a.activeLink))},dependencies:[I.BN,h.xw,h.Wh,h.yH,T.a8,T.dn,Ft.k,q.uD,q.uX,q.SP,ht.D,b.lC]}),o})();function po(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",12),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw();return t.KtG(r.activeLink=s.link)}),t._uU(1),t.qZA()}if(2&i){const n=o.$implicit,e=t.oxw();t.s9C("routerLink",n.link),t.Q6J("active",e.activeLink===n.link),t.xp6(1),t.Oqu(n.name)}}let mo=(()=>{var i;class o{constructor(e,a,s){this.logger=e,this.store=a,this.router=s,this.faExchangeAlt=L.Ssp,this.faChartPie=L.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"}],this.activeLink=this.links[0].link,this.unSubs=[new m.x,new m.x,new m.x,new m.x]}ngOnInit(){const e=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Y.h)(a=>a instanceof b.Av)).subscribe({next:a=>{const s=this.links.find(r=>a.urlAfterRedirects.includes(r.link));this.activeLink=s?s.link:this.links[0].link}}),this.store.select(f.Xz).pipe((0,_.R)(this.unSubs[1]),(0,lt.M)(this.store.select(f.LR))).subscribe(([a,s])=>{this.currencyUnits=s?.currencyUnits||[],this.balances=s&&s.userPersona===l.ol.OPERATOR?[{title:"Local Capacity",dataValue:a.lightningBalance.localBalance,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:a.lightningBalance.remoteBalance,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:a.lightningBalance.localBalance,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:a.lightningBalance.remoteBalance,tooltip:"Amount you can receive"}],this.logger.info(a)})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(E.yh),t.Y36(b.F0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-transactions"]],decls:21,vars:5,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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["tabPanel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,a){if(1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Lightning Balance"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),t._UZ(7,"rtl-currency-unit-converter",5),t.qZA()()(),t.TgZ(8,"div",6),t._UZ(9,"fa-icon",1),t.TgZ(10,"span",2),t._uU(11,"Lightning Transactions"),t.qZA()(),t.TgZ(12,"div",7)(13,"mat-card")(14,"mat-card-content",4)(15,"nav",8),t.YNc(16,po,2,3,"div",9),t.qZA(),t._UZ(17,"mat-tab-nav-panel",null,10),t.TgZ(19,"div",11),t._UZ(20,"router-outlet"),t.qZA()()()()),2&e){const s=t.MAs(18);t.xp6(1),t.Q6J("icon",a.faChartPie),t.xp6(6),t.Q6J("values",a.balances),t.xp6(2),t.Q6J("icon",a.faExchangeAlt),t.xp6(6),t.Q6J("tabPanel",s),t.xp6(1),t.Q6J("ngForOf",a.links)}},dependencies:[u.sg,I.BN,h.xw,h.Wh,h.yH,T.a8,T.dn,q.BU,q.sW,q.Nj,ht.D,b.lC,b.rH]}),o})();function ho(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",12),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw();return t.KtG(r.activeLink=s.link)}),t._uU(1),t.qZA()}if(2&i){const n=o.$implicit,e=t.oxw();t.s9C("routerLink",n.link),t.Q6J("active",e.activeLink===n.link),t.xp6(1),t.Oqu(n.name)}}let _o=(()=>{var i;class o{constructor(e){this.router=e,this.faMapSigns=L.SuH,this.events=[],this.flgLoading=[!0],this.errorMessage="",this.links=[{link:"forwardinghistory",name:"Forwarding History"},{link:"peers",name:"Routing Peers"}],this.activeLink=this.links[0].link,this.unSubs=[new m.x,new m.x,new m.x]}ngOnInit(){const e=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Y.h)(a=>a instanceof b.Av)).subscribe({next:a=>{const s=this.links.find(r=>a.urlAfterRedirects.includes(r.link));this.activeLink=s?s.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(b.F0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-routing"]],decls:15,vars:3,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"],["fxLayout","row","fxFlex","100"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start","fxFlex","100",3,"tabPanel"],["mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["tabPanel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,a){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span",3),t._uU(4,"Routing"),t.qZA()(),t.TgZ(5,"div",4)(6,"mat-card",5)(7,"mat-card-content",6)(8,"div",7)(9,"nav",8),t.YNc(10,ho,2,3,"div",9),t.qZA(),t._UZ(11,"mat-tab-nav-panel",null,10),t.qZA(),t.TgZ(13,"div",11),t._UZ(14,"router-outlet"),t.qZA()()()()()),2&e){const s=t.MAs(12);t.xp6(2),t.Q6J("icon",a.faMapSigns),t.xp6(7),t.Q6J("tabPanel",s),t.xp6(1),t.Q6J("ngForOf",a.links)}},dependencies:[u.sg,I.BN,h.xw,h.Wh,h.yH,T.a8,T.dn,q.BU,q.sW,q.Nj,b.lC,b.rH]}),o})();var at=g(1948),qt=g(455),tt=g(8425);const go=["peersForm"],fo=["stepper"];function Co(i,o){if(1&i&&t._uU(0),2&i){const n=t.oxw();t.Oqu(n.peerFormLabel)}}function xo(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Address is required."),t.qZA())}function yo(i,o){if(1&i&&(t.TgZ(0,"div",33),t._UZ(1,"fa-icon",34),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&i){const n=t.oxw();t.xp6(1),t.Q6J("icon",n.faExclamationTriangle),t.xp6(2),t.Oqu(n.peerConnectionError)}}function bo(i,o){if(1&i&&t._uU(0),2&i){const n=t.oxw();t.Oqu(n.channelFormLabel)}}function Lo(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function To(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount must be a positive number."),t.qZA())}function vo(i,o){if(1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.hij("Amount must be less than or equal to ",n.totalBalance,".")}}function Zo(i,o){if(1&i&&(t.TgZ(0,"div",33),t._UZ(1,"fa-icon",34),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&i){const n=t.oxw();t.xp6(1),t.Q6J("icon",n.faExclamationTriangle),t.xp6(2),t.Oqu(n.channelConnectionError)}}let Nt=(()=>{var i;class o{constructor(e,a,s,r,p,x){this.dialogRef=e,this.data=a,this.store=s,this.formBuilder=r,this.actions=p,this.logger=x,this.faExclamationTriangle=L.eHv,this.selNode={},this.peerAddress="",this.totalBalance=0,this.flgChannelOpened=!1,this.channelOpenStatus=null,this.newlyAddedPeer=null,this.flgEditable=!0,this.peerConnectionError="",this.channelConnectionError="",this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)",this.unSubs=[new m.x,new m.x]}ngOnInit(){this.data.message?(this.totalBalance=this.data.message.balance,this.peerAddress=this.data.message.peer&&this.data.message.peer.nodeId&&this.data.message.peer.address?this.data.message.peer.nodeId+"@"+this.data.message.peer.address:this.data.message.peer&&this.data.message.peer.nodeId&&!this.data.message.peer.address?this.data.message.peer.nodeId:""):(this.totalBalance=0,this.peerAddress=""),this.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[d.kI.required]],peerAddress:[this.peerAddress,[d.kI.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[d.kI.required,d.kI.min(1),d.kI.max(this.totalBalance)]],isPrivate:[!!this.selNode?.unannouncedChannels],feeRate:[null],hiddenAmount:["",[d.kI.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.store.select(f.LR).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e,this.channelFormGroup.controls.isPrivate.setValue(!!e?.unannouncedChannels)}),this.actions.pipe((0,_.R)(this.unSubs[1]),(0,Y.h)(e=>e.type===l.lr.NEWLY_ADDED_PEER_ECL||e.type===l.lr.FETCH_CHANNELS_ECL||e.type===l.lr.UPDATE_API_CALL_STATUS_ECL)).subscribe(e=>{e.type===l.lr.NEWLY_ADDED_PEER_ECL&&(this.logger.info(e.payload),this.flgEditable=!1,this.newlyAddedPeer=e.payload.peer,this.peerFormGroup.controls.hiddenAddress.setValue(this.peerFormGroup.controls.peerAddress.value),this.stepper.next()),e.type===l.lr.FETCH_CHANNELS_ECL&&this.dialogRef.close(),e.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&e.payload.status===l.Bn.ERROR&&("SaveNewPeer"===e.payload.action?this.peerConnectionError=e.payload.message:"SaveNewChannel"===e.payload.action&&(this.channelConnectionError=e.payload.message))})}onConnectPeer(){if(!this.peerFormGroup.controls.peerAddress.value)return!0;this.peerConnectionError="",this.store.dispatch((0,k.El)({payload:{id:this.peerFormGroup.controls.peerAddress.value}}))}onOpenChannel(){if(!this.channelFormGroup.controls.fundingAmount.value||this.totalBalance-this.channelFormGroup.controls.fundingAmount.value<0)return!0;this.channelConnectionError="",this.store.dispatch((0,k.YX)({payload:{nodeId:this.newlyAddedPeer?.nodeId,amount:this.channelFormGroup.controls.fundingAmount.value,private:this.channelFormGroup.controls.isPrivate.value,feeRate:this.channelFormGroup.controls.feeRate.value}}))}onClose(){this.dialogRef.close(!1)}stepSelectionChanged(e){switch(e.selectedIndex){case 0:default:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 1:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+(this.newlyAddedPeer?.alias?this.newlyAddedPeer.alias:this.newlyAddedPeer?.nodeId):"Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 2:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+(this.newlyAddedPeer?.alias?this.newlyAddedPeer.alias:this.newlyAddedPeer?.nodeId):"Peer Details",this.channelFormLabel=this.channelFormGroup.controls.fundingAmount.value?"Opening Channel for "+this.channelFormGroup.controls.fundingAmount.value+" Sats":"Open Channel (Optional)"}e.selectedIndex{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(D.so),t.Y36(D.WI),t.Y36(E.yh),t.Y36(d.QS),t.Y36(K.eX),t.Y36(R.mQ))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-connect-peer"]],viewQuery:function(e,a){if(1&e&&(t.Gf(go,5),t.Gf(fo,5)),2&e){let s;t.iGM(s=t.CRH())&&(a.form=s.first),t.iGM(s=t.CRH())&&(a.stepper=s.first)}},decls:55,vars:22,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 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",""],["fxLayout","column","fxFlex","100"],["autoFocus","","matInput","","formControlName","peerAddress","tabindex","1","required",""],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mb-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxLayout","column","fxFlex","30","fxLayoutAlign","start end"],["matInput","","autoFocus","","formControlName","fundingAmount","type","number","tabindex","1","required","",3,"step"],["matSuffix",""],["fxLayout","column","fxFlex","30"],["matInput","","formControlName","feeRate","type","number","name","feeRate","tabindex","7",3,"step","min"],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","formControlName","isPrivate","name","isPrivate"],["mat-button","","color","primary","tabindex","8","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"click"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Connect to a new peer"),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return a.onClose()}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"div",7)(10,"mat-vertical-stepper",8,9),t.NdJ("selectionChange",function(r){return a.stepSelectionChanged(r)}),t.TgZ(12,"mat-step",10)(13,"form",11),t.YNc(14,Co,1,1,"ng-template",12),t.TgZ(15,"mat-form-field",13)(16,"mat-label"),t._uU(17,"Lightning Address (pubkey OR pubkey@ip:port)"),t.qZA(),t._UZ(18,"input",14),t.YNc(19,xo,2,0,"mat-error",15),t.qZA(),t.YNc(20,yo,4,2,"div",16),t.TgZ(21,"div",17)(22,"button",18),t.NdJ("click",function(){return a.onConnectPeer()}),t._uU(23),t.qZA()()()(),t.TgZ(24,"mat-step",10)(25,"form",19),t.YNc(26,bo,1,1,"ng-template",20),t.TgZ(27,"div",21)(28,"div",22)(29,"mat-form-field",23)(30,"mat-label"),t._uU(31,"Amount"),t.qZA(),t._UZ(32,"input",24),t.TgZ(33,"mat-hint"),t._uU(34),t.ALo(35,"number"),t.qZA(),t.TgZ(36,"span",25),t._uU(37," Sats "),t.qZA(),t.YNc(38,Lo,2,0,"mat-error",15),t.YNc(39,To,2,0,"mat-error",15),t.YNc(40,vo,2,1,"mat-error",15),t.qZA(),t.TgZ(41,"mat-form-field",26)(42,"mat-label"),t._uU(43,"Fee (Sats/vByte)"),t.qZA(),t._UZ(44,"input",27),t.qZA(),t.TgZ(45,"div",28)(46,"mat-slide-toggle",29),t._uU(47,"Private Channel"),t.qZA()()()(),t.YNc(48,Zo,4,2,"div",16),t.TgZ(49,"div",17)(50,"button",30),t.NdJ("click",function(){return a.onOpenChannel()}),t._uU(51),t.qZA()()()()(),t.TgZ(52,"div",31)(53,"button",32),t.NdJ("click",function(){return a.onClose()}),t._uU(54),t.qZA()()()()()()),2&e&&(t.xp6(10),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",a.peerFormGroup)("editable",a.flgEditable),t.xp6(1),t.Q6J("formGroup",a.peerFormGroup),t.xp6(6),t.Q6J("ngIf",null==a.peerFormGroup.controls.peerAddress.errors?null:a.peerFormGroup.controls.peerAddress.errors.required),t.xp6(1),t.Q6J("ngIf",""!==a.peerConnectionError),t.xp6(3),t.Oqu(""!==a.peerConnectionError?"Retry":"Add Peer"),t.xp6(1),t.Q6J("stepControl",a.channelFormGroup)("editable",a.flgEditable),t.xp6(1),t.Q6J("formGroup",a.channelFormGroup),t.xp6(7),t.Q6J("step",1e3),t.xp6(2),t.hij("Remaining: ",t.lcZ(35,20,a.totalBalance-(a.channelFormGroup.controls.fundingAmount.value?a.channelFormGroup.controls.fundingAmount.value:0)),""),t.xp6(4),t.Q6J("ngIf",null==a.channelFormGroup.controls.fundingAmount.errors?null:a.channelFormGroup.controls.fundingAmount.errors.required),t.xp6(1),t.Q6J("ngIf",null==a.channelFormGroup.controls.fundingAmount.errors?null:a.channelFormGroup.controls.fundingAmount.errors.min),t.xp6(1),t.Q6J("ngIf",null==a.channelFormGroup.controls.fundingAmount.errors?null:a.channelFormGroup.controls.fundingAmount.errors.max),t.xp6(4),t.Q6J("step",1)("min",0),t.xp6(4),t.Q6J("ngIf",""!==a.channelConnectionError),t.xp6(3),t.Oqu(""!==a.channelConnectionError?"Retry":"Open Channel"),t.xp6(3),t.Oqu(null!=a.newlyAddedPeer&&a.newlyAddedPeer.nodeId?"Do It Later":"Close"))},dependencies:[u.O5,d._Y,d.Fj,d.wV,d.JJ,d.JL,d.Q7,d.qQ,d.sg,d.u,I.BN,h.xw,h.Wh,h.yH,F.lW,T.dn,T.dk,Q.Nt,C.KE,C.hX,C.bx,C.TO,C.R9,qt.Rr,tt.C0,tt.VY,tt.Vq,$.h,j.q,u.JJ]}),o})();var Ot=g(7009),Pt=g(5199);function So(i,o){if(1&i&&(t.TgZ(0,"span",9)(1,"div"),t._uU(2),t.ALo(3,"titlecase"),t.qZA()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(2),t.AsE("",e.nodeFeaturesEnum[n.key]||n.key,": ",t.lcZ(3,2,n.value),"")}}function Ao(i,o){1&i&&(t.TgZ(0,"th",24),t._uU(1,"Address"),t.qZA())}function Eo(i,o){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(n)}}function wo(i,o){1&i&&(t.TgZ(0,"th",26)(1,"div",27),t._uU(2,"Actions"),t.qZA()())}function Io(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"td",28)(1,"div",29)(2,"mat-select",30),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",31),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw(2);return t.KtG(r.onConnectNode(s))}),t._uU(5,"Connect"),t.qZA(),t.TgZ(6,"mat-option",32),t.NdJ("copied",function(a){t.CHM(n);const s=t.oxw(2);return t.KtG(s.onCopyNodeURI(a))}),t._uU(7,"Copy URI"),t.qZA()()()()}if(2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(6),t.Q6J("payload",(null==e.lookupResult?null:e.lookupResult.nodeId)+"@"+n)}}function Fo(i,o){1&i&&t._UZ(0,"tr",33)}function qo(i,o){1&i&&t._UZ(0,"tr",34)}const No=function(i){return{"background-color":i}};function Oo(i,o){if(1&i&&(t.TgZ(0,"div",1),t._UZ(1,"mat-divider",2),t.TgZ(2,"div",3)(3,"div",4)(4,"h4",5),t._uU(5,"Alias"),t.qZA(),t.TgZ(6,"span",6),t._uU(7),t.TgZ(8,"span",7),t._uU(9),t.qZA()()(),t.TgZ(10,"div",8)(11,"h4",5),t._uU(12,"Pub Key"),t.qZA(),t.TgZ(13,"span",9),t._uU(14),t.qZA()()(),t._UZ(15,"mat-divider",2),t.TgZ(16,"div",3)(17,"div",4)(18,"h4",5),t._uU(19,"Date/Time"),t.qZA(),t.TgZ(20,"span",6),t._uU(21),t.ALo(22,"date"),t.qZA()(),t.TgZ(23,"div",8)(24,"h4",5),t._uU(25,"Features"),t.qZA(),t.YNc(26,So,4,4,"span",10),t.ALo(27,"keyvalue"),t.qZA()(),t._UZ(28,"mat-divider",2),t.TgZ(29,"div",3)(30,"div",11)(31,"h4",5),t._uU(32,"Signature"),t.qZA(),t.TgZ(33,"span",6),t._uU(34),t.qZA()()(),t._UZ(35,"mat-divider",2),t.TgZ(36,"div",1)(37,"h4",12),t._uU(38,"Addresses"),t.qZA(),t.TgZ(39,"div",13)(40,"table",14,15),t.ynx(42,16),t.YNc(43,Ao,2,0,"th",17),t.YNc(44,Eo,2,1,"td",18),t.BQk(),t.ynx(45,19),t.YNc(46,wo,3,0,"th",20),t.YNc(47,Io,8,1,"td",21),t.BQk(),t.YNc(48,Fo,1,0,"tr",22),t.YNc(49,qo,1,0,"tr",23),t.qZA()()()()),2&i){const n=t.oxw();t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(null==n.lookupResult?null:n.lookupResult.alias),t.xp6(1),t.Q6J("ngStyle",t.VKq(19,No,null==n.lookupResult?null:n.lookupResult.rgbColor)),t.xp6(1),t.Oqu(null!=n.lookupResult&&n.lookupResult.rgbColor?null==n.lookupResult?null:n.lookupResult.rgbColor:""),t.xp6(5),t.Oqu(null==n.lookupResult?null:n.lookupResult.nodeId),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(t.xi3(22,14,1e3*(null==n.lookupResult?null:n.lookupResult.timestamp),"dd/MMM/y HH:mm")),t.xp6(5),t.Q6J("ngForOf",t.lcZ(27,17,null==n.lookupResult?null:n.lookupResult.features.activated)),t.xp6(2),t.Q6J("inset",!0),t.xp6(6),t.Oqu(null==n.lookupResult?null:n.lookupResult.signature),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Q6J("dataSource",n.addresses),t.xp6(8),t.Q6J("matHeaderRowDef",n.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",n.displayedColumns)}}let Po=(()=>{var i;class o{constructor(e,a,s){this.logger=e,this.snackBar=a,this.store=s,this.lookupResult={},this.addresses=new c.by([]),this.displayedColumns=["address","actions"],this.nodeFeaturesEnum=l.H_,this.information={},this.availableBalance=0,this.unSubs=[new m.x,new m.x,new m.x]}ngOnInit(){this.addresses=new c.by(this.lookupResult.addresses?[...this.lookupResult.addresses]:[]),this.addresses.data=this.lookupResult.addresses||[],this.addresses.sort=this.sort,this.addresses.sortingDataAccessor=(e,a)=>e[a]&&isNaN(e[a])?e[a].toLocaleLowerCase():e[a]?+e[a]:null,this.store.select(f.yD).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.information=e}),this.store.select(f.kY).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.availableBalance=e.onchainBalance.total||0})}onConnectNode(e){this.store.dispatch((0,S.qR)({payload:{data:{message:{peer:this.lookupResult.nodeId?{nodeId:this.lookupResult.nodeId,address:e}:null,information:this.information,balance:this.availableBalance},component:Nt}}}))}onCopyNodeURI(e){this.snackBar.open("Node URI copied."),this.logger.info("Copied Text: "+e)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(Ot.ux),t.Y36(E.yh))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-node-lookup"]],viewQuery:function(e,a){if(1&e&&t.Gf(v.YE,5),2&e){let s;t.iGM(s=t.CRH())&&(a.sort=s.first)}},inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["fxLayout","column",4,"ngIf"],["fxLayout","column"],[1,"my-1",3,"inset"],["fxLayout","row"],["fxFlex","30"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"ml-2",3,"ngStyle"],["fxFlex","70"],[1,"foreground-secondary-text","w-100"],["class","foreground-secondary-text w-100",4,"ngFor","ngForOf"],["fxFlex","100"],["fxFlex","100","fxLayoutAlign","start",1,"font-bold-500","mb-1"],["fxLayout","row","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","address"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select","btn-action"],["mat-cell","","fxLayoutAlign","end center"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["rtlClipboard","",3,"payload","copied"],["mat-header-row",""],["mat-row",""]],template:function(e,a){1&e&&t.YNc(0,Oo,50,21,"div",0),2&e&&t.Q6J("ngIf",a.lookupResult)},dependencies:[u.sg,u.O5,u.PC,h.xw,h.Wh,h.yH,Z.Zl,X.d,A.gD,A.$L,V.ey,v.YE,v.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,P.$V,Pt.y,u.rS,u.uU,u.Nd]}),o})();const ko=["form"];function Uo(i,o){if(1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.hij("",null==n.lookupFields[n.selectedFieldId]?null:n.lookupFields[n.selectedFieldId].placeholder," is required.")}}function Ro(i,o){if(1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.hij("Invalid ",null==n.lookupFields[n.selectedFieldId]?null:n.lookupFields[n.selectedFieldId].placeholder,".")}}function Mo(i,o){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"rtl-ecl-node-lookup",25),t.qZA()),2&i){const n=t.oxw(3);t.xp6(1),t.Q6J("lookupResult",n.nodeLookupValue)}}function Do(i,o){if(1&i&&(t.TgZ(0,"span",23),t.YNc(1,Mo,2,1,"div",24),t.qZA()),2&i){const n=t.oxw(2),e=t.MAs(23);t.xp6(1),t.Q6J("ngIf",n.nodeLookupValue.nodeId)("ngIfElse",e)}}function Jo(i,o){1&i&&(t.TgZ(0,"span"),t._uU(1,' fxFlex="100"'),t.TgZ(2,"h3"),t._uU(3,"Error! Unable to find details!"),t.qZA()())}function Ho(i,o){if(1&i&&(t.TgZ(0,"div",17)(1,"div",18)(2,"span",19),t._uU(3),t.qZA()(),t.TgZ(4,"div",20),t.YNc(5,Do,2,2,"span",21),t.YNc(6,Jo,4,0,"span",22),t.qZA()()),2&i){const n=t.oxw();t.xp6(3),t.hij("",n.lookupFields[n.selectedFieldId].name," Details"),t.xp6(1),t.Q6J("ngSwitch",n.selectedFieldId),t.xp6(1),t.Q6J("ngSwitchCase",0)}}function Qo(i,o){1&i&&(t.TgZ(0,"h3"),t._uU(1,"Error! Unable to find details!"),t.qZA())}const Yo=function(i){return{"mt-1":!0,"mt-2":i}};let Bo=(()=>{var i;class o{constructor(e,a,s,r){this.logger=e,this.commonService=a,this.store=s,this.actions=r,this.lookupKeyCtrl=new d.p4,this.nodeLookupValue={},this.channelLookupValue=[],this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Node",placeholder:"Node ID"},{id:1,name:"Channel",placeholder:"Short Channel ID"}],this.flgLoading=[!0],this.faSearch=L.wn1,this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new m.x,new m.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){window.history.state&&window.history.state.lookupType&&(this.selectedFieldId=+window.history.state.lookupType||0,this.lookupKeyCtrl.setValue(window.history.state.lookupValue||"")),this.actions.pipe((0,_.R)(this.unSubs[0]),(0,Y.h)(e=>e.type===l.lr.SET_LOOKUP_ECL||e.type===l.lr.UPDATE_API_CALL_STATUS_ECL)).subscribe(e=>{if(e.type===l.lr.SET_LOOKUP_ECL){switch(this.flgLoading[0]=!0,this.selectedFieldId){case 0:this.nodeLookupValue=e.payload[0]?JSON.parse(JSON.stringify(e.payload[0])):{nodeid:""};break;case 1:this.channelLookupValue=JSON.parse(JSON.stringify(e.payload))||[]}this.flgSetLookupValue=!0,this.logger.info(this.nodeLookupValue),this.logger.info(this.channelLookupValue)}e.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&e.payload.status===l.Bn.ERROR&&"Lookup"===e.payload.action&&(this.flgLoading[0]="error")}),this.lookupKeyCtrl.valueChanges.pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.nodeLookupValue={},this.channelLookupValue=[],this.flgSetLookupValue=!1})}onLookup(){return this.lookupKeyCtrl.value?this.lookupKeyCtrl.value&&(this.lookupKeyCtrl.value.includes("@")||this.lookupKeyCtrl.value.includes(","))?(this.lookupKeyCtrl.setErrors({invalid:!0}),!0):void(0===(this.selectedFieldId||(this.selectedFieldId=0),this.flgSetLookupValue=!1,this.nodeLookupValue={},this.channelLookupValue=[],this.selectedFieldId)&&this.store.dispatch((0,k.Sf)({payload:this.lookupKeyCtrl.value.trim()}))):(this.lookupKeyCtrl.setErrors({required:!0}),!0)}onSelectChange(e){this.resetData(),this.selectedFieldId=e.value}resetData(){this.flgSetLookupValue=!1,this.nodeLookupValue={},this.channelLookupValue=[],this.lookupKeyCtrl.setValue(""),this.lookupKeyCtrl.setErrors(null),this.form.resetForm()}clearLookupValue(){this.nodeLookupValue={},this.channelLookupValue=[],this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(M.v),t.Y36(E.yh),t.Y36(K.eX))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-lookups"]],viewQuery:function(e,a){if(1&e&&t.Gf(ko,7),2&e){let s;t.iGM(s=t.CRH())&&(a.form=s.first)}},decls:24,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"],["checked","",1,"mr-4",3,"value"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"formControl"],["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",""],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["fxFlex","100"],[4,"ngIf","ngIfElse"],[3,"lookupResult"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-content",2)(3,"form",3,4)(5,"div",5)(6,"mat-radio-group",6)(7,"mat-radio-button",7),t._uU(8,"Node"),t.qZA()()(),t.TgZ(9,"mat-form-field",8)(10,"mat-label"),t._uU(11),t.qZA(),t._UZ(12,"input",9,10),t.YNc(14,Uo,2,1,"mat-error",11),t.YNc(15,Ro,2,1,"mat-error",11),t.qZA(),t.TgZ(16,"div",12)(17,"button",13),t.NdJ("click",function(){return a.resetData()}),t._uU(18,"Clear"),t.qZA(),t.TgZ(19,"button",14),t.NdJ("click",function(){return a.onLookup()}),t._uU(20,"Lookup"),t.qZA()()(),t.YNc(21,Ho,7,3,"div",15),t.qZA()()(),t.YNc(22,Qo,2,0,"ng-template",null,16,t.W1O)),2&e&&(t.xp6(7),t.Q6J("value",0),t.xp6(2),t.Q6J("ngClass",t.VKq(7,Yo,a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM)),t.xp6(2),t.Oqu((null==a.lookupFields[a.selectedFieldId]?null:a.lookupFields[a.selectedFieldId].placeholder)||"Lookup Key"),t.xp6(1),t.Q6J("formControl",a.lookupKeyCtrl),t.xp6(2),t.Q6J("ngIf",null==a.lookupKeyCtrl.errors?null:a.lookupKeyCtrl.errors.required),t.xp6(1),t.Q6J("ngIf",null==a.lookupKeyCtrl.errors?null:a.lookupKeyCtrl.errors.invalid),t.xp6(6),t.Q6J("ngIf",a.flgSetLookupValue))},dependencies:[u.mk,u.O5,u.RF,u.n9,u.ED,d._Y,d.Fj,d.JJ,d.JL,d.Q7,d.F,d.oH,h.xw,h.Wh,h.yH,Z.oO,F.lW,T.dn,Q.Nt,C.KE,C.hX,C.TO,at.VQ,at.U0,Po],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}"]}),o})();var Vo=g(9122);let zo=(()=>{var i;class o{constructor(e,a){this.store=e,this.eclEffects=a,this.newAddress=""}onGenerateAddress(){this.store.dispatch((0,k._E)()),this.eclEffects.setNewAddress.pipe((0,G.q)(1)).subscribe(e=>{this.newAddress=e,setTimeout(()=>{this.store.dispatch((0,S.qR)({payload:{data:{address:this.newAddress,addressType:"",component:Vo.n}}}))},0)})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(E.yh),t.Y36(ut.o))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-on-chain-receive"]],decls:4,vars:0,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","1",3,"click"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return a.onGenerateAddress()}),t._uU(3,"Generate Address"),t.qZA()()())},dependencies:[h.xw,h.Wh,h.yH,F.lW]}),o})(),Go=(()=>{var i;class o{constructor(e,a){this.store=e,this.activatedRoute=a,this.sweepAll=!1,this.unSubs=[new m.x,new m.x]}ngOnInit(){this.activatedRoute.data.pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.sweepAll=e.sweepAll})}openSendFundsModal(){this.store.dispatch((0,S.qR)({payload:{data:{sweepAll:this.sweepAll,component:It}}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(E.yh),t.Y36(b.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-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(e,a){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return a.openSendFundsModal()}),t._uU(3),t.qZA()()()),2&e&&(t.xp6(3),t.Oqu(a.sweepAll?"Sweep All":"Send Funds"))},dependencies:[h.xw,h.Wh,h.yH,F.lW]}),o})();var gt=g(8675),kt=g(4004),ot=g(7957),Wo=g(9843);const Ko=["form"];function Xo(i,o){if(1&i&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.Q6J("value",n),t.xp6(1),t.Oqu(n.alias?n.alias:n.nodeId?n.nodeId:"")}}function $o(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Peer alias is required."),t.qZA())}function jo(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Peer not found in the list."),t.qZA())}function ts(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"mat-form-field",1)(1,"mat-label"),t._uU(2,"Peer Alias"),t.qZA(),t.TgZ(3,"input",31),t.NdJ("change",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onSelectedPeerChanged())}),t.qZA(),t.TgZ(4,"mat-autocomplete",32,33),t.NdJ("optionSelected",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onSelectedPeerChanged())}),t.YNc(6,Xo,2,2,"mat-option",34),t.ALo(7,"async"),t.qZA(),t.YNc(8,$o,2,0,"mat-error",17),t.YNc(9,jo,2,0,"mat-error",17),t.qZA()}if(2&i){const n=t.MAs(5),e=t.oxw();t.xp6(3),t.Q6J("formControl",e.selectedPeer)("matAutocomplete",n),t.xp6(1),t.Q6J("displayWith",e.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(7,6,e.filteredPeers)),t.xp6(2),t.Q6J("ngIf",null==e.selectedPeer.errors?null:e.selectedPeer.errors.required),t.xp6(1),t.Q6J("ngIf",null==e.selectedPeer.errors?null:e.selectedPeer.errors.notfound)}}function es(i,o){1&i&&t.GkF(0)}function ns(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function is(i,o){if(1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.hij("Amount must be less than or equal to ",n.totalBalance,".")}}function as(i,o){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Oqu(n.channelConnectionError)}}function os(i,o){if(1&i&&(t.TgZ(0,"div",36),t._UZ(1,"fa-icon",37),t.YNc(2,as,2,1,"span",17),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Q6J("icon",n.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==n.channelConnectionError)}}function ss(i,o){if(1&i&&(t.TgZ(0,"mat-expansion-panel",39)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span"),t._uU(4,"Peer: \xa0"),t.qZA(),t.TgZ(5,"strong",40),t._uU(6),t.qZA()()(),t.TgZ(7,"div",9)(8,"div",0)(9,"div",1)(10,"h4",41),t._uU(11,"Pubkey"),t.qZA(),t.TgZ(12,"span",42),t._uU(13),t.qZA()()(),t._UZ(14,"mat-divider",43),t.TgZ(15,"div",0)(16,"div",44)(17,"h4",41),t._uU(18,"Address"),t.qZA(),t.TgZ(19,"span",45),t._uU(20),t.qZA()(),t.TgZ(21,"div",44)(22,"h4",41),t._uU(23,"State"),t.qZA(),t.TgZ(24,"span",45),t._uU(25),t.ALo(26,"titlecase"),t.qZA()()()()()),2&i){const n=t.oxw(2);t.xp6(6),t.Oqu((null==n.peer?null:n.peer.alias)||(null==n.peer?null:n.peer.nodeId)),t.xp6(7),t.Oqu(n.peer.nodeId),t.xp6(7),t.Oqu(null==n.peer?null:n.peer.address),t.xp6(5),t.Oqu(t.lcZ(26,4,null==n.peer?null:n.peer.state))}}function ls(i,o){if(1&i&&t.YNc(0,ss,27,6,"mat-expansion-panel",38),2&i){const n=t.oxw();t.Q6J("ngIf",n.peer)}}let Ut=(()=>{var i;class o{constructor(e,a,s,r){this.dialogRef=e,this.data=a,this.store=s,this.actions=r,this.selNode={},this.selectedPeer=new d.p4,this.faExclamationTriangle=L.eHv,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.totalBalance=0,this.selectedPubkey="",this.isPrivate=!1,this.feeRate=null,this.unSubs=[new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.data.message?(this.information=this.data.message.information,this.totalBalance=this.data.message.balance,this.peer=this.data.message.peer||null,this.peers=this.data.message.peers||[]):(this.information={},this.totalBalance=0,this.peer=null,this.peers=[]),this.alertTitle=this.data.alertTitle||"Alert",this.store.select(f.LR).pipe((0,_.R)(this.unSubs[0])).subscribe(s=>{this.selNode=s,this.isPrivate=!!s?.unannouncedChannels}),this.actions.pipe((0,_.R)(this.unSubs[1]),(0,Y.h)(s=>s.type===l.lr.UPDATE_API_CALL_STATUS_ECL||s.type===l.lr.FETCH_CHANNELS_ECL)).subscribe(s=>{s.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&s.payload.status===l.Bn.ERROR&&"SaveNewChannel"===s.payload.action&&(this.channelConnectionError=s.payload.message),s.type===l.lr.FETCH_CHANNELS_ECL&&this.dialogRef.close()});let e="",a="";this.sortedPeers=this.peers.sort((s,r)=>(e=s.alias?s.alias.toLowerCase():s.nodeId?s.nodeId.toLowerCase():"",a=r.alias?r.alias.toLowerCase():s.nodeId?s.nodeId.toLowerCase():"",ea?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe((0,_.R)(this.unSubs[2]),(0,gt.O)(""),(0,kt.U)(s=>"string"==typeof s?s:s.alias?s.alias:s.nodeId),(0,kt.U)(s=>s?this.filterPeers(s):this.sortedPeers.slice()))}filterPeers(e){return this.sortedPeers?.filter(a=>0===a.alias?.toLowerCase().indexOf(e?e.toLowerCase():""))}displayFn(e){return e&&e.alias?e.alias:e&&e.nodeId?e.nodeId:""}onSelectedPeerChanged(){if(this.channelConnectionError="",this.selectedPubkey=this.selectedPeer.value&&this.selectedPeer.value.nodeId?this.selectedPeer.value.nodeId:null,"string"==typeof this.selectedPeer.value){const e=this.peers?.filter(a=>a.alias?.length===this.selectedPeer.value.length&&0===a.alias?.toLowerCase().indexOf(this.selectedPeer.value?this.selectedPeer.value.toLowerCase():""));1===e.length&&e[0].nodeId&&(this.selectedPubkey=e[0].nodeId)}this.selectedPeer.setErrors(this.selectedPeer.value&&!this.selectedPubkey?{notfound:!0}:null)}onClose(){this.dialogRef.close(!1)}resetData(){this.feeRate=null,this.selectedPeer.setValue(""),this.fundingAmount=null,this.isPrivate=!!this.selNode?.unannouncedChannels,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.form.resetForm()}onAdvancedPanelToggle(e){this.advancedTitle="Advanced Options",e&&this.feeRate&&this.feeRate>0&&(this.advancedTitle=this.advancedTitle+" | Fee (Sats/vByte): "+this.feeRate)}onOpenChannel(){if(!this.peer&&!this.selectedPubkey||!this.fundingAmount||this.totalBalance-this.fundingAmount<0)return!0;const e={nodeId:this.peer&&this.peer.nodeId?this.peer.nodeId:this.selectedPubkey,amount:this.fundingAmount,private:this.isPrivate};this.feeRate&&(e.feeRate=this.feeRate),this.store.dispatch((0,k.YX)({payload:e}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(D.so),t.Y36(D.WI),t.Y36(E.yh),t.Y36(K.eX))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-open-channel"]],viewQuery:function(e,a){if(1&e&&t.Gf(Ko,7),2&e){let s;t.iGM(s=t.CRH())&&(a.form=s.first)}},decls:52,vars:18,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","11","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column",3,"submit","reset"],["form","ngForm"],["fxLayout","column"],["fxFlex","100",4,"ngIf"],[4,"ngTemplateOutlet"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxLayout","column","fxFlex","70","fxLayoutAlign","start end"],["matInput","","type","number","tabindex","1","required","","name","amount",3,"step","min","max","ngModel","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"],["fxFlex","100","fxLayout","row","fxLayoutAlign","space-between center"],["fxLayout","column","fxFlex","49"],["matInput","","type","number","name","fee","tabindex","7",3,"step","min","ngModel","ngModelChange"],["fee","ngModel"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","9","type","reset",1,"mr-1"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","10"],["peerDetailsExpansionBlock",""],["type","text","aria-label","Peers","matInput","","tabindex","1","required","",3,"formControl","matAutocomplete","change"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[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"],["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(e,a){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return a.onClose()}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8),t.NdJ("submit",function(){return a.onOpenChannel()})("reset",function(){return a.resetData()}),t.TgZ(11,"div",9),t.YNc(12,ts,10,8,"mat-form-field",10),t.qZA(),t.YNc(13,es,1,0,"ng-container",11),t.TgZ(14,"div",9)(15,"div",12)(16,"mat-form-field",13)(17,"mat-label"),t._uU(18,"Amount"),t.qZA(),t.TgZ(19,"input",14,15),t.NdJ("ngModelChange",function(r){return a.fundingAmount=r}),t.qZA(),t.TgZ(21,"mat-hint"),t._uU(22),t.ALo(23,"number"),t.qZA(),t.TgZ(24,"span",16),t._uU(25," Sats "),t.qZA(),t.YNc(26,ns,2,0,"mat-error",17),t.YNc(27,is,2,1,"mat-error",17),t.qZA(),t.TgZ(28,"div",18)(29,"mat-slide-toggle",19),t.NdJ("ngModelChange",function(r){return a.isPrivate=r}),t._uU(30,"Private Channel"),t.qZA()()(),t.TgZ(31,"mat-expansion-panel",20),t.NdJ("closed",function(){return a.onAdvancedPanelToggle(!0)})("opened",function(){return a.onAdvancedPanelToggle(!1)}),t.TgZ(32,"mat-expansion-panel-header")(33,"mat-panel-title")(34,"span"),t._uU(35),t.qZA()()(),t.TgZ(36,"div",21)(37,"div",12)(38,"div",22)(39,"mat-form-field",23)(40,"mat-label"),t._uU(41,"Fee (Sats/vByte)"),t.qZA(),t.TgZ(42,"input",24,25),t.NdJ("ngModelChange",function(r){return a.feeRate=r}),t.qZA()()()()()()(),t.YNc(44,os,3,2,"div",26),t.TgZ(45,"div",27)(46,"button",28),t._uU(47,"Clear Fields"),t.qZA(),t.TgZ(48,"button",29),t._uU(49,"Open Channel"),t.qZA()()()()()(),t.YNc(50,ls,1,1,"ng-template",null,30,t.W1O)),2&e){const s=t.MAs(20),r=t.MAs(51);t.xp6(5),t.Oqu(a.alertTitle),t.xp6(7),t.Q6J("ngIf",!a.peer&&a.peers&&a.peers.length>0),t.xp6(1),t.Q6J("ngTemplateOutlet",r),t.xp6(6),t.Q6J("step",1e3)("min",1)("max",a.totalBalance)("ngModel",a.fundingAmount),t.xp6(3),t.hij("Remaining: ",t.lcZ(23,16,a.totalBalance-(a.fundingAmount?a.fundingAmount:0)),""),t.xp6(4),t.Q6J("ngIf",null==s.errors?null:s.errors.required),t.xp6(1),t.Q6J("ngIf",null==s.errors?null:s.errors.max),t.xp6(2),t.Q6J("ngModel",a.isPrivate),t.xp6(6),t.Oqu(a.advancedTitle),t.xp6(7),t.Q6J("step",1)("min",0)("ngModel",a.feeRate),t.xp6(2),t.Q6J("ngIf",""!==a.channelConnectionError)}},dependencies:[u.sg,u.O5,u.tP,d._Y,d.Fj,d.wV,d.JJ,d.JL,d.Q7,d.qQ,d.Fd,d.On,d.F,d.oH,I.BN,h.xw,h.Wh,h.yH,F.lW,T.dn,T.dk,B.ib,B.yz,B.yK,Q.Nt,C.KE,C.hX,C.bx,C.TO,C.R9,X.d,V.ey,qt.Rr,ot.XC,ot.ZL,$.h,Wo.F,j.q,u.Ov,u.JJ,u.rS],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),o})();function rs(i,o){if(1&i&&(t.TgZ(0,"span",7),t._uU(1,"Open"),t.qZA()),2&i){const n=t.oxw();t.s9C("matBadge",n.numOfOpenChannels)}}function cs(i,o){if(1&i&&(t.TgZ(0,"span",7),t._uU(1,"Pending"),t.qZA()),2&i){const n=t.oxw();t.s9C("matBadge",n.numOfPendingChannels)}}function us(i,o){if(1&i&&(t.TgZ(0,"span",7),t._uU(1,"Inactive"),t.qZA()),2&i){const n=t.oxw();t.s9C("matBadge",n.numOfInactiveChannels)}}let ps=(()=>{var i;class o{constructor(e,a,s){this.logger=e,this.store=a,this.router=s,this.numOfOpenChannels=0,this.numOfPendingChannels=0,this.numOfInactiveChannels=0,this.selNode={},this.information={},this.peers=[],this.totalBalance=0,this.links=[{link:"open",name:"Open"},{link:"pending",name:"Pending"},{link:"inactive",name:"Inactive"}],this.activeLink=0,this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.activeLink=this.links.findIndex(e=>e.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Y.h)(e=>e instanceof b.Av)).subscribe({next:e=>{this.activeLink=this.links.findIndex(a=>a.link===e.urlAfterRedirects.substring(e.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(f.Xz).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.numOfOpenChannels=e.channelsStatus&&e.channelsStatus.active&&e.channelsStatus.active.channels?e.channelsStatus.active.channels:0,this.numOfPendingChannels=e.channelsStatus&&e.channelsStatus.pending&&e.channelsStatus.pending.channels?e.channelsStatus.pending.channels:0,this.numOfInactiveChannels=e.channelsStatus&&e.channelsStatus.inactive&&e.channelsStatus.inactive.channels?e.channelsStatus.inactive.channels:0,this.logger.info(e)}),this.store.select(f.LR).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.selNode=e}),this.store.select(f.yD).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.information=e}),this.store.select(f.Bo).pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{this.peers=e.peers}),this.store.select(f.kY).pipe((0,_.R)(this.unSubs[5])).subscribe(e=>{this.totalBalance=e.onchainBalance.total||0})}onOpenChannel(){this.store.dispatch((0,S.qR)({payload:{data:{alertTitle:"Open Channel",message:{peers:this.peers,information:this.information,balance:this.totalBalance},component:Ut}}}))}onSelectedTabChange(e){this.router.navigateByUrl("/ecl/connections/channels/"+this.links[e.index].link)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(E.yh),t.Y36(b.F0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-channels-tables"]],decls:14,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100",1,"bordered-box"],["mat-stretch-tabs","false","mat-align-tabs","start",3,"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(e,a){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return a.onOpenChannel()}),t._uU(3,"Open Channel"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-tab-group",4),t.NdJ("selectedIndexChange",function(r){return a.activeLink=r})("selectedTabChange",function(r){return a.onSelectedTabChange(r)}),t.TgZ(6,"mat-tab"),t.YNc(7,rs,2,1,"ng-template",5),t.qZA(),t.TgZ(8,"mat-tab"),t.YNc(9,cs,2,1,"ng-template",5),t.qZA(),t.TgZ(10,"mat-tab"),t.YNc(11,us,2,1,"ng-template",5),t.qZA()(),t.TgZ(12,"div",6),t._UZ(13,"router-outlet"),t.qZA()()()),2&e&&(t.xp6(5),t.Q6J("selectedIndex",a.activeLink))},dependencies:[h.xw,h.Wh,h.yH,F.lW,Ft.k,q.uD,q.uX,q.SP,b.lC]}),o})();function ms(i,o){if(1&i&&(t.TgZ(0,"div",11)(1,"h4",12),t._uU(2,"Short Channel ID"),t.qZA(),t.TgZ(3,"span",13),t._uU(4),t.qZA()()),2&i){const n=t.oxw();t.xp6(4),t.Oqu(n.channel.shortChannelId)}}function ds(i,o){if(1&i&&(t.TgZ(0,"div",11)(1,"h4",12),t._uU(2,"State"),t.qZA(),t.TgZ(3,"span",15),t._uU(4),t.ALo(5,"titlecase"),t.qZA()()),2&i){const n=t.oxw();t.xp6(4),t.Oqu(t.lcZ(5,1,n.channel.state))}}function hs(i,o){if(1&i&&(t.TgZ(0,"div")(1,"div",9)(2,"div",11)(3,"h4",12),t._uU(4,"Local Balance (Sats)"),t.qZA(),t.TgZ(5,"span",15),t._uU(6),t.ALo(7,"number"),t.qZA()(),t.TgZ(8,"div",11)(9,"h4",12),t._uU(10,"Remote Balance (Sats)"),t.qZA(),t.TgZ(11,"span",15),t._uU(12),t.ALo(13,"number"),t.qZA()()(),t._UZ(14,"mat-divider",14),t.TgZ(15,"div",9)(16,"div",11)(17,"h4",12),t._uU(18,"Base Fee (mSats)"),t.qZA(),t.TgZ(19,"span",15),t._uU(20),t.ALo(21,"number"),t.qZA()(),t.TgZ(22,"div",11)(23,"h4",12),t._uU(24,"Fee Rate (mili mSats)"),t.qZA(),t.TgZ(25,"span",15),t._uU(26),t.ALo(27,"number"),t.qZA()()(),t._UZ(28,"mat-divider",14),t.qZA()),2&i){const n=t.oxw();t.xp6(6),t.Oqu(t.lcZ(7,6,n.channel.toLocal)),t.xp6(6),t.Oqu(t.lcZ(13,8,n.channel.toRemote)),t.xp6(2),t.Q6J("inset",!0),t.xp6(6),t.Oqu(t.lcZ(21,10,n.channel.feeBaseMsat)),t.xp6(6),t.Oqu(t.lcZ(27,12,n.channel.feeProportionalMillionths)),t.xp6(2),t.Q6J("inset",!0)}}function _s(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"Show Advanced"),t.qZA())}function gs(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"Hide Advanced"),t.qZA())}function fs(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"button",21),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onShowAdvanced())}),t.YNc(1,_s,2,0,"p",22),t.YNc(2,gs,2,0,"ng-template",null,23,t.W1O),t.qZA()}if(2&i){const n=t.MAs(3),e=t.oxw();t.xp6(1),t.Q6J("ngIf",!e.showAdvanced)("ngIfElse",n)}}function Cs(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"button",24),t.NdJ("copied",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.onCopyChanID(a))}),t._uU(1,"Copy Short Channel ID"),t.qZA()}if(2&i){const n=t.oxw();t.Q6J("payload",n.channel.shortChannelId)}}function xs(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"button",25),t.NdJ("copied",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.onCopyChanID(a))}),t._uU(1,"Copy Channel ID"),t.qZA()}if(2&i){const n=t.oxw();t.Q6J("payload",n.channel.channelId)}}const ys=function(i){return{"xs-scroll-y":i}},bs=function(i,o){return{"mt-2":i,"mt-1":o}};let ft=(()=>{var i;class o{constructor(e,a,s,r,p){this.dialogRef=e,this.data=a,this.logger=s,this.commonService=r,this.snackBar=p,this.faReceipt=L.dLy,this.showAdvanced=!1,this.channelsType="open",this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.channel=this.data.channel,this.channelsType=this.data.channelsType||"",this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyChanID(e){this.snackBar.open("open"===this.channelsType?"Short channel ID "+e+" copied.":"Channel ID copied."),this.logger.info("Copied Text: "+e)}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(D.so),t.Y36(D.WI),t.Y36(R.mQ),t.Y36(M.v),t.Y36(Ot.ux))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-channel-information"]],decls:59,vars:27,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 center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxLayout","row"],["fxFlex","50",4,"ngIf"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],[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","class","mr-1",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","3","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["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"],["autoFocus","","mat-button","","color","primary","tabindex","3","type","submit","rtlClipboard","",3,"payload","copied"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span",5),t._uU(6,"Channel Information"),t.qZA()(),t.TgZ(7,"button",6),t.NdJ("click",function(){return a.onClose()}),t._uU(8,"X"),t.qZA()(),t.TgZ(9,"mat-card-content",7)(10,"div",8)(11,"div",9),t.YNc(12,ms,5,1,"div",10),t.TgZ(13,"div",11)(14,"h4",12),t._uU(15,"Peer Alias"),t.qZA(),t.TgZ(16,"span",13),t._uU(17),t.qZA()(),t.YNc(18,ds,6,3,"div",10),t.qZA(),t._UZ(19,"mat-divider",14),t.TgZ(20,"div",9)(21,"div",1)(22,"h4",12),t._uU(23,"Channel ID"),t.qZA(),t.TgZ(24,"span",13),t._uU(25),t.qZA()()(),t._UZ(26,"mat-divider",14),t.TgZ(27,"div",9)(28,"div",1)(29,"h4",12),t._uU(30,"Peer Public Key"),t.qZA(),t.TgZ(31,"span",13),t._uU(32),t.qZA()()(),t._UZ(33,"mat-divider",14),t.TgZ(34,"div",9)(35,"div",1)(36,"h4",12),t._uU(37,"State"),t.qZA(),t.TgZ(38,"span",15),t._uU(39),t.ALo(40,"titlecase"),t.qZA()()(),t._UZ(41,"mat-divider",14),t.TgZ(42,"div",9)(43,"div",11)(44,"h4",12),t._uU(45,"Private"),t.qZA(),t.TgZ(46,"span",15),t._uU(47),t.qZA()(),t.TgZ(48,"div",11)(49,"h4",12),t._uU(50,"Initiator"),t.qZA(),t.TgZ(51,"span",15),t._uU(52),t.qZA()()(),t._UZ(53,"mat-divider",14),t.YNc(54,hs,29,14,"div",16),t.TgZ(55,"div",17),t.YNc(56,fs,4,2,"button",18),t.YNc(57,Cs,2,1,"button",19),t.YNc(58,xs,2,1,"button",20),t.qZA()()()()()),2&e&&(t.xp6(4),t.Q6J("icon",a.faReceipt),t.xp6(5),t.Q6J("ngClass",t.VKq(22,ys,a.screenSize===a.screenSizeEnum.XS)),t.xp6(3),t.Q6J("ngIf","open"===a.channelsType),t.xp6(5),t.Oqu(a.channel.alias),t.xp6(1),t.Q6J("ngIf","open"!==a.channelsType),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(a.channel.channelId),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(a.channel.nodeId),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(t.lcZ(40,20,a.channel.state)),t.xp6(2),t.Q6J("inset",!0),t.xp6(6),t.Oqu(a.channel.announceChannel?"No":"Yes"),t.xp6(5),t.Oqu(a.channel.isInitiator?"Yes":"No"),t.xp6(1),t.Q6J("inset",!0),t.xp6(1),t.Q6J("ngIf",a.showAdvanced&&"open"===a.channelsType),t.xp6(1),t.Q6J("ngClass",t.WLB(24,bs,!a.showAdvanced,a.showAdvanced)),t.xp6(1),t.Q6J("ngIf","open"===a.channelsType),t.xp6(1),t.Q6J("ngIf","open"===a.channelsType),t.xp6(1),t.Q6J("ngIf","open"!==a.channelsType))},dependencies:[u.mk,u.O5,I.BN,h.xw,h.Wh,h.yH,Z.oO,F.lW,T.dn,T.dk,X.d,Pt.y,$.h,u.JJ,u.rS]}),o})();var Ct=g(9646),xt=g(7772),Ls=g(113);function Ts(i,o){1&i&&t.GkF(0)}const et=function(i,o){return{"small-svg":i,"large-svg":o}};function vs(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.onSwipe(a))}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",8)(3,"path",9)(4,"path",10)(5,"path",11)(6,"path",12)(7,"path",13)(8,"path",14)(9,"path",15)(10,"path",16)(11,"path",17)(12,"path",18)(13,"path",19)(14,"path",20)(15,"path",21)(16,"path",22)(17,"path",23)(18,"path",24)(19,"path",25)(20,"path",26)(21,"path",27)(22,"path",28)(23,"path",29)(24,"path",30)(25,"path",31)(26,"path",32)(27,"path",33)(28,"path",34)(29,"path",35)(30,"path",36)(31,"path",37)(32,"path",38)(33,"path",39)(34,"path",40)(35,"path",41)(36,"path",42)(37,"path",43)(38,"path",44)(39,"path",45)(40,"path",46),t.qZA(),t.kcU(),t.TgZ(41,"div",47)(42,"mat-card-title"),t._uU(43,"Circular rebalancing explained."),t.qZA()(),t.TgZ(44,"div",48)(45,"mat-card-subtitle",49),t._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. "),t.qZA()()()}if(2&i){const n=t.oxw();t.Q6J("@sliderAnimation",n.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,et,n.screenSize===n.screenSizeEnum.XS,n.screenSize!==n.screenSizeEnum.XS))}}function Zs(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",50),t.NdJ("swipe",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.onSwipe(a))}),t.O4$(),t.TgZ(1,"svg",51),t._UZ(2,"path",52)(3,"path",53)(4,"path",54)(5,"path",55)(6,"path",56)(7,"path",57)(8,"path",58)(9,"path",59)(10,"path",60)(11,"path",61)(12,"path",62)(13,"path",63)(14,"path",64)(15,"path",65)(16,"path",66)(17,"path",67)(18,"path",68)(19,"path",69)(20,"path",70)(21,"path",71)(22,"path",72)(23,"path",73)(24,"path",74)(25,"path",75)(26,"path",76)(27,"path",77)(28,"path",78)(29,"path",79)(30,"path",80)(31,"path",81)(32,"path",82)(33,"path",52)(34,"path",53)(35,"path",54)(36,"path",55)(37,"path",56)(38,"path",57)(39,"path",58)(40,"path",59)(41,"path",60)(42,"path",83)(43,"path",84)(44,"path",63)(45,"path",85)(46,"path",86)(47,"path",87)(48,"path",67)(49,"path",68)(50,"path",69)(51,"path",70)(52,"path",71)(53,"path",72)(54,"path",73)(55,"path",74)(56,"path",75)(57,"path",76)(58,"path",77)(59,"path",78)(60,"path",79)(61,"path",80)(62,"path",88)(63,"path",82)(64,"path",89),t.TgZ(65,"defs")(66,"linearGradient",90),t._UZ(67,"stop",91)(68,"stop",92)(69,"stop",93),t.qZA(),t.TgZ(70,"linearGradient",94),t._UZ(71,"stop",91)(72,"stop",92)(73,"stop",93),t.qZA(),t.TgZ(74,"linearGradient",95),t._UZ(75,"stop",91)(76,"stop",92)(77,"stop",93),t.qZA(),t.TgZ(78,"linearGradient",96),t._UZ(79,"stop",91)(80,"stop",92)(81,"stop",93),t.qZA(),t.TgZ(82,"linearGradient",97),t._UZ(83,"stop",91)(84,"stop",92)(85,"stop",93),t.qZA(),t.TgZ(86,"linearGradient",98),t._UZ(87,"stop",91)(88,"stop",92)(89,"stop",93),t.qZA()()(),t.kcU(),t.TgZ(90,"div",47)(91,"mat-card-title"),t._uU(92,"Step 1: Unbalanced channel"),t.qZA()(),t.TgZ(93,"div",48)(94,"mat-card-subtitle",49),t._uU(95," It starts with an unbalanced channel, that needs to be rebalanced in order to continue to route payments. "),t.qZA()()()}if(2&i){const n=t.oxw();t.Q6J("@sliderAnimation",n.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,et,n.screenSize===n.screenSizeEnum.XS,n.screenSize!==n.screenSizeEnum.XS))}}function Ss(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",50),t.NdJ("swipe",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.onSwipe(a))}),t.O4$(),t.TgZ(1,"svg",99),t._UZ(2,"path",100)(3,"path",101)(4,"path",102)(5,"path",103)(6,"path",104)(7,"path",105)(8,"path",106)(9,"path",107)(10,"path",108)(11,"path",109)(12,"path",110)(13,"path",111)(14,"path",112)(15,"path",113)(16,"path",114)(17,"path",52)(18,"path",115)(19,"path",116)(20,"path",117)(21,"path",118)(22,"path",119)(23,"path",120)(24,"path",121)(25,"path",122)(26,"path",83)(27,"path",84)(28,"path",123)(29,"path",124)(30,"path",125)(31,"path",126)(32,"path",67)(33,"path",127)(34,"path",128)(35,"path",129)(36,"path",130)(37,"path",131)(38,"path",132)(39,"path",74)(40,"path",75)(41,"path",133)(42,"path",77)(43,"path",78)(44,"path",79)(45,"path",80)(46,"path",134)(47,"path",135)(48,"path",136),t.TgZ(49,"defs")(50,"linearGradient",137),t._UZ(51,"stop",91)(52,"stop",92)(53,"stop",93),t.qZA(),t.TgZ(54,"linearGradient",138),t._UZ(55,"stop",91)(56,"stop",92)(57,"stop",93),t.qZA(),t.TgZ(58,"linearGradient",139),t._UZ(59,"stop",91)(60,"stop",92)(61,"stop",93),t.qZA()()(),t.kcU(),t.TgZ(62,"div",47)(63,"mat-card-title"),t._uU(64,"Step 2: Invoice/Payment"),t.qZA()(),t.TgZ(65,"div",48)(66,"mat-card-subtitle",49),t._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. "),t.qZA()()()}if(2&i){const n=t.oxw();t.Q6J("@sliderAnimation",n.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,et,n.screenSize===n.screenSizeEnum.XS,n.screenSize!==n.screenSizeEnum.XS))}}function As(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",50),t.NdJ("swipe",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.onSwipe(a))}),t.O4$(),t.TgZ(1,"svg",140),t._UZ(2,"path",141)(3,"path",142)(4,"path",143)(5,"path",144)(6,"path",145)(7,"path",146)(8,"path",147)(9,"path",148)(10,"path",149)(11,"path",150)(12,"path",151)(13,"path",152)(14,"path",153)(15,"path",154)(16,"path",155)(17,"path",156)(18,"path",157)(19,"path",158)(20,"path",159)(21,"path",160)(22,"path",161)(23,"path",162)(24,"path",163)(25,"path",164)(26,"path",163)(27,"path",165)(28,"path",166)(29,"path",167)(30,"path",168)(31,"path",169)(32,"path",170)(33,"path",171)(34,"path",172)(35,"path",173)(36,"path",174)(37,"path",175)(38,"path",176)(39,"path",177)(40,"path",178)(41,"path",179),t.TgZ(42,"defs")(43,"linearGradient",180),t._UZ(44,"stop",91)(45,"stop",92)(46,"stop",93),t.qZA()()(),t.kcU(),t.TgZ(47,"div",47)(48,"mat-card-title"),t._uU(49,"Step 3: Rebalance amount"),t.qZA()(),t.TgZ(50,"div",48)(51,"mat-card-subtitle",49),t._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. "),t.qZA()()()}if(2&i){const n=t.oxw();t.Q6J("@sliderAnimation",n.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,et,n.screenSize===n.screenSizeEnum.XS,n.screenSize!==n.screenSizeEnum.XS))}}function Es(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",50),t.NdJ("swipe",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.onSwipe(a))}),t.O4$(),t.TgZ(1,"svg",140),t._UZ(2,"path",181)(3,"path",143)(4,"path",182)(5,"path",145)(6,"path",146)(7,"path",183)(8,"path",148)(9,"path",184)(10,"path",185)(11,"path",186)(12,"path",187)(13,"path",188)(14,"path",189)(15,"path",190)(16,"path",191)(17,"path",192)(18,"path",158)(19,"path",193)(20,"path",194)(21,"path",179)(22,"path",160)(23,"path",161)(24,"path",195)(25,"path",163)(26,"path",164)(27,"path",163)(28,"path",165)(29,"path",166)(30,"path",167)(31,"path",168)(32,"path",196)(33,"path",170)(34,"path",197)(35,"path",172)(36,"path",173)(37,"path",174)(38,"path",175)(39,"path",176)(40,"path",198),t.TgZ(41,"defs")(42,"linearGradient",199),t._UZ(43,"stop",91)(44,"stop",92)(45,"stop",93),t.qZA()()(),t.kcU(),t.TgZ(46,"div",47)(47,"mat-card-title"),t._uU(48,"Rebalance successful!"),t.qZA()(),t.TgZ(49,"div",48)(50,"mat-card-subtitle",49),t._uU(51," Your channel is successfully rebalanced and is able to continue to route payments. "),t.qZA()()()}if(2&i){const n=t.oxw();t.Q6J("@sliderAnimation",n.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,et,n.screenSize===n.screenSizeEnum.XS,n.screenSize!==n.screenSizeEnum.XS))}}let ws=(()=>{var i;class o{constructor(e){this.commonService=e,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new t.vpe,this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(e){2===e.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===e.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(M.v))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-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 starts",3,"swipe"],["fxFlex","30","viewBox","0 0 246 154","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["fill-rule","evenodd","clip-rule","evenodd","d","M187.8 136C203.043 136 215.4 133.493 215.4 130.4C215.4 127.307 203.043 124.8 187.8 124.8C172.557 124.8 160.2 127.307 160.2 130.4C160.2 133.493 172.557 136 187.8 136Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["fill-rule","evenodd","clip-rule","evenodd","d","M128.6 148.8C143.843 148.8 156.2 146.293 156.2 143.2C156.2 140.107 143.843 137.6 128.6 137.6C113.357 137.6 101 140.107 101 143.2C101 146.293 113.357 148.8 128.6 148.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["opacity","0.1","d","M100.2 117.421C100.2 117.421 99.0633 117.494 99.4998 117.722C99.9363 117.95 100.2 117.421 100.2 117.421Z","fill","black"],["opacity","0.1","d","M101 118.4C100.986 118.471 98.1102 119.483 98.673 119.933C99.2358 120.384 101 118.4 101 118.4Z","fill","black"],["opacity","0.1","d","M97.8 128.98C98.0492 128.966 100.509 128.241 101 128.89L97.8 128.98Z","fill","black"],["opacity","0.1","d","M100.2 129.709C100.2 129.709 100.563 129.362 100.926 129.543C101.289 129.725 100.2 129.709 100.2 129.709Z","fill","black"],["opacity","0.1","d","M101.8 132C101.8 132 101.641 133.198 101 133.6L101.8 132Z","fill","black"],["d","M119.223 21.4239L123.102 22.0818L118.209 50.9111L114.33 50.2532L119.223 21.4239Z",1,"fill-color-primary-darker"],["d","M127.4 137.844L128.262 144L129 137.6L127.4 137.844Z",1,"fill-color-29"],["d","M100.2 134.349V138.226L101 141.6H101.571L102.258 137.976L102.6 133.6L100.2 134.349Z",1,"fill-color-28"],["d","M110.75 50.4L104.806 87.6521C104.806 87.6521 96.0162 127.358 99.3581 135.2H103.57L116.2 58.9791L110.75 50.4Z",1,"fill-color-29"],["d","M125.308 45.6L129.979 83.02C129.979 83.02 133.381 130.691 129.656 138.4H125.976L119.4 53.9698L125.308 45.6Z",1,"fill-color-29"],["d","M110.017 36.2213C110.634 34.1443 112.565 32.7417 114.724 32.8019C118.318 32.893 123.873 33.5496 126.77 36.5268C131.261 41.1521 123.736 56.731 123.736 56.731C123.736 56.731 116.69 69.7545 110.267 53.2022C110.258 53.2159 107.595 44.3527 110.017 36.2213Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M110.017 36.2213C110.634 34.1443 112.565 32.7417 114.724 32.8019C118.318 32.893 123.873 33.5496 126.77 36.5268C131.261 41.1521 123.736 56.731 123.736 56.731C123.736 56.731 116.69 69.7545 110.267 53.2022C110.258 53.2159 107.595 44.3527 110.017 36.2213Z","fill","black"],["d","M112.922 39.2661C113.364 37.7699 114.731 36.7605 116.259 36.8012C118.804 36.8682 122.74 37.3423 124.787 39.4927C127.969 42.8316 122.638 54.0832 122.638 54.0832C122.638 54.0832 117.661 63.4872 113.092 51.5396C113.092 51.5327 111.203 45.1393 112.922 39.2661Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M131.383 131.52C131.69 131.628 131.968 131.791 132.2 132C131.813 131.613 130.708 131.42 130.166 131.24C129.495 131.019 128.764 130.793 128.2 130.4C129.29 130.705 130.354 131.079 131.383 131.52Z","fill","black"],["opacity","0.1","d","M94.2 24.8C96.1882 24.8 97.8 23.1882 97.8 21.2C97.8 19.2118 96.1882 17.6 94.2 17.6C92.2117 17.6 90.6 19.2118 90.6 21.2C90.6 23.1882 92.2117 24.8 94.2 24.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M107 12C110.314 12 113 9.31371 113 6C113 2.68629 110.314 0 107 0C103.686 0 101 2.68629 101 6C101 9.31371 103.686 12 107 12Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M99 40.8C102.314 40.8 105 38.1137 105 34.8C105 31.4863 102.314 28.8 99 28.8C95.6863 28.8 93 31.4863 93 34.8C93 38.1137 95.6863 40.8 99 40.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M223 67.2C224.988 67.2 226.6 65.5882 226.6 63.6C226.6 61.6118 224.988 60 223 60C221.012 60 219.4 61.6118 219.4 63.6C219.4 65.5882 221.012 67.2 223 67.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M210.2 54.4C213.514 54.4 216.2 51.7137 216.2 48.4C216.2 45.0863 213.514 42.4 210.2 42.4C206.886 42.4 204.2 45.0863 204.2 48.4C204.2 51.7137 206.886 54.4 210.2 54.4Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M218.2 83.2C221.514 83.2 224.2 80.5137 224.2 77.2C224.2 73.8863 221.514 71.2 218.2 71.2C214.886 71.2 212.2 73.8863 212.2 77.2C212.2 80.5137 214.886 83.2 218.2 83.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M23.8 72C24.9046 72 25.8 71.1046 25.8 70C25.8 68.8954 24.9046 68 23.8 68C22.6954 68 21.8 68.8954 21.8 70C21.8 71.1046 22.6954 72 23.8 72Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M33 65.6C34.7673 65.6 36.2 64.1673 36.2 62.4C36.2 60.6327 34.7673 59.2 33 59.2C31.2327 59.2 29.8 60.6327 29.8 62.4C29.8 64.1673 31.2327 65.6 33 65.6Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M17 71.2C18.7673 71.2 20.2 69.7673 20.2 68C20.2 66.2327 18.7673 64.8 17 64.8C15.2327 64.8 13.8 66.2327 13.8 68C13.8 69.7673 15.2327 71.2 17 71.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M171.8 60C172.905 60 173.8 59.1046 173.8 58C173.8 56.8954 172.905 56 171.8 56C170.695 56 169.8 56.8954 169.8 58C169.8 59.1046 170.695 60 171.8 60Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M180.2 53.6C181.967 53.6 183.4 52.1673 183.4 50.4C183.4 48.6327 181.967 47.2 180.2 47.2C178.433 47.2 177 48.6327 177 50.4C177 52.1673 178.433 53.6 180.2 53.6Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M164.2 59.2C165.967 59.2 167.4 57.7673 167.4 56C167.4 54.2327 165.967 52.8 164.2 52.8C162.433 52.8 161 54.2327 161 56C161 57.7673 162.433 59.2 164.2 59.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M51 40.8C55.6392 40.8 59.4 37.0392 59.4 32.4C59.4 27.7608 55.6392 24 51 24C46.3608 24 42.6 27.7608 42.6 32.4C42.6 37.0392 46.3608 40.8 51 40.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M98.6 64.8C101.251 64.8 103.4 62.651 103.4 60C103.4 57.349 101.251 55.2 98.6 55.2C95.949 55.2 93.8 57.349 93.8 60C93.8 62.651 95.949 64.8 98.6 64.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M145.8 96.8C148.451 96.8 150.6 94.651 150.6 92C150.6 89.349 148.451 87.2 145.8 87.2C143.149 87.2 141 89.349 141 92C141 94.651 143.149 96.8 145.8 96.8Z",1,"fill-color-primary-darker"],["fill-rule","evenodd","clip-rule","evenodd","d","M59.8 136.8C75.0431 136.8 87.4 134.293 87.4 131.2C87.4 128.107 75.0431 125.6 59.8 125.6C44.557 125.6 32.2 128.107 32.2 131.2C32.2 134.293 44.557 136.8 59.8 136.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["fill-rule","evenodd","clip-rule","evenodd","d","M217.4 152.8C232.643 152.8 245 150.293 245 147.2C245 144.107 232.643 141.6 217.4 141.6C202.157 141.6 189.8 144.107 189.8 147.2C189.8 150.293 202.157 152.8 217.4 152.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["fill-rule","evenodd","clip-rule","evenodd","d","M28.6 152.8C43.8431 152.8 56.2 150.293 56.2 147.2C56.2 144.107 43.8431 141.6 28.6 141.6C13.3569 141.6 1 144.107 1 147.2C1 150.293 13.3569 152.8 28.6 152.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["d","M122.425 44.7H119.162L120.372 41.0719C120.484 40.6219 120.147 40.2 119.725 40.2H115.675C115.337 40.2 115.028 40.4531 115 40.7906L114.1 47.5406C114.044 47.9625 114.353 48.3 114.775 48.3H118.094L116.8 53.7844C116.716 54.2063 117.025 54.6 117.447 54.6C117.7 54.6 117.925 54.4875 118.037 54.2625L122.987 45.7125C123.269 45.2906 122.931 44.7 122.425 44.7Z","fill","white"],["d","M23.5204 123.2C23.0498 123.2 22.6141 123.375 22.2807 123.669C21.9491 123.96 21.7189 124.369 21.6565 124.837L20.2164 135.712C20.1423 136.278 20.3237 136.811 20.6643 137.203C21.0076 137.598 21.5119 137.85 22.0804 137.85H26.4117L24.5687 145.68C24.4289 146.274 24.5836 146.851 24.9204 147.28C25.2626 147.716 25.7931 148 26.3959 148C26.7289 148 27.0539 147.911 27.3385 147.746C27.616 147.585 27.8553 147.351 28.0254 147.055L35.9453 133.28C36.3068 132.658 36.2644 131.95 35.9495 131.398C35.7868 131.113 35.551 130.871 35.2622 130.703C34.9905 130.544 34.6717 130.45 34.3203 130.45H30.1609L31.7043 124.49C31.5476 124.305 31.4051 124.176 31.278 124.085C31.004 123.89 30.5348 123.687 29.7238 123.539C28.6009 123.335 26.6977 123.2 23.5204 123.2Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["d","M185.5 109.6C185.075 109.6 184.682 109.757 184.381 110.02C184.08 110.284 183.872 110.652 183.815 111.073L182.615 120.074C182.548 120.585 182.712 121.066 183.021 121.419C183.331 121.774 183.787 122 184.3 122H187.74L186.244 128.309C186.117 128.846 186.258 129.366 186.564 129.753C186.873 130.145 187.352 130.4 187.897 130.4C188.505 130.4 189.084 130.074 189.391 129.512L195.745 115.6H191.208L192.467 110.771C192.308 110.576 192.165 110.445 192.04 110.357C191.803 110.189 191.397 110.01 190.693 109.883C189.753 109.713 188.16 109.6 185.5 109.6Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["d","M215.1 128C214.675 128 214.282 128.157 213.981 128.42C213.68 128.683 213.472 129.052 213.415 129.473L212.215 138.474C212.148 138.985 212.312 139.466 212.621 139.819C212.931 140.174 213.387 140.4 213.9 140.4H217.34L215.844 146.709C215.717 147.246 215.858 147.766 216.164 148.153C216.473 148.545 216.952 148.8 217.497 148.8C218.105 148.8 218.684 148.474 218.991 147.912L225.345 134H220.808L222.067 129.171C221.908 128.976 221.765 128.845 221.64 128.757C221.403 128.589 220.997 128.41 220.293 128.283C219.353 128.113 217.76 128 215.1 128Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["d","M55.9003 111.2C55.4754 111.2 55.0822 111.357 54.7812 111.62C54.4802 111.883 54.2716 112.252 54.215 112.673L53.0149 121.674C52.9475 122.185 53.112 122.666 53.4214 123.019C53.7314 123.374 54.1868 123.6 54.7004 123.6H58.1398L56.6444 129.909C56.5174 130.446 56.6576 130.966 56.9637 131.353C57.2728 131.745 57.7518 132 58.2966 132C58.9052 132 59.4843 131.674 59.7907 131.112L66.1452 117.2H61.6081L62.8674 112.371C62.7082 112.176 62.5651 112.045 62.4402 111.957C62.2025 111.789 61.7969 111.61 61.0927 111.483C60.1529 111.313 58.5599 111.2 55.9003 111.2Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 210 124","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["d","M90.1491 0H0V100.616H90.1491V0Z",1,"fill-color-10"],["d","M88.6575 67.1775H1.48926V98.4248H88.6575V67.1775Z","fill","white"],["d","M59.844 74.5891H8.64404V90.6009H59.844V74.5891Z",1,"fill-color-primary-darker"],["d","M76.3172 90.6426C80.8187 90.6426 84.4679 86.9934 84.4679 82.4919C84.4679 77.9904 80.8187 74.3412 76.3172 74.3412C71.8157 74.3412 68.1665 77.9904 68.1665 82.4919C68.1665 86.9934 71.8157 90.6426 76.3172 90.6426Z",1,"fill-color-primary-darker"],["d","M88.6575 34.7129H1.48926V65.9602H88.6575V34.7129Z","fill","white"],["d","M59.844 42.1244H8.64404V58.1363H59.844V42.1244Z",1,"fill-color-primary-darker"],["d","M76.3172 58.1801C80.8187 58.1801 84.4679 54.5309 84.4679 50.0294C84.4679 45.5279 80.8187 41.8787 76.3172 41.8787C71.8157 41.8787 68.1665 45.5279 68.1665 50.0294C68.1665 54.5309 71.8157 58.1801 76.3172 58.1801Z",1,"fill-color-primary-darker"],["d","M88.6575 2.24823H1.48926V33.4955H88.6575V2.24823Z","fill","white"],["d","M59.844 9.66199H8.64404V25.6739H59.844V9.66199Z",1,"fill-color-primary-darker"],["d","M32.644 74.5891H8.64404V90.6009H32.644V74.5891Z",1,"fill-color-17"],["d","M45.444 42.1244H8.64404V58.1363H45.444V42.1244Z",1,"fill-color-17"],["d","M59.644 9.66199H8.64404V25.662H59.644V9.66199Z",1,"fill-color-17"],["d","M76.3176 26.3516C81.1704 26.3516 85.1044 22.4176 85.1044 17.5648C85.1044 12.712 81.1704 8.77802 76.3176 8.77802C71.4648 8.77802 67.5308 12.712 67.5308 17.5648C67.5308 22.4176 71.4648 26.3516 76.3176 26.3516Z","fill","url(#paint0_linear)"],["d","M76.3176 59.0334C81.1704 59.0334 85.1044 55.0994 85.1044 50.2466C85.1044 45.3938 81.1704 41.4598 76.3176 41.4598C71.4648 41.4598 67.5308 45.3938 67.5308 50.2466C67.5308 55.0994 71.4648 59.0334 76.3176 59.0334Z","fill","url(#paint1_linear)"],["d","M76.3176 91.4958C81.1704 91.4958 85.1044 87.5618 85.1044 82.709C85.1044 77.8562 81.1704 73.9222 76.3176 73.9222C71.4648 73.9222 67.5308 77.8562 67.5308 82.709C67.5308 87.5618 71.4648 91.4958 76.3176 91.4958Z","fill","url(#paint2_linear)"],["d","M76.1507 25.3014C80.6522 25.3014 84.3014 21.6522 84.3014 17.1507C84.3014 12.6492 80.6522 9 76.1507 9C71.6492 9 68 12.6492 68 17.1507C68 21.6522 71.6492 25.3014 76.1507 25.3014Z",1,"fill-color-17"],["d","M193.435 36.7899H142.709V35.7444H119.709V36.7899H68.7744C67.8644 36.7899 66.9917 37.1514 66.3482 37.7949C65.7048 38.4384 65.3433 39.3111 65.3433 40.2211V109.679C65.3433 110.589 65.7048 111.462 66.3482 112.106C66.9917 112.749 67.8644 113.111 68.7744 113.111H193.435C195.33 113.111 196.866 111.574 196.866 109.679V40.2211C196.866 39.3111 196.504 38.4384 195.861 37.7949C195.217 37.1514 194.345 36.7899 193.435 36.7899Z",1,"fill-color-19"],["d","M192.266 42.8538H69.9434V111.856H192.266V42.8538Z",1,"fill-color-22"],["opacity","0.1","d","M157.284 111.856H69.9434V42.8538L157.284 111.856Z","fill","black"],["d","M89.0832 106.693C95.577 106.693 100.841 101.428 100.841 94.9346C100.841 88.4408 95.577 83.1766 89.0832 83.1766C82.5894 83.1766 77.3252 88.4408 77.3252 94.9346C77.3252 101.428 82.5894 106.693 89.0832 106.693Z",1,"fill-color-25"],["d","M91.7005 103.772C85.7849 103.772 80.4518 100.208 78.188 94.7431C75.9242 89.2778 77.1755 82.987 81.3584 78.8041C85.5414 74.6211 91.8322 73.3698 97.2975 75.6336C102.763 77.8974 106.326 83.2305 106.326 89.1461C106.317 97.2199 99.7743 103.763 91.7005 103.772ZM91.7005 74.7115C83.7284 74.7115 77.2658 81.174 77.2658 89.1461C77.2658 97.1181 83.7284 103.581 91.7005 103.581C99.6725 103.581 106.135 97.1181 106.135 89.1461C106.126 81.1778 99.6687 74.7205 91.7005 74.7115Z",1,"fill-color-28"],["d","M170.967 80.0673H159.541V82.4548H170.967V80.0673Z",1,"fill-color-19"],["d","M184.781 61.4783H145.727V62.5015H184.781V61.4783Z",1,"fill-color-19"],["d","M184.781 64.7186H145.727V65.7418H184.781V64.7186Z",1,"fill-color-19"],["d","M184.781 67.9589H145.727V68.9821H184.781V67.9589Z",1,"fill-color-19"],["d","M184.781 71.1991H145.727V72.2224H184.781V71.1991Z",1,"fill-color-19"],["d","M184.781 74.4394H145.727V75.4626H184.781V74.4394Z",1,"fill-color-19"],["d","M184.781 44.2537H180.006V49.0288H184.781V44.2537Z",1,"fill-color-25"],["d","M186.998 51.2458H181.2V45.4474H186.998V51.2458ZM181.452 50.9937H186.746V45.6996H181.452V50.9937Z",1,"fill-color-19"],["d","M200.3 110.601H188.362V109.741C188.362 109.696 188.344 109.653 188.312 109.621C188.28 109.589 188.237 109.571 188.192 109.571H184.099C184.054 109.571 184.01 109.589 183.978 109.621C183.946 109.653 183.928 109.696 183.928 109.741V110.601H181.37V109.741C181.37 109.696 181.352 109.653 181.32 109.621C181.288 109.589 181.245 109.571 181.2 109.571H177.107C177.061 109.571 177.018 109.589 176.986 109.621C176.954 109.653 176.936 109.696 176.936 109.741V110.601H174.378V109.741C174.378 109.696 174.36 109.653 174.328 109.621C174.296 109.589 174.253 109.571 174.207 109.571H170.115C170.069 109.571 170.026 109.589 169.994 109.621C169.962 109.653 169.944 109.696 169.944 109.741V110.601H167.386V109.741C167.386 109.696 167.368 109.653 167.336 109.621C167.304 109.589 167.261 109.571 167.215 109.571H163.122C163.077 109.571 163.034 109.589 163.002 109.621C162.97 109.653 162.952 109.696 162.952 109.741V110.601H160.394V109.741C160.394 109.696 160.376 109.653 160.344 109.621C160.312 109.589 160.268 109.571 160.223 109.571H156.13C156.085 109.571 156.042 109.589 156.01 109.621C155.978 109.653 155.96 109.696 155.96 109.741V110.601H153.402V109.741C153.402 109.696 153.384 109.653 153.352 109.621C153.32 109.589 153.276 109.571 153.231 109.571H149.138C149.093 109.571 149.049 109.589 149.017 109.621C148.985 109.653 148.967 109.696 148.967 109.741V110.601H146.409V109.741C146.409 109.696 146.391 109.653 146.359 109.621C146.327 109.589 146.284 109.571 146.239 109.571H114.177C114.132 109.571 114.089 109.589 114.057 109.621C114.025 109.653 114.007 109.696 114.007 109.741V110.601H111.449V109.741C111.449 109.696 111.431 109.653 111.399 109.621C111.367 109.589 111.323 109.571 111.278 109.571H107.185C107.14 109.571 107.096 109.589 107.064 109.621C107.032 109.653 107.014 109.696 107.014 109.741V110.601H104.456V109.741C104.456 109.696 104.438 109.653 104.406 109.621C104.374 109.589 104.331 109.571 104.286 109.571H100.193C100.148 109.571 100.104 109.589 100.072 109.621C100.04 109.653 100.022 109.696 100.022 109.741V110.601H97.4642V109.741C97.4642 109.696 97.4462 109.653 97.4142 109.621C97.3822 109.589 97.3388 109.571 97.2936 109.571H93.2006C93.1554 109.571 93.112 109.589 93.08 109.621C93.048 109.653 93.0301 109.696 93.0301 109.741V110.601H90.472V109.741C90.472 109.696 90.454 109.653 90.422 109.621C90.39 109.589 90.3467 109.571 90.3014 109.571H86.2085C86.1632 109.571 86.1198 109.589 86.0879 109.621C86.0559 109.653 86.0379 109.696 86.0379 109.741V110.601H83.4798V109.741C83.4798 109.696 83.4618 109.653 83.4299 109.621C83.3979 109.589 83.3545 109.571 83.3093 109.571H79.2163C79.171 109.571 79.1277 109.589 79.0957 109.621C79.0637 109.653 79.0457 109.696 79.0457 109.741V110.601H76.4876V109.741C76.4876 109.696 76.4697 109.653 76.4377 109.621C76.4057 109.589 76.3623 109.571 76.3171 109.571H72.2241C72.1789 109.571 72.1355 109.589 72.1035 109.621C72.0715 109.653 72.0536 109.696 72.0536 109.741V110.601H64.2087C61.9482 110.601 60.1157 112.434 60.1157 114.694V116.545C60.1157 118.806 61.9482 120.638 64.2087 120.638H200.3C202.561 120.638 204.393 118.806 204.393 116.545V114.694C204.393 112.434 202.561 110.601 200.3 110.601Z",1,"fill-color-19"],["d","M86.1131 103.322C86.3717 103.386 86.6518 103.312 86.8456 103.112L94.5986 95.1027C95.007 94.6845 94.8072 93.9773 94.2376 93.8353L90.6843 92.9494L92.9925 89.2798C93.2324 88.8425 92.9934 88.2924 92.51 88.1718L88.0762 87.0663C87.7067 86.9742 87.3243 87.17 87.1837 87.5241L84.3559 94.6682C84.1868 95.097 84.4334 95.5771 84.8799 95.6884L88.5347 96.5996L85.6221 102.235C85.3946 102.675 85.642 103.204 86.1131 103.322Z",1,"fill-color-21"],["d","M42 75H9V91H42V75Z",1,"fill-color-17"],["d","M42 42H9V58H42V42Z",1,"fill-color-17"],["d","M76.3176 26.3516C81.1704 26.3516 85.1044 22.4176 85.1044 17.5648C85.1044 12.712 81.1704 8.77802 76.3176 8.77802C71.4648 8.77802 67.5308 12.712 67.5308 17.5648C67.5308 22.4176 71.4648 26.3516 76.3176 26.3516Z","fill","url(#paint3_linear)"],["d","M76.3176 59.0334C81.1704 59.0334 85.1044 55.0994 85.1044 50.2466C85.1044 45.3938 81.1704 41.4598 76.3176 41.4598C71.4648 41.4598 67.5308 45.3938 67.5308 50.2466C67.5308 55.0994 71.4648 59.0334 76.3176 59.0334Z","fill","url(#paint4_linear)"],["d","M76.3176 91.4958C81.1704 91.4958 85.1044 87.5618 85.1044 82.709C85.1044 77.8562 81.1704 73.9222 76.3176 73.9222C71.4648 73.9222 67.5308 77.8562 67.5308 82.709C67.5308 87.5618 71.4648 91.4958 76.3176 91.4958Z","fill","url(#paint5_linear)"],["d","M205.185 113.031H193.247V112.171C193.247 112.125 193.229 112.082 193.197 112.05C193.165 112.018 193.121 112 193.076 112H188.983C188.938 112 188.895 112.018 188.863 112.05C188.831 112.082 188.813 112.125 188.813 112.171V113.031H186.254V112.171C186.254 112.125 186.237 112.082 186.205 112.05C186.173 112.018 186.129 112 186.084 112H181.991C181.946 112 181.902 112.018 181.87 112.05C181.838 112.082 181.82 112.125 181.82 112.171V113.031H179.262V112.171C179.262 112.125 179.244 112.082 179.212 112.05C179.18 112.018 179.137 112 179.092 112H174.999C174.954 112 174.91 112.018 174.878 112.05C174.846 112.082 174.828 112.125 174.828 112.171V113.031H172.27V112.171C172.27 112.125 172.252 112.082 172.22 112.05C172.188 112.018 172.145 112 172.1 112H168.007C167.961 112 167.918 112.018 167.886 112.05C167.854 112.082 167.836 112.125 167.836 112.171V113.031H165.278V112.171C165.278 112.125 165.26 112.082 165.228 112.05C165.196 112.018 165.153 112 165.107 112H161.014C160.969 112 160.926 112.018 160.894 112.05C160.862 112.082 160.844 112.125 160.844 112.171V113.031H158.286V112.171C158.286 112.125 158.268 112.082 158.236 112.05C158.204 112.018 158.16 112 158.115 112H154.022C153.977 112 153.934 112.018 153.902 112.05C153.87 112.082 153.852 112.125 153.852 112.171V113.031H151.294V112.171C151.294 112.125 151.276 112.082 151.244 112.05C151.212 112.018 151.168 112 151.123 112H119.061C119.016 112 118.973 112.018 118.941 112.05C118.909 112.082 118.891 112.125 118.891 112.171V113.031H116.333V112.171C116.333 112.125 116.315 112.082 116.283 112.05C116.251 112.018 116.207 112 116.162 112H112.069C112.024 112 111.981 112.018 111.949 112.05C111.917 112.082 111.899 112.125 111.899 112.171V113.031H109.341V112.171C109.341 112.125 109.323 112.082 109.291 112.05C109.259 112.018 109.215 112 109.17 112H105.077C105.032 112 104.988 112.018 104.956 112.05C104.924 112.082 104.907 112.125 104.907 112.171V113.031H102.348V112.171C102.348 112.125 102.33 112.082 102.298 112.05C102.266 112.018 102.223 112 102.178 112H98.0849C98.0397 112 97.9963 112.018 97.9643 112.05C97.9323 112.082 97.9144 112.125 97.9144 112.171V113.031H95.3563V112.171C95.3563 112.125 95.3383 112.082 95.3063 112.05C95.2743 112.018 95.2309 112 95.1857 112H91.0927C91.0475 112 91.0041 112.018 90.9721 112.05C90.9402 112.082 90.9222 112.125 90.9222 112.171V113.031H88.3641V112.171C88.3641 112.125 88.3461 112.082 88.3141 112.05C88.2822 112.018 88.2388 112 88.1935 112H84.1006C84.0553 112 84.0119 112.018 83.98 112.05C83.948 112.082 83.93 112.125 83.93 112.171V113.031H81.3719V112.171C81.3719 112.125 81.3539 112.082 81.322 112.05C81.29 112.018 81.2466 112 81.2014 112H77.1084C77.0632 112 77.0198 112.018 76.9878 112.05C76.9558 112.082 76.9378 112.125 76.9379 112.171V113.031H69.093C66.8325 113.031 65 114.863 65 117.124V118.974C65 121.235 66.8325 123.067 69.093 123.067H205.185C207.445 123.067 209.277 121.235 209.277 118.974V117.124C209.277 114.863 207.445 113.031 205.185 113.031Z",1,"fill-color-19"],["d","M78.375 20.625C78.375 19.5938 77.5312 18.75 76.5 18.75C75.4453 18.75 74.625 19.5938 74.625 20.625C74.625 21.6797 75.4453 22.5 76.5 22.5C77.5312 22.5 78.375 21.6797 78.375 20.625ZM74.8359 11.1094L75.1406 17.4844C75.1641 17.7656 75.4219 18 75.7031 18H77.2734C77.5547 18 77.8125 17.7656 77.8359 17.4844L78.1406 11.1094C78.1641 10.7812 77.9062 10.5 77.5781 10.5H75.3984C75.0703 10.5 74.8125 10.7812 74.8359 11.1094Z","fill","white"],["id","paint0_linear","x1","76.3176","y1","26.3516","x2","76.3176","y2","8.77802","gradientUnits","userSpaceOnUse"],["stop-color","#808080","stop-opacity","0.25"],["offset","0.54","stop-color","#808080","stop-opacity","0.12"],["offset","1","stop-color","#808080","stop-opacity","0.1"],["id","paint1_linear","x1","76.3176","y1","59.0334","x2","76.3176","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint2_linear","x1","76.3176","y1","91.4958","x2","76.3176","y2","73.9222","gradientUnits","userSpaceOnUse"],["id","paint3_linear","x1","76.3176","y1","26.3516","x2","76.3176","y2","8.77802","gradientUnits","userSpaceOnUse"],["id","paint4_linear","x1","76.3176","y1","59.0334","x2","76.3176","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint5_linear","x1","76.3176","y1","91.4958","x2","76.3176","y2","73.9222","gradientUnits","userSpaceOnUse"],["fxFlex","30","viewBox","0 0 370 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["d","M327.488 99.9755C350.953 99.9755 369.975 80.9531 369.975 57.4877C369.975 34.0224 350.953 15 327.488 15C304.022 15 285 34.0224 285 57.4877C285 80.9531 304.022 99.9755 327.488 99.9755Z",1,"fill-color-25"],["d","M115.068 85.6077H349.8V86.5722H113L115.068 85.6077Z",1,"fill-color-19"],["d","M236.776 84.376H226.024V91.544H236.776V84.376Z",1,"fill-color-primary-lighter"],["d","M218.856 87.96H233.192V79H218.856V87.96ZM232.569 87.5704H219.479V79.3896H232.569V87.5704Z",1,"fill-color-19"],["d","M265 57.3624H357.392V120.307H265V57.3624Z",1,"fill-color-22"],["d","M362.545 50H271.626C271.016 50.0009 270.521 50.495 270.521 51.1048V112.577C270.521 112.87 270.638 113.151 270.845 113.358C271.052 113.565 271.333 113.681 271.626 113.681H362.545C362.838 113.681 363.119 113.565 363.326 113.358C363.533 113.151 363.65 112.87 363.65 112.577V51.1048C363.65 50.495 363.155 50.0009 362.545 50ZM362.913 112.577C362.913 112.674 362.875 112.768 362.806 112.837C362.736 112.907 362.643 112.945 362.545 112.945H271.626C271.528 112.945 271.434 112.907 271.365 112.837C271.296 112.768 271.258 112.674 271.258 112.577V51.1048C271.258 50.9015 271.423 50.7365 271.626 50.7365H362.545C362.748 50.7365 362.913 50.9015 362.913 51.1048V112.577Z",1,"fill-color-19"],["d","M316.364 93.4359H275.844C275.547 93.4359 275.307 93.6766 275.307 93.9735V97.6835C275.307 97.9804 275.547 98.2211 275.844 98.2211H316.364C316.661 98.2211 316.901 97.9804 316.901 97.6835V93.9735C316.901 93.6766 316.661 93.4359 316.364 93.4359Z",1,"fill-color-19"],["d","M354.814 89.3873H341.565C341.272 89.3873 340.991 89.5036 340.784 89.7108C340.577 89.918 340.46 90.199 340.46 90.492V100.798C340.46 101.091 340.577 101.372 340.784 101.579C340.991 101.786 341.272 101.903 341.565 101.903H354.814C355.107 101.903 355.388 101.786 355.595 101.579C355.803 101.372 355.919 101.091 355.919 100.798V90.492C355.919 90.199 355.803 89.918 355.595 89.7108C355.388 89.5036 355.107 89.3873 354.814 89.3873ZM355.182 100.798C355.182 101.001 355.017 101.166 354.814 101.166H341.565C341.362 101.166 341.197 101.001 341.197 100.798V90.492C341.196 90.3943 341.235 90.3004 341.304 90.2313C341.373 90.1622 341.467 90.1235 341.565 90.1238H354.814C354.912 90.1235 355.006 90.1622 355.075 90.2313C355.144 90.3004 355.183 90.3943 355.182 90.492V100.798Z",1,"fill-color-19"],["d","M352.168 91.7653H344.211C343.914 91.7653 343.673 92.006 343.673 92.3029V93.0965C343.673 93.3934 343.914 93.6341 344.211 93.6341H352.168C352.465 93.6341 352.706 93.3934 352.706 93.0965V92.3029C352.706 92.006 352.465 91.7653 352.168 91.7653Z",1,"fill-color-19"],["d","M352.168 94.71H344.211C343.914 94.71 343.673 94.9507 343.673 95.2476V96.0412C343.673 96.3381 343.914 96.5788 344.211 96.5788H352.168C352.465 96.5788 352.706 96.3381 352.706 96.0412V95.2476C352.706 94.9507 352.465 94.71 352.168 94.71Z",1,"fill-color-19"],["d","M352.168 97.6548H344.211C343.914 97.6548 343.673 97.8955 343.673 98.1924V98.986C343.673 99.2829 343.914 99.5236 344.211 99.5236H352.168C352.465 99.5236 352.706 99.2829 352.706 98.986V98.1924C352.706 97.8955 352.465 97.6548 352.168 97.6548Z",1,"fill-color-19"],["d","M295.014 54.4177H276.949C276.652 54.4177 276.411 54.6584 276.411 54.9553V61.9782C276.411 62.2752 276.652 62.5158 276.949 62.5158H295.014C295.311 62.5158 295.552 62.2752 295.552 61.9782V54.9553C295.552 54.6584 295.311 54.4177 295.014 54.4177Z",1,"fill-color-19"],["d","M312.293 105.198C319.455 105.198 325.261 99.3917 325.261 92.2295C325.261 85.0672 319.455 79.2611 312.293 79.2611C305.131 79.2611 299.325 85.0672 299.325 92.2295C299.325 99.3917 305.131 105.198 312.293 105.198Z",1,"fill-color-25"],["d","M315.18 101.976C308.655 101.976 302.773 98.0462 300.276 92.0183C297.78 85.9904 299.16 79.052 303.773 74.4384C308.387 69.8249 315.325 68.4448 321.353 70.9416C327.381 73.4384 331.311 79.3205 331.311 85.8451C331.301 94.75 324.085 101.966 315.18 101.976ZM315.18 69.9245C306.387 69.9245 299.259 77.0524 299.259 85.8451C299.259 94.6377 306.387 101.766 315.18 101.766C323.973 101.766 331.1 94.6377 331.1 85.8451C331.09 77.0565 323.968 69.9345 315.18 69.9245Z",1,"fill-color-19"],["d","M309.677 100.883C309.936 100.948 310.216 100.873 310.41 100.673L318.163 92.664C318.571 92.2458 318.371 91.5387 317.802 91.3966L314.249 90.5107L316.557 86.8411C316.797 86.4038 316.558 85.8537 316.074 85.7332L311.64 84.6277C311.271 84.5355 310.888 84.7313 310.748 85.0854L307.92 92.2295C307.751 92.6583 307.998 93.1384 308.444 93.2497L312.099 94.161L309.186 99.7958C308.959 100.236 309.206 100.766 309.677 100.883Z",1,"fill-color-21"],["d","M88.6576 67.1775H1.48938V98.4248H88.6576V67.1775Z","fill","white"],["d","M59.8442 74.589H8.64417V90.6009H59.8442V74.589Z",1,"fill-color-primary-darker"],["d","M76.3175 90.6426C80.819 90.6426 84.4682 86.9934 84.4682 82.4919C84.4682 77.9904 80.819 74.3412 76.3175 74.3412C71.8159 74.3412 68.1667 77.9904 68.1667 82.4919C68.1667 86.9934 71.8159 90.6426 76.3175 90.6426Z",1,"fill-color-primary-darker"],["d","M88.6576 34.7129H1.48938V65.9602H88.6576V34.7129Z","fill","white"],["d","M59.8442 42.1244H8.64417V58.1363H59.8442V42.1244Z",1,"fill-color-primary-darker"],["d","M76.3175 58.1801C80.819 58.1801 84.4682 54.531 84.4682 50.0294C84.4682 45.5279 80.819 41.8787 76.3175 41.8787C71.8159 41.8787 68.1667 45.5279 68.1667 50.0294C68.1667 54.531 71.8159 58.1801 76.3175 58.1801Z",1,"fill-color-primary-darker"],["d","M88.6576 2.24824H1.48938V33.4955H88.6576V2.24824Z","fill","white"],["d","M59.8442 9.66196H8.64417V25.6738H59.8442V9.66196Z",1,"fill-color-primary-darker"],["d","M59.8442 9.66196H8.64417V25.6738H59.8442V9.66196Z",1,"fill-color-17"],["d","M76.7868 26.5736C81.6396 26.5736 85.5736 22.6396 85.5736 17.7868C85.5736 12.934 81.6396 9 76.7868 9C71.934 9 68 12.934 68 17.7868C68 22.6396 71.934 26.5736 76.7868 26.5736Z","fill","url(#paint0_linear)"],["d","M76.3174 59.0334C81.1702 59.0334 85.1042 55.0994 85.1042 50.2466C85.1042 45.3938 81.1702 41.4598 76.3174 41.4598C71.4646 41.4598 67.5306 45.3938 67.5306 50.2466C67.5306 55.0994 71.4646 59.0334 76.3174 59.0334Z","fill","url(#paint1_linear)"],["d","M76.3174 91.4958C81.1702 91.4958 85.1042 87.5618 85.1042 82.709C85.1042 77.8562 81.1702 73.9222 76.3174 73.9222C71.4646 73.9222 67.5306 77.8562 67.5306 82.709C67.5306 87.5618 71.4646 91.4958 76.3174 91.4958Z","fill","url(#paint2_linear)"],["d","M193.434 36.7899H142.709V35.7444H119.708V36.7899H68.7742C67.8642 36.7899 66.9915 37.1514 66.348 37.7949C65.7045 38.4384 65.343 39.3111 65.343 40.2211V109.679C65.343 110.589 65.7045 111.462 66.348 112.106C66.9915 112.749 67.8642 113.111 68.7742 113.111H193.434C195.329 113.111 196.866 111.574 196.866 109.679V40.2211C196.866 39.3111 196.504 38.4384 195.861 37.7949C195.217 37.1514 194.344 36.7899 193.434 36.7899Z",1,"fill-color-19"],["d","M192.265 42.8538H69.9432V111.856H192.265V42.8538Z",1,"fill-color-22"],["opacity","0.1","d","M157.283 111.856H69.9432V42.8538L157.283 111.856Z","fill","black"],["d","M89.0829 106.693C95.5767 106.693 100.841 101.428 100.841 94.9346C100.841 88.4408 95.5767 83.1766 89.0829 83.1766C82.5892 83.1766 77.325 88.4408 77.325 94.9346C77.325 101.428 82.5892 106.693 89.0829 106.693Z",1,"fill-color-25"],["d","M91.7004 103.772C85.7849 103.772 80.4518 100.208 78.188 94.7431C75.9242 89.2778 77.1755 82.987 81.3584 78.8041C85.5414 74.6211 91.8322 73.3698 97.2975 75.6336C102.763 77.8974 106.326 83.2305 106.326 89.1461C106.317 97.2199 99.7743 103.763 91.7004 103.772ZM91.7004 74.7115C83.7284 74.7115 77.2658 81.174 77.2658 89.1461C77.2658 97.1181 83.7284 103.581 91.7004 103.581C99.6725 103.581 106.135 97.1181 106.135 89.1461C106.126 81.1778 99.6687 74.7205 91.7004 74.7115Z",1,"fill-color-28"],["d","M170.967 80.0672H159.541V82.4548H170.967V80.0672Z",1,"fill-color-19"],["d","M184.781 67.9588H145.727V68.9821H184.781V67.9588Z",1,"fill-color-19"],["d","M200.3 110.601H188.362V109.741C188.362 109.696 188.344 109.653 188.312 109.621C188.28 109.589 188.237 109.571 188.192 109.571H184.099C184.054 109.571 184.01 109.589 183.978 109.621C183.946 109.653 183.928 109.696 183.928 109.741V110.601H181.37V109.741C181.37 109.696 181.352 109.653 181.32 109.621C181.288 109.589 181.245 109.571 181.2 109.571H177.107C177.061 109.571 177.018 109.589 176.986 109.621C176.954 109.653 176.936 109.696 176.936 109.741V110.601H174.378V109.741C174.378 109.696 174.36 109.653 174.328 109.621C174.296 109.589 174.253 109.571 174.207 109.571H170.114C170.069 109.571 170.026 109.589 169.994 109.621C169.962 109.653 169.944 109.696 169.944 109.741V110.601H167.386V109.741C167.386 109.696 167.368 109.653 167.336 109.621C167.304 109.589 167.26 109.571 167.215 109.571H163.122C163.077 109.571 163.034 109.589 163.002 109.621C162.97 109.653 162.952 109.696 162.952 109.741V110.601H160.394V109.741C160.394 109.696 160.376 109.653 160.344 109.621C160.312 109.589 160.268 109.571 160.223 109.571H156.13C156.085 109.571 156.041 109.589 156.009 109.621C155.977 109.653 155.96 109.696 155.96 109.741V110.601H153.401V109.741C153.401 109.696 153.383 109.653 153.351 109.621C153.319 109.589 153.276 109.571 153.231 109.571H149.138C149.093 109.571 149.049 109.589 149.017 109.621C148.985 109.653 148.967 109.696 148.967 109.741V110.601H146.409V109.741C146.409 109.696 146.391 109.653 146.359 109.621C146.327 109.589 146.284 109.571 146.239 109.571H114.177C114.132 109.571 114.088 109.589 114.056 109.621C114.024 109.653 114.006 109.696 114.006 109.741V110.601H111.448V109.741C111.448 109.696 111.43 109.653 111.398 109.621C111.366 109.589 111.323 109.571 111.278 109.571H107.185C107.14 109.571 107.096 109.589 107.064 109.621C107.032 109.653 107.014 109.696 107.014 109.741V110.601H104.456V109.741C104.456 109.696 104.438 109.653 104.406 109.621C104.374 109.589 104.331 109.571 104.286 109.571H100.193C100.147 109.571 100.104 109.589 100.072 109.621C100.04 109.653 100.022 109.696 100.022 109.741V110.601H97.464V109.741C97.464 109.696 97.4461 109.653 97.4141 109.621C97.3821 109.589 97.3387 109.571 97.2935 109.571H93.2005C93.1553 109.571 93.1119 109.589 93.0799 109.621C93.0479 109.653 93.03 109.696 93.03 109.741V110.601H90.4719V109.741C90.4719 109.696 90.4539 109.653 90.4219 109.621C90.3899 109.589 90.3465 109.571 90.3013 109.571H86.2083C86.1631 109.571 86.1197 109.589 86.0877 109.621C86.0558 109.653 86.0378 109.696 86.0378 109.741V110.601H83.4797V109.741C83.4797 109.696 83.4617 109.653 83.4297 109.621C83.3978 109.589 83.3544 109.571 83.3091 109.571H79.2162C79.1709 109.571 79.1276 109.589 79.0956 109.621C79.0636 109.653 79.0456 109.696 79.0456 109.741V110.601H76.4875V109.741C76.4875 109.696 76.4695 109.653 76.4376 109.621C76.4056 109.589 76.3622 109.571 76.317 109.571H72.224C72.1788 109.571 72.1354 109.589 72.1034 109.621C72.0714 109.653 72.0535 109.696 72.0535 109.741V110.601H64.2086C61.9481 110.601 60.1156 112.434 60.1156 114.694V116.545C60.1156 118.806 61.9481 120.638 64.2086 120.638H200.3C202.561 120.638 204.393 118.806 204.393 116.545V114.694C204.393 112.434 202.561 110.601 200.3 110.601Z",1,"fill-color-19"],["d","M86.1131 103.322C86.3717 103.386 86.6518 103.312 86.8457 103.112L94.5986 95.1027C95.007 94.6845 94.8072 93.9774 94.2376 93.8353L90.6843 92.9494L92.9925 89.2798C93.2324 88.8425 92.9934 88.2924 92.51 88.1719L88.0762 87.0664C87.7067 86.9742 87.3243 87.17 87.1837 87.5241L84.3559 94.6682C84.1868 95.097 84.4334 95.5771 84.8799 95.6884L88.5348 96.5997L85.6221 102.235C85.3946 102.675 85.642 103.204 86.1131 103.322Z",1,"fill-color-21"],["d","M78.125 21.625C78.125 20.5938 77.2812 19.75 76.25 19.75C75.1953 19.75 74.375 20.5938 74.375 21.625C74.375 22.6797 75.1953 23.5 76.25 23.5C77.2812 23.5 78.125 22.6797 78.125 21.625ZM74.5859 12.1094L74.8906 18.4844C74.9141 18.7656 75.1719 19 75.4531 19H77.0234C77.3047 19 77.5625 18.7656 77.5859 18.4844L77.8906 12.1094C77.9141 11.7812 77.6562 11.5 77.3281 11.5H75.1484C74.8203 11.5 74.5625 11.7812 74.5859 12.1094Z","fill","white"],["id","paint0_linear","x1","76.7868","y1","26.5736","x2","76.7868","y2","9","gradientUnits","userSpaceOnUse"],["id","paint1_linear","x1","76.3174","y1","59.0334","x2","76.3174","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint2_linear","x1","76.3174","y1","91.4958","x2","76.3174","y2","73.9222","gradientUnits","userSpaceOnUse"],["fxFlex","30","viewBox","0 0 153 200","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["fill-rule","evenodd","clip-rule","evenodd","d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46C37.5901 46 6.25 78.4594 6.25 118.5C6.25 158.541 37.5901 191 76.25 191Z","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7",1,"fill-color-0","stroke-color-primary-lighter"],["d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7",1,"fill-color-0","stroke-color-primary"],["d","M122.399 37H32.25V137.616H122.399V37Z",1,"fill-color-10"],["d","M120.908 104.178H33.7394V135.425H120.908V104.178Z","fill","white"],["d","M92.0943 111.589H40.8943V127.601H92.0943V111.589Z",1,"fill-color-primary-darker"],["d","M108.567 127.643C113.069 127.643 116.718 123.993 116.718 119.492C116.718 114.99 113.069 111.341 108.567 111.341C104.066 111.341 100.417 114.99 100.417 119.492C100.417 123.993 104.066 127.643 108.567 127.643Z",1,"fill-color-primary-darker"],["d","M120.908 71.7129H33.7394V102.96H120.908V71.7129Z","fill","white"],["d","M92.0943 79.1244H40.8943V95.1363H92.0943V79.1244Z",1,"fill-color-primary-darker"],["d","M108.567 95.1801C113.069 95.1801 116.718 91.531 116.718 87.0294C116.718 82.5279 113.069 78.8787 108.567 78.8787C104.066 78.8787 100.417 82.5279 100.417 87.0294C100.417 91.531 104.066 95.1801 108.567 95.1801Z",1,"fill-color-primary-darker"],["d","M120.908 39.2482H33.7394V70.4955H120.908V39.2482Z","fill","white"],["d","M92.0943 46.662H40.8943V62.6738H92.0943V46.662Z",1,"fill-color-primary-darker"],["d","M74.5 112H40.5V128H74.5V112Z",1,"fill-color-17"],["d","M74.5 79H40.5V95H74.5V79Z",1,"fill-color-17"],["d","M91.8943 46.662H40.8943V62.662H91.8943V46.662Z",1,"fill-color-17"],["d","M108.567 63.3516C113.42 63.3516 117.354 59.4176 117.354 54.5648C117.354 49.712 113.42 45.778 108.567 45.778C103.715 45.778 99.7806 49.712 99.7806 54.5648C99.7806 59.4176 103.715 63.3516 108.567 63.3516Z","fill","url(#paint0_linear)"],["d","M108.567 96.0334C113.42 96.0334 117.354 92.0994 117.354 87.2466C117.354 82.3938 113.42 78.4598 108.567 78.4598C103.715 78.4598 99.7806 82.3938 99.7806 87.2466C99.7806 92.0994 103.715 96.0334 108.567 96.0334Z",1,"fill-color-17"],["d","M108.567 128.496C113.42 128.496 117.354 124.562 117.354 119.709C117.354 114.856 113.42 110.922 108.567 110.922C103.715 110.922 99.7806 114.856 99.7806 119.709C99.7806 124.562 103.715 128.496 108.567 128.496Z",1,"fill-color-17"],["d","M108.401 62.3014C112.902 62.3014 116.551 58.6522 116.551 54.1507C116.551 49.6492 112.902 46 108.401 46C103.899 46 100.25 49.6492 100.25 54.1507C100.25 58.6522 103.899 62.3014 108.401 62.3014Z",1,"fill-color-17"],["d","M110.625 57.625C110.625 56.5938 109.781 55.75 108.75 55.75C107.695 55.75 106.875 56.5938 106.875 57.625C106.875 58.6797 107.695 59.5 108.75 59.5C109.781 59.5 110.625 58.6797 110.625 57.625ZM107.086 48.1094L107.391 54.4844C107.414 54.7656 107.672 55 107.953 55H109.523C109.805 55 110.062 54.7656 110.086 54.4844L110.391 48.1094C110.414 47.7812 110.156 47.5 109.828 47.5H107.648C107.32 47.5 107.062 47.7812 107.086 48.1094Z","fill","white"],["d","M141.711 111C141.008 111 140.656 111.859 141.164 112.367L146.164 117.367C146.477 117.68 146.984 117.68 147.297 117.367L152.297 112.367C152.805 111.859 152.453 111 151.75 111H141.711Z",1,"fill-color-17"],["d","M84.25 185.461C84.25 184.758 83.3906 184.406 82.8828 184.914L77.8828 189.914C77.5703 190.227 77.5703 190.734 77.8828 191.047L82.8828 196.047C83.3906 196.555 84.25 196.203 84.25 195.5V185.461Z",1,"fill-color-primary-darker"],["d","M11.7891 120C12.4922 120 12.8437 119.141 12.3359 118.633L7.33593 113.633C7.02343 113.32 6.51562 113.32 6.20312 113.633L1.20312 118.633C0.695303 119.141 1.04687 120 1.74999 120H11.7891Z",1,"fill-color-primary-darker"],["d","M133.75 174C142.31 174 149.25 167.06 149.25 158.5C149.25 149.94 142.31 143 133.75 143C125.19 143 118.25 149.94 118.25 158.5C118.25 167.06 125.19 174 133.75 174Z",1,"fill-color-25"],["d","M129.872 169.64C130.214 169.726 130.584 169.628 130.84 169.363L141.093 158.771C141.633 158.218 141.369 157.283 140.616 157.095L135.917 155.924L138.969 151.071C139.286 150.493 138.97 149.765 138.331 149.606L132.468 148.144C131.979 148.022 131.473 148.281 131.287 148.749L127.548 158.197C127.324 158.764 127.65 159.399 128.241 159.546L133.074 160.751L129.222 168.203C128.921 168.785 129.249 169.485 129.872 169.64Z",1,"fill-color-21"],["d","M19.75 174C28.3104 174 35.25 167.06 35.25 158.5C35.25 149.94 28.3104 143 19.75 143C11.1896 143 4.25 149.94 4.25 158.5C4.25 167.06 11.1896 174 19.75 174Z",1,"fill-color-25"],["d","M19.3208 167.769C23.2973 167.769 26.5208 164.545 26.5208 160.569C26.5208 156.592 23.2973 153.369 19.3208 153.369C15.3444 153.369 12.1208 156.592 12.1208 160.569C12.1208 164.545 15.3444 167.769 19.3208 167.769Z",1,"fill-color-22"],["d","M13.7656 153.188L12.4676 152.716C12.4676 152.716 15.1815 150.002 18.9572 150.238L17.8953 149.177C17.8953 149.177 20.4911 148.233 22.851 150.71C24.0915 152.013 25.5268 153.544 26.4216 155.269H27.8116L27.2314 156.429L29.2619 157.589L27.1778 157.381C27.3752 158.383 27.3073 159.418 26.9807 160.386L26.5087 161.684C26.5087 161.684 24.6208 157.908 24.6208 157.436V158.616C24.6208 158.616 23.3229 157.554 23.3229 156.846L22.615 157.672L22.261 156.374L17.8953 157.672L18.6032 156.61L15.8894 156.964L16.9514 155.666C16.9514 155.666 13.8836 157.2 13.7656 158.498C13.6476 159.796 12.1137 161.448 12.1137 161.448L11.4058 160.268C11.4058 160.268 10.3438 154.958 13.7656 153.188Z",1,"fill-color-21"],["d","M76.75 31C68.1896 31 61.25 24.0604 61.25 15.5C61.25 6.93959 68.1896 0 76.75 0C85.3104 0 92.25 6.93959 92.25 15.5C92.25 24.0604 85.3104 31 76.75 31Z",1,"fill-color-25"],["d","M77.1792 24.7687C73.2027 24.7687 69.9792 21.5452 69.9792 17.5687C69.9792 13.5923 73.2027 10.3687 77.1792 10.3687C81.1556 10.3687 84.3792 13.5923 84.3792 17.5687C84.3792 21.5452 81.1556 24.7687 77.1792 24.7687Z",1,"fill-color-22"],["d","M82.7344 10.1883L84.0324 9.71628C84.0324 9.71628 81.3185 7.00246 77.5428 7.23845L78.6047 6.17651C78.6047 6.17651 76.0089 5.23258 73.649 7.71041C72.4085 9.01295 70.9732 10.544 70.0784 12.2687H68.6884L69.2686 13.429L67.2381 14.5893L69.3222 14.3808C69.1248 15.3825 69.1927 16.4184 69.5193 17.3858L69.9913 18.6837C69.9913 18.6837 71.8792 14.9079 71.8792 14.4359V15.6159C71.8792 15.6159 73.1771 14.5539 73.1771 13.846L73.885 14.6719L74.239 13.374L78.6047 14.6719L77.8968 13.61L80.6106 13.964L79.5486 12.6661C79.5486 12.6661 82.6164 14.2 82.7344 15.4979C82.8524 16.7958 84.3863 18.4477 84.3863 18.4477L85.0942 17.2678C85.0942 17.2678 86.1562 11.9581 82.7344 10.1883Z",1,"fill-color-21"],["d","M141.365 153.936C139.147 150.189 134.759 150.014 134.759 150.014C134.759 150.014 130.483 149.467 127.74 155.175C125.183 160.495 121.655 165.632 127.172 166.877L128.168 163.776L128.786 167.108C129.571 167.165 130.359 167.178 131.146 167.149C137.055 166.958 142.681 167.204 142.5 165.084C142.259 162.266 143.499 157.542 141.365 153.936Z",1,"fill-color-21"],["d","M140.968 160.376C141.521 160.376 141.968 159.928 141.968 159.376C141.968 158.823 141.521 158.376 140.968 158.376C140.416 158.376 139.968 158.823 139.968 159.376C139.968 159.928 140.416 160.376 140.968 160.376Z",1,"fill-color-22"],["d","M129.168 160.376C129.721 160.376 130.168 159.928 130.168 159.376C130.168 158.823 129.721 158.376 129.168 158.376C128.616 158.376 128.168 158.823 128.168 159.376C128.168 159.928 128.616 160.376 129.168 160.376Z",1,"fill-color-22"],["d","M135.068 165.276C138.272 165.276 140.868 162.679 140.868 159.476C140.868 156.272 138.272 153.676 135.068 153.676C131.865 153.676 129.268 156.272 129.268 159.476C129.268 162.679 131.865 165.276 135.068 165.276Z",1,"fill-color-22"],["d","M140.384 153.575L136.049 151.304L130.062 152.233L128.824 157.704L131.907 157.585L132.768 155.576V157.552L134.191 157.498L135.017 154.298L135.533 157.704L140.591 157.601L140.384 153.575Z",1,"fill-color-21"],["d","M79.4007 199.301C83.9022 199.301 87.5514 195.652 87.5514 191.151C87.5514 186.649 83.9022 183 79.4007 183C74.8992 183 71.25 186.649 71.25 191.151C71.25 195.652 74.8992 199.301 79.4007 199.301Z",1,"fill-color-17"],["d","M82.9375 189.25H80.2188L81.2266 186.227C81.3203 185.852 81.0391 185.5 80.6875 185.5H77.3125C77.0313 185.5 76.7735 185.711 76.75 185.992L76 191.617C75.9531 191.969 76.211 192.25 76.5625 192.25H79.3281L78.25 196.82C78.1797 197.172 78.4375 197.5 78.7891 197.5C79 197.5 79.1875 197.406 79.2813 197.219L83.4063 190.094C83.6406 189.742 83.3594 189.25 82.9375 189.25Z","fill","white"],["d","M106.555 91.8125C106.789 92.0469 107.188 92.0469 107.422 91.8125L114.312 84.9219C114.547 84.6875 114.547 84.2891 114.312 84.0547L113.469 83.2109C113.234 82.9766 112.859 82.9766 112.625 83.2109L107 88.8359L104.352 86.2109C104.117 85.9766 103.742 85.9766 103.508 86.2109L102.664 87.0547C102.43 87.2891 102.43 87.6875 102.664 87.9219L106.555 91.8125Z","fill","white"],["d","M106.555 124.812C106.789 125.047 107.188 125.047 107.422 124.812L114.312 117.922C114.547 117.688 114.547 117.289 114.312 117.055L113.469 116.211C113.234 115.977 112.859 115.977 112.625 116.211L107 121.836L104.352 119.211C104.117 118.977 103.742 118.977 103.508 119.211L102.664 120.055C102.43 120.289 102.43 120.688 102.664 120.922L106.555 124.812Z","fill","white"],["id","paint0_linear","x1","108.567","y1","63.3516","x2","108.567","y2","45.778","gradientUnits","userSpaceOnUse"],["fill-rule","evenodd","clip-rule","evenodd","d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46C37.5901 46 6.25 78.4594 6.25 118.5C6.25 158.541 37.5901 191 76.25 191Z","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7",1,"fill-color-0","stroke-color-primary"],["d","M120.908 104.177H33.7393V135.425H120.908V104.177Z","fill","white"],["d","M120.908 71.7129H33.7393V102.96H120.908V71.7129Z","fill","white"],["d","M108.567 95.1801C113.069 95.1801 116.718 91.5309 116.718 87.0294C116.718 82.5279 113.069 78.8787 108.567 78.8787C104.066 78.8787 100.417 82.5279 100.417 87.0294C100.417 91.5309 104.066 95.1801 108.567 95.1801Z",1,"fill-color-primary-darker"],["d","M120.908 39.2482H33.7393V70.4955H120.908V39.2482Z","fill","white"],["d","M92.0943 46.662H40.8943V62.6739H92.0943V46.662Z",1,"fill-color-primary-darker"],["d","M76 112H41V128H76V112Z",1,"fill-color-17"],["d","M70 79H41V95H70V79Z",1,"fill-color-17"],["d","M70 47H41V63H70V47Z",1,"fill-color-17"],["d","M108.568 63.3516C113.42 63.3516 117.354 59.4176 117.354 54.5648C117.354 49.712 113.42 45.778 108.568 45.778C103.715 45.778 99.7808 49.712 99.7808 54.5648C99.7808 59.4176 103.715 63.3516 108.568 63.3516Z","fill","url(#paint0_linear)"],["d","M108.568 96.0334C113.42 96.0334 117.354 92.0994 117.354 87.2466C117.354 82.3938 113.42 78.4598 108.568 78.4598C103.715 78.4598 99.7808 82.3938 99.7808 87.2466C99.7808 92.0994 103.715 96.0334 108.568 96.0334Z",1,"fill-color-17"],["d","M108.568 129.496C113.42 129.496 117.354 125.562 117.354 120.709C117.354 115.856 113.42 111.922 108.568 111.922C103.715 111.922 99.7808 115.856 99.7808 120.709C99.7808 125.562 103.715 129.496 108.568 129.496Z",1,"fill-color-17"],["d","M106.805 91.8125C107.039 92.0469 107.438 92.0469 107.672 91.8125L114.562 84.9219C114.797 84.6875 114.797 84.2891 114.562 84.0547L113.719 83.2109C113.484 82.9766 113.109 82.9766 112.875 83.2109L107.25 88.8359L104.602 86.2109C104.367 85.9766 103.992 85.9766 103.758 86.2109L102.914 87.0547C102.68 87.2891 102.68 87.6875 102.914 87.9219L106.805 91.8125Z","fill","white"],["d","M106.805 58.8125C107.039 59.0469 107.438 59.0469 107.672 58.8125L114.562 51.9219C114.797 51.6875 114.797 51.2891 114.562 51.0547L113.719 50.2109C113.484 49.9766 113.109 49.9766 112.875 50.2109L107.25 55.8359L104.602 53.2109C104.367 52.9766 103.992 52.9766 103.758 53.2109L102.914 54.0547C102.68 54.2891 102.68 54.6875 102.914 54.9219L106.805 58.8125Z","fill","white"],["d","M11.7891 120C12.4922 120 12.8437 119.141 12.3359 118.633L7.33593 113.633C7.02343 113.32 6.51562 113.32 6.20312 113.633L1.20312 118.633C0.695303 119.141 1.04687 120 1.74999 120H11.7891Z",1,"fill-color-17"],["d","M77.1792 24.7688C73.2027 24.7688 69.9792 21.5452 69.9792 17.5688C69.9792 13.5923 73.2027 10.3688 77.1792 10.3688C81.1556 10.3688 84.3792 13.5923 84.3792 17.5688C84.3792 21.5452 81.1556 24.7688 77.1792 24.7688Z",1,"fill-color-22"],["d","M141.365 153.936C139.147 150.189 134.759 150.014 134.759 150.014C134.759 150.014 130.483 149.467 127.74 155.175C125.183 160.495 121.655 165.632 127.172 166.877L128.168 163.776L128.785 167.108C129.571 167.165 130.359 167.178 131.146 167.149C137.055 166.958 142.681 167.204 142.5 165.084C142.259 162.266 143.499 157.543 141.365 153.936Z",1,"fill-color-21"],["d","M82.9374 189.25H80.2186L81.2265 186.227C81.3202 185.852 81.039 185.5 80.6874 185.5H77.3124C77.0311 185.5 76.7733 185.711 76.7499 185.992L75.9999 191.617C75.953 191.969 76.2108 192.25 76.5624 192.25H79.328L78.2499 196.82C78.1796 197.172 78.4374 197.5 78.789 197.5C78.9999 197.5 79.1874 197.406 79.2811 197.219L83.4061 190.094C83.6405 189.742 83.3593 189.25 82.9374 189.25Z","fill","white"],["id","paint0_linear","x1","108.568","y1","63.3516","x2","108.568","y2","45.778","gradientUnits","userSpaceOnUse"]],template:function(e,a){if(1&e&&(t.YNc(0,Ts,1,0,"ng-container",0),t.YNc(1,vs,47,5,"ng-template",null,1,t.W1O),t.YNc(3,Zs,96,5,"ng-template",null,2,t.W1O),t.YNc(5,Ss,68,5,"ng-template",null,3,t.W1O),t.YNc(7,As,53,5,"ng-template",null,4,t.W1O),t.YNc(9,Es,52,5,"ng-template",null,5,t.W1O)),2&e){const s=t.MAs(2),r=t.MAs(4),p=t.MAs(6),x=t.MAs(8),N=t.MAs(10);t.Q6J("ngTemplateOutlet",1===a.stepNumber?s:2===a.stepNumber?r:3===a.stepNumber?p:4===a.stepNumber?x:N)}},dependencies:[u.mk,u.tP,h.xw,h.Wh,h.yH,Z.oO,T.$j,T.n5],styles:["svg.small-svg[_ngcontent-%COMP%]{height:10%;min-height:10%;max-width:50%;margin:auto}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:50%;margin:auto}"],data:{animation:[Ls.l]}}),o})();const Is=["stepper"];function Fs(i,o){if(1&i&&t._uU(0),2&i){const n=t.oxw(2);t.Oqu(n.inputFormLabel)}}function qs(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function Ns(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount must be a positive number."),t.qZA())}function Os(i,o){if(1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.hij("Amount must be less than or equal to ",null==n.selChannel?null:n.selChannel.toLocal,".")}}function Ps(i,o){if(1&i&&(t.TgZ(0,"mat-option",50),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.Q6J("value",n),t.xp6(1),t.AsE("",n.alias," - ",n.shortChannelId,"")}}function ks(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Receive from Peer is required."),t.qZA())}function Us(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Receive from Peer not found in the list."),t.qZA())}function Rs(i,o){1&i&&t._uU(0,"Status")}function Ms(i,o){1&i&&t._UZ(0,"mat-progress-bar",51)}function Ds(i,o){if(1&i&&(t.TgZ(0,"mat-icon",52),t._uU(1),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Oqu(""!==n.rebalanceStatus.invoice?"check":"close")}}function Js(i,o){1&i&&t._UZ(0,"mat-progress-bar",51)}function Hs(i,o){if(1&i&&(t.TgZ(0,"mat-icon",52),t._uU(1),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Oqu(n.rebalanceStatus.paymentRoute?"check":"close")}}function Qs(i,o){if(1&i&&(t.TgZ(0,"span",42),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.hij(" ",n," ")}}function Ys(i,o){if(1&i&&(t.TgZ(0,"div",5),t.YNc(1,Qs,2,1,"span",53),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",n.rebalanceStatus.paymentRoute.split(","))}}function Bs(i,o){1&i&&t._UZ(0,"mat-progress-bar",51)}function Vs(i,o){if(1&i&&(t.TgZ(0,"mat-icon",52),t._uU(1),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Oqu(!n.rebalanceStatus.paymentStatus||null!=n.rebalanceStatus.paymentStatus&&n.rebalanceStatus.paymentStatus.error?"close":"check")}}function zs(i,o){1&i&&t._UZ(0,"div",5)}function Gs(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"button",54),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.onRestart())}),t._uU(1,"Start Again"),t.qZA()}}function Ws(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",5)(1,"mat-card-header",6)(2,"div",7)(3,"div",8)(4,"span",9),t._uU(5,"Channel Rebalance"),t.qZA()(),t.TgZ(6,"div",10)(7,"button",11),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.showInfo())}),t._uU(8,"?"),t.qZA(),t.TgZ(9,"button",12),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onClose())}),t._uU(10,"X"),t.qZA()()()(),t.TgZ(11,"mat-card-content",13)(12,"div",5)(13,"div",14)(14,"div",15),t._UZ(15,"fa-icon",16),t.TgZ(16,"span"),t._uU(17,"Circular Rebalance is a payment you make to *yourself* to affect a relative change in the balances of two channels. This is accomplished by sending payment out from the selected channel and receiving it back on the channel with the selected peer. Please note, you will be paying routing fee to balance the channels in this manner."),t.qZA()()(),t.TgZ(18,"div",17)(19,"p",18)(20,"strong"),t._uU(21,"Channel Peer:\xa0"),t.qZA(),t._uU(22),t.ALo(23,"titlecase"),t.qZA(),t.TgZ(24,"p",18)(25,"strong"),t._uU(26,"Channel ID:\xa0"),t.qZA(),t._uU(27),t.qZA()(),t.TgZ(28,"mat-vertical-stepper",19,20)(30,"mat-step",21)(31,"form",22),t.YNc(32,Fs,1,1,"ng-template",23),t.TgZ(33,"div",24)(34,"mat-form-field",25)(35,"mat-label"),t._uU(36,"Amount"),t.qZA(),t._UZ(37,"input",26),t.TgZ(38,"mat-hint"),t._uU(39),t.qZA(),t.TgZ(40,"span",27),t._uU(41,"Sats"),t.qZA(),t.YNc(42,qs,2,0,"mat-error",28),t.YNc(43,Ns,2,0,"mat-error",28),t.YNc(44,Os,2,1,"mat-error",28),t.qZA(),t.TgZ(45,"mat-form-field",29)(46,"mat-label"),t._uU(47,"Receive from Peer"),t.qZA(),t.TgZ(48,"input",30),t.NdJ("change",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onSelectedPeerChanged())}),t.qZA(),t.TgZ(49,"mat-autocomplete",31,32),t.NdJ("optionSelected",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onSelectedPeerChanged())}),t.YNc(51,Ps,2,3,"mat-option",33),t.ALo(52,"async"),t.qZA(),t.YNc(53,ks,2,0,"mat-error",28),t.YNc(54,Us,2,0,"mat-error",28),t.qZA()(),t.TgZ(55,"div",34)(56,"button",35),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onRebalance())}),t._uU(57,"Rebalance"),t.qZA()()()(),t.TgZ(58,"mat-step",36)(59,"form",22),t.YNc(60,Rs,1,0,"ng-template",23),t.TgZ(61,"div",37),t.YNc(62,Ms,1,0,"mat-progress-bar",38),t.TgZ(63,"mat-expansion-panel",39)(64,"mat-expansion-panel-header")(65,"mat-panel-title")(66,"span",40),t._uU(67),t.YNc(68,Ds,2,1,"mat-icon",41),t.qZA()()(),t.TgZ(69,"div",5)(70,"span",42),t._uU(71),t.qZA()()(),t.YNc(72,Js,1,0,"mat-progress-bar",38),t.TgZ(73,"mat-expansion-panel",39)(74,"mat-expansion-panel-header")(75,"mat-panel-title")(76,"span",40),t._uU(77),t.YNc(78,Hs,2,1,"mat-icon",41),t.qZA()()(),t.YNc(79,Ys,2,1,"div",0),t.qZA(),t.YNc(80,Bs,1,0,"mat-progress-bar",38),t.TgZ(81,"mat-expansion-panel",43)(82,"mat-expansion-panel-header")(83,"mat-panel-title")(84,"span",40),t._uU(85),t.YNc(86,Vs,2,1,"mat-icon",41),t.qZA()()(),t.YNc(87,zs,1,0,"div",44),t.qZA()(),t.TgZ(88,"h4",45),t._uU(89),t.qZA(),t.TgZ(90,"div",46),t.YNc(91,Gs,2,0,"button",47),t.qZA()()()(),t.TgZ(92,"div",48)(93,"button",49),t._uU(94,"Close"),t.qZA()()()()()}if(2&i){const n=t.MAs(50),e=t.oxw(),a=t.MAs(2);t.Q6J("@opacityAnimation",void 0),t.xp6(15),t.Q6J("icon",e.faInfoCircle),t.xp6(7),t.Oqu(t.lcZ(23,38,e.selChannel.alias)),t.xp6(5),t.Oqu(e.selChannel.shortChannelId),t.xp6(1),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",e.inputFormGroup)("editable",e.flgEditable),t.xp6(1),t.Q6J("formGroup",e.inputFormGroup),t.xp6(6),t.Q6J("step",100),t.xp6(2),t.AsE("(Local Bal: ",null==e.selChannel?null:e.selChannel.toLocal,", Remaining: ",(null==e.selChannel?null:e.selChannel.toLocal)-(e.inputFormGroup.controls.rebalanceAmount.value?e.inputFormGroup.controls.rebalanceAmount.value:0),")"),t.xp6(3),t.Q6J("ngIf",null==e.inputFormGroup.controls.rebalanceAmount.errors?null:e.inputFormGroup.controls.rebalanceAmount.errors.required),t.xp6(1),t.Q6J("ngIf",null==e.inputFormGroup.controls.rebalanceAmount.errors?null:e.inputFormGroup.controls.rebalanceAmount.errors.min),t.xp6(1),t.Q6J("ngIf",null==e.inputFormGroup.controls.rebalanceAmount.errors?null:e.inputFormGroup.controls.rebalanceAmount.errors.max),t.xp6(4),t.Q6J("matAutocomplete",n),t.xp6(1),t.Q6J("displayWith",e.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(52,40,e.filteredActiveChannels)),t.xp6(2),t.Q6J("ngIf",null==e.inputFormGroup.controls.selRebalancePeer.errors?null:e.inputFormGroup.controls.selRebalancePeer.errors.required),t.xp6(1),t.Q6J("ngIf",null==e.inputFormGroup.controls.selRebalancePeer.errors?null:e.inputFormGroup.controls.selRebalancePeer.errors.notfound),t.xp6(4),t.Q6J("stepControl",e.statusFormGroup),t.xp6(1),t.Q6J("formGroup",e.statusFormGroup),t.xp6(3),t.Q6J("ngIf",""===e.rebalanceStatus.invoice),t.xp6(5),t.Oqu(""===e.rebalanceStatus.invoice?"Searching invoice...":e.rebalanceStatus.flgReusingInvoice?"Invoice re-used":"Invoice generated"),t.xp6(1),t.Q6J("ngIf",""!==e.rebalanceStatus.invoice),t.xp6(3),t.Oqu(e.rebalanceStatus.invoice),t.xp6(1),t.Q6J("ngIf",!(null!=e.rebalanceStatus.paymentStatus&&e.rebalanceStatus.paymentStatus.error||e.rebalanceStatus.paymentRoute||"pending"===(null==e.rebalanceStatus.paymentStatus?null:e.rebalanceStatus.paymentStatus.type))),t.xp6(5),t.Oqu(null!=e.rebalanceStatus.paymentStatus&&e.rebalanceStatus.paymentStatus.error?"Route failed":e.rebalanceStatus.paymentRoute?"Route used":"Searching route..."),t.xp6(1),t.Q6J("ngIf",e.rebalanceStatus.paymentStatus),t.xp6(1),t.Q6J("ngIf",""!==e.rebalanceStatus.paymentRoute),t.xp6(1),t.Q6J("ngIf",!e.rebalanceStatus.paymentStatus),t.xp6(1),t.Q6J("expanded",!!e.rebalanceStatus.paymentStatus),t.xp6(4),t.Oqu(e.rebalanceStatus.paymentStatus&&"pending"!==(null==e.rebalanceStatus.paymentStatus?null:e.rebalanceStatus.paymentStatus.type)?null!=e.rebalanceStatus.paymentStatus&&e.rebalanceStatus.paymentStatus.error?"Payment failed":"sent"===(null==e.rebalanceStatus.paymentStatus?null:e.rebalanceStatus.paymentStatus.type)?"Payment successful":"":"Payment status pending..."),t.xp6(1),t.Q6J("ngIf",e.rebalanceStatus.paymentStatus&&"pending"!==(null==e.rebalanceStatus.paymentStatus?null:e.rebalanceStatus.paymentStatus.type)),t.xp6(1),t.Q6J("ngIf",!e.rebalanceStatus.paymentStatus)("ngIfElse",a),t.xp6(2),t.Oqu(e.rebalanceStatus.paymentStatus?e.rebalanceStatus.paymentStatus&&null!=e.rebalanceStatus.paymentStatus&&e.rebalanceStatus.paymentStatus.error?"Rebalance Failed.":"Rebalance Successful.":""),t.xp6(2),t.Q6J("ngIf",e.rebalanceStatus.paymentStatus&&e.rebalanceStatus.paymentStatus.error),t.xp6(2),t.Q6J("mat-dialog-close",!1)}}function Ks(i,o){1&i&&t.GkF(0)}function Xs(i,o){if(1&i&&t.YNc(0,Ks,1,0,"ng-container",55),2&i){const n=t.oxw(),e=t.MAs(4),a=t.MAs(6);t.Q6J("ngTemplateOutlet",n.rebalanceStatus.paymentStatus.error?e:a)}}function $s(i,o){if(1&i&&(t.TgZ(0,"div",5)(1,"span",42),t._uU(2),t.qZA()()),2&i){const n=t.oxw();t.xp6(2),t.hij("Error: ",n.rebalanceStatus.paymentStatus.error,"")}}function js(i,o){if(1&i&&(t.TgZ(0,"div",5)(1,"div",56)(2,"div",57)(3,"h4",58),t._uU(4,"Total Fees (Sats)"),t.qZA(),t.TgZ(5,"span",42),t._uU(6),t.qZA()(),t.TgZ(7,"div",57)(8,"h4",58),t._uU(9,"Number of Hops"),t.qZA(),t.TgZ(10,"span",42),t._uU(11),t.qZA()()(),t._UZ(12,"mat-divider",59),t.TgZ(13,"div",56)(14,"div",60)(15,"h4",58),t._uU(16,"Payment Hash"),t.qZA(),t.TgZ(17,"span",42),t._uU(18),t.qZA()()(),t._UZ(19,"mat-divider",59),t.TgZ(20,"div",56)(21,"div",60)(22,"h4",58),t._uU(23,"Payment ID"),t.qZA(),t.TgZ(24,"span",42),t._uU(25),t.qZA()()(),t._UZ(26,"mat-divider",59),t.TgZ(27,"div",56)(28,"div",60)(29,"h4",58),t._uU(30,"Parent ID"),t.qZA(),t.TgZ(31,"span",42),t._uU(32),t.qZA()()()()),2&i){const n=t.oxw();let e;t.xp6(6),t.Oqu(n.rebalanceStatus.paymentStatus.feesPaid?n.rebalanceStatus.paymentStatus.feesPaid/1e3:0),t.xp6(5),t.Oqu(n.rebalanceStatus.paymentRoute&&""!==n.rebalanceStatus.paymentRoute?null==(e=n.rebalanceStatus.paymentRoute.split(","))?null:e.length:0),t.xp6(7),t.Oqu(n.rebalanceStatus.paymentHash),t.xp6(7),t.Oqu(n.rebalanceStatus.paymentDetails.paymentId),t.xp6(7),t.Oqu(n.rebalanceStatus.paymentDetails.parentId)}}const tl=function(i,o){return{"dot-primary":i,"dot-primary-lighter":o}};function el(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"span",77),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw(2);return t.KtG(r.onStepChanged(s))}),t._UZ(1,"p",78),t.qZA()}if(2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngClass",t.WLB(1,tl,e.stepNumber===n,e.stepNumber!==n))}}function nl(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"button",79),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.onStepChanged(4))}),t._uU(1,"Back"),t.qZA()}}function il(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"button",80),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return a.flgShowInfo=!1,t.KtG(a.stepNumber=1)}),t._uU(1,"Close"),t.qZA()}}function al(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"button",81),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return a.flgShowInfo=!1,t.KtG(a.stepNumber=1)}),t._uU(1,"Close"),t.qZA()}}function ol(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"button",82),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.onStepChanged(a.stepNumber-1))}),t._uU(1,"Back"),t.qZA()}}function sl(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"button",83),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.onStepChanged(a.stepNumber+1))}),t._uU(1,"Next"),t.qZA()}}const ll=function(){return[1,2,3,4,5]};function rl(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",61)(1,"div",62)(2,"mat-card-header",63)(3,"div",64),t._UZ(4,"span",9),t.qZA(),t.TgZ(5,"div",65)(6,"button",66),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return a.flgShowInfo=!1,t.KtG(a.stepNumber=1)}),t._uU(7,"X"),t.qZA()()(),t.TgZ(8,"mat-card-content",67)(9,"rtl-ecl-channel-rebalance-infographics",68),t.NdJ("stepNumberChange",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.stepNumber=a)}),t.qZA()(),t.TgZ(10,"div",69),t.YNc(11,el,2,4,"span",70),t.qZA(),t.TgZ(12,"div",71),t.YNc(13,nl,2,0,"button",72),t.YNc(14,il,2,0,"button",73),t.YNc(15,al,2,0,"button",74),t.YNc(16,ol,2,0,"button",75),t.YNc(17,sl,2,0,"button",76),t.qZA()()()}if(2&i){const n=t.oxw();t.Q6J("@opacityAnimation",void 0),t.xp6(9),t.Q6J("animationDirection",n.animationDirection)("stepNumber",n.stepNumber),t.xp6(2),t.Q6J("ngForOf",t.DdM(9,ll)),t.xp6(2),t.Q6J("ngIf",5===n.stepNumber),t.xp6(1),t.Q6J("ngIf",5===n.stepNumber),t.xp6(1),t.Q6J("ngIf",n.stepNumber<5),t.xp6(1),t.Q6J("ngIf",n.stepNumber>1&&n.stepNumber<5),t.xp6(1),t.Q6J("ngIf",n.stepNumber<5)}}let cl=(()=>{var i;class o{constructor(e,a,s,r,p,x,N){this.dialogRef=e,this.data=a,this.logger=s,this.dataService=r,this.formBuilder=p,this.store=x,this.decimalPipe=N,this.faInfoCircle=L.sqG,this.information={},this.selChannel={},this.activeChannels=[],this.rebalanceStatus={flgReusingInvoice:!1,invoice:"",paymentRoute:"",paymentHash:"",paymentDetails:null,paymentStatus:null},this.inputFormLabel="Amount to rebalance",this.flgEditable=!0,this.flgShowInfo=!1,this.stepNumber=1,this.animationDirection="forward",this.unSubs=[new m.x,new m.x,new m.x,new m.x]}ngOnInit(){let e="",a="";this.information=this.data.message?.information||{},this.selChannel=this.data.message?.selChannel||{},this.activeChannels=this.data.message?.channels?.filter(s=>s.channelId!==this.selChannel.channelId&&s.toRemote&&s.toRemote>0)||[],this.activeChannels=this.activeChannels.sort((s,r)=>(e=s.alias?s.alias.toLowerCase():s.shortChannelId?s.shortChannelId.toLowerCase():"",a=r.alias?r.alias.toLowerCase():s.shortChannelId?s.shortChannelId.toLowerCase():"",ea?1:0)),this.inputFormGroup=this.formBuilder.group({rebalanceAmount:["",[d.kI.required,d.kI.min(1),d.kI.max(this.selChannel.toLocal||0)]],selRebalancePeer:[null,d.kI.required]}),this.statusFormGroup=this.formBuilder.group({}),this.inputFormGroup.get("rebalanceAmount")?.valueChanges.pipe((0,_.R)(this.unSubs[0]),(0,gt.O)(0)).subscribe(s=>{this.inputFormGroup.controls.selRebalancePeer.setValue(""),this.inputFormGroup.controls.selRebalancePeer.setErrors(null),this.filteredActiveChannels=(0,Ct.of)(s?this.filterActiveChannels():this.activeChannels.slice())}),this.inputFormGroup.get("selRebalancePeer")?.valueChanges.pipe((0,_.R)(this.unSubs[1]),(0,gt.O)("")).subscribe(s=>{"string"==typeof s&&(this.filteredActiveChannels=(0,Ct.of)(this.filterActiveChannels()))})}stepSelectionChanged(e){switch(e.selectedIndex){case 0:default:this.inputFormLabel="Amount to rebalance";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.selRebalancePeer.value.alias?"Rebalancing Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.rebalanceAmount.value?this.inputFormGroup.controls.rebalanceAmount.value:0)+" Sats | Peer: "+(this.inputFormGroup.controls.selRebalancePeer.value.alias?this.inputFormGroup.controls.selRebalancePeer.value.alias:this.inputFormGroup.controls.selRebalancePeer.value.nodeId.substring(0,15)+"..."):"Amount to rebalance"}}onRebalance(){if(!this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.rebalanceAmount.value<=0||this.selChannel.toLocal&&this.inputFormGroup.controls.rebalanceAmount.value>+this.selChannel.toLocal||!this.inputFormGroup.controls.selRebalancePeer.value.nodeId)return this.inputFormGroup.controls.selRebalancePeer.value.nodeId||this.inputFormGroup.controls.selRebalancePeer.setErrors({required:!0}),!0;this.stepper.next(),this.flgEditable=!1,this.rebalanceStatus={flgReusingInvoice:!1,invoice:"",paymentRoute:"",paymentHash:"",paymentDetails:null,paymentStatus:null},this.dataService.circularRebalance(1e3*this.inputFormGroup.controls.rebalanceAmount.value,this.selChannel.shortChannelId,this.selChannel.nodeId,this.inputFormGroup.controls.selRebalancePeer.value.shortChannelId,this.inputFormGroup.controls.selRebalancePeer.value.nodeId,[this.information.nodeId||""]).pipe((0,_.R)(this.unSubs[2])).subscribe({next:e=>{this.logger.info(e),this.rebalanceStatus=e,this.flgEditable=!0,this.store.dispatch((0,k.WM)()),this.store.dispatch((0,k.UR)({payload:{fetchPayments:!0}}))},error:e=>{this.logger.error(e),this.rebalanceStatus=e,this.flgEditable=!0}})}filterActiveChannels(){return this.activeChannels?.filter(e=>e.toRemote&&e.toRemote>=this.inputFormGroup.controls.rebalanceAmount.value&&e.channelId!==this.selChannel.channelId&&(0===e.alias?.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():"")||0===e.channelId?.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():"")))}onSelectedPeerChanged(){if(this.inputFormGroup.controls.selRebalancePeer.value&&this.inputFormGroup.controls.selRebalancePeer.value.length>0&&"string"==typeof this.inputFormGroup.controls.selRebalancePeer.value){const e=this.activeChannels?.filter(a=>a.alias?.length===this.inputFormGroup.controls.selRebalancePeer.value.length&&0===a.alias?.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():""));e&&e.length>0?(this.inputFormGroup.controls.selRebalancePeer.setValue(e[0]),this.inputFormGroup.controls.selRebalancePeer.setErrors(null)):this.inputFormGroup.controls.selRebalancePeer.setErrors({notfound:!0})}}displayFn(e){return e&&e.alias?e.alias:e&&e.shortChannelId?e.shortChannelId:""}showInfo(){this.flgShowInfo=!0}onStepChanged(e){this.animationDirection=e{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(D.so),t.Y36(D.WI),t.Y36(R.mQ),t.Y36(pt.D),t.Y36(d.qu),t.Y36(E.yh),t.Y36(u.JJ))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-channel-rebalance"]],viewQuery:function(e,a){if(1&e&&t.Gf(Is,5),2&e){let s;t.iGM(s=t.CRH())&&(a.stepper=s.first)}},decls:8,vars:2,consts:[["fxLayout","column",4,"ngIf"],["paymentStatusBlock",""],["paymentFailedBlock",""],["paymentSuccessfulBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column"],[1,"modal-info-header"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxLayoutAlign","start center"],[1,"page-title"],["fxLayoutAlign","end center"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","46"],[3,"linear"],["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"],["fxLayout","column","fxFlex","48"],["autoFocus","","matInput","","type","number","tabindex","1","formControlName","rebalanceAmount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["fxLayout","column","fxFlex","48","fxLayoutAlign","start end"],["type","text","aria-label","Receive from Peer","matInput","","formControlName","selRebalancePeer","tabindex","2","required","",3,"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","8","type","submit",3,"click"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxFlex","100",1,"flat-expansion-panel","mb-2"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[1,"foreground-secondary-text"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayout","column",4,"ngIf","ngIfElse"],["fxLayoutAlign","start",1,"font-bold-500","mt-1"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-1"],["mat-button","","color","primary","tabindex","11","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],[3,"value"],["fxFlex","100","color","primary","mode","indeterminate"],[1,"ml-1","icon-small"],["class","foreground-secondary-text",4,"ngFor","ngForOf"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[4,"ngTemplateOutlet"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],["fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["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,"animationDirection","stepNumber","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(e,a){1&e&&(t.YNc(0,Ws,95,42,"div",0),t.YNc(1,Xs,1,1,"ng-template",null,1,t.W1O),t.YNc(3,$s,3,1,"ng-template",null,2,t.W1O),t.YNc(5,js,33,5,"ng-template",null,3,t.W1O),t.YNc(7,rl,18,10,"div",4)),2&e&&(t.Q6J("ngIf",!a.flgShowInfo),t.xp6(7),t.Q6J("ngIf",a.flgShowInfo))},dependencies:[u.mk,u.sg,u.O5,u.tP,d._Y,d.Fj,d.wV,d.JJ,d.JL,d.Q7,d.sg,d.u,I.BN,h.xw,h.Wh,h.yH,Z.oO,D.ZT,F.lW,T.dn,T.dk,B.ib,B.yz,B.yK,rt.Hw,Q.Nt,C.KE,C.hX,C.bx,C.TO,C.R9,X.d,H.pW,V.ey,tt.C0,tt.VY,tt.Vq,ot.XC,ot.ZL,$.h,ws,u.Ov,u.rS],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:30rem;min-height:30rem;overflow-x:hidden}"],data:{animation:[xt._]}}),o})();function ul(i,o){if(1&i&&(t.TgZ(0,"mat-option",36),t._uU(1),t.qZA()),2&i){const n=o.$implicit,e=t.oxw();t.Q6J("value",n),t.xp6(1),t.Oqu(e.getLabel(n))}}function pl(i,o){1&i&&t._UZ(0,"mat-progress-bar",37)}function ml(i,o){1&i&&t._UZ(0,"th",38)}function dl(i,o){if(1&i&&(t.TgZ(0,"span",42),t._UZ(1,"fa-icon",43),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Q6J("icon",n.faEyeSlash)}}function hl(i,o){if(1&i&&(t.TgZ(0,"span",44),t._UZ(1,"fa-icon",43),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Q6J("icon",n.faEye)}}function _l(i,o){if(1&i&&(t.TgZ(0,"td",39),t.YNc(1,dl,2,1,"span",40),t.YNc(2,hl,2,1,"span",41),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Q6J("ngIf",!(null!=n&&n.announceChannel)),t.xp6(1),t.Q6J("ngIf",null==n?null:n.announceChannel)}}function gl(i,o){1&i&&(t.TgZ(0,"th",45),t._uU(1,"Short Channel ID"),t.qZA())}function fl(i,o){if(1&i&&(t.TgZ(0,"td",39),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(null==n?null:n.shortChannelId)}}function Cl(i,o){1&i&&(t.TgZ(0,"th",45),t._uU(1,"Channel ID"),t.qZA())}const yt=function(i){return{width:i}};function xl(i,o){if(1&i&&(t.TgZ(0,"td",39)(1,"div",46)(2,"span",47),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,yt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.channelId)}}function yl(i,o){1&i&&(t.TgZ(0,"th",45),t._uU(1,"Alias"),t.qZA())}function bl(i,o){if(1&i&&(t.TgZ(0,"td",39)(1,"div",46)(2,"span",47),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,yt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.alias)}}function Ll(i,o){1&i&&(t.TgZ(0,"th",45),t._uU(1,"Node ID"),t.qZA())}function Tl(i,o){if(1&i&&(t.TgZ(0,"td",39)(1,"div",46)(2,"span",47),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,yt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.nodeId)}}function vl(i,o){1&i&&(t.TgZ(0,"th",45),t._uU(1,"Initiator"),t.qZA())}function Zl(i,o){if(1&i&&(t.TgZ(0,"td",39),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(null!=n&&n.isInitiator?"Yes":"No")}}function Sl(i,o){1&i&&(t.TgZ(0,"th",48),t._uU(1,"Base Fee (mSats)"),t.qZA())}function Al(i,o){if(1&i&&(t.TgZ(0,"td",39)(1,"span",49),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==n?null:n.feeBaseMsat,"1.0-0")," ")}}function El(i,o){1&i&&(t.TgZ(0,"th",48),t._uU(1,"Fee Rate (mili mSats)"),t.qZA())}function wl(i,o){if(1&i&&(t.TgZ(0,"td",39)(1,"span",49),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==n?null:n.feeProportionalMillionths,"1.0-0")," ")}}function Il(i,o){1&i&&(t.TgZ(0,"th",48),t._uU(1,"Local Balance (Sats)"),t.qZA())}function Fl(i,o){if(1&i&&(t.TgZ(0,"td",39)(1,"span",49),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==n?null:n.toLocal,"1.0-0")," ")}}function ql(i,o){1&i&&(t.TgZ(0,"th",48),t._uU(1,"Remote Balance (Sats)"),t.qZA())}function Nl(i,o){if(1&i&&(t.TgZ(0,"td",39)(1,"span",49),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==n?null:n.toRemote,"1.0-0")," ")}}function Ol(i,o){1&i&&(t.TgZ(0,"th",45),t._uU(1,"Balance Score"),t.qZA())}function Pl(i,o){if(1&i&&(t.TgZ(0,"td",39)(1,"div",50)(2,"mat-hint",51),t._uU(3),t.ALo(4,"number"),t.qZA()(),t._UZ(5,"mat-progress-bar",52),t.qZA()),2&i){const n=o.$implicit;t.xp6(3),t.Oqu(t.lcZ(4,2,(null==n?null:n.balancedness)||0)),t.xp6(2),t.s9C("value",null!=n&&n.toLocal&&(null==n?null:n.toLocal)>0?+(null==n?null:n.toLocal)/(+(null==n?null:n.toLocal)+ +(null==n?null:n.toRemote))*100:0)}}function kl(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"th",53)(1,"div",54)(2,"mat-select",55),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",56),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onChannelUpdate("all"))}),t._uU(5,"Update Fee Policy"),t.qZA(),t.TgZ(6,"mat-option",56),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onDownloadCSV())}),t._uU(7,"Download CSV"),t.qZA()()()()}}function Ul(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"td",57)(1,"div",54)(2,"mat-select",58),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",56),t.NdJ("click",function(a){const r=t.CHM(n).$implicit,p=t.oxw();return t.KtG(p.onChannelClick(r,a))}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",56),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw();return t.KtG(r.onChannelUpdate(s))}),t._uU(7,"Update Fee Policy"),t.qZA(),t.TgZ(8,"mat-option",56),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw();return t.KtG(r.onCircularRebalance(s))}),t._uU(9,"Circular Rebalance"),t.qZA(),t.TgZ(10,"mat-option",56),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw();return t.KtG(r.onChannelClose(s,!1))}),t._uU(11,"Close Channel"),t.qZA(),t.TgZ(12,"mat-option",56),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw();return t.KtG(r.onChannelClose(s,!0))}),t._uU(13,"Force Close"),t.qZA()()()()}}function Rl(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"No peers connected. Add a peer in order to open a channel."),t.qZA())}function Ml(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"No channel available."),t.qZA())}function Dl(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"Getting channels..."),t.qZA())}function Jl(i,o){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Oqu(n.errorMessage)}}function Hl(i,o){if(1&i&&(t.TgZ(0,"td",59),t.YNc(1,Rl,2,0,"p",60),t.YNc(2,Ml,2,0,"p",60),t.YNc(3,Dl,2,0,"p",60),t.YNc(4,Jl,2,1,"p",60),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Q6J("ngIf",n.numPeers<1&&(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",n.numPeers>0&&(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}const Ql=function(i){return{"display-none":i}};function Yl(i,o){if(1&i&&t._UZ(0,"tr",61),2&i){const n=t.oxw();t.Q6J("ngClass",t.VKq(1,Ql,n.numPeers>0&&(null==n.channels?null:n.channels.data)&&(null==n.channels||null==n.channels.data?null:n.channels.data.length)>0))}}function Bl(i,o){1&i&&t._UZ(0,"tr",62)}function Vl(i,o){1&i&&t._UZ(0,"tr",63)}const zl=function(){return["all"]},Gl=function(i){return{"error-border":i}},Wl=function(){return["no_peer"]};let Kl=(()=>{var i;class o{constructor(e,a,s,r,p,x){this.logger=e,this.store=a,this.rtlEffects=s,this.commonService=r,this.router=p,this.camelCaseWithSpaces=x,this.faEye=L.Mdf,this.faEyeSlash=L.Aq,this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"open_channels",recordsPerPage:l.IV,sortBy:"alias",sortOrder:l.Pi.DESCENDING},this.totalBalance=0,this.displayedColumns=[],this.channels=new c.by([]),this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=l.vn,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],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){window.history.state&&window.history.state.filterColumn&&(this.selFilterBy=window.history.state.filterColumn||"all",this.selFilter=window.history.state.filterValue||""),this.store.select(f.nF).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=e.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||l.c3.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("announceChannel"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(f.Xz).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.activeChannels=e.activeChannels,this.activeChannels.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadChannelsTable(),this.logger.info(e)}),this.store.select(f.yD).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.information=e}),this.store.select(f.Bo).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.numPeers=e.peers&&e.peers.length?e.peers.length:0}),this.store.select(f.kY).pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{this.totalBalance=e.onchainBalance.total||0})}ngAfterViewInit(){this.activeChannels.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadChannelsTable()}onCircularRebalance(e){this.store.dispatch((0,S.qR)({payload:{data:{message:{channels:this.activeChannels,selChannel:e,information:this.information},component:cl}}}))}onChannelUpdate(e){"all"!==e&&e?.state&&"NORMAL"!==e?.state||(this.store.dispatch((0,S.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update",message:[],titleMessage:"string"==typeof e&&"all"===e?"Update fee policy for all channels":"Update fee policy for Channel: "+(e?.alias||e?.shortChannelId?e?.alias&&e?.shortChannelId?e?.alias+" ("+e?.shortChannelId+")":e?.alias?e?.alias:e?.shortChannelId:e?.channelId),flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSats)",inputType:l.Gi.NUMBER,inputValue:e&&typeof e?.feeBaseMsat<"u"?e?.feeBaseMsat:1e3,step:100,width:48},{placeholder:"Fee Rate (mili mSats)",inputType:l.Gi.NUMBER,inputValue:e&&typeof e?.feeProportionalMillionths<"u"?e?.feeProportionalMillionths:100,min:1,width:48,hintFunction:this.percentHintFunction}]}}})),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[5])).subscribe(r=>{if(r){const p=r[0].inputValue,x=r[1].inputValue;let N=null;if(this.commonService.isVersionCompatible(this.information.version,"0.6.2")){let y="";"all"===e?(this.activeChannels.forEach(O=>{y=y+","+O.nodeId}),y=y.substring(1),N={baseFeeMsat:p,feeRate:x,nodeIds:y}):N={baseFeeMsat:p,feeRate:x,nodeId:e?.nodeId}}else{let y="";"all"===e?(this.activeChannels.forEach(O=>{y=y+","+O.channelId}),y=y.substring(1),N={baseFeeMsat:p,feeRate:x,channelIds:y}):N={baseFeeMsat:p,feeRate:x,channelId:e?.channelId}}this.store.dispatch((0,k.pW)({payload:N}))}}),this.applyFilter())}percentHintFunction(e){return(e/1e4).toString()+"%"}onChannelClose(e,a){this.store.dispatch((0,S.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:a?"Force Close Channel":"Close Channel",titleMessage:a?"Force closing channel: "+(e.alias||e.shortChannelId?e.alias&&e.shortChannelId?e.alias+" ("+e.shortChannelId+")":e.alias?e.alias:e.shortChannelId:e.channelId):"Closing channel: "+(e.alias||e.shortChannelId?e.alias&&e.shortChannelId?e.alias+" ("+e.shortChannelId+")":e.alias?e.alias:e.shortChannelId:e.channelId),noBtnText:"Cancel",yesBtnText:a?"Force Close":"Close Channel"}}})),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[6])).subscribe(x=>{x&&this.store.dispatch((0,k.BL)({payload:{channelId:e.channelId,force:a}}))})}onChannelClick(e,a){this.store.dispatch((0,S.qR)({payload:{data:{channel:e,channelsType:"open",component:ft}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}getLabel(e){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(s=>s.column===e);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):"announceChannel"===e?"Private":this.commonService.titleCase(e)}setFilterPredicate(){this.channels.filterPredicate=(e,a)=>{let s="";switch(this.selFilterBy){case"all":s=JSON.stringify(e).toLowerCase();break;case"announceChannel":s=e?.announceChannel?"public":"private";break;default:s=typeof e[this.selFilterBy]>"u"?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return s.includes(a)}}loadChannelsTable(){this.channels=new c.by([...this.activeChannels]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(e,a)=>e[a]&&isNaN(e[a])?e[a].toLocaleLowerCase():e[a]?+e[a]:null,this.channels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"ActiveChannels")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(E.yh),t.Y36(it.V),t.Y36(M.v),t.Y36(b.F0),t.Y36(z.i1))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-channel-open-table"]],viewQuery:function(e,a){if(1&e&&(t.Gf(v.YE,5),t.Gf(w.NW,5)),2&e){let s;t.iGM(s=t.CRH())&&(a.sort=s.first),t.iGM(s=t.CRH())&&(a.paginator=s.first)}},features:[t._Bn([{provide:A.PG,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.ye,useValue:(0,l.pt)("Channels")}])],decls:60,vars:18,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.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["table",""],["matColumnDef","announceChannel"],["mat-header-cell","","mat-sort-header","","matTooltip","Private",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortChannelId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","channelId"],["matColumnDef","alias"],["matColumnDef","nodeId"],["matColumnDef","isInitiator"],["matColumnDef","feeBaseMsat"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","feeProportionalMillionths"],["matColumnDef","toLocal"],["matColumnDef","toRemote"],["matColumnDef","balancedness"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","5",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","matTooltip","Private"],["mat-cell",""],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","5"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,a){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"div",2),t.TgZ(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),t._uU(6,"Filter By"),t.qZA(),t.TgZ(7,"mat-select",5),t.NdJ("ngModelChange",function(r){return a.selFilterBy=r})("selectionChange",function(){return a.selFilter="",a.applyFilter()}),t.TgZ(8,"perfect-scrollbar"),t.YNc(9,ul,2,2,"mat-option",6),t.qZA()()(),t.TgZ(10,"mat-form-field",4)(11,"mat-label"),t._uU(12,"Filter"),t.qZA(),t.TgZ(13,"input",7),t.NdJ("ngModelChange",function(r){return a.selFilter=r})("input",function(){return a.applyFilter()})("keyup",function(){return a.applyFilter()}),t.qZA()()()(),t.TgZ(14,"div",8),t.YNc(15,pl,1,0,"mat-progress-bar",9),t.TgZ(16,"table",10,11),t.ynx(18,12),t.YNc(19,ml,1,0,"th",13),t.YNc(20,_l,3,2,"td",14),t.BQk(),t.ynx(21,15),t.YNc(22,gl,2,0,"th",16),t.YNc(23,fl,2,1,"td",14),t.BQk(),t.ynx(24,17),t.YNc(25,Cl,2,0,"th",16),t.YNc(26,xl,4,4,"td",14),t.BQk(),t.ynx(27,18),t.YNc(28,yl,2,0,"th",16),t.YNc(29,bl,4,4,"td",14),t.BQk(),t.ynx(30,19),t.YNc(31,Ll,2,0,"th",16),t.YNc(32,Tl,4,4,"td",14),t.BQk(),t.ynx(33,20),t.YNc(34,vl,2,0,"th",16),t.YNc(35,Zl,2,1,"td",14),t.BQk(),t.ynx(36,21),t.YNc(37,Sl,2,0,"th",22),t.YNc(38,Al,4,4,"td",14),t.BQk(),t.ynx(39,23),t.YNc(40,El,2,0,"th",22),t.YNc(41,wl,4,4,"td",14),t.BQk(),t.ynx(42,24),t.YNc(43,Il,2,0,"th",22),t.YNc(44,Fl,4,4,"td",14),t.BQk(),t.ynx(45,25),t.YNc(46,ql,2,0,"th",22),t.YNc(47,Nl,4,4,"td",14),t.BQk(),t.ynx(48,26),t.YNc(49,Ol,2,0,"th",16),t.YNc(50,Pl,6,4,"td",14),t.BQk(),t.ynx(51,27),t.YNc(52,kl,8,0,"th",28),t.YNc(53,Ul,14,0,"td",29),t.BQk(),t.ynx(54,30),t.YNc(55,Hl,5,4,"td",31),t.BQk(),t.YNc(56,Yl,1,3,"tr",32),t.YNc(57,Bl,1,0,"tr",33),t.YNc(58,Vl,1,0,"tr",34),t.qZA()(),t._UZ(59,"mat-paginator",35),t.qZA()),2&e&&(t.xp6(7),t.Q6J("ngModel",a.selFilterBy),t.xp6(2),t.Q6J("ngForOf",t.DdM(14,zl).concat(a.displayedColumns.slice(0,-1))),t.xp6(4),t.Q6J("ngModel",a.selFilter),t.xp6(2),t.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.channels)("ngClass",t.VKq(15,Gl,""!==a.errorMessage)),t.xp6(40),t.Q6J("matFooterRowDef",t.DdM(17,Wl)),t.xp6(1),t.Q6J("matHeaderRowDef",a.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",a.displayedColumns),t.xp6(1),t.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[u.mk,u.sg,u.O5,u.PC,d.Fj,d.JJ,d.On,I.BN,h.xw,h.Wh,h.yH,Z.oO,Z.Zl,Q.Nt,C.KE,C.hX,C.bx,H.pW,A.gD,A.$L,V.ey,v.YE,v.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.mD,c.Ke,c.ge,c.ev,c.yh,c.XQ,c.Gk,c.Q2,W.gM,w.NW,P.Vv,P.$V,u.JJ],styles:[".mat-column-announceChannel[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:2rem;min-width:15rem;max-width:30rem}"]}),o})();function Xl(i,o){if(1&i&&(t.TgZ(0,"mat-option",33),t._uU(1),t.qZA()),2&i){const n=o.$implicit,e=t.oxw();t.Q6J("value",n),t.xp6(1),t.Oqu(e.getLabel(n))}}function $l(i,o){1&i&&t._UZ(0,"mat-progress-bar",34)}function jl(i,o){1&i&&t._UZ(0,"th",35)}function tr(i,o){if(1&i&&(t.TgZ(0,"span",39),t._UZ(1,"fa-icon",40),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Q6J("icon",n.faEyeSlash)}}function er(i,o){if(1&i&&(t.TgZ(0,"span",41),t._UZ(1,"fa-icon",40),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Q6J("icon",n.faEye)}}function nr(i,o){if(1&i&&(t.TgZ(0,"td",36),t.YNc(1,tr,2,1,"span",37),t.YNc(2,er,2,1,"span",38),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Q6J("ngIf",!(null!=n&&n.announceChannel)),t.xp6(1),t.Q6J("ngIf",null==n?null:n.announceChannel)}}function ir(i,o){1&i&&(t.TgZ(0,"th",42),t._uU(1,"State"),t.qZA())}function ar(i,o){if(1&i&&(t.TgZ(0,"td",36),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,null==n?null:n.state))}}function or(i,o){1&i&&(t.TgZ(0,"th",42),t._uU(1,"Channel ID"),t.qZA())}const Rt=function(i){return{width:i}};function sr(i,o){if(1&i&&(t.TgZ(0,"td",36)(1,"div",43)(2,"span",44),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Rt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.channelId)}}function lr(i,o){1&i&&(t.TgZ(0,"th",42),t._uU(1,"Alias"),t.qZA())}function rr(i,o){if(1&i&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(null==n?null:n.alias)}}function cr(i,o){1&i&&(t.TgZ(0,"th",42),t._uU(1,"Node ID"),t.qZA())}function ur(i,o){if(1&i&&(t.TgZ(0,"td",36)(1,"div",43)(2,"span",44),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Rt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.nodeId)}}function pr(i,o){1&i&&(t.TgZ(0,"th",42),t._uU(1,"Initiator"),t.qZA())}function mr(i,o){if(1&i&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(null!=n&&n.isInitiator?"Yes":"No")}}function dr(i,o){1&i&&(t.TgZ(0,"th",45),t._uU(1,"Local Balance (Sats)"),t.qZA())}function hr(i,o){if(1&i&&(t.TgZ(0,"td",36)(1,"span",46),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==n?null:n.toLocal,"1.0-0")," ")}}function _r(i,o){1&i&&(t.TgZ(0,"th",45),t._uU(1,"Remote Balance (Sats)"),t.qZA())}function gr(i,o){if(1&i&&(t.TgZ(0,"td",36)(1,"span",46),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==n?null:n.toRemote,"1.0-0")," ")}}function fr(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"th",47)(1,"div",48)(2,"mat-select",49),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",50),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onDownloadCSV())}),t._uU(5,"Download CSV"),t.qZA()()()()}}function Cr(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"td",51)(1,"button",52),t.NdJ("click",function(a){const r=t.CHM(n).$implicit,p=t.oxw();return t.KtG(p.onChannelClick(r,a))}),t._uU(2,"View Info"),t.qZA()()}}function xr(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"No pending channel available."),t.qZA())}function yr(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"Getting pending channels..."),t.qZA())}function br(i,o){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Oqu(n.errorMessage)}}function Lr(i,o){if(1&i&&(t.TgZ(0,"td",53),t.YNc(1,xr,2,0,"p",54),t.YNc(2,yr,2,0,"p",54),t.YNc(3,br,2,1,"p",54),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}const Tr=function(i){return{"display-none":i}};function vr(i,o){if(1&i&&t._UZ(0,"tr",55),2&i){const n=t.oxw();t.Q6J("ngClass",t.VKq(1,Tr,(null==n.channels?null:n.channels.data)&&(null==n.channels||null==n.channels.data?null:n.channels.data.length)>0))}}function Zr(i,o){1&i&&t._UZ(0,"tr",56)}function Sr(i,o){1&i&&t._UZ(0,"tr",57)}const Ar=function(){return["all"]},Er=function(i){return{"error-border":i}},wr=function(){return["no_channel"]};let Ir=(()=>{var i;class o{constructor(e,a,s,r){this.logger=e,this.store=a,this.commonService=s,this.camelCaseWithSpaces=r,this.faEye=L.Mdf,this.faEyeSlash=L.Aq,this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"pending_channels",recordsPerPage:l.IV,sortBy:"alias",sortOrder:l.Pi.DESCENDING},this.totalBalance=0,this.displayedColumns=[],this.channels=new c.by([]),this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=l.vn,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],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(f.nF).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=e.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||l.c3.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("announceChannel"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(f.Xz).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.pendingChannels=e.pendingChannels,this.loadChannelsTable(),this.logger.info(e)}),this.store.select(f.yD).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.information=e}),this.store.select(f.Bo).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.numPeers=e.peers&&e.peers.length?e.peers.length:0}),this.store.select(f.kY).pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{this.totalBalance=e.onchainBalance.total||0})}ngAfterViewInit(){this.pendingChannels.length>0&&this.loadChannelsTable()}onChannelClick(e,a){this.store.dispatch((0,S.qR)({payload:{data:{channel:e,channelsType:"pending",component:ft}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}getLabel(e){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(s=>s.column===e);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):"announceChannel"===e?"Private":this.commonService.titleCase(e)}setFilterPredicate(){this.channels.filterPredicate=(e,a)=>{let s="";switch(this.selFilterBy){case"all":s=JSON.stringify(e).toLowerCase();break;case"announceChannel":s=e?.announceChannel?"public":"private";break;default:s=typeof e[this.selFilterBy]>"u"?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return s.includes(a)}}loadChannelsTable(){this.channels=new c.by([...this.pendingChannels]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(e,a)=>e[a]&&isNaN(e[a])?e[a].toLocaleLowerCase():e[a]?+e[a]:null,this.channels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"PendingChannels")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(E.yh),t.Y36(M.v),t.Y36(z.i1))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-channel-pending-table"]],viewQuery:function(e,a){if(1&e&&(t.Gf(v.YE,5),t.Gf(w.NW,5)),2&e){let s;t.iGM(s=t.CRH())&&(a.sort=s.first),t.iGM(s=t.CRH())&&(a.paginator=s.first)}},features:[t._Bn([{provide:A.PG,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.ye,useValue:(0,l.pt)("Channels")}])],decls:51,vars:18,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.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["table",""],["matColumnDef","announceChannel"],["mat-header-cell","","mat-sort-header","","matTooltip","Private",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","channelId"],["matColumnDef","alias"],["matColumnDef","nodeId"],["matColumnDef","isInitiator"],["matColumnDef","toLocal"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","toRemote"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","matTooltip","Private"],["mat-cell",""],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,a){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"div",2),t.TgZ(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),t._uU(6,"Filter By"),t.qZA(),t.TgZ(7,"mat-select",5),t.NdJ("ngModelChange",function(r){return a.selFilterBy=r})("selectionChange",function(){return a.selFilter="",a.applyFilter()}),t.TgZ(8,"perfect-scrollbar"),t.YNc(9,Xl,2,2,"mat-option",6),t.qZA()()(),t.TgZ(10,"mat-form-field",4)(11,"mat-label"),t._uU(12,"Filter"),t.qZA(),t.TgZ(13,"input",7),t.NdJ("ngModelChange",function(r){return a.selFilter=r})("input",function(){return a.applyFilter()})("keyup",function(){return a.applyFilter()}),t.qZA()()()(),t.TgZ(14,"div",8),t.YNc(15,$l,1,0,"mat-progress-bar",9),t.TgZ(16,"table",10,11),t.ynx(18,12),t.YNc(19,jl,1,0,"th",13),t.YNc(20,nr,3,2,"td",14),t.BQk(),t.ynx(21,15),t.YNc(22,ir,2,0,"th",16),t.YNc(23,ar,3,3,"td",14),t.BQk(),t.ynx(24,17),t.YNc(25,or,2,0,"th",16),t.YNc(26,sr,4,4,"td",14),t.BQk(),t.ynx(27,18),t.YNc(28,lr,2,0,"th",16),t.YNc(29,rr,2,1,"td",14),t.BQk(),t.ynx(30,19),t.YNc(31,cr,2,0,"th",16),t.YNc(32,ur,4,4,"td",14),t.BQk(),t.ynx(33,20),t.YNc(34,pr,2,0,"th",16),t.YNc(35,mr,2,1,"td",14),t.BQk(),t.ynx(36,21),t.YNc(37,dr,2,0,"th",22),t.YNc(38,hr,4,4,"td",14),t.BQk(),t.ynx(39,23),t.YNc(40,_r,2,0,"th",22),t.YNc(41,gr,4,4,"td",14),t.BQk(),t.ynx(42,24),t.YNc(43,fr,6,0,"th",25),t.YNc(44,Cr,3,0,"td",26),t.BQk(),t.ynx(45,27),t.YNc(46,Lr,4,3,"td",28),t.BQk(),t.YNc(47,vr,1,3,"tr",29),t.YNc(48,Zr,1,0,"tr",30),t.YNc(49,Sr,1,0,"tr",31),t.qZA()(),t._UZ(50,"mat-paginator",32),t.qZA()),2&e&&(t.xp6(7),t.Q6J("ngModel",a.selFilterBy),t.xp6(2),t.Q6J("ngForOf",t.DdM(14,Ar).concat(a.displayedColumns.slice(0,-1))),t.xp6(4),t.Q6J("ngModel",a.selFilter),t.xp6(2),t.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.channels)("ngClass",t.VKq(15,Er,""!==a.errorMessage)),t.xp6(31),t.Q6J("matFooterRowDef",t.DdM(17,wr)),t.xp6(1),t.Q6J("matHeaderRowDef",a.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",a.displayedColumns),t.xp6(1),t.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[u.mk,u.sg,u.O5,u.PC,d.Fj,d.JJ,d.On,I.BN,h.xw,h.Wh,h.yH,Z.oO,Z.Zl,F.lW,Q.Nt,C.KE,C.hX,H.pW,A.gD,A.$L,V.ey,v.YE,v.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.mD,c.Ke,c.ge,c.ev,c.yh,c.XQ,c.Gk,c.Q2,W.gM,w.NW,P.Vv,P.$V,u.JJ,u.rS],styles:[".mat-column-announceChannel[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}"]}),o})();function Fr(i,o){if(1&i&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&i){const n=o.$implicit,e=t.oxw();t.Q6J("value",n),t.xp6(1),t.Oqu(e.getLabel(n))}}function qr(i,o){1&i&&t._UZ(0,"mat-progress-bar",36)}function Nr(i,o){1&i&&t._UZ(0,"th",37)}const Mt=function(i){return{"mr-0":i}};function Or(i,o){if(1&i&&t._UZ(0,"span",41),2&i){const n=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Mt,n.screenSize===n.screenSizeEnum.XS))}}function Pr(i,o){if(1&i&&t._UZ(0,"span",42),2&i){const n=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Mt,n.screenSize===n.screenSizeEnum.XS))}}function kr(i,o){if(1&i&&(t.TgZ(0,"td",38),t.YNc(1,Or,1,3,"span",39),t.YNc(2,Pr,1,3,"span",40),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Q6J("ngIf","CONNECTED"===n.state),t.xp6(1),t.Q6J("ngIf","DISCONNECTED"===n.state)}}function Ur(i,o){1&i&&(t.TgZ(0,"th",43),t._uU(1,"Alias"),t.qZA())}const Dt=function(i){return{width:i}};function Rr(i,o){if(1&i&&(t.TgZ(0,"td",38)(1,"div",44)(2,"span",45),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Dt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.alias)}}function Mr(i,o){1&i&&(t.TgZ(0,"th",43),t._uU(1,"Node ID"),t.qZA())}function Dr(i,o){if(1&i&&(t.TgZ(0,"td",38)(1,"div",44)(2,"span",45),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Dt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.nodeId)}}function Jr(i,o){1&i&&(t.TgZ(0,"th",43),t._uU(1,"Network Address"),t.qZA())}function Hr(i,o){if(1&i&&(t.TgZ(0,"td",38),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.hij(" ",null==n?null:n.address," ")}}function Qr(i,o){1&i&&(t.TgZ(0,"th",43),t._uU(1,"Channels"),t.qZA())}function Yr(i,o){if(1&i&&(t.TgZ(0,"td",38),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(null==n?null:n.channels)}}function Br(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"th",46)(1,"div",47)(2,"mat-select",48),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",49),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onDownloadCSV())}),t._uU(5,"Download CSV"),t.qZA()()()()}}function Vr(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"mat-option",49),t.NdJ("click",function(){t.CHM(n);const a=t.oxw().$implicit,s=t.oxw();return t.KtG(s.onPeerDetach(a))}),t._uU(1,"Disconnect"),t.qZA()}}function zr(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"mat-option",49),t.NdJ("click",function(){t.CHM(n);const a=t.oxw().$implicit,s=t.oxw();return t.KtG(s.onConnectPeer(a))}),t._uU(1,"Reconnect"),t.qZA()}}function Gr(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"td",50)(1,"div",47)(2,"mat-select",48),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",49),t.NdJ("click",function(a){const r=t.CHM(n).$implicit,p=t.oxw();return t.KtG(p.onPeerClick(r,a))}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",49),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw();return t.KtG(r.onOpenChannel(s))}),t._uU(7,"Open Channel"),t.qZA(),t.YNc(8,Vr,2,0,"mat-option",51),t.YNc(9,zr,2,0,"mat-option",51),t.qZA()()()}if(2&i){const n=o.$implicit;t.xp6(8),t.Q6J("ngIf","CONNECTED"===n.state),t.xp6(1),t.Q6J("ngIf","DISCONNECTED"===n.state)}}function Wr(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"No connected peer."),t.qZA())}function Kr(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"Getting peers..."),t.qZA())}function Xr(i,o){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Oqu(n.errorMessage)}}function $r(i,o){if(1&i&&(t.TgZ(0,"td",52),t.YNc(1,Wr,2,0,"p",53),t.YNc(2,Kr,2,0,"p",53),t.YNc(3,Xr,2,1,"p",53),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=n.peers&&n.peers.data)||(null==n.peers||null==n.peers.data?null:n.peers.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.peers&&n.peers.data)||(null==n.peers||null==n.peers.data?null:n.peers.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.peers&&n.peers.data)||(null==n.peers||null==n.peers.data?null:n.peers.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}const jr=function(i){return{"display-none":i}};function t1(i,o){if(1&i&&t._UZ(0,"tr",54),2&i){const n=t.oxw();t.Q6J("ngClass",t.VKq(1,jr,(null==n.peers?null:n.peers.data)&&(null==n.peers||null==n.peers.data?null:n.peers.data.length)>0))}}function e1(i,o){1&i&&t._UZ(0,"tr",55)}function n1(i,o){1&i&&t._UZ(0,"tr",56)}const i1=function(){return["all"]},a1=function(i){return{"error-border":i}},o1=function(){return["no_peer"]};let s1=(()=>{var i;class o{constructor(e,a,s,r,p,x){this.logger=e,this.store=a,this.rtlEffects=s,this.actions=r,this.commonService=p,this.camelCaseWithSpaces=x,this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"peers",recordsPerPage:l.IV,sortBy:"alias",sortOrder:l.Pi.DESCENDING},this.faUsers=L.FVb,this.newlyAddedPeer="",this.displayedColumns=[],this.peerAddress="",this.peersData=[],this.peers=new c.by([]),this.information={},this.availableBalance=0,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,new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(f.yD).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.information=e}),this.store.select(f.nF).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=e.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||l.c3.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("state"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(f.Bo).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.peersData=e.peers,this.loadPeersTable(this.peersData),this.logger.info(e)}),this.store.select(f.kY).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.availableBalance=e.onchainBalance.total||0}),this.actions.pipe((0,_.R)(this.unSubs[4]),(0,Y.h)(e=>e.type===l.lr.SET_PEERS_ECL)).subscribe(e=>{this.peerAddress=null})}ngAfterViewInit(){this.peersData.length>0&&this.loadPeersTable(this.peersData)}onPeerClick(e,a){const s=[[{key:"nodeId",value:e.nodeId,title:"Public Key",width:100}],[{key:"address",value:e.address,title:"Address",width:50},{key:"alias",value:e.alias,title:"Alias",width:50}],[{key:"state",value:this.commonService.titleCase(e.state||""),title:"State",width:50},{key:"channels",value:e.channels,title:"Channels",width:50}]];this.store.dispatch((0,S.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Peer Information",goToFieldValue:e.nodeId,goToName:"Graph lookup",goToLink:"/ecl/graph/lookups",showQRName:"Public Key",showQRField:e.nodeId,message:s}}}))}onConnectPeer(e){this.store.dispatch((0,S.qR)({payload:{data:{message:{peer:e.nodeId?e:null,information:this.information,balance:this.availableBalance},component:Nt}}}))}onOpenChannel(e){this.store.dispatch((0,S.qR)({payload:{data:{alertTitle:"Open Channel",message:{peer:e,information:this.information,balance:this.availableBalance},newlyAdded:!1,component:Ut}}}))}onPeerDetach(e){this.store.dispatch(e&&e.channels&&e.channels>0?(0,S.qR)({payload:{data:{type:l.n_.ERROR,alertTitle:"Disconnect Not Allowed",titleMessage:"Channel active with this peer."}}}):(0,S.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(e.alias?e.alias:e.nodeId),noBtnText:"Cancel",yesBtnText:"Disconnect"}}})),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[5])).subscribe(a=>{a&&this.store.dispatch((0,k.GD)({payload:{nodeId:e.nodeId||""}}))})}applyFilter(){this.peers.filter=this.selFilter.trim().toLowerCase()}getLabel(e){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(s=>s.column===e);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):this.commonService.titleCase(e)}setFilterPredicate(){this.peers.filterPredicate=(e,a)=>{let s="";switch(this.selFilterBy){case"all":s=JSON.stringify(e).toLowerCase();break;case"state":s=e?.state?.toLowerCase()||"";break;default:s=typeof e[this.selFilterBy]>"u"?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return"state"===this.selFilterBy?0===s.indexOf(a):s.includes(a)}}loadPeersTable(e){this.peers=new c.by(e?[...e]:[]),this.peers.sort=this.sort,this.peers.sortingDataAccessor=(a,s)=>a[s]&&isNaN(a[s])?a[s].toLocaleLowerCase():a[s]?+a[s]:null,this.peers.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter()}onDownloadCSV(){this.peers.data&&this.peers.data.length>0&&this.commonService.downloadFile(this.peers.data,"Peers")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(E.yh),t.Y36(it.V),t.Y36(K.eX),t.Y36(M.v),t.Y36(z.i1))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-peers"]],viewQuery:function(e,a){if(1&e&&(t.Gf(v.YE,5),t.Gf(w.NW,5)),2&e){let s;t.iGM(s=t.CRH())&&(a.sort=s.first),t.iGM(s=t.CRH())&&(a.paginator=s.first)}},features:[t._Bn([{provide:A.PG,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.ye,useValue:(0,l.pt)("Peers")}])],decls:50,vars:19,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["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","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["table",""],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","State",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","nodeId"],["matColumnDef","address"],["matColumnDef","channels"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","State"],["mat-cell",""],["class","dot green","matTooltip","Connected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Disconnected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Connected","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Disconnected","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,a){1&e&&(t.TgZ(0,"div",0)(1,"form",1,2)(3,"button",3),t.NdJ("click",function(){return a.onConnectPeer({})}),t._uU(4,"Add Peer"),t.qZA()(),t.TgZ(5,"div",4)(6,"div",5)(7,"div",6),t._UZ(8,"fa-icon",7),t.TgZ(9,"span",8),t._uU(10,"Peers"),t.qZA()(),t.TgZ(11,"div",9)(12,"mat-form-field",10)(13,"mat-label"),t._uU(14,"Filter By"),t.qZA(),t.TgZ(15,"mat-select",11),t.NdJ("ngModelChange",function(r){return a.selFilterBy=r})("selectionChange",function(){return a.selFilter="",a.applyFilter()}),t.TgZ(16,"perfect-scrollbar"),t.YNc(17,Fr,2,2,"mat-option",12),t.qZA()()(),t.TgZ(18,"mat-form-field",10)(19,"mat-label"),t._uU(20,"Filter"),t.qZA(),t.TgZ(21,"input",13),t.NdJ("ngModelChange",function(r){return a.selFilter=r})("input",function(){return a.applyFilter()})("keyup",function(){return a.applyFilter()}),t.qZA()()()(),t.TgZ(22,"div",14),t.YNc(23,qr,1,0,"mat-progress-bar",15),t.TgZ(24,"table",16,17),t.ynx(26,18),t.YNc(27,Nr,1,0,"th",19),t.YNc(28,kr,3,2,"td",20),t.BQk(),t.ynx(29,21),t.YNc(30,Ur,2,0,"th",22),t.YNc(31,Rr,4,4,"td",20),t.BQk(),t.ynx(32,23),t.YNc(33,Mr,2,0,"th",22),t.YNc(34,Dr,4,4,"td",20),t.BQk(),t.ynx(35,24),t.YNc(36,Jr,2,0,"th",22),t.YNc(37,Hr,2,1,"td",20),t.BQk(),t.ynx(38,25),t.YNc(39,Qr,2,0,"th",22),t.YNc(40,Yr,2,1,"td",20),t.BQk(),t.ynx(41,26),t.YNc(42,Br,6,0,"th",27),t.YNc(43,Gr,10,2,"td",28),t.BQk(),t.ynx(44,29),t.YNc(45,$r,4,3,"td",30),t.BQk(),t.YNc(46,t1,1,3,"tr",31),t.YNc(47,e1,1,0,"tr",32),t.YNc(48,n1,1,0,"tr",33),t.qZA()(),t._UZ(49,"mat-paginator",34),t.qZA()()),2&e&&(t.xp6(8),t.Q6J("icon",a.faUsers),t.xp6(7),t.Q6J("ngModel",a.selFilterBy),t.xp6(2),t.Q6J("ngForOf",t.DdM(15,i1).concat(a.displayedColumns.slice(0,-1))),t.xp6(4),t.Q6J("ngModel",a.selFilter),t.xp6(2),t.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.peers)("ngClass",t.VKq(16,a1,""!==a.errorMessage)),t.xp6(22),t.Q6J("matFooterRowDef",t.DdM(18,o1)),t.xp6(1),t.Q6J("matHeaderRowDef",a.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",a.displayedColumns),t.xp6(1),t.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[u.mk,u.sg,u.O5,u.PC,d._Y,d.Fj,d.JJ,d.JL,d.On,d.F,I.BN,h.xw,h.Wh,h.yH,Z.oO,Z.Zl,F.lW,Q.Nt,C.KE,C.hX,H.pW,A.gD,A.$L,V.ey,v.YE,v.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.mD,c.Ke,c.ge,c.ev,c.yh,c.XQ,c.Gk,c.Q2,W.gM,w.NW,P.Vv,P.$V],styles:[".mat-column-state[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}"]}),o})();const l1=["queryRoutesForm"];function r1(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Destination Node ID is required."),t.qZA())}function c1(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function u1(i,o){1&i&&t._UZ(0,"mat-progress-bar",22)}function p1(i,o){1&i&&(t.TgZ(0,"th",40),t._uU(1," Alias"),t.qZA())}const Jt=function(i){return{"max-width":i}};function m1(i,o){if(1&i&&(t.TgZ(0,"td",41)(1,"span",42)(2,"span",43),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Jt,e.screenSize===e.screenSizeEnum.XS?"6rem":"30rem")),t.xp6(2),t.Oqu(null==n?null:n.alias)}}function d1(i,o){1&i&&(t.TgZ(0,"th",40),t._uU(1," ID"),t.qZA())}function h1(i,o){if(1&i&&(t.TgZ(0,"td",41)(1,"span",42)(2,"span",43),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Jt,e.screenSize===e.screenSizeEnum.XS?"6rem":"30rem")),t.xp6(2),t.Oqu(null==n?null:n.nodeId)}}function _1(i,o){1&i&&(t.TgZ(0,"th",40)(1,"div",44),t._uU(2,"Actions"),t.qZA()())}function g1(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"td",45)(1,"button",46),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw(2);return t.KtG(r.onHopClick(s))}),t._uU(2,"View Info"),t.qZA()()}}function f1(i,o){1&i&&t._UZ(0,"tr",47)}function C1(i,o){1&i&&t._UZ(0,"tr",48)}const x1=function(i){return{"overflow-auto error-border":i,"overflow-auto":!0}};function y1(i,o){if(1&i&&(t.TgZ(0,"div",23)(1,"mat-expansion-panel",24)(2,"mat-expansion-panel-header")(3,"mat-panel-title",25)(4,"span",26),t._uU(5),t.qZA(),t.TgZ(6,"span",27),t._uU(7),t.ALo(8,"number"),t.qZA()()(),t.TgZ(9,"mat-panel-description",28)(10,"div",29)(11,"table",30,31),t.ynx(13,32),t.YNc(14,p1,2,0,"th",33),t.YNc(15,m1,4,4,"td",34),t.BQk(),t.ynx(16,35),t.YNc(17,d1,2,0,"th",33),t.YNc(18,h1,4,4,"td",34),t.BQk(),t.ynx(19,36),t.YNc(20,_1,3,0,"th",33),t.YNc(21,g1,3,0,"td",37),t.BQk(),t.YNc(22,f1,1,0,"tr",38),t.YNc(23,C1,1,0,"tr",39),t.qZA()()()()()),2&i){const n=o.$implicit,e=o.index,a=t.oxw();t.xp6(5),t.hij("Route ",e+1,""),t.xp6(2),t.Oqu(t.lcZ(8,6,n.amount/1e3)),t.xp6(4),t.Q6J("dataSource",a.qrHops[e])("ngClass",t.VKq(8,x1,"error"===a.flgLoading[0])),t.xp6(11),t.Q6J("matHeaderRowDef",a.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",a.displayedColumns)}}let b1=(()=>{var i;class o{constructor(e,a,s){this.store=e,this.eclEffects=a,this.commonService=s,this.allQRoutes=[],this.nodeId="",this.amount=0,this.qrHops=[],this.displayedColumns=["alias","nodeId","actions"],this.flgLoading=[!1],this.faRoute=L.FpQ,this.faExclamationTriangle=L.eHv,this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new m.x,new m.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.qrHops[0]=new c.by([]),this.qrHops[0].data=[],this.eclEffects.setQueryRoutes.pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{e&&e.routes&&e.routes.length?(this.flgLoading[0]=!1,this.allQRoutes=e.routes,this.allQRoutes.forEach((a,s)=>{this.qrHops[s]=new c.by([...a.nodeIds])})):(this.flgLoading[0]="error",this.allQRoutes=[],this.qrHops=[])})}onQueryRoutes(){if(!this.nodeId||!this.amount)return!0;this.qrHops=[],this.flgLoading[0]=!0,this.store.dispatch((0,k.WO)({payload:{nodeId:this.nodeId,amount:1e3*this.amount}}))}resetData(){this.allQRoutes=[],this.nodeId="",this.amount=0,this.flgLoading[0]=!1,this.qrHops=[],this.form.resetForm()}onHopClick(e){this.store.dispatch((0,S.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Route Information",message:[[{key:"alias",value:e.alias,title:"Alias",width:100,type:l.Gi.STRING}],[{key:"nodeId",value:e.nodeId,title:"Node ID",width:100,type:l.Gi.STRING}]]}}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(E.yh),t.Y36(ut.o),t.Y36(M.v))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-query-routes"]],viewQuery:function(e,a){if(1&e&&t.Gf(l1,7),2&e){let s;t.iGM(s=t.CRH())&&(a.form=s.first)}},decls:32,vars:10,consts:[["fxLayout","column"],["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"],["fxLayout","column","fxFlex","69","fxLayoutAlign","start end"],["matInput","","name","nodeId","tabindex","1","required","",3,"ngModel","ngModelChange"],["destPubkey","ngModel"],[4,"ngIf"],["fxLayout","column","fxFlex","29","fxLayoutAlign","start end"],["matInput","","name","amount","tabindex","2","type","number","required","",3,"step","min","ngModel","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"],["mode","indeterminate",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxLayout","column","fxFlex","100"],["fxFlex","100",4,"ngFor","ngForOf"],["mode","indeterminate"],["fxFlex","100"],[1,"flat-expansion-panel","help-expansion","mb-2px"],["fxLayout","row","fxLayoutAlign","space-between start"],["fxFlex","50","fxLayoutAlign","start start"],["fxFlex","50","fxLayoutAlign","end end"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch",1,"table-container","mb-2",3,"perfectScrollbar"],["mat-table","",3,"dataSource","ngClass"],["table[i]",""],["matColumnDef","alias"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","nodeId"],["matColumnDef","actions"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["fxLayout.gt-xs","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(e,a){if(1&e){const s=t.EpF();t.TgZ(0,"div",0)(1,"form",1,2),t.NdJ("ngSubmit",function(){t.CHM(s);const p=t.MAs(2);return t.KtG(p.form.valid&&a.onQueryRoutes())}),t.TgZ(3,"div",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span"),t._uU(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),t.qZA()(),t.TgZ(7,"mat-form-field",5)(8,"mat-label"),t._uU(9,"Destination Node ID"),t.qZA(),t.TgZ(10,"input",6,7),t.NdJ("ngModelChange",function(p){return a.nodeId=p}),t.qZA(),t.YNc(12,r1,2,0,"mat-error",8),t.qZA(),t.TgZ(13,"mat-form-field",9)(14,"mat-label"),t._uU(15,"Amount (Sats)"),t.qZA(),t.TgZ(16,"input",10),t.NdJ("ngModelChange",function(p){return a.amount=p}),t.qZA(),t.YNc(17,c1,2,0,"mat-error",8),t.qZA(),t.TgZ(18,"div",11)(19,"button",12),t.NdJ("click",function(){return a.resetData()}),t._uU(20,"Clear"),t.qZA(),t.TgZ(21,"button",13),t._uU(22,"Query Route"),t.qZA()()(),t.TgZ(23,"div",14)(24,"div",15),t._UZ(25,"fa-icon",16),t.TgZ(26,"span",17),t._uU(27,"Transaction Route"),t.qZA()()(),t.YNc(28,u1,1,0,"mat-progress-bar",18),t.TgZ(29,"div",19)(30,"div",20),t.YNc(31,y1,24,10,"div",21),t.qZA()()()}2&e&&(t.xp6(4),t.Q6J("icon",a.faExclamationTriangle),t.xp6(6),t.Q6J("ngModel",a.nodeId),t.xp6(2),t.Q6J("ngIf",!a.nodeId),t.xp6(4),t.Q6J("step",1e3)("min",0)("ngModel",a.amount),t.xp6(1),t.Q6J("ngIf",!a.amount),t.xp6(8),t.Q6J("icon",a.faRoute),t.xp6(3),t.Q6J("ngIf",!0===a.flgLoading[0]),t.xp6(3),t.Q6J("ngForOf",a.allQRoutes))},dependencies:[u.mk,u.sg,u.O5,u.PC,d._Y,d.Fj,d.wV,d.JJ,d.JL,d.Q7,d.qQ,d.On,d.F,I.BN,h.xw,h.Wh,h.yH,Z.oO,Z.Zl,F.lW,B.ib,B.yz,B.yK,B.u4,Q.Nt,C.KE,C.hX,C.TO,H.pW,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,P.$V,j.q,u.JJ]}),o})();function L1(i,o){if(1&i&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&i){const n=o.$implicit,e=t.oxw();t.Q6J("value",n),t.xp6(1),t.Oqu(e.getLabel(n))}}function T1(i,o){1&i&&t._UZ(0,"mat-progress-bar",36)}function v1(i,o){1&i&&t._UZ(0,"th",37)}function Z1(i,o){if(1&i&&(t.TgZ(0,"span",41),t._UZ(1,"fa-icon",42),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Q6J("icon",n.faEyeSlash)}}function S1(i,o){if(1&i&&(t.TgZ(0,"span",43),t._UZ(1,"fa-icon",42),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Q6J("icon",n.faEye)}}function A1(i,o){if(1&i&&(t.TgZ(0,"td",38),t.YNc(1,Z1,2,1,"span",39),t.YNc(2,S1,2,1,"span",40),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Q6J("ngIf",!n.announceChannel),t.xp6(1),t.Q6J("ngIf",n.announceChannel)}}function E1(i,o){1&i&&(t.TgZ(0,"th",44),t._uU(1,"State"),t.qZA())}function w1(i,o){if(1&i&&(t.TgZ(0,"td",38),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,null==n?null:n.state))}}function I1(i,o){1&i&&(t.TgZ(0,"th",44),t._uU(1,"Short Channel ID"),t.qZA())}function F1(i,o){if(1&i&&(t.TgZ(0,"td",38),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(null==n?null:n.shortChannelId)}}function q1(i,o){1&i&&(t.TgZ(0,"th",44),t._uU(1,"Channel ID"),t.qZA())}const bt=function(i){return{width:i}};function N1(i,o){if(1&i&&(t.TgZ(0,"td",38)(1,"div",45)(2,"span",46),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,bt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.channelId)}}function O1(i,o){1&i&&(t.TgZ(0,"th",44),t._uU(1,"Alias"),t.qZA())}function P1(i,o){if(1&i&&(t.TgZ(0,"td",38)(1,"div",45)(2,"span",46),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,bt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(n.alias)}}function k1(i,o){1&i&&(t.TgZ(0,"th",44),t._uU(1,"Node ID"),t.qZA())}function U1(i,o){if(1&i&&(t.TgZ(0,"td",38)(1,"div",45)(2,"span",46),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,bt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.nodeId)}}function R1(i,o){1&i&&(t.TgZ(0,"th",44),t._uU(1,"Initiator"),t.qZA())}function M1(i,o){if(1&i&&(t.TgZ(0,"td",38),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(null!=n&&n.isInitiator?"Yes":"No")}}function D1(i,o){1&i&&(t.TgZ(0,"th",47),t._uU(1,"Local Balance (Sats)"),t.qZA())}function J1(i,o){if(1&i&&(t.TgZ(0,"td",38)(1,"span",48),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==n?null:n.toLocal,"1.0-0")," ")}}function H1(i,o){1&i&&(t.TgZ(0,"th",47),t._uU(1,"Remote Balance (Sats)"),t.qZA())}function Q1(i,o){if(1&i&&(t.TgZ(0,"td",38)(1,"span",48),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==n?null:n.toRemote,"1.0-0")," ")}}function Y1(i,o){1&i&&(t.TgZ(0,"th",44),t._uU(1,"Balance Score"),t.qZA())}function B1(i,o){if(1&i&&(t.TgZ(0,"td",38)(1,"div",49)(2,"mat-hint",50),t._uU(3),t.ALo(4,"number"),t.qZA()(),t._UZ(5,"mat-progress-bar",51),t.qZA()),2&i){const n=o.$implicit;t.xp6(3),t.Oqu(t.lcZ(4,2,(null==n?null:n.balancedness)||0)),t.xp6(2),t.s9C("value",n.toLocal&&n.toLocal>0?+n.toLocal/(+n.toLocal+ +n.toRemote)*100:0)}}function V1(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"th",52)(1,"div",53)(2,"mat-select",54),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",55),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onDownloadCSV())}),t._uU(5,"Download CSV"),t.qZA()()()()}}function z1(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"td",56)(1,"div",53)(2,"mat-select",57),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",55),t.NdJ("click",function(a){const r=t.CHM(n).$implicit,p=t.oxw();return t.KtG(p.onChannelClick(r,a))}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",55),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw();return t.KtG(r.onChannelClose(s,!0))}),t._uU(7,"Force Close"),t.qZA()()()()}}function G1(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"No inactive channel available."),t.qZA())}function W1(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"Getting inactive channels..."),t.qZA())}function K1(i,o){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Oqu(n.errorMessage)}}function X1(i,o){if(1&i&&(t.TgZ(0,"td",58),t.YNc(1,G1,2,0,"p",59),t.YNc(2,W1,2,0,"p",59),t.YNc(3,K1,2,1,"p",59),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}const $1=function(i){return{"display-none":i}};function j1(i,o){if(1&i&&t._UZ(0,"tr",60),2&i){const n=t.oxw();t.Q6J("ngClass",t.VKq(1,$1,(null==n.channels?null:n.channels.data)&&(null==n.channels||null==n.channels.data?null:n.channels.data.length)>0))}}function tc(i,o){1&i&&t._UZ(0,"tr",61)}function ec(i,o){1&i&&t._UZ(0,"tr",62)}const nc=function(){return["all"]},ic=function(i){return{"error-border":i}},ac=function(){return["no_channel"]};let oc=(()=>{var i;class o{constructor(e,a,s,r,p){this.logger=e,this.store=a,this.rtlEffects=s,this.commonService=r,this.camelCaseWithSpaces=p,this.faEye=L.Mdf,this.faEyeSlash=L.Aq,this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"inactive_channels",recordsPerPage:l.IV,sortBy:"alias",sortOrder:l.Pi.DESCENDING},this.totalBalance=0,this.displayedColumns=[],this.channels=new c.by([]),this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=l.vn,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],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(f.nF).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=e.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||l.c3.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("announceChannel"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(f.Xz).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.inactiveChannels=e.inactiveChannels,this.loadChannelsTable(),this.logger.info(e)}),this.store.select(f.yD).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.information=e}),this.store.select(f.Bo).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.numPeers=e.peers&&e.peers.length?e.peers.length:0}),this.store.select(f.kY).pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{this.totalBalance=e.onchainBalance.total||0})}ngAfterViewInit(){this.inactiveChannels.length>0&&this.loadChannelsTable()}onChannelClose(e,a){this.store.dispatch((0,S.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:a?"Force Close Channel":"Close Channel",titleMessage:a?"Force closing channel: "+(e.alias||e.shortChannelId?e.alias&&e.shortChannelId?e.alias+" ("+e.shortChannelId+")":e.alias?e.alias:e.shortChannelId:e.channelId):"Closing channel: "+(e.alias||e.shortChannelId?e.alias&&e.shortChannelId?e.alias+" ("+e.shortChannelId+")":e.alias?e.alias:e.shortChannelId:e.channelId),noBtnText:"Cancel",yesBtnText:a?"Force Close":"Close Channel"}}})),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[5])).subscribe(x=>{x&&this.store.dispatch((0,k.BL)({payload:{channelId:e.channelId||"",force:a}}))})}onChannelClick(e,a){this.store.dispatch((0,S.qR)({payload:{data:{channel:e,channelsType:"inactive",component:ft}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLocaleLowerCase()}getLabel(e){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(s=>s.column===e);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):"announceChannel"===e?"Private":this.commonService.titleCase(e)}setFilterPredicate(){this.channels.filterPredicate=(e,a)=>{let s="";switch(this.selFilterBy){case"all":s=JSON.stringify(e).toLowerCase();break;case"announceChannel":s=e?.announceChannel?"public":"private";break;default:s=typeof e[this.selFilterBy]>"u"?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return s.includes(a)}}loadChannelsTable(){this.channels=new c.by([...this.inactiveChannels]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(e,a)=>e[a]&&isNaN(e[a])?e[a].toLocaleLowerCase():e[a]?+e[a]:null,this.channels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"InactiveChannels")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(E.yh),t.Y36(it.V),t.Y36(M.v),t.Y36(z.i1))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-channel-inactive-table"]],viewQuery:function(e,a){if(1&e&&(t.Gf(v.YE,5),t.Gf(w.NW,5)),2&e){let s;t.iGM(s=t.CRH())&&(a.sort=s.first),t.iGM(s=t.CRH())&&(a.paginator=s.first)}},features:[t._Bn([{provide:A.PG,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.ye,useValue:(0,l.pt)("Channels")}])],decls:57,vars:18,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.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["table",""],["matColumnDef","announceChannel"],["mat-header-cell","","mat-sort-header","","matTooltip","Private",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","shortChannelId"],["matColumnDef","channelId"],["matColumnDef","alias"],["matColumnDef","nodeId"],["matColumnDef","isInitiator"],["matColumnDef","toLocal"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","toRemote"],["matColumnDef","balancedness"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","matTooltip","Private"],["mat-cell",""],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,a){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"div",2),t.TgZ(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),t._uU(6,"Filter By"),t.qZA(),t.TgZ(7,"mat-select",5),t.NdJ("ngModelChange",function(r){return a.selFilterBy=r})("selectionChange",function(){return a.selFilter="",a.applyFilter()}),t.TgZ(8,"perfect-scrollbar"),t.YNc(9,L1,2,2,"mat-option",6),t.qZA()()(),t.TgZ(10,"mat-form-field",4)(11,"mat-label"),t._uU(12,"Filter"),t.qZA(),t.TgZ(13,"input",7),t.NdJ("ngModelChange",function(r){return a.selFilter=r})("input",function(){return a.applyFilter()})("keyup",function(){return a.applyFilter()}),t.qZA()()()(),t.TgZ(14,"div",8),t.YNc(15,T1,1,0,"mat-progress-bar",9),t.TgZ(16,"table",10,11),t.ynx(18,12),t.YNc(19,v1,1,0,"th",13),t.YNc(20,A1,3,2,"td",14),t.BQk(),t.ynx(21,15),t.YNc(22,E1,2,0,"th",16),t.YNc(23,w1,3,3,"td",14),t.BQk(),t.ynx(24,17),t.YNc(25,I1,2,0,"th",16),t.YNc(26,F1,2,1,"td",14),t.BQk(),t.ynx(27,18),t.YNc(28,q1,2,0,"th",16),t.YNc(29,N1,4,4,"td",14),t.BQk(),t.ynx(30,19),t.YNc(31,O1,2,0,"th",16),t.YNc(32,P1,4,4,"td",14),t.BQk(),t.ynx(33,20),t.YNc(34,k1,2,0,"th",16),t.YNc(35,U1,4,4,"td",14),t.BQk(),t.ynx(36,21),t.YNc(37,R1,2,0,"th",16),t.YNc(38,M1,2,1,"td",14),t.BQk(),t.ynx(39,22),t.YNc(40,D1,2,0,"th",23),t.YNc(41,J1,4,4,"td",14),t.BQk(),t.ynx(42,24),t.YNc(43,H1,2,0,"th",23),t.YNc(44,Q1,4,4,"td",14),t.BQk(),t.ynx(45,25),t.YNc(46,Y1,2,0,"th",16),t.YNc(47,B1,6,4,"td",14),t.BQk(),t.ynx(48,26),t.YNc(49,V1,6,0,"th",27),t.YNc(50,z1,8,0,"td",28),t.BQk(),t.ynx(51,29),t.YNc(52,X1,4,3,"td",30),t.BQk(),t.YNc(53,j1,1,3,"tr",31),t.YNc(54,tc,1,0,"tr",32),t.YNc(55,ec,1,0,"tr",33),t.qZA()(),t._UZ(56,"mat-paginator",34),t.qZA()),2&e&&(t.xp6(7),t.Q6J("ngModel",a.selFilterBy),t.xp6(2),t.Q6J("ngForOf",t.DdM(14,nc).concat(a.displayedColumns.slice(0,-1))),t.xp6(4),t.Q6J("ngModel",a.selFilter),t.xp6(2),t.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.channels)("ngClass",t.VKq(15,ic,""!==a.errorMessage)),t.xp6(37),t.Q6J("matFooterRowDef",t.DdM(17,ac)),t.xp6(1),t.Q6J("matHeaderRowDef",a.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",a.displayedColumns),t.xp6(1),t.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[u.mk,u.sg,u.O5,u.PC,d.Fj,d.JJ,d.On,I.BN,h.xw,h.Wh,h.yH,Z.oO,Z.Zl,Q.Nt,C.KE,C.hX,C.bx,H.pW,A.gD,A.$L,V.ey,v.YE,v.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.mD,c.Ke,c.ge,c.ev,c.yh,c.XQ,c.Gk,c.Q2,W.gM,w.NW,P.Vv,P.$V,u.JJ,u.rS],styles:[".mat-column-announceChannel[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:3rem;min-width:15rem;max-width:30rem}"]}),o})();function sc(i,o){if(1&i&&(t.TgZ(0,"div",5),t._uU(1),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Oqu(n.errorMessage)}}function lc(i,o){if(1&i&&(t.TgZ(0,"mat-option",13),t._uU(1),t.qZA()),2&i){const n=o.$implicit,e=t.oxw(2);t.Q6J("value",n),t.xp6(1),t.Oqu(e.getLabel(n))}}const rc=function(){return["all"]};function cc(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",6),t._UZ(1,"div",7),t.TgZ(2,"div",8)(3,"mat-form-field",9)(4,"mat-label"),t._uU(5,"Filter By"),t.qZA(),t.TgZ(6,"mat-select",10),t.NdJ("ngModelChange",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.selFilterBy=a)})("selectionChange",function(){t.CHM(n);const a=t.oxw();return a.selFilter="",t.KtG(a.applyFilter())}),t.TgZ(7,"perfect-scrollbar"),t.YNc(8,lc,2,2,"mat-option",11),t.qZA()()(),t.TgZ(9,"mat-form-field",9)(10,"mat-label"),t._uU(11,"Filter"),t.qZA(),t.TgZ(12,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.selFilter=a)})("input",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.applyFilter())})("keyup",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.applyFilter())}),t.qZA()()()()}if(2&i){const n=t.oxw();t.xp6(6),t.Q6J("ngModel",n.selFilterBy),t.xp6(2),t.Q6J("ngForOf",t.DdM(3,rc).concat(n.displayedColumns.slice(0,-1))),t.xp6(4),t.Q6J("ngModel",n.selFilter)}}function uc(i,o){1&i&&t._UZ(0,"mat-progress-bar",42)}function pc(i,o){1&i&&t._UZ(0,"th",43)}const mc=function(i){return{"ml-0":i}};function dc(i,o){if(1&i&&(t._UZ(0,"span",46),t.ALo(1,"camelcase")),2&i){const n=t.oxw().$implicit,e=t.oxw(2);t.s9C("matTooltip",t.lcZ(1,2,null==n?null:n.type)),t.Q6J("ngClass",t.VKq(4,mc,e.screenSize===e.screenSizeEnum.XS))}}function hc(i,o){if(1&i&&(t.TgZ(0,"td",44),t.YNc(1,dc,2,6,"span",45),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Q6J("ngIf","payment-relayed"!==(null==n?null:n.type))}}function _c(i,o){1&i&&(t.TgZ(0,"th",47),t._uU(1,"Date/Time"),t.qZA())}function gc(i,o){if(1&i&&(t.TgZ(0,"td",44),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,null==n?null:n.timestamp,"dd/MMM/y HH:mm")," ")}}function fc(i,o){1&i&&(t.TgZ(0,"th",47),t._uU(1,"In Channel ID"),t.qZA())}const nt=function(i){return{width:i}};function Cc(i,o){if(1&i&&(t.TgZ(0,"td",44)(1,"div",48)(2,"span",49),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,nt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.fromChannelId)}}function xc(i,o){1&i&&(t.TgZ(0,"th",47),t._uU(1,"In Channel Short ID"),t.qZA())}function yc(i,o){if(1&i&&(t.TgZ(0,"td",44),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(null==n?null:n.fromShortChannelId)}}function bc(i,o){1&i&&(t.TgZ(0,"th",47),t._uU(1,"In Channel"),t.qZA())}function Lc(i,o){if(1&i&&(t.TgZ(0,"td",44)(1,"div",48)(2,"span",49),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,nt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.fromChannelAlias)}}function Tc(i,o){1&i&&(t.TgZ(0,"th",47),t._uU(1,"Out Channel ID"),t.qZA())}function vc(i,o){if(1&i&&(t.TgZ(0,"td",44)(1,"div",48)(2,"span",49),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,nt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.toChannelId)}}function Zc(i,o){1&i&&(t.TgZ(0,"th",47),t._uU(1,"Out Channel Short ID"),t.qZA())}function Sc(i,o){if(1&i&&(t.TgZ(0,"td",44),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(null==n?null:n.toShortChannelId)}}function Ac(i,o){1&i&&(t.TgZ(0,"th",47),t._uU(1,"Out Channel"),t.qZA())}function Ec(i,o){if(1&i&&(t.TgZ(0,"td",44)(1,"div",48)(2,"span",49),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,nt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.toChannelAlias)}}function wc(i,o){1&i&&(t.TgZ(0,"th",47),t._uU(1,"Payment Hash"),t.qZA())}function Ic(i,o){if(1&i&&(t.TgZ(0,"td",44)(1,"div",48)(2,"span",49),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,nt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.paymentHash)}}function Fc(i,o){1&i&&(t.TgZ(0,"th",50),t._uU(1,"Amount In (Sats)"),t.qZA())}function qc(i,o){if(1&i&&(t.TgZ(0,"td",44)(1,"span",51),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==n?null:n.amountIn))}}function Nc(i,o){1&i&&(t.TgZ(0,"th",50),t._uU(1,"Amount Out (Sats)"),t.qZA())}function Oc(i,o){if(1&i&&(t.TgZ(0,"td",44)(1,"span",51),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==n?null:n.amountOut))}}function Pc(i,o){1&i&&(t.TgZ(0,"th",50),t._uU(1,"Fee Earned (Sats)"),t.qZA())}function kc(i,o){if(1&i&&(t.TgZ(0,"td",44)(1,"span",51),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,(null==n?null:n.amountIn)-(null==n?null:n.amountOut)))}}function Uc(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"th",52)(1,"div",53)(2,"mat-select",54),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",55),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.onDownloadCSV())}),t._uU(5,"Download CSV"),t.qZA()()()()}}function Rc(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"td",56)(1,"button",57),t.NdJ("click",function(a){const r=t.CHM(n).$implicit,p=t.oxw(2);return t.KtG(p.onForwardingEventClick(r,a))}),t._uU(2,"View Info"),t.qZA()()}}function Mc(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"No forwarding history available."),t.qZA())}function Dc(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"Getting forwarding history..."),t.qZA())}function Jc(i,o){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&i){const n=t.oxw(3);t.xp6(1),t.Oqu(n.errorMessage)}}function Hc(i,o){if(1&i&&(t.TgZ(0,"td",58),t.YNc(1,Mc,2,0,"p",59),t.YNc(2,Dc,2,0,"p",59),t.YNc(3,Jc,2,1,"p",59),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=n.forwardingHistoryEvents&&n.forwardingHistoryEvents.data)||(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.forwardingHistoryEvents&&n.forwardingHistoryEvents.data)||(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.forwardingHistoryEvents&&n.forwardingHistoryEvents.data)||(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}const Qc=function(i){return{"display-none":i}};function Yc(i,o){if(1&i&&t._UZ(0,"tr",60),2&i){const n=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Qc,(null==n.forwardingHistoryEvents?null:n.forwardingHistoryEvents.data)&&(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)>0))}}function Bc(i,o){1&i&&t._UZ(0,"tr",61)}function Vc(i,o){1&i&&t._UZ(0,"tr",62)}const zc=function(){return["no_event"]};function Gc(i,o){if(1&i&&(t.TgZ(0,"div",14),t.YNc(1,uc,1,0,"mat-progress-bar",15),t.TgZ(2,"table",16,17),t.ynx(4,18),t.YNc(5,pc,1,0,"th",19),t.YNc(6,hc,2,1,"td",20),t.BQk(),t.ynx(7,21),t.YNc(8,_c,2,0,"th",22),t.YNc(9,gc,3,4,"td",20),t.BQk(),t.ynx(10,23),t.YNc(11,fc,2,0,"th",22),t.YNc(12,Cc,4,4,"td",20),t.BQk(),t.ynx(13,24),t.YNc(14,xc,2,0,"th",22),t.YNc(15,yc,2,1,"td",20),t.BQk(),t.ynx(16,25),t.YNc(17,bc,2,0,"th",22),t.YNc(18,Lc,4,4,"td",20),t.BQk(),t.ynx(19,26),t.YNc(20,Tc,2,0,"th",22),t.YNc(21,vc,4,4,"td",20),t.BQk(),t.ynx(22,27),t.YNc(23,Zc,2,0,"th",22),t.YNc(24,Sc,2,1,"td",20),t.BQk(),t.ynx(25,28),t.YNc(26,Ac,2,0,"th",22),t.YNc(27,Ec,4,4,"td",20),t.BQk(),t.ynx(28,29),t.YNc(29,wc,2,0,"th",22),t.YNc(30,Ic,4,4,"td",20),t.BQk(),t.ynx(31,30),t.YNc(32,Fc,2,0,"th",31),t.YNc(33,qc,4,3,"td",20),t.BQk(),t.ynx(34,32),t.YNc(35,Nc,2,0,"th",31),t.YNc(36,Oc,4,3,"td",20),t.BQk(),t.ynx(37,33),t.YNc(38,Pc,2,0,"th",31),t.YNc(39,kc,4,3,"td",20),t.BQk(),t.ynx(40,34),t.YNc(41,Uc,6,0,"th",35),t.YNc(42,Rc,3,0,"td",36),t.BQk(),t.ynx(43,37),t.YNc(44,Hc,4,3,"td",38),t.BQk(),t.YNc(45,Yc,1,3,"tr",39),t.YNc(46,Bc,1,0,"tr",40),t.YNc(47,Vc,1,0,"tr",41),t.qZA()()),2&i){const n=t.oxw();t.xp6(1),t.Q6J("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("matSortActive",n.tableSetting.sortBy)("matSortDirection",n.tableSetting.sortOrder)("dataSource",n.forwardingHistoryEvents),t.xp6(43),t.Q6J("matFooterRowDef",t.DdM(7,zc)),t.xp6(1),t.Q6J("matHeaderRowDef",n.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",n.displayedColumns)}}function Wc(i,o){if(1&i&&t._UZ(0,"mat-paginator",63),2&i){const n=t.oxw();t.Q6J("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS)}}let Ht=(()=>{var i;class o{constructor(e,a,s,r,p){this.logger=e,this.commonService=a,this.store=s,this.datePipe=r,this.camelCaseWithSpaces=p,this.pageId="routing",this.tableId="forwarding_history",this.eventsData=[],this.selFilter="",this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.tableSetting={tableId:"forwarding_history",recordsPerPage:l.IV,sortBy:"timestamp",sortOrder:l.Pi.DESCENDING},this.displayedColumns=[],this.forwardingHistoryEvents=new c.by([]),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()}ngOnInit(){this.store.select(f.nF).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting.tableId=this.tableId,this.tableSetting=e.pageSettings.find(a=>a.pageId===this.pageId)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||l.c3.find(a=>a.pageId===this.pageId)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("type"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(f.PP).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.eventsData=e.payments&&e.payments.relayed?e.payments.relayed:[],this.eventsData.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadForwardingEventsTable(this.eventsData),this.logger.info(this.eventsData)})}ngAfterViewInit(){setTimeout(()=>{this.eventsData.length>0&&this.loadForwardingEventsTable(this.eventsData)},0)}ngOnChanges(e){e.eventsData&&(this.apiCallStatus={status:l.Bn.COMPLETED,action:"FetchPayments"},this.eventsData=e.eventsData.currentValue,e.eventsData.firstChange||this.loadForwardingEventsTable(this.eventsData)),e.selFilter&&!e.selFilter.firstChange&&(this.selFilterBy="all",this.applyFilter())}onForwardingEventClick(e,a){const s=[[{key:"paymentHash",value:e.paymentHash,title:"Payment Hash",width:100,type:l.Gi.STRING}],[{key:"timestamp",value:Math.round((e.timestamp||0)/1e3),title:"Date/Time",width:50,type:l.Gi.DATE_TIME},{key:"fee",value:(e.amountIn||0)-(e.amountOut||0),title:"Fee Earned (Sats)",width:50,type:l.Gi.NUMBER}],[{key:"amountIn",value:e.amountIn,title:"Amount In (Sats)",width:50,type:l.Gi.NUMBER},{key:"amountOut",value:e.amountOut,title:"Amount Out (Sats)",width:50,type:l.Gi.NUMBER}],[{key:"fromChannelAlias",value:e.fromChannelAlias,title:"From Channel Alias",width:50,type:l.Gi.STRING},{key:"fromShortChannelId",value:e.fromShortChannelId,title:"From Short Channel ID",width:50,type:l.Gi.STRING}],[{key:"fromChannelId",value:e.fromChannelId,title:"From Channel ID",width:100,type:l.Gi.STRING}],[{key:"toChannelAlias",value:e.toChannelAlias,title:"To Channel Alias",width:50,type:l.Gi.STRING},{key:"toShortChannelId",value:e.toShortChannelId,title:"To Short Channel ID",width:50,type:l.Gi.STRING}],[{key:"toChannelId",value:e.toChannelId,title:"To Channel ID",width:100,type:l.Gi.STRING}]];"payment-relayed"!==e.type&&s?.unshift([{key:"type",value:this.commonService.camelCase(e.type),title:"Relay Type",width:100,type:l.Gi.STRING}]),this.store.dispatch((0,S.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Event Information",message:s}}}))}applyFilter(){this.forwardingHistoryEvents&&(this.forwardingHistoryEvents.filter=this.selFilter.trim().toLowerCase())}getLabel(e){const a=this.nodePageDefs[this.pageId][this.tableSetting.tableId].allowedColumns.find(s=>s.column===e);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column):this.commonService.titleCase(e)}setFilterPredicate(){this.forwardingHistoryEvents.filterPredicate=(e,a)=>{let s="";switch(this.selFilterBy){case"all":s=(e.timestamp?this.datePipe.transform(new Date(e.timestamp),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(e).toLowerCase();break;case"timestamp":s=this.datePipe.transform(new Date(e.timestamp||0),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;case"fee":s=(e.amountIn-e.amountOut).toString()||"0";break;default:s=typeof e[this.selFilterBy]>"u"?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return s.includes(a)}}loadForwardingEventsTable(e){this.forwardingHistoryEvents=new c.by([...e]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(a,s)=>"fee"===s?a.amountIn-a.amountOut:a[s]&&isNaN(a[s])?a[s].toLocaleLowerCase():a[s]?+a[s]:null,this.forwardingHistoryEvents.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.forwardingHistoryEvents)}onDownloadCSV(){this.forwardingHistoryEvents&&this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Forwarding-history")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(M.v),t.Y36(E.yh),t.Y36(u.uU),t.Y36(z.i1))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-forwarding-history"]],viewQuery:function(e,a){if(1&e&&(t.Gf(v.YE,5),t.Gf(w.NW,5)),2&e){let s;t.iGM(s=t.CRH())&&(a.sort=s.first),t.iGM(s=t.CRH())&&(a.paginator=s.first)}},inputs:{pageId:"pageId",tableId:"tableId",eventsData:"eventsData",selFilter:"selFilter"},features:[t._Bn([{provide:A.PG,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.ye,useValue:(0,l.pt)("Events")}]),t.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.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModel","ngModelChange","input","keyup"],[3,"value"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"matSortActive","matSortDirection","dataSource"],["table",""],["matColumnDef","type"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Type (if not payment relayed)",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","fromChannelId"],["matColumnDef","fromShortChannelId"],["matColumnDef","fromChannelAlias"],["matColumnDef","toChannelId"],["matColumnDef","toShortChannelId"],["matColumnDef","toChannelAlias"],["matColumnDef","paymentHash"],["matColumnDef","amountIn"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amountOut"],["matColumnDef","fee"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Type (if not payment relayed)"],["mat-cell",""],["class","dot yellow","matTooltipPosition","right",3,"matTooltip","ngClass",4,"ngIf"],["matTooltipPosition","right",1,"dot","yellow",3,"matTooltip","ngClass"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t.YNc(1,sc,2,1,"div",1),t.YNc(2,cc,13,4,"div",2),t.YNc(3,Gc,48,8,"div",3),t.YNc(4,Wc,1,3,"mat-paginator",4),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",""!==a.errorMessage),t.xp6(1),t.Q6J("ngIf",""===a.errorMessage),t.xp6(1),t.Q6J("ngIf",""===a.errorMessage),t.xp6(1),t.Q6J("ngIf",""===a.errorMessage))},dependencies:[u.mk,u.sg,u.O5,u.PC,d.Fj,d.JJ,d.On,h.xw,h.Wh,h.yH,Z.oO,Z.Zl,F.lW,Q.Nt,C.KE,C.hX,H.pW,A.gD,A.$L,V.ey,v.YE,v.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.mD,c.Ke,c.ge,c.ev,c.yh,c.XQ,c.Gk,c.Q2,W.gM,w.NW,P.Vv,P.$V,u.JJ,u.uU,z.h9],styles:[".mat-column-type[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}.mat-column-type[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}"]}),o})();const Kc=["tableIn"],Xc=["tableOut"],$c=["paginatorIn"],jc=["paginatorOut"];function tu(i,o){if(1&i&&(t.TgZ(0,"div",3),t._uU(1),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Oqu(n.errorMessage)}}function eu(i,o){1&i&&t._UZ(0,"mat-progress-bar",34)}function nu(i,o){1&i&&(t.TgZ(0,"th",35),t._uU(1,"Channel ID"),t.qZA())}const st=function(i){return{width:i}};function iu(i,o){if(1&i&&(t.TgZ(0,"td",36)(1,"div",37)(2,"span",38),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,st,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.channelId)}}function au(i,o){1&i&&(t.TgZ(0,"th",35),t._uU(1,"Peer Alias"),t.qZA())}function ou(i,o){if(1&i&&(t.TgZ(0,"td",36)(1,"div",37)(2,"span",38),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,st,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.alias)}}function su(i,o){1&i&&(t.TgZ(0,"th",39),t._uU(1,"Events"),t.qZA())}function lu(i,o){if(1&i&&(t.TgZ(0,"td",36)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,n.events))}}function ru(i,o){1&i&&(t.TgZ(0,"th",39),t._uU(1,"Amount (Sats)"),t.qZA())}function cu(i,o){if(1&i&&(t.TgZ(0,"td",36)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,n.totalAmount))}}function uu(i,o){1&i&&(t.TgZ(0,"th",39),t._uU(1,"Fee (Sats)"),t.qZA())}function pu(i,o){if(1&i&&(t.TgZ(0,"td",36)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,n.totalFee))}}function mu(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"No incoming routing peer available."),t.qZA())}function du(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"Getting incoming routing peers..."),t.qZA())}function hu(i,o){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&i){const n=t.oxw(3);t.xp6(1),t.Oqu(n.errorMessage)}}function _u(i,o){if(1&i&&(t.TgZ(0,"td",41),t.YNc(1,mu,2,0,"p",42),t.YNc(2,du,2,0,"p",42),t.YNc(3,hu,2,1,"p",42),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=n.routingPeersIncoming&&n.routingPeersIncoming.data)||(null==n.routingPeersIncoming||null==n.routingPeersIncoming.data?null:n.routingPeersIncoming.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.routingPeersIncoming&&n.routingPeersIncoming.data)||(null==n.routingPeersIncoming||null==n.routingPeersIncoming.data?null:n.routingPeersIncoming.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.routingPeersIncoming&&n.routingPeersIncoming.data)||(null==n.routingPeersIncoming||null==n.routingPeersIncoming.data?null:n.routingPeersIncoming.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}const Qt=function(i){return{"display-none":i}};function gu(i,o){if(1&i&&t._UZ(0,"tr",43),2&i){const n=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Qt,(null==n.routingPeersIncoming?null:n.routingPeersIncoming.data)&&(null==n.routingPeersIncoming||null==n.routingPeersIncoming.data?null:n.routingPeersIncoming.data.length)>0))}}function fu(i,o){1&i&&t._UZ(0,"tr",44)}function Cu(i,o){1&i&&t._UZ(0,"tr",45)}function xu(i,o){1&i&&t._UZ(0,"mat-progress-bar",34)}function yu(i,o){1&i&&(t.TgZ(0,"th",35),t._uU(1,"Channel ID"),t.qZA())}function bu(i,o){if(1&i&&(t.TgZ(0,"td",36)(1,"div",37)(2,"span",38),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,st,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.channelId)}}function Lu(i,o){1&i&&(t.TgZ(0,"th",35),t._uU(1,"Peer Alias"),t.qZA())}function Tu(i,o){if(1&i&&(t.TgZ(0,"td",36)(1,"div",37)(2,"span",38),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,st,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.alias)}}function vu(i,o){1&i&&(t.TgZ(0,"th",39),t._uU(1,"Events"),t.qZA())}function Zu(i,o){if(1&i&&(t.TgZ(0,"td",36)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,n.events))}}function Su(i,o){1&i&&(t.TgZ(0,"th",39),t._uU(1,"Amount (Sats)"),t.qZA())}function Au(i,o){if(1&i&&(t.TgZ(0,"td",36)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,n.totalAmount))}}function Eu(i,o){1&i&&(t.TgZ(0,"th",39),t._uU(1,"Fee (Sats)"),t.qZA())}function wu(i,o){if(1&i&&(t.TgZ(0,"td",36)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,n.totalFee))}}function Iu(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"No outgoing routing peer available."),t.qZA())}function Fu(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"Getting outgoing routing peers..."),t.qZA())}function qu(i,o){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&i){const n=t.oxw(3);t.xp6(1),t.Oqu(n.errorMessage)}}function Nu(i,o){if(1&i&&(t.TgZ(0,"td",41),t.YNc(1,Iu,2,0,"p",42),t.YNc(2,Fu,2,0,"p",42),t.YNc(3,qu,2,1,"p",42),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=n.routingPeersOutgoing&&n.routingPeersOutgoing.data)||(null==n.routingPeersOutgoing||null==n.routingPeersOutgoing.data?null:n.routingPeersOutgoing.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.routingPeersOutgoing&&n.routingPeersOutgoing.data)||(null==n.routingPeersOutgoing||null==n.routingPeersOutgoing.data?null:n.routingPeersOutgoing.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.routingPeersOutgoing&&n.routingPeersOutgoing.data)||(null==n.routingPeersOutgoing||null==n.routingPeersOutgoing.data?null:n.routingPeersOutgoing.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function Ou(i,o){if(1&i&&t._UZ(0,"tr",43),2&i){const n=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Qt,(null==n.routingPeersOutgoing?null:n.routingPeersOutgoing.data)&&(null==n.routingPeersOutgoing||null==n.routingPeersOutgoing.data?null:n.routingPeersOutgoing.data.length)>0))}}function Pu(i,o){1&i&&t._UZ(0,"tr",44)}function ku(i,o){1&i&&t._UZ(0,"tr",45)}const Uu=function(i,o){return{"mt-2":i,"mt-1":o}},Ru=function(){return["no_incoming_event"]},Mu=function(i){return{"mt-2":i}},Du=function(){return["no_outgoing_event"]};function Ju(i,o){if(1&i&&(t.TgZ(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7),t._uU(4,"Incoming"),t.qZA(),t._UZ(5,"div",8),t.qZA(),t.TgZ(6,"div",9),t.YNc(7,eu,1,0,"mat-progress-bar",10),t.TgZ(8,"table",11,12),t.ynx(10,13),t.YNc(11,nu,2,0,"th",14),t.YNc(12,iu,4,4,"td",15),t.BQk(),t.ynx(13,16),t.YNc(14,au,2,0,"th",14),t.YNc(15,ou,4,4,"td",15),t.BQk(),t.ynx(16,17),t.YNc(17,su,2,0,"th",18),t.YNc(18,lu,4,3,"td",15),t.BQk(),t.ynx(19,19),t.YNc(20,ru,2,0,"th",18),t.YNc(21,cu,4,3,"td",15),t.BQk(),t.ynx(22,20),t.YNc(23,uu,2,0,"th",18),t.YNc(24,pu,4,3,"td",15),t.BQk(),t.ynx(25,21),t.YNc(26,_u,4,3,"td",22),t.BQk(),t.YNc(27,gu,1,3,"tr",23),t.YNc(28,fu,1,0,"tr",24),t.YNc(29,Cu,1,0,"tr",25),t.qZA()(),t._UZ(30,"mat-paginator",26,27),t.qZA(),t.TgZ(32,"div",28)(33,"div",6)(34,"div",7),t._uU(35,"Outgoing"),t.qZA(),t._UZ(36,"div",8),t.qZA(),t.TgZ(37,"div",29),t.YNc(38,xu,1,0,"mat-progress-bar",10),t.TgZ(39,"table",30,31),t.ynx(41,13),t.YNc(42,yu,2,0,"th",14),t.YNc(43,bu,4,4,"td",15),t.BQk(),t.ynx(44,16),t.YNc(45,Lu,2,0,"th",14),t.YNc(46,Tu,4,4,"td",15),t.BQk(),t.ynx(47,17),t.YNc(48,vu,2,0,"th",18),t.YNc(49,Zu,4,3,"td",15),t.BQk(),t.ynx(50,19),t.YNc(51,Su,2,0,"th",18),t.YNc(52,Au,4,3,"td",15),t.BQk(),t.ynx(53,20),t.YNc(54,Eu,2,0,"th",18),t.YNc(55,wu,4,3,"td",15),t.BQk(),t.ynx(56,32),t.YNc(57,Nu,4,3,"td",22),t.BQk(),t.YNc(58,Ou,1,3,"tr",23),t.YNc(59,Pu,1,0,"tr",24),t.YNc(60,ku,1,0,"tr",25),t.qZA(),t._UZ(61,"mat-paginator",26,33),t.qZA()()()),2&i){const n=t.oxw();t.xp6(2),t.Q6J("ngClass",t.WLB(22,Uu,n.screenSize===n.screenSizeEnum.XS,n.screenSize===n.screenSizeEnum.SM)),t.xp6(5),t.Q6J("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("matSortActive",n.tableSetting.sortBy)("matSortDirection",n.tableSetting.sortOrder)("dataSource",n.routingPeersIncoming),t.xp6(19),t.Q6J("matFooterRowDef",t.DdM(25,Ru)),t.xp6(1),t.Q6J("matHeaderRowDef",n.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",n.displayedColumns),t.xp6(1),t.Q6J("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS),t.xp6(3),t.Q6J("ngClass",t.VKq(26,Mu,n.screenSize!==n.screenSizeEnum.LG)),t.xp6(5),t.Q6J("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("matSortActive",n.tableSetting.sortBy)("matSortDirection",n.tableSetting.sortOrder)("dataSource",n.routingPeersOutgoing),t.xp6(19),t.Q6J("matFooterRowDef",t.DdM(28,Du)),t.xp6(1),t.Q6J("matHeaderRowDef",n.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",n.displayedColumns),t.xp6(1),t.Q6J("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS)}}let Hu=(()=>{var i;class o{constructor(e,a,s,r){this.logger=e,this.commonService=a,this.store=s,this.camelCaseWithSpaces=r,this.nodePageDefs=l.Xk,this.selFilterByIn="all",this.selFilterByOut="all",this.colWidth="20rem",this.PAGE_ID="routing",this.tableSetting={tableId:"routing_peers",recordsPerPage:l.IV,sortBy:"totalFee",sortOrder:l.Pi.DESCENDING},this.routingPeersData=[],this.displayedColumns=[],this.routingPeersIncoming=new c.by([]),this.routingPeersOutgoing=new c.by([]),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()}ngOnInit(){this.store.select(f.nF).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=e.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||l.c3.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/(2*this.displayedColumns.length)/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(f.PP).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.routingPeersData=e.payments&&e.payments.relayed?e.payments.relayed:[],this.routingPeersData.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.routingPeersData),this.logger.info(e)})}ngAfterViewInit(){this.routingPeersData.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.routingPeersData)}applyFilterIncoming(){this.routingPeersIncoming.filter=this.filterIn.trim().toLowerCase()}applyFilterOutgoing(){this.routingPeersOutgoing.filter=this.filterOut.trim().toLowerCase()}getLabel(e){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(s=>s.column===e);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):this.commonService.titleCase(e)}setFilterPredicate(){this.routingPeersIncoming.filterPredicate=(e,a)=>{let s="";return s="all"===this.selFilterByIn?JSON.stringify(e).toLowerCase():"string"==typeof e[this.selFilterByIn]?e[this.selFilterByIn].toLowerCase():"boolean"==typeof e[this.selFilterByIn]?e[this.selFilterByIn]?"yes":"no":e[this.selFilterByIn].toString(),s.includes(a)},this.routingPeersOutgoing.filterPredicate=(e,a)=>{let s="";switch(this.selFilterByOut){case"all":s=JSON.stringify(e).toLowerCase();break;case"total_amount":case"total_fee":s=(+(e[this.selFilterByOut]||0)/1e3).toString()||"";break;default:s="string"==typeof e[this.selFilterByOut]?e[this.selFilterByOut].toLowerCase():"boolean"==typeof e[this.selFilterByOut]?e[this.selFilterByOut]?"yes":"no":e[this.selFilterByOut].toString()}return s.includes(a)}}loadRoutingPeersTable(e){if(e.length>0){const a=this.groupRoutingPeers(e);this.routingPeersIncoming=new c.by(a[0]),this.routingPeersIncoming.sort=this.sortIn,this.routingPeersIncoming.paginator=this.paginatorIn,this.logger.info(this.routingPeersIncoming),this.routingPeersOutgoing=new c.by(a[1]),this.routingPeersOutgoing.sort=this.sortOut,this.routingPeersOutgoing.paginator=this.paginatorOut,this.logger.info(this.routingPeersOutgoing)}else this.routingPeersIncoming=new c.by([]),this.routingPeersOutgoing=new c.by([]);this.setFilterPredicate(),this.applyFilterIncoming(),this.applyFilterOutgoing()}groupRoutingPeers(e){const a=[],s=[];return e.forEach(r=>{const p=a.find(N=>N.channelId===r.fromChannelId),x=s.find(N=>N.channelId===r.toChannelId);p?(p.events++,p.totalAmount=+p.totalAmount+ +r.amountIn,p.totalFee=r.amountIn-r.amountOut+ +p.totalFee):a.push({channelId:r.fromChannelId,alias:r.fromChannelAlias,events:1,totalAmount:+r.amountIn,totalFee:r.amountIn-r.amountOut}),x?(x.events++,x.totalAmount=+x.totalAmount+ +r.amountOut,x.totalFee=r.amountIn-r.amountOut+ +x.totalFee):s.push({channelId:r.toChannelId,alias:r.toChannelAlias,events:1,totalAmount:+r.amountOut,totalFee:r.amountIn-r.amountOut})}),[this.commonService.sortDescByKey(a,"totalFee"),this.commonService.sortDescByKey(s,"totalFee")]}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(M.v),t.Y36(E.yh),t.Y36(z.i1))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-routing-peers"]],viewQuery:function(e,a){if(1&e&&(t.Gf(Kc,5,v.YE),t.Gf(Xc,5,v.YE),t.Gf($c,5),t.Gf(jc,5)),2&e){let s;t.iGM(s=t.CRH())&&(a.sortIn=s.first),t.iGM(s=t.CRH())&&(a.sortOut=s.first),t.iGM(s=t.CRH())&&(a.paginatorIn=s.first),t.iGM(s=t.CRH())&&(a.paginatorOut=s.first)}},features:[t._Bn([{provide:w.ye,useValue:(0,l.pt)("Peers")}])],decls:3,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between stretch","class","page-sub-title-container mt-2",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between stretch",1,"page-sub-title-container","mt-2"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start stretch",1,"mb-4"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"page-sub-title-container","w-100",3,"ngClass"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",1,"overflow-auto","incoming-table",3,"matSortActive","matSortDirection","dataSource"],["tableIn",""],["matColumnDef","channelId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","events"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","totalAmount"],["matColumnDef","totalFee"],["matColumnDef","no_incoming_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["paginatorIn",""],["fxLayout","column","fxFlex","49","fxLayoutAlign","end stretch",1,"mb-4"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",1,"overflow-auto","outgoing-table",3,"matSortActive","matSortDirection","dataSource"],["tableOut",""],["matColumnDef","no_outgoing_event"],["paginatorOut",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t.YNc(1,tu,2,1,"div",1),t.YNc(2,Ju,63,29,"div",2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",""!==a.errorMessage),t.xp6(1),t.Q6J("ngIf",""===a.errorMessage))},dependencies:[u.mk,u.O5,u.PC,h.xw,h.Wh,h.yH,Z.oO,Z.Zl,H.pW,v.YE,v.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.mD,c.Ke,c.ge,c.ev,c.yh,c.XQ,c.Gk,c.Q2,w.NW,P.$V,u.JJ]}),o})();function Qu(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",8),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw();return t.KtG(r.activeLink=s.link)}),t._uU(1),t.qZA()}if(2&i){const n=o.$implicit,e=t.oxw();t.s9C("routerLink",n.link),t.Q6J("active",e.activeLink===n.link),t.xp6(1),t.Oqu(n.name)}}let Yu=(()=>{var i;class o{constructor(e){this.router=e,this.faChartBar=L.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 e=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Y.h)(a=>a instanceof b.Av)).subscribe({next:a=>{const s=this.links.find(r=>a.urlAfterRedirects.includes(r.link));this.activeLink=s?s.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(b.F0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-reports"]],decls:12,vars:3,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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["tabPanel",""],["mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,a){if(1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Reports"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),t.YNc(8,Qu,2,3,"div",6),t.qZA(),t._UZ(9,"mat-tab-nav-panel",null,7)(11,"router-outlet"),t.qZA()()()),2&e){const s=t.MAs(10);t.xp6(1),t.Q6J("icon",a.faChartBar),t.xp6(6),t.Q6J("tabPanel",s),t.xp6(1),t.Q6J("ngForOf",a.links)}},dependencies:[u.sg,I.BN,h.xw,h.Wh,T.a8,T.dn,q.BU,q.sW,q.Nj,b.lC,b.rH]}),o})();var Yt=g(3803),Bt=g(7671);function Bu(i,o){if(1&i&&(t.TgZ(0,"div",13),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&i){const n=t.oxw();t.Q6J("@fadeIn",n.totalFeeSat),t.xp6(1),t.AsE("",t.xi3(2,3,n.totalFeeSat||0,"1.0-2")," Sats/",t.lcZ(3,6,n.filteredEventsBySelectedPeriod.length||0)," Events")}}function Vu(i,o){1&i&&(t.TgZ(0,"div",14),t._uU(1,"No routing report for the selected period"),t.qZA())}function zu(i,o){if(1&i&&(t.TgZ(0,"span")(1,"span",17),t._uU(2),t.ALo(3,"number"),t.qZA(),t.TgZ(4,"span",17),t._uU(5),t.ALo(6,"number"),t.qZA()()),2&i){const n=o.model,e=t.oxw(2);t.xp6(2),t.hij("Events: ",t.lcZ(3,2,(e.selReportBy===e.reportBy.EVENTS?n.value:n.extra.totalEvents)||0),""),t.xp6(3),t.hij("Fee: ",t.xi3(6,4,(e.selReportBy===e.reportBy.EVENTS?n.extra.totalFees:n.value)||0,"1.0-2"),"")}}function Gu(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"ngx-charts-bar-vertical",15),t.NdJ("select",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.onChartBarSelected(a))})("mouseup",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.onChartMouseUp(a))}),t.YNc(1,zu,7,7,"ng-template",null,16,t.W1O),t.qZA()}if(2&i){const n=t.oxw();t.Q6J("view",n.view)("results",n.routingReportData)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",n.showYAxisLabel)("xAxisLabel",n.xAxisLabel)("yAxisLabel",n.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)}}function Wu(i,o){if(1&i&&t._UZ(0,"rtl-ecl-forwarding-history",18),2&i){const n=t.oxw();t.Q6J("pageId","reports")("tableId","routing")("eventsData",n.filteredEventsBySelectedPeriod)("selFilter",n.eventFilterValue)}}let Ku=(()=>{var i;class o{constructor(e,a,s){this.logger=e,this.commonService=a,this.store=s,this.reportPeriod=l.op[0],this.secondsInADay=86400,this.events=[],this.filteredEventsBySelectedPeriod=[],this.eventFilterValue="",this.reportBy=l.Xr,this.selReportBy=l.Xr.FEES,this.totalFeeSat=null,this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.routingReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Fee (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=l.cu,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(f.PP).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.events=e.payments&&e.payments.relayed?e.payments.relayed:[],this.filterForwardingEvents(this.startDate,this.endDate),this.logger.info(e)}),this.commonService.containerSizeUpdated.pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{switch(this.screenSize){case l.cu.MD:this.screenPaddingX=e.width/10;break;case l.cu.LG:this.screenPaddingX=e.width/16;break;default:this.screenPaddingX=e.width/20}this.view=[e.width-this.screenPaddingX,e.height/2.2],this.logger.info("Container Size: "+JSON.stringify(e)),this.logger.info("View: "+JSON.stringify(this.view))})}filterForwardingEvents(e,a){const s=Math.round(e.getTime()/1e3),r=Math.round(a.getTime()/1e3);this.logger.info("Filtering Forwarding Events Starting at "+new Date(Date.now()).toLocaleString()+" From "+e.toLocaleString()+" To "+a.toLocaleString()),this.filteredEventsBySelectedPeriod=[],this.routingReportData=[],this.totalFeeSat=null,this.events&&this.events.length>0&&(this.events.forEach(p=>{Math.floor((p.timestamp||0)/1e3)>=s&&Math.floor((p.timestamp||0)/1e3)0&&"ngx-charts"===e.srcElement.classList[0]&&(this.eventFilterValue="")}onChartBarSelected(e){this.eventFilterValue=this.reportPeriod===l.op[1]?e.name+"/"+this.startDate.getFullYear():e.name.toString().padStart(2,"0")+"/"+l.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}prepareFeeReport(e){const a=Math.round(e.getTime()/1e3),s=[];if(this.totalFeeSat=0,this.logger.info("Fee Report Prepare Starting at "+new Date(Date.now()).toLocaleString()+" From "+e.toLocaleString()),this.reportPeriod===l.op[1]){for(let r=0;r<12;r++)s.push({name:l.gg[r].name,value:0,extra:{totalEvents:0}});this.filteredEventsBySelectedPeriod?.map(r=>{const p=new Date(r.timestamp||0).getMonth();return s[p].value=s[p].value+((r.amountIn||0)-(r.amountOut||0)),s[p].extra.totalEvents=s[p].extra.totalEvents+1,this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((r.amountIn||0)-(r.amountOut||0)),this.filteredEventsBySelectedPeriod})}else{for(let r=0;r{const p=Math.floor((Math.floor((r.timestamp||0)/1e3)-a)/this.secondsInADay);return s[p].value=s[p].value+((r.amountIn||0)-(r.amountOut||0)),s[p].extra.totalEvents=s[p].extra.totalEvents+1,this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((r.amountIn||0)-(r.amountOut||0)),this.filteredEventsBySelectedPeriod})}return this.logger.info("Fee Report Prepare Finished at "+new Date(Date.now()).toLocaleString()),s}prepareEventsReport(e){const a=Math.round(e.getTime()/1e3),s=[];if(this.totalFeeSat=0,this.logger.info("Events Report Prepare Starting at "+new Date(Date.now()).toLocaleString()+" From "+e.toLocaleString()),this.reportPeriod===l.op[1]){for(let r=0;r<12;r++)s.push({name:l.gg[r].name,value:0,extra:{totalFees:0}});this.filteredEventsBySelectedPeriod?.map(r=>{const p=new Date(r.timestamp||0).getMonth();return s[p].value=s[p].value+1,s[p].extra.totalFees=s[p].extra.totalFees+((r.amountIn||0)-(r.amountOut||0)),this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((r.amountIn||0)-(r.amountOut||0)),this.filteredEventsBySelectedPeriod})}else{for(let r=0;r{const p=Math.floor((Math.floor((r.timestamp||0)/1e3)-a)/this.secondsInADay);return s[p].value=s[p].value+1,s[p].extra.totalFees=s[p].extra.totalFees+((r.amountIn||0)-(r.amountOut||0)),this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((r.amountIn||0)-(r.amountOut||0)),this.filteredEventsBySelectedPeriod})}return this.logger.info("Events Report Prepare Finished at "+new Date(Date.now()).toLocaleString()),s}onSelectionChange(e){const a=e.selDate.getMonth(),s=e.selDate.getFullYear();this.reportPeriod=e.selScrollRange,this.reportPeriod===l.op[1]?(this.startDate=new Date(s,0,1,0,0,0),this.endDate=new Date(s,11,31,23,59,59)):(this.startDate=new Date(s,a,1,0,0,0),this.endDate=new Date(s,a,this.getMonthDays(a,s),23,59,59)),this.filterForwardingEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(e,a){return 1===e&&a%4==0?l.gg[e].days+1:l.gg[e].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(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(M.v),t.Y36(E.yh))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-routing-report"]],hostBindings:function(e,a){1&e&&t.NdJ("mouseup",function(r){return a.onChartMouseUp(r)})},decls:17,vars:7,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 center",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 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],[1,"mt-1"],["class","one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup",4,"ngIf"],[3,"pageId","tableId","eventsData","selFilter",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],[1,"one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"pageId","tableId","eventsData","selFilter"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0)(1,"rtl-horizontal-scroller",1),t.NdJ("stepChanged",function(r){return a.onSelectionChange(r)}),t.qZA(),t.TgZ(2,"div",2)(3,"mat-radio-group",3),t.NdJ("ngModelChange",function(r){return a.selReportBy=r})("change",function(){return a.onSelReportByChange()}),t.TgZ(4,"span",4),t._uU(5,"Report By: "),t.qZA(),t.TgZ(6,"mat-radio-button",5),t._uU(7,"Fees"),t.qZA(),t.TgZ(8,"mat-radio-button",6),t._uU(9,"Events"),t.qZA()()(),t.TgZ(10,"div",7),t.YNc(11,Bu,4,8,"div",8),t.YNc(12,Vu,2,0,"div",9),t.TgZ(13,"div",10),t.YNc(14,Gu,3,11,"ngx-charts-bar-vertical",11),t.qZA(),t.TgZ(15,"div",10),t.YNc(16,Wu,1,4,"rtl-ecl-forwarding-history",12),t.qZA()()()),2&e&&(t.xp6(3),t.Q6J("ngModel",a.selReportBy),t.xp6(3),t.s9C("value",a.reportBy.FEES),t.xp6(2),t.s9C("value",a.reportBy.EVENTS),t.xp6(3),t.Q6J("ngIf",a.routingReportData.length>0&&a.filteredEventsBySelectedPeriod.length>0),t.xp6(1),t.Q6J("ngIf",a.routingReportData.length<=0||a.filteredEventsBySelectedPeriod.length<=0),t.xp6(2),t.Q6J("ngIf",a.routingReportData.length>0&&a.filteredEventsBySelectedPeriod.length>0),t.xp6(2),t.Q6J("ngIf",a.filteredEventsBySelectedPeriod.length>0))},dependencies:[u.O5,d.JJ,d.On,h.xw,h.Wh,h.yH,at.VQ,at.U0,Yt.K$,Bt.D,Ht,u.JJ],data:{animation:[xt.J]}}),o})();var Xu=g(165);function $u(i,o){if(1&i&&(t.TgZ(0,"div",10),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.AsE(" Paid ",t.xi3(2,2,n.transactionsReportSummary.amountPaidSelectedPeriod||0,"1.0-2")," Sats/",t.lcZ(3,5,n.transactionsReportSummary.paymentsSelectedPeriod)," Payments ")}}function ju(i,o){if(1&i&&(t.TgZ(0,"div",10),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.AsE(" Received ",t.xi3(2,2,n.transactionsReportSummary.amountReceivedSelectedPeriod||0,"1.0-2")," Sats/",t.lcZ(3,5,n.transactionsReportSummary.invoicesSelectedPeriod)," Invoices ")}}function tp(i,o){if(1&i&&(t.TgZ(0,"div",8),t.YNc(1,$u,4,7,"div",9),t.YNc(2,ju,4,7,"div",9),t.qZA()),2&i){const n=t.oxw();t.Q6J("@fadeIn",n.transactionsReportSummary),t.xp6(1),t.Q6J("ngIf",n.transactionsReportSummary.paymentsSelectedPeriod),t.xp6(1),t.Q6J("ngIf",n.transactionsReportSummary.invoicesSelectedPeriod)}}function ep(i,o){1&i&&(t.TgZ(0,"div",11),t._uU(1,"No transactions report for the selected period"),t.qZA())}function np(i,o){if(1&i&&(t.TgZ(0,"span",14),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&i){const n=o.model;t.xp6(1),t.HOy("",n.name,": ",t.xi3(2,4,n.value||0,"1.0-2"),"/# ","Paid"===n.name?"Payments":"Invoices",": ",t.lcZ(3,7,(null==n.extra?null:n.extra.total)||0),"")}}function ip(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"ngx-charts-bar-vertical-2d",12),t.NdJ("select",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.onChartBarSelected(a))})("mouseup",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.onChartMouseUp(a))}),t.YNc(1,np,4,9,"ng-template",null,13,t.W1O),t.qZA()}if(2&i){const n=t.oxw();t.Q6J("view",n.view)("results",n.transactionsReportData)("noBarWhenZero",!1)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",n.showYAxisLabel)("xAxisLabel",n.xAxisLabel)("yAxisLabel",n.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)("groupPadding",n.reportPeriod===n.scrollRanges[0]?2:8)}}function ap(i,o){if(1&i&&t._UZ(0,"rtl-transactions-report-table",15),2&i){const n=t.oxw();t.Q6J("displayedColumns",n.displayedColumns)("tableSetting",n.tableSetting)("dataList",n.transactionsNonZeroReportData)("dataRange",n.reportPeriod)("selFilter",n.transactionFilterValue)}}let op=(()=>{var i;class o{constructor(e,a,s){this.logger=e,this.commonService=a,this.store=s,this.scrollRanges=l.op,this.reportPeriod=l.op[0],this.secondsInADay=86400,this.payments=[],this.invoices=[],this.colWidth="20rem",this.PAGE_ID="reports",this.tableSetting={tableId:"transactions",recordsPerPage:l.IV,sortBy:"date",sortOrder:l.Pi.DESCENDING},this.displayedColumns=["date","amount_paid","num_payments","amount_received","num_invoices"],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0},this.transactionFilterValue="",this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.transactionsReportData=[],this.transactionsNonZeroReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Amount (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new m.x,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(f.nF).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.tableSetting=e.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||l.c3.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(f.PP).pipe((0,_.R)(this.unSubs[1]),(0,lt.M)(this.store.select(f.Ef))).subscribe(([e,a])=>{this.payments=e.payments.sent?e.payments.sent:[],this.invoices=a.invoices?a.invoices:[],(this.payments.length>0||this.invoices.length>0)&&(this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData())}),this.commonService.containerSizeUpdated.pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{switch(this.screenSize){case l.cu.MD:this.screenPaddingX=e.width/10;break;case l.cu.LG:this.screenPaddingX=e.width/16;break;default:this.screenPaddingX=e.width/20}this.view=[e.width-this.screenPaddingX,e.height/2.2],this.logger.info("Container Size: "+JSON.stringify(e)),this.logger.info("View: "+JSON.stringify(this.view))})}onChartMouseUp(e){"svg"===e.srcElement.tagName&&e.srcElement.classList.length>0&&"ngx-charts"===e.srcElement.classList[0]&&(this.transactionFilterValue="")}onChartBarSelected(e){this.transactionFilterValue=this.reportPeriod===l.op[1]?e.series.toString()+"/"+this.startDate.getFullYear():e.series.toString().padStart(2,"0")+"/"+l.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}filterTransactionsForSelectedPeriod(e,a){const s=Math.round(e.getTime()/1e3),r=Math.round(a.getTime()/1e3),p=[];this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};const x=this.payments?.filter(y=>y.firstPartTimestamp&&Math.floor(y.firstPartTimestamp/1e3)>=s&&Math.floor(y.firstPartTimestamp/1e3)"received"===y.status&&y.timestamp&&y.timestamp>=s&&y.timestamp{const O=new Date(y.firstPartTimestamp||0).getMonth();return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+(y.recipientAmount||0),p[O].series[0].value=p[O].series[0].value+y.recipientAmount,p[O].series[0].extra.total=p[O].series[0].extra.total+1,this.transactionsReportSummary}),N?.map(y=>{const O=new Date(1e3*(y.timestamp||0)).getMonth();return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+(y.amountSettled||0),p[O].series[1].value=p[O].series[1].value+y.amountSettled,p[O].series[1].extra.total=p[O].series[1].extra.total+1,this.transactionsReportSummary})}else{for(let y=0;y{const O=Math.floor((Math.floor((y.firstPartTimestamp||0)/1e3)-s)/this.secondsInADay);return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+(y.recipientAmount||0),p[O].series[0].value=p[O].series[0].value+y.recipientAmount,p[O].series[0].extra.total=p[O].series[0].extra.total+1,this.transactionsReportSummary}),N?.map(y=>{const O=Math.floor(((y.timestamp||0)-s)/this.secondsInADay);return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+(y.amountSettled||0),p[O].series[1].value=p[O].series[1].value+y.amountSettled,p[O].series[1].extra.total=p[O].series[1].extra.total+1,this.transactionsReportSummary})}return p}prepareTableData(){return this.transactionsReportData?.reduce((e,a)=>a.series[0].extra.total>0||a.series[1].extra.total>0?e.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}):e,[])}onSelectionChange(e){const a=e.selDate.getMonth(),s=e.selDate.getFullYear();this.reportPeriod=e.selScrollRange,this.reportPeriod===l.op[1]?(this.startDate=new Date(s,0,1,0,0,0),this.endDate=new Date(s,11,31,23,59,59)):(this.startDate=new Date(s,a,1,0,0,0),this.endDate=new Date(s,a,this.getMonthDays(a,s),23,59,59)),this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData(),this.transactionFilterValue=""}getMonthDays(e,a){return 1===e&&a%4==0?l.gg[e].days+1:l.gg[e].days}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(M.v),t.Y36(E.yh))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-transactions-report"]],hostBindings:function(e,a){1&e&&t.NdJ("mouseup",function(r){return a.onChartMouseUp(r)})},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,"displayedColumns","tableSetting","dataList","dataRange","selFilter",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],[1,"two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"displayedColumns","tableSetting","dataList","dataRange","selFilter"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0)(1,"rtl-horizontal-scroller",1),t.NdJ("stepChanged",function(r){return a.onSelectionChange(r)}),t.qZA(),t.TgZ(2,"div",2),t.YNc(3,tp,3,3,"div",3),t.YNc(4,ep,2,0,"div",4),t.TgZ(5,"div",5),t.YNc(6,ip,3,13,"ngx-charts-bar-vertical-2d",6),t.qZA(),t.TgZ(7,"div",5),t.YNc(8,ap,1,5,"rtl-transactions-report-table",7),t.qZA()()()),2&e&&(t.xp6(3),t.Q6J("ngIf",a.transactionsNonZeroReportData.length>0),t.xp6(1),t.Q6J("ngIf",a.transactionsNonZeroReportData.length<=0),t.xp6(2),t.Q6J("ngIf",a.transactionsNonZeroReportData.length>0),t.xp6(2),t.Q6J("ngIf",a.transactionsNonZeroReportData.length>0))},dependencies:[u.O5,h.xw,h.Wh,h.yH,Yt.H5,Bt.D,Xu.g,u.JJ],data:{animation:[xt.J]}}),o})();var U=g(1643),sp=g(9442);function lp(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",9),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw();return t.KtG(r.activeLink=s.link)}),t._uU(1),t.qZA()}if(2&i){const n=o.$implicit,e=t.oxw();t.s9C("routerLink",n.link),t.Q6J("active",e.activeLink===n.link),t.xp6(1),t.Oqu(n.name)}}let rp=(()=>{var i;class o{constructor(e){this.router=e,this.faSearch=L.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 e=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Y.h)(a=>a instanceof b.Av)).subscribe({next:a=>{const s=this.links.find(r=>a.urlAfterRedirects.includes(r.link));this.activeLink=s?s.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(b.F0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-graph"]],decls:13,vars:3,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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["tabPanel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,a){if(1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Graph Lookups"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),t.YNc(8,lp,2,3,"div",6),t.qZA(),t._UZ(9,"mat-tab-nav-panel",null,7),t.TgZ(11,"div",8),t._UZ(12,"router-outlet"),t.qZA()()()()),2&e){const s=t.MAs(10);t.xp6(1),t.Q6J("icon",a.faSearch),t.xp6(6),t.Q6J("tabPanel",s),t.xp6(1),t.Q6J("ngForOf",a.links)}},dependencies:[u.sg,I.BN,h.xw,h.Wh,h.yH,T.a8,T.dn,q.BU,q.sW,q.Nj,b.lC,b.rH]}),o})();const cp=[{path:"",component:Tt,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:xa,canActivate:[(0,U.fY)()]},{path:"onchain",component:lo,canActivate:[(0,U.fY)()],children:[{path:"",pathMatch:"full",redirectTo:"receive"},{path:"receive",component:zo,canActivate:[(0,U.fY)()]},{path:"send",component:Go,canActivate:[(0,U.fY)()]}]},{path:"connections",component:uo,canActivate:[(0,U.fY)()],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:ps,canActivate:[(0,U.fY)()],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:Kl,canActivate:[(0,U.fY)()]},{path:"pending",component:Ir,canActivate:[(0,U.fY)()]},{path:"inactive",component:oc,canActivate:[(0,U.fY)()]}]},{path:"peers",component:s1,data:{sweepAll:!1},canActivate:[(0,U.fY)()]}]},{path:"transactions",component:mo,canActivate:[(0,U.fY)()],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:At,canActivate:[(0,U.fY)()]},{path:"invoices",component:Et,canActivate:[(0,U.fY)()]}]},{path:"routing",component:_o,canActivate:[(0,U.fY)()],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:Ht,canActivate:[(0,U.fY)()]},{path:"peers",component:Hu,canActivate:[(0,U.fY)()]}]},{path:"reports",component:Yu,canActivate:[(0,U.fY)()],children:[{path:"",pathMatch:"full",redirectTo:"routingreport"},{path:"routingreport",component:Ku,canActivate:[(0,U.fY)()]},{path:"transactions",component:op,canActivate:[(0,U.fY)()]}]},{path:"graph",component:rp,canActivate:[(0,U.fY)()],children:[{path:"",pathMatch:"full",redirectTo:"lookups"},{path:"lookups",component:Bo,canActivate:[(0,U.fY)()]},{path:"queryroutes",component:b1,canActivate:[(0,U.fY)()]}]},{path:"**",component:sp.w}]}],up=b.Bz.forChild(cp);var pp=g(9470);let mp=(()=>{var i;class o{}return(i=o).\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i,bootstrap:[Tt]}),i.\u0275inj=t.cJS({imports:[u.ez,pp.m,up]}),o})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[167],{9676:(dp,Lt,g)=>{g.r(Lt),g.d(Lt,{ECLModule:()=>mp});var u=g(6895),b=g(9116),Vt=g(8878),t=g(4650),h=g(1576),H=g(3162);function zt(i,o){1&i&&t._UZ(0,"mat-progress-bar",3)}let Tt=(()=>{var i;class o{constructor(e){this.router=e,this.loading=!1,this.router.events.subscribe(a=>{switch(!0){case a instanceof b.OD:this.loading=!0;break;case a instanceof b.m2:case a instanceof b.gk:case a instanceof b.Q3:this.loading=!1}})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(b.F0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-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(e,a){1&e&&(t.TgZ(0,"div",0),t.YNc(1,zt,1,0,"mat-progress-bar",1),t._UZ(2,"router-outlet",null,2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",a.loading))},dependencies:[u.O5,h.xw,h.Wh,h.yH,H.pW,b.lC],data:{animation:[Vt.g]}}),o})();var m=g(7579),_=g(2722),lt=g(1365),vt=g(3396),L=g(2687),l=g(7731),f=g(2501),R=g(5043),E=g(9653),M=g(62),I=g(2216),Z=g(5829),F=g(4859),T=g(3546),Zt=g(782),rt=g(7392),ct=g(8255),q=g(3848);const St=function(i){return{backgroundColor:i}};function Gt(i,o){if(1&i&&t._UZ(0,"span",6),2&i){const n=t.oxw();t.Q6J("ngStyle",t.VKq(1,St,null==n.information?null:n.information.color))}}function Wt(i,o){if(1&i&&(t.TgZ(0,"div")(1,"h4",1),t._uU(2,"Color"),t.qZA(),t.TgZ(3,"div",2),t._UZ(4,"span",7),t._uU(5),t.ALo(6,"uppercase"),t.qZA()()),2&i){const n=t.oxw();t.xp6(4),t.Q6J("ngStyle",t.VKq(4,St,null==n.information?null:n.information.color)),t.xp6(1),t.hij(" ",t.lcZ(6,2,null==n.information?null:n.information.color)," ")}}function Kt(i,o){if(1&i&&(t.TgZ(0,"span",2),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(n)}}let Xt=(()=>{var i;class o{constructor(e){this.commonService=e,this.chains=[""]}ngOnChanges(){this.chains=[],this.chains.push("Bitcoin "+(this.information.network?this.commonService.titleCase(this.information.network):"Testnet"))}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(M.v))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},features:[t.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(e,a){1&e&&(t.TgZ(0,"div",0)(1,"div")(2,"h4",1),t._uU(3,"Alias"),t.qZA(),t.TgZ(4,"div",2),t._uU(5),t.YNc(6,Gt,1,3,"span",3),t.qZA()(),t.YNc(7,Wt,7,6,"div",4),t.TgZ(8,"div")(9,"h4",1),t._uU(10,"Implementation"),t.qZA(),t.TgZ(11,"div",2),t._uU(12),t.qZA()(),t.TgZ(13,"div")(14,"h4",1),t._uU(15,"Chain"),t.qZA(),t.YNc(16,Kt,2,1,"span",5),t.qZA()()),2&e&&(t.xp6(5),t.hij(" ",null==a.information?null:a.information.alias," "),t.xp6(1),t.Q6J("ngIf",!a.showColorFieldSeparately),t.xp6(1),t.Q6J("ngIf",a.showColorFieldSeparately),t.xp6(5),t.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):""),t.xp6(4),t.Q6J("ngForOf",a.chains))},dependencies:[u.sg,u.O5,u.PC,h.xw,h.Wh,h.yH,Z.Zl,u.gd]}),o})();function $t(i,o){if(1&i&&(t.TgZ(0,"div",2)(1,"div")(2,"h4",3),t._uU(3,"Lightning"),t.qZA(),t.TgZ(4,"div",4),t._uU(5),t.ALo(6,"number"),t.qZA(),t._UZ(7,"mat-progress-bar",5),t.qZA(),t.TgZ(8,"div")(9,"h4",3),t._uU(10,"On-chain"),t.qZA(),t.TgZ(11,"div",4),t._uU(12),t.ALo(13,"number"),t.qZA(),t._UZ(14,"mat-progress-bar",5),t.qZA(),t.TgZ(15,"div")(16,"h4",3),t._uU(17,"Total"),t.qZA(),t.TgZ(18,"div",4),t._uU(19),t.ALo(20,"number"),t.qZA()()()),2&i){const n=t.oxw();t.xp6(5),t.hij("",t.lcZ(6,5,n.balances.lightning)," Sats"),t.xp6(2),t.s9C("value",n.balances.lightning/n.balances.total*100),t.xp6(5),t.hij("",t.lcZ(13,7,n.balances.onchain)," Sats"),t.xp6(2),t.s9C("value",n.balances.onchain/n.balances.total*100),t.xp6(5),t.hij("",t.lcZ(20,9,n.balances.total)," Sats")}}function jt(i,o){if(1&i&&(t.TgZ(0,"div",6)(1,"p"),t._uU(2),t.qZA()()),2&i){const n=t.oxw();t.xp6(2),t.Oqu(n.errorMessage)}}let te=(()=>{var i;class o{constructor(){this.balances={onchain:0,lightning:0,total:0}}}return(i=o).\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-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(e,a){if(1&e&&(t.YNc(0,$t,21,11,"div",0),t.YNc(1,jt,3,1,"ng-template",null,1,t.W1O)),2&e){const s=t.MAs(2);t.Q6J("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",s)}},dependencies:[u.O5,h.xw,h.Wh,h.yH,H.pW,u.JJ]}),o})();function ee(i,o){if(1&i&&(t.TgZ(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),t._uU(4,"Daily"),t.qZA(),t.TgZ(5,"div",5),t._uU(6),t.ALo(7,"number"),t.qZA()(),t.TgZ(8,"div")(9,"h4",4),t._uU(10,"Weekly"),t.qZA(),t.TgZ(11,"div",5),t._uU(12),t.ALo(13,"number"),t.qZA()(),t.TgZ(14,"div")(15,"h4",4),t._uU(16,"Monthly"),t.qZA(),t.TgZ(17,"div",5),t._uU(18),t.ALo(19,"number"),t.qZA()()(),t.TgZ(20,"div",3)(21,"div")(22,"h4",4),t._uU(23,"Transactions"),t.qZA(),t.TgZ(24,"div",5),t._uU(25),t.ALo(26,"number"),t.qZA()(),t.TgZ(27,"div")(28,"h4",4),t._uU(29,"Transactions"),t.qZA(),t.TgZ(30,"div",5),t._uU(31),t.ALo(32,"number"),t.qZA()(),t.TgZ(33,"div")(34,"h4",4),t._uU(35,"Transactions"),t.qZA(),t.TgZ(36,"div",5),t._uU(37),t.ALo(38,"number"),t.qZA()()()()),2&i){const n=t.oxw();t.xp6(6),t.hij("",t.lcZ(7,6,null==n.fees?null:n.fees.daily_fee)," Sats"),t.xp6(6),t.hij("",t.lcZ(13,8,null==n.fees?null:n.fees.weekly_fee)," Sats"),t.xp6(6),t.hij("",t.lcZ(19,10,null==n.fees?null:n.fees.monthly_fee)," Sats"),t.xp6(7),t.Oqu(t.lcZ(26,12,null==n.fees?null:n.fees.daily_txs)),t.xp6(6),t.Oqu(t.lcZ(32,14,null==n.fees?null:n.fees.weekly_txs)),t.xp6(6),t.Oqu(t.lcZ(38,16,null==n.fees?null:n.fees.monthly_txs))}}function ne(i,o){if(1&i&&(t.TgZ(0,"div",6)(1,"p"),t._uU(2),t.qZA()()),2&i){const n=t.oxw();t.xp6(2),t.Oqu(n.errorMessage)}}let ie=(()=>{var i;class o{constructor(){this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100}ngOnChanges(){if(this.fees?.monthly_fee){this.totalFees=[{name:"Monthly",value:this.fees.monthly_fee},{name:"Weekly",value:this.fees.weekly_fee||0},{name:"Daily ",value:this.fees.daily_fee||0}];const a=10**(Math.ceil(Math.log(this.fees.monthly_fee+1)/Math.LN10)-1);this.maxFeeValue=Math.ceil(this.fees.monthly_fee/a)*a/5||100,Object.assign(this,this.totalFees)}else this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100,Object.assign(this,this.totalFees)}}return(i=o).\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-fee-info"]],inputs:{fees:"fees",errorMessage:"errorMessage"},features:[t.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"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,a){if(1&e&&(t.YNc(0,ee,39,18,"div",0),t.YNc(1,ne,3,1,"ng-template",null,1,t.W1O)),2&e){const s=t.MAs(2);t.Q6J("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",s)}},dependencies:[u.O5,h.xw,h.Wh,h.yH,u.JJ]}),o})();function ae(i,o){if(1&i&&(t.TgZ(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),t._uU(4,"Active"),t.qZA(),t.TgZ(5,"div",5),t._UZ(6,"span",6),t._uU(7),t.ALo(8,"number"),t.qZA()(),t.TgZ(9,"div")(10,"h4",4),t._uU(11,"Pending"),t.qZA(),t.TgZ(12,"div",5),t._UZ(13,"span",7),t._uU(14),t.ALo(15,"number"),t.qZA()(),t.TgZ(16,"div")(17,"h4",4),t._uU(18,"Inactive"),t.qZA(),t.TgZ(19,"div",5),t._UZ(20,"span",8),t._uU(21),t.ALo(22,"number"),t.qZA()()(),t.TgZ(23,"div",3)(24,"div")(25,"h4",4),t._uU(26,"Capacity"),t.qZA(),t.TgZ(27,"div",5),t._uU(28),t.ALo(29,"number"),t.qZA()(),t.TgZ(30,"div")(31,"h4",4),t._uU(32,"Capacity"),t.qZA(),t.TgZ(33,"div",5),t._uU(34),t.ALo(35,"number"),t.qZA()(),t.TgZ(36,"div")(37,"h4",4),t._uU(38,"Capacity"),t.qZA(),t.TgZ(39,"div",5),t._uU(40),t.ALo(41,"number"),t.qZA()()()()),2&i){const n=t.oxw();t.xp6(7),t.Oqu(t.lcZ(8,6,(null==n.channelsStatus.active?null:n.channelsStatus.active.channels)||0)),t.xp6(7),t.Oqu(t.lcZ(15,8,(null==n.channelsStatus.pending?null:n.channelsStatus.pending.channels)||0)),t.xp6(7),t.Oqu(t.lcZ(22,10,(null==n.channelsStatus.inactive?null:n.channelsStatus.inactive.channels)||0)),t.xp6(7),t.hij("",t.lcZ(29,12,(null==n.channelsStatus.active?null:n.channelsStatus.active.capacity)||0)," Sats"),t.xp6(6),t.hij("",t.lcZ(35,14,(null==n.channelsStatus.pending?null:n.channelsStatus.pending.capacity)||0)," Sats"),t.xp6(6),t.hij("",t.lcZ(41,16,(null==n.channelsStatus.inactive?null:n.channelsStatus.inactive.capacity)||0)," Sats")}}function oe(i,o){if(1&i&&(t.TgZ(0,"div",9)(1,"p"),t._uU(2),t.qZA()()),2&i){const n=t.oxw();t.xp6(2),t.Oqu(n.errorMessage)}}let se=(()=>{var i;class o{constructor(){this.channelsStatus={}}}return(i=o).\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-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(e,a){if(1&e&&(t.YNc(0,ae,42,18,"div",0),t.YNc(1,oe,3,1,"ng-template",null,1,t.W1O)),2&e){const s=t.MAs(2);t.Q6J("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",s)}},dependencies:[u.O5,h.xw,h.Wh,h.yH,u.JJ]}),o})();var C=g(9549),X=g(4850),W=g(266),P=g(6839);const le=function(){return["../connections/channels/open"]},re=function(i,o){return{filterColumn:i,filterValue:o}};function ce(i,o){if(1&i&&(t.TgZ(0,"div",19)(1,"a",20),t._uU(2),t.ALo(3,"slice"),t.qZA(),t.TgZ(4,"div",6)(5,"mat-hint",21)(6,"strong",8),t._uU(7,"Local:"),t.qZA(),t._uU(8),t.ALo(9,"number"),t.qZA(),t.TgZ(10,"mat-hint",22),t._UZ(11,"fa-icon",23),t._uU(12),t.ALo(13,"number"),t.qZA(),t.TgZ(14,"mat-hint",24)(15,"strong",8),t._uU(16,"Remote:"),t.qZA(),t._uU(17),t.ALo(18,"number"),t.qZA()(),t._UZ(19,"mat-progress-bar",25),t.qZA()),2&i){const n=o.$implicit,e=t.oxw(3);t.xp6(1),t.s9C("matTooltip",n.alias||n.shortChannelId),t.s9C("matTooltipDisabled",(n.alias||n.shortChannelId).length<26),t.Q6J("routerLink",t.DdM(23,le))("state",t.WLB(24,re,n.alias?"alias":"shortChannelId",n.alias||n.shortChannelId)),t.xp6(1),t.AsE(" ",t.Dn7(3,11,(null==n?null:n.alias)||(null==n?null:n.shortChannelId),0,24),"",((null==n?null:n.alias)||(null==n?null:n.shortChannelId)).length>25?"...":""," "),t.xp6(6),t.hij("",t.xi3(9,15,(null==n?null:n.toLocal)||0,"1.0-0")," Sats"),t.xp6(3),t.Q6J("icon",e.faBalanceScale),t.xp6(1),t.hij(" (",t.lcZ(13,18,(null==n?null:n.balancedness)||0),") "),t.xp6(5),t.hij("",t.xi3(18,20,(null==n?null:n.toRemote)||0,"1.0-0")," Sats"),t.xp6(2),t.s9C("value",n.toLocal&&n.toLocal>0?+n.toLocal/(+n.toLocal+ +n.toRemote)*100:0)}}function ue(i,o){if(1&i&&(t.TgZ(0,"div",17),t.YNc(1,ce,20,27,"div",18),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",n.allChannels)}}function pe(i,o){if(1&i&&(t.TgZ(0,"div",3)(1,"div",4)(2,"span",5),t._uU(3,"Total Capacity"),t.qZA(),t.TgZ(4,"div",6)(5,"mat-hint",7)(6,"strong",8),t._uU(7,"Local:"),t.qZA(),t._uU(8),t.ALo(9,"number"),t.qZA(),t.TgZ(10,"mat-hint",9),t._UZ(11,"fa-icon",10),t._uU(12),t.ALo(13,"number"),t.qZA(),t.TgZ(14,"mat-hint",11)(15,"strong",8),t._uU(16,"Remote:"),t.qZA(),t._uU(17),t.ALo(18,"number"),t.qZA()(),t._UZ(19,"mat-progress-bar",12),t.qZA(),t.TgZ(20,"div",13),t._UZ(21,"mat-divider",14),t.qZA(),t.TgZ(22,"div",15),t.YNc(23,ue,2,1,"div",16),t.qZA()()),2&i){const n=t.oxw(),e=t.MAs(2);t.xp6(8),t.hij("",t.xi3(9,7,(null==n.channelBalances?null:n.channelBalances.localBalance)||0,"1.0-0")," Sats"),t.xp6(3),t.Q6J("icon",n.faBalanceScale),t.xp6(1),t.hij(" (",t.lcZ(13,10,(null==n.channelBalances?null:n.channelBalances.balancedness)||0),") "),t.xp6(5),t.hij("",t.xi3(18,12,(null==n.channelBalances?null:n.channelBalances.remoteBalance)||0,"1.0-0")," Sats"),t.xp6(2),t.s9C("value",null!=n.channelBalances&&n.channelBalances.localBalance&&(null==n.channelBalances?null:n.channelBalances.localBalance)>0?+(null==n.channelBalances?null:n.channelBalances.localBalance)/(+(null==n.channelBalances?null:n.channelBalances.localBalance)+ +(null==n.channelBalances?null:n.channelBalances.remoteBalance))*100:0),t.xp6(4),t.Q6J("ngIf",n.allChannels&&(null==n.allChannels?null:n.allChannels.length)>0)("ngIfElse",e)}}function me(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",26),t._uU(1," No channels available. "),t.TgZ(2,"button",27),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.goToChannels())}),t._uU(3,"Open Channel"),t.qZA()()}}function de(i,o){if(1&i&&(t.TgZ(0,"div",28)(1,"p"),t._uU(2),t.qZA()()),2&i){const n=t.oxw();t.xp6(2),t.Oqu(n.errorMessage)}}let he=(()=>{var i;class o{constructor(e){this.router=e,this.faBalanceScale=L.DL8,this.faDumbbell=L.FlN,this.sortBy="Balance Score"}goToChannels(){this.router.navigateByUrl("/ecl/connections")}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(b.F0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-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","8","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90"],[1,"font-weight-900","mr-5px"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90"],["matTooltip","Balance Score",1,"mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90"],["mode","determinate","color","accent",1,"dashboard-progress-bar","this-channel-bar",3,"value"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[1,"channels-capacity-scroll",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"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(e,a){if(1&e&&(t.YNc(0,pe,24,15,"div",0),t.YNc(1,me,4,0,"ng-template",null,1,t.W1O),t.YNc(3,de,3,1,"ng-template",null,2,t.W1O)),2&e){const s=t.MAs(4);t.Q6J("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",s)}},dependencies:[u.sg,u.O5,I.BN,h.xw,h.Wh,h.yH,F.lW,C.bx,X.d,H.pW,W.gM,P.$V,b.rH,u.OU,u.JJ],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}),o})();function _e(i,o){if(1&i&&(t.TgZ(0,"mat-hint",19)(1,"strong",20),t._uU(2,"Capacity: "),t.qZA(),t._uU(3),t.ALo(4,"number"),t.qZA()),2&i){const n=t.oxw().$implicit;t.xp6(3),t.hij("",t.xi3(4,1,n.toRemote||0,"1.0-0")," Sats")}}function ge(i,o){if(1&i&&(t.TgZ(0,"mat-hint",19)(1,"strong",20),t._uU(2,"Capacity: "),t.qZA(),t._uU(3),t.ALo(4,"number"),t.qZA()),2&i){const n=t.oxw().$implicit;t.xp6(3),t.hij("",t.xi3(4,1,n.toLocal||0,"1.0-0")," Sats")}}function fe(i,o){if(1&i&&t._UZ(0,"mat-progress-bar",21),2&i){const n=t.oxw().$implicit,e=t.oxw(3);t.s9C("value",e.totalLiquidity>0?(+n.toRemote||0)/e.totalLiquidity*100:0)}}function Ce(i,o){if(1&i&&t._UZ(0,"mat-progress-bar",21),2&i){const n=t.oxw().$implicit,e=t.oxw(3);t.s9C("value",e.totalLiquidity>0?(+n.toLocal||0)/e.totalLiquidity*100:0)}}const xe=function(){return["../connections/channels/open"]},ye=function(i,o){return{filterColumn:i,filterValue:o}};function be(i,o){if(1&i&&(t.TgZ(0,"div",14)(1,"a",15),t._uU(2),t.ALo(3,"slice"),t.qZA(),t.TgZ(4,"div",16),t.YNc(5,_e,5,4,"mat-hint",17),t.YNc(6,ge,5,4,"mat-hint",17),t.qZA(),t.YNc(7,fe,1,1,"mat-progress-bar",18),t.YNc(8,Ce,1,1,"mat-progress-bar",18),t.qZA()),2&i){const n=o.$implicit,e=t.oxw(3);t.xp6(1),t.s9C("matTooltip",n.alias||n.shortChannelId),t.s9C("matTooltipDisabled",(n.alias||n.shortChannelId).length<26),t.Q6J("routerLink",t.DdM(14,xe))("state",t.WLB(15,ye,n.alias?"alias":"shortChannelId",n.alias||n.shortChannelId)),t.xp6(1),t.AsE(" ",t.Dn7(3,10,n.alias||n.shortChannelId,0,24),"",(n.alias||n.shortChannelId).length>25?"...":""," "),t.xp6(3),t.Q6J("ngIf","In"===e.direction),t.xp6(1),t.Q6J("ngIf","Out"===e.direction),t.xp6(1),t.Q6J("ngIf","In"===e.direction),t.xp6(1),t.Q6J("ngIf","Out"===e.direction)}}function Le(i,o){if(1&i&&(t.TgZ(0,"div",12),t.YNc(1,be,9,18,"div",13),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",n.allChannels)}}const Te=function(i,o,n){return{"mb-4":i,"mb-2":o,"mb-1":n}};function ve(i,o){if(1&i&&(t.TgZ(0,"div",3)(1,"div",4)(2,"span",5),t._uU(3,"Total Capacity"),t.qZA(),t.TgZ(4,"mat-hint",6),t._uU(5),t.ALo(6,"number"),t.qZA(),t._UZ(7,"mat-progress-bar",7),t.qZA(),t.TgZ(8,"div",8),t._UZ(9,"mat-divider",9),t.qZA(),t.TgZ(10,"div",10),t.YNc(11,Le,2,1,"div",11),t.qZA()()),2&i){const n=t.oxw(),e=t.MAs(2);t.Q6J("ngClass",t.kEZ(7,Te,n.screenSize===n.screenSizeEnum.XS||n.screenSize===n.screenSizeEnum.SM,n.screenSize===n.screenSizeEnum.MD,n.screenSize===n.screenSizeEnum.LG||n.screenSize===n.screenSizeEnum.XL)),t.xp6(5),t.hij("",t.xi3(6,4,n.totalLiquidity,"1.0-0")," Sats"),t.xp6(6),t.Q6J("ngIf",n.allChannels&&n.allChannels.length>0)("ngIfElse",e)}}function Ze(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.goToChannels())}),t._uU(1,"Open Channel"),t.qZA()}}function Se(i,o){if(1&i&&(t.TgZ(0,"div",22),t._uU(1," No channels available. "),t.YNc(2,Ze,2,0,"button",23),t.qZA()),2&i){const n=t.oxw();t.xp6(2),t.Q6J("ngIf","Out"===n.direction)}}function Ae(i,o){if(1&i&&(t.TgZ(0,"div",25)(1,"p"),t._uU(2),t.qZA()()),2&i){const n=t.oxw();t.xp6(2),t.Oqu(n.errorMessage)}}let Ee=(()=>{var i;class o{constructor(e,a){this.router=e,this.commonService=a,this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}goToChannels(){this.router.navigateByUrl("/ecl/connections")}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(b.F0),t.Y36(M.v))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",allChannels:"allChannels",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","8","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],[1,"font-size-90"],["mode","determinate","color","accent","value","100",1,"dashboard-progress-bar","this-channel-bar"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],["fxLayout","column","fxFlex.gt-sm","88","fxFlex","84","fxLayoutAlign","start start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100","class","w-100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100",1,"w-100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"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 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(e,a){if(1&e&&(t.YNc(0,ve,12,11,"div",0),t.YNc(1,Se,3,1,"ng-template",null,1,t.W1O),t.YNc(3,Ae,3,1,"ng-template",null,2,t.W1O)),2&e){const s=t.MAs(4);t.Q6J("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",s)}},dependencies:[u.mk,u.sg,u.O5,h.xw,h.Wh,h.yH,Z.oO,F.lW,C.bx,X.d,H.pW,W.gM,P.$V,b.rH,u.OU,u.JJ]}),o})();var G=g(5698),w=g(8739),v=g(6308),c=g(671),Y=g(9300),k=g(2994),D=g(5412),ut=g(3289),K=g(493),pt=g(8104),d=g(4006),Q=g(4144),$=g(3390);const we=["paymentReq"];function Ie(i,o){if(1&i&&(t.TgZ(0,"mat-hint"),t._uU(1),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Oqu(n.paymentDecodedHint)}}function Fe(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Payment request is required."),t.qZA())}function qe(i,o){if(1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Oqu(n.paymentDecodedHint)}}function Ne(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Payment amount is required."),t.qZA())}function Oe(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"mat-form-field",1)(1,"mat-label"),t._uU(2,"Amount (Sats)"),t.qZA(),t.TgZ(3,"input",18,19),t.NdJ("ngModelChange",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.paymentAmount=a)})("change",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.onAmountChange(a))}),t.qZA(),t.TgZ(5,"mat-hint"),t._uU(6,"It is a zero amount invoice, enter amount to be paid."),t.qZA(),t.YNc(7,Ne,2,0,"mat-error",12),t.qZA()}if(2&i){const n=t.oxw();t.xp6(3),t.Q6J("ngModel",n.paymentAmount),t.xp6(4),t.Q6J("ngIf",!n.paymentAmount)}}function Pe(i,o){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Oqu(n.paymentError)}}function ke(i,o){if(1&i&&(t.TgZ(0,"div",20),t._UZ(1,"fa-icon",21),t.YNc(2,Pe,2,1,"span",12),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Q6J("icon",n.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==n.paymentError)}}let Ue=(()=>{var i;class o{constructor(e,a,s,r,p,x,N,y){this.dialogRef=e,this.store=a,this.eclEffects=s,this.logger=r,this.commonService=p,this.decimalPipe=x,this.actions=N,this.dataService=y,this.faExclamationTriangle=L.eHv,this.selNode={},this.paymentDecoded={},this.zeroAmtInvoice=!1,this.paymentAmount=null,this.paymentRequest="",this.paymentDecodedHint="",this.selActiveChannel={},this.activeChannels={},this.feeLimit=null,this.selFeeLimitType=l.Vc[0],this.feeLimitTypes=l.Vc,this.paymentError="",this.unSubs=[new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.store.select(f.LR).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(f.Xz).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.activeChannels=e.activeChannels,this.logger.info(e)}),this.actions.pipe((0,_.R)(this.unSubs[1]),(0,Y.h)(e=>e.type===l.lr.UPDATE_API_CALL_STATUS_ECL||e.type===l.lr.SEND_PAYMENT_STATUS_ECL)).subscribe(e=>{e.type===l.lr.SEND_PAYMENT_STATUS_ECL&&this.dialogRef.close(),e.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&e.payload.status===l.Bn.ERROR&&"SendPayment"===e.payload.action&&(delete this.paymentDecoded.amount,this.paymentError=e.payload.message)})}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp?this.sendPayment():(this.paymentAmount=null,this.paymentError="",this.paymentDecodedHint="",this.paymentReq.control.setErrors(null),this.dataService.decodePayment(this.paymentRequest,!0).pipe((0,G.q)(1)).subscribe({next:e=>{this.paymentDecoded=e,this.paymentDecoded.timestamp&&!this.paymentDecoded.amount?(this.paymentDecoded.amount=0,this.zeroAmtInvoice=!0,this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description):(this.zeroAmtInvoice=!1,this.selNode&&this.selNode.fiatConversion&&this.paymentDecoded.amount?this.commonService.convertCurrency(+this.paymentDecoded.amount,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[2])).subscribe({next:a=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats ("+a.symbol+this.decimalPipe.transform(a.OTHER?a.OTHER:0,l.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:a=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description)},error:e=>{this.logger.error(e),this.paymentDecodedHint="ERROR: "+(e.message?e.message:"string"==typeof e?e:JSON.stringify(e)),this.paymentReq.control.setErrors({decodeError:!0})}}))}sendPayment(){this.store.dispatch((0,k.oV)(this.zeroAmtInvoice&&this.paymentAmount?{payload:{invoice:this.paymentRequest,amountMsat:1e3*this.paymentAmount,fromDialog:!0}}:{payload:{invoice:this.paymentRequest,fromDialog:!0}}))}onPaymentRequestEntry(e){this.paymentRequest=e&&"string"==typeof e?e.trim():e,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,G.q)(1)).subscribe({next:a=>{this.paymentDecoded=a,this.paymentDecoded.timestamp&&!this.paymentDecoded.amount?(this.paymentDecoded.amount=0,this.zeroAmtInvoice=!0,this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description):(this.zeroAmtInvoice=!1,this.selNode&&this.selNode.fiatConversion&&this.paymentDecoded.amount?this.commonService.convertCurrency(+this.paymentDecoded.amount,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[3])).subscribe({next:s=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats ("+s.symbol+this.decimalPipe.transform(s.OTHER?s.OTHER:0,l.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:s=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description)},error:a=>{this.logger.error(a),this.paymentDecodedHint="ERROR: "+(a.message?a.message:"string"==typeof a?a:JSON.stringify(a)),this.paymentReq.control.setErrors({decodeError:!0})}}))}onAmountChange(e){delete this.paymentDecoded.amount,this.paymentDecoded.amount=e}resetData(){this.paymentDecoded={},this.paymentRequest="",this.selActiveChannel=null,this.feeLimit=null,this.selFeeLimitType=l.Vc[0],this.paymentReq.control.setErrors(null),this.paymentError="",this.paymentDecodedHint="",this.zeroAmtInvoice=!1}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(D.so),t.Y36(E.yh),t.Y36(ut.o),t.Y36(R.mQ),t.Y36(M.v),t.Y36(u.JJ),t.Y36(K.eX),t.Y36(pt.D))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-lightning-send-payments"]],viewQuery:function(e,a){if(1&e&&t.Gf(we,5),2&e){let s;t.iGM(s=t.CRH())&&(a.paymentReq=s.first)}},decls:26,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 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"],["fxLayout","column","fxFlex","100"],["autoFocus","","matInput","","name","paymentRequest","rows","4","tabindex","1","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","3",3,"click"],["matInput","","name","amount","tabindex","2","required","",3,"ngModel","ngModelChange","change"],["paymentAmt","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,a){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Send Payment"),t.qZA()(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8)(11,"mat-form-field",9)(12,"mat-label"),t._uU(13,"Payment Request"),t.qZA(),t.TgZ(14,"textarea",10,11),t.NdJ("ngModelChange",function(r){return a.onPaymentRequestEntry(r)})("matTextareaAutosize",function(){return!0}),t.qZA(),t.YNc(16,Ie,2,1,"mat-hint",12),t.YNc(17,Fe,2,0,"mat-error",12),t.YNc(18,qe,2,1,"mat-error",12),t.qZA(),t.YNc(19,Oe,8,2,"mat-form-field",13),t.YNc(20,ke,3,2,"div",14),t.TgZ(21,"div",15)(22,"button",16),t.NdJ("click",function(){return a.resetData()}),t._uU(23,"Clear Fields"),t.qZA(),t.TgZ(24,"button",17),t.NdJ("click",function(){return a.onSendPayment()}),t._uU(25,"Send Payment"),t.qZA()()()()()()),2&e){const s=t.MAs(15);t.xp6(6),t.Q6J("mat-dialog-close",!1),t.xp6(8),t.Q6J("ngModel",a.paymentRequest),t.xp6(2),t.Q6J("ngIf",a.paymentRequest&&""!==a.paymentDecodedHint),t.xp6(1),t.Q6J("ngIf",!a.paymentRequest),t.xp6(1),t.Q6J("ngIf",null==s.errors?null:s.errors.decodeError),t.xp6(1),t.Q6J("ngIf",a.zeroAmtInvoice),t.xp6(1),t.Q6J("ngIf",""!==a.paymentError)}},dependencies:[u.O5,d._Y,d.Fj,d.JJ,d.JL,d.Q7,d.On,d.F,I.BN,h.xw,h.Wh,h.yH,D.ZT,F.lW,T.dn,T.dk,Q.Nt,C.KE,C.hX,C.bx,C.TO,$.h]}),o})();var B=g(752);const Re=["scrollContainer"];function Me(i,o){if(1&i&&(t.TgZ(0,"div",9)(1,"div",1)(2,"h4",11),t._uU(3,"Description"),t.qZA(),t.TgZ(4,"span",12),t._uU(5),t.qZA()()()),2&i){const n=t.oxw();t.xp6(5),t.Oqu(n.description)}}function De(i,o){1&i&&t._UZ(0,"mat-divider",14)}function Je(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"mat-expansion-panel",23),t.NdJ("opened",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onExpansionOpen(!0))})("closed",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onExpansionOpen(!1))}),t.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"h4",24),t._uU(4),t.qZA(),t.TgZ(5,"h4",25),t._uU(6),t.ALo(7,"number"),t.qZA()()(),t.TgZ(8,"div",8)(9,"div",9)(10,"div",26)(11,"h4",11),t._uU(12,"Fees (mSats)"),t.qZA(),t.TgZ(13,"span",12),t._uU(14),t.ALo(15,"number"),t.qZA()(),t.TgZ(16,"div",26)(17,"h4",11),t._uU(18,"Date/Time"),t.qZA(),t.TgZ(19,"span",12),t._uU(20),t.ALo(21,"date"),t.qZA()()(),t._UZ(22,"mat-divider",14),t.TgZ(23,"div",9)(24,"div",1)(25,"h4",11),t._uU(26,"ID"),t.qZA(),t.TgZ(27,"span",27),t._uU(28),t.qZA()()(),t._UZ(29,"mat-divider",14),t.TgZ(30,"div",9)(31,"div",1)(32,"h4",11),t._uU(33,"To Channel"),t.qZA(),t.TgZ(34,"span",27),t._uU(35),t.qZA()()()()()}if(2&i){const n=o.$implicit,e=o.index,a=t.oxw();t.Q6J("expanded",a.expansionOpen),t.xp6(4),t.hij("Part ",e+1,""),t.xp6(2),t.hij("",t.lcZ(7,7,n.amount)," (Sats)"),t.xp6(8),t.Oqu(t.lcZ(15,9,n.feesPaid)),t.xp6(6),t.Oqu(t.xi3(21,11,n.timestamp,"dd/MMM/y HH:mm")),t.xp6(8),t.Oqu(n.id),t.xp6(7),t.Oqu(n.toChannelAlias)}}let He=(()=>{var i;class o{constructor(e,a){this.dialogRef=e,this.data=a,this.description=null,this.shouldScroll=!0,this.expansionOpen=!0}ngOnInit(){this.payment=this.data.payment,this.data.sentPaymentInfo.length>0&&this.data.sentPaymentInfo[0].paymentRequest&&this.data.sentPaymentInfo[0].paymentRequest.description&&""!==this.data.sentPaymentInfo[0].paymentRequest.description&&(this.description=this.data.sentPaymentInfo[0].paymentRequest.description)}ngAfterViewChecked(){this.shouldScroll=this.scrollContainer.nativeElement.classList.value.includes("ps--active-y")}onScrollDown(){this.scrollContainer.nativeElement.scrollTop=this.scrollContainer.nativeElement.scrollTop+62.6}onExpansionOpen(e){this.expansionOpen=e}onClose(){this.dialogRef.close(!1)}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(D.so),t.Y36(D.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-payment-information"]],viewQuery:function(e,a){if(1&e&&t.Gf(Re,5),2&e){let s;t.iGM(s=t.CRH())&&(a.scrollContainer=s.first)}},decls:66,vars:15,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"h-40","padding-gap-x-large",3,"perfectScrollbar"],["scrollContainer",""],["fxLayout","column"],["fxLayout","row"],["fxFlex","30"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],["fxFlex","70"],[1,"w-100","my-1"],["fxLayout","row",4,"ngIf"],["class","w-100 my-1",4,"ngIf"],["class","flat-expansion-panel my-1",3,"expanded","opened","closed",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container","padding-gap-x-large"],["mat-mini-fab","","aria-label","Scroll Down","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center"],["fxLayout","row","fxLayoutAlign","end center",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","tabindex","1","mat-button","","color","primary","type","button","default","",1,"mr-1",3,"mat-dialog-close"],[1,"flat-expansion-panel","my-1",3,"expanded","opened","closed"],["fxFlex","30","fxLayoutAlign","start",1,"font-bold-500"],["fxFlex","70","fxLayoutAlign","start",1,"font-bold-500"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Payment Information"),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return a.onClose()}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6,7)(10,"div",8)(11,"div",9)(12,"div",10)(13,"h4",11),t._uU(14,"Amount (Sats)"),t.qZA(),t.TgZ(15,"span",12),t._uU(16),t.ALo(17,"number"),t.qZA()(),t.TgZ(18,"div",13)(19,"h4",11),t._uU(20,"Date/Time"),t.qZA(),t.TgZ(21,"span",12),t._uU(22),t.ALo(23,"date"),t.qZA()()(),t._UZ(24,"mat-divider",14),t.TgZ(25,"div",9)(26,"div",1)(27,"h4",11),t._uU(28,"ID"),t.qZA(),t.TgZ(29,"span",12),t._uU(30),t.qZA()()(),t._UZ(31,"mat-divider",14),t.TgZ(32,"div",9)(33,"div",1)(34,"h4",11),t._uU(35,"Payment Hash"),t.qZA(),t.TgZ(36,"span",12),t._uU(37),t.qZA()()(),t._UZ(38,"mat-divider",14),t.TgZ(39,"div",9)(40,"div",1)(41,"h4",11),t._uU(42,"Payment Preimage"),t.qZA(),t.TgZ(43,"span",12),t._uU(44),t.qZA()()(),t._UZ(45,"mat-divider",14),t.TgZ(46,"div",9)(47,"div",1)(48,"h4",11),t._uU(49,"Recipient Node"),t.qZA(),t.TgZ(50,"span",12),t._uU(51),t.qZA()()(),t._UZ(52,"mat-divider",14),t.YNc(53,Me,6,1,"div",15),t.YNc(54,De,1,0,"mat-divider",16),t.TgZ(55,"div",9)(56,"div",1)(57,"mat-accordion"),t.YNc(58,Je,36,14,"mat-expansion-panel",17),t.qZA()()()()(),t.TgZ(59,"div",18)(60,"button",19),t.NdJ("click",function(){return a.onScrollDown()}),t.TgZ(61,"mat-icon",20),t._uU(62,"arrow_downward"),t.qZA()()(),t.TgZ(63,"div",21)(64,"button",22),t._uU(65,"OK"),t.qZA()()()()),2&e&&(t.xp6(16),t.Oqu(t.lcZ(17,10,a.payment.recipientAmount)),t.xp6(6),t.Oqu(t.xi3(23,12,a.payment.firstPartTimestamp,"dd/MMM/y HH:mm")),t.xp6(8),t.Oqu(a.payment.id),t.xp6(7),t.Oqu(a.payment.paymentHash),t.xp6(7),t.Oqu(a.payment.paymentPreimage),t.xp6(7),t.Oqu(a.payment.recipientNodeAlias),t.xp6(2),t.Q6J("ngIf",a.description),t.xp6(1),t.Q6J("ngIf",a.description),t.xp6(4),t.Q6J("ngForOf",a.payment.parts),t.xp6(6),t.Q6J("mat-dialog-close",!1))},dependencies:[u.sg,u.O5,h.xw,h.Wh,h.yH,D.ZT,F.lW,F.nh,T.dn,T.dk,B.pp,B.ib,B.yz,B.yK,rt.Hw,X.d,P.$V,u.JJ,u.uU]}),o})();var S=g(7861),A=g(4385),it=g(3093),z=g(9445),V=g(3238);const Qe=["sendPaymentForm"];function Ye(i,o){if(1&i&&(t.TgZ(0,"mat-hint"),t._uU(1),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Oqu(n.paymentDecodedHint)}}function Be(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Payment request is required."),t.qZA())}function Ve(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"form",4,5)(2,"mat-form-field",6)(3,"mat-label"),t._uU(4,"Payment Request"),t.qZA(),t.TgZ(5,"textarea",7,8),t.NdJ("ngModelChange",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.onPaymentRequestEntry(a))})("matTextareaAutosize",function(){return!0}),t.qZA(),t.YNc(7,Ye,2,1,"mat-hint",9),t.YNc(8,Be,2,0,"mat-error",9),t.qZA(),t.TgZ(9,"div",10)(10,"button",11),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.resetData())}),t._uU(11,"Clear Field"),t.qZA(),t.TgZ(12,"button",12),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onSendPayment())}),t._uU(13,"Send Payment"),t.qZA()()()}if(2&i){const n=t.oxw();t.xp6(5),t.Q6J("ngModel",n.paymentRequest),t.xp6(2),t.Q6J("ngIf",n.paymentRequest&&""!==n.paymentDecodedHint),t.xp6(1),t.Q6J("ngIf",!n.paymentRequest)}}function ze(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",13)(1,"button",12),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.openSendPaymentModal())}),t._uU(2,"Send Payment"),t.qZA()()}}function Ge(i,o){if(1&i&&(t.TgZ(0,"mat-option",59),t._uU(1),t.qZA()),2&i){const n=o.$implicit,e=t.oxw(2);t.Q6J("value",n),t.xp6(1),t.Oqu(e.getLabel(n))}}function We(i,o){1&i&&t._UZ(0,"mat-progress-bar",60)}function Ke(i,o){1&i&&(t.TgZ(0,"th",61),t._uU(1,"Date/Time"),t.qZA())}function Xe(i,o){if(1&i&&(t.TgZ(0,"td",62),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,null==n?null:n.firstPartTimestamp,"dd/MMM/y HH:mm"))}}function $e(i,o){1&i&&(t.TgZ(0,"th",61),t._uU(1,"ID"),t.qZA())}const J=function(i){return{width:i}};function je(i,o){if(1&i&&(t.TgZ(0,"td",62)(1,"div",63)(2,"span",64),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.id)}}function tn(i,o){1&i&&(t.TgZ(0,"th",61),t._uU(1,"Destination Node ID"),t.qZA())}function en(i,o){if(1&i&&(t.TgZ(0,"td",62)(1,"div",63)(2,"span",64),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.recipientNodeId)}}function nn(i,o){1&i&&(t.TgZ(0,"th",61),t._uU(1,"Destination"),t.qZA())}function an(i,o){if(1&i&&(t.TgZ(0,"td",62)(1,"div",63)(2,"span",64),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.recipientNodeAlias)}}function on(i,o){1&i&&(t.TgZ(0,"th",61),t._uU(1,"Description"),t.qZA())}function sn(i,o){if(1&i&&(t.TgZ(0,"td",62)(1,"div",63)(2,"span",64),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.description)}}function ln(i,o){1&i&&(t.TgZ(0,"th",61),t._uU(1,"Payment Hash"),t.qZA())}function rn(i,o){if(1&i&&(t.TgZ(0,"td",62)(1,"div",63)(2,"span",64),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.paymentHash)}}function cn(i,o){1&i&&(t.TgZ(0,"th",61),t._uU(1,"Preimage"),t.qZA())}function un(i,o){if(1&i&&(t.TgZ(0,"td",62)(1,"div",63)(2,"span",64),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.paymentPreimage)}}function pn(i,o){1&i&&(t.TgZ(0,"th",65),t._uU(1,"Amount (Sats)"),t.qZA())}function mn(i,o){if(1&i&&(t.TgZ(0,"td",62)(1,"span",66),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==n?null:n.recipientAmount))}}function dn(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"th",67)(1,"div",68)(2,"mat-select",69),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",70),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.onDownloadCSV())}),t._uU(5,"Download CSV"),t.qZA()()()()}}function hn(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"td",71)(1,"button",72),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw(2);return t.KtG(r.onPaymentClick(s))}),t._uU(2,"View Info"),t.qZA()()}}function _n(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"No payment available."),t.qZA())}function gn(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"Getting payments..."),t.qZA())}function fn(i,o){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&i){const n=t.oxw(3);t.xp6(1),t.Oqu(n.errorMessage)}}function Cn(i,o){if(1&i&&(t.TgZ(0,"td",73),t.YNc(1,_n,2,0,"p",9),t.YNc(2,gn,2,0,"p",9),t.YNc(3,fn,2,1,"p",9),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=n.payments&&n.payments.data)||(null==n.payments||null==n.payments.data?null:n.payments.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.payments&&n.payments.data)||(null==n.payments||null==n.payments.data?null:n.payments.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.payments&&n.payments.data)||(null==n.payments||null==n.payments.data?null:n.payments.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function xn(i,o){if(1&i&&(t.TgZ(0,"span",74),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,n.timestamp,"dd/MMM/y HH:mm")," ")}}function yn(i,o){if(1&i&&(t.ynx(0),t.YNc(1,xn,3,4,"span",75),t.BQk()),2&i){const n=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==n?null:n.parts)}}function bn(i,o){if(1&i&&(t.TgZ(0,"td",62)(1,"span",74),t._uU(2),t.qZA(),t.YNc(3,yn,2,1,"ng-container",9),t.qZA()),2&i){const n=o.$implicit;t.xp6(2),t.hij(" Total Attempts: ",(null==n||null==n.parts?null:n.parts.length)||0," "),t.xp6(1),t.Q6J("ngIf",null==n?null:n.is_expanded)}}function Ln(i,o){if(1&i&&(t.TgZ(0,"span",74)(1,"span",76)(2,"span",64),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(4);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(n.id)}}function Tn(i,o){if(1&i&&(t.TgZ(0,"span"),t.YNc(1,Ln,4,4,"span",75),t.qZA()),2&i){const n=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==n?null:n.parts)}}function vn(i,o){if(1&i&&(t.TgZ(0,"td",62)(1,"div",76)(2,"span",64),t._uU(3),t.qZA()(),t.YNc(4,Tn,2,1,"span",9),t.qZA()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(3,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.id),t.xp6(1),t.Q6J("ngIf",null==n?null:n.is_expanded)}}function Zn(i,o){if(1&i&&(t.TgZ(0,"span",74)(1,"span",76)(2,"span",64),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(4);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(n.toChannelId)}}function Sn(i,o){if(1&i&&(t.TgZ(0,"span"),t.YNc(1,Zn,4,4,"span",75),t.qZA()),2&i){const n=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==n?null:n.parts)}}function An(i,o){if(1&i&&(t.TgZ(0,"td",62)(1,"div",76)(2,"span",64),t._uU(3),t.qZA()(),t.YNc(4,Sn,2,1,"span",9),t.qZA()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(3,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.recipientNodeId),t.xp6(1),t.Q6J("ngIf",null==n?null:n.is_expanded)}}function En(i,o){if(1&i&&(t.TgZ(0,"span",74)(1,"span",76)(2,"span",64),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(4);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(n.toChannelAlias)}}function wn(i,o){if(1&i&&(t.TgZ(0,"span"),t.YNc(1,En,4,4,"span",75),t.qZA()),2&i){const n=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==n?null:n.parts)}}function In(i,o){if(1&i&&(t.TgZ(0,"td",62)(1,"div",76)(2,"span",64),t._uU(3),t.qZA()(),t.YNc(4,wn,2,1,"span",9),t.qZA()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(3,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.recipientNodeAlias),t.xp6(1),t.Q6J("ngIf",null==n?null:n.is_expanded)}}function Fn(i,o){if(1&i&&(t.TgZ(0,"span",77),t._uU(1),t.ALo(2,"number"),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,n.amount,"1.0-0")," ")}}function qn(i,o){if(1&i&&(t.TgZ(0,"span"),t.YNc(1,Fn,3,4,"span",78),t.qZA()),2&i){const n=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==n?null:n.parts)}}function Nn(i,o){if(1&i&&(t.TgZ(0,"td",62)(1,"span",77),t._uU(2),t.ALo(3,"number"),t.qZA(),t.YNc(4,qn,2,1,"span",9),t.qZA()),2&i){const n=o.$implicit;t.xp6(2),t.Oqu(t.xi3(3,2,null==n?null:n.recipientAmount,"1.0-0")),t.xp6(2),t.Q6J("ngIf",null==n?null:n.is_expanded)}}function On(i,o){if(1&i&&(t.TgZ(0,"span",74)(1,"span",76)(2,"span",64),t._uU(3),t.ALo(4,"number"),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(4);t.xp6(1),t.Q6J("ngStyle",t.VKq(5,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.hij("Fee Paid: ",t.xi3(4,2,n.feesPaid,"1.0-0")," (Sats)")}}function Pn(i,o){if(1&i&&(t.TgZ(0,"span"),t.YNc(1,On,5,7,"span",75),t.qZA()),2&i){const n=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==n?null:n.parts)}}function kn(i,o){if(1&i&&(t.TgZ(0,"td",62)(1,"div",76)(2,"span",64),t._uU(3),t.qZA()(),t.YNc(4,Pn,2,1,"span",9),t.qZA()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(3,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.description),t.xp6(1),t.Q6J("ngIf",null==n?null:n.is_expanded)}}function Un(i,o){if(1&i&&(t.TgZ(0,"span",74)(1,"span",76)(2,"span",64),t._uU(3),t.ALo(4,"number"),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(4);t.xp6(1),t.Q6J("ngStyle",t.VKq(5,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.hij("Fee Paid: ",t.xi3(4,2,n.feesPaid,"1.0-0")," (Sats)")}}function Rn(i,o){if(1&i&&(t.TgZ(0,"span"),t.YNc(1,Un,5,7,"span",75),t.qZA()),2&i){const n=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==n?null:n.parts)}}function Mn(i,o){if(1&i&&(t.TgZ(0,"td",62)(1,"div",76)(2,"span",64),t._uU(3),t.qZA()(),t.YNc(4,Rn,2,1,"span",9),t.qZA()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(3,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.paymentHash),t.xp6(1),t.Q6J("ngIf",null==n?null:n.is_expanded)}}function Dn(i,o){if(1&i&&(t.TgZ(0,"span",74)(1,"span",76)(2,"span",64),t._uU(3),t.ALo(4,"number"),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(4);t.xp6(1),t.Q6J("ngStyle",t.VKq(5,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.hij("Fee Paid: ",t.xi3(4,2,n.feesPaid,"1.0-0")," (Sats)")}}function Jn(i,o){if(1&i&&(t.TgZ(0,"span"),t.YNc(1,Dn,5,7,"span",75),t.qZA()),2&i){const n=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==n?null:n.parts)}}function Hn(i,o){if(1&i&&(t.TgZ(0,"td",62)(1,"div",76)(2,"span",64),t._uU(3),t.qZA()(),t.YNc(4,Jn,2,1,"span",9),t.qZA()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(3,J,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.paymentPreimage),t.xp6(1),t.Q6J("ngIf",null==n?null:n.is_expanded)}}function Qn(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",82)(1,"button",83),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw(2).$implicit,p=t.oxw(2);return t.KtG(p.onPartClick(s,r))}),t._uU(2),t.qZA()()}if(2&i){const n=o.index;t.xp6(2),t.hij("View ",n+1,"")}}function Yn(i,o){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,Qn,3,1,"div",81),t.qZA()),2&i){const n=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==n?null:n.parts)}}function Bn(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"td",62)(1,"span",79)(2,"button",80),t.NdJ("click",function(){const s=t.CHM(n).$implicit;return t.KtG(s.is_expanded=!s.is_expanded)}),t._uU(3),t.qZA()(),t.YNc(4,Yn,2,1,"div",9),t.qZA()}if(2&i){const n=o.$implicit;t.xp6(3),t.Oqu(null!=n&&n.is_expanded?"Hide":"Show"),t.xp6(1),t.Q6J("ngIf",null==n?null:n.is_expanded)}}function Vn(i,o){1&i&&t._UZ(0,"tr",84)}const zn=function(i){return{"display-none":i}};function Gn(i,o){if(1&i&&t._UZ(0,"tr",85),2&i){const n=t.oxw(2);t.Q6J("ngClass",t.VKq(1,zn,(null==n.payments||null==n.payments.data?null:n.payments.data.length)>0))}}function Wn(i,o){1&i&&t._UZ(0,"tr",86)}function Kn(i,o){1&i&&t._UZ(0,"tr",84)}const Xn=function(){return["all"]},$n=function(i){return{"error-border":i}},jn=function(){return["no_payment"]};function ti(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",14)(1,"div",15)(2,"div",16),t._UZ(3,"fa-icon",17),t.TgZ(4,"span",18),t._uU(5,"Payments History"),t.qZA()(),t.TgZ(6,"div",19)(7,"mat-form-field",20)(8,"mat-label"),t._uU(9,"Filter By"),t.qZA(),t.TgZ(10,"mat-select",21),t.NdJ("ngModelChange",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.selFilterBy=a)})("selectionChange",function(){t.CHM(n);const a=t.oxw();return a.selFilter="",t.KtG(a.applyFilter())}),t.TgZ(11,"perfect-scrollbar"),t.YNc(12,Ge,2,2,"mat-option",22),t.qZA()()(),t.TgZ(13,"mat-form-field",20)(14,"mat-label"),t._uU(15,"Filter"),t.qZA(),t.TgZ(16,"input",23),t.NdJ("ngModelChange",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.selFilter=a)})("input",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.applyFilter())})("keyup",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.applyFilter())}),t.qZA()()()(),t.TgZ(17,"div",24)(18,"div",25),t.YNc(19,We,1,0,"mat-progress-bar",26),t.TgZ(20,"table",27,28),t.ynx(22,29),t.YNc(23,Ke,2,0,"th",30),t.YNc(24,Xe,3,4,"td",31),t.BQk(),t.ynx(25,32),t.YNc(26,$e,2,0,"th",30),t.YNc(27,je,4,4,"td",31),t.BQk(),t.ynx(28,33),t.YNc(29,tn,2,0,"th",30),t.YNc(30,en,4,4,"td",31),t.BQk(),t.ynx(31,34),t.YNc(32,nn,2,0,"th",30),t.YNc(33,an,4,4,"td",31),t.BQk(),t.ynx(34,35),t.YNc(35,on,2,0,"th",30),t.YNc(36,sn,4,4,"td",31),t.BQk(),t.ynx(37,36),t.YNc(38,ln,2,0,"th",30),t.YNc(39,rn,4,4,"td",31),t.BQk(),t.ynx(40,37),t.YNc(41,cn,2,0,"th",30),t.YNc(42,un,4,4,"td",31),t.BQk(),t.ynx(43,38),t.YNc(44,pn,2,0,"th",39),t.YNc(45,mn,4,3,"td",31),t.BQk(),t.ynx(46,40),t.YNc(47,dn,6,0,"th",41),t.YNc(48,hn,3,0,"td",42),t.BQk(),t.ynx(49,43),t.YNc(50,Cn,4,3,"td",44),t.BQk(),t.ynx(51,45),t.YNc(52,bn,4,2,"td",31),t.BQk(),t.ynx(53,46),t.YNc(54,vn,5,5,"td",31),t.BQk(),t.ynx(55,47),t.YNc(56,An,5,5,"td",31),t.BQk(),t.ynx(57,48),t.YNc(58,In,5,5,"td",31),t.BQk(),t.ynx(59,49),t.YNc(60,Nn,5,5,"td",31),t.BQk(),t.ynx(61,50),t.YNc(62,kn,5,5,"td",31),t.BQk(),t.ynx(63,51),t.YNc(64,Mn,5,5,"td",31),t.BQk(),t.ynx(65,52),t.YNc(66,Hn,5,5,"td",31),t.BQk(),t.ynx(67,53),t.YNc(68,Bn,5,2,"td",31),t.BQk(),t.YNc(69,Vn,1,0,"tr",54),t.YNc(70,Gn,1,3,"tr",55),t.YNc(71,Wn,1,0,"tr",56),t.YNc(72,Kn,1,0,"tr",57),t.qZA()()(),t._UZ(73,"mat-paginator",58),t.qZA()}if(2&i){const n=t.oxw();t.xp6(3),t.Q6J("icon",n.faHistory),t.xp6(7),t.Q6J("ngModel",n.selFilterBy),t.xp6(2),t.Q6J("ngForOf",t.DdM(17,Xn).concat(n.displayedColumns.slice(0,-1))),t.xp6(4),t.Q6J("ngModel",n.selFilter),t.xp6(3),t.Q6J("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("matSortActive",n.tableSetting.sortBy)("matSortDirection",n.tableSetting.sortOrder)("dataSource",n.payments)("ngClass",t.VKq(18,$n,""!==n.errorMessage)),t.xp6(49),t.Q6J("matRowDefColumns",n.partColumns)("matRowDefWhen",n.is_group),t.xp6(1),t.Q6J("matFooterRowDef",t.DdM(20,jn)),t.xp6(1),t.Q6J("matHeaderRowDef",n.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",n.displayedColumns),t.xp6(1),t.Q6J("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS)}}let At=(()=>{var i;class o{constructor(e,a,s,r,p,x,N,y){this.logger=e,this.commonService=a,this.store=s,this.rtlEffects=r,this.decimalPipe=p,this.dataService=x,this.datePipe=N,this.camelCaseWithSpaces=y,this.calledFrom="transactions",this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="transactions",this.tableSetting={tableId:"payments",recordsPerPage:l.IV,sortBy:"firstPartTimestamp",sortOrder:l.Pi.DESCENDING},this.faHistory=L.qO$,this.newlyAddedPayment="",this.selNode={},this.information={},this.payments=new c.by([]),this.paymentJSONArr=[],this.paymentDecoded={},this.displayedColumns=[],this.partColumns=[],this.paymentRequest="",this.paymentDecodedHint="",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,new m.x,new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(f.LR).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(f.yD).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.store.select(f.nF).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=e.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||l.c3.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.partColumns=[],this.displayedColumns.map(a=>this.partColumns.push("group_"+a)),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(f.PP).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.paymentJSONArr=e.payments&&e.payments.sent&&e.payments.sent.length>0?e.payments.sent:[],this.paymentJSONArr.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadPaymentsTable(this.paymentJSONArr),this.logger.info(e)})}ngAfterViewInit(){this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr)}applyFilter(){this.payments.filter=this.selFilter.trim().toLowerCase()}getLabel(e){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(s=>s.column===e);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):this.commonService.titleCase(e)}setFilterPredicate(){this.payments.filterPredicate=(e,a)=>{let s="";switch(this.selFilterBy){case"all":s=(e.firstPartTimestamp?this.datePipe.transform(new Date(e.firstPartTimestamp),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(e).toLowerCase();break;case"firstPartTimestamp":s=this.datePipe.transform(new Date(e.firstPartTimestamp||0),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;default:s=typeof e[this.selFilterBy]>"u"?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return s.includes(a)}}loadPaymentsTable(e){this.payments=new c.by(e?[...e]:[]),this.payments.sort=this.sort,this.payments.sortingDataAccessor=(a,s)=>{switch(s){case"firstPartTimestamp":return this.commonService.sortByKey(a.parts,"timestamp","number",this.sort?.direction),a.firstPartTimestamp;case"id":return this.commonService.sortByKey(a.parts,"id","string",this.sort?.direction),a.id;case"recipientNodeAlias":return this.commonService.sortByKey(a.parts,"toChannelAlias","string",this.sort?.direction),a.recipientNodeAlias;case"recipientAmount":return this.commonService.sortByKey(a.parts,"amount","number",this.sort?.direction),a.recipientAmount;default:return a[s]&&isNaN(a[s])?a[s].toLocaleLowerCase():a[s]?+a[s]:null}},this.payments.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter()}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp?this.sendPayment():this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,G.q)(1)).subscribe(e=>{this.paymentDecoded=e,this.paymentDecoded.timestamp?(this.paymentDecoded.amount||(this.paymentDecoded.amount=0),this.sendPayment()):this.resetData()})}sendPayment(){this.newlyAddedPayment=this.paymentDecoded.paymentHash||"",this.paymentDecoded.amount&&0!==this.paymentDecoded.amount?(this.store.dispatch((0,S.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Confirm Send Payment",noBtnText:"Cancel",yesBtnText:"Send Payment",message:[[{key:"paymentHash",value:this.paymentDecoded.paymentHash,title:"Payment Hash",width:100}],[{key:"nodeId",value:this.paymentDecoded.nodeId,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:50,type:l.Gi.DATE_TIME},{key:"amount",value:this.paymentDecoded.amount,title:"Amount (Sats)",width:50,type:l.Gi.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:l.Gi.NUMBER},{key:"minFinalCltvExpiry",value:this.paymentDecoded.minFinalCltvExpiry,title:"CLTV Expiry",width:50}]]}}})),this.rtlEffects.closeConfirm.pipe((0,G.q)(1)).subscribe(a=>{a&&(this.store.dispatch((0,k.oV)({payload:{invoice:this.paymentRequest,fromDialog:!1}})),this.resetData())})):(this.store.dispatch((0,S.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Enter Amount and Confirm Send Payment",message:[[{key:"paymentHash",value:this.paymentDecoded.paymentHash,title:"Payment Hash",width:100}],[{key:"nodeId",value:this.paymentDecoded.nodeId,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:40,type:l.Gi.DATE_TIME},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:l.Gi.NUMBER},{key:"minFinalCltvExpiry",value:this.paymentDecoded.minFinalCltvExpiry,title:"CLTV Expiry",width:30}]],noBtnText:"Cancel",yesBtnText:"Send Payment",flgShowInput:!0,titleMessage:"It is a zero amount invoice. Enter the amount (Sats) to pay.",getInputs:[{placeholder:"Amount (Sats)",inputType:l.Gi.NUMBER,inputValue:"",width:30}]}}})),this.rtlEffects.closeConfirm.pipe((0,G.q)(1)).subscribe(s=>{s&&(this.paymentDecoded.amount=s[0].inputValue,this.store.dispatch((0,k.oV)({payload:{invoice:this.paymentRequest,amountMsat:1e3*s[0].inputValue,fromDialog:!1}})),this.resetData())}))}onPaymentRequestEntry(e){this.paymentRequest=e,this.paymentDecodedHint="",this.paymentRequest&&this.paymentRequest.length>100&&this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,G.q)(1)).subscribe(a=>{this.paymentDecoded=a,this.paymentDecoded.amount?this.selNode&&this.selNode.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.amount,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[4])).subscribe({next:s=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats ("+s.symbol+this.decimalPipe.transform(s.OTHER?s.OTHER:0,l.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:s=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description:this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description})}openSendPaymentModal(){this.store.dispatch((0,S.qR)({payload:{data:{component:Ue}}}))}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}is_group(e,a){return a.parts&&a.parts.length>1}onPaymentClick(e){e.paymentHash&&""!==e.paymentHash.trim()?this.dataService.decodePayments(e.paymentHash).pipe((0,G.q)(1)).subscribe({next:a=>{setTimeout(()=>{this.showPaymentView(e,a.length&&a.length>0?a[0]:[])},0)},error:a=>{this.showPaymentView(e,[])}}):this.showPaymentView(e,[])}showPaymentView(e,a){this.store.dispatch((0,S.qR)({payload:{data:{sentPaymentInfo:a,payment:e,component:He}}}))}onPartClick(e,a){a.paymentHash&&""!==a.paymentHash.trim()?this.dataService.decodePayments(a.paymentHash).pipe((0,G.q)(1)).subscribe({next:s=>{setTimeout(()=>{this.showPartView(e,a,s.length&&s.length>0?s[0]:[])},0)},error:s=>{this.showPartView(e,a,[])}}):this.showPartView(e,a,[])}showPartView(e,a,s){const r=[[{key:"paymentHash",value:a.paymentHash,title:"Payment Hash",width:100,type:l.Gi.STRING}],[{key:"paymentPreimage",value:a.paymentPreimage,title:"Payment Preimage",width:100,type:l.Gi.STRING}],[{key:"toChannelId",value:e.toChannelId,title:"Channel",width:100,type:l.Gi.STRING}],[{key:"id",value:e.id,title:"Part ID",width:50,type:l.Gi.STRING},{key:"timestamp",value:e.timestamp,title:"Time",width:50,type:l.Gi.DATE_TIME}],[{key:"amount",value:e.amount,title:"Amount (Sats)",width:50,type:l.Gi.NUMBER},{key:"feesPaid",value:e.feesPaid,title:"Fee (Sats)",width:50,type:l.Gi.NUMBER}]];s&&s.length>0&&s[0].paymentRequest&&s[0].paymentRequest.description&&""!==s[0].paymentRequest.description&&r.splice(3,0,[{key:"description",value:s[0].paymentRequest.description,title:"Description",width:100,type:l.Gi.STRING}]),this.store.dispatch((0,S.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Payment Part Information",message:r}}}))}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){const e=JSON.parse(JSON.stringify(this.payments.data)),a=e?.reduce((s,r)=>(r.paymentHash&&""!==r.paymentHash.trim()&&(s=""===s?r.paymentHash:s+","+r.paymentHash),s),"");this.dataService.decodePayments(a).pipe((0,_.R)(this.unSubs[5])).subscribe(s=>{s.forEach((p,x)=>{p.length>0&&p[0].paymentRequest&&p[0].paymentRequest.description&&""!==p[0].paymentRequest.description&&(e[x].description=p[0].paymentRequest.description)});const r=e?.reduce((p,x)=>p.concat(x),[]);this.commonService.downloadFile(r,"Payments")})}}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(M.v),t.Y36(E.yh),t.Y36(it.V),t.Y36(u.JJ),t.Y36(pt.D),t.Y36(u.uU),t.Y36(z.i1))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-lightning-payments"]],viewQuery:function(e,a){if(1&e&&(t.Gf(Qe,5),t.Gf(v.YE,5),t.Gf(w.NW,5)),2&e){let s;t.iGM(s=t.CRH())&&(a.form=s.first),t.iGM(s=t.CRH())&&(a.sort=s.first),t.iGM(s=t.CRH())&&(a.paginator=s.first)}},inputs:{calledFrom:"calledFrom"},features:[t._Bn([{provide:A.PG,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.ye,useValue:(0,l.pt)("Payments")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","colWidth","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["sendPaymentForm","ngForm"],["fxLayout","column","fxFlex","100"],["matInput","","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.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","colWidth",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","colWidth","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["table",""],["matColumnDef","firstPartTimestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","recipientNodeId"],["matColumnDef","recipientNodeAlias"],["matColumnDef","description"],["matColumnDef","paymentHash"],["matColumnDef","paymentPreimage"],["matColumnDef","recipientAmount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_payment"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["matColumnDef","group_firstPartTimestamp"],["matColumnDef","group_id"],["matColumnDef","group_recipientNodeId"],["matColumnDef","group_recipientNodeAlias"],["matColumnDef","group_recipientAmount"],["matColumnDef","group_description"],["matColumnDef","group_paymentHash"],["matColumnDef","group_paymentPreimage"],["matColumnDef","group_actions"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],["fxLayoutAlign","start center",1,"part-row-span"],["fxLayoutAlign","start center","class","part-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"ellipsis-parent","part-row-span",3,"ngStyle"],["fxLayoutAlign","end center",1,"part-row-span"],["fxLayoutAlign","end center","class","part-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"part-group-head"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-part-expand",3,"click"],["class","part-group-details","fxLayoutAlign","end center",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"part-group-details"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-part-info",3,"click"],["mat-row",""],["mat-footer-row","",3,"ngClass"],["mat-header-row",""]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t.YNc(1,Ve,14,3,"form",1),t.YNc(2,ze,3,0,"div",2),t.YNc(3,ti,74,21,"div",3),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf","home"===a.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===a.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===a.calledFrom))},dependencies:[u.mk,u.sg,u.O5,u.PC,d._Y,d.Fj,d.JJ,d.JL,d.Q7,d.On,d.F,I.BN,h.xw,h.Wh,h.yH,Z.oO,Z.Zl,F.lW,Q.Nt,C.KE,C.hX,C.bx,C.TO,H.pW,A.gD,A.$L,V.ey,v.YE,v.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.mD,c.Ke,c.ge,c.ev,c.yh,c.XQ,c.Gk,c.Q2,w.NW,P.Vv,P.$V,u.JJ,u.uU],styles:[".mat-column-group_actions[_ngcontent-%COMP%] .part-group-head[_ngcontent-%COMP%], .mat-column-group_actions[_ngcontent-%COMP%] .part-group-details[_ngcontent-%COMP%]{min-height:3rem}.mat-column-group_actions[_ngcontent-%COMP%] .btn-part-expand[_ngcontent-%COMP%]{min-width:8rem;width:8rem;margin:0}.mat-column-group_actions[_ngcontent-%COMP%] .btn-part-info[_ngcontent-%COMP%]{min-width:7rem;margin:0}.mat-column-group_firstPartTimestamp[_ngcontent-%COMP%] .part-row-span[_ngcontent-%COMP%]:not(:first-of-type){padding-left:2rem}.part-row-span[_ngcontent-%COMP%]{min-height:3rem}.mat-column-group_firstPartTimestamp[_ngcontent-%COMP%]{min-width:11rem}"]}),o})();var j=g(6534);function ei(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Description is required."),t.qZA())}function ni(i,o){if(1&i&&(t.TgZ(0,"mat-option",25),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&i){const n=o.$implicit;t.Q6J("value",n),t.xp6(1),t.Oqu(t.lcZ(2,2,n))}}function ii(i,o){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Oqu(n.invoiceError)}}function ai(i,o){if(1&i&&(t.TgZ(0,"div",26),t._UZ(1,"fa-icon",27),t.YNc(2,ii,2,1,"span",11),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Q6J("icon",n.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==n.invoiceError)}}let oi=(()=>{var i;class o{constructor(e,a,s,r,p,x){this.dialogRef=e,this.data=a,this.store=s,this.decimalPipe=r,this.commonService=p,this.actions=x,this.faExclamationTriangle=L.eHv,this.selNode={},this.description="",this.invoiceValue=null,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(f.LR).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(f.yD).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.actions.pipe((0,_.R)(this.unSubs[2]),(0,Y.h)(e=>e.type===l.lr.UPDATE_API_CALL_STATUS_ECL)).subscribe(e=>{e.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&"CreateInvoice"===e.payload.action&&(e.payload.status===l.Bn.ERROR&&(this.invoiceError=e.payload.message),e.payload.status===l.Bn.COMPLETED&&this.dialogRef.close())})}onAddInvoice(e){if(this.invoiceError="",!this.description)return!0;let a=this.expiry?this.expiry:l.$Y;this.expiry&&this.selTimeUnit!==l.Qk.SECS&&(a=this.commonService.convertTime(this.expiry,this.selTimeUnit,l.Qk.SECS));let s=null;s=this.invoiceValue?{description:this.description,expireIn:a,amountMsat:1e3*this.invoiceValue}:{description:this.description,expireIn:a},this.store.dispatch((0,k.Z$)({payload:s}))}resetData(){this.description="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint="",this.selTimeUnit=l.Qk.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode&&this.selNode.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[3])).subscribe({next:e=>{this.invoiceValueHint="= "+e.symbol+this.decimalPipe.transform(e.OTHER,l.Xz.OTHER)+" "+e.unit},error:e=>{this.invoiceValueHint="Conversion Error: "+e}}))}onTimeUnitChange(e){this.expiry&&this.selTimeUnit!==e.value&&(this.expiry=this.commonService.convertTime(this.expiry,this.selTimeUnit,e.value)),this.selTimeUnit=e.value}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(D.so),t.Y36(D.WI),t.Y36(E.yh),t.Y36(u.JJ),t.Y36(M.v),t.Y36(K.eX))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-create-invoices"]],decls:41,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 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"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end"],["matInput","","autoFocus","","tabindex","2","name","description","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between start","fxFlex","100"],["fxLayout","column","fxFlex","40"],["matInput","","type","number","tabindex","3","name","invValue",3,"step","min","ngModel","ngModelChange","keyup"],["matSuffix",""],["fxLayout","column","fxFlex","30"],["matInput","","type","number","name","exp","tabindex","4",3,"step","min","ngModel","ngModelChange"],["fxLayout","column","fxFlex","26"],["tabindex","5","name","timeUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","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"]],template:function(e,a){if(1&e){const s=t.EpF();t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Create Invoice"),t.qZA()(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8)(11,"mat-form-field",9)(12,"mat-label"),t._uU(13,"Description"),t.qZA(),t.TgZ(14,"input",10),t.NdJ("ngModelChange",function(p){return a.description=p}),t.qZA(),t.YNc(15,ei,2,0,"mat-error",11),t.qZA(),t.TgZ(16,"div",12)(17,"mat-form-field",13)(18,"mat-label"),t._uU(19,"Amount"),t.qZA(),t.TgZ(20,"input",14),t.NdJ("ngModelChange",function(p){return a.invoiceValue=p})("keyup",function(){return a.onInvoiceValueChange()}),t.qZA(),t.TgZ(21,"span",15),t._uU(22," Sats "),t.qZA(),t.TgZ(23,"mat-hint"),t._uU(24),t.qZA()(),t.TgZ(25,"mat-form-field",16)(26,"mat-label"),t._uU(27,"Expiry"),t.qZA(),t.TgZ(28,"input",17),t.NdJ("ngModelChange",function(p){return a.expiry=p}),t.qZA(),t.TgZ(29,"span",15),t._uU(30),t.ALo(31,"titlecase"),t.qZA()(),t.TgZ(32,"mat-form-field",18)(33,"mat-select",19),t.NdJ("selectionChange",function(p){return a.onTimeUnitChange(p)}),t.YNc(34,ni,3,4,"mat-option",20),t.qZA()()(),t.YNc(35,ai,3,2,"div",21),t.TgZ(36,"div",22)(37,"button",23),t.NdJ("click",function(){return a.resetData()}),t._uU(38,"Clear Field"),t.qZA(),t.TgZ(39,"button",24),t.NdJ("click",function(){t.CHM(s);const p=t.MAs(10);return t.KtG(a.onAddInvoice(p))}),t._uU(40,"Create Invoice"),t.qZA()()()()()()}2&e&&(t.xp6(6),t.Q6J("mat-dialog-close",!1),t.xp6(8),t.Q6J("ngModel",a.description),t.xp6(1),t.Q6J("ngIf",!a.description),t.xp6(5),t.Q6J("step",100)("min",1)("ngModel",a.invoiceValue),t.xp6(4),t.Oqu(a.invoiceValueHint),t.xp6(4),t.Q6J("step",a.selTimeUnit===a.timeUnitEnum.SECS?300:a.selTimeUnit===a.timeUnitEnum.MINS?10:a.selTimeUnit===a.timeUnitEnum.HOURS?2:1)("min",1)("ngModel",a.expiry),t.xp6(2),t.hij("",t.lcZ(31,14,a.selTimeUnit)," "),t.xp6(3),t.Q6J("value",a.selTimeUnit),t.xp6(1),t.Q6J("ngForOf",a.timeUnits),t.xp6(1),t.Q6J("ngIf",""!==a.invoiceError))},dependencies:[u.sg,u.O5,d._Y,d.Fj,d.wV,d.JJ,d.JL,d.Q7,d.qQ,d.On,d.F,I.BN,h.xw,h.Wh,h.yH,D.ZT,F.lW,T.dn,T.dk,Q.Nt,C.KE,C.hX,C.bx,C.TO,C.R9,A.gD,V.ey,$.h,j.q,u.rS]}),o})();var si=g(7766);function li(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Description is required."),t.qZA())}function ri(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"form",4,5)(2,"mat-form-field",6)(3,"mat-label"),t._uU(4,"Description"),t.qZA(),t.TgZ(5,"input",7),t.NdJ("ngModelChange",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.description=a)}),t.qZA(),t.YNc(6,li,2,0,"mat-error",8),t.qZA(),t.TgZ(7,"mat-form-field",9)(8,"mat-label"),t._uU(9,"Amount"),t.qZA(),t.TgZ(10,"input",10,11),t.NdJ("ngModelChange",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.invoiceValue=a)})("keyup",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onInvoiceValueChange())}),t.qZA(),t.TgZ(12,"span",12),t._uU(13," Sats "),t.qZA(),t.TgZ(14,"mat-hint"),t._uU(15),t.qZA()(),t.TgZ(16,"div",13)(17,"button",14),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.resetData())}),t._uU(18,"Clear Field"),t.qZA(),t.TgZ(19,"button",15),t.NdJ("click",function(){t.CHM(n);const a=t.MAs(1),s=t.oxw();return t.KtG(s.onAddInvoice(a))}),t._uU(20,"Create Invoice"),t.qZA()()()}if(2&i){const n=t.oxw();t.xp6(5),t.Q6J("ngModel",n.description),t.xp6(1),t.Q6J("ngIf",!n.description),t.xp6(4),t.Q6J("step",100)("min",1)("ngModel",n.invoiceValue),t.xp6(5),t.Oqu(n.invoiceValueHint)}}function ci(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",16)(1,"button",17),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.openCreateInvoiceModal())}),t._uU(2,"Create Invoice"),t.qZA()()}}function ui(i,o){if(1&i&&(t.TgZ(0,"mat-option",55),t._uU(1),t.qZA()),2&i){const n=o.$implicit,e=t.oxw(2);t.Q6J("value",n),t.xp6(1),t.Oqu(e.getLabel(n))}}function pi(i,o){1&i&&t._UZ(0,"mat-progress-bar",56)}function mi(i,o){1&i&&t._UZ(0,"th",57)}const mt=function(i){return{"mr-0":i}};function di(i,o){if(1&i&&t._UZ(0,"span",62),2&i){const n=t.oxw(3);t.Q6J("ngClass",t.VKq(1,mt,n.screenSize===n.screenSizeEnum.XS))}}function hi(i,o){if(1&i&&t._UZ(0,"span",63),2&i){const n=t.oxw(3);t.Q6J("ngClass",t.VKq(1,mt,n.screenSize===n.screenSizeEnum.XS))}}function _i(i,o){if(1&i&&t._UZ(0,"span",64),2&i){const n=t.oxw(3);t.Q6J("ngClass",t.VKq(1,mt,n.screenSize===n.screenSizeEnum.XS))}}function gi(i,o){if(1&i&&(t.TgZ(0,"td",58),t.YNc(1,di,1,3,"span",59),t.YNc(2,hi,1,3,"span",60),t.YNc(3,_i,1,3,"span",61),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Q6J("ngIf","received"===(null==n?null:n.status)),t.xp6(1),t.Q6J("ngIf","unpaid"===(null==n?null:n.status)),t.xp6(1),t.Q6J("ngIf",!(null!=n&&n.status)||"expired"===(null==n?null:n.status)||"unknown"===(null==n?null:n.status))}}function fi(i,o){1&i&&(t.TgZ(0,"th",65),t._uU(1,"Date Created"),t.qZA())}function Ci(i,o){if(1&i&&(t.TgZ(0,"td",58),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*(null==n?null:n.timestamp),"dd/MMM/y HH:mm"))}}function xi(i,o){1&i&&(t.TgZ(0,"th",65),t._uU(1,"Date Expiry"),t.qZA())}function yi(i,o){if(1&i&&(t.TgZ(0,"td",58),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*(null==n?null:n.expiresAt),"dd/MMM/y HH:mm")||"-")}}function bi(i,o){1&i&&(t.TgZ(0,"th",65),t._uU(1,"Date Settled"),t.qZA())}function Li(i,o){if(1&i&&(t.TgZ(0,"td",58),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*(null==n?null:n.receivedAt),"dd/MMM/y HH:mm")||"-")}}function Ti(i,o){1&i&&(t.TgZ(0,"th",65),t._uU(1,"Node ID"),t.qZA())}const dt=function(i){return{width:i}};function vi(i,o){if(1&i&&(t.TgZ(0,"td",58)(1,"div",66)(2,"span",67),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,dt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.nodeId)}}function Zi(i,o){1&i&&(t.TgZ(0,"th",65),t._uU(1,"Description"),t.qZA())}function Si(i,o){if(1&i&&(t.TgZ(0,"td",58)(1,"div",66)(2,"span",67),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,dt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.description)}}function Ai(i,o){1&i&&(t.TgZ(0,"th",65),t._uU(1,"Payment Hash"),t.qZA())}function Ei(i,o){if(1&i&&(t.TgZ(0,"td",58)(1,"div",66)(2,"span",67),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,dt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.paymentHash)}}function wi(i,o){1&i&&(t.TgZ(0,"th",68),t._uU(1,"Amount (Sats)"),t.qZA())}function Ii(i,o){if(1&i&&(t.TgZ(0,"td",58)(1,"span",69),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.Oqu(null!=n&&n.amount?t.xi3(3,1,null==n?null:n.amount,"1.0-0"):"-")}}function Fi(i,o){1&i&&(t.TgZ(0,"th",70),t._uU(1," Amount Settled (Sats)"),t.qZA())}function qi(i,o){if(1&i&&(t.TgZ(0,"td",58)(1,"span",69),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.Oqu(null!=n&&n.amountSettled?t.xi3(3,1,null==n?null:n.amountSettled,"1.0-0"):"-")}}function Ni(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"th",71)(1,"div",72)(2,"mat-select",73),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",74),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.onDownloadCSV())}),t._uU(5,"Download CSV"),t.qZA()()()()}}function Oi(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"td",75)(1,"div",72)(2,"mat-select",76),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",74),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw(2);return t.KtG(r.onInvoiceClick(s))}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",74),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw(2);return t.KtG(r.onRefreshInvoice(s))}),t._uU(7,"Refresh"),t.qZA()()()()}}function Pi(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"No invoice available."),t.qZA())}function ki(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"Getting invoices..."),t.qZA())}function Ui(i,o){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&i){const n=t.oxw(3);t.xp6(1),t.Oqu(n.errorMessage)}}function Ri(i,o){if(1&i&&(t.TgZ(0,"td",77),t.YNc(1,Pi,2,0,"p",8),t.YNc(2,ki,2,0,"p",8),t.YNc(3,Ui,2,1,"p",8),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=n.invoices&&n.invoices.data)||(null==n.invoices||null==n.invoices.data?null:n.invoices.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.invoices&&n.invoices.data)||(null==n.invoices||null==n.invoices.data?null:n.invoices.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.invoices&&n.invoices.data)||(null==n.invoices||null==n.invoices.data?null:n.invoices.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}const Mi=function(i){return{"display-none":i}};function Di(i,o){if(1&i&&t._UZ(0,"tr",78),2&i){const n=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Mi,(null==n.invoices?null:n.invoices.data)&&(null==n.invoices||null==n.invoices.data?null:n.invoices.data.length)>0))}}function Ji(i,o){1&i&&t._UZ(0,"tr",79)}function Hi(i,o){1&i&&t._UZ(0,"tr",80)}const Qi=function(){return["all"]},Yi=function(i){return{"error-border":i}},Bi=function(){return["no_invoice"]};function Vi(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",18)(1,"div",19)(2,"div",20),t._UZ(3,"fa-icon",21),t.TgZ(4,"span",22),t._uU(5,"Invoices History"),t.qZA()(),t.TgZ(6,"div",23)(7,"mat-form-field",24)(8,"mat-label"),t._uU(9,"Filter By"),t.qZA(),t.TgZ(10,"mat-select",25),t.NdJ("ngModelChange",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.selFilterBy=a)})("selectionChange",function(){t.CHM(n);const a=t.oxw();return a.selFilter="",t.KtG(a.applyFilter())}),t.TgZ(11,"perfect-scrollbar"),t.YNc(12,ui,2,2,"mat-option",26),t.qZA()()(),t.TgZ(13,"mat-form-field",24)(14,"mat-label"),t._uU(15,"Filter"),t.qZA(),t.TgZ(16,"input",27),t.NdJ("ngModelChange",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.selFilter=a)})("input",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.applyFilter())})("keyup",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.applyFilter())}),t.qZA()()()(),t.TgZ(17,"div",28),t.YNc(18,pi,1,0,"mat-progress-bar",29),t.TgZ(19,"table",30,31),t.ynx(21,32),t.YNc(22,mi,1,0,"th",33),t.YNc(23,gi,4,3,"td",34),t.BQk(),t.ynx(24,35),t.YNc(25,fi,2,0,"th",36),t.YNc(26,Ci,3,4,"td",34),t.BQk(),t.ynx(27,37),t.YNc(28,xi,2,0,"th",36),t.YNc(29,yi,3,4,"td",34),t.BQk(),t.ynx(30,38),t.YNc(31,bi,2,0,"th",36),t.YNc(32,Li,3,4,"td",34),t.BQk(),t.ynx(33,39),t.YNc(34,Ti,2,0,"th",36),t.YNc(35,vi,4,4,"td",34),t.BQk(),t.ynx(36,40),t.YNc(37,Zi,2,0,"th",36),t.YNc(38,Si,4,4,"td",34),t.BQk(),t.ynx(39,41),t.YNc(40,Ai,2,0,"th",36),t.YNc(41,Ei,4,4,"td",34),t.BQk(),t.ynx(42,42),t.YNc(43,wi,2,0,"th",43),t.YNc(44,Ii,4,4,"td",34),t.BQk(),t.ynx(45,44),t.YNc(46,Fi,2,0,"th",45),t.YNc(47,qi,4,4,"td",34),t.BQk(),t.ynx(48,46),t.YNc(49,Ni,6,0,"th",47),t.YNc(50,Oi,8,0,"td",48),t.BQk(),t.ynx(51,49),t.YNc(52,Ri,4,3,"td",50),t.BQk(),t.YNc(53,Di,1,3,"tr",51),t.YNc(54,Ji,1,0,"tr",52),t.YNc(55,Hi,1,0,"tr",53),t.qZA()(),t._UZ(56,"mat-paginator",54),t.qZA()}if(2&i){const n=t.oxw();t.xp6(3),t.Q6J("icon",n.faHistory),t.xp6(7),t.Q6J("ngModel",n.selFilterBy),t.xp6(2),t.Q6J("ngForOf",t.DdM(15,Qi).concat(n.displayedColumns.slice(0,-1))),t.xp6(4),t.Q6J("ngModel",n.selFilter),t.xp6(2),t.Q6J("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("matSortActive",n.tableSetting.sortBy)("matSortDirection",n.tableSetting.sortOrder)("dataSource",n.invoices)("ngClass",t.VKq(16,Yi,""!==n.errorMessage)),t.xp6(34),t.Q6J("matFooterRowDef",t.DdM(18,Bi)),t.xp6(1),t.Q6J("matHeaderRowDef",n.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",n.displayedColumns),t.xp6(1),t.Q6J("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS)}}let Et=(()=>{var i;class o{constructor(e,a,s,r,p,x,N){this.logger=e,this.store=a,this.decimalPipe=s,this.commonService=r,this.datePipe=p,this.actions=x,this.camelCaseWithSpaces=N,this.calledFrom="transactions",this.faHistory=L.qO$,this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="transactions",this.tableSetting={tableId:"invoices",recordsPerPage:l.IV,sortBy:"expiresAt",sortOrder:l.Pi.DESCENDING},this.selNode={},this.newlyAddedInvoiceMemo="",this.newlyAddedInvoiceValue=0,this.description="",this.invoiceValue=null,this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.invoices=new c.by([]),this.invoiceJSONArr=[],this.information={},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],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(f.LR).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(f.yD).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.store.select(f.nF).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=e.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||l.c3.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("status"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(f.Ef).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.invoiceJSONArr=e.invoices&&e.invoices.length>0?e.invoices:[],this.invoiceJSONArr&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadInvoicesTable(this.invoiceJSONArr),this.logger.info(e)}),this.actions.pipe((0,_.R)(this.unSubs[4]),(0,Y.h)(e=>e.type===l.lr.SET_LOOKUP_ECL||e.type===l.lr.UPDATE_API_CALL_STATUS_ECL)).subscribe(e=>{e.type===l.lr.SET_LOOKUP_ECL&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&e.payload&&(this.updateInvoicesData(JSON.parse(JSON.stringify(e.payload))),this.loadInvoicesTable(this.invoiceJSONArr))})}ngAfterViewInit(){this.invoiceJSONArr&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadInvoicesTable(this.invoiceJSONArr)}openCreateInvoiceModal(){this.store.dispatch((0,S.qR)({payload:{data:{pageSize:this.pageSize,component:oi}}}))}onAddInvoice(e){if(!this.description)return!0;const a=this.expiry?this.expiry:l.$Y;this.newlyAddedInvoiceMemo="ulbl"+Math.random().toString(36).slice(2)+Date.now(),this.newlyAddedInvoiceValue=this.invoiceValue;let s=null;s=this.invoiceValue?{description:this.description,expireIn:a,amountMsat:1e3*this.invoiceValue}:{description:this.description,expireIn:a},this.store.dispatch((0,k.Z$)({payload:s})),this.resetData()}onInvoiceClick(e){this.store.dispatch((0,S.qR)({payload:{data:{invoice:e,newlyAdded:!1,component:si.R}}}))}onRefreshInvoice(e){this.store.dispatch((0,k.n7)({payload:e.paymentHash}))}updateInvoicesData(e){this.invoiceJSONArr=this.invoiceJSONArr?.map(a=>a.paymentHash===e.paymentHash?e:a)}applyFilter(){this.invoices.filter=this.selFilter.trim().toLowerCase()}getLabel(e){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(s=>s.column===e);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):this.commonService.titleCase(e)}setFilterPredicate(){this.invoices.filterPredicate=(e,a)=>{let s="";switch(this.selFilterBy){case"all":s=(e.timestamp?this.datePipe.transform(new Date(1e3*e.timestamp),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(e).toLowerCase();break;case"status":s=e?.status&&"expired"!==e?.status&&"unknown"!==e?.status?e.status?.toLowerCase():"expired/unknown";break;case"timestamp":case"expiresAt":case"receivedAt":s=this.datePipe.transform(new Date(1e3*(e[this.selFilterBy]||0)),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;case"amount":case"amountSettled":s=e[this.selFilterBy]?.toString()||"-";break;default:s=typeof e[this.selFilterBy]>"u"?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return"status"===this.selFilterBy?0===s.indexOf(a):s.includes(a)}}loadInvoicesTable(e){this.invoices=new c.by(e?[...e]:[]),this.invoices.sort=this.sort,this.invoices.sortingDataAccessor=(a,s)=>a[s]&&isNaN(a[s])?a[s].toLocaleLowerCase():a[s]?+a[s]:null,this.invoices.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter()}resetData(){this.description="",this.invoiceValue=null,this.expiry=null,this.invoiceValueHint=""}onInvoiceValueChange(){this.selNode&&this.selNode.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[5])).subscribe({next:e=>{this.invoiceValueHint="= "+e.symbol+this.decimalPipe.transform(e.OTHER,l.Xz.OTHER)+" "+e.unit},error:e=>{this.invoiceValueHint="Conversion Error: "+e}}))}onDownloadCSV(){this.invoices.data&&this.invoices.data.length>0&&this.commonService.downloadFile(this.invoices.data,"Invoices")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(E.yh),t.Y36(u.JJ),t.Y36(M.v),t.Y36(u.uU),t.Y36(K.eX),t.Y36(z.i1))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-lightning-invoices"]],viewQuery:function(e,a){if(1&e&&(t.Gf(v.YE,5),t.Gf(w.NW,5)),2&e){let s;t.iGM(s=t.CRH())&&(a.sort=s.first),t.iGM(s=t.CRH())&&(a.paginator=s.first)}},inputs:{calledFrom:"calledFrom"},features:[t._Bn([{provide:A.PG,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.ye,useValue:(0,l.pt)("Invoices")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100"],["addInvoiceForm","ngForm"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["matInput","","tabindex","2","name","description","required","true",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end"],["matInput","","type","number","tabindex","3","name","invValue",3,"step","min","ngModel","ngModelChange","keyup"],["invcVal","ngModel"],["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-flat-button","","color","primary","tabindex","8",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["table",""],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Status",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","expiresAt"],["matColumnDef","receivedAt"],["matColumnDef","nodeId"],["matColumnDef","description"],["matColumnDef","paymentHash"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amountSettled"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","class","p1-3",4,"matHeaderCellDef"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Status"],["mat-cell",""],["class","dot green","matTooltip","Received","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Unpaid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Expired/Unknown","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Received","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Unpaid","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Expired/Unknown","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",1,"p1-3"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","4",1,"mr-0"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t.YNc(1,ri,21,6,"form",1),t.YNc(2,ci,3,0,"div",2),t.YNc(3,Vi,57,19,"div",3),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf","home"===a.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===a.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===a.calledFrom))},dependencies:[u.mk,u.sg,u.O5,u.PC,d._Y,d.Fj,d.wV,d.JJ,d.JL,d.Q7,d.qQ,d.On,d.F,I.BN,h.xw,h.Wh,h.yH,Z.oO,Z.Zl,F.lW,Q.Nt,C.KE,C.hX,C.bx,C.TO,C.R9,H.pW,A.gD,A.$L,V.ey,v.YE,v.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.mD,c.Ke,c.ge,c.ev,c.yh,c.XQ,c.Gk,c.Q2,W.gM,w.NW,P.Vv,P.$V,j.q,u.JJ,u.uU],styles:[".mat-column-status[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}"]}),o})();function zi(i,o){if(1&i&&(t.TgZ(0,"button",26)(1,"mat-icon"),t._uU(2,"more_vert"),t.qZA()()),2&i){t.oxw();const n=t.MAs(11);t.Q6J("matMenuTriggerFor",n)}}function Gi(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){const s=t.CHM(n).index,r=t.oxw().$implicit,p=t.oxw(2);return t.KtG(p.onNavigateTo(r.links[s]))}),t._uU(1),t.qZA()}if(2&i){const n=o.$implicit;t.xp6(1),t.Oqu(n)}}function Wi(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(3);return t.KtG(a.onsortChannelsBy())}),t._uU(1),t.qZA()}if(2&i){const n=t.oxw(3);t.xp6(1),t.hij("Sort By ","Balance Score"===n.sortField?"Capacity":"Balance Score","")}}function Ki(i,o){1&i&&t._UZ(0,"mat-progress-bar",28)}function Xi(i,o){if(1&i&&t._UZ(0,"rtl-ecl-node-info",29),2&i){const n=t.oxw(3);t.Q6J("information",n.information)("showColorFieldSeparately",!1)}}function $i(i,o){if(1&i&&t._UZ(0,"rtl-ecl-balances-info",30),2&i){const n=t.oxw(3);t.Q6J("balances",n.balances)("errorMessage",n.errorMessages[2]+" "+n.errorMessages[3])}}function ji(i,o){if(1&i&&t._UZ(0,"rtl-ecl-channel-capacity-info",31),2&i){const n=t.oxw(3);t.Q6J("sortBy",n.sortField)("channelBalances",n.channelBalances)("allChannels",n.allChannelsCapacity)("errorMessage",n.errorMessages[2])}}function ta(i,o){if(1&i&&t._UZ(0,"rtl-ecl-fee-info",32),2&i){const n=t.oxw(3);t.Q6J("fees",n.fees)("errorMessage",n.errorMessages[1])}}function ea(i,o){if(1&i&&t._UZ(0,"rtl-ecl-channel-status-info",33),2&i){const n=t.oxw(3);t.Q6J("channelsStatus",n.channelsStatus)("errorMessage",n.errorMessages[2])}}function na(i,o){1&i&&(t.TgZ(0,"h3"),t._uU(1,"Error! Unable to find information!"),t.qZA())}const wt=function(i){return{"dashboard-card-content":!0,"error-border":i}};function ia(i,o){if(1&i&&(t.TgZ(0,"mat-grid-tile",8)(1,"mat-card",9)(2,"mat-card-header")(3,"mat-card-title",10)(4,"div"),t._UZ(5,"fa-icon",11),t.TgZ(6,"span"),t._uU(7),t.qZA()(),t.TgZ(8,"div"),t.YNc(9,zi,3,1,"button",12),t.TgZ(10,"mat-menu",13,14),t.YNc(12,Gi,2,1,"button",15),t.YNc(13,Wi,2,1,"button",16),t.qZA()()()(),t.TgZ(14,"mat-card-content",17),t.YNc(15,Ki,1,0,"mat-progress-bar",18),t.TgZ(16,"div",19),t.YNc(17,Xi,1,2,"rtl-ecl-node-info",20),t.YNc(18,$i,1,2,"rtl-ecl-balances-info",21),t.YNc(19,ji,1,4,"rtl-ecl-channel-capacity-info",22),t.YNc(20,ta,1,2,"rtl-ecl-fee-info",23),t.YNc(21,ea,1,2,"rtl-ecl-channel-status-info",24),t.YNc(22,na,2,0,"h3",25),t.qZA()()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.Q6J("colspan",n.cols)("rowspan",n.rows),t.xp6(5),t.Q6J("icon",n.icon),t.xp6(2),t.Oqu(n.title),t.xp6(2),t.Q6J("ngIf",n.links[0]),t.xp6(3),t.Q6J("ngForOf",n.goToOptions),t.xp6(1),t.Q6J("ngIf","capacity"===n.id),t.xp6(1),t.s9C("fxFlex","capacity"===n.id?90:70),t.Q6J("ngClass",t.VKq(16,wt,"node"===n.id&&e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.ERROR||"balance"===n.id&&(e.apiCallStatusAllChannels.status===e.apiCallStatusEnum.ERROR||e.apiCallStatusOCBal.status===e.apiCallStatusEnum.ERROR)||("capacity"===n.id||"status"===n.id)&&e.apiCallStatusAllChannels.status===e.apiCallStatusEnum.ERROR||"fee"===n.id&&e.apiCallStatusFees.status===e.apiCallStatusEnum.ERROR)),t.xp6(1),t.Q6J("ngIf","node"===n.id&&e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.INITIATED||"balance"===n.id&&(e.apiCallStatusAllChannels.status===e.apiCallStatusEnum.INITIATED||e.apiCallStatusOCBal.status===e.apiCallStatusEnum.INITIATED)||("capacity"===n.id||"status"===n.id)&&e.apiCallStatusAllChannels.status===e.apiCallStatusEnum.INITIATED||"fee"===n.id&&e.apiCallStatusFees.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngSwitch",n.id),t.xp6(1),t.Q6J("ngSwitchCase","node"),t.xp6(1),t.Q6J("ngSwitchCase","balance"),t.xp6(1),t.Q6J("ngSwitchCase","capacity"),t.xp6(1),t.Q6J("ngSwitchCase","fee"),t.xp6(1),t.Q6J("ngSwitchCase","status")}}function aa(i,o){if(1&i&&(t.TgZ(0,"div",2)(1,"div",3),t._UZ(2,"fa-icon",4),t.TgZ(3,"span",5),t._uU(4),t.qZA()(),t.TgZ(5,"mat-grid-list",6),t.YNc(6,ia,23,18,"mat-grid-tile",7),t.qZA()()),2&i){const n=t.oxw();t.xp6(2),t.Q6J("icon",n.apiCallStatusNodeInfo.status===n.apiCallStatusEnum.ERROR?n.faFrown:n.faSmile),t.xp6(2),t.Oqu(n.apiCallStatusNodeInfo.status===n.apiCallStatusEnum.COMPLETED?"Welcome "+n.information.alias+"! Your node is up and running.":n.apiCallStatusNodeInfo.status===n.apiCallStatusEnum.INITIATED?"Wait! Getting your node information...":"Error! Please check the server connection."),t.xp6(1),t.Q6J("rowHeight",n.operatorCardHeight),t.xp6(1),t.Q6J("ngForOf",n.operatorCards)}}function oa(i,o){if(1&i&&(t.TgZ(0,"button",26)(1,"mat-icon"),t._uU(2,"more_vert"),t.qZA()()),2&i){t.oxw();const n=t.MAs(9);t.Q6J("matMenuTriggerFor",n)}}function sa(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){const s=t.CHM(n).index,r=t.oxw(2).$implicit,p=t.oxw(2);return t.KtG(p.onNavigateTo(r.links[s]))}),t._uU(1),t.qZA()}if(2&i){const n=o.$implicit;t.xp6(1),t.Oqu(n)}}function la(i,o){if(1&i&&(t.TgZ(0,"mat-card-header")(1,"mat-card-title",10)(2,"div"),t._UZ(3,"fa-icon",11),t.TgZ(4,"span"),t._uU(5),t.qZA()(),t.TgZ(6,"div"),t.YNc(7,oa,3,1,"button",12),t.TgZ(8,"mat-menu",13,42),t.YNc(10,sa,2,1,"button",15),t.qZA()()()()),2&i){const n=t.oxw().$implicit;t.xp6(3),t.Q6J("icon",n.icon),t.xp6(2),t.Oqu(n.title),t.xp6(2),t.Q6J("ngIf",n.links[0]),t.xp6(3),t.Q6J("ngForOf",n.goToOptions)}}function ra(i,o){1&i&&t._UZ(0,"mat-progress-bar",28)}function ca(i,o){if(1&i&&t._UZ(0,"rtl-ecl-node-info",43),2&i){const n=t.oxw(3);t.Q6J("information",n.information)}}function ua(i,o){if(1&i&&t._UZ(0,"rtl-ecl-balances-info",30),2&i){const n=t.oxw(3);t.Q6J("balances",n.balances)("errorMessage",n.errorMessages[2]+" "+n.errorMessages[3])}}function pa(i,o){if(1&i&&t._UZ(0,"rtl-ecl-channel-liquidity-info",44),2&i){const n=t.oxw(3);t.Q6J("direction","In")("totalLiquidity",n.totalInboundLiquidity)("allChannels",n.allInboundChannels)("errorMessage",n.errorMessages[2])}}function ma(i,o){if(1&i&&t._UZ(0,"rtl-ecl-channel-liquidity-info",44),2&i){const n=t.oxw(3);t.Q6J("direction","Out")("totalLiquidity",n.totalOutboundLiquidity)("allChannels",n.allOutboundChannels)("errorMessage",n.errorMessages[2])}}function da(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){const s=t.CHM(n).index,r=t.oxw(2).$implicit,p=t.oxw(2);return t.KtG(p.onNavigateTo(r.links[s]))}),t._uU(1),t.qZA()}if(2&i){const n=o.$implicit;t.xp6(1),t.Oqu(n)}}function ha(i,o){if(1&i&&(t.TgZ(0,"span",45)(1,"mat-tab-group",46)(2,"mat-tab",47),t._UZ(3,"rtl-ecl-lightning-invoices",48),t.qZA(),t.TgZ(4,"mat-tab",49),t._UZ(5,"rtl-ecl-lightning-payments",50),t.qZA()(),t.TgZ(6,"div",51)(7,"button",26)(8,"mat-icon"),t._uU(9,"more_vert"),t.qZA()(),t.TgZ(10,"mat-menu",13,52),t.YNc(12,da,2,1,"button",15),t.qZA()()()),2&i){const n=t.MAs(11),e=t.oxw().$implicit;t.xp6(3),t.Q6J("calledFrom","home"),t.xp6(2),t.Q6J("calledFrom","home"),t.xp6(2),t.Q6J("matMenuTriggerFor",n),t.xp6(5),t.Q6J("ngForOf",e.goToOptions)}}function _a(i,o){1&i&&(t.TgZ(0,"h3"),t._uU(1,"Error! Unable to find information!"),t.qZA())}const ga=function(i){return{"p-0":i}};function fa(i,o){if(1&i&&(t.TgZ(0,"mat-grid-tile",8)(1,"mat-card",36),t.YNc(2,la,11,4,"mat-card-header",37),t.TgZ(3,"mat-card-content",38),t.YNc(4,ra,1,0,"mat-progress-bar",18),t.TgZ(5,"div",19),t.YNc(6,ca,1,1,"rtl-ecl-node-info",39),t.YNc(7,ua,1,2,"rtl-ecl-balances-info",21),t.YNc(8,pa,1,4,"rtl-ecl-channel-liquidity-info",40),t.YNc(9,ma,1,4,"rtl-ecl-channel-liquidity-info",40),t.YNc(10,ha,13,4,"span",41),t.YNc(11,_a,2,0,"h3",25),t.qZA()()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.Q6J("colspan",n.cols)("rowspan",n.rows),t.xp6(1),t.Q6J("ngClass",t.VKq(13,ga,"transactions"===n.id)),t.xp6(1),t.Q6J("ngIf","transactions"!==n.id),t.xp6(1),t.s9C("fxFlex","transactions"===n.id?100:"balance"===n.id?70:90),t.Q6J("ngClass",t.VKq(15,wt,"node"===n.id&&e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.ERROR||"balance"===n.id&&(e.apiCallStatusAllChannels.status===e.apiCallStatusEnum.ERROR||e.apiCallStatusOCBal.status===e.apiCallStatusEnum.ERROR)||("inboundLiq"===n.id||"outboundLiq"===n.id)&&e.apiCallStatusAllChannels.status===e.apiCallStatusEnum.ERROR)),t.xp6(1),t.Q6J("ngIf","node"===n.id&&e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.INITIATED||"balance"===n.id&&(e.apiCallStatusAllChannels.status===e.apiCallStatusEnum.INITIATED||e.apiCallStatusOCBal.status===e.apiCallStatusEnum.INITIATED)||("inboundLiq"===n.id||"outboundLiq"===n.id)&&e.apiCallStatusAllChannels.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngSwitch",n.id),t.xp6(1),t.Q6J("ngSwitchCase","node"),t.xp6(1),t.Q6J("ngSwitchCase","balance"),t.xp6(1),t.Q6J("ngSwitchCase","inboundLiq"),t.xp6(1),t.Q6J("ngSwitchCase","outboundLiq"),t.xp6(1),t.Q6J("ngSwitchCase","transactions")}}function Ca(i,o){if(1&i&&(t.TgZ(0,"div",34),t._UZ(1,"fa-icon",4),t.TgZ(2,"span",5),t._uU(3),t.qZA()(),t.TgZ(4,"mat-grid-list",35),t.YNc(5,fa,12,17,"mat-grid-tile",7),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Q6J("icon",n.faSmile),t.xp6(2),t.hij("Welcome ",n.information.alias,"! Your node is up and running."),t.xp6(1),t.Q6J("rowHeight",n.merchantCardHeight),t.xp6(1),t.Q6J("ngForOf",n.merchantCards)}}let xa=(()=>{var i;class o{constructor(e,a,s,r){this.logger=e,this.store=a,this.commonService=s,this.router=r,this.faSmile=vt.ctA,this.faFrown=vt.KfU,this.faAngleDoubleDown=L.Sbq,this.faAngleDoubleUp=L.Vfw,this.faChartPie=L.OS1,this.faBolt=L.BDt,this.faServer=L.xf3,this.faNetworkWired=L.kXW,this.userPersonaEnum=l.ol,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:0},this.selNode={},this.information={},this.channels=[],this.onchainBalance={},this.balances={onchain:-1,lightning:-1,total:0},this.channelsStatus={},this.allChannelsCapacity=[],this.allInboundChannels=[],this.allOutboundChannels=[],this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.operatorCards=[],this.merchantCards=[],this.screenSize="",this.operatorCardHeight="390px",this.merchantCardHeight="62px",this.sortField="Balance Score",this.errorMessages=["","","",""],this.apiCallStatusNodeInfo={status:l.Bn.COMPLETED},this.apiCallStatusFees={status:l.Bn.COMPLETED},this.apiCallStatusOCBal={status:l.Bn.COMPLETED},this.apiCallStatusAllChannels={status:l.Bn.COMPLETED},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],this.screenSize=this.commonService.getScreenSize(),this.screenSize===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","connections/channels/inactive"],icon:this.faNetworkWired,title:"Channels",cols:10,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:6,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:6,rows:4},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:6,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:6,rows:8}]):this.screenSize===l.cu.SM||this.screenSize===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","connections/channels/inactive"],icon:this.faNetworkWired,title:"Channels",cols:5,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:3,rows:4},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:3,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:3,rows:8}]):(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:4,rows:2},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:3,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/inactive"],icon:this.faNetworkWired,title:"Channels",cols:3,rows:1}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:2,rows:5},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:2,rows:10},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:2,rows:10},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:2,rows:5}])}ngOnInit(){this.store.select(f.LR).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(f.T$).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=e.apiCallStatus,this.apiCallStatusNodeInfo.status===l.Bn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message?this.apiCallStatusNodeInfo.message:""),this.information=e.information}),this.store.select(f.JG).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.errorMessages[1]="",this.apiCallStatusFees=e.apiCallStatus,this.apiCallStatusFees.status===l.Bn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message?this.apiCallStatusFees.message:""),this.fees=e.fees}),this.store.select(f.Xz).pipe((0,_.R)(this.unSubs[3]),(0,lt.M)(this.store.select(f.kY))).subscribe(([e,a])=>{this.errorMessages[2]="",this.errorMessages[3]="",this.apiCallStatusAllChannels=e.apiCallStatus,this.apiCallStatusOCBal=a.apiCallStatus,this.apiCallStatusAllChannels.status===l.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusAllChannels.message?JSON.stringify(this.apiCallStatusAllChannels.message):this.apiCallStatusAllChannels.message?this.apiCallStatusAllChannels.message:""),this.apiCallStatusOCBal.status===l.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusOCBal.message?JSON.stringify(this.apiCallStatusOCBal.message):this.apiCallStatusOCBal.message?this.apiCallStatusOCBal.message:""),this.channels=e.activeChannels,this.onchainBalance=a.onchainBalance,this.balances.onchain=this.onchainBalance.total||0,this.balances.lightning=e.lightningBalance.localBalance,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances);const s=e.lightningBalance.localBalance?+e.lightningBalance.localBalance:0,r=e.lightningBalance.remoteBalance?+e.lightningBalance.remoteBalance:0;this.channelBalances={localBalance:s,remoteBalance:r,balancedness:+(1-Math.abs((s-r)/(s+r))).toFixed(3)},this.channelsStatus=e.channelsStatus,this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.allChannelsCapacity=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.channels,"balancedness"))),this.allInboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.channels?.filter(x=>(x.toRemote||0)>0),"toRemote"))),this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.channels?.filter(x=>(x.toLocal||0)>0),"toLocal"))),this.channels.forEach(x=>{this.totalInboundLiquidity=this.totalInboundLiquidity+Math.ceil(x.toRemote||0),this.totalOutboundLiquidity=this.totalOutboundLiquidity+Math.floor(x.toLocal||0)}),this.logger.info(e)})}onNavigateTo(e){this.router.navigateByUrl("/ecl/"+e)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.allChannelsCapacity=this.channels.sort((e,a)=>{const s=+(e.toLocal||0)+ +(e.toRemote||0),r=+(a.toLocal||0)+ +(a.toRemote||0);return s>r?-1:s{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(E.yh),t.Y36(M.v),t.Y36(b.F0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-home"]],decls:3,vars:2,consts:[["fxLayout","column",4,"ngIf","ngIfElse"],["merchantDashboard",""],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","mb-2"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","10","gutterSize","20px",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",3,"colspan","rowspan",4,"ngFor","ngForOf"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",3,"colspan","rowspan"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card"],["fxLayoutAlign","space-between center"],[1,"mr-1",3,"icon"],["mat-icon-button","","class","more-button","aria-label","Toggle menu",3,"matMenuTriggerFor",4,"ngIf"],["xPosition","before",1,"dashboard-vert-menu"],["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-2"],["cols","6","gutterSize","20px",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card",3,"ngClass"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",3,"fxFlex","ngClass"],["fxFlex","100",3,"information",4,"ngSwitchCase"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","errorMessage",4,"ngSwitchCase"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",4,"ngSwitchCase"],["menuMerchant","matMenu"],["fxFlex","100",3,"information"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","errorMessage"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["mat-stretch-tabs","false","mat-align-tabs","start","fxLayout","column",1,"dashboard-tabs-group"],["label","Receive"],[1,"h-100",3,"calledFrom"],["label","Pay"],[3,"calledFrom"],[1,"underline"],["menuTransactions","matMenu"]],template:function(e,a){if(1&e&&(t.YNc(0,aa,7,4,"div",0),t.YNc(1,Ca,6,4,"ng-template",null,1,t.W1O)),2&e){const s=t.MAs(2);t.Q6J("ngIf",(null==a.selNode?null:a.selNode.userPersona)===a.userPersonaEnum.OPERATOR)("ngIfElse",s)}},dependencies:[u.mk,u.sg,u.O5,u.RF,u.n9,u.ED,I.BN,h.xw,h.Wh,h.yH,Z.oO,F.RK,T.a8,T.dn,T.dk,T.n5,Zt.Il,Zt.DX,rt.Hw,ct.VK,ct.OP,ct.p6,H.pW,q.uX,q.SP,Xt,te,ie,se,he,Ee,At,Et]}),o})();var ya=g(8377);const ba=["form"];function La(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Bitcoin address is required."),t.qZA())}function Ta(i,o){if(1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Oqu(n.amountError)}}function va(i,o){if(1&i&&(t.TgZ(0,"mat-option",29),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.Q6J("value",n),t.xp6(1),t.Oqu(n)}}function Za(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Target Confirmation Blocks is required."),t.qZA())}function Sa(i,o){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Oqu(n.sendFundError)}}function Aa(i,o){if(1&i&&(t.TgZ(0,"div",30),t._UZ(1,"fa-icon",31),t.YNc(2,Sa,2,1,"span",12),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Q6J("icon",n.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==n.sendFundError)}}let It=(()=>{var i;class o{constructor(e,a,s,r,p,x){this.dialogRef=e,this.logger=a,this.store=s,this.commonService=r,this.decimalPipe=p,this.actions=x,this.faExclamationTriangle=L.eHv,this.selNode={},this.addressTypes=[],this.selectedAddress=l._t[1],this.blockchainBalance={},this.information={},this.newAddress="",this.transaction={},this.sendFundError="",this.fiatConversion=!1,this.amountUnits=l.uA,this.selAmountUnit=l.uA[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=l.Xz,this.amountError="Amount is Required.",this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.store.select(ya.dT).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.fiatConversion=e.settings.fiatConversion,this.amountUnits=e.settings.currencyUnits,this.logger.info(e)}),this.actions.pipe((0,_.R)(this.unSubs[1]),(0,Y.h)(e=>e.type===l.lr.UPDATE_API_CALL_STATUS_ECL||e.type===l.lr.SEND_ONCHAIN_FUNDS_RES_ECL)).subscribe(e=>{e.type===l.lr.SEND_ONCHAIN_FUNDS_RES_ECL&&(this.store.dispatch((0,S.jW)({payload:"Fund Sent Successfully!"})),this.dialogRef.close()),e.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&e.payload.status===l.Bn.ERROR&&"SendOnchainFunds"===e.payload.action&&(this.sendFundError=e.payload.message)})}onSendFunds(){if(this.invalidValues)return!0;this.sendFundError="",this.transaction.amount&&this.selAmountUnit!==l.NT.SATS?this.commonService.convertCurrency(this.transaction.amount,this.selAmountUnit===this.amountUnits[2]?l.NT.OTHER:this.selAmountUnit,l.NT.SATS,this.amountUnits[2],this.fiatConversion).pipe((0,_.R)(this.unSubs[2])).subscribe({next:e=>{this.transaction.amount=parseInt(e[l.NT.SATS]),this.selAmountUnit=l.NT.SATS,this.store.dispatch((0,k.Iy)({payload:this.transaction}))},error:e=>{this.selAmountUnit=l.NT.SATS,this.amountError="Conversion Error: "+e}}):this.store.dispatch((0,k.Iy)({payload:this.transaction}))}get invalidValues(){return!this.transaction.address||""===this.transaction.address||!this.transaction.amount||this.transaction.amount<=0||!this.transaction.blocks||this.transaction.blocks<=0}resetData(){this.sendFundError="",this.transaction={}}onAmountUnitChange(e){const a=this,s=this.selAmountUnit===this.amountUnits[2]?l.NT.OTHER:this.selAmountUnit;let r=e.value===this.amountUnits[2]?l.NT.OTHER:e.value;this.transaction.amount&&this.selAmountUnit!==e.value&&this.commonService.convertCurrency(this.transaction.amount,s,r,this.amountUnits[2],this.fiatConversion).pipe((0,_.R)(this.unSubs[3])).subscribe({next:p=>{this.selAmountUnit=e.value,a.transaction.amount=+a.decimalPipe.transform(p[r],a.currencyUnitFormats[r]).replace(/,/g,"")},error:p=>{this.amountError="Conversion Error: "+p,this.selAmountUnit=s,r=s}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(D.so),t.Y36(R.mQ),t.Y36(E.yh),t.Y36(M.v),t.Y36(u.JJ),t.Y36(K.eX))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-on-chain-send-modal"]],viewQuery:function(e,a){if(1&e&&t.Gf(ba,7),2&e){let s;t.iGM(s=t.CRH())&&(a.form=s.first)}},decls:42,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 center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"overflow-x-hidden",3,"submit","reset"],["form","ngForm"],["fxLayout","column","fxFlex","55"],["matInput","","autoFocus","","tabindex","1","name","addr","required","",3,"ngModel","ngModelChange"],["addrs","ngModel"],[4,"ngIf"],["fxLayout","column","fxFlex","30"],["matInput","","name","amt","type","number","tabindex","2","required","",3,"step","min","ngModel","ngModelChange"],["amnt","ngModel"],["matSuffix",""],["fxLayout","column","fxFlex","10","fxLayoutAlign","start end"],["tabindex","3","required","","name","amountUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","60","fxLayoutAlign","space-between stretch","fxLayout","row wrap"],["fxLayout","column","fxFlex","48","fxLayoutAlign","start center"],["matInput","","type","number","name","blocks","tabindex","8","required","true",3,"step","min","ngModel","ngModelChange"],["blocks","ngModel"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit","tabindex","8"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Send Payment"),t.qZA()(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8),t.NdJ("submit",function(){return a.onSendFunds()})("reset",function(){return a.resetData()}),t.TgZ(11,"mat-form-field",9)(12,"mat-label"),t._uU(13,"Bitcoin Address"),t.qZA(),t.TgZ(14,"input",10,11),t.NdJ("ngModelChange",function(r){return a.transaction.address=r}),t.qZA(),t.YNc(16,La,2,0,"mat-error",12),t.qZA(),t.TgZ(17,"mat-form-field",13)(18,"mat-label"),t._uU(19,"Amount"),t.qZA(),t.TgZ(20,"input",14,15),t.NdJ("ngModelChange",function(r){return a.transaction.amount=r}),t.qZA(),t.TgZ(22,"span",16),t._uU(23),t.qZA(),t.YNc(24,Ta,2,1,"mat-error",12),t.qZA(),t.TgZ(25,"mat-form-field",17)(26,"mat-select",18),t.NdJ("selectionChange",function(r){return a.onAmountUnitChange(r)}),t.YNc(27,va,2,2,"mat-option",19),t.qZA()(),t.TgZ(28,"div",20)(29,"mat-form-field",21)(30,"mat-label"),t._uU(31,"Target Confirmation Blocks"),t.qZA(),t.TgZ(32,"input",22,23),t.NdJ("ngModelChange",function(r){return a.transaction.blocks=r}),t.qZA(),t.YNc(34,Za,2,0,"mat-error",12),t.qZA()(),t._UZ(35,"div",24),t.YNc(36,Aa,3,2,"div",25),t.TgZ(37,"div",26)(38,"button",27),t._uU(39,"Clear Fields"),t.qZA(),t.TgZ(40,"button",28),t._uU(41,"Send Funds"),t.qZA()()()()()()),2&e&&(t.xp6(6),t.Q6J("mat-dialog-close",!1),t.xp6(8),t.Q6J("ngModel",a.transaction.address),t.xp6(2),t.Q6J("ngIf",!a.transaction.address),t.xp6(4),t.Q6J("step",100)("min",0)("ngModel",a.transaction.amount),t.xp6(3),t.hij("",a.selAmountUnit," "),t.xp6(1),t.Q6J("ngIf",!a.transaction.amount),t.xp6(2),t.Q6J("value",a.selAmountUnit),t.xp6(1),t.Q6J("ngForOf",a.amountUnits),t.xp6(5),t.Q6J("step",1)("min",0)("ngModel",a.transaction.blocks),t.xp6(2),t.Q6J("ngIf",!a.transaction.blocks),t.xp6(2),t.Q6J("ngIf",""!==a.sendFundError))},dependencies:[u.sg,u.O5,d._Y,d.Fj,d.wV,d.JJ,d.JL,d.Q7,d.qQ,d.On,d.F,I.BN,h.xw,h.Wh,h.yH,D.ZT,F.lW,T.dn,T.dk,Q.Nt,C.KE,C.hX,C.TO,C.R9,A.gD,V.ey,$.h,j.q]}),o})();var ht=g(1203);function Ea(i,o){if(1&i&&(t.TgZ(0,"mat-option",34),t._uU(1),t.qZA()),2&i){const n=o.$implicit,e=t.oxw();t.Q6J("value",n),t.xp6(1),t.Oqu(e.getLabel(n))}}function wa(i,o){1&i&&t._UZ(0,"mat-progress-bar",35)}function Ia(i,o){1&i&&(t.TgZ(0,"th",36),t._uU(1,"Date/Time"),t.qZA())}function Fa(i,o){if(1&i&&(t.TgZ(0,"td",37),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*(null==n?null:n.timestamp),"dd/MMM/y HH:mm"))}}function qa(i,o){1&i&&(t.TgZ(0,"th",36),t._uU(1,"Address"),t.qZA())}const _t=function(i){return{width:i}};function Na(i,o){if(1&i&&(t.TgZ(0,"td",37)(1,"div",38)(2,"span",39),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,_t,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.address)}}function Oa(i,o){1&i&&(t.TgZ(0,"th",36),t._uU(1,"Blockhash"),t.qZA())}function Pa(i,o){if(1&i&&(t.TgZ(0,"td",37)(1,"div",38)(2,"span",39),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,_t,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.blockHash)}}function ka(i,o){1&i&&(t.TgZ(0,"th",36),t._uU(1,"Transaction ID"),t.qZA())}function Ua(i,o){if(1&i&&(t.TgZ(0,"td",37)(1,"div",38)(2,"span",39),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,_t,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.txid)}}function Ra(i,o){1&i&&(t.TgZ(0,"th",40),t._uU(1,"Amount (Sats)"),t.qZA())}function Ma(i,o){if(1&i&&(t.TgZ(0,"span",43),t._uU(1),t.ALo(2,"number"),t.qZA()),2&i){const n=t.oxw().$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,null==n?null:n.amount))}}function Da(i,o){if(1&i&&(t.TgZ(0,"span",44),t._uU(1),t.ALo(2,"number"),t.qZA()),2&i){const n=t.oxw().$implicit;t.xp6(1),t.hij("(",t.lcZ(2,1,-1*(null==n?null:n.amount)),")")}}function Ja(i,o){if(1&i&&(t.TgZ(0,"td",37),t.YNc(1,Ma,3,3,"span",41),t.YNc(2,Da,3,3,"span",42),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Q6J("ngIf",(null==n?null:n.amount)>0||0===(null==n?null:n.amount)),t.xp6(1),t.Q6J("ngIf",(null==n?null:n.amount)<0)}}function Ha(i,o){1&i&&(t.TgZ(0,"th",40),t._uU(1,"Fees (Sats)"),t.qZA())}function Qa(i,o){if(1&i&&(t.TgZ(0,"td",37)(1,"span",43),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==n?null:n.fees))}}function Ya(i,o){1&i&&(t.TgZ(0,"th",40),t._uU(1,"Confirmations"),t.qZA())}function Ba(i,o){if(1&i&&(t.TgZ(0,"td",37)(1,"span",43),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==n?null:n.confirmations)," ")}}function Va(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"th",45)(1,"div",46)(2,"mat-select",47),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",48),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onDownloadCSV())}),t._uU(5,"Download CSV"),t.qZA()()()()}}function za(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"td",49)(1,"button",50),t.NdJ("click",function(a){const r=t.CHM(n).$implicit,p=t.oxw();return t.KtG(p.onTransactionClick(r,a))}),t._uU(2,"View Info"),t.qZA()()}}function Ga(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"No transaction available."),t.qZA())}function Wa(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"Getting transactions..."),t.qZA())}function Ka(i,o){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Oqu(n.errorMessage)}}function Xa(i,o){if(1&i&&(t.TgZ(0,"td",51),t.YNc(1,Ga,2,0,"p",52),t.YNc(2,Wa,2,0,"p",52),t.YNc(3,Ka,2,1,"p",52),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=n.listTransactions&&n.listTransactions.data)||(null==n.listTransactions||null==n.listTransactions.data?null:n.listTransactions.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.listTransactions&&n.listTransactions.data)||(null==n.listTransactions||null==n.listTransactions.data?null:n.listTransactions.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.listTransactions&&n.listTransactions.data)||(null==n.listTransactions||null==n.listTransactions.data?null:n.listTransactions.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}const $a=function(i){return{"display-none":i}};function ja(i,o){if(1&i&&t._UZ(0,"tr",53),2&i){const n=t.oxw();t.Q6J("ngClass",t.VKq(1,$a,(null==n.listTransactions?null:n.listTransactions.data)&&(null==n.listTransactions||null==n.listTransactions.data?null:n.listTransactions.data.length)>0))}}function to(i,o){1&i&&t._UZ(0,"tr",54)}function eo(i,o){1&i&&t._UZ(0,"tr",55)}const no=function(){return["all"]},io=function(i){return{"error-border":i}},ao=function(){return["no_transaction"]};let oo=(()=>{var i;class o{constructor(e,a,s,r,p){this.logger=e,this.commonService=a,this.store=s,this.datePipe=r,this.camelCaseWithSpaces=p,this.faHistory=L.qO$,this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="on_chain",this.tableSetting={tableId:"transaction",recordsPerPage:l.IV,sortBy:"timestamp",sortOrder:l.Pi.DESCENDING},this.displayedColumns=[],this.listTransactions=new c.by([]),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()}ngOnInit(){this.store.dispatch((0,k.mC)()),this.store.select(f.nF).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=e.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||l.c3.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(f.dx).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),e.transactions&&this.sort&&this.paginator&&this.loadTransactionsTable(e.transactions),this.logger.info(e)})}applyFilter(){this.listTransactions.filter=this.selFilter.trim().toLowerCase()}getLabel(e){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(s=>s.column===e);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):this.commonService.titleCase(e)}setFilterPredicate(){this.listTransactions.filterPredicate=(e,a)=>{let s="";switch(this.selFilterBy){case"all":s=(e.timestamp?this.datePipe.transform(new Date(1e3*e.timestamp),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(e).toLowerCase();break;case"timestamp":s=this.datePipe.transform(new Date(1e3*(e[this.selFilterBy]||0)),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;default:s=typeof e[this.selFilterBy]>"u"?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return s.includes(a)}}onTransactionClick(e,a){this.store.dispatch((0,S.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Transaction Information",message:[[{key:"blockHash",value:e.blockHash,title:"Block Hash",width:100}],[{key:"txid",value:e.txid,title:"Transaction ID",width:100}],[{key:"timestamp",value:e.timestamp,title:"Date/Time",width:50,type:l.Gi.DATE_TIME},{key:"confirmations",value:e.confirmations,title:"Number of Confirmations",width:50,type:l.Gi.NUMBER}],[{key:"fees",value:e.fees,title:"Fees (Sats)",width:50,type:l.Gi.NUMBER},{key:"amount",value:e.amount,title:"Amount (Sats)",width:50,type:l.Gi.NUMBER}],[{key:"address",value:e.address,title:"Address",width:100,type:l.Gi.STRING}]]}}}))}loadTransactionsTable(e){this.listTransactions=new c.by([...e]),this.listTransactions.sort=this.sort,this.listTransactions.sortingDataAccessor=(a,s)=>a[s]&&isNaN(a[s])?a[s].toLocaleLowerCase():a[s]?+a[s]:null,this.listTransactions.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.listTransactions)}onDownloadCSV(){this.listTransactions.data&&this.listTransactions.data.length>0&&this.commonService.downloadFile(this.listTransactions.data,"Transactions")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(M.v),t.Y36(E.yh),t.Y36(u.uU),t.Y36(z.i1))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-on-chain-transaction-history"]],viewQuery:function(e,a){if(1&e&&(t.Gf(v.YE,5),t.Gf(w.NW,5)),2&e){let s;t.iGM(s=t.CRH())&&(a.sort=s.first),t.iGM(s=t.CRH())&&(a.paginator=s.first)}},features:[t._Bn([{provide:A.PG,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.ye,useValue:(0,l.pt)("Transactions")}])],decls:52,vars:19,consts:[["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","start stretch"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["table",""],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","address"],["matColumnDef","blockHash"],["matColumnDef","txid"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","fees"],["matColumnDef","confirmations"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_transaction"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center",4,"ngIf"],["fxLayoutAlign","end center","class","red",4,"ngIf"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",1,"red"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,a){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span",4),t._uU(5,"Transaction History"),t.qZA()(),t.TgZ(6,"div",5)(7,"mat-form-field",6)(8,"mat-label"),t._uU(9,"Filter By"),t.qZA(),t.TgZ(10,"mat-select",7),t.NdJ("ngModelChange",function(r){return a.selFilterBy=r})("selectionChange",function(){return a.selFilter="",a.applyFilter()}),t.TgZ(11,"perfect-scrollbar"),t.YNc(12,Ea,2,2,"mat-option",8),t.qZA()()(),t.TgZ(13,"mat-form-field",6)(14,"mat-label"),t._uU(15,"Filter"),t.qZA(),t.TgZ(16,"input",9),t.NdJ("ngModelChange",function(r){return a.selFilter=r})("input",function(){return a.applyFilter()})("keyup",function(){return a.applyFilter()}),t.qZA()()()(),t.TgZ(17,"div",10)(18,"div",11),t.YNc(19,wa,1,0,"mat-progress-bar",12),t.TgZ(20,"table",13,14),t.ynx(22,15),t.YNc(23,Ia,2,0,"th",16),t.YNc(24,Fa,3,4,"td",17),t.BQk(),t.ynx(25,18),t.YNc(26,qa,2,0,"th",16),t.YNc(27,Na,4,4,"td",17),t.BQk(),t.ynx(28,19),t.YNc(29,Oa,2,0,"th",16),t.YNc(30,Pa,4,4,"td",17),t.BQk(),t.ynx(31,20),t.YNc(32,ka,2,0,"th",16),t.YNc(33,Ua,4,4,"td",17),t.BQk(),t.ynx(34,21),t.YNc(35,Ra,2,0,"th",22),t.YNc(36,Ja,3,2,"td",17),t.BQk(),t.ynx(37,23),t.YNc(38,Ha,2,0,"th",22),t.YNc(39,Qa,4,3,"td",17),t.BQk(),t.ynx(40,24),t.YNc(41,Ya,2,0,"th",22),t.YNc(42,Ba,4,3,"td",17),t.BQk(),t.ynx(43,25),t.YNc(44,Va,6,0,"th",26),t.YNc(45,za,3,0,"td",27),t.BQk(),t.ynx(46,28),t.YNc(47,Xa,4,3,"td",29),t.BQk(),t.YNc(48,ja,1,3,"tr",30),t.YNc(49,to,1,0,"tr",31),t.YNc(50,eo,1,0,"tr",32),t.qZA(),t._UZ(51,"mat-paginator",33),t.qZA()()()),2&e&&(t.xp6(3),t.Q6J("icon",a.faHistory),t.xp6(7),t.Q6J("ngModel",a.selFilterBy),t.xp6(2),t.Q6J("ngForOf",t.DdM(15,no).concat(a.displayedColumns.slice(0,-1))),t.xp6(4),t.Q6J("ngModel",a.selFilter),t.xp6(3),t.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.listTransactions)("ngClass",t.VKq(16,io,""!==a.errorMessage)),t.xp6(28),t.Q6J("matFooterRowDef",t.DdM(18,ao)),t.xp6(1),t.Q6J("matHeaderRowDef",a.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",a.displayedColumns),t.xp6(1),t.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[u.mk,u.sg,u.O5,u.PC,d.Fj,d.JJ,d.On,I.BN,h.xw,h.Wh,h.yH,Z.oO,Z.Zl,F.lW,Q.Nt,C.KE,C.hX,H.pW,A.gD,A.$L,V.ey,v.YE,v.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.mD,c.Ke,c.ge,c.ev,c.yh,c.XQ,c.Gk,c.Q2,w.NW,P.Vv,P.$V,u.JJ,u.uU]}),o})();function so(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",12),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw();return t.KtG(r.activeLink=s.link)}),t._uU(1),t.qZA()}if(2&i){const n=o.$implicit,e=t.oxw();t.s9C("routerLink",n.link),t.Q6J("active",e.activeLink===n.link),t.xp6(1),t.Oqu(n.name)}}let lo=(()=>{var i;class o{constructor(e,a){this.store=e,this.router=a,this.selNode={},this.faExchangeAlt=L.Ssp,this.faChartPie=L.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"}],this.activeLink=this.links[0].link,this.unSubs=[new m.x,new m.x,new m.x,new m.x]}ngOnInit(){const e=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Y.h)(a=>a instanceof b.Av)).subscribe({next:a=>{const s=this.links.find(r=>a.urlAfterRedirects.includes(r.link));this.activeLink=s?s.link:this.links[0].link}}),this.store.select(f.LR).pipe((0,_.R)(this.unSubs[1])).subscribe(a=>{this.selNode=a}),this.store.select(f.kY).pipe((0,_.R)(this.unSubs[2])).subscribe(a=>{this.balances=[{title:"Total Balance",dataValue:a.onchainBalance.total||0},{title:"Confirmed",dataValue:a.onchainBalance.confirmed||0},{title:"Unconfirmed",dataValue:a.onchainBalance.unconfirmed||0}]})}openSendFundsModal(){this.store.dispatch((0,S.qR)({payload:{data:{component:It}}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(E.yh),t.Y36(b.F0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-on-chain"]],decls:23,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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["tabPanel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxLayout","row","fxFlex","100"],["mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,a){if(1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"On-chain Balance"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),t._UZ(7,"rtl-currency-unit-converter",5),t.qZA()()(),t.TgZ(8,"div",0),t._UZ(9,"fa-icon",1),t.TgZ(10,"span",2),t._uU(11,"On-chain Transactions"),t.qZA()(),t.TgZ(12,"div",6)(13,"mat-card")(14,"mat-card-content",4)(15,"nav",7),t.YNc(16,so,2,3,"div",8),t.qZA(),t._UZ(17,"mat-tab-nav-panel",null,9),t.TgZ(19,"div",10),t._UZ(20,"router-outlet"),t.qZA(),t.TgZ(21,"div",10),t._UZ(22,"rtl-ecl-on-chain-transaction-history",11),t.qZA()()()()),2&e){const s=t.MAs(18);t.xp6(1),t.Q6J("icon",a.faChartPie),t.xp6(6),t.Q6J("values",a.balances),t.xp6(2),t.Q6J("icon",a.faExchangeAlt),t.xp6(6),t.Q6J("tabPanel",s),t.xp6(1),t.Q6J("ngForOf",a.links)}},dependencies:[u.sg,I.BN,h.xw,h.Wh,h.yH,T.a8,T.dn,q.BU,q.sW,q.Nj,ht.D,b.lC,b.rH,oo]}),o})();var Ft=g(2673);function ro(i,o){if(1&i&&(t.TgZ(0,"span",10),t._uU(1,"Channels"),t.qZA()),2&i){const n=t.oxw();t.s9C("matBadge",n.activeChannels)}}function co(i,o){if(1&i&&(t.TgZ(0,"span",10),t._uU(1,"Peers"),t.qZA()),2&i){const n=t.oxw();t.s9C("matBadge",n.activePeers)}}let uo=(()=>{var i;class o{constructor(e,a){this.store=e,this.router=a,this.activePeers=0,this.activeChannels=0,this.faUsers=L.FVb,this.faChartPie=L.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]}ngOnInit(){this.activeLink=this.links.findIndex(e=>e.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Y.h)(e=>e instanceof b.Av)).subscribe({next:e=>{this.activeLink=this.links.findIndex(a=>a.link===e.urlAfterRedirects.substring(e.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(f.Bo).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.activePeers=e.peers&&e.peers.length?e.peers.length:0}),this.store.select(f.Xz).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.activeChannels=e.channelsStatus&&e.channelsStatus.active&&e.channelsStatus.active.channels?e.channelsStatus.active.channels:0}),this.store.select(f.kY).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.balances=[{title:"Total Balance",dataValue:e.onchainBalance.total||0},{title:"Confirmed",dataValue:e.onchainBalance.confirmed||0},{title:"Unconfirmed",dataValue:e.onchainBalance.unconfirmed||0}]})}onSelectedTabChange(e){this.router.navigateByUrl("/ecl/connections/"+this.links[e.index].link)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(E.yh),t.Y36(b.F0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-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"],["mat-stretch-tabs","false","mat-align-tabs","start",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(e,a){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"On-chain Balance"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),t._UZ(7,"rtl-currency-unit-converter",5),t.qZA()()(),t.TgZ(8,"div",0),t._UZ(9,"fa-icon",1),t.TgZ(10,"span",2),t._uU(11,"Connections"),t.qZA()(),t.TgZ(12,"div",6)(13,"mat-card")(14,"mat-card-content",4)(15,"mat-tab-group",7),t.NdJ("selectedIndexChange",function(r){return a.activeLink=r})("selectedTabChange",function(r){return a.onSelectedTabChange(r)}),t.TgZ(16,"mat-tab"),t.YNc(17,ro,2,1,"ng-template",8),t.qZA(),t.TgZ(18,"mat-tab"),t.YNc(19,co,2,1,"ng-template",8),t.qZA()(),t.TgZ(20,"div",9),t._UZ(21,"router-outlet"),t.qZA()()()()),2&e&&(t.xp6(1),t.Q6J("icon",a.faChartPie),t.xp6(6),t.Q6J("values",a.balances),t.xp6(2),t.Q6J("icon",a.faUsers),t.xp6(6),t.Q6J("selectedIndex",a.activeLink))},dependencies:[I.BN,h.xw,h.Wh,h.yH,T.a8,T.dn,Ft.k,q.uD,q.uX,q.SP,ht.D,b.lC]}),o})();function po(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",12),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw();return t.KtG(r.activeLink=s.link)}),t._uU(1),t.qZA()}if(2&i){const n=o.$implicit,e=t.oxw();t.s9C("routerLink",n.link),t.Q6J("active",e.activeLink===n.link),t.xp6(1),t.Oqu(n.name)}}let mo=(()=>{var i;class o{constructor(e,a,s){this.logger=e,this.store=a,this.router=s,this.faExchangeAlt=L.Ssp,this.faChartPie=L.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"}],this.activeLink=this.links[0].link,this.unSubs=[new m.x,new m.x,new m.x,new m.x]}ngOnInit(){const e=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Y.h)(a=>a instanceof b.Av)).subscribe({next:a=>{const s=this.links.find(r=>a.urlAfterRedirects.includes(r.link));this.activeLink=s?s.link:this.links[0].link}}),this.store.select(f.Xz).pipe((0,_.R)(this.unSubs[1]),(0,lt.M)(this.store.select(f.LR))).subscribe(([a,s])=>{this.currencyUnits=s?.currencyUnits||[],this.balances=s&&s.userPersona===l.ol.OPERATOR?[{title:"Local Capacity",dataValue:a.lightningBalance.localBalance,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:a.lightningBalance.remoteBalance,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:a.lightningBalance.localBalance,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:a.lightningBalance.remoteBalance,tooltip:"Amount you can receive"}],this.logger.info(a)})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(E.yh),t.Y36(b.F0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-transactions"]],decls:21,vars:5,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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["tabPanel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,a){if(1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Lightning Balance"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),t._UZ(7,"rtl-currency-unit-converter",5),t.qZA()()(),t.TgZ(8,"div",6),t._UZ(9,"fa-icon",1),t.TgZ(10,"span",2),t._uU(11,"Lightning Transactions"),t.qZA()(),t.TgZ(12,"div",7)(13,"mat-card")(14,"mat-card-content",4)(15,"nav",8),t.YNc(16,po,2,3,"div",9),t.qZA(),t._UZ(17,"mat-tab-nav-panel",null,10),t.TgZ(19,"div",11),t._UZ(20,"router-outlet"),t.qZA()()()()),2&e){const s=t.MAs(18);t.xp6(1),t.Q6J("icon",a.faChartPie),t.xp6(6),t.Q6J("values",a.balances),t.xp6(2),t.Q6J("icon",a.faExchangeAlt),t.xp6(6),t.Q6J("tabPanel",s),t.xp6(1),t.Q6J("ngForOf",a.links)}},dependencies:[u.sg,I.BN,h.xw,h.Wh,h.yH,T.a8,T.dn,q.BU,q.sW,q.Nj,ht.D,b.lC,b.rH]}),o})();function ho(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",12),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw();return t.KtG(r.activeLink=s.link)}),t._uU(1),t.qZA()}if(2&i){const n=o.$implicit,e=t.oxw();t.s9C("routerLink",n.link),t.Q6J("active",e.activeLink===n.link),t.xp6(1),t.Oqu(n.name)}}let _o=(()=>{var i;class o{constructor(e){this.router=e,this.faMapSigns=L.SuH,this.events=[],this.flgLoading=[!0],this.errorMessage="",this.links=[{link:"forwardinghistory",name:"Forwarding History"},{link:"peers",name:"Routing Peers"}],this.activeLink=this.links[0].link,this.unSubs=[new m.x,new m.x,new m.x]}ngOnInit(){const e=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Y.h)(a=>a instanceof b.Av)).subscribe({next:a=>{const s=this.links.find(r=>a.urlAfterRedirects.includes(r.link));this.activeLink=s?s.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(b.F0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-routing"]],decls:15,vars:3,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"],["fxLayout","row","fxFlex","100"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start","fxFlex","100",3,"tabPanel"],["mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["tabPanel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,a){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span",3),t._uU(4,"Routing"),t.qZA()(),t.TgZ(5,"div",4)(6,"mat-card",5)(7,"mat-card-content",6)(8,"div",7)(9,"nav",8),t.YNc(10,ho,2,3,"div",9),t.qZA(),t._UZ(11,"mat-tab-nav-panel",null,10),t.qZA(),t.TgZ(13,"div",11),t._UZ(14,"router-outlet"),t.qZA()()()()()),2&e){const s=t.MAs(12);t.xp6(2),t.Q6J("icon",a.faMapSigns),t.xp6(7),t.Q6J("tabPanel",s),t.xp6(1),t.Q6J("ngForOf",a.links)}},dependencies:[u.sg,I.BN,h.xw,h.Wh,h.yH,T.a8,T.dn,q.BU,q.sW,q.Nj,b.lC,b.rH]}),o})();var at=g(1948),qt=g(455),tt=g(8425);const go=["peersForm"],fo=["stepper"];function Co(i,o){if(1&i&&t._uU(0),2&i){const n=t.oxw();t.Oqu(n.peerFormLabel)}}function xo(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Address is required."),t.qZA())}function yo(i,o){if(1&i&&(t.TgZ(0,"div",33),t._UZ(1,"fa-icon",34),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&i){const n=t.oxw();t.xp6(1),t.Q6J("icon",n.faExclamationTriangle),t.xp6(2),t.Oqu(n.peerConnectionError)}}function bo(i,o){if(1&i&&t._uU(0),2&i){const n=t.oxw();t.Oqu(n.channelFormLabel)}}function Lo(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function To(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount must be a positive number."),t.qZA())}function vo(i,o){if(1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.hij("Amount must be less than or equal to ",n.totalBalance,".")}}function Zo(i,o){if(1&i&&(t.TgZ(0,"div",33),t._UZ(1,"fa-icon",34),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&i){const n=t.oxw();t.xp6(1),t.Q6J("icon",n.faExclamationTriangle),t.xp6(2),t.Oqu(n.channelConnectionError)}}let Nt=(()=>{var i;class o{constructor(e,a,s,r,p,x){this.dialogRef=e,this.data=a,this.store=s,this.formBuilder=r,this.actions=p,this.logger=x,this.faExclamationTriangle=L.eHv,this.selNode={},this.peerAddress="",this.totalBalance=0,this.flgChannelOpened=!1,this.channelOpenStatus=null,this.newlyAddedPeer=null,this.flgEditable=!0,this.peerConnectionError="",this.channelConnectionError="",this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)",this.unSubs=[new m.x,new m.x]}ngOnInit(){this.data.message?(this.totalBalance=this.data.message.balance,this.peerAddress=this.data.message.peer&&this.data.message.peer.nodeId&&this.data.message.peer.address?this.data.message.peer.nodeId+"@"+this.data.message.peer.address:this.data.message.peer&&this.data.message.peer.nodeId&&!this.data.message.peer.address?this.data.message.peer.nodeId:""):(this.totalBalance=0,this.peerAddress=""),this.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[d.kI.required]],peerAddress:[this.peerAddress,[d.kI.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[d.kI.required,d.kI.min(1),d.kI.max(this.totalBalance)]],isPrivate:[!!this.selNode?.unannouncedChannels],feeRate:[null],hiddenAmount:["",[d.kI.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.store.select(f.LR).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e,this.channelFormGroup.controls.isPrivate.setValue(!!e?.unannouncedChannels)}),this.actions.pipe((0,_.R)(this.unSubs[1]),(0,Y.h)(e=>e.type===l.lr.NEWLY_ADDED_PEER_ECL||e.type===l.lr.FETCH_CHANNELS_ECL||e.type===l.lr.UPDATE_API_CALL_STATUS_ECL)).subscribe(e=>{e.type===l.lr.NEWLY_ADDED_PEER_ECL&&(this.logger.info(e.payload),this.flgEditable=!1,this.newlyAddedPeer=e.payload.peer,this.peerFormGroup.controls.hiddenAddress.setValue(this.peerFormGroup.controls.peerAddress.value),this.stepper.next()),e.type===l.lr.FETCH_CHANNELS_ECL&&this.dialogRef.close(),e.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&e.payload.status===l.Bn.ERROR&&("SaveNewPeer"===e.payload.action?this.peerConnectionError=e.payload.message:"SaveNewChannel"===e.payload.action&&(this.channelConnectionError=e.payload.message))})}onConnectPeer(){if(!this.peerFormGroup.controls.peerAddress.value)return!0;this.peerConnectionError="",this.store.dispatch((0,k.El)({payload:{id:this.peerFormGroup.controls.peerAddress.value}}))}onOpenChannel(){if(!this.channelFormGroup.controls.fundingAmount.value||this.totalBalance-this.channelFormGroup.controls.fundingAmount.value<0)return!0;this.channelConnectionError="",this.store.dispatch((0,k.YX)({payload:{nodeId:this.newlyAddedPeer?.nodeId,amount:this.channelFormGroup.controls.fundingAmount.value,private:this.channelFormGroup.controls.isPrivate.value,feeRate:this.channelFormGroup.controls.feeRate.value}}))}onClose(){this.dialogRef.close(!1)}stepSelectionChanged(e){switch(e.selectedIndex){case 0:default:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 1:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+(this.newlyAddedPeer?.alias?this.newlyAddedPeer.alias:this.newlyAddedPeer?.nodeId):"Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 2:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+(this.newlyAddedPeer?.alias?this.newlyAddedPeer.alias:this.newlyAddedPeer?.nodeId):"Peer Details",this.channelFormLabel=this.channelFormGroup.controls.fundingAmount.value?"Opening Channel for "+this.channelFormGroup.controls.fundingAmount.value+" Sats":"Open Channel (Optional)"}e.selectedIndex{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(D.so),t.Y36(D.WI),t.Y36(E.yh),t.Y36(d.QS),t.Y36(K.eX),t.Y36(R.mQ))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-connect-peer"]],viewQuery:function(e,a){if(1&e&&(t.Gf(go,5),t.Gf(fo,5)),2&e){let s;t.iGM(s=t.CRH())&&(a.form=s.first),t.iGM(s=t.CRH())&&(a.stepper=s.first)}},decls:55,vars:22,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 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",""],["fxLayout","column","fxFlex","100"],["autoFocus","","matInput","","formControlName","peerAddress","tabindex","1","required",""],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mb-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxLayout","column","fxFlex","30","fxLayoutAlign","start end"],["matInput","","autoFocus","","formControlName","fundingAmount","type","number","tabindex","1","required","",3,"step"],["matSuffix",""],["fxLayout","column","fxFlex","30"],["matInput","","formControlName","feeRate","type","number","name","feeRate","tabindex","7",3,"step","min"],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","formControlName","isPrivate","name","isPrivate"],["mat-button","","color","primary","tabindex","8","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"click"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Connect to a new peer"),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return a.onClose()}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"div",7)(10,"mat-vertical-stepper",8,9),t.NdJ("selectionChange",function(r){return a.stepSelectionChanged(r)}),t.TgZ(12,"mat-step",10)(13,"form",11),t.YNc(14,Co,1,1,"ng-template",12),t.TgZ(15,"mat-form-field",13)(16,"mat-label"),t._uU(17,"Lightning Address (pubkey OR pubkey@ip:port)"),t.qZA(),t._UZ(18,"input",14),t.YNc(19,xo,2,0,"mat-error",15),t.qZA(),t.YNc(20,yo,4,2,"div",16),t.TgZ(21,"div",17)(22,"button",18),t.NdJ("click",function(){return a.onConnectPeer()}),t._uU(23),t.qZA()()()(),t.TgZ(24,"mat-step",10)(25,"form",19),t.YNc(26,bo,1,1,"ng-template",20),t.TgZ(27,"div",21)(28,"div",22)(29,"mat-form-field",23)(30,"mat-label"),t._uU(31,"Amount"),t.qZA(),t._UZ(32,"input",24),t.TgZ(33,"mat-hint"),t._uU(34),t.ALo(35,"number"),t.qZA(),t.TgZ(36,"span",25),t._uU(37," Sats "),t.qZA(),t.YNc(38,Lo,2,0,"mat-error",15),t.YNc(39,To,2,0,"mat-error",15),t.YNc(40,vo,2,1,"mat-error",15),t.qZA(),t.TgZ(41,"mat-form-field",26)(42,"mat-label"),t._uU(43,"Fee (Sats/vByte)"),t.qZA(),t._UZ(44,"input",27),t.qZA(),t.TgZ(45,"div",28)(46,"mat-slide-toggle",29),t._uU(47,"Private Channel"),t.qZA()()()(),t.YNc(48,Zo,4,2,"div",16),t.TgZ(49,"div",17)(50,"button",30),t.NdJ("click",function(){return a.onOpenChannel()}),t._uU(51),t.qZA()()()()(),t.TgZ(52,"div",31)(53,"button",32),t.NdJ("click",function(){return a.onClose()}),t._uU(54),t.qZA()()()()()()),2&e&&(t.xp6(10),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",a.peerFormGroup)("editable",a.flgEditable),t.xp6(1),t.Q6J("formGroup",a.peerFormGroup),t.xp6(6),t.Q6J("ngIf",null==a.peerFormGroup.controls.peerAddress.errors?null:a.peerFormGroup.controls.peerAddress.errors.required),t.xp6(1),t.Q6J("ngIf",""!==a.peerConnectionError),t.xp6(3),t.Oqu(""!==a.peerConnectionError?"Retry":"Add Peer"),t.xp6(1),t.Q6J("stepControl",a.channelFormGroup)("editable",a.flgEditable),t.xp6(1),t.Q6J("formGroup",a.channelFormGroup),t.xp6(7),t.Q6J("step",1e3),t.xp6(2),t.hij("Remaining: ",t.lcZ(35,20,a.totalBalance-(a.channelFormGroup.controls.fundingAmount.value?a.channelFormGroup.controls.fundingAmount.value:0)),""),t.xp6(4),t.Q6J("ngIf",null==a.channelFormGroup.controls.fundingAmount.errors?null:a.channelFormGroup.controls.fundingAmount.errors.required),t.xp6(1),t.Q6J("ngIf",null==a.channelFormGroup.controls.fundingAmount.errors?null:a.channelFormGroup.controls.fundingAmount.errors.min),t.xp6(1),t.Q6J("ngIf",null==a.channelFormGroup.controls.fundingAmount.errors?null:a.channelFormGroup.controls.fundingAmount.errors.max),t.xp6(4),t.Q6J("step",1)("min",0),t.xp6(4),t.Q6J("ngIf",""!==a.channelConnectionError),t.xp6(3),t.Oqu(""!==a.channelConnectionError?"Retry":"Open Channel"),t.xp6(3),t.Oqu(null!=a.newlyAddedPeer&&a.newlyAddedPeer.nodeId?"Do It Later":"Close"))},dependencies:[u.O5,d._Y,d.Fj,d.wV,d.JJ,d.JL,d.Q7,d.qQ,d.sg,d.u,I.BN,h.xw,h.Wh,h.yH,F.lW,T.dn,T.dk,Q.Nt,C.KE,C.hX,C.bx,C.TO,C.R9,qt.Rr,tt.C0,tt.VY,tt.Vq,$.h,j.q,u.JJ]}),o})();var Ot=g(7009),Pt=g(5199);function So(i,o){if(1&i&&(t.TgZ(0,"span",9)(1,"div"),t._uU(2),t.ALo(3,"titlecase"),t.qZA()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(2),t.AsE("",e.nodeFeaturesEnum[n.key]||n.key,": ",t.lcZ(3,2,n.value),"")}}function Ao(i,o){1&i&&(t.TgZ(0,"th",24),t._uU(1,"Address"),t.qZA())}function Eo(i,o){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(n)}}function wo(i,o){1&i&&(t.TgZ(0,"th",26)(1,"div",27),t._uU(2,"Actions"),t.qZA()())}function Io(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"td",28)(1,"div",29)(2,"mat-select",30),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",31),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw(2);return t.KtG(r.onConnectNode(s))}),t._uU(5,"Connect"),t.qZA(),t.TgZ(6,"mat-option",32),t.NdJ("copied",function(a){t.CHM(n);const s=t.oxw(2);return t.KtG(s.onCopyNodeURI(a))}),t._uU(7,"Copy URI"),t.qZA()()()()}if(2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(6),t.Q6J("payload",(null==e.lookupResult?null:e.lookupResult.nodeId)+"@"+n)}}function Fo(i,o){1&i&&t._UZ(0,"tr",33)}function qo(i,o){1&i&&t._UZ(0,"tr",34)}const No=function(i){return{"background-color":i}};function Oo(i,o){if(1&i&&(t.TgZ(0,"div",1),t._UZ(1,"mat-divider",2),t.TgZ(2,"div",3)(3,"div",4)(4,"h4",5),t._uU(5,"Alias"),t.qZA(),t.TgZ(6,"span",6),t._uU(7),t.TgZ(8,"span",7),t._uU(9),t.qZA()()(),t.TgZ(10,"div",8)(11,"h4",5),t._uU(12,"Pub Key"),t.qZA(),t.TgZ(13,"span",9),t._uU(14),t.qZA()()(),t._UZ(15,"mat-divider",2),t.TgZ(16,"div",3)(17,"div",4)(18,"h4",5),t._uU(19,"Date/Time"),t.qZA(),t.TgZ(20,"span",6),t._uU(21),t.ALo(22,"date"),t.qZA()(),t.TgZ(23,"div",8)(24,"h4",5),t._uU(25,"Features"),t.qZA(),t.YNc(26,So,4,4,"span",10),t.ALo(27,"keyvalue"),t.qZA()(),t._UZ(28,"mat-divider",2),t.TgZ(29,"div",3)(30,"div",11)(31,"h4",5),t._uU(32,"Signature"),t.qZA(),t.TgZ(33,"span",6),t._uU(34),t.qZA()()(),t._UZ(35,"mat-divider",2),t.TgZ(36,"div",1)(37,"h4",12),t._uU(38,"Addresses"),t.qZA(),t.TgZ(39,"div",13)(40,"table",14,15),t.ynx(42,16),t.YNc(43,Ao,2,0,"th",17),t.YNc(44,Eo,2,1,"td",18),t.BQk(),t.ynx(45,19),t.YNc(46,wo,3,0,"th",20),t.YNc(47,Io,8,1,"td",21),t.BQk(),t.YNc(48,Fo,1,0,"tr",22),t.YNc(49,qo,1,0,"tr",23),t.qZA()()()()),2&i){const n=t.oxw();t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(null==n.lookupResult?null:n.lookupResult.alias),t.xp6(1),t.Q6J("ngStyle",t.VKq(19,No,null==n.lookupResult?null:n.lookupResult.rgbColor)),t.xp6(1),t.Oqu(null!=n.lookupResult&&n.lookupResult.rgbColor?null==n.lookupResult?null:n.lookupResult.rgbColor:""),t.xp6(5),t.Oqu(null==n.lookupResult?null:n.lookupResult.nodeId),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(t.xi3(22,14,1e3*(null==n.lookupResult?null:n.lookupResult.timestamp),"dd/MMM/y HH:mm")),t.xp6(5),t.Q6J("ngForOf",t.lcZ(27,17,null==n.lookupResult?null:n.lookupResult.features.activated)),t.xp6(2),t.Q6J("inset",!0),t.xp6(6),t.Oqu(null==n.lookupResult?null:n.lookupResult.signature),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Q6J("dataSource",n.addresses),t.xp6(8),t.Q6J("matHeaderRowDef",n.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",n.displayedColumns)}}let Po=(()=>{var i;class o{constructor(e,a,s){this.logger=e,this.snackBar=a,this.store=s,this.lookupResult={},this.addresses=new c.by([]),this.displayedColumns=["address","actions"],this.nodeFeaturesEnum=l.H_,this.information={},this.availableBalance=0,this.unSubs=[new m.x,new m.x,new m.x]}ngOnInit(){this.addresses=new c.by(this.lookupResult.addresses?[...this.lookupResult.addresses]:[]),this.addresses.data=this.lookupResult.addresses||[],this.addresses.sort=this.sort,this.addresses.sortingDataAccessor=(e,a)=>e[a]&&isNaN(e[a])?e[a].toLocaleLowerCase():e[a]?+e[a]:null,this.store.select(f.yD).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.information=e}),this.store.select(f.kY).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.availableBalance=e.onchainBalance.total||0})}onConnectNode(e){this.store.dispatch((0,S.qR)({payload:{data:{message:{peer:this.lookupResult.nodeId?{nodeId:this.lookupResult.nodeId,address:e}:null,information:this.information,balance:this.availableBalance},component:Nt}}}))}onCopyNodeURI(e){this.snackBar.open("Node URI copied."),this.logger.info("Copied Text: "+e)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(Ot.ux),t.Y36(E.yh))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-node-lookup"]],viewQuery:function(e,a){if(1&e&&t.Gf(v.YE,5),2&e){let s;t.iGM(s=t.CRH())&&(a.sort=s.first)}},inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["fxLayout","column",4,"ngIf"],["fxLayout","column"],[1,"my-1",3,"inset"],["fxLayout","row"],["fxFlex","30"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"ml-2",3,"ngStyle"],["fxFlex","70"],[1,"foreground-secondary-text","w-100"],["class","foreground-secondary-text w-100",4,"ngFor","ngForOf"],["fxFlex","100"],["fxFlex","100","fxLayoutAlign","start",1,"font-bold-500","mb-1"],["fxLayout","row","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","address"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select","btn-action"],["mat-cell","","fxLayoutAlign","end center"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["rtlClipboard","",3,"payload","copied"],["mat-header-row",""],["mat-row",""]],template:function(e,a){1&e&&t.YNc(0,Oo,50,21,"div",0),2&e&&t.Q6J("ngIf",a.lookupResult)},dependencies:[u.sg,u.O5,u.PC,h.xw,h.Wh,h.yH,Z.Zl,X.d,A.gD,A.$L,V.ey,v.YE,v.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,P.$V,Pt.y,u.rS,u.uU,u.Nd]}),o})();const ko=["form"];function Uo(i,o){if(1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.hij("",null==n.lookupFields[n.selectedFieldId]?null:n.lookupFields[n.selectedFieldId].placeholder," is required.")}}function Ro(i,o){if(1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.hij("Invalid ",null==n.lookupFields[n.selectedFieldId]?null:n.lookupFields[n.selectedFieldId].placeholder,".")}}function Mo(i,o){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"rtl-ecl-node-lookup",25),t.qZA()),2&i){const n=t.oxw(3);t.xp6(1),t.Q6J("lookupResult",n.nodeLookupValue)}}function Do(i,o){if(1&i&&(t.TgZ(0,"span",23),t.YNc(1,Mo,2,1,"div",24),t.qZA()),2&i){const n=t.oxw(2),e=t.MAs(23);t.xp6(1),t.Q6J("ngIf",n.nodeLookupValue.nodeId)("ngIfElse",e)}}function Jo(i,o){1&i&&(t.TgZ(0,"span"),t._uU(1,' fxFlex="100"'),t.TgZ(2,"h3"),t._uU(3,"Error! Unable to find details!"),t.qZA()())}function Ho(i,o){if(1&i&&(t.TgZ(0,"div",17)(1,"div",18)(2,"span",19),t._uU(3),t.qZA()(),t.TgZ(4,"div",20),t.YNc(5,Do,2,2,"span",21),t.YNc(6,Jo,4,0,"span",22),t.qZA()()),2&i){const n=t.oxw();t.xp6(3),t.hij("",n.lookupFields[n.selectedFieldId].name," Details"),t.xp6(1),t.Q6J("ngSwitch",n.selectedFieldId),t.xp6(1),t.Q6J("ngSwitchCase",0)}}function Qo(i,o){1&i&&(t.TgZ(0,"h3"),t._uU(1,"Error! Unable to find details!"),t.qZA())}const Yo=function(i){return{"mt-1":!0,"mt-2":i}};let Bo=(()=>{var i;class o{constructor(e,a,s,r){this.logger=e,this.commonService=a,this.store=s,this.actions=r,this.lookupKeyCtrl=new d.p4,this.nodeLookupValue={},this.channelLookupValue=[],this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Node",placeholder:"Node ID"},{id:1,name:"Channel",placeholder:"Short Channel ID"}],this.flgLoading=[!0],this.faSearch=L.wn1,this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new m.x,new m.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){window.history.state&&window.history.state.lookupType&&(this.selectedFieldId=+window.history.state.lookupType||0,this.lookupKeyCtrl.setValue(window.history.state.lookupValue||"")),this.actions.pipe((0,_.R)(this.unSubs[0]),(0,Y.h)(e=>e.type===l.lr.SET_LOOKUP_ECL||e.type===l.lr.UPDATE_API_CALL_STATUS_ECL)).subscribe(e=>{if(e.type===l.lr.SET_LOOKUP_ECL){switch(this.flgLoading[0]=!0,this.selectedFieldId){case 0:this.nodeLookupValue=e.payload[0]?JSON.parse(JSON.stringify(e.payload[0])):{nodeid:""};break;case 1:this.channelLookupValue=JSON.parse(JSON.stringify(e.payload))||[]}this.flgSetLookupValue=!0,this.logger.info(this.nodeLookupValue),this.logger.info(this.channelLookupValue)}e.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&e.payload.status===l.Bn.ERROR&&"Lookup"===e.payload.action&&(this.flgLoading[0]="error")}),this.lookupKeyCtrl.valueChanges.pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.nodeLookupValue={},this.channelLookupValue=[],this.flgSetLookupValue=!1})}onLookup(){return this.lookupKeyCtrl.value?this.lookupKeyCtrl.value&&(this.lookupKeyCtrl.value.includes("@")||this.lookupKeyCtrl.value.includes(","))?(this.lookupKeyCtrl.setErrors({invalid:!0}),!0):void(0===(this.selectedFieldId||(this.selectedFieldId=0),this.flgSetLookupValue=!1,this.nodeLookupValue={},this.channelLookupValue=[],this.selectedFieldId)&&this.store.dispatch((0,k.Sf)({payload:this.lookupKeyCtrl.value.trim()}))):(this.lookupKeyCtrl.setErrors({required:!0}),!0)}onSelectChange(e){this.resetData(),this.selectedFieldId=e.value}resetData(){this.flgSetLookupValue=!1,this.nodeLookupValue={},this.channelLookupValue=[],this.lookupKeyCtrl.setValue(""),this.lookupKeyCtrl.setErrors(null),this.form.resetForm()}clearLookupValue(){this.nodeLookupValue={},this.channelLookupValue=[],this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(M.v),t.Y36(E.yh),t.Y36(K.eX))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-lookups"]],viewQuery:function(e,a){if(1&e&&t.Gf(ko,7),2&e){let s;t.iGM(s=t.CRH())&&(a.form=s.first)}},decls:24,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"],["checked","",1,"mr-4",3,"value"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"formControl"],["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",""],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["fxFlex","100"],[4,"ngIf","ngIfElse"],[3,"lookupResult"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-content",2)(3,"form",3,4)(5,"div",5)(6,"mat-radio-group",6)(7,"mat-radio-button",7),t._uU(8,"Node"),t.qZA()()(),t.TgZ(9,"mat-form-field",8)(10,"mat-label"),t._uU(11),t.qZA(),t._UZ(12,"input",9,10),t.YNc(14,Uo,2,1,"mat-error",11),t.YNc(15,Ro,2,1,"mat-error",11),t.qZA(),t.TgZ(16,"div",12)(17,"button",13),t.NdJ("click",function(){return a.resetData()}),t._uU(18,"Clear"),t.qZA(),t.TgZ(19,"button",14),t.NdJ("click",function(){return a.onLookup()}),t._uU(20,"Lookup"),t.qZA()()(),t.YNc(21,Ho,7,3,"div",15),t.qZA()()(),t.YNc(22,Qo,2,0,"ng-template",null,16,t.W1O)),2&e&&(t.xp6(7),t.Q6J("value",0),t.xp6(2),t.Q6J("ngClass",t.VKq(7,Yo,a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM)),t.xp6(2),t.Oqu((null==a.lookupFields[a.selectedFieldId]?null:a.lookupFields[a.selectedFieldId].placeholder)||"Lookup Key"),t.xp6(1),t.Q6J("formControl",a.lookupKeyCtrl),t.xp6(2),t.Q6J("ngIf",null==a.lookupKeyCtrl.errors?null:a.lookupKeyCtrl.errors.required),t.xp6(1),t.Q6J("ngIf",null==a.lookupKeyCtrl.errors?null:a.lookupKeyCtrl.errors.invalid),t.xp6(6),t.Q6J("ngIf",a.flgSetLookupValue))},dependencies:[u.mk,u.O5,u.RF,u.n9,u.ED,d._Y,d.Fj,d.JJ,d.JL,d.Q7,d.F,d.oH,h.xw,h.Wh,h.yH,Z.oO,F.lW,T.dn,Q.Nt,C.KE,C.hX,C.TO,at.VQ,at.U0,Po],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}"]}),o})();var Vo=g(9122);let zo=(()=>{var i;class o{constructor(e,a){this.store=e,this.eclEffects=a,this.newAddress=""}onGenerateAddress(){this.store.dispatch((0,k._E)()),this.eclEffects.setNewAddress.pipe((0,G.q)(1)).subscribe(e=>{this.newAddress=e,setTimeout(()=>{this.store.dispatch((0,S.qR)({payload:{data:{address:this.newAddress,addressType:"",component:Vo.n}}}))},0)})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(E.yh),t.Y36(ut.o))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-on-chain-receive"]],decls:4,vars:0,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","1",3,"click"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return a.onGenerateAddress()}),t._uU(3,"Generate Address"),t.qZA()()())},dependencies:[h.xw,h.Wh,h.yH,F.lW]}),o})(),Go=(()=>{var i;class o{constructor(e,a){this.store=e,this.activatedRoute=a,this.sweepAll=!1,this.unSubs=[new m.x,new m.x]}ngOnInit(){this.activatedRoute.data.pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.sweepAll=e.sweepAll})}openSendFundsModal(){this.store.dispatch((0,S.qR)({payload:{data:{sweepAll:this.sweepAll,component:It}}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(E.yh),t.Y36(b.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-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(e,a){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return a.openSendFundsModal()}),t._uU(3),t.qZA()()()),2&e&&(t.xp6(3),t.Oqu(a.sweepAll?"Sweep All":"Send Funds"))},dependencies:[h.xw,h.Wh,h.yH,F.lW]}),o})();var gt=g(8675),kt=g(4004),ot=g(7957),Wo=g(9843);const Ko=["form"];function Xo(i,o){if(1&i&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.Q6J("value",n),t.xp6(1),t.Oqu(n.alias?n.alias:n.nodeId?n.nodeId:"")}}function $o(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Peer alias is required."),t.qZA())}function jo(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Peer not found in the list."),t.qZA())}function ts(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"mat-form-field",1)(1,"mat-label"),t._uU(2,"Peer Alias"),t.qZA(),t.TgZ(3,"input",31),t.NdJ("change",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onSelectedPeerChanged())}),t.qZA(),t.TgZ(4,"mat-autocomplete",32,33),t.NdJ("optionSelected",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onSelectedPeerChanged())}),t.YNc(6,Xo,2,2,"mat-option",34),t.ALo(7,"async"),t.qZA(),t.YNc(8,$o,2,0,"mat-error",17),t.YNc(9,jo,2,0,"mat-error",17),t.qZA()}if(2&i){const n=t.MAs(5),e=t.oxw();t.xp6(3),t.Q6J("formControl",e.selectedPeer)("matAutocomplete",n),t.xp6(1),t.Q6J("displayWith",e.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(7,6,e.filteredPeers)),t.xp6(2),t.Q6J("ngIf",null==e.selectedPeer.errors?null:e.selectedPeer.errors.required),t.xp6(1),t.Q6J("ngIf",null==e.selectedPeer.errors?null:e.selectedPeer.errors.notfound)}}function es(i,o){1&i&&t.GkF(0)}function ns(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function is(i,o){if(1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.hij("Amount must be less than or equal to ",n.totalBalance,".")}}function as(i,o){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Oqu(n.channelConnectionError)}}function os(i,o){if(1&i&&(t.TgZ(0,"div",36),t._UZ(1,"fa-icon",37),t.YNc(2,as,2,1,"span",17),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Q6J("icon",n.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==n.channelConnectionError)}}function ss(i,o){if(1&i&&(t.TgZ(0,"mat-expansion-panel",39)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span"),t._uU(4,"Peer: \xa0"),t.qZA(),t.TgZ(5,"strong",40),t._uU(6),t.qZA()()(),t.TgZ(7,"div",9)(8,"div",0)(9,"div",1)(10,"h4",41),t._uU(11,"Pubkey"),t.qZA(),t.TgZ(12,"span",42),t._uU(13),t.qZA()()(),t._UZ(14,"mat-divider",43),t.TgZ(15,"div",0)(16,"div",44)(17,"h4",41),t._uU(18,"Address"),t.qZA(),t.TgZ(19,"span",45),t._uU(20),t.qZA()(),t.TgZ(21,"div",44)(22,"h4",41),t._uU(23,"State"),t.qZA(),t.TgZ(24,"span",45),t._uU(25),t.ALo(26,"titlecase"),t.qZA()()()()()),2&i){const n=t.oxw(2);t.xp6(6),t.Oqu((null==n.peer?null:n.peer.alias)||(null==n.peer?null:n.peer.nodeId)),t.xp6(7),t.Oqu(n.peer.nodeId),t.xp6(7),t.Oqu(null==n.peer?null:n.peer.address),t.xp6(5),t.Oqu(t.lcZ(26,4,null==n.peer?null:n.peer.state))}}function ls(i,o){if(1&i&&t.YNc(0,ss,27,6,"mat-expansion-panel",38),2&i){const n=t.oxw();t.Q6J("ngIf",n.peer)}}let Ut=(()=>{var i;class o{constructor(e,a,s,r){this.dialogRef=e,this.data=a,this.store=s,this.actions=r,this.selNode={},this.selectedPeer=new d.p4,this.faExclamationTriangle=L.eHv,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.totalBalance=0,this.selectedPubkey="",this.isPrivate=!1,this.feeRate=null,this.unSubs=[new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.data.message?(this.information=this.data.message.information,this.totalBalance=this.data.message.balance,this.peer=this.data.message.peer||null,this.peers=this.data.message.peers||[]):(this.information={},this.totalBalance=0,this.peer=null,this.peers=[]),this.alertTitle=this.data.alertTitle||"Alert",this.store.select(f.LR).pipe((0,_.R)(this.unSubs[0])).subscribe(s=>{this.selNode=s,this.isPrivate=!!s?.unannouncedChannels}),this.actions.pipe((0,_.R)(this.unSubs[1]),(0,Y.h)(s=>s.type===l.lr.UPDATE_API_CALL_STATUS_ECL||s.type===l.lr.FETCH_CHANNELS_ECL)).subscribe(s=>{s.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&s.payload.status===l.Bn.ERROR&&"SaveNewChannel"===s.payload.action&&(this.channelConnectionError=s.payload.message),s.type===l.lr.FETCH_CHANNELS_ECL&&this.dialogRef.close()});let e="",a="";this.sortedPeers=this.peers.sort((s,r)=>(e=s.alias?s.alias.toLowerCase():s.nodeId?s.nodeId.toLowerCase():"",a=r.alias?r.alias.toLowerCase():s.nodeId?s.nodeId.toLowerCase():"",ea?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe((0,_.R)(this.unSubs[2]),(0,gt.O)(""),(0,kt.U)(s=>"string"==typeof s?s:s.alias?s.alias:s.nodeId),(0,kt.U)(s=>s?this.filterPeers(s):this.sortedPeers.slice()))}filterPeers(e){return this.sortedPeers?.filter(a=>0===a.alias?.toLowerCase().indexOf(e?e.toLowerCase():""))}displayFn(e){return e&&e.alias?e.alias:e&&e.nodeId?e.nodeId:""}onSelectedPeerChanged(){if(this.channelConnectionError="",this.selectedPubkey=this.selectedPeer.value&&this.selectedPeer.value.nodeId?this.selectedPeer.value.nodeId:null,"string"==typeof this.selectedPeer.value){const e=this.peers?.filter(a=>a.alias?.length===this.selectedPeer.value.length&&0===a.alias?.toLowerCase().indexOf(this.selectedPeer.value?this.selectedPeer.value.toLowerCase():""));1===e.length&&e[0].nodeId&&(this.selectedPubkey=e[0].nodeId)}this.selectedPeer.setErrors(this.selectedPeer.value&&!this.selectedPubkey?{notfound:!0}:null)}onClose(){this.dialogRef.close(!1)}resetData(){this.feeRate=null,this.selectedPeer.setValue(""),this.fundingAmount=null,this.isPrivate=!!this.selNode?.unannouncedChannels,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.form.resetForm()}onAdvancedPanelToggle(e){this.advancedTitle="Advanced Options",e&&this.feeRate&&this.feeRate>0&&(this.advancedTitle=this.advancedTitle+" | Fee (Sats/vByte): "+this.feeRate)}onOpenChannel(){if(!this.peer&&!this.selectedPubkey||!this.fundingAmount||this.totalBalance-this.fundingAmount<0)return!0;const e={nodeId:this.peer&&this.peer.nodeId?this.peer.nodeId:this.selectedPubkey,amount:this.fundingAmount,private:this.isPrivate};this.feeRate&&(e.feeRate=this.feeRate),this.store.dispatch((0,k.YX)({payload:e}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(D.so),t.Y36(D.WI),t.Y36(E.yh),t.Y36(K.eX))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-open-channel"]],viewQuery:function(e,a){if(1&e&&t.Gf(Ko,7),2&e){let s;t.iGM(s=t.CRH())&&(a.form=s.first)}},decls:52,vars:18,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","11","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column",3,"submit","reset"],["form","ngForm"],["fxLayout","column"],["fxFlex","100",4,"ngIf"],[4,"ngTemplateOutlet"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxLayout","column","fxFlex","70","fxLayoutAlign","start end"],["matInput","","type","number","tabindex","1","required","","name","amount",3,"step","min","max","ngModel","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"],["fxFlex","100","fxLayout","row","fxLayoutAlign","space-between center"],["fxLayout","column","fxFlex","49"],["matInput","","type","number","name","fee","tabindex","7",3,"step","min","ngModel","ngModelChange"],["fee","ngModel"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","9","type","reset",1,"mr-1"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","10"],["peerDetailsExpansionBlock",""],["type","text","aria-label","Peers","matInput","","tabindex","1","required","",3,"formControl","matAutocomplete","change"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[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"],["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(e,a){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return a.onClose()}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8),t.NdJ("submit",function(){return a.onOpenChannel()})("reset",function(){return a.resetData()}),t.TgZ(11,"div",9),t.YNc(12,ts,10,8,"mat-form-field",10),t.qZA(),t.YNc(13,es,1,0,"ng-container",11),t.TgZ(14,"div",9)(15,"div",12)(16,"mat-form-field",13)(17,"mat-label"),t._uU(18,"Amount"),t.qZA(),t.TgZ(19,"input",14,15),t.NdJ("ngModelChange",function(r){return a.fundingAmount=r}),t.qZA(),t.TgZ(21,"mat-hint"),t._uU(22),t.ALo(23,"number"),t.qZA(),t.TgZ(24,"span",16),t._uU(25," Sats "),t.qZA(),t.YNc(26,ns,2,0,"mat-error",17),t.YNc(27,is,2,1,"mat-error",17),t.qZA(),t.TgZ(28,"div",18)(29,"mat-slide-toggle",19),t.NdJ("ngModelChange",function(r){return a.isPrivate=r}),t._uU(30,"Private Channel"),t.qZA()()(),t.TgZ(31,"mat-expansion-panel",20),t.NdJ("closed",function(){return a.onAdvancedPanelToggle(!0)})("opened",function(){return a.onAdvancedPanelToggle(!1)}),t.TgZ(32,"mat-expansion-panel-header")(33,"mat-panel-title")(34,"span"),t._uU(35),t.qZA()()(),t.TgZ(36,"div",21)(37,"div",12)(38,"div",22)(39,"mat-form-field",23)(40,"mat-label"),t._uU(41,"Fee (Sats/vByte)"),t.qZA(),t.TgZ(42,"input",24,25),t.NdJ("ngModelChange",function(r){return a.feeRate=r}),t.qZA()()()()()()(),t.YNc(44,os,3,2,"div",26),t.TgZ(45,"div",27)(46,"button",28),t._uU(47,"Clear Fields"),t.qZA(),t.TgZ(48,"button",29),t._uU(49,"Open Channel"),t.qZA()()()()()(),t.YNc(50,ls,1,1,"ng-template",null,30,t.W1O)),2&e){const s=t.MAs(20),r=t.MAs(51);t.xp6(5),t.Oqu(a.alertTitle),t.xp6(7),t.Q6J("ngIf",!a.peer&&a.peers&&a.peers.length>0),t.xp6(1),t.Q6J("ngTemplateOutlet",r),t.xp6(6),t.Q6J("step",1e3)("min",1)("max",a.totalBalance)("ngModel",a.fundingAmount),t.xp6(3),t.hij("Remaining: ",t.lcZ(23,16,a.totalBalance-(a.fundingAmount?a.fundingAmount:0)),""),t.xp6(4),t.Q6J("ngIf",null==s.errors?null:s.errors.required),t.xp6(1),t.Q6J("ngIf",null==s.errors?null:s.errors.max),t.xp6(2),t.Q6J("ngModel",a.isPrivate),t.xp6(6),t.Oqu(a.advancedTitle),t.xp6(7),t.Q6J("step",1)("min",0)("ngModel",a.feeRate),t.xp6(2),t.Q6J("ngIf",""!==a.channelConnectionError)}},dependencies:[u.sg,u.O5,u.tP,d._Y,d.Fj,d.wV,d.JJ,d.JL,d.Q7,d.qQ,d.Fd,d.On,d.F,d.oH,I.BN,h.xw,h.Wh,h.yH,F.lW,T.dn,T.dk,B.ib,B.yz,B.yK,Q.Nt,C.KE,C.hX,C.bx,C.TO,C.R9,X.d,V.ey,qt.Rr,ot.XC,ot.ZL,$.h,Wo.F,j.q,u.Ov,u.JJ,u.rS],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),o})();function rs(i,o){if(1&i&&(t.TgZ(0,"span",7),t._uU(1,"Open"),t.qZA()),2&i){const n=t.oxw();t.s9C("matBadge",n.numOfOpenChannels)}}function cs(i,o){if(1&i&&(t.TgZ(0,"span",7),t._uU(1,"Pending"),t.qZA()),2&i){const n=t.oxw();t.s9C("matBadge",n.numOfPendingChannels)}}function us(i,o){if(1&i&&(t.TgZ(0,"span",7),t._uU(1,"Inactive"),t.qZA()),2&i){const n=t.oxw();t.s9C("matBadge",n.numOfInactiveChannels)}}let ps=(()=>{var i;class o{constructor(e,a,s){this.logger=e,this.store=a,this.router=s,this.numOfOpenChannels=0,this.numOfPendingChannels=0,this.numOfInactiveChannels=0,this.selNode={},this.information={},this.peers=[],this.totalBalance=0,this.links=[{link:"open",name:"Open"},{link:"pending",name:"Pending"},{link:"inactive",name:"Inactive"}],this.activeLink=0,this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.activeLink=this.links.findIndex(e=>e.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Y.h)(e=>e instanceof b.Av)).subscribe({next:e=>{this.activeLink=this.links.findIndex(a=>a.link===e.urlAfterRedirects.substring(e.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(f.Xz).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.numOfOpenChannels=e.channelsStatus&&e.channelsStatus.active&&e.channelsStatus.active.channels?e.channelsStatus.active.channels:0,this.numOfPendingChannels=e.channelsStatus&&e.channelsStatus.pending&&e.channelsStatus.pending.channels?e.channelsStatus.pending.channels:0,this.numOfInactiveChannels=e.channelsStatus&&e.channelsStatus.inactive&&e.channelsStatus.inactive.channels?e.channelsStatus.inactive.channels:0,this.logger.info(e)}),this.store.select(f.LR).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.selNode=e}),this.store.select(f.yD).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.information=e}),this.store.select(f.Bo).pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{this.peers=e.peers}),this.store.select(f.kY).pipe((0,_.R)(this.unSubs[5])).subscribe(e=>{this.totalBalance=e.onchainBalance.total||0})}onOpenChannel(){this.store.dispatch((0,S.qR)({payload:{data:{alertTitle:"Open Channel",message:{peers:this.peers,information:this.information,balance:this.totalBalance},component:Ut}}}))}onSelectedTabChange(e){this.router.navigateByUrl("/ecl/connections/channels/"+this.links[e.index].link)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(E.yh),t.Y36(b.F0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-channels-tables"]],decls:14,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100",1,"bordered-box"],["mat-stretch-tabs","false","mat-align-tabs","start",3,"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(e,a){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return a.onOpenChannel()}),t._uU(3,"Open Channel"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-tab-group",4),t.NdJ("selectedIndexChange",function(r){return a.activeLink=r})("selectedTabChange",function(r){return a.onSelectedTabChange(r)}),t.TgZ(6,"mat-tab"),t.YNc(7,rs,2,1,"ng-template",5),t.qZA(),t.TgZ(8,"mat-tab"),t.YNc(9,cs,2,1,"ng-template",5),t.qZA(),t.TgZ(10,"mat-tab"),t.YNc(11,us,2,1,"ng-template",5),t.qZA()(),t.TgZ(12,"div",6),t._UZ(13,"router-outlet"),t.qZA()()()),2&e&&(t.xp6(5),t.Q6J("selectedIndex",a.activeLink))},dependencies:[h.xw,h.Wh,h.yH,F.lW,Ft.k,q.uD,q.uX,q.SP,b.lC]}),o})();function ms(i,o){if(1&i&&(t.TgZ(0,"div",11)(1,"h4",12),t._uU(2,"Short Channel ID"),t.qZA(),t.TgZ(3,"span",13),t._uU(4),t.qZA()()),2&i){const n=t.oxw();t.xp6(4),t.Oqu(n.channel.shortChannelId)}}function ds(i,o){if(1&i&&(t.TgZ(0,"div",11)(1,"h4",12),t._uU(2,"State"),t.qZA(),t.TgZ(3,"span",15),t._uU(4),t.ALo(5,"titlecase"),t.qZA()()),2&i){const n=t.oxw();t.xp6(4),t.Oqu(t.lcZ(5,1,n.channel.state))}}function hs(i,o){if(1&i&&(t.TgZ(0,"div")(1,"div",9)(2,"div",11)(3,"h4",12),t._uU(4,"Local Balance (Sats)"),t.qZA(),t.TgZ(5,"span",15),t._uU(6),t.ALo(7,"number"),t.qZA()(),t.TgZ(8,"div",11)(9,"h4",12),t._uU(10,"Remote Balance (Sats)"),t.qZA(),t.TgZ(11,"span",15),t._uU(12),t.ALo(13,"number"),t.qZA()()(),t._UZ(14,"mat-divider",14),t.TgZ(15,"div",9)(16,"div",11)(17,"h4",12),t._uU(18,"Base Fee (mSats)"),t.qZA(),t.TgZ(19,"span",15),t._uU(20),t.ALo(21,"number"),t.qZA()(),t.TgZ(22,"div",11)(23,"h4",12),t._uU(24,"Fee Rate (mili mSats)"),t.qZA(),t.TgZ(25,"span",15),t._uU(26),t.ALo(27,"number"),t.qZA()()(),t._UZ(28,"mat-divider",14),t.qZA()),2&i){const n=t.oxw();t.xp6(6),t.Oqu(t.lcZ(7,6,n.channel.toLocal)),t.xp6(6),t.Oqu(t.lcZ(13,8,n.channel.toRemote)),t.xp6(2),t.Q6J("inset",!0),t.xp6(6),t.Oqu(t.lcZ(21,10,n.channel.feeBaseMsat)),t.xp6(6),t.Oqu(t.lcZ(27,12,n.channel.feeProportionalMillionths)),t.xp6(2),t.Q6J("inset",!0)}}function _s(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"Show Advanced"),t.qZA())}function gs(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"Hide Advanced"),t.qZA())}function fs(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"button",21),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onShowAdvanced())}),t.YNc(1,_s,2,0,"p",22),t.YNc(2,gs,2,0,"ng-template",null,23,t.W1O),t.qZA()}if(2&i){const n=t.MAs(3),e=t.oxw();t.xp6(1),t.Q6J("ngIf",!e.showAdvanced)("ngIfElse",n)}}function Cs(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"button",24),t.NdJ("copied",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.onCopyChanID(a))}),t._uU(1,"Copy Short Channel ID"),t.qZA()}if(2&i){const n=t.oxw();t.Q6J("payload",n.channel.shortChannelId)}}function xs(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"button",25),t.NdJ("copied",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.onCopyChanID(a))}),t._uU(1,"Copy Channel ID"),t.qZA()}if(2&i){const n=t.oxw();t.Q6J("payload",n.channel.channelId)}}const ys=function(i){return{"xs-scroll-y":i}},bs=function(i,o){return{"mt-2":i,"mt-1":o}};let ft=(()=>{var i;class o{constructor(e,a,s,r,p){this.dialogRef=e,this.data=a,this.logger=s,this.commonService=r,this.snackBar=p,this.faReceipt=L.dLy,this.showAdvanced=!1,this.channelsType="open",this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.channel=this.data.channel,this.channelsType=this.data.channelsType||"",this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyChanID(e){this.snackBar.open("open"===this.channelsType?"Short channel ID "+e+" copied.":"Channel ID copied."),this.logger.info("Copied Text: "+e)}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(D.so),t.Y36(D.WI),t.Y36(R.mQ),t.Y36(M.v),t.Y36(Ot.ux))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-channel-information"]],decls:59,vars:27,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 center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxLayout","row"],["fxFlex","50",4,"ngIf"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],[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","class","mr-1",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","3","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["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"],["autoFocus","","mat-button","","color","primary","tabindex","3","type","submit","rtlClipboard","",3,"payload","copied"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span",5),t._uU(6,"Channel Information"),t.qZA()(),t.TgZ(7,"button",6),t.NdJ("click",function(){return a.onClose()}),t._uU(8,"X"),t.qZA()(),t.TgZ(9,"mat-card-content",7)(10,"div",8)(11,"div",9),t.YNc(12,ms,5,1,"div",10),t.TgZ(13,"div",11)(14,"h4",12),t._uU(15,"Peer Alias"),t.qZA(),t.TgZ(16,"span",13),t._uU(17),t.qZA()(),t.YNc(18,ds,6,3,"div",10),t.qZA(),t._UZ(19,"mat-divider",14),t.TgZ(20,"div",9)(21,"div",1)(22,"h4",12),t._uU(23,"Channel ID"),t.qZA(),t.TgZ(24,"span",13),t._uU(25),t.qZA()()(),t._UZ(26,"mat-divider",14),t.TgZ(27,"div",9)(28,"div",1)(29,"h4",12),t._uU(30,"Peer Public Key"),t.qZA(),t.TgZ(31,"span",13),t._uU(32),t.qZA()()(),t._UZ(33,"mat-divider",14),t.TgZ(34,"div",9)(35,"div",1)(36,"h4",12),t._uU(37,"State"),t.qZA(),t.TgZ(38,"span",15),t._uU(39),t.ALo(40,"titlecase"),t.qZA()()(),t._UZ(41,"mat-divider",14),t.TgZ(42,"div",9)(43,"div",11)(44,"h4",12),t._uU(45,"Private"),t.qZA(),t.TgZ(46,"span",15),t._uU(47),t.qZA()(),t.TgZ(48,"div",11)(49,"h4",12),t._uU(50,"Initiator"),t.qZA(),t.TgZ(51,"span",15),t._uU(52),t.qZA()()(),t._UZ(53,"mat-divider",14),t.YNc(54,hs,29,14,"div",16),t.TgZ(55,"div",17),t.YNc(56,fs,4,2,"button",18),t.YNc(57,Cs,2,1,"button",19),t.YNc(58,xs,2,1,"button",20),t.qZA()()()()()),2&e&&(t.xp6(4),t.Q6J("icon",a.faReceipt),t.xp6(5),t.Q6J("ngClass",t.VKq(22,ys,a.screenSize===a.screenSizeEnum.XS)),t.xp6(3),t.Q6J("ngIf","open"===a.channelsType),t.xp6(5),t.Oqu(a.channel.alias),t.xp6(1),t.Q6J("ngIf","open"!==a.channelsType),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(a.channel.channelId),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(a.channel.nodeId),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(t.lcZ(40,20,a.channel.state)),t.xp6(2),t.Q6J("inset",!0),t.xp6(6),t.Oqu(a.channel.announceChannel?"No":"Yes"),t.xp6(5),t.Oqu(a.channel.isInitiator?"Yes":"No"),t.xp6(1),t.Q6J("inset",!0),t.xp6(1),t.Q6J("ngIf",a.showAdvanced&&"open"===a.channelsType),t.xp6(1),t.Q6J("ngClass",t.WLB(24,bs,!a.showAdvanced,a.showAdvanced)),t.xp6(1),t.Q6J("ngIf","open"===a.channelsType),t.xp6(1),t.Q6J("ngIf","open"===a.channelsType),t.xp6(1),t.Q6J("ngIf","open"!==a.channelsType))},dependencies:[u.mk,u.O5,I.BN,h.xw,h.Wh,h.yH,Z.oO,F.lW,T.dn,T.dk,X.d,Pt.y,$.h,u.JJ,u.rS]}),o})();var Ct=g(9646),xt=g(7772),Ls=g(113);function Ts(i,o){1&i&&t.GkF(0)}const et=function(i,o){return{"small-svg":i,"large-svg":o}};function vs(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.onSwipe(a))}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",8)(3,"path",9)(4,"path",10)(5,"path",11)(6,"path",12)(7,"path",13)(8,"path",14)(9,"path",15)(10,"path",16)(11,"path",17)(12,"path",18)(13,"path",19)(14,"path",20)(15,"path",21)(16,"path",22)(17,"path",23)(18,"path",24)(19,"path",25)(20,"path",26)(21,"path",27)(22,"path",28)(23,"path",29)(24,"path",30)(25,"path",31)(26,"path",32)(27,"path",33)(28,"path",34)(29,"path",35)(30,"path",36)(31,"path",37)(32,"path",38)(33,"path",39)(34,"path",40)(35,"path",41)(36,"path",42)(37,"path",43)(38,"path",44)(39,"path",45)(40,"path",46),t.qZA(),t.kcU(),t.TgZ(41,"div",47)(42,"mat-card-title"),t._uU(43,"Circular rebalancing explained."),t.qZA()(),t.TgZ(44,"div",48)(45,"mat-card-subtitle",49),t._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. "),t.qZA()()()}if(2&i){const n=t.oxw();t.Q6J("@sliderAnimation",n.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,et,n.screenSize===n.screenSizeEnum.XS,n.screenSize!==n.screenSizeEnum.XS))}}function Zs(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",50),t.NdJ("swipe",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.onSwipe(a))}),t.O4$(),t.TgZ(1,"svg",51),t._UZ(2,"path",52)(3,"path",53)(4,"path",54)(5,"path",55)(6,"path",56)(7,"path",57)(8,"path",58)(9,"path",59)(10,"path",60)(11,"path",61)(12,"path",62)(13,"path",63)(14,"path",64)(15,"path",65)(16,"path",66)(17,"path",67)(18,"path",68)(19,"path",69)(20,"path",70)(21,"path",71)(22,"path",72)(23,"path",73)(24,"path",74)(25,"path",75)(26,"path",76)(27,"path",77)(28,"path",78)(29,"path",79)(30,"path",80)(31,"path",81)(32,"path",82)(33,"path",52)(34,"path",53)(35,"path",54)(36,"path",55)(37,"path",56)(38,"path",57)(39,"path",58)(40,"path",59)(41,"path",60)(42,"path",83)(43,"path",84)(44,"path",63)(45,"path",85)(46,"path",86)(47,"path",87)(48,"path",67)(49,"path",68)(50,"path",69)(51,"path",70)(52,"path",71)(53,"path",72)(54,"path",73)(55,"path",74)(56,"path",75)(57,"path",76)(58,"path",77)(59,"path",78)(60,"path",79)(61,"path",80)(62,"path",88)(63,"path",82)(64,"path",89),t.TgZ(65,"defs")(66,"linearGradient",90),t._UZ(67,"stop",91)(68,"stop",92)(69,"stop",93),t.qZA(),t.TgZ(70,"linearGradient",94),t._UZ(71,"stop",91)(72,"stop",92)(73,"stop",93),t.qZA(),t.TgZ(74,"linearGradient",95),t._UZ(75,"stop",91)(76,"stop",92)(77,"stop",93),t.qZA(),t.TgZ(78,"linearGradient",96),t._UZ(79,"stop",91)(80,"stop",92)(81,"stop",93),t.qZA(),t.TgZ(82,"linearGradient",97),t._UZ(83,"stop",91)(84,"stop",92)(85,"stop",93),t.qZA(),t.TgZ(86,"linearGradient",98),t._UZ(87,"stop",91)(88,"stop",92)(89,"stop",93),t.qZA()()(),t.kcU(),t.TgZ(90,"div",47)(91,"mat-card-title"),t._uU(92,"Step 1: Unbalanced channel"),t.qZA()(),t.TgZ(93,"div",48)(94,"mat-card-subtitle",49),t._uU(95," It starts with an unbalanced channel, that needs to be rebalanced in order to continue to route payments. "),t.qZA()()()}if(2&i){const n=t.oxw();t.Q6J("@sliderAnimation",n.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,et,n.screenSize===n.screenSizeEnum.XS,n.screenSize!==n.screenSizeEnum.XS))}}function Ss(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",50),t.NdJ("swipe",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.onSwipe(a))}),t.O4$(),t.TgZ(1,"svg",99),t._UZ(2,"path",100)(3,"path",101)(4,"path",102)(5,"path",103)(6,"path",104)(7,"path",105)(8,"path",106)(9,"path",107)(10,"path",108)(11,"path",109)(12,"path",110)(13,"path",111)(14,"path",112)(15,"path",113)(16,"path",114)(17,"path",52)(18,"path",115)(19,"path",116)(20,"path",117)(21,"path",118)(22,"path",119)(23,"path",120)(24,"path",121)(25,"path",122)(26,"path",83)(27,"path",84)(28,"path",123)(29,"path",124)(30,"path",125)(31,"path",126)(32,"path",67)(33,"path",127)(34,"path",128)(35,"path",129)(36,"path",130)(37,"path",131)(38,"path",132)(39,"path",74)(40,"path",75)(41,"path",133)(42,"path",77)(43,"path",78)(44,"path",79)(45,"path",80)(46,"path",134)(47,"path",135)(48,"path",136),t.TgZ(49,"defs")(50,"linearGradient",137),t._UZ(51,"stop",91)(52,"stop",92)(53,"stop",93),t.qZA(),t.TgZ(54,"linearGradient",138),t._UZ(55,"stop",91)(56,"stop",92)(57,"stop",93),t.qZA(),t.TgZ(58,"linearGradient",139),t._UZ(59,"stop",91)(60,"stop",92)(61,"stop",93),t.qZA()()(),t.kcU(),t.TgZ(62,"div",47)(63,"mat-card-title"),t._uU(64,"Step 2: Invoice/Payment"),t.qZA()(),t.TgZ(65,"div",48)(66,"mat-card-subtitle",49),t._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. "),t.qZA()()()}if(2&i){const n=t.oxw();t.Q6J("@sliderAnimation",n.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,et,n.screenSize===n.screenSizeEnum.XS,n.screenSize!==n.screenSizeEnum.XS))}}function As(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",50),t.NdJ("swipe",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.onSwipe(a))}),t.O4$(),t.TgZ(1,"svg",140),t._UZ(2,"path",141)(3,"path",142)(4,"path",143)(5,"path",144)(6,"path",145)(7,"path",146)(8,"path",147)(9,"path",148)(10,"path",149)(11,"path",150)(12,"path",151)(13,"path",152)(14,"path",153)(15,"path",154)(16,"path",155)(17,"path",156)(18,"path",157)(19,"path",158)(20,"path",159)(21,"path",160)(22,"path",161)(23,"path",162)(24,"path",163)(25,"path",164)(26,"path",163)(27,"path",165)(28,"path",166)(29,"path",167)(30,"path",168)(31,"path",169)(32,"path",170)(33,"path",171)(34,"path",172)(35,"path",173)(36,"path",174)(37,"path",175)(38,"path",176)(39,"path",177)(40,"path",178)(41,"path",179),t.TgZ(42,"defs")(43,"linearGradient",180),t._UZ(44,"stop",91)(45,"stop",92)(46,"stop",93),t.qZA()()(),t.kcU(),t.TgZ(47,"div",47)(48,"mat-card-title"),t._uU(49,"Step 3: Rebalance amount"),t.qZA()(),t.TgZ(50,"div",48)(51,"mat-card-subtitle",49),t._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. "),t.qZA()()()}if(2&i){const n=t.oxw();t.Q6J("@sliderAnimation",n.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,et,n.screenSize===n.screenSizeEnum.XS,n.screenSize!==n.screenSizeEnum.XS))}}function Es(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",50),t.NdJ("swipe",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.onSwipe(a))}),t.O4$(),t.TgZ(1,"svg",140),t._UZ(2,"path",181)(3,"path",143)(4,"path",182)(5,"path",145)(6,"path",146)(7,"path",183)(8,"path",148)(9,"path",184)(10,"path",185)(11,"path",186)(12,"path",187)(13,"path",188)(14,"path",189)(15,"path",190)(16,"path",191)(17,"path",192)(18,"path",158)(19,"path",193)(20,"path",194)(21,"path",179)(22,"path",160)(23,"path",161)(24,"path",195)(25,"path",163)(26,"path",164)(27,"path",163)(28,"path",165)(29,"path",166)(30,"path",167)(31,"path",168)(32,"path",196)(33,"path",170)(34,"path",197)(35,"path",172)(36,"path",173)(37,"path",174)(38,"path",175)(39,"path",176)(40,"path",198),t.TgZ(41,"defs")(42,"linearGradient",199),t._UZ(43,"stop",91)(44,"stop",92)(45,"stop",93),t.qZA()()(),t.kcU(),t.TgZ(46,"div",47)(47,"mat-card-title"),t._uU(48,"Rebalance successful!"),t.qZA()(),t.TgZ(49,"div",48)(50,"mat-card-subtitle",49),t._uU(51," Your channel is successfully rebalanced and is able to continue to route payments. "),t.qZA()()()}if(2&i){const n=t.oxw();t.Q6J("@sliderAnimation",n.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,et,n.screenSize===n.screenSizeEnum.XS,n.screenSize!==n.screenSizeEnum.XS))}}let ws=(()=>{var i;class o{constructor(e){this.commonService=e,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new t.vpe,this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(e){2===e.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===e.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(M.v))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-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 starts",3,"swipe"],["fxFlex","30","viewBox","0 0 246 154","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["fill-rule","evenodd","clip-rule","evenodd","d","M187.8 136C203.043 136 215.4 133.493 215.4 130.4C215.4 127.307 203.043 124.8 187.8 124.8C172.557 124.8 160.2 127.307 160.2 130.4C160.2 133.493 172.557 136 187.8 136Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["fill-rule","evenodd","clip-rule","evenodd","d","M128.6 148.8C143.843 148.8 156.2 146.293 156.2 143.2C156.2 140.107 143.843 137.6 128.6 137.6C113.357 137.6 101 140.107 101 143.2C101 146.293 113.357 148.8 128.6 148.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["opacity","0.1","d","M100.2 117.421C100.2 117.421 99.0633 117.494 99.4998 117.722C99.9363 117.95 100.2 117.421 100.2 117.421Z","fill","black"],["opacity","0.1","d","M101 118.4C100.986 118.471 98.1102 119.483 98.673 119.933C99.2358 120.384 101 118.4 101 118.4Z","fill","black"],["opacity","0.1","d","M97.8 128.98C98.0492 128.966 100.509 128.241 101 128.89L97.8 128.98Z","fill","black"],["opacity","0.1","d","M100.2 129.709C100.2 129.709 100.563 129.362 100.926 129.543C101.289 129.725 100.2 129.709 100.2 129.709Z","fill","black"],["opacity","0.1","d","M101.8 132C101.8 132 101.641 133.198 101 133.6L101.8 132Z","fill","black"],["d","M119.223 21.4239L123.102 22.0818L118.209 50.9111L114.33 50.2532L119.223 21.4239Z",1,"fill-color-primary-darker"],["d","M127.4 137.844L128.262 144L129 137.6L127.4 137.844Z",1,"fill-color-29"],["d","M100.2 134.349V138.226L101 141.6H101.571L102.258 137.976L102.6 133.6L100.2 134.349Z",1,"fill-color-28"],["d","M110.75 50.4L104.806 87.6521C104.806 87.6521 96.0162 127.358 99.3581 135.2H103.57L116.2 58.9791L110.75 50.4Z",1,"fill-color-29"],["d","M125.308 45.6L129.979 83.02C129.979 83.02 133.381 130.691 129.656 138.4H125.976L119.4 53.9698L125.308 45.6Z",1,"fill-color-29"],["d","M110.017 36.2213C110.634 34.1443 112.565 32.7417 114.724 32.8019C118.318 32.893 123.873 33.5496 126.77 36.5268C131.261 41.1521 123.736 56.731 123.736 56.731C123.736 56.731 116.69 69.7545 110.267 53.2022C110.258 53.2159 107.595 44.3527 110.017 36.2213Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M110.017 36.2213C110.634 34.1443 112.565 32.7417 114.724 32.8019C118.318 32.893 123.873 33.5496 126.77 36.5268C131.261 41.1521 123.736 56.731 123.736 56.731C123.736 56.731 116.69 69.7545 110.267 53.2022C110.258 53.2159 107.595 44.3527 110.017 36.2213Z","fill","black"],["d","M112.922 39.2661C113.364 37.7699 114.731 36.7605 116.259 36.8012C118.804 36.8682 122.74 37.3423 124.787 39.4927C127.969 42.8316 122.638 54.0832 122.638 54.0832C122.638 54.0832 117.661 63.4872 113.092 51.5396C113.092 51.5327 111.203 45.1393 112.922 39.2661Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M131.383 131.52C131.69 131.628 131.968 131.791 132.2 132C131.813 131.613 130.708 131.42 130.166 131.24C129.495 131.019 128.764 130.793 128.2 130.4C129.29 130.705 130.354 131.079 131.383 131.52Z","fill","black"],["opacity","0.1","d","M94.2 24.8C96.1882 24.8 97.8 23.1882 97.8 21.2C97.8 19.2118 96.1882 17.6 94.2 17.6C92.2117 17.6 90.6 19.2118 90.6 21.2C90.6 23.1882 92.2117 24.8 94.2 24.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M107 12C110.314 12 113 9.31371 113 6C113 2.68629 110.314 0 107 0C103.686 0 101 2.68629 101 6C101 9.31371 103.686 12 107 12Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M99 40.8C102.314 40.8 105 38.1137 105 34.8C105 31.4863 102.314 28.8 99 28.8C95.6863 28.8 93 31.4863 93 34.8C93 38.1137 95.6863 40.8 99 40.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M223 67.2C224.988 67.2 226.6 65.5882 226.6 63.6C226.6 61.6118 224.988 60 223 60C221.012 60 219.4 61.6118 219.4 63.6C219.4 65.5882 221.012 67.2 223 67.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M210.2 54.4C213.514 54.4 216.2 51.7137 216.2 48.4C216.2 45.0863 213.514 42.4 210.2 42.4C206.886 42.4 204.2 45.0863 204.2 48.4C204.2 51.7137 206.886 54.4 210.2 54.4Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M218.2 83.2C221.514 83.2 224.2 80.5137 224.2 77.2C224.2 73.8863 221.514 71.2 218.2 71.2C214.886 71.2 212.2 73.8863 212.2 77.2C212.2 80.5137 214.886 83.2 218.2 83.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M23.8 72C24.9046 72 25.8 71.1046 25.8 70C25.8 68.8954 24.9046 68 23.8 68C22.6954 68 21.8 68.8954 21.8 70C21.8 71.1046 22.6954 72 23.8 72Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M33 65.6C34.7673 65.6 36.2 64.1673 36.2 62.4C36.2 60.6327 34.7673 59.2 33 59.2C31.2327 59.2 29.8 60.6327 29.8 62.4C29.8 64.1673 31.2327 65.6 33 65.6Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M17 71.2C18.7673 71.2 20.2 69.7673 20.2 68C20.2 66.2327 18.7673 64.8 17 64.8C15.2327 64.8 13.8 66.2327 13.8 68C13.8 69.7673 15.2327 71.2 17 71.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M171.8 60C172.905 60 173.8 59.1046 173.8 58C173.8 56.8954 172.905 56 171.8 56C170.695 56 169.8 56.8954 169.8 58C169.8 59.1046 170.695 60 171.8 60Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M180.2 53.6C181.967 53.6 183.4 52.1673 183.4 50.4C183.4 48.6327 181.967 47.2 180.2 47.2C178.433 47.2 177 48.6327 177 50.4C177 52.1673 178.433 53.6 180.2 53.6Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M164.2 59.2C165.967 59.2 167.4 57.7673 167.4 56C167.4 54.2327 165.967 52.8 164.2 52.8C162.433 52.8 161 54.2327 161 56C161 57.7673 162.433 59.2 164.2 59.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M51 40.8C55.6392 40.8 59.4 37.0392 59.4 32.4C59.4 27.7608 55.6392 24 51 24C46.3608 24 42.6 27.7608 42.6 32.4C42.6 37.0392 46.3608 40.8 51 40.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M98.6 64.8C101.251 64.8 103.4 62.651 103.4 60C103.4 57.349 101.251 55.2 98.6 55.2C95.949 55.2 93.8 57.349 93.8 60C93.8 62.651 95.949 64.8 98.6 64.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M145.8 96.8C148.451 96.8 150.6 94.651 150.6 92C150.6 89.349 148.451 87.2 145.8 87.2C143.149 87.2 141 89.349 141 92C141 94.651 143.149 96.8 145.8 96.8Z",1,"fill-color-primary-darker"],["fill-rule","evenodd","clip-rule","evenodd","d","M59.8 136.8C75.0431 136.8 87.4 134.293 87.4 131.2C87.4 128.107 75.0431 125.6 59.8 125.6C44.557 125.6 32.2 128.107 32.2 131.2C32.2 134.293 44.557 136.8 59.8 136.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["fill-rule","evenodd","clip-rule","evenodd","d","M217.4 152.8C232.643 152.8 245 150.293 245 147.2C245 144.107 232.643 141.6 217.4 141.6C202.157 141.6 189.8 144.107 189.8 147.2C189.8 150.293 202.157 152.8 217.4 152.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["fill-rule","evenodd","clip-rule","evenodd","d","M28.6 152.8C43.8431 152.8 56.2 150.293 56.2 147.2C56.2 144.107 43.8431 141.6 28.6 141.6C13.3569 141.6 1 144.107 1 147.2C1 150.293 13.3569 152.8 28.6 152.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["d","M122.425 44.7H119.162L120.372 41.0719C120.484 40.6219 120.147 40.2 119.725 40.2H115.675C115.337 40.2 115.028 40.4531 115 40.7906L114.1 47.5406C114.044 47.9625 114.353 48.3 114.775 48.3H118.094L116.8 53.7844C116.716 54.2063 117.025 54.6 117.447 54.6C117.7 54.6 117.925 54.4875 118.037 54.2625L122.987 45.7125C123.269 45.2906 122.931 44.7 122.425 44.7Z","fill","white"],["d","M23.5204 123.2C23.0498 123.2 22.6141 123.375 22.2807 123.669C21.9491 123.96 21.7189 124.369 21.6565 124.837L20.2164 135.712C20.1423 136.278 20.3237 136.811 20.6643 137.203C21.0076 137.598 21.5119 137.85 22.0804 137.85H26.4117L24.5687 145.68C24.4289 146.274 24.5836 146.851 24.9204 147.28C25.2626 147.716 25.7931 148 26.3959 148C26.7289 148 27.0539 147.911 27.3385 147.746C27.616 147.585 27.8553 147.351 28.0254 147.055L35.9453 133.28C36.3068 132.658 36.2644 131.95 35.9495 131.398C35.7868 131.113 35.551 130.871 35.2622 130.703C34.9905 130.544 34.6717 130.45 34.3203 130.45H30.1609L31.7043 124.49C31.5476 124.305 31.4051 124.176 31.278 124.085C31.004 123.89 30.5348 123.687 29.7238 123.539C28.6009 123.335 26.6977 123.2 23.5204 123.2Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["d","M185.5 109.6C185.075 109.6 184.682 109.757 184.381 110.02C184.08 110.284 183.872 110.652 183.815 111.073L182.615 120.074C182.548 120.585 182.712 121.066 183.021 121.419C183.331 121.774 183.787 122 184.3 122H187.74L186.244 128.309C186.117 128.846 186.258 129.366 186.564 129.753C186.873 130.145 187.352 130.4 187.897 130.4C188.505 130.4 189.084 130.074 189.391 129.512L195.745 115.6H191.208L192.467 110.771C192.308 110.576 192.165 110.445 192.04 110.357C191.803 110.189 191.397 110.01 190.693 109.883C189.753 109.713 188.16 109.6 185.5 109.6Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["d","M215.1 128C214.675 128 214.282 128.157 213.981 128.42C213.68 128.683 213.472 129.052 213.415 129.473L212.215 138.474C212.148 138.985 212.312 139.466 212.621 139.819C212.931 140.174 213.387 140.4 213.9 140.4H217.34L215.844 146.709C215.717 147.246 215.858 147.766 216.164 148.153C216.473 148.545 216.952 148.8 217.497 148.8C218.105 148.8 218.684 148.474 218.991 147.912L225.345 134H220.808L222.067 129.171C221.908 128.976 221.765 128.845 221.64 128.757C221.403 128.589 220.997 128.41 220.293 128.283C219.353 128.113 217.76 128 215.1 128Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["d","M55.9003 111.2C55.4754 111.2 55.0822 111.357 54.7812 111.62C54.4802 111.883 54.2716 112.252 54.215 112.673L53.0149 121.674C52.9475 122.185 53.112 122.666 53.4214 123.019C53.7314 123.374 54.1868 123.6 54.7004 123.6H58.1398L56.6444 129.909C56.5174 130.446 56.6576 130.966 56.9637 131.353C57.2728 131.745 57.7518 132 58.2966 132C58.9052 132 59.4843 131.674 59.7907 131.112L66.1452 117.2H61.6081L62.8674 112.371C62.7082 112.176 62.5651 112.045 62.4402 111.957C62.2025 111.789 61.7969 111.61 61.0927 111.483C60.1529 111.313 58.5599 111.2 55.9003 111.2Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 210 124","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["d","M90.1491 0H0V100.616H90.1491V0Z",1,"fill-color-10"],["d","M88.6575 67.1775H1.48926V98.4248H88.6575V67.1775Z","fill","white"],["d","M59.844 74.5891H8.64404V90.6009H59.844V74.5891Z",1,"fill-color-primary-darker"],["d","M76.3172 90.6426C80.8187 90.6426 84.4679 86.9934 84.4679 82.4919C84.4679 77.9904 80.8187 74.3412 76.3172 74.3412C71.8157 74.3412 68.1665 77.9904 68.1665 82.4919C68.1665 86.9934 71.8157 90.6426 76.3172 90.6426Z",1,"fill-color-primary-darker"],["d","M88.6575 34.7129H1.48926V65.9602H88.6575V34.7129Z","fill","white"],["d","M59.844 42.1244H8.64404V58.1363H59.844V42.1244Z",1,"fill-color-primary-darker"],["d","M76.3172 58.1801C80.8187 58.1801 84.4679 54.5309 84.4679 50.0294C84.4679 45.5279 80.8187 41.8787 76.3172 41.8787C71.8157 41.8787 68.1665 45.5279 68.1665 50.0294C68.1665 54.5309 71.8157 58.1801 76.3172 58.1801Z",1,"fill-color-primary-darker"],["d","M88.6575 2.24823H1.48926V33.4955H88.6575V2.24823Z","fill","white"],["d","M59.844 9.66199H8.64404V25.6739H59.844V9.66199Z",1,"fill-color-primary-darker"],["d","M32.644 74.5891H8.64404V90.6009H32.644V74.5891Z",1,"fill-color-17"],["d","M45.444 42.1244H8.64404V58.1363H45.444V42.1244Z",1,"fill-color-17"],["d","M59.644 9.66199H8.64404V25.662H59.644V9.66199Z",1,"fill-color-17"],["d","M76.3176 26.3516C81.1704 26.3516 85.1044 22.4176 85.1044 17.5648C85.1044 12.712 81.1704 8.77802 76.3176 8.77802C71.4648 8.77802 67.5308 12.712 67.5308 17.5648C67.5308 22.4176 71.4648 26.3516 76.3176 26.3516Z","fill","url(#paint0_linear)"],["d","M76.3176 59.0334C81.1704 59.0334 85.1044 55.0994 85.1044 50.2466C85.1044 45.3938 81.1704 41.4598 76.3176 41.4598C71.4648 41.4598 67.5308 45.3938 67.5308 50.2466C67.5308 55.0994 71.4648 59.0334 76.3176 59.0334Z","fill","url(#paint1_linear)"],["d","M76.3176 91.4958C81.1704 91.4958 85.1044 87.5618 85.1044 82.709C85.1044 77.8562 81.1704 73.9222 76.3176 73.9222C71.4648 73.9222 67.5308 77.8562 67.5308 82.709C67.5308 87.5618 71.4648 91.4958 76.3176 91.4958Z","fill","url(#paint2_linear)"],["d","M76.1507 25.3014C80.6522 25.3014 84.3014 21.6522 84.3014 17.1507C84.3014 12.6492 80.6522 9 76.1507 9C71.6492 9 68 12.6492 68 17.1507C68 21.6522 71.6492 25.3014 76.1507 25.3014Z",1,"fill-color-17"],["d","M193.435 36.7899H142.709V35.7444H119.709V36.7899H68.7744C67.8644 36.7899 66.9917 37.1514 66.3482 37.7949C65.7048 38.4384 65.3433 39.3111 65.3433 40.2211V109.679C65.3433 110.589 65.7048 111.462 66.3482 112.106C66.9917 112.749 67.8644 113.111 68.7744 113.111H193.435C195.33 113.111 196.866 111.574 196.866 109.679V40.2211C196.866 39.3111 196.504 38.4384 195.861 37.7949C195.217 37.1514 194.345 36.7899 193.435 36.7899Z",1,"fill-color-19"],["d","M192.266 42.8538H69.9434V111.856H192.266V42.8538Z",1,"fill-color-22"],["opacity","0.1","d","M157.284 111.856H69.9434V42.8538L157.284 111.856Z","fill","black"],["d","M89.0832 106.693C95.577 106.693 100.841 101.428 100.841 94.9346C100.841 88.4408 95.577 83.1766 89.0832 83.1766C82.5894 83.1766 77.3252 88.4408 77.3252 94.9346C77.3252 101.428 82.5894 106.693 89.0832 106.693Z",1,"fill-color-25"],["d","M91.7005 103.772C85.7849 103.772 80.4518 100.208 78.188 94.7431C75.9242 89.2778 77.1755 82.987 81.3584 78.8041C85.5414 74.6211 91.8322 73.3698 97.2975 75.6336C102.763 77.8974 106.326 83.2305 106.326 89.1461C106.317 97.2199 99.7743 103.763 91.7005 103.772ZM91.7005 74.7115C83.7284 74.7115 77.2658 81.174 77.2658 89.1461C77.2658 97.1181 83.7284 103.581 91.7005 103.581C99.6725 103.581 106.135 97.1181 106.135 89.1461C106.126 81.1778 99.6687 74.7205 91.7005 74.7115Z",1,"fill-color-28"],["d","M170.967 80.0673H159.541V82.4548H170.967V80.0673Z",1,"fill-color-19"],["d","M184.781 61.4783H145.727V62.5015H184.781V61.4783Z",1,"fill-color-19"],["d","M184.781 64.7186H145.727V65.7418H184.781V64.7186Z",1,"fill-color-19"],["d","M184.781 67.9589H145.727V68.9821H184.781V67.9589Z",1,"fill-color-19"],["d","M184.781 71.1991H145.727V72.2224H184.781V71.1991Z",1,"fill-color-19"],["d","M184.781 74.4394H145.727V75.4626H184.781V74.4394Z",1,"fill-color-19"],["d","M184.781 44.2537H180.006V49.0288H184.781V44.2537Z",1,"fill-color-25"],["d","M186.998 51.2458H181.2V45.4474H186.998V51.2458ZM181.452 50.9937H186.746V45.6996H181.452V50.9937Z",1,"fill-color-19"],["d","M200.3 110.601H188.362V109.741C188.362 109.696 188.344 109.653 188.312 109.621C188.28 109.589 188.237 109.571 188.192 109.571H184.099C184.054 109.571 184.01 109.589 183.978 109.621C183.946 109.653 183.928 109.696 183.928 109.741V110.601H181.37V109.741C181.37 109.696 181.352 109.653 181.32 109.621C181.288 109.589 181.245 109.571 181.2 109.571H177.107C177.061 109.571 177.018 109.589 176.986 109.621C176.954 109.653 176.936 109.696 176.936 109.741V110.601H174.378V109.741C174.378 109.696 174.36 109.653 174.328 109.621C174.296 109.589 174.253 109.571 174.207 109.571H170.115C170.069 109.571 170.026 109.589 169.994 109.621C169.962 109.653 169.944 109.696 169.944 109.741V110.601H167.386V109.741C167.386 109.696 167.368 109.653 167.336 109.621C167.304 109.589 167.261 109.571 167.215 109.571H163.122C163.077 109.571 163.034 109.589 163.002 109.621C162.97 109.653 162.952 109.696 162.952 109.741V110.601H160.394V109.741C160.394 109.696 160.376 109.653 160.344 109.621C160.312 109.589 160.268 109.571 160.223 109.571H156.13C156.085 109.571 156.042 109.589 156.01 109.621C155.978 109.653 155.96 109.696 155.96 109.741V110.601H153.402V109.741C153.402 109.696 153.384 109.653 153.352 109.621C153.32 109.589 153.276 109.571 153.231 109.571H149.138C149.093 109.571 149.049 109.589 149.017 109.621C148.985 109.653 148.967 109.696 148.967 109.741V110.601H146.409V109.741C146.409 109.696 146.391 109.653 146.359 109.621C146.327 109.589 146.284 109.571 146.239 109.571H114.177C114.132 109.571 114.089 109.589 114.057 109.621C114.025 109.653 114.007 109.696 114.007 109.741V110.601H111.449V109.741C111.449 109.696 111.431 109.653 111.399 109.621C111.367 109.589 111.323 109.571 111.278 109.571H107.185C107.14 109.571 107.096 109.589 107.064 109.621C107.032 109.653 107.014 109.696 107.014 109.741V110.601H104.456V109.741C104.456 109.696 104.438 109.653 104.406 109.621C104.374 109.589 104.331 109.571 104.286 109.571H100.193C100.148 109.571 100.104 109.589 100.072 109.621C100.04 109.653 100.022 109.696 100.022 109.741V110.601H97.4642V109.741C97.4642 109.696 97.4462 109.653 97.4142 109.621C97.3822 109.589 97.3388 109.571 97.2936 109.571H93.2006C93.1554 109.571 93.112 109.589 93.08 109.621C93.048 109.653 93.0301 109.696 93.0301 109.741V110.601H90.472V109.741C90.472 109.696 90.454 109.653 90.422 109.621C90.39 109.589 90.3467 109.571 90.3014 109.571H86.2085C86.1632 109.571 86.1198 109.589 86.0879 109.621C86.0559 109.653 86.0379 109.696 86.0379 109.741V110.601H83.4798V109.741C83.4798 109.696 83.4618 109.653 83.4299 109.621C83.3979 109.589 83.3545 109.571 83.3093 109.571H79.2163C79.171 109.571 79.1277 109.589 79.0957 109.621C79.0637 109.653 79.0457 109.696 79.0457 109.741V110.601H76.4876V109.741C76.4876 109.696 76.4697 109.653 76.4377 109.621C76.4057 109.589 76.3623 109.571 76.3171 109.571H72.2241C72.1789 109.571 72.1355 109.589 72.1035 109.621C72.0715 109.653 72.0536 109.696 72.0536 109.741V110.601H64.2087C61.9482 110.601 60.1157 112.434 60.1157 114.694V116.545C60.1157 118.806 61.9482 120.638 64.2087 120.638H200.3C202.561 120.638 204.393 118.806 204.393 116.545V114.694C204.393 112.434 202.561 110.601 200.3 110.601Z",1,"fill-color-19"],["d","M86.1131 103.322C86.3717 103.386 86.6518 103.312 86.8456 103.112L94.5986 95.1027C95.007 94.6845 94.8072 93.9773 94.2376 93.8353L90.6843 92.9494L92.9925 89.2798C93.2324 88.8425 92.9934 88.2924 92.51 88.1718L88.0762 87.0663C87.7067 86.9742 87.3243 87.17 87.1837 87.5241L84.3559 94.6682C84.1868 95.097 84.4334 95.5771 84.8799 95.6884L88.5347 96.5996L85.6221 102.235C85.3946 102.675 85.642 103.204 86.1131 103.322Z",1,"fill-color-21"],["d","M42 75H9V91H42V75Z",1,"fill-color-17"],["d","M42 42H9V58H42V42Z",1,"fill-color-17"],["d","M76.3176 26.3516C81.1704 26.3516 85.1044 22.4176 85.1044 17.5648C85.1044 12.712 81.1704 8.77802 76.3176 8.77802C71.4648 8.77802 67.5308 12.712 67.5308 17.5648C67.5308 22.4176 71.4648 26.3516 76.3176 26.3516Z","fill","url(#paint3_linear)"],["d","M76.3176 59.0334C81.1704 59.0334 85.1044 55.0994 85.1044 50.2466C85.1044 45.3938 81.1704 41.4598 76.3176 41.4598C71.4648 41.4598 67.5308 45.3938 67.5308 50.2466C67.5308 55.0994 71.4648 59.0334 76.3176 59.0334Z","fill","url(#paint4_linear)"],["d","M76.3176 91.4958C81.1704 91.4958 85.1044 87.5618 85.1044 82.709C85.1044 77.8562 81.1704 73.9222 76.3176 73.9222C71.4648 73.9222 67.5308 77.8562 67.5308 82.709C67.5308 87.5618 71.4648 91.4958 76.3176 91.4958Z","fill","url(#paint5_linear)"],["d","M205.185 113.031H193.247V112.171C193.247 112.125 193.229 112.082 193.197 112.05C193.165 112.018 193.121 112 193.076 112H188.983C188.938 112 188.895 112.018 188.863 112.05C188.831 112.082 188.813 112.125 188.813 112.171V113.031H186.254V112.171C186.254 112.125 186.237 112.082 186.205 112.05C186.173 112.018 186.129 112 186.084 112H181.991C181.946 112 181.902 112.018 181.87 112.05C181.838 112.082 181.82 112.125 181.82 112.171V113.031H179.262V112.171C179.262 112.125 179.244 112.082 179.212 112.05C179.18 112.018 179.137 112 179.092 112H174.999C174.954 112 174.91 112.018 174.878 112.05C174.846 112.082 174.828 112.125 174.828 112.171V113.031H172.27V112.171C172.27 112.125 172.252 112.082 172.22 112.05C172.188 112.018 172.145 112 172.1 112H168.007C167.961 112 167.918 112.018 167.886 112.05C167.854 112.082 167.836 112.125 167.836 112.171V113.031H165.278V112.171C165.278 112.125 165.26 112.082 165.228 112.05C165.196 112.018 165.153 112 165.107 112H161.014C160.969 112 160.926 112.018 160.894 112.05C160.862 112.082 160.844 112.125 160.844 112.171V113.031H158.286V112.171C158.286 112.125 158.268 112.082 158.236 112.05C158.204 112.018 158.16 112 158.115 112H154.022C153.977 112 153.934 112.018 153.902 112.05C153.87 112.082 153.852 112.125 153.852 112.171V113.031H151.294V112.171C151.294 112.125 151.276 112.082 151.244 112.05C151.212 112.018 151.168 112 151.123 112H119.061C119.016 112 118.973 112.018 118.941 112.05C118.909 112.082 118.891 112.125 118.891 112.171V113.031H116.333V112.171C116.333 112.125 116.315 112.082 116.283 112.05C116.251 112.018 116.207 112 116.162 112H112.069C112.024 112 111.981 112.018 111.949 112.05C111.917 112.082 111.899 112.125 111.899 112.171V113.031H109.341V112.171C109.341 112.125 109.323 112.082 109.291 112.05C109.259 112.018 109.215 112 109.17 112H105.077C105.032 112 104.988 112.018 104.956 112.05C104.924 112.082 104.907 112.125 104.907 112.171V113.031H102.348V112.171C102.348 112.125 102.33 112.082 102.298 112.05C102.266 112.018 102.223 112 102.178 112H98.0849C98.0397 112 97.9963 112.018 97.9643 112.05C97.9323 112.082 97.9144 112.125 97.9144 112.171V113.031H95.3563V112.171C95.3563 112.125 95.3383 112.082 95.3063 112.05C95.2743 112.018 95.2309 112 95.1857 112H91.0927C91.0475 112 91.0041 112.018 90.9721 112.05C90.9402 112.082 90.9222 112.125 90.9222 112.171V113.031H88.3641V112.171C88.3641 112.125 88.3461 112.082 88.3141 112.05C88.2822 112.018 88.2388 112 88.1935 112H84.1006C84.0553 112 84.0119 112.018 83.98 112.05C83.948 112.082 83.93 112.125 83.93 112.171V113.031H81.3719V112.171C81.3719 112.125 81.3539 112.082 81.322 112.05C81.29 112.018 81.2466 112 81.2014 112H77.1084C77.0632 112 77.0198 112.018 76.9878 112.05C76.9558 112.082 76.9378 112.125 76.9379 112.171V113.031H69.093C66.8325 113.031 65 114.863 65 117.124V118.974C65 121.235 66.8325 123.067 69.093 123.067H205.185C207.445 123.067 209.277 121.235 209.277 118.974V117.124C209.277 114.863 207.445 113.031 205.185 113.031Z",1,"fill-color-19"],["d","M78.375 20.625C78.375 19.5938 77.5312 18.75 76.5 18.75C75.4453 18.75 74.625 19.5938 74.625 20.625C74.625 21.6797 75.4453 22.5 76.5 22.5C77.5312 22.5 78.375 21.6797 78.375 20.625ZM74.8359 11.1094L75.1406 17.4844C75.1641 17.7656 75.4219 18 75.7031 18H77.2734C77.5547 18 77.8125 17.7656 77.8359 17.4844L78.1406 11.1094C78.1641 10.7812 77.9062 10.5 77.5781 10.5H75.3984C75.0703 10.5 74.8125 10.7812 74.8359 11.1094Z","fill","white"],["id","paint0_linear","x1","76.3176","y1","26.3516","x2","76.3176","y2","8.77802","gradientUnits","userSpaceOnUse"],["stop-color","#808080","stop-opacity","0.25"],["offset","0.54","stop-color","#808080","stop-opacity","0.12"],["offset","1","stop-color","#808080","stop-opacity","0.1"],["id","paint1_linear","x1","76.3176","y1","59.0334","x2","76.3176","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint2_linear","x1","76.3176","y1","91.4958","x2","76.3176","y2","73.9222","gradientUnits","userSpaceOnUse"],["id","paint3_linear","x1","76.3176","y1","26.3516","x2","76.3176","y2","8.77802","gradientUnits","userSpaceOnUse"],["id","paint4_linear","x1","76.3176","y1","59.0334","x2","76.3176","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint5_linear","x1","76.3176","y1","91.4958","x2","76.3176","y2","73.9222","gradientUnits","userSpaceOnUse"],["fxFlex","30","viewBox","0 0 370 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["d","M327.488 99.9755C350.953 99.9755 369.975 80.9531 369.975 57.4877C369.975 34.0224 350.953 15 327.488 15C304.022 15 285 34.0224 285 57.4877C285 80.9531 304.022 99.9755 327.488 99.9755Z",1,"fill-color-25"],["d","M115.068 85.6077H349.8V86.5722H113L115.068 85.6077Z",1,"fill-color-19"],["d","M236.776 84.376H226.024V91.544H236.776V84.376Z",1,"fill-color-primary-lighter"],["d","M218.856 87.96H233.192V79H218.856V87.96ZM232.569 87.5704H219.479V79.3896H232.569V87.5704Z",1,"fill-color-19"],["d","M265 57.3624H357.392V120.307H265V57.3624Z",1,"fill-color-22"],["d","M362.545 50H271.626C271.016 50.0009 270.521 50.495 270.521 51.1048V112.577C270.521 112.87 270.638 113.151 270.845 113.358C271.052 113.565 271.333 113.681 271.626 113.681H362.545C362.838 113.681 363.119 113.565 363.326 113.358C363.533 113.151 363.65 112.87 363.65 112.577V51.1048C363.65 50.495 363.155 50.0009 362.545 50ZM362.913 112.577C362.913 112.674 362.875 112.768 362.806 112.837C362.736 112.907 362.643 112.945 362.545 112.945H271.626C271.528 112.945 271.434 112.907 271.365 112.837C271.296 112.768 271.258 112.674 271.258 112.577V51.1048C271.258 50.9015 271.423 50.7365 271.626 50.7365H362.545C362.748 50.7365 362.913 50.9015 362.913 51.1048V112.577Z",1,"fill-color-19"],["d","M316.364 93.4359H275.844C275.547 93.4359 275.307 93.6766 275.307 93.9735V97.6835C275.307 97.9804 275.547 98.2211 275.844 98.2211H316.364C316.661 98.2211 316.901 97.9804 316.901 97.6835V93.9735C316.901 93.6766 316.661 93.4359 316.364 93.4359Z",1,"fill-color-19"],["d","M354.814 89.3873H341.565C341.272 89.3873 340.991 89.5036 340.784 89.7108C340.577 89.918 340.46 90.199 340.46 90.492V100.798C340.46 101.091 340.577 101.372 340.784 101.579C340.991 101.786 341.272 101.903 341.565 101.903H354.814C355.107 101.903 355.388 101.786 355.595 101.579C355.803 101.372 355.919 101.091 355.919 100.798V90.492C355.919 90.199 355.803 89.918 355.595 89.7108C355.388 89.5036 355.107 89.3873 354.814 89.3873ZM355.182 100.798C355.182 101.001 355.017 101.166 354.814 101.166H341.565C341.362 101.166 341.197 101.001 341.197 100.798V90.492C341.196 90.3943 341.235 90.3004 341.304 90.2313C341.373 90.1622 341.467 90.1235 341.565 90.1238H354.814C354.912 90.1235 355.006 90.1622 355.075 90.2313C355.144 90.3004 355.183 90.3943 355.182 90.492V100.798Z",1,"fill-color-19"],["d","M352.168 91.7653H344.211C343.914 91.7653 343.673 92.006 343.673 92.3029V93.0965C343.673 93.3934 343.914 93.6341 344.211 93.6341H352.168C352.465 93.6341 352.706 93.3934 352.706 93.0965V92.3029C352.706 92.006 352.465 91.7653 352.168 91.7653Z",1,"fill-color-19"],["d","M352.168 94.71H344.211C343.914 94.71 343.673 94.9507 343.673 95.2476V96.0412C343.673 96.3381 343.914 96.5788 344.211 96.5788H352.168C352.465 96.5788 352.706 96.3381 352.706 96.0412V95.2476C352.706 94.9507 352.465 94.71 352.168 94.71Z",1,"fill-color-19"],["d","M352.168 97.6548H344.211C343.914 97.6548 343.673 97.8955 343.673 98.1924V98.986C343.673 99.2829 343.914 99.5236 344.211 99.5236H352.168C352.465 99.5236 352.706 99.2829 352.706 98.986V98.1924C352.706 97.8955 352.465 97.6548 352.168 97.6548Z",1,"fill-color-19"],["d","M295.014 54.4177H276.949C276.652 54.4177 276.411 54.6584 276.411 54.9553V61.9782C276.411 62.2752 276.652 62.5158 276.949 62.5158H295.014C295.311 62.5158 295.552 62.2752 295.552 61.9782V54.9553C295.552 54.6584 295.311 54.4177 295.014 54.4177Z",1,"fill-color-19"],["d","M312.293 105.198C319.455 105.198 325.261 99.3917 325.261 92.2295C325.261 85.0672 319.455 79.2611 312.293 79.2611C305.131 79.2611 299.325 85.0672 299.325 92.2295C299.325 99.3917 305.131 105.198 312.293 105.198Z",1,"fill-color-25"],["d","M315.18 101.976C308.655 101.976 302.773 98.0462 300.276 92.0183C297.78 85.9904 299.16 79.052 303.773 74.4384C308.387 69.8249 315.325 68.4448 321.353 70.9416C327.381 73.4384 331.311 79.3205 331.311 85.8451C331.301 94.75 324.085 101.966 315.18 101.976ZM315.18 69.9245C306.387 69.9245 299.259 77.0524 299.259 85.8451C299.259 94.6377 306.387 101.766 315.18 101.766C323.973 101.766 331.1 94.6377 331.1 85.8451C331.09 77.0565 323.968 69.9345 315.18 69.9245Z",1,"fill-color-19"],["d","M309.677 100.883C309.936 100.948 310.216 100.873 310.41 100.673L318.163 92.664C318.571 92.2458 318.371 91.5387 317.802 91.3966L314.249 90.5107L316.557 86.8411C316.797 86.4038 316.558 85.8537 316.074 85.7332L311.64 84.6277C311.271 84.5355 310.888 84.7313 310.748 85.0854L307.92 92.2295C307.751 92.6583 307.998 93.1384 308.444 93.2497L312.099 94.161L309.186 99.7958C308.959 100.236 309.206 100.766 309.677 100.883Z",1,"fill-color-21"],["d","M88.6576 67.1775H1.48938V98.4248H88.6576V67.1775Z","fill","white"],["d","M59.8442 74.589H8.64417V90.6009H59.8442V74.589Z",1,"fill-color-primary-darker"],["d","M76.3175 90.6426C80.819 90.6426 84.4682 86.9934 84.4682 82.4919C84.4682 77.9904 80.819 74.3412 76.3175 74.3412C71.8159 74.3412 68.1667 77.9904 68.1667 82.4919C68.1667 86.9934 71.8159 90.6426 76.3175 90.6426Z",1,"fill-color-primary-darker"],["d","M88.6576 34.7129H1.48938V65.9602H88.6576V34.7129Z","fill","white"],["d","M59.8442 42.1244H8.64417V58.1363H59.8442V42.1244Z",1,"fill-color-primary-darker"],["d","M76.3175 58.1801C80.819 58.1801 84.4682 54.531 84.4682 50.0294C84.4682 45.5279 80.819 41.8787 76.3175 41.8787C71.8159 41.8787 68.1667 45.5279 68.1667 50.0294C68.1667 54.531 71.8159 58.1801 76.3175 58.1801Z",1,"fill-color-primary-darker"],["d","M88.6576 2.24824H1.48938V33.4955H88.6576V2.24824Z","fill","white"],["d","M59.8442 9.66196H8.64417V25.6738H59.8442V9.66196Z",1,"fill-color-primary-darker"],["d","M59.8442 9.66196H8.64417V25.6738H59.8442V9.66196Z",1,"fill-color-17"],["d","M76.7868 26.5736C81.6396 26.5736 85.5736 22.6396 85.5736 17.7868C85.5736 12.934 81.6396 9 76.7868 9C71.934 9 68 12.934 68 17.7868C68 22.6396 71.934 26.5736 76.7868 26.5736Z","fill","url(#paint0_linear)"],["d","M76.3174 59.0334C81.1702 59.0334 85.1042 55.0994 85.1042 50.2466C85.1042 45.3938 81.1702 41.4598 76.3174 41.4598C71.4646 41.4598 67.5306 45.3938 67.5306 50.2466C67.5306 55.0994 71.4646 59.0334 76.3174 59.0334Z","fill","url(#paint1_linear)"],["d","M76.3174 91.4958C81.1702 91.4958 85.1042 87.5618 85.1042 82.709C85.1042 77.8562 81.1702 73.9222 76.3174 73.9222C71.4646 73.9222 67.5306 77.8562 67.5306 82.709C67.5306 87.5618 71.4646 91.4958 76.3174 91.4958Z","fill","url(#paint2_linear)"],["d","M193.434 36.7899H142.709V35.7444H119.708V36.7899H68.7742C67.8642 36.7899 66.9915 37.1514 66.348 37.7949C65.7045 38.4384 65.343 39.3111 65.343 40.2211V109.679C65.343 110.589 65.7045 111.462 66.348 112.106C66.9915 112.749 67.8642 113.111 68.7742 113.111H193.434C195.329 113.111 196.866 111.574 196.866 109.679V40.2211C196.866 39.3111 196.504 38.4384 195.861 37.7949C195.217 37.1514 194.344 36.7899 193.434 36.7899Z",1,"fill-color-19"],["d","M192.265 42.8538H69.9432V111.856H192.265V42.8538Z",1,"fill-color-22"],["opacity","0.1","d","M157.283 111.856H69.9432V42.8538L157.283 111.856Z","fill","black"],["d","M89.0829 106.693C95.5767 106.693 100.841 101.428 100.841 94.9346C100.841 88.4408 95.5767 83.1766 89.0829 83.1766C82.5892 83.1766 77.325 88.4408 77.325 94.9346C77.325 101.428 82.5892 106.693 89.0829 106.693Z",1,"fill-color-25"],["d","M91.7004 103.772C85.7849 103.772 80.4518 100.208 78.188 94.7431C75.9242 89.2778 77.1755 82.987 81.3584 78.8041C85.5414 74.6211 91.8322 73.3698 97.2975 75.6336C102.763 77.8974 106.326 83.2305 106.326 89.1461C106.317 97.2199 99.7743 103.763 91.7004 103.772ZM91.7004 74.7115C83.7284 74.7115 77.2658 81.174 77.2658 89.1461C77.2658 97.1181 83.7284 103.581 91.7004 103.581C99.6725 103.581 106.135 97.1181 106.135 89.1461C106.126 81.1778 99.6687 74.7205 91.7004 74.7115Z",1,"fill-color-28"],["d","M170.967 80.0672H159.541V82.4548H170.967V80.0672Z",1,"fill-color-19"],["d","M184.781 67.9588H145.727V68.9821H184.781V67.9588Z",1,"fill-color-19"],["d","M200.3 110.601H188.362V109.741C188.362 109.696 188.344 109.653 188.312 109.621C188.28 109.589 188.237 109.571 188.192 109.571H184.099C184.054 109.571 184.01 109.589 183.978 109.621C183.946 109.653 183.928 109.696 183.928 109.741V110.601H181.37V109.741C181.37 109.696 181.352 109.653 181.32 109.621C181.288 109.589 181.245 109.571 181.2 109.571H177.107C177.061 109.571 177.018 109.589 176.986 109.621C176.954 109.653 176.936 109.696 176.936 109.741V110.601H174.378V109.741C174.378 109.696 174.36 109.653 174.328 109.621C174.296 109.589 174.253 109.571 174.207 109.571H170.114C170.069 109.571 170.026 109.589 169.994 109.621C169.962 109.653 169.944 109.696 169.944 109.741V110.601H167.386V109.741C167.386 109.696 167.368 109.653 167.336 109.621C167.304 109.589 167.26 109.571 167.215 109.571H163.122C163.077 109.571 163.034 109.589 163.002 109.621C162.97 109.653 162.952 109.696 162.952 109.741V110.601H160.394V109.741C160.394 109.696 160.376 109.653 160.344 109.621C160.312 109.589 160.268 109.571 160.223 109.571H156.13C156.085 109.571 156.041 109.589 156.009 109.621C155.977 109.653 155.96 109.696 155.96 109.741V110.601H153.401V109.741C153.401 109.696 153.383 109.653 153.351 109.621C153.319 109.589 153.276 109.571 153.231 109.571H149.138C149.093 109.571 149.049 109.589 149.017 109.621C148.985 109.653 148.967 109.696 148.967 109.741V110.601H146.409V109.741C146.409 109.696 146.391 109.653 146.359 109.621C146.327 109.589 146.284 109.571 146.239 109.571H114.177C114.132 109.571 114.088 109.589 114.056 109.621C114.024 109.653 114.006 109.696 114.006 109.741V110.601H111.448V109.741C111.448 109.696 111.43 109.653 111.398 109.621C111.366 109.589 111.323 109.571 111.278 109.571H107.185C107.14 109.571 107.096 109.589 107.064 109.621C107.032 109.653 107.014 109.696 107.014 109.741V110.601H104.456V109.741C104.456 109.696 104.438 109.653 104.406 109.621C104.374 109.589 104.331 109.571 104.286 109.571H100.193C100.147 109.571 100.104 109.589 100.072 109.621C100.04 109.653 100.022 109.696 100.022 109.741V110.601H97.464V109.741C97.464 109.696 97.4461 109.653 97.4141 109.621C97.3821 109.589 97.3387 109.571 97.2935 109.571H93.2005C93.1553 109.571 93.1119 109.589 93.0799 109.621C93.0479 109.653 93.03 109.696 93.03 109.741V110.601H90.4719V109.741C90.4719 109.696 90.4539 109.653 90.4219 109.621C90.3899 109.589 90.3465 109.571 90.3013 109.571H86.2083C86.1631 109.571 86.1197 109.589 86.0877 109.621C86.0558 109.653 86.0378 109.696 86.0378 109.741V110.601H83.4797V109.741C83.4797 109.696 83.4617 109.653 83.4297 109.621C83.3978 109.589 83.3544 109.571 83.3091 109.571H79.2162C79.1709 109.571 79.1276 109.589 79.0956 109.621C79.0636 109.653 79.0456 109.696 79.0456 109.741V110.601H76.4875V109.741C76.4875 109.696 76.4695 109.653 76.4376 109.621C76.4056 109.589 76.3622 109.571 76.317 109.571H72.224C72.1788 109.571 72.1354 109.589 72.1034 109.621C72.0714 109.653 72.0535 109.696 72.0535 109.741V110.601H64.2086C61.9481 110.601 60.1156 112.434 60.1156 114.694V116.545C60.1156 118.806 61.9481 120.638 64.2086 120.638H200.3C202.561 120.638 204.393 118.806 204.393 116.545V114.694C204.393 112.434 202.561 110.601 200.3 110.601Z",1,"fill-color-19"],["d","M86.1131 103.322C86.3717 103.386 86.6518 103.312 86.8457 103.112L94.5986 95.1027C95.007 94.6845 94.8072 93.9774 94.2376 93.8353L90.6843 92.9494L92.9925 89.2798C93.2324 88.8425 92.9934 88.2924 92.51 88.1719L88.0762 87.0664C87.7067 86.9742 87.3243 87.17 87.1837 87.5241L84.3559 94.6682C84.1868 95.097 84.4334 95.5771 84.8799 95.6884L88.5348 96.5997L85.6221 102.235C85.3946 102.675 85.642 103.204 86.1131 103.322Z",1,"fill-color-21"],["d","M78.125 21.625C78.125 20.5938 77.2812 19.75 76.25 19.75C75.1953 19.75 74.375 20.5938 74.375 21.625C74.375 22.6797 75.1953 23.5 76.25 23.5C77.2812 23.5 78.125 22.6797 78.125 21.625ZM74.5859 12.1094L74.8906 18.4844C74.9141 18.7656 75.1719 19 75.4531 19H77.0234C77.3047 19 77.5625 18.7656 77.5859 18.4844L77.8906 12.1094C77.9141 11.7812 77.6562 11.5 77.3281 11.5H75.1484C74.8203 11.5 74.5625 11.7812 74.5859 12.1094Z","fill","white"],["id","paint0_linear","x1","76.7868","y1","26.5736","x2","76.7868","y2","9","gradientUnits","userSpaceOnUse"],["id","paint1_linear","x1","76.3174","y1","59.0334","x2","76.3174","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint2_linear","x1","76.3174","y1","91.4958","x2","76.3174","y2","73.9222","gradientUnits","userSpaceOnUse"],["fxFlex","30","viewBox","0 0 153 200","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["fill-rule","evenodd","clip-rule","evenodd","d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46C37.5901 46 6.25 78.4594 6.25 118.5C6.25 158.541 37.5901 191 76.25 191Z","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7",1,"fill-color-0","stroke-color-primary-lighter"],["d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7",1,"fill-color-0","stroke-color-primary"],["d","M122.399 37H32.25V137.616H122.399V37Z",1,"fill-color-10"],["d","M120.908 104.178H33.7394V135.425H120.908V104.178Z","fill","white"],["d","M92.0943 111.589H40.8943V127.601H92.0943V111.589Z",1,"fill-color-primary-darker"],["d","M108.567 127.643C113.069 127.643 116.718 123.993 116.718 119.492C116.718 114.99 113.069 111.341 108.567 111.341C104.066 111.341 100.417 114.99 100.417 119.492C100.417 123.993 104.066 127.643 108.567 127.643Z",1,"fill-color-primary-darker"],["d","M120.908 71.7129H33.7394V102.96H120.908V71.7129Z","fill","white"],["d","M92.0943 79.1244H40.8943V95.1363H92.0943V79.1244Z",1,"fill-color-primary-darker"],["d","M108.567 95.1801C113.069 95.1801 116.718 91.531 116.718 87.0294C116.718 82.5279 113.069 78.8787 108.567 78.8787C104.066 78.8787 100.417 82.5279 100.417 87.0294C100.417 91.531 104.066 95.1801 108.567 95.1801Z",1,"fill-color-primary-darker"],["d","M120.908 39.2482H33.7394V70.4955H120.908V39.2482Z","fill","white"],["d","M92.0943 46.662H40.8943V62.6738H92.0943V46.662Z",1,"fill-color-primary-darker"],["d","M74.5 112H40.5V128H74.5V112Z",1,"fill-color-17"],["d","M74.5 79H40.5V95H74.5V79Z",1,"fill-color-17"],["d","M91.8943 46.662H40.8943V62.662H91.8943V46.662Z",1,"fill-color-17"],["d","M108.567 63.3516C113.42 63.3516 117.354 59.4176 117.354 54.5648C117.354 49.712 113.42 45.778 108.567 45.778C103.715 45.778 99.7806 49.712 99.7806 54.5648C99.7806 59.4176 103.715 63.3516 108.567 63.3516Z","fill","url(#paint0_linear)"],["d","M108.567 96.0334C113.42 96.0334 117.354 92.0994 117.354 87.2466C117.354 82.3938 113.42 78.4598 108.567 78.4598C103.715 78.4598 99.7806 82.3938 99.7806 87.2466C99.7806 92.0994 103.715 96.0334 108.567 96.0334Z",1,"fill-color-17"],["d","M108.567 128.496C113.42 128.496 117.354 124.562 117.354 119.709C117.354 114.856 113.42 110.922 108.567 110.922C103.715 110.922 99.7806 114.856 99.7806 119.709C99.7806 124.562 103.715 128.496 108.567 128.496Z",1,"fill-color-17"],["d","M108.401 62.3014C112.902 62.3014 116.551 58.6522 116.551 54.1507C116.551 49.6492 112.902 46 108.401 46C103.899 46 100.25 49.6492 100.25 54.1507C100.25 58.6522 103.899 62.3014 108.401 62.3014Z",1,"fill-color-17"],["d","M110.625 57.625C110.625 56.5938 109.781 55.75 108.75 55.75C107.695 55.75 106.875 56.5938 106.875 57.625C106.875 58.6797 107.695 59.5 108.75 59.5C109.781 59.5 110.625 58.6797 110.625 57.625ZM107.086 48.1094L107.391 54.4844C107.414 54.7656 107.672 55 107.953 55H109.523C109.805 55 110.062 54.7656 110.086 54.4844L110.391 48.1094C110.414 47.7812 110.156 47.5 109.828 47.5H107.648C107.32 47.5 107.062 47.7812 107.086 48.1094Z","fill","white"],["d","M141.711 111C141.008 111 140.656 111.859 141.164 112.367L146.164 117.367C146.477 117.68 146.984 117.68 147.297 117.367L152.297 112.367C152.805 111.859 152.453 111 151.75 111H141.711Z",1,"fill-color-17"],["d","M84.25 185.461C84.25 184.758 83.3906 184.406 82.8828 184.914L77.8828 189.914C77.5703 190.227 77.5703 190.734 77.8828 191.047L82.8828 196.047C83.3906 196.555 84.25 196.203 84.25 195.5V185.461Z",1,"fill-color-primary-darker"],["d","M11.7891 120C12.4922 120 12.8437 119.141 12.3359 118.633L7.33593 113.633C7.02343 113.32 6.51562 113.32 6.20312 113.633L1.20312 118.633C0.695303 119.141 1.04687 120 1.74999 120H11.7891Z",1,"fill-color-primary-darker"],["d","M133.75 174C142.31 174 149.25 167.06 149.25 158.5C149.25 149.94 142.31 143 133.75 143C125.19 143 118.25 149.94 118.25 158.5C118.25 167.06 125.19 174 133.75 174Z",1,"fill-color-25"],["d","M129.872 169.64C130.214 169.726 130.584 169.628 130.84 169.363L141.093 158.771C141.633 158.218 141.369 157.283 140.616 157.095L135.917 155.924L138.969 151.071C139.286 150.493 138.97 149.765 138.331 149.606L132.468 148.144C131.979 148.022 131.473 148.281 131.287 148.749L127.548 158.197C127.324 158.764 127.65 159.399 128.241 159.546L133.074 160.751L129.222 168.203C128.921 168.785 129.249 169.485 129.872 169.64Z",1,"fill-color-21"],["d","M19.75 174C28.3104 174 35.25 167.06 35.25 158.5C35.25 149.94 28.3104 143 19.75 143C11.1896 143 4.25 149.94 4.25 158.5C4.25 167.06 11.1896 174 19.75 174Z",1,"fill-color-25"],["d","M19.3208 167.769C23.2973 167.769 26.5208 164.545 26.5208 160.569C26.5208 156.592 23.2973 153.369 19.3208 153.369C15.3444 153.369 12.1208 156.592 12.1208 160.569C12.1208 164.545 15.3444 167.769 19.3208 167.769Z",1,"fill-color-22"],["d","M13.7656 153.188L12.4676 152.716C12.4676 152.716 15.1815 150.002 18.9572 150.238L17.8953 149.177C17.8953 149.177 20.4911 148.233 22.851 150.71C24.0915 152.013 25.5268 153.544 26.4216 155.269H27.8116L27.2314 156.429L29.2619 157.589L27.1778 157.381C27.3752 158.383 27.3073 159.418 26.9807 160.386L26.5087 161.684C26.5087 161.684 24.6208 157.908 24.6208 157.436V158.616C24.6208 158.616 23.3229 157.554 23.3229 156.846L22.615 157.672L22.261 156.374L17.8953 157.672L18.6032 156.61L15.8894 156.964L16.9514 155.666C16.9514 155.666 13.8836 157.2 13.7656 158.498C13.6476 159.796 12.1137 161.448 12.1137 161.448L11.4058 160.268C11.4058 160.268 10.3438 154.958 13.7656 153.188Z",1,"fill-color-21"],["d","M76.75 31C68.1896 31 61.25 24.0604 61.25 15.5C61.25 6.93959 68.1896 0 76.75 0C85.3104 0 92.25 6.93959 92.25 15.5C92.25 24.0604 85.3104 31 76.75 31Z",1,"fill-color-25"],["d","M77.1792 24.7687C73.2027 24.7687 69.9792 21.5452 69.9792 17.5687C69.9792 13.5923 73.2027 10.3687 77.1792 10.3687C81.1556 10.3687 84.3792 13.5923 84.3792 17.5687C84.3792 21.5452 81.1556 24.7687 77.1792 24.7687Z",1,"fill-color-22"],["d","M82.7344 10.1883L84.0324 9.71628C84.0324 9.71628 81.3185 7.00246 77.5428 7.23845L78.6047 6.17651C78.6047 6.17651 76.0089 5.23258 73.649 7.71041C72.4085 9.01295 70.9732 10.544 70.0784 12.2687H68.6884L69.2686 13.429L67.2381 14.5893L69.3222 14.3808C69.1248 15.3825 69.1927 16.4184 69.5193 17.3858L69.9913 18.6837C69.9913 18.6837 71.8792 14.9079 71.8792 14.4359V15.6159C71.8792 15.6159 73.1771 14.5539 73.1771 13.846L73.885 14.6719L74.239 13.374L78.6047 14.6719L77.8968 13.61L80.6106 13.964L79.5486 12.6661C79.5486 12.6661 82.6164 14.2 82.7344 15.4979C82.8524 16.7958 84.3863 18.4477 84.3863 18.4477L85.0942 17.2678C85.0942 17.2678 86.1562 11.9581 82.7344 10.1883Z",1,"fill-color-21"],["d","M141.365 153.936C139.147 150.189 134.759 150.014 134.759 150.014C134.759 150.014 130.483 149.467 127.74 155.175C125.183 160.495 121.655 165.632 127.172 166.877L128.168 163.776L128.786 167.108C129.571 167.165 130.359 167.178 131.146 167.149C137.055 166.958 142.681 167.204 142.5 165.084C142.259 162.266 143.499 157.542 141.365 153.936Z",1,"fill-color-21"],["d","M140.968 160.376C141.521 160.376 141.968 159.928 141.968 159.376C141.968 158.823 141.521 158.376 140.968 158.376C140.416 158.376 139.968 158.823 139.968 159.376C139.968 159.928 140.416 160.376 140.968 160.376Z",1,"fill-color-22"],["d","M129.168 160.376C129.721 160.376 130.168 159.928 130.168 159.376C130.168 158.823 129.721 158.376 129.168 158.376C128.616 158.376 128.168 158.823 128.168 159.376C128.168 159.928 128.616 160.376 129.168 160.376Z",1,"fill-color-22"],["d","M135.068 165.276C138.272 165.276 140.868 162.679 140.868 159.476C140.868 156.272 138.272 153.676 135.068 153.676C131.865 153.676 129.268 156.272 129.268 159.476C129.268 162.679 131.865 165.276 135.068 165.276Z",1,"fill-color-22"],["d","M140.384 153.575L136.049 151.304L130.062 152.233L128.824 157.704L131.907 157.585L132.768 155.576V157.552L134.191 157.498L135.017 154.298L135.533 157.704L140.591 157.601L140.384 153.575Z",1,"fill-color-21"],["d","M79.4007 199.301C83.9022 199.301 87.5514 195.652 87.5514 191.151C87.5514 186.649 83.9022 183 79.4007 183C74.8992 183 71.25 186.649 71.25 191.151C71.25 195.652 74.8992 199.301 79.4007 199.301Z",1,"fill-color-17"],["d","M82.9375 189.25H80.2188L81.2266 186.227C81.3203 185.852 81.0391 185.5 80.6875 185.5H77.3125C77.0313 185.5 76.7735 185.711 76.75 185.992L76 191.617C75.9531 191.969 76.211 192.25 76.5625 192.25H79.3281L78.25 196.82C78.1797 197.172 78.4375 197.5 78.7891 197.5C79 197.5 79.1875 197.406 79.2813 197.219L83.4063 190.094C83.6406 189.742 83.3594 189.25 82.9375 189.25Z","fill","white"],["d","M106.555 91.8125C106.789 92.0469 107.188 92.0469 107.422 91.8125L114.312 84.9219C114.547 84.6875 114.547 84.2891 114.312 84.0547L113.469 83.2109C113.234 82.9766 112.859 82.9766 112.625 83.2109L107 88.8359L104.352 86.2109C104.117 85.9766 103.742 85.9766 103.508 86.2109L102.664 87.0547C102.43 87.2891 102.43 87.6875 102.664 87.9219L106.555 91.8125Z","fill","white"],["d","M106.555 124.812C106.789 125.047 107.188 125.047 107.422 124.812L114.312 117.922C114.547 117.688 114.547 117.289 114.312 117.055L113.469 116.211C113.234 115.977 112.859 115.977 112.625 116.211L107 121.836L104.352 119.211C104.117 118.977 103.742 118.977 103.508 119.211L102.664 120.055C102.43 120.289 102.43 120.688 102.664 120.922L106.555 124.812Z","fill","white"],["id","paint0_linear","x1","108.567","y1","63.3516","x2","108.567","y2","45.778","gradientUnits","userSpaceOnUse"],["fill-rule","evenodd","clip-rule","evenodd","d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46C37.5901 46 6.25 78.4594 6.25 118.5C6.25 158.541 37.5901 191 76.25 191Z","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7",1,"fill-color-0","stroke-color-primary"],["d","M120.908 104.177H33.7393V135.425H120.908V104.177Z","fill","white"],["d","M120.908 71.7129H33.7393V102.96H120.908V71.7129Z","fill","white"],["d","M108.567 95.1801C113.069 95.1801 116.718 91.5309 116.718 87.0294C116.718 82.5279 113.069 78.8787 108.567 78.8787C104.066 78.8787 100.417 82.5279 100.417 87.0294C100.417 91.5309 104.066 95.1801 108.567 95.1801Z",1,"fill-color-primary-darker"],["d","M120.908 39.2482H33.7393V70.4955H120.908V39.2482Z","fill","white"],["d","M92.0943 46.662H40.8943V62.6739H92.0943V46.662Z",1,"fill-color-primary-darker"],["d","M76 112H41V128H76V112Z",1,"fill-color-17"],["d","M70 79H41V95H70V79Z",1,"fill-color-17"],["d","M70 47H41V63H70V47Z",1,"fill-color-17"],["d","M108.568 63.3516C113.42 63.3516 117.354 59.4176 117.354 54.5648C117.354 49.712 113.42 45.778 108.568 45.778C103.715 45.778 99.7808 49.712 99.7808 54.5648C99.7808 59.4176 103.715 63.3516 108.568 63.3516Z","fill","url(#paint0_linear)"],["d","M108.568 96.0334C113.42 96.0334 117.354 92.0994 117.354 87.2466C117.354 82.3938 113.42 78.4598 108.568 78.4598C103.715 78.4598 99.7808 82.3938 99.7808 87.2466C99.7808 92.0994 103.715 96.0334 108.568 96.0334Z",1,"fill-color-17"],["d","M108.568 129.496C113.42 129.496 117.354 125.562 117.354 120.709C117.354 115.856 113.42 111.922 108.568 111.922C103.715 111.922 99.7808 115.856 99.7808 120.709C99.7808 125.562 103.715 129.496 108.568 129.496Z",1,"fill-color-17"],["d","M106.805 91.8125C107.039 92.0469 107.438 92.0469 107.672 91.8125L114.562 84.9219C114.797 84.6875 114.797 84.2891 114.562 84.0547L113.719 83.2109C113.484 82.9766 113.109 82.9766 112.875 83.2109L107.25 88.8359L104.602 86.2109C104.367 85.9766 103.992 85.9766 103.758 86.2109L102.914 87.0547C102.68 87.2891 102.68 87.6875 102.914 87.9219L106.805 91.8125Z","fill","white"],["d","M106.805 58.8125C107.039 59.0469 107.438 59.0469 107.672 58.8125L114.562 51.9219C114.797 51.6875 114.797 51.2891 114.562 51.0547L113.719 50.2109C113.484 49.9766 113.109 49.9766 112.875 50.2109L107.25 55.8359L104.602 53.2109C104.367 52.9766 103.992 52.9766 103.758 53.2109L102.914 54.0547C102.68 54.2891 102.68 54.6875 102.914 54.9219L106.805 58.8125Z","fill","white"],["d","M11.7891 120C12.4922 120 12.8437 119.141 12.3359 118.633L7.33593 113.633C7.02343 113.32 6.51562 113.32 6.20312 113.633L1.20312 118.633C0.695303 119.141 1.04687 120 1.74999 120H11.7891Z",1,"fill-color-17"],["d","M77.1792 24.7688C73.2027 24.7688 69.9792 21.5452 69.9792 17.5688C69.9792 13.5923 73.2027 10.3688 77.1792 10.3688C81.1556 10.3688 84.3792 13.5923 84.3792 17.5688C84.3792 21.5452 81.1556 24.7688 77.1792 24.7688Z",1,"fill-color-22"],["d","M141.365 153.936C139.147 150.189 134.759 150.014 134.759 150.014C134.759 150.014 130.483 149.467 127.74 155.175C125.183 160.495 121.655 165.632 127.172 166.877L128.168 163.776L128.785 167.108C129.571 167.165 130.359 167.178 131.146 167.149C137.055 166.958 142.681 167.204 142.5 165.084C142.259 162.266 143.499 157.543 141.365 153.936Z",1,"fill-color-21"],["d","M82.9374 189.25H80.2186L81.2265 186.227C81.3202 185.852 81.039 185.5 80.6874 185.5H77.3124C77.0311 185.5 76.7733 185.711 76.7499 185.992L75.9999 191.617C75.953 191.969 76.2108 192.25 76.5624 192.25H79.328L78.2499 196.82C78.1796 197.172 78.4374 197.5 78.789 197.5C78.9999 197.5 79.1874 197.406 79.2811 197.219L83.4061 190.094C83.6405 189.742 83.3593 189.25 82.9374 189.25Z","fill","white"],["id","paint0_linear","x1","108.568","y1","63.3516","x2","108.568","y2","45.778","gradientUnits","userSpaceOnUse"]],template:function(e,a){if(1&e&&(t.YNc(0,Ts,1,0,"ng-container",0),t.YNc(1,vs,47,5,"ng-template",null,1,t.W1O),t.YNc(3,Zs,96,5,"ng-template",null,2,t.W1O),t.YNc(5,Ss,68,5,"ng-template",null,3,t.W1O),t.YNc(7,As,53,5,"ng-template",null,4,t.W1O),t.YNc(9,Es,52,5,"ng-template",null,5,t.W1O)),2&e){const s=t.MAs(2),r=t.MAs(4),p=t.MAs(6),x=t.MAs(8),N=t.MAs(10);t.Q6J("ngTemplateOutlet",1===a.stepNumber?s:2===a.stepNumber?r:3===a.stepNumber?p:4===a.stepNumber?x:N)}},dependencies:[u.mk,u.tP,h.xw,h.Wh,h.yH,Z.oO,T.$j,T.n5],styles:["svg.small-svg[_ngcontent-%COMP%]{height:10%;min-height:10%;max-width:50%;margin:auto}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:50%;margin:auto}"],data:{animation:[Ls.l]}}),o})();const Is=["stepper"];function Fs(i,o){if(1&i&&t._uU(0),2&i){const n=t.oxw(2);t.Oqu(n.inputFormLabel)}}function qs(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function Ns(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount must be a positive number."),t.qZA())}function Os(i,o){if(1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.hij("Amount must be less than or equal to ",null==n.selChannel?null:n.selChannel.toLocal,".")}}function Ps(i,o){if(1&i&&(t.TgZ(0,"mat-option",50),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.Q6J("value",n),t.xp6(1),t.AsE("",n.alias," - ",n.shortChannelId,"")}}function ks(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Receive from Peer is required."),t.qZA())}function Us(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Receive from Peer not found in the list."),t.qZA())}function Rs(i,o){1&i&&t._uU(0,"Status")}function Ms(i,o){1&i&&t._UZ(0,"mat-progress-bar",51)}function Ds(i,o){if(1&i&&(t.TgZ(0,"mat-icon",52),t._uU(1),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Oqu(""!==n.rebalanceStatus.invoice?"check":"close")}}function Js(i,o){1&i&&t._UZ(0,"mat-progress-bar",51)}function Hs(i,o){if(1&i&&(t.TgZ(0,"mat-icon",52),t._uU(1),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Oqu(n.rebalanceStatus.paymentRoute?"check":"close")}}function Qs(i,o){if(1&i&&(t.TgZ(0,"span",42),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.hij(" ",n," ")}}function Ys(i,o){if(1&i&&(t.TgZ(0,"div",5),t.YNc(1,Qs,2,1,"span",53),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",n.rebalanceStatus.paymentRoute.split(","))}}function Bs(i,o){1&i&&t._UZ(0,"mat-progress-bar",51)}function Vs(i,o){if(1&i&&(t.TgZ(0,"mat-icon",52),t._uU(1),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Oqu(!n.rebalanceStatus.paymentStatus||null!=n.rebalanceStatus.paymentStatus&&n.rebalanceStatus.paymentStatus.error?"close":"check")}}function zs(i,o){1&i&&t._UZ(0,"div",5)}function Gs(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"button",54),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.onRestart())}),t._uU(1,"Start Again"),t.qZA()}}function Ws(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",5)(1,"mat-card-header",6)(2,"div",7)(3,"div",8)(4,"span",9),t._uU(5,"Channel Rebalance"),t.qZA()(),t.TgZ(6,"div",10)(7,"button",11),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.showInfo())}),t._uU(8,"?"),t.qZA(),t.TgZ(9,"button",12),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onClose())}),t._uU(10,"X"),t.qZA()()()(),t.TgZ(11,"mat-card-content",13)(12,"div",5)(13,"div",14)(14,"div",15),t._UZ(15,"fa-icon",16),t.TgZ(16,"span"),t._uU(17,"Circular Rebalance is a payment you make to *yourself* to affect a relative change in the balances of two channels. This is accomplished by sending payment out from the selected channel and receiving it back on the channel with the selected peer. Please note, you will be paying routing fee to balance the channels in this manner."),t.qZA()()(),t.TgZ(18,"div",17)(19,"p",18)(20,"strong"),t._uU(21,"Channel Peer:\xa0"),t.qZA(),t._uU(22),t.ALo(23,"titlecase"),t.qZA(),t.TgZ(24,"p",18)(25,"strong"),t._uU(26,"Channel ID:\xa0"),t.qZA(),t._uU(27),t.qZA()(),t.TgZ(28,"mat-vertical-stepper",19,20)(30,"mat-step",21)(31,"form",22),t.YNc(32,Fs,1,1,"ng-template",23),t.TgZ(33,"div",24)(34,"mat-form-field",25)(35,"mat-label"),t._uU(36,"Amount"),t.qZA(),t._UZ(37,"input",26),t.TgZ(38,"mat-hint"),t._uU(39),t.qZA(),t.TgZ(40,"span",27),t._uU(41,"Sats"),t.qZA(),t.YNc(42,qs,2,0,"mat-error",28),t.YNc(43,Ns,2,0,"mat-error",28),t.YNc(44,Os,2,1,"mat-error",28),t.qZA(),t.TgZ(45,"mat-form-field",29)(46,"mat-label"),t._uU(47,"Receive from Peer"),t.qZA(),t.TgZ(48,"input",30),t.NdJ("change",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onSelectedPeerChanged())}),t.qZA(),t.TgZ(49,"mat-autocomplete",31,32),t.NdJ("optionSelected",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onSelectedPeerChanged())}),t.YNc(51,Ps,2,3,"mat-option",33),t.ALo(52,"async"),t.qZA(),t.YNc(53,ks,2,0,"mat-error",28),t.YNc(54,Us,2,0,"mat-error",28),t.qZA()(),t.TgZ(55,"div",34)(56,"button",35),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onRebalance())}),t._uU(57,"Rebalance"),t.qZA()()()(),t.TgZ(58,"mat-step",36)(59,"form",22),t.YNc(60,Rs,1,0,"ng-template",23),t.TgZ(61,"div",37),t.YNc(62,Ms,1,0,"mat-progress-bar",38),t.TgZ(63,"mat-expansion-panel",39)(64,"mat-expansion-panel-header")(65,"mat-panel-title")(66,"span",40),t._uU(67),t.YNc(68,Ds,2,1,"mat-icon",41),t.qZA()()(),t.TgZ(69,"div",5)(70,"span",42),t._uU(71),t.qZA()()(),t.YNc(72,Js,1,0,"mat-progress-bar",38),t.TgZ(73,"mat-expansion-panel",39)(74,"mat-expansion-panel-header")(75,"mat-panel-title")(76,"span",40),t._uU(77),t.YNc(78,Hs,2,1,"mat-icon",41),t.qZA()()(),t.YNc(79,Ys,2,1,"div",0),t.qZA(),t.YNc(80,Bs,1,0,"mat-progress-bar",38),t.TgZ(81,"mat-expansion-panel",43)(82,"mat-expansion-panel-header")(83,"mat-panel-title")(84,"span",40),t._uU(85),t.YNc(86,Vs,2,1,"mat-icon",41),t.qZA()()(),t.YNc(87,zs,1,0,"div",44),t.qZA()(),t.TgZ(88,"h4",45),t._uU(89),t.qZA(),t.TgZ(90,"div",46),t.YNc(91,Gs,2,0,"button",47),t.qZA()()()(),t.TgZ(92,"div",48)(93,"button",49),t._uU(94,"Close"),t.qZA()()()()()}if(2&i){const n=t.MAs(50),e=t.oxw(),a=t.MAs(2);t.Q6J("@opacityAnimation",void 0),t.xp6(15),t.Q6J("icon",e.faInfoCircle),t.xp6(7),t.Oqu(t.lcZ(23,38,e.selChannel.alias)),t.xp6(5),t.Oqu(e.selChannel.shortChannelId),t.xp6(1),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",e.inputFormGroup)("editable",e.flgEditable),t.xp6(1),t.Q6J("formGroup",e.inputFormGroup),t.xp6(6),t.Q6J("step",100),t.xp6(2),t.AsE("(Local Bal: ",null==e.selChannel?null:e.selChannel.toLocal,", Remaining: ",(null==e.selChannel?null:e.selChannel.toLocal)-(e.inputFormGroup.controls.rebalanceAmount.value?e.inputFormGroup.controls.rebalanceAmount.value:0),")"),t.xp6(3),t.Q6J("ngIf",null==e.inputFormGroup.controls.rebalanceAmount.errors?null:e.inputFormGroup.controls.rebalanceAmount.errors.required),t.xp6(1),t.Q6J("ngIf",null==e.inputFormGroup.controls.rebalanceAmount.errors?null:e.inputFormGroup.controls.rebalanceAmount.errors.min),t.xp6(1),t.Q6J("ngIf",null==e.inputFormGroup.controls.rebalanceAmount.errors?null:e.inputFormGroup.controls.rebalanceAmount.errors.max),t.xp6(4),t.Q6J("matAutocomplete",n),t.xp6(1),t.Q6J("displayWith",e.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(52,40,e.filteredActiveChannels)),t.xp6(2),t.Q6J("ngIf",null==e.inputFormGroup.controls.selRebalancePeer.errors?null:e.inputFormGroup.controls.selRebalancePeer.errors.required),t.xp6(1),t.Q6J("ngIf",null==e.inputFormGroup.controls.selRebalancePeer.errors?null:e.inputFormGroup.controls.selRebalancePeer.errors.notfound),t.xp6(4),t.Q6J("stepControl",e.statusFormGroup),t.xp6(1),t.Q6J("formGroup",e.statusFormGroup),t.xp6(3),t.Q6J("ngIf",""===e.rebalanceStatus.invoice),t.xp6(5),t.Oqu(""===e.rebalanceStatus.invoice?"Searching invoice...":e.rebalanceStatus.flgReusingInvoice?"Invoice re-used":"Invoice generated"),t.xp6(1),t.Q6J("ngIf",""!==e.rebalanceStatus.invoice),t.xp6(3),t.Oqu(e.rebalanceStatus.invoice),t.xp6(1),t.Q6J("ngIf",!(null!=e.rebalanceStatus.paymentStatus&&e.rebalanceStatus.paymentStatus.error||e.rebalanceStatus.paymentRoute||"pending"===(null==e.rebalanceStatus.paymentStatus?null:e.rebalanceStatus.paymentStatus.type))),t.xp6(5),t.Oqu(null!=e.rebalanceStatus.paymentStatus&&e.rebalanceStatus.paymentStatus.error?"Route failed":e.rebalanceStatus.paymentRoute?"Route used":"Searching route..."),t.xp6(1),t.Q6J("ngIf",e.rebalanceStatus.paymentStatus),t.xp6(1),t.Q6J("ngIf",""!==e.rebalanceStatus.paymentRoute),t.xp6(1),t.Q6J("ngIf",!e.rebalanceStatus.paymentStatus),t.xp6(1),t.Q6J("expanded",!!e.rebalanceStatus.paymentStatus),t.xp6(4),t.Oqu(e.rebalanceStatus.paymentStatus&&"pending"!==(null==e.rebalanceStatus.paymentStatus?null:e.rebalanceStatus.paymentStatus.type)?null!=e.rebalanceStatus.paymentStatus&&e.rebalanceStatus.paymentStatus.error?"Payment failed":"sent"===(null==e.rebalanceStatus.paymentStatus?null:e.rebalanceStatus.paymentStatus.type)?"Payment successful":"":"Payment status pending..."),t.xp6(1),t.Q6J("ngIf",e.rebalanceStatus.paymentStatus&&"pending"!==(null==e.rebalanceStatus.paymentStatus?null:e.rebalanceStatus.paymentStatus.type)),t.xp6(1),t.Q6J("ngIf",!e.rebalanceStatus.paymentStatus)("ngIfElse",a),t.xp6(2),t.Oqu(e.rebalanceStatus.paymentStatus?e.rebalanceStatus.paymentStatus&&null!=e.rebalanceStatus.paymentStatus&&e.rebalanceStatus.paymentStatus.error?"Rebalance Failed.":"Rebalance Successful.":""),t.xp6(2),t.Q6J("ngIf",e.rebalanceStatus.paymentStatus&&e.rebalanceStatus.paymentStatus.error),t.xp6(2),t.Q6J("mat-dialog-close",!1)}}function Ks(i,o){1&i&&t.GkF(0)}function Xs(i,o){if(1&i&&t.YNc(0,Ks,1,0,"ng-container",55),2&i){const n=t.oxw(),e=t.MAs(4),a=t.MAs(6);t.Q6J("ngTemplateOutlet",n.rebalanceStatus.paymentStatus.error?e:a)}}function $s(i,o){if(1&i&&(t.TgZ(0,"div",5)(1,"span",42),t._uU(2),t.qZA()()),2&i){const n=t.oxw();t.xp6(2),t.hij("Error: ",n.rebalanceStatus.paymentStatus.error,"")}}function js(i,o){if(1&i&&(t.TgZ(0,"div",5)(1,"div",56)(2,"div",57)(3,"h4",58),t._uU(4,"Total Fees (Sats)"),t.qZA(),t.TgZ(5,"span",42),t._uU(6),t.qZA()(),t.TgZ(7,"div",57)(8,"h4",58),t._uU(9,"Number of Hops"),t.qZA(),t.TgZ(10,"span",42),t._uU(11),t.qZA()()(),t._UZ(12,"mat-divider",59),t.TgZ(13,"div",56)(14,"div",60)(15,"h4",58),t._uU(16,"Payment Hash"),t.qZA(),t.TgZ(17,"span",42),t._uU(18),t.qZA()()(),t._UZ(19,"mat-divider",59),t.TgZ(20,"div",56)(21,"div",60)(22,"h4",58),t._uU(23,"Payment ID"),t.qZA(),t.TgZ(24,"span",42),t._uU(25),t.qZA()()(),t._UZ(26,"mat-divider",59),t.TgZ(27,"div",56)(28,"div",60)(29,"h4",58),t._uU(30,"Parent ID"),t.qZA(),t.TgZ(31,"span",42),t._uU(32),t.qZA()()()()),2&i){const n=t.oxw();let e;t.xp6(6),t.Oqu(n.rebalanceStatus.paymentStatus.feesPaid?n.rebalanceStatus.paymentStatus.feesPaid/1e3:0),t.xp6(5),t.Oqu(n.rebalanceStatus.paymentRoute&&""!==n.rebalanceStatus.paymentRoute?null==(e=n.rebalanceStatus.paymentRoute.split(","))?null:e.length:0),t.xp6(7),t.Oqu(n.rebalanceStatus.paymentHash),t.xp6(7),t.Oqu(n.rebalanceStatus.paymentDetails.paymentId),t.xp6(7),t.Oqu(n.rebalanceStatus.paymentDetails.parentId)}}const tl=function(i,o){return{"dot-primary":i,"dot-primary-lighter":o}};function el(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"span",77),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw(2);return t.KtG(r.onStepChanged(s))}),t._UZ(1,"p",78),t.qZA()}if(2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngClass",t.WLB(1,tl,e.stepNumber===n,e.stepNumber!==n))}}function nl(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"button",79),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.onStepChanged(4))}),t._uU(1,"Back"),t.qZA()}}function il(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"button",80),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return a.flgShowInfo=!1,t.KtG(a.stepNumber=1)}),t._uU(1,"Close"),t.qZA()}}function al(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"button",81),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return a.flgShowInfo=!1,t.KtG(a.stepNumber=1)}),t._uU(1,"Close"),t.qZA()}}function ol(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"button",82),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.onStepChanged(a.stepNumber-1))}),t._uU(1,"Back"),t.qZA()}}function sl(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"button",83),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.onStepChanged(a.stepNumber+1))}),t._uU(1,"Next"),t.qZA()}}const ll=function(){return[1,2,3,4,5]};function rl(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",61)(1,"div",62)(2,"mat-card-header",63)(3,"div",64),t._UZ(4,"span",9),t.qZA(),t.TgZ(5,"div",65)(6,"button",66),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return a.flgShowInfo=!1,t.KtG(a.stepNumber=1)}),t._uU(7,"X"),t.qZA()()(),t.TgZ(8,"mat-card-content",67)(9,"rtl-ecl-channel-rebalance-infographics",68),t.NdJ("stepNumberChange",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.stepNumber=a)}),t.qZA()(),t.TgZ(10,"div",69),t.YNc(11,el,2,4,"span",70),t.qZA(),t.TgZ(12,"div",71),t.YNc(13,nl,2,0,"button",72),t.YNc(14,il,2,0,"button",73),t.YNc(15,al,2,0,"button",74),t.YNc(16,ol,2,0,"button",75),t.YNc(17,sl,2,0,"button",76),t.qZA()()()}if(2&i){const n=t.oxw();t.Q6J("@opacityAnimation",void 0),t.xp6(9),t.Q6J("animationDirection",n.animationDirection)("stepNumber",n.stepNumber),t.xp6(2),t.Q6J("ngForOf",t.DdM(9,ll)),t.xp6(2),t.Q6J("ngIf",5===n.stepNumber),t.xp6(1),t.Q6J("ngIf",5===n.stepNumber),t.xp6(1),t.Q6J("ngIf",n.stepNumber<5),t.xp6(1),t.Q6J("ngIf",n.stepNumber>1&&n.stepNumber<5),t.xp6(1),t.Q6J("ngIf",n.stepNumber<5)}}let cl=(()=>{var i;class o{constructor(e,a,s,r,p,x,N){this.dialogRef=e,this.data=a,this.logger=s,this.dataService=r,this.formBuilder=p,this.store=x,this.decimalPipe=N,this.faInfoCircle=L.sqG,this.information={},this.selChannel={},this.activeChannels=[],this.rebalanceStatus={flgReusingInvoice:!1,invoice:"",paymentRoute:"",paymentHash:"",paymentDetails:null,paymentStatus:null},this.inputFormLabel="Amount to rebalance",this.flgEditable=!0,this.flgShowInfo=!1,this.stepNumber=1,this.animationDirection="forward",this.unSubs=[new m.x,new m.x,new m.x,new m.x]}ngOnInit(){let e="",a="";this.information=this.data.message?.information||{},this.selChannel=this.data.message?.selChannel||{},this.activeChannels=this.data.message?.channels?.filter(s=>s.channelId!==this.selChannel.channelId&&s.toRemote&&s.toRemote>0)||[],this.activeChannels=this.activeChannels.sort((s,r)=>(e=s.alias?s.alias.toLowerCase():s.shortChannelId?s.shortChannelId.toLowerCase():"",a=r.alias?r.alias.toLowerCase():s.shortChannelId?s.shortChannelId.toLowerCase():"",ea?1:0)),this.inputFormGroup=this.formBuilder.group({rebalanceAmount:["",[d.kI.required,d.kI.min(1),d.kI.max(this.selChannel.toLocal||0)]],selRebalancePeer:[null,d.kI.required]}),this.statusFormGroup=this.formBuilder.group({}),this.inputFormGroup.get("rebalanceAmount")?.valueChanges.pipe((0,_.R)(this.unSubs[0]),(0,gt.O)(0)).subscribe(s=>{this.inputFormGroup.controls.selRebalancePeer.setValue(""),this.inputFormGroup.controls.selRebalancePeer.setErrors(null),this.filteredActiveChannels=(0,Ct.of)(s?this.filterActiveChannels():this.activeChannels.slice())}),this.inputFormGroup.get("selRebalancePeer")?.valueChanges.pipe((0,_.R)(this.unSubs[1]),(0,gt.O)("")).subscribe(s=>{"string"==typeof s&&(this.filteredActiveChannels=(0,Ct.of)(this.filterActiveChannels()))})}stepSelectionChanged(e){switch(e.selectedIndex){case 0:default:this.inputFormLabel="Amount to rebalance";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.selRebalancePeer.value.alias?"Rebalancing Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.rebalanceAmount.value?this.inputFormGroup.controls.rebalanceAmount.value:0)+" Sats | Peer: "+(this.inputFormGroup.controls.selRebalancePeer.value.alias?this.inputFormGroup.controls.selRebalancePeer.value.alias:this.inputFormGroup.controls.selRebalancePeer.value.nodeId.substring(0,15)+"..."):"Amount to rebalance"}}onRebalance(){if(!this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.rebalanceAmount.value<=0||this.selChannel.toLocal&&this.inputFormGroup.controls.rebalanceAmount.value>+this.selChannel.toLocal||!this.inputFormGroup.controls.selRebalancePeer.value.nodeId)return this.inputFormGroup.controls.selRebalancePeer.value.nodeId||this.inputFormGroup.controls.selRebalancePeer.setErrors({required:!0}),!0;this.stepper.next(),this.flgEditable=!1,this.rebalanceStatus={flgReusingInvoice:!1,invoice:"",paymentRoute:"",paymentHash:"",paymentDetails:null,paymentStatus:null},this.dataService.circularRebalance(1e3*this.inputFormGroup.controls.rebalanceAmount.value,this.selChannel.shortChannelId,this.selChannel.nodeId,this.inputFormGroup.controls.selRebalancePeer.value.shortChannelId,this.inputFormGroup.controls.selRebalancePeer.value.nodeId,[this.information.nodeId||""]).pipe((0,_.R)(this.unSubs[2])).subscribe({next:e=>{this.logger.info(e),this.rebalanceStatus=e,this.flgEditable=!0,this.store.dispatch((0,k.WM)()),this.store.dispatch((0,k.UR)({payload:{fetchPayments:!0}}))},error:e=>{this.logger.error(e),this.rebalanceStatus=e,this.flgEditable=!0}})}filterActiveChannels(){return this.activeChannels?.filter(e=>e.toRemote&&e.toRemote>=this.inputFormGroup.controls.rebalanceAmount.value&&e.channelId!==this.selChannel.channelId&&(0===e.alias?.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():"")||0===e.channelId?.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():"")))}onSelectedPeerChanged(){if(this.inputFormGroup.controls.selRebalancePeer.value&&this.inputFormGroup.controls.selRebalancePeer.value.length>0&&"string"==typeof this.inputFormGroup.controls.selRebalancePeer.value){const e=this.activeChannels?.filter(a=>a.alias?.length===this.inputFormGroup.controls.selRebalancePeer.value.length&&0===a.alias?.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():""));e&&e.length>0?(this.inputFormGroup.controls.selRebalancePeer.setValue(e[0]),this.inputFormGroup.controls.selRebalancePeer.setErrors(null)):this.inputFormGroup.controls.selRebalancePeer.setErrors({notfound:!0})}}displayFn(e){return e&&e.alias?e.alias:e&&e.shortChannelId?e.shortChannelId:""}showInfo(){this.flgShowInfo=!0}onStepChanged(e){this.animationDirection=e{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(D.so),t.Y36(D.WI),t.Y36(R.mQ),t.Y36(pt.D),t.Y36(d.qu),t.Y36(E.yh),t.Y36(u.JJ))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-channel-rebalance"]],viewQuery:function(e,a){if(1&e&&t.Gf(Is,5),2&e){let s;t.iGM(s=t.CRH())&&(a.stepper=s.first)}},decls:8,vars:2,consts:[["fxLayout","column",4,"ngIf"],["paymentStatusBlock",""],["paymentFailedBlock",""],["paymentSuccessfulBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column"],[1,"modal-info-header"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxLayoutAlign","start center"],[1,"page-title"],["fxLayoutAlign","end center"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","46"],[3,"linear"],["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"],["fxLayout","column","fxFlex","48"],["autoFocus","","matInput","","type","number","tabindex","1","formControlName","rebalanceAmount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["fxLayout","column","fxFlex","48","fxLayoutAlign","start end"],["type","text","aria-label","Receive from Peer","matInput","","formControlName","selRebalancePeer","tabindex","2","required","",3,"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","8","type","submit",3,"click"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxFlex","100",1,"flat-expansion-panel","mb-2"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[1,"foreground-secondary-text"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayout","column",4,"ngIf","ngIfElse"],["fxLayoutAlign","start",1,"font-bold-500","mt-1"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-1"],["mat-button","","color","primary","tabindex","11","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],[3,"value"],["fxFlex","100","color","primary","mode","indeterminate"],[1,"ml-1","icon-small"],["class","foreground-secondary-text",4,"ngFor","ngForOf"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[4,"ngTemplateOutlet"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],["fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["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,"animationDirection","stepNumber","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(e,a){1&e&&(t.YNc(0,Ws,95,42,"div",0),t.YNc(1,Xs,1,1,"ng-template",null,1,t.W1O),t.YNc(3,$s,3,1,"ng-template",null,2,t.W1O),t.YNc(5,js,33,5,"ng-template",null,3,t.W1O),t.YNc(7,rl,18,10,"div",4)),2&e&&(t.Q6J("ngIf",!a.flgShowInfo),t.xp6(7),t.Q6J("ngIf",a.flgShowInfo))},dependencies:[u.mk,u.sg,u.O5,u.tP,d._Y,d.Fj,d.wV,d.JJ,d.JL,d.Q7,d.sg,d.u,I.BN,h.xw,h.Wh,h.yH,Z.oO,D.ZT,F.lW,T.dn,T.dk,B.ib,B.yz,B.yK,rt.Hw,Q.Nt,C.KE,C.hX,C.bx,C.TO,C.R9,X.d,H.pW,V.ey,tt.C0,tt.VY,tt.Vq,ot.XC,ot.ZL,$.h,ws,u.Ov,u.rS],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:30rem;min-height:30rem;overflow-x:hidden}"],data:{animation:[xt._]}}),o})();function ul(i,o){if(1&i&&(t.TgZ(0,"mat-option",36),t._uU(1),t.qZA()),2&i){const n=o.$implicit,e=t.oxw();t.Q6J("value",n),t.xp6(1),t.Oqu(e.getLabel(n))}}function pl(i,o){1&i&&t._UZ(0,"mat-progress-bar",37)}function ml(i,o){1&i&&t._UZ(0,"th",38)}function dl(i,o){if(1&i&&(t.TgZ(0,"span",42),t._UZ(1,"fa-icon",43),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Q6J("icon",n.faEyeSlash)}}function hl(i,o){if(1&i&&(t.TgZ(0,"span",44),t._UZ(1,"fa-icon",43),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Q6J("icon",n.faEye)}}function _l(i,o){if(1&i&&(t.TgZ(0,"td",39),t.YNc(1,dl,2,1,"span",40),t.YNc(2,hl,2,1,"span",41),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Q6J("ngIf",!(null!=n&&n.announceChannel)),t.xp6(1),t.Q6J("ngIf",null==n?null:n.announceChannel)}}function gl(i,o){1&i&&(t.TgZ(0,"th",45),t._uU(1,"Short Channel ID"),t.qZA())}function fl(i,o){if(1&i&&(t.TgZ(0,"td",39),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(null==n?null:n.shortChannelId)}}function Cl(i,o){1&i&&(t.TgZ(0,"th",45),t._uU(1,"Channel ID"),t.qZA())}const yt=function(i){return{width:i}};function xl(i,o){if(1&i&&(t.TgZ(0,"td",39)(1,"div",46)(2,"span",47),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,yt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.channelId)}}function yl(i,o){1&i&&(t.TgZ(0,"th",45),t._uU(1,"Alias"),t.qZA())}function bl(i,o){if(1&i&&(t.TgZ(0,"td",39)(1,"div",46)(2,"span",47),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,yt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.alias)}}function Ll(i,o){1&i&&(t.TgZ(0,"th",45),t._uU(1,"Node ID"),t.qZA())}function Tl(i,o){if(1&i&&(t.TgZ(0,"td",39)(1,"div",46)(2,"span",47),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,yt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.nodeId)}}function vl(i,o){1&i&&(t.TgZ(0,"th",45),t._uU(1,"Initiator"),t.qZA())}function Zl(i,o){if(1&i&&(t.TgZ(0,"td",39),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(null!=n&&n.isInitiator?"Yes":"No")}}function Sl(i,o){1&i&&(t.TgZ(0,"th",48),t._uU(1,"Base Fee (mSats)"),t.qZA())}function Al(i,o){if(1&i&&(t.TgZ(0,"td",39)(1,"span",49),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==n?null:n.feeBaseMsat,"1.0-0")," ")}}function El(i,o){1&i&&(t.TgZ(0,"th",48),t._uU(1,"Fee Rate (mili mSats)"),t.qZA())}function wl(i,o){if(1&i&&(t.TgZ(0,"td",39)(1,"span",49),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==n?null:n.feeProportionalMillionths,"1.0-0")," ")}}function Il(i,o){1&i&&(t.TgZ(0,"th",48),t._uU(1,"Local Balance (Sats)"),t.qZA())}function Fl(i,o){if(1&i&&(t.TgZ(0,"td",39)(1,"span",49),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==n?null:n.toLocal,"1.0-0")," ")}}function ql(i,o){1&i&&(t.TgZ(0,"th",48),t._uU(1,"Remote Balance (Sats)"),t.qZA())}function Nl(i,o){if(1&i&&(t.TgZ(0,"td",39)(1,"span",49),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==n?null:n.toRemote,"1.0-0")," ")}}function Ol(i,o){1&i&&(t.TgZ(0,"th",45),t._uU(1,"Balance Score"),t.qZA())}function Pl(i,o){if(1&i&&(t.TgZ(0,"td",39)(1,"div",50)(2,"mat-hint",51),t._uU(3),t.ALo(4,"number"),t.qZA()(),t._UZ(5,"mat-progress-bar",52),t.qZA()),2&i){const n=o.$implicit;t.xp6(3),t.Oqu(t.lcZ(4,2,(null==n?null:n.balancedness)||0)),t.xp6(2),t.s9C("value",null!=n&&n.toLocal&&(null==n?null:n.toLocal)>0?+(null==n?null:n.toLocal)/(+(null==n?null:n.toLocal)+ +(null==n?null:n.toRemote))*100:0)}}function kl(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"th",53)(1,"div",54)(2,"mat-select",55),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",56),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onChannelUpdate("all"))}),t._uU(5,"Update Fee Policy"),t.qZA(),t.TgZ(6,"mat-option",56),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onDownloadCSV())}),t._uU(7,"Download CSV"),t.qZA()()()()}}function Ul(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"td",57)(1,"div",54)(2,"mat-select",58),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",56),t.NdJ("click",function(a){const r=t.CHM(n).$implicit,p=t.oxw();return t.KtG(p.onChannelClick(r,a))}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",56),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw();return t.KtG(r.onChannelUpdate(s))}),t._uU(7,"Update Fee Policy"),t.qZA(),t.TgZ(8,"mat-option",56),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw();return t.KtG(r.onCircularRebalance(s))}),t._uU(9,"Circular Rebalance"),t.qZA(),t.TgZ(10,"mat-option",56),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw();return t.KtG(r.onChannelClose(s,!1))}),t._uU(11,"Close Channel"),t.qZA(),t.TgZ(12,"mat-option",56),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw();return t.KtG(r.onChannelClose(s,!0))}),t._uU(13,"Force Close"),t.qZA()()()()}}function Rl(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"No peers connected. Add a peer in order to open a channel."),t.qZA())}function Ml(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"No channel available."),t.qZA())}function Dl(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"Getting channels..."),t.qZA())}function Jl(i,o){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Oqu(n.errorMessage)}}function Hl(i,o){if(1&i&&(t.TgZ(0,"td",59),t.YNc(1,Rl,2,0,"p",60),t.YNc(2,Ml,2,0,"p",60),t.YNc(3,Dl,2,0,"p",60),t.YNc(4,Jl,2,1,"p",60),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Q6J("ngIf",n.numPeers<1&&(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",n.numPeers>0&&(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}const Ql=function(i){return{"display-none":i}};function Yl(i,o){if(1&i&&t._UZ(0,"tr",61),2&i){const n=t.oxw();t.Q6J("ngClass",t.VKq(1,Ql,n.numPeers>0&&(null==n.channels?null:n.channels.data)&&(null==n.channels||null==n.channels.data?null:n.channels.data.length)>0))}}function Bl(i,o){1&i&&t._UZ(0,"tr",62)}function Vl(i,o){1&i&&t._UZ(0,"tr",63)}const zl=function(){return["all"]},Gl=function(i){return{"error-border":i}},Wl=function(){return["no_peer"]};let Kl=(()=>{var i;class o{constructor(e,a,s,r,p,x){this.logger=e,this.store=a,this.rtlEffects=s,this.commonService=r,this.router=p,this.camelCaseWithSpaces=x,this.faEye=L.Mdf,this.faEyeSlash=L.Aq,this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"open_channels",recordsPerPage:l.IV,sortBy:"alias",sortOrder:l.Pi.DESCENDING},this.totalBalance=0,this.displayedColumns=[],this.channels=new c.by([]),this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=l.vn,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],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){window.history.state&&window.history.state.filterColumn&&(this.selFilterBy=window.history.state.filterColumn||"all",this.selFilter=window.history.state.filterValue||""),this.store.select(f.nF).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=e.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||l.c3.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("announceChannel"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(f.Xz).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.activeChannels=e.activeChannels,this.activeChannels.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadChannelsTable(),this.logger.info(e)}),this.store.select(f.yD).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.information=e}),this.store.select(f.Bo).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.numPeers=e.peers&&e.peers.length?e.peers.length:0}),this.store.select(f.kY).pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{this.totalBalance=e.onchainBalance.total||0})}ngAfterViewInit(){this.activeChannels.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadChannelsTable()}onCircularRebalance(e){this.store.dispatch((0,S.qR)({payload:{data:{message:{channels:this.activeChannels,selChannel:e,information:this.information},component:cl}}}))}onChannelUpdate(e){"all"!==e&&e?.state&&"NORMAL"!==e?.state||(this.store.dispatch((0,S.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update",message:[],titleMessage:"string"==typeof e&&"all"===e?"Update fee policy for all channels":"Update fee policy for Channel: "+(e?.alias||e?.shortChannelId?e?.alias&&e?.shortChannelId?e?.alias+" ("+e?.shortChannelId+")":e?.alias?e?.alias:e?.shortChannelId:e?.channelId),flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSats)",inputType:l.Gi.NUMBER,inputValue:e&&typeof e?.feeBaseMsat<"u"?e?.feeBaseMsat:1e3,step:100,width:48},{placeholder:"Fee Rate (mili mSats)",inputType:l.Gi.NUMBER,inputValue:e&&typeof e?.feeProportionalMillionths<"u"?e?.feeProportionalMillionths:100,min:1,width:48,hintFunction:this.percentHintFunction}]}}})),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[5])).subscribe(r=>{if(r){const p=r[0].inputValue,x=r[1].inputValue;let N=null;if(this.commonService.isVersionCompatible(this.information.version,"0.6.2")){let y="";"all"===e?(this.activeChannels.forEach(O=>{y=y+","+O.nodeId}),y=y.substring(1),N={baseFeeMsat:p,feeRate:x,nodeIds:y}):N={baseFeeMsat:p,feeRate:x,nodeId:e?.nodeId}}else{let y="";"all"===e?(this.activeChannels.forEach(O=>{y=y+","+O.channelId}),y=y.substring(1),N={baseFeeMsat:p,feeRate:x,channelIds:y}):N={baseFeeMsat:p,feeRate:x,channelId:e?.channelId}}this.store.dispatch((0,k.pW)({payload:N}))}}),this.applyFilter())}percentHintFunction(e){return(e/1e4).toString()+"%"}onChannelClose(e,a){this.store.dispatch((0,S.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:a?"Force Close Channel":"Close Channel",titleMessage:a?"Force closing channel: "+(e.alias||e.shortChannelId?e.alias&&e.shortChannelId?e.alias+" ("+e.shortChannelId+")":e.alias?e.alias:e.shortChannelId:e.channelId):"Closing channel: "+(e.alias||e.shortChannelId?e.alias&&e.shortChannelId?e.alias+" ("+e.shortChannelId+")":e.alias?e.alias:e.shortChannelId:e.channelId),noBtnText:"Cancel",yesBtnText:a?"Force Close":"Close Channel"}}})),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[6])).subscribe(x=>{x&&this.store.dispatch((0,k.BL)({payload:{channelId:e.channelId,force:a}}))})}onChannelClick(e,a){this.store.dispatch((0,S.qR)({payload:{data:{channel:e,channelsType:"open",component:ft}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}getLabel(e){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(s=>s.column===e);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):"announceChannel"===e?"Private":this.commonService.titleCase(e)}setFilterPredicate(){this.channels.filterPredicate=(e,a)=>{let s="";switch(this.selFilterBy){case"all":s=JSON.stringify(e).toLowerCase();break;case"announceChannel":s=e?.announceChannel?"public":"private";break;default:s=typeof e[this.selFilterBy]>"u"?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return s.includes(a)}}loadChannelsTable(){this.channels=new c.by([...this.activeChannels]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(e,a)=>e[a]&&isNaN(e[a])?e[a].toLocaleLowerCase():e[a]?+e[a]:null,this.channels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"ActiveChannels")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(E.yh),t.Y36(it.V),t.Y36(M.v),t.Y36(b.F0),t.Y36(z.i1))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-channel-open-table"]],viewQuery:function(e,a){if(1&e&&(t.Gf(v.YE,5),t.Gf(w.NW,5)),2&e){let s;t.iGM(s=t.CRH())&&(a.sort=s.first),t.iGM(s=t.CRH())&&(a.paginator=s.first)}},features:[t._Bn([{provide:A.PG,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.ye,useValue:(0,l.pt)("Channels")}])],decls:60,vars:18,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.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["table",""],["matColumnDef","announceChannel"],["mat-header-cell","","mat-sort-header","","matTooltip","Private",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortChannelId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","channelId"],["matColumnDef","alias"],["matColumnDef","nodeId"],["matColumnDef","isInitiator"],["matColumnDef","feeBaseMsat"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","feeProportionalMillionths"],["matColumnDef","toLocal"],["matColumnDef","toRemote"],["matColumnDef","balancedness"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","5",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","matTooltip","Private"],["mat-cell",""],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","5"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,a){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"div",2),t.TgZ(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),t._uU(6,"Filter By"),t.qZA(),t.TgZ(7,"mat-select",5),t.NdJ("ngModelChange",function(r){return a.selFilterBy=r})("selectionChange",function(){return a.selFilter="",a.applyFilter()}),t.TgZ(8,"perfect-scrollbar"),t.YNc(9,ul,2,2,"mat-option",6),t.qZA()()(),t.TgZ(10,"mat-form-field",4)(11,"mat-label"),t._uU(12,"Filter"),t.qZA(),t.TgZ(13,"input",7),t.NdJ("ngModelChange",function(r){return a.selFilter=r})("input",function(){return a.applyFilter()})("keyup",function(){return a.applyFilter()}),t.qZA()()()(),t.TgZ(14,"div",8),t.YNc(15,pl,1,0,"mat-progress-bar",9),t.TgZ(16,"table",10,11),t.ynx(18,12),t.YNc(19,ml,1,0,"th",13),t.YNc(20,_l,3,2,"td",14),t.BQk(),t.ynx(21,15),t.YNc(22,gl,2,0,"th",16),t.YNc(23,fl,2,1,"td",14),t.BQk(),t.ynx(24,17),t.YNc(25,Cl,2,0,"th",16),t.YNc(26,xl,4,4,"td",14),t.BQk(),t.ynx(27,18),t.YNc(28,yl,2,0,"th",16),t.YNc(29,bl,4,4,"td",14),t.BQk(),t.ynx(30,19),t.YNc(31,Ll,2,0,"th",16),t.YNc(32,Tl,4,4,"td",14),t.BQk(),t.ynx(33,20),t.YNc(34,vl,2,0,"th",16),t.YNc(35,Zl,2,1,"td",14),t.BQk(),t.ynx(36,21),t.YNc(37,Sl,2,0,"th",22),t.YNc(38,Al,4,4,"td",14),t.BQk(),t.ynx(39,23),t.YNc(40,El,2,0,"th",22),t.YNc(41,wl,4,4,"td",14),t.BQk(),t.ynx(42,24),t.YNc(43,Il,2,0,"th",22),t.YNc(44,Fl,4,4,"td",14),t.BQk(),t.ynx(45,25),t.YNc(46,ql,2,0,"th",22),t.YNc(47,Nl,4,4,"td",14),t.BQk(),t.ynx(48,26),t.YNc(49,Ol,2,0,"th",16),t.YNc(50,Pl,6,4,"td",14),t.BQk(),t.ynx(51,27),t.YNc(52,kl,8,0,"th",28),t.YNc(53,Ul,14,0,"td",29),t.BQk(),t.ynx(54,30),t.YNc(55,Hl,5,4,"td",31),t.BQk(),t.YNc(56,Yl,1,3,"tr",32),t.YNc(57,Bl,1,0,"tr",33),t.YNc(58,Vl,1,0,"tr",34),t.qZA()(),t._UZ(59,"mat-paginator",35),t.qZA()),2&e&&(t.xp6(7),t.Q6J("ngModel",a.selFilterBy),t.xp6(2),t.Q6J("ngForOf",t.DdM(14,zl).concat(a.displayedColumns.slice(0,-1))),t.xp6(4),t.Q6J("ngModel",a.selFilter),t.xp6(2),t.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.channels)("ngClass",t.VKq(15,Gl,""!==a.errorMessage)),t.xp6(40),t.Q6J("matFooterRowDef",t.DdM(17,Wl)),t.xp6(1),t.Q6J("matHeaderRowDef",a.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",a.displayedColumns),t.xp6(1),t.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[u.mk,u.sg,u.O5,u.PC,d.Fj,d.JJ,d.On,I.BN,h.xw,h.Wh,h.yH,Z.oO,Z.Zl,Q.Nt,C.KE,C.hX,C.bx,H.pW,A.gD,A.$L,V.ey,v.YE,v.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.mD,c.Ke,c.ge,c.ev,c.yh,c.XQ,c.Gk,c.Q2,W.gM,w.NW,P.Vv,P.$V,u.JJ],styles:[".mat-column-announceChannel[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:2rem;min-width:15rem;max-width:30rem}"]}),o})();function Xl(i,o){if(1&i&&(t.TgZ(0,"mat-option",33),t._uU(1),t.qZA()),2&i){const n=o.$implicit,e=t.oxw();t.Q6J("value",n),t.xp6(1),t.Oqu(e.getLabel(n))}}function $l(i,o){1&i&&t._UZ(0,"mat-progress-bar",34)}function jl(i,o){1&i&&t._UZ(0,"th",35)}function tr(i,o){if(1&i&&(t.TgZ(0,"span",39),t._UZ(1,"fa-icon",40),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Q6J("icon",n.faEyeSlash)}}function er(i,o){if(1&i&&(t.TgZ(0,"span",41),t._UZ(1,"fa-icon",40),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Q6J("icon",n.faEye)}}function nr(i,o){if(1&i&&(t.TgZ(0,"td",36),t.YNc(1,tr,2,1,"span",37),t.YNc(2,er,2,1,"span",38),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Q6J("ngIf",!(null!=n&&n.announceChannel)),t.xp6(1),t.Q6J("ngIf",null==n?null:n.announceChannel)}}function ir(i,o){1&i&&(t.TgZ(0,"th",42),t._uU(1,"State"),t.qZA())}function ar(i,o){if(1&i&&(t.TgZ(0,"td",36),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,null==n?null:n.state))}}function or(i,o){1&i&&(t.TgZ(0,"th",42),t._uU(1,"Channel ID"),t.qZA())}const Rt=function(i){return{width:i}};function sr(i,o){if(1&i&&(t.TgZ(0,"td",36)(1,"div",43)(2,"span",44),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Rt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.channelId)}}function lr(i,o){1&i&&(t.TgZ(0,"th",42),t._uU(1,"Alias"),t.qZA())}function rr(i,o){if(1&i&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(null==n?null:n.alias)}}function cr(i,o){1&i&&(t.TgZ(0,"th",42),t._uU(1,"Node ID"),t.qZA())}function ur(i,o){if(1&i&&(t.TgZ(0,"td",36)(1,"div",43)(2,"span",44),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Rt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.nodeId)}}function pr(i,o){1&i&&(t.TgZ(0,"th",42),t._uU(1,"Initiator"),t.qZA())}function mr(i,o){if(1&i&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(null!=n&&n.isInitiator?"Yes":"No")}}function dr(i,o){1&i&&(t.TgZ(0,"th",45),t._uU(1,"Local Balance (Sats)"),t.qZA())}function hr(i,o){if(1&i&&(t.TgZ(0,"td",36)(1,"span",46),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==n?null:n.toLocal,"1.0-0")," ")}}function _r(i,o){1&i&&(t.TgZ(0,"th",45),t._uU(1,"Remote Balance (Sats)"),t.qZA())}function gr(i,o){if(1&i&&(t.TgZ(0,"td",36)(1,"span",46),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==n?null:n.toRemote,"1.0-0")," ")}}function fr(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"th",47)(1,"div",48)(2,"mat-select",49),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",50),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onDownloadCSV())}),t._uU(5,"Download CSV"),t.qZA()()()()}}function Cr(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"td",51)(1,"button",52),t.NdJ("click",function(a){const r=t.CHM(n).$implicit,p=t.oxw();return t.KtG(p.onChannelClick(r,a))}),t._uU(2,"View Info"),t.qZA()()}}function xr(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"No pending channel available."),t.qZA())}function yr(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"Getting pending channels..."),t.qZA())}function br(i,o){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Oqu(n.errorMessage)}}function Lr(i,o){if(1&i&&(t.TgZ(0,"td",53),t.YNc(1,xr,2,0,"p",54),t.YNc(2,yr,2,0,"p",54),t.YNc(3,br,2,1,"p",54),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}const Tr=function(i){return{"display-none":i}};function vr(i,o){if(1&i&&t._UZ(0,"tr",55),2&i){const n=t.oxw();t.Q6J("ngClass",t.VKq(1,Tr,(null==n.channels?null:n.channels.data)&&(null==n.channels||null==n.channels.data?null:n.channels.data.length)>0))}}function Zr(i,o){1&i&&t._UZ(0,"tr",56)}function Sr(i,o){1&i&&t._UZ(0,"tr",57)}const Ar=function(){return["all"]},Er=function(i){return{"error-border":i}},wr=function(){return["no_channel"]};let Ir=(()=>{var i;class o{constructor(e,a,s,r){this.logger=e,this.store=a,this.commonService=s,this.camelCaseWithSpaces=r,this.faEye=L.Mdf,this.faEyeSlash=L.Aq,this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"pending_channels",recordsPerPage:l.IV,sortBy:"alias",sortOrder:l.Pi.DESCENDING},this.totalBalance=0,this.displayedColumns=[],this.channels=new c.by([]),this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=l.vn,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],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(f.nF).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=e.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||l.c3.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("announceChannel"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(f.Xz).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.pendingChannels=e.pendingChannels,this.loadChannelsTable(),this.logger.info(e)}),this.store.select(f.yD).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.information=e}),this.store.select(f.Bo).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.numPeers=e.peers&&e.peers.length?e.peers.length:0}),this.store.select(f.kY).pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{this.totalBalance=e.onchainBalance.total||0})}ngAfterViewInit(){this.pendingChannels.length>0&&this.loadChannelsTable()}onChannelClick(e,a){this.store.dispatch((0,S.qR)({payload:{data:{channel:e,channelsType:"pending",component:ft}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}getLabel(e){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(s=>s.column===e);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):"announceChannel"===e?"Private":this.commonService.titleCase(e)}setFilterPredicate(){this.channels.filterPredicate=(e,a)=>{let s="";switch(this.selFilterBy){case"all":s=JSON.stringify(e).toLowerCase();break;case"announceChannel":s=e?.announceChannel?"public":"private";break;default:s=typeof e[this.selFilterBy]>"u"?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return s.includes(a)}}loadChannelsTable(){this.channels=new c.by([...this.pendingChannels]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(e,a)=>e[a]&&isNaN(e[a])?e[a].toLocaleLowerCase():e[a]?+e[a]:null,this.channels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"PendingChannels")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(E.yh),t.Y36(M.v),t.Y36(z.i1))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-channel-pending-table"]],viewQuery:function(e,a){if(1&e&&(t.Gf(v.YE,5),t.Gf(w.NW,5)),2&e){let s;t.iGM(s=t.CRH())&&(a.sort=s.first),t.iGM(s=t.CRH())&&(a.paginator=s.first)}},features:[t._Bn([{provide:A.PG,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.ye,useValue:(0,l.pt)("Channels")}])],decls:51,vars:18,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.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["table",""],["matColumnDef","announceChannel"],["mat-header-cell","","mat-sort-header","","matTooltip","Private",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","channelId"],["matColumnDef","alias"],["matColumnDef","nodeId"],["matColumnDef","isInitiator"],["matColumnDef","toLocal"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","toRemote"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","matTooltip","Private"],["mat-cell",""],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,a){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"div",2),t.TgZ(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),t._uU(6,"Filter By"),t.qZA(),t.TgZ(7,"mat-select",5),t.NdJ("ngModelChange",function(r){return a.selFilterBy=r})("selectionChange",function(){return a.selFilter="",a.applyFilter()}),t.TgZ(8,"perfect-scrollbar"),t.YNc(9,Xl,2,2,"mat-option",6),t.qZA()()(),t.TgZ(10,"mat-form-field",4)(11,"mat-label"),t._uU(12,"Filter"),t.qZA(),t.TgZ(13,"input",7),t.NdJ("ngModelChange",function(r){return a.selFilter=r})("input",function(){return a.applyFilter()})("keyup",function(){return a.applyFilter()}),t.qZA()()()(),t.TgZ(14,"div",8),t.YNc(15,$l,1,0,"mat-progress-bar",9),t.TgZ(16,"table",10,11),t.ynx(18,12),t.YNc(19,jl,1,0,"th",13),t.YNc(20,nr,3,2,"td",14),t.BQk(),t.ynx(21,15),t.YNc(22,ir,2,0,"th",16),t.YNc(23,ar,3,3,"td",14),t.BQk(),t.ynx(24,17),t.YNc(25,or,2,0,"th",16),t.YNc(26,sr,4,4,"td",14),t.BQk(),t.ynx(27,18),t.YNc(28,lr,2,0,"th",16),t.YNc(29,rr,2,1,"td",14),t.BQk(),t.ynx(30,19),t.YNc(31,cr,2,0,"th",16),t.YNc(32,ur,4,4,"td",14),t.BQk(),t.ynx(33,20),t.YNc(34,pr,2,0,"th",16),t.YNc(35,mr,2,1,"td",14),t.BQk(),t.ynx(36,21),t.YNc(37,dr,2,0,"th",22),t.YNc(38,hr,4,4,"td",14),t.BQk(),t.ynx(39,23),t.YNc(40,_r,2,0,"th",22),t.YNc(41,gr,4,4,"td",14),t.BQk(),t.ynx(42,24),t.YNc(43,fr,6,0,"th",25),t.YNc(44,Cr,3,0,"td",26),t.BQk(),t.ynx(45,27),t.YNc(46,Lr,4,3,"td",28),t.BQk(),t.YNc(47,vr,1,3,"tr",29),t.YNc(48,Zr,1,0,"tr",30),t.YNc(49,Sr,1,0,"tr",31),t.qZA()(),t._UZ(50,"mat-paginator",32),t.qZA()),2&e&&(t.xp6(7),t.Q6J("ngModel",a.selFilterBy),t.xp6(2),t.Q6J("ngForOf",t.DdM(14,Ar).concat(a.displayedColumns.slice(0,-1))),t.xp6(4),t.Q6J("ngModel",a.selFilter),t.xp6(2),t.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.channels)("ngClass",t.VKq(15,Er,""!==a.errorMessage)),t.xp6(31),t.Q6J("matFooterRowDef",t.DdM(17,wr)),t.xp6(1),t.Q6J("matHeaderRowDef",a.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",a.displayedColumns),t.xp6(1),t.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[u.mk,u.sg,u.O5,u.PC,d.Fj,d.JJ,d.On,I.BN,h.xw,h.Wh,h.yH,Z.oO,Z.Zl,F.lW,Q.Nt,C.KE,C.hX,H.pW,A.gD,A.$L,V.ey,v.YE,v.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.mD,c.Ke,c.ge,c.ev,c.yh,c.XQ,c.Gk,c.Q2,W.gM,w.NW,P.Vv,P.$V,u.JJ,u.rS],styles:[".mat-column-announceChannel[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}"]}),o})();function Fr(i,o){if(1&i&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&i){const n=o.$implicit,e=t.oxw();t.Q6J("value",n),t.xp6(1),t.Oqu(e.getLabel(n))}}function qr(i,o){1&i&&t._UZ(0,"mat-progress-bar",36)}function Nr(i,o){1&i&&t._UZ(0,"th",37)}const Mt=function(i){return{"mr-0":i}};function Or(i,o){if(1&i&&t._UZ(0,"span",41),2&i){const n=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Mt,n.screenSize===n.screenSizeEnum.XS))}}function Pr(i,o){if(1&i&&t._UZ(0,"span",42),2&i){const n=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Mt,n.screenSize===n.screenSizeEnum.XS))}}function kr(i,o){if(1&i&&(t.TgZ(0,"td",38),t.YNc(1,Or,1,3,"span",39),t.YNc(2,Pr,1,3,"span",40),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Q6J("ngIf","CONNECTED"===n.state),t.xp6(1),t.Q6J("ngIf","DISCONNECTED"===n.state)}}function Ur(i,o){1&i&&(t.TgZ(0,"th",43),t._uU(1,"Alias"),t.qZA())}const Dt=function(i){return{width:i}};function Rr(i,o){if(1&i&&(t.TgZ(0,"td",38)(1,"div",44)(2,"span",45),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Dt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.alias)}}function Mr(i,o){1&i&&(t.TgZ(0,"th",43),t._uU(1,"Node ID"),t.qZA())}function Dr(i,o){if(1&i&&(t.TgZ(0,"td",38)(1,"div",44)(2,"span",45),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Dt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.nodeId)}}function Jr(i,o){1&i&&(t.TgZ(0,"th",43),t._uU(1,"Network Address"),t.qZA())}function Hr(i,o){if(1&i&&(t.TgZ(0,"td",38),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.hij(" ",null==n?null:n.address," ")}}function Qr(i,o){1&i&&(t.TgZ(0,"th",43),t._uU(1,"Channels"),t.qZA())}function Yr(i,o){if(1&i&&(t.TgZ(0,"td",38),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(null==n?null:n.channels)}}function Br(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"th",46)(1,"div",47)(2,"mat-select",48),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",49),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onDownloadCSV())}),t._uU(5,"Download CSV"),t.qZA()()()()}}function Vr(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"mat-option",49),t.NdJ("click",function(){t.CHM(n);const a=t.oxw().$implicit,s=t.oxw();return t.KtG(s.onPeerDetach(a))}),t._uU(1,"Disconnect"),t.qZA()}}function zr(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"mat-option",49),t.NdJ("click",function(){t.CHM(n);const a=t.oxw().$implicit,s=t.oxw();return t.KtG(s.onConnectPeer(a))}),t._uU(1,"Reconnect"),t.qZA()}}function Gr(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"td",50)(1,"div",47)(2,"mat-select",48),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",49),t.NdJ("click",function(a){const r=t.CHM(n).$implicit,p=t.oxw();return t.KtG(p.onPeerClick(r,a))}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",49),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw();return t.KtG(r.onOpenChannel(s))}),t._uU(7,"Open Channel"),t.qZA(),t.YNc(8,Vr,2,0,"mat-option",51),t.YNc(9,zr,2,0,"mat-option",51),t.qZA()()()}if(2&i){const n=o.$implicit;t.xp6(8),t.Q6J("ngIf","CONNECTED"===n.state),t.xp6(1),t.Q6J("ngIf","DISCONNECTED"===n.state)}}function Wr(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"No connected peer."),t.qZA())}function Kr(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"Getting peers..."),t.qZA())}function Xr(i,o){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Oqu(n.errorMessage)}}function $r(i,o){if(1&i&&(t.TgZ(0,"td",52),t.YNc(1,Wr,2,0,"p",53),t.YNc(2,Kr,2,0,"p",53),t.YNc(3,Xr,2,1,"p",53),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=n.peers&&n.peers.data)||(null==n.peers||null==n.peers.data?null:n.peers.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.peers&&n.peers.data)||(null==n.peers||null==n.peers.data?null:n.peers.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.peers&&n.peers.data)||(null==n.peers||null==n.peers.data?null:n.peers.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}const jr=function(i){return{"display-none":i}};function t1(i,o){if(1&i&&t._UZ(0,"tr",54),2&i){const n=t.oxw();t.Q6J("ngClass",t.VKq(1,jr,(null==n.peers?null:n.peers.data)&&(null==n.peers||null==n.peers.data?null:n.peers.data.length)>0))}}function e1(i,o){1&i&&t._UZ(0,"tr",55)}function n1(i,o){1&i&&t._UZ(0,"tr",56)}const i1=function(){return["all"]},a1=function(i){return{"error-border":i}},o1=function(){return["no_peer"]};let s1=(()=>{var i;class o{constructor(e,a,s,r,p,x){this.logger=e,this.store=a,this.rtlEffects=s,this.actions=r,this.commonService=p,this.camelCaseWithSpaces=x,this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"peers",recordsPerPage:l.IV,sortBy:"alias",sortOrder:l.Pi.DESCENDING},this.faUsers=L.FVb,this.newlyAddedPeer="",this.displayedColumns=[],this.peerAddress="",this.peersData=[],this.peers=new c.by([]),this.information={},this.availableBalance=0,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,new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(f.yD).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.information=e}),this.store.select(f.nF).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=e.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||l.c3.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("state"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(f.Bo).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.peersData=e.peers,this.loadPeersTable(this.peersData),this.logger.info(e)}),this.store.select(f.kY).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.availableBalance=e.onchainBalance.total||0}),this.actions.pipe((0,_.R)(this.unSubs[4]),(0,Y.h)(e=>e.type===l.lr.SET_PEERS_ECL)).subscribe(e=>{this.peerAddress=null})}ngAfterViewInit(){this.peersData.length>0&&this.loadPeersTable(this.peersData)}onPeerClick(e,a){const s=[[{key:"nodeId",value:e.nodeId,title:"Public Key",width:100}],[{key:"address",value:e.address,title:"Address",width:50},{key:"alias",value:e.alias,title:"Alias",width:50}],[{key:"state",value:this.commonService.titleCase(e.state||""),title:"State",width:50},{key:"channels",value:e.channels,title:"Channels",width:50}]];this.store.dispatch((0,S.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Peer Information",goToFieldValue:e.nodeId,goToName:"Graph lookup",goToLink:"/ecl/graph/lookups",showQRName:"Public Key",showQRField:e.nodeId,message:s}}}))}onConnectPeer(e){this.store.dispatch((0,S.qR)({payload:{data:{message:{peer:e.nodeId?e:null,information:this.information,balance:this.availableBalance},component:Nt}}}))}onOpenChannel(e){this.store.dispatch((0,S.qR)({payload:{data:{alertTitle:"Open Channel",message:{peer:e,information:this.information,balance:this.availableBalance},newlyAdded:!1,component:Ut}}}))}onPeerDetach(e){this.store.dispatch(e&&e.channels&&e.channels>0?(0,S.qR)({payload:{data:{type:l.n_.ERROR,alertTitle:"Disconnect Not Allowed",titleMessage:"Channel active with this peer."}}}):(0,S.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(e.alias?e.alias:e.nodeId),noBtnText:"Cancel",yesBtnText:"Disconnect"}}})),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[5])).subscribe(a=>{a&&this.store.dispatch((0,k.GD)({payload:{nodeId:e.nodeId||""}}))})}applyFilter(){this.peers.filter=this.selFilter.trim().toLowerCase()}getLabel(e){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(s=>s.column===e);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):this.commonService.titleCase(e)}setFilterPredicate(){this.peers.filterPredicate=(e,a)=>{let s="";switch(this.selFilterBy){case"all":s=JSON.stringify(e).toLowerCase();break;case"state":s=e?.state?.toLowerCase()||"";break;default:s=typeof e[this.selFilterBy]>"u"?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return"state"===this.selFilterBy?0===s.indexOf(a):s.includes(a)}}loadPeersTable(e){this.peers=new c.by(e?[...e]:[]),this.peers.sort=this.sort,this.peers.sortingDataAccessor=(a,s)=>a[s]&&isNaN(a[s])?a[s].toLocaleLowerCase():a[s]?+a[s]:null,this.peers.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter()}onDownloadCSV(){this.peers.data&&this.peers.data.length>0&&this.commonService.downloadFile(this.peers.data,"Peers")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(E.yh),t.Y36(it.V),t.Y36(K.eX),t.Y36(M.v),t.Y36(z.i1))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-peers"]],viewQuery:function(e,a){if(1&e&&(t.Gf(v.YE,5),t.Gf(w.NW,5)),2&e){let s;t.iGM(s=t.CRH())&&(a.sort=s.first),t.iGM(s=t.CRH())&&(a.paginator=s.first)}},features:[t._Bn([{provide:A.PG,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.ye,useValue:(0,l.pt)("Peers")}])],decls:50,vars:19,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["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","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["table",""],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","State",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","nodeId"],["matColumnDef","address"],["matColumnDef","channels"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","State"],["mat-cell",""],["class","dot green","matTooltip","Connected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Disconnected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Connected","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Disconnected","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,a){1&e&&(t.TgZ(0,"div",0)(1,"form",1,2)(3,"button",3),t.NdJ("click",function(){return a.onConnectPeer({})}),t._uU(4,"Add Peer"),t.qZA()(),t.TgZ(5,"div",4)(6,"div",5)(7,"div",6),t._UZ(8,"fa-icon",7),t.TgZ(9,"span",8),t._uU(10,"Peers"),t.qZA()(),t.TgZ(11,"div",9)(12,"mat-form-field",10)(13,"mat-label"),t._uU(14,"Filter By"),t.qZA(),t.TgZ(15,"mat-select",11),t.NdJ("ngModelChange",function(r){return a.selFilterBy=r})("selectionChange",function(){return a.selFilter="",a.applyFilter()}),t.TgZ(16,"perfect-scrollbar"),t.YNc(17,Fr,2,2,"mat-option",12),t.qZA()()(),t.TgZ(18,"mat-form-field",10)(19,"mat-label"),t._uU(20,"Filter"),t.qZA(),t.TgZ(21,"input",13),t.NdJ("ngModelChange",function(r){return a.selFilter=r})("input",function(){return a.applyFilter()})("keyup",function(){return a.applyFilter()}),t.qZA()()()(),t.TgZ(22,"div",14),t.YNc(23,qr,1,0,"mat-progress-bar",15),t.TgZ(24,"table",16,17),t.ynx(26,18),t.YNc(27,Nr,1,0,"th",19),t.YNc(28,kr,3,2,"td",20),t.BQk(),t.ynx(29,21),t.YNc(30,Ur,2,0,"th",22),t.YNc(31,Rr,4,4,"td",20),t.BQk(),t.ynx(32,23),t.YNc(33,Mr,2,0,"th",22),t.YNc(34,Dr,4,4,"td",20),t.BQk(),t.ynx(35,24),t.YNc(36,Jr,2,0,"th",22),t.YNc(37,Hr,2,1,"td",20),t.BQk(),t.ynx(38,25),t.YNc(39,Qr,2,0,"th",22),t.YNc(40,Yr,2,1,"td",20),t.BQk(),t.ynx(41,26),t.YNc(42,Br,6,0,"th",27),t.YNc(43,Gr,10,2,"td",28),t.BQk(),t.ynx(44,29),t.YNc(45,$r,4,3,"td",30),t.BQk(),t.YNc(46,t1,1,3,"tr",31),t.YNc(47,e1,1,0,"tr",32),t.YNc(48,n1,1,0,"tr",33),t.qZA()(),t._UZ(49,"mat-paginator",34),t.qZA()()),2&e&&(t.xp6(8),t.Q6J("icon",a.faUsers),t.xp6(7),t.Q6J("ngModel",a.selFilterBy),t.xp6(2),t.Q6J("ngForOf",t.DdM(15,i1).concat(a.displayedColumns.slice(0,-1))),t.xp6(4),t.Q6J("ngModel",a.selFilter),t.xp6(2),t.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.peers)("ngClass",t.VKq(16,a1,""!==a.errorMessage)),t.xp6(22),t.Q6J("matFooterRowDef",t.DdM(18,o1)),t.xp6(1),t.Q6J("matHeaderRowDef",a.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",a.displayedColumns),t.xp6(1),t.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[u.mk,u.sg,u.O5,u.PC,d._Y,d.Fj,d.JJ,d.JL,d.On,d.F,I.BN,h.xw,h.Wh,h.yH,Z.oO,Z.Zl,F.lW,Q.Nt,C.KE,C.hX,H.pW,A.gD,A.$L,V.ey,v.YE,v.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.mD,c.Ke,c.ge,c.ev,c.yh,c.XQ,c.Gk,c.Q2,W.gM,w.NW,P.Vv,P.$V],styles:[".mat-column-state[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}"]}),o})();const l1=["queryRoutesForm"];function r1(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Destination Node ID is required."),t.qZA())}function c1(i,o){1&i&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function u1(i,o){1&i&&t._UZ(0,"mat-progress-bar",22)}function p1(i,o){1&i&&(t.TgZ(0,"th",40),t._uU(1," Alias"),t.qZA())}const Jt=function(i){return{"max-width":i}};function m1(i,o){if(1&i&&(t.TgZ(0,"td",41)(1,"span",42)(2,"span",43),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Jt,e.screenSize===e.screenSizeEnum.XS?"6rem":"30rem")),t.xp6(2),t.Oqu(null==n?null:n.alias)}}function d1(i,o){1&i&&(t.TgZ(0,"th",40),t._uU(1," ID"),t.qZA())}function h1(i,o){if(1&i&&(t.TgZ(0,"td",41)(1,"span",42)(2,"span",43),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Jt,e.screenSize===e.screenSizeEnum.XS?"6rem":"30rem")),t.xp6(2),t.Oqu(null==n?null:n.nodeId)}}function _1(i,o){1&i&&(t.TgZ(0,"th",40)(1,"div",44),t._uU(2,"Actions"),t.qZA()())}function g1(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"td",45)(1,"button",46),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw(2);return t.KtG(r.onHopClick(s))}),t._uU(2,"View Info"),t.qZA()()}}function f1(i,o){1&i&&t._UZ(0,"tr",47)}function C1(i,o){1&i&&t._UZ(0,"tr",48)}const x1=function(i){return{"overflow-auto error-border":i,"overflow-auto":!0}};function y1(i,o){if(1&i&&(t.TgZ(0,"div",23)(1,"mat-expansion-panel",24)(2,"mat-expansion-panel-header")(3,"mat-panel-title",25)(4,"span",26),t._uU(5),t.qZA(),t.TgZ(6,"span",27),t._uU(7),t.ALo(8,"number"),t.qZA()()(),t.TgZ(9,"mat-panel-description",28)(10,"div",29)(11,"table",30,31),t.ynx(13,32),t.YNc(14,p1,2,0,"th",33),t.YNc(15,m1,4,4,"td",34),t.BQk(),t.ynx(16,35),t.YNc(17,d1,2,0,"th",33),t.YNc(18,h1,4,4,"td",34),t.BQk(),t.ynx(19,36),t.YNc(20,_1,3,0,"th",33),t.YNc(21,g1,3,0,"td",37),t.BQk(),t.YNc(22,f1,1,0,"tr",38),t.YNc(23,C1,1,0,"tr",39),t.qZA()()()()()),2&i){const n=o.$implicit,e=o.index,a=t.oxw();t.xp6(5),t.hij("Route ",e+1,""),t.xp6(2),t.Oqu(t.lcZ(8,6,n.amount/1e3)),t.xp6(4),t.Q6J("dataSource",a.qrHops[e])("ngClass",t.VKq(8,x1,"error"===a.flgLoading[0])),t.xp6(11),t.Q6J("matHeaderRowDef",a.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",a.displayedColumns)}}let b1=(()=>{var i;class o{constructor(e,a,s){this.store=e,this.eclEffects=a,this.commonService=s,this.allQRoutes=[],this.nodeId="",this.amount=0,this.qrHops=[],this.displayedColumns=["alias","nodeId","actions"],this.flgLoading=[!1],this.faRoute=L.FpQ,this.faExclamationTriangle=L.eHv,this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new m.x,new m.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.qrHops[0]=new c.by([]),this.qrHops[0].data=[],this.eclEffects.setQueryRoutes.pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{e&&e.routes&&e.routes.length?(this.flgLoading[0]=!1,this.allQRoutes=e.routes,this.allQRoutes.forEach((a,s)=>{this.qrHops[s]=new c.by([...a.nodeIds])})):(this.flgLoading[0]="error",this.allQRoutes=[],this.qrHops=[])})}onQueryRoutes(){if(!this.nodeId||!this.amount)return!0;this.qrHops=[],this.flgLoading[0]=!0,this.store.dispatch((0,k.WO)({payload:{nodeId:this.nodeId,amount:1e3*this.amount}}))}resetData(){this.allQRoutes=[],this.nodeId="",this.amount=0,this.flgLoading[0]=!1,this.qrHops=[],this.form.resetForm()}onHopClick(e){this.store.dispatch((0,S.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Route Information",message:[[{key:"alias",value:e.alias,title:"Alias",width:100,type:l.Gi.STRING}],[{key:"nodeId",value:e.nodeId,title:"Node ID",width:100,type:l.Gi.STRING}]]}}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(E.yh),t.Y36(ut.o),t.Y36(M.v))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-query-routes"]],viewQuery:function(e,a){if(1&e&&t.Gf(l1,7),2&e){let s;t.iGM(s=t.CRH())&&(a.form=s.first)}},decls:32,vars:10,consts:[["fxLayout","column"],["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"],["fxLayout","column","fxFlex","69","fxLayoutAlign","start end"],["matInput","","name","nodeId","tabindex","1","required","",3,"ngModel","ngModelChange"],["destPubkey","ngModel"],[4,"ngIf"],["fxLayout","column","fxFlex","29","fxLayoutAlign","start end"],["matInput","","name","amount","tabindex","2","type","number","required","",3,"step","min","ngModel","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"],["mode","indeterminate",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxLayout","column","fxFlex","100"],["fxFlex","100",4,"ngFor","ngForOf"],["mode","indeterminate"],["fxFlex","100"],[1,"flat-expansion-panel","help-expansion","mb-2px"],["fxLayout","row","fxLayoutAlign","space-between start"],["fxFlex","50","fxLayoutAlign","start start"],["fxFlex","50","fxLayoutAlign","end end"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch",1,"table-container","mb-2",3,"perfectScrollbar"],["mat-table","",3,"dataSource","ngClass"],["table[i]",""],["matColumnDef","alias"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","nodeId"],["matColumnDef","actions"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["fxLayout.gt-xs","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(e,a){if(1&e){const s=t.EpF();t.TgZ(0,"div",0)(1,"form",1,2),t.NdJ("ngSubmit",function(){t.CHM(s);const p=t.MAs(2);return t.KtG(p.form.valid&&a.onQueryRoutes())}),t.TgZ(3,"div",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span"),t._uU(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),t.qZA()(),t.TgZ(7,"mat-form-field",5)(8,"mat-label"),t._uU(9,"Destination Node ID"),t.qZA(),t.TgZ(10,"input",6,7),t.NdJ("ngModelChange",function(p){return a.nodeId=p}),t.qZA(),t.YNc(12,r1,2,0,"mat-error",8),t.qZA(),t.TgZ(13,"mat-form-field",9)(14,"mat-label"),t._uU(15,"Amount (Sats)"),t.qZA(),t.TgZ(16,"input",10),t.NdJ("ngModelChange",function(p){return a.amount=p}),t.qZA(),t.YNc(17,c1,2,0,"mat-error",8),t.qZA(),t.TgZ(18,"div",11)(19,"button",12),t.NdJ("click",function(){return a.resetData()}),t._uU(20,"Clear"),t.qZA(),t.TgZ(21,"button",13),t._uU(22,"Query Route"),t.qZA()()(),t.TgZ(23,"div",14)(24,"div",15),t._UZ(25,"fa-icon",16),t.TgZ(26,"span",17),t._uU(27,"Transaction Route"),t.qZA()()(),t.YNc(28,u1,1,0,"mat-progress-bar",18),t.TgZ(29,"div",19)(30,"div",20),t.YNc(31,y1,24,10,"div",21),t.qZA()()()}2&e&&(t.xp6(4),t.Q6J("icon",a.faExclamationTriangle),t.xp6(6),t.Q6J("ngModel",a.nodeId),t.xp6(2),t.Q6J("ngIf",!a.nodeId),t.xp6(4),t.Q6J("step",1e3)("min",0)("ngModel",a.amount),t.xp6(1),t.Q6J("ngIf",!a.amount),t.xp6(8),t.Q6J("icon",a.faRoute),t.xp6(3),t.Q6J("ngIf",!0===a.flgLoading[0]),t.xp6(3),t.Q6J("ngForOf",a.allQRoutes))},dependencies:[u.mk,u.sg,u.O5,u.PC,d._Y,d.Fj,d.wV,d.JJ,d.JL,d.Q7,d.qQ,d.On,d.F,I.BN,h.xw,h.Wh,h.yH,Z.oO,Z.Zl,F.lW,B.ib,B.yz,B.yK,B.u4,Q.Nt,C.KE,C.hX,C.TO,H.pW,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,P.$V,j.q,u.JJ]}),o})();function L1(i,o){if(1&i&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&i){const n=o.$implicit,e=t.oxw();t.Q6J("value",n),t.xp6(1),t.Oqu(e.getLabel(n))}}function T1(i,o){1&i&&t._UZ(0,"mat-progress-bar",36)}function v1(i,o){1&i&&t._UZ(0,"th",37)}function Z1(i,o){if(1&i&&(t.TgZ(0,"span",41),t._UZ(1,"fa-icon",42),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Q6J("icon",n.faEyeSlash)}}function S1(i,o){if(1&i&&(t.TgZ(0,"span",43),t._UZ(1,"fa-icon",42),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Q6J("icon",n.faEye)}}function A1(i,o){if(1&i&&(t.TgZ(0,"td",38),t.YNc(1,Z1,2,1,"span",39),t.YNc(2,S1,2,1,"span",40),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Q6J("ngIf",!n.announceChannel),t.xp6(1),t.Q6J("ngIf",n.announceChannel)}}function E1(i,o){1&i&&(t.TgZ(0,"th",44),t._uU(1,"State"),t.qZA())}function w1(i,o){if(1&i&&(t.TgZ(0,"td",38),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,null==n?null:n.state))}}function I1(i,o){1&i&&(t.TgZ(0,"th",44),t._uU(1,"Short Channel ID"),t.qZA())}function F1(i,o){if(1&i&&(t.TgZ(0,"td",38),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(null==n?null:n.shortChannelId)}}function q1(i,o){1&i&&(t.TgZ(0,"th",44),t._uU(1,"Channel ID"),t.qZA())}const bt=function(i){return{width:i}};function N1(i,o){if(1&i&&(t.TgZ(0,"td",38)(1,"div",45)(2,"span",46),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,bt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.channelId)}}function O1(i,o){1&i&&(t.TgZ(0,"th",44),t._uU(1,"Alias"),t.qZA())}function P1(i,o){if(1&i&&(t.TgZ(0,"td",38)(1,"div",45)(2,"span",46),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,bt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(n.alias)}}function k1(i,o){1&i&&(t.TgZ(0,"th",44),t._uU(1,"Node ID"),t.qZA())}function U1(i,o){if(1&i&&(t.TgZ(0,"td",38)(1,"div",45)(2,"span",46),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,bt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.nodeId)}}function R1(i,o){1&i&&(t.TgZ(0,"th",44),t._uU(1,"Initiator"),t.qZA())}function M1(i,o){if(1&i&&(t.TgZ(0,"td",38),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(null!=n&&n.isInitiator?"Yes":"No")}}function D1(i,o){1&i&&(t.TgZ(0,"th",47),t._uU(1,"Local Balance (Sats)"),t.qZA())}function J1(i,o){if(1&i&&(t.TgZ(0,"td",38)(1,"span",48),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==n?null:n.toLocal,"1.0-0")," ")}}function H1(i,o){1&i&&(t.TgZ(0,"th",47),t._uU(1,"Remote Balance (Sats)"),t.qZA())}function Q1(i,o){if(1&i&&(t.TgZ(0,"td",38)(1,"span",48),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==n?null:n.toRemote,"1.0-0")," ")}}function Y1(i,o){1&i&&(t.TgZ(0,"th",44),t._uU(1,"Balance Score"),t.qZA())}function B1(i,o){if(1&i&&(t.TgZ(0,"td",38)(1,"div",49)(2,"mat-hint",50),t._uU(3),t.ALo(4,"number"),t.qZA()(),t._UZ(5,"mat-progress-bar",51),t.qZA()),2&i){const n=o.$implicit;t.xp6(3),t.Oqu(t.lcZ(4,2,(null==n?null:n.balancedness)||0)),t.xp6(2),t.s9C("value",n.toLocal&&n.toLocal>0?+n.toLocal/(+n.toLocal+ +n.toRemote)*100:0)}}function V1(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"th",52)(1,"div",53)(2,"mat-select",54),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",55),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onDownloadCSV())}),t._uU(5,"Download CSV"),t.qZA()()()()}}function z1(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"td",56)(1,"div",53)(2,"mat-select",57),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",55),t.NdJ("click",function(a){const r=t.CHM(n).$implicit,p=t.oxw();return t.KtG(p.onChannelClick(r,a))}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",55),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw();return t.KtG(r.onChannelClose(s,!0))}),t._uU(7,"Force Close"),t.qZA()()()()}}function G1(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"No inactive channel available."),t.qZA())}function W1(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"Getting inactive channels..."),t.qZA())}function K1(i,o){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Oqu(n.errorMessage)}}function X1(i,o){if(1&i&&(t.TgZ(0,"td",58),t.YNc(1,G1,2,0,"p",59),t.YNc(2,W1,2,0,"p",59),t.YNc(3,K1,2,1,"p",59),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}const $1=function(i){return{"display-none":i}};function j1(i,o){if(1&i&&t._UZ(0,"tr",60),2&i){const n=t.oxw();t.Q6J("ngClass",t.VKq(1,$1,(null==n.channels?null:n.channels.data)&&(null==n.channels||null==n.channels.data?null:n.channels.data.length)>0))}}function tc(i,o){1&i&&t._UZ(0,"tr",61)}function ec(i,o){1&i&&t._UZ(0,"tr",62)}const nc=function(){return["all"]},ic=function(i){return{"error-border":i}},ac=function(){return["no_channel"]};let oc=(()=>{var i;class o{constructor(e,a,s,r,p){this.logger=e,this.store=a,this.rtlEffects=s,this.commonService=r,this.camelCaseWithSpaces=p,this.faEye=L.Mdf,this.faEyeSlash=L.Aq,this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"inactive_channels",recordsPerPage:l.IV,sortBy:"alias",sortOrder:l.Pi.DESCENDING},this.totalBalance=0,this.displayedColumns=[],this.channels=new c.by([]),this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=l.vn,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],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(f.nF).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=e.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||l.c3.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("announceChannel"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(f.Xz).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.inactiveChannels=e.inactiveChannels,this.loadChannelsTable(),this.logger.info(e)}),this.store.select(f.yD).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.information=e}),this.store.select(f.Bo).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.numPeers=e.peers&&e.peers.length?e.peers.length:0}),this.store.select(f.kY).pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{this.totalBalance=e.onchainBalance.total||0})}ngAfterViewInit(){this.inactiveChannels.length>0&&this.loadChannelsTable()}onChannelClose(e,a){this.store.dispatch((0,S.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:a?"Force Close Channel":"Close Channel",titleMessage:a?"Force closing channel: "+(e.alias||e.shortChannelId?e.alias&&e.shortChannelId?e.alias+" ("+e.shortChannelId+")":e.alias?e.alias:e.shortChannelId:e.channelId):"Closing channel: "+(e.alias||e.shortChannelId?e.alias&&e.shortChannelId?e.alias+" ("+e.shortChannelId+")":e.alias?e.alias:e.shortChannelId:e.channelId),noBtnText:"Cancel",yesBtnText:a?"Force Close":"Close Channel"}}})),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[5])).subscribe(x=>{x&&this.store.dispatch((0,k.BL)({payload:{channelId:e.channelId||"",force:a}}))})}onChannelClick(e,a){this.store.dispatch((0,S.qR)({payload:{data:{channel:e,channelsType:"inactive",component:ft}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLocaleLowerCase()}getLabel(e){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(s=>s.column===e);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):"announceChannel"===e?"Private":this.commonService.titleCase(e)}setFilterPredicate(){this.channels.filterPredicate=(e,a)=>{let s="";switch(this.selFilterBy){case"all":s=JSON.stringify(e).toLowerCase();break;case"announceChannel":s=e?.announceChannel?"public":"private";break;default:s=typeof e[this.selFilterBy]>"u"?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return s.includes(a)}}loadChannelsTable(){this.channels=new c.by([...this.inactiveChannels]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(e,a)=>e[a]&&isNaN(e[a])?e[a].toLocaleLowerCase():e[a]?+e[a]:null,this.channels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"InactiveChannels")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(E.yh),t.Y36(it.V),t.Y36(M.v),t.Y36(z.i1))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-channel-inactive-table"]],viewQuery:function(e,a){if(1&e&&(t.Gf(v.YE,5),t.Gf(w.NW,5)),2&e){let s;t.iGM(s=t.CRH())&&(a.sort=s.first),t.iGM(s=t.CRH())&&(a.paginator=s.first)}},features:[t._Bn([{provide:A.PG,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.ye,useValue:(0,l.pt)("Channels")}])],decls:57,vars:18,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.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["table",""],["matColumnDef","announceChannel"],["mat-header-cell","","mat-sort-header","","matTooltip","Private",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","shortChannelId"],["matColumnDef","channelId"],["matColumnDef","alias"],["matColumnDef","nodeId"],["matColumnDef","isInitiator"],["matColumnDef","toLocal"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","toRemote"],["matColumnDef","balancedness"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","matTooltip","Private"],["mat-cell",""],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,a){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"div",2),t.TgZ(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),t._uU(6,"Filter By"),t.qZA(),t.TgZ(7,"mat-select",5),t.NdJ("ngModelChange",function(r){return a.selFilterBy=r})("selectionChange",function(){return a.selFilter="",a.applyFilter()}),t.TgZ(8,"perfect-scrollbar"),t.YNc(9,L1,2,2,"mat-option",6),t.qZA()()(),t.TgZ(10,"mat-form-field",4)(11,"mat-label"),t._uU(12,"Filter"),t.qZA(),t.TgZ(13,"input",7),t.NdJ("ngModelChange",function(r){return a.selFilter=r})("input",function(){return a.applyFilter()})("keyup",function(){return a.applyFilter()}),t.qZA()()()(),t.TgZ(14,"div",8),t.YNc(15,T1,1,0,"mat-progress-bar",9),t.TgZ(16,"table",10,11),t.ynx(18,12),t.YNc(19,v1,1,0,"th",13),t.YNc(20,A1,3,2,"td",14),t.BQk(),t.ynx(21,15),t.YNc(22,E1,2,0,"th",16),t.YNc(23,w1,3,3,"td",14),t.BQk(),t.ynx(24,17),t.YNc(25,I1,2,0,"th",16),t.YNc(26,F1,2,1,"td",14),t.BQk(),t.ynx(27,18),t.YNc(28,q1,2,0,"th",16),t.YNc(29,N1,4,4,"td",14),t.BQk(),t.ynx(30,19),t.YNc(31,O1,2,0,"th",16),t.YNc(32,P1,4,4,"td",14),t.BQk(),t.ynx(33,20),t.YNc(34,k1,2,0,"th",16),t.YNc(35,U1,4,4,"td",14),t.BQk(),t.ynx(36,21),t.YNc(37,R1,2,0,"th",16),t.YNc(38,M1,2,1,"td",14),t.BQk(),t.ynx(39,22),t.YNc(40,D1,2,0,"th",23),t.YNc(41,J1,4,4,"td",14),t.BQk(),t.ynx(42,24),t.YNc(43,H1,2,0,"th",23),t.YNc(44,Q1,4,4,"td",14),t.BQk(),t.ynx(45,25),t.YNc(46,Y1,2,0,"th",16),t.YNc(47,B1,6,4,"td",14),t.BQk(),t.ynx(48,26),t.YNc(49,V1,6,0,"th",27),t.YNc(50,z1,8,0,"td",28),t.BQk(),t.ynx(51,29),t.YNc(52,X1,4,3,"td",30),t.BQk(),t.YNc(53,j1,1,3,"tr",31),t.YNc(54,tc,1,0,"tr",32),t.YNc(55,ec,1,0,"tr",33),t.qZA()(),t._UZ(56,"mat-paginator",34),t.qZA()),2&e&&(t.xp6(7),t.Q6J("ngModel",a.selFilterBy),t.xp6(2),t.Q6J("ngForOf",t.DdM(14,nc).concat(a.displayedColumns.slice(0,-1))),t.xp6(4),t.Q6J("ngModel",a.selFilter),t.xp6(2),t.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.channels)("ngClass",t.VKq(15,ic,""!==a.errorMessage)),t.xp6(37),t.Q6J("matFooterRowDef",t.DdM(17,ac)),t.xp6(1),t.Q6J("matHeaderRowDef",a.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",a.displayedColumns),t.xp6(1),t.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[u.mk,u.sg,u.O5,u.PC,d.Fj,d.JJ,d.On,I.BN,h.xw,h.Wh,h.yH,Z.oO,Z.Zl,Q.Nt,C.KE,C.hX,C.bx,H.pW,A.gD,A.$L,V.ey,v.YE,v.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.mD,c.Ke,c.ge,c.ev,c.yh,c.XQ,c.Gk,c.Q2,W.gM,w.NW,P.Vv,P.$V,u.JJ,u.rS],styles:[".mat-column-announceChannel[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:3rem;min-width:15rem;max-width:30rem}"]}),o})();function sc(i,o){if(1&i&&(t.TgZ(0,"div",5),t._uU(1),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Oqu(n.errorMessage)}}function lc(i,o){if(1&i&&(t.TgZ(0,"mat-option",13),t._uU(1),t.qZA()),2&i){const n=o.$implicit,e=t.oxw(2);t.Q6J("value",n),t.xp6(1),t.Oqu(e.getLabel(n))}}const rc=function(){return["all"]};function cc(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",6),t._UZ(1,"div",7),t.TgZ(2,"div",8)(3,"mat-form-field",9)(4,"mat-label"),t._uU(5,"Filter By"),t.qZA(),t.TgZ(6,"mat-select",10),t.NdJ("ngModelChange",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.selFilterBy=a)})("selectionChange",function(){t.CHM(n);const a=t.oxw();return a.selFilter="",t.KtG(a.applyFilter())}),t.TgZ(7,"perfect-scrollbar"),t.YNc(8,lc,2,2,"mat-option",11),t.qZA()()(),t.TgZ(9,"mat-form-field",9)(10,"mat-label"),t._uU(11,"Filter"),t.qZA(),t.TgZ(12,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.selFilter=a)})("input",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.applyFilter())})("keyup",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.applyFilter())}),t.qZA()()()()}if(2&i){const n=t.oxw();t.xp6(6),t.Q6J("ngModel",n.selFilterBy),t.xp6(2),t.Q6J("ngForOf",t.DdM(3,rc).concat(n.displayedColumns.slice(0,-1))),t.xp6(4),t.Q6J("ngModel",n.selFilter)}}function uc(i,o){1&i&&t._UZ(0,"mat-progress-bar",42)}function pc(i,o){1&i&&t._UZ(0,"th",43)}const mc=function(i){return{"ml-0":i}};function dc(i,o){if(1&i&&(t._UZ(0,"span",46),t.ALo(1,"camelcase")),2&i){const n=t.oxw().$implicit,e=t.oxw(2);t.s9C("matTooltip",t.lcZ(1,2,null==n?null:n.type)),t.Q6J("ngClass",t.VKq(4,mc,e.screenSize===e.screenSizeEnum.XS))}}function hc(i,o){if(1&i&&(t.TgZ(0,"td",44),t.YNc(1,dc,2,6,"span",45),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Q6J("ngIf","payment-relayed"!==(null==n?null:n.type))}}function _c(i,o){1&i&&(t.TgZ(0,"th",47),t._uU(1,"Date/Time"),t.qZA())}function gc(i,o){if(1&i&&(t.TgZ(0,"td",44),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,null==n?null:n.timestamp,"dd/MMM/y HH:mm")," ")}}function fc(i,o){1&i&&(t.TgZ(0,"th",47),t._uU(1,"In Channel ID"),t.qZA())}const nt=function(i){return{width:i}};function Cc(i,o){if(1&i&&(t.TgZ(0,"td",44)(1,"div",48)(2,"span",49),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,nt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.fromChannelId)}}function xc(i,o){1&i&&(t.TgZ(0,"th",47),t._uU(1,"In Channel Short ID"),t.qZA())}function yc(i,o){if(1&i&&(t.TgZ(0,"td",44),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(null==n?null:n.fromShortChannelId)}}function bc(i,o){1&i&&(t.TgZ(0,"th",47),t._uU(1,"In Channel"),t.qZA())}function Lc(i,o){if(1&i&&(t.TgZ(0,"td",44)(1,"div",48)(2,"span",49),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,nt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.fromChannelAlias)}}function Tc(i,o){1&i&&(t.TgZ(0,"th",47),t._uU(1,"Out Channel ID"),t.qZA())}function vc(i,o){if(1&i&&(t.TgZ(0,"td",44)(1,"div",48)(2,"span",49),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,nt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.toChannelId)}}function Zc(i,o){1&i&&(t.TgZ(0,"th",47),t._uU(1,"Out Channel Short ID"),t.qZA())}function Sc(i,o){if(1&i&&(t.TgZ(0,"td",44),t._uU(1),t.qZA()),2&i){const n=o.$implicit;t.xp6(1),t.Oqu(null==n?null:n.toShortChannelId)}}function Ac(i,o){1&i&&(t.TgZ(0,"th",47),t._uU(1,"Out Channel"),t.qZA())}function Ec(i,o){if(1&i&&(t.TgZ(0,"td",44)(1,"div",48)(2,"span",49),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,nt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.toChannelAlias)}}function wc(i,o){1&i&&(t.TgZ(0,"th",47),t._uU(1,"Payment Hash"),t.qZA())}function Ic(i,o){if(1&i&&(t.TgZ(0,"td",44)(1,"div",48)(2,"span",49),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,nt,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.paymentHash)}}function Fc(i,o){1&i&&(t.TgZ(0,"th",50),t._uU(1,"Amount In (Sats)"),t.qZA())}function qc(i,o){if(1&i&&(t.TgZ(0,"td",44)(1,"span",51),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==n?null:n.amountIn))}}function Nc(i,o){1&i&&(t.TgZ(0,"th",50),t._uU(1,"Amount Out (Sats)"),t.qZA())}function Oc(i,o){if(1&i&&(t.TgZ(0,"td",44)(1,"span",51),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==n?null:n.amountOut))}}function Pc(i,o){1&i&&(t.TgZ(0,"th",50),t._uU(1,"Fee Earned (Sats)"),t.qZA())}function kc(i,o){if(1&i&&(t.TgZ(0,"td",44)(1,"span",51),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,(null==n?null:n.amountIn)-(null==n?null:n.amountOut)))}}function Uc(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"th",52)(1,"div",53)(2,"mat-select",54),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",55),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.onDownloadCSV())}),t._uU(5,"Download CSV"),t.qZA()()()()}}function Rc(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"td",56)(1,"button",57),t.NdJ("click",function(a){const r=t.CHM(n).$implicit,p=t.oxw(2);return t.KtG(p.onForwardingEventClick(r,a))}),t._uU(2,"View Info"),t.qZA()()}}function Mc(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"No forwarding history available."),t.qZA())}function Dc(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"Getting forwarding history..."),t.qZA())}function Jc(i,o){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&i){const n=t.oxw(3);t.xp6(1),t.Oqu(n.errorMessage)}}function Hc(i,o){if(1&i&&(t.TgZ(0,"td",58),t.YNc(1,Mc,2,0,"p",59),t.YNc(2,Dc,2,0,"p",59),t.YNc(3,Jc,2,1,"p",59),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=n.forwardingHistoryEvents&&n.forwardingHistoryEvents.data)||(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.forwardingHistoryEvents&&n.forwardingHistoryEvents.data)||(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.forwardingHistoryEvents&&n.forwardingHistoryEvents.data)||(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}const Qc=function(i){return{"display-none":i}};function Yc(i,o){if(1&i&&t._UZ(0,"tr",60),2&i){const n=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Qc,(null==n.forwardingHistoryEvents?null:n.forwardingHistoryEvents.data)&&(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)>0))}}function Bc(i,o){1&i&&t._UZ(0,"tr",61)}function Vc(i,o){1&i&&t._UZ(0,"tr",62)}const zc=function(){return["no_event"]};function Gc(i,o){if(1&i&&(t.TgZ(0,"div",14),t.YNc(1,uc,1,0,"mat-progress-bar",15),t.TgZ(2,"table",16,17),t.ynx(4,18),t.YNc(5,pc,1,0,"th",19),t.YNc(6,hc,2,1,"td",20),t.BQk(),t.ynx(7,21),t.YNc(8,_c,2,0,"th",22),t.YNc(9,gc,3,4,"td",20),t.BQk(),t.ynx(10,23),t.YNc(11,fc,2,0,"th",22),t.YNc(12,Cc,4,4,"td",20),t.BQk(),t.ynx(13,24),t.YNc(14,xc,2,0,"th",22),t.YNc(15,yc,2,1,"td",20),t.BQk(),t.ynx(16,25),t.YNc(17,bc,2,0,"th",22),t.YNc(18,Lc,4,4,"td",20),t.BQk(),t.ynx(19,26),t.YNc(20,Tc,2,0,"th",22),t.YNc(21,vc,4,4,"td",20),t.BQk(),t.ynx(22,27),t.YNc(23,Zc,2,0,"th",22),t.YNc(24,Sc,2,1,"td",20),t.BQk(),t.ynx(25,28),t.YNc(26,Ac,2,0,"th",22),t.YNc(27,Ec,4,4,"td",20),t.BQk(),t.ynx(28,29),t.YNc(29,wc,2,0,"th",22),t.YNc(30,Ic,4,4,"td",20),t.BQk(),t.ynx(31,30),t.YNc(32,Fc,2,0,"th",31),t.YNc(33,qc,4,3,"td",20),t.BQk(),t.ynx(34,32),t.YNc(35,Nc,2,0,"th",31),t.YNc(36,Oc,4,3,"td",20),t.BQk(),t.ynx(37,33),t.YNc(38,Pc,2,0,"th",31),t.YNc(39,kc,4,3,"td",20),t.BQk(),t.ynx(40,34),t.YNc(41,Uc,6,0,"th",35),t.YNc(42,Rc,3,0,"td",36),t.BQk(),t.ynx(43,37),t.YNc(44,Hc,4,3,"td",38),t.BQk(),t.YNc(45,Yc,1,3,"tr",39),t.YNc(46,Bc,1,0,"tr",40),t.YNc(47,Vc,1,0,"tr",41),t.qZA()()),2&i){const n=t.oxw();t.xp6(1),t.Q6J("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("matSortActive",n.tableSetting.sortBy)("matSortDirection",n.tableSetting.sortOrder)("dataSource",n.forwardingHistoryEvents),t.xp6(43),t.Q6J("matFooterRowDef",t.DdM(7,zc)),t.xp6(1),t.Q6J("matHeaderRowDef",n.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",n.displayedColumns)}}function Wc(i,o){if(1&i&&t._UZ(0,"mat-paginator",63),2&i){const n=t.oxw();t.Q6J("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS)}}let Ht=(()=>{var i;class o{constructor(e,a,s,r,p){this.logger=e,this.commonService=a,this.store=s,this.datePipe=r,this.camelCaseWithSpaces=p,this.pageId="routing",this.tableId="forwarding_history",this.eventsData=[],this.selFilter="",this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.tableSetting={tableId:"forwarding_history",recordsPerPage:l.IV,sortBy:"timestamp",sortOrder:l.Pi.DESCENDING},this.displayedColumns=[],this.forwardingHistoryEvents=new c.by([]),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()}ngOnInit(){this.store.select(f.nF).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting.tableId=this.tableId,this.tableSetting=e.pageSettings.find(a=>a.pageId===this.pageId)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||l.c3.find(a=>a.pageId===this.pageId)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("type"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(f.PP).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.eventsData=e.payments&&e.payments.relayed?e.payments.relayed:[],this.eventsData.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadForwardingEventsTable(this.eventsData),this.logger.info(this.eventsData)})}ngAfterViewInit(){setTimeout(()=>{this.eventsData.length>0&&this.loadForwardingEventsTable(this.eventsData)},0)}ngOnChanges(e){e.eventsData&&(this.apiCallStatus={status:l.Bn.COMPLETED,action:"FetchPayments"},this.eventsData=e.eventsData.currentValue,e.eventsData.firstChange||this.loadForwardingEventsTable(this.eventsData)),e.selFilter&&!e.selFilter.firstChange&&(this.selFilterBy="all",this.applyFilter())}onForwardingEventClick(e,a){const s=[[{key:"paymentHash",value:e.paymentHash,title:"Payment Hash",width:100,type:l.Gi.STRING}],[{key:"timestamp",value:Math.round((e.timestamp||0)/1e3),title:"Date/Time",width:50,type:l.Gi.DATE_TIME},{key:"fee",value:(e.amountIn||0)-(e.amountOut||0),title:"Fee Earned (Sats)",width:50,type:l.Gi.NUMBER}],[{key:"amountIn",value:e.amountIn,title:"Amount In (Sats)",width:50,type:l.Gi.NUMBER},{key:"amountOut",value:e.amountOut,title:"Amount Out (Sats)",width:50,type:l.Gi.NUMBER}],[{key:"fromChannelAlias",value:e.fromChannelAlias,title:"From Channel Alias",width:50,type:l.Gi.STRING},{key:"fromShortChannelId",value:e.fromShortChannelId,title:"From Short Channel ID",width:50,type:l.Gi.STRING}],[{key:"fromChannelId",value:e.fromChannelId,title:"From Channel ID",width:100,type:l.Gi.STRING}],[{key:"toChannelAlias",value:e.toChannelAlias,title:"To Channel Alias",width:50,type:l.Gi.STRING},{key:"toShortChannelId",value:e.toShortChannelId,title:"To Short Channel ID",width:50,type:l.Gi.STRING}],[{key:"toChannelId",value:e.toChannelId,title:"To Channel ID",width:100,type:l.Gi.STRING}]];"payment-relayed"!==e.type&&s?.unshift([{key:"type",value:this.commonService.camelCase(e.type),title:"Relay Type",width:100,type:l.Gi.STRING}]),this.store.dispatch((0,S.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Event Information",message:s}}}))}applyFilter(){this.forwardingHistoryEvents&&(this.forwardingHistoryEvents.filter=this.selFilter.trim().toLowerCase())}getLabel(e){const a=this.nodePageDefs[this.pageId][this.tableSetting.tableId].allowedColumns.find(s=>s.column===e);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column):this.commonService.titleCase(e)}setFilterPredicate(){this.forwardingHistoryEvents.filterPredicate=(e,a)=>{let s="";switch(this.selFilterBy){case"all":s=(e.timestamp?this.datePipe.transform(new Date(e.timestamp),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(e).toLowerCase();break;case"timestamp":s=this.datePipe.transform(new Date(e.timestamp||0),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;case"fee":s=(e.amountIn-e.amountOut).toString()||"0";break;default:s=typeof e[this.selFilterBy]>"u"?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return s.includes(a)}}loadForwardingEventsTable(e){this.forwardingHistoryEvents=new c.by([...e]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(a,s)=>"fee"===s?a.amountIn-a.amountOut:a[s]&&isNaN(a[s])?a[s].toLocaleLowerCase():a[s]?+a[s]:null,this.forwardingHistoryEvents.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.forwardingHistoryEvents)}onDownloadCSV(){this.forwardingHistoryEvents&&this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Forwarding-history")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(M.v),t.Y36(E.yh),t.Y36(u.uU),t.Y36(z.i1))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-forwarding-history"]],viewQuery:function(e,a){if(1&e&&(t.Gf(v.YE,5),t.Gf(w.NW,5)),2&e){let s;t.iGM(s=t.CRH())&&(a.sort=s.first),t.iGM(s=t.CRH())&&(a.paginator=s.first)}},inputs:{pageId:"pageId",tableId:"tableId",eventsData:"eventsData",selFilter:"selFilter"},features:[t._Bn([{provide:A.PG,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.ye,useValue:(0,l.pt)("Events")}]),t.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.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModel","ngModelChange","input","keyup"],[3,"value"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"matSortActive","matSortDirection","dataSource"],["table",""],["matColumnDef","type"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Type (if not payment relayed)",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","fromChannelId"],["matColumnDef","fromShortChannelId"],["matColumnDef","fromChannelAlias"],["matColumnDef","toChannelId"],["matColumnDef","toShortChannelId"],["matColumnDef","toChannelAlias"],["matColumnDef","paymentHash"],["matColumnDef","amountIn"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amountOut"],["matColumnDef","fee"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Type (if not payment relayed)"],["mat-cell",""],["class","dot yellow","matTooltipPosition","right",3,"matTooltip","ngClass",4,"ngIf"],["matTooltipPosition","right",1,"dot","yellow",3,"matTooltip","ngClass"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t.YNc(1,sc,2,1,"div",1),t.YNc(2,cc,13,4,"div",2),t.YNc(3,Gc,48,8,"div",3),t.YNc(4,Wc,1,3,"mat-paginator",4),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",""!==a.errorMessage),t.xp6(1),t.Q6J("ngIf",""===a.errorMessage),t.xp6(1),t.Q6J("ngIf",""===a.errorMessage),t.xp6(1),t.Q6J("ngIf",""===a.errorMessage))},dependencies:[u.mk,u.sg,u.O5,u.PC,d.Fj,d.JJ,d.On,h.xw,h.Wh,h.yH,Z.oO,Z.Zl,F.lW,Q.Nt,C.KE,C.hX,H.pW,A.gD,A.$L,V.ey,v.YE,v.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.mD,c.Ke,c.ge,c.ev,c.yh,c.XQ,c.Gk,c.Q2,W.gM,w.NW,P.Vv,P.$V,u.JJ,u.uU,z.h9],styles:[".mat-column-type[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}.mat-column-type[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}.mat-column-actions[_ngcontent-%COMP%]{min-height:3.55rem}"]}),o})();const Kc=["tableIn"],Xc=["tableOut"],$c=["paginatorIn"],jc=["paginatorOut"];function tu(i,o){if(1&i&&(t.TgZ(0,"div",3),t._uU(1),t.qZA()),2&i){const n=t.oxw();t.xp6(1),t.Oqu(n.errorMessage)}}function eu(i,o){1&i&&t._UZ(0,"mat-progress-bar",34)}function nu(i,o){1&i&&(t.TgZ(0,"th",35),t._uU(1,"Channel ID"),t.qZA())}const st=function(i){return{width:i}};function iu(i,o){if(1&i&&(t.TgZ(0,"td",36)(1,"div",37)(2,"span",38),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,st,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.channelId)}}function au(i,o){1&i&&(t.TgZ(0,"th",35),t._uU(1,"Peer Alias"),t.qZA())}function ou(i,o){if(1&i&&(t.TgZ(0,"td",36)(1,"div",37)(2,"span",38),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,st,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.alias)}}function su(i,o){1&i&&(t.TgZ(0,"th",39),t._uU(1,"Events"),t.qZA())}function lu(i,o){if(1&i&&(t.TgZ(0,"td",36)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,n.events))}}function ru(i,o){1&i&&(t.TgZ(0,"th",39),t._uU(1,"Amount (Sats)"),t.qZA())}function cu(i,o){if(1&i&&(t.TgZ(0,"td",36)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,n.totalAmount))}}function uu(i,o){1&i&&(t.TgZ(0,"th",39),t._uU(1,"Fee (Sats)"),t.qZA())}function pu(i,o){if(1&i&&(t.TgZ(0,"td",36)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,n.totalFee))}}function mu(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"No incoming routing peer available."),t.qZA())}function du(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"Getting incoming routing peers..."),t.qZA())}function hu(i,o){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&i){const n=t.oxw(3);t.xp6(1),t.Oqu(n.errorMessage)}}function _u(i,o){if(1&i&&(t.TgZ(0,"td",41),t.YNc(1,mu,2,0,"p",42),t.YNc(2,du,2,0,"p",42),t.YNc(3,hu,2,1,"p",42),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=n.routingPeersIncoming&&n.routingPeersIncoming.data)||(null==n.routingPeersIncoming||null==n.routingPeersIncoming.data?null:n.routingPeersIncoming.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.routingPeersIncoming&&n.routingPeersIncoming.data)||(null==n.routingPeersIncoming||null==n.routingPeersIncoming.data?null:n.routingPeersIncoming.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.routingPeersIncoming&&n.routingPeersIncoming.data)||(null==n.routingPeersIncoming||null==n.routingPeersIncoming.data?null:n.routingPeersIncoming.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}const Qt=function(i){return{"display-none":i}};function gu(i,o){if(1&i&&t._UZ(0,"tr",43),2&i){const n=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Qt,(null==n.routingPeersIncoming?null:n.routingPeersIncoming.data)&&(null==n.routingPeersIncoming||null==n.routingPeersIncoming.data?null:n.routingPeersIncoming.data.length)>0))}}function fu(i,o){1&i&&t._UZ(0,"tr",44)}function Cu(i,o){1&i&&t._UZ(0,"tr",45)}function xu(i,o){1&i&&t._UZ(0,"mat-progress-bar",34)}function yu(i,o){1&i&&(t.TgZ(0,"th",35),t._uU(1,"Channel ID"),t.qZA())}function bu(i,o){if(1&i&&(t.TgZ(0,"td",36)(1,"div",37)(2,"span",38),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,st,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.channelId)}}function Lu(i,o){1&i&&(t.TgZ(0,"th",35),t._uU(1,"Peer Alias"),t.qZA())}function Tu(i,o){if(1&i&&(t.TgZ(0,"td",36)(1,"div",37)(2,"span",38),t._uU(3),t.qZA()()()),2&i){const n=o.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,st,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth)),t.xp6(2),t.Oqu(null==n?null:n.alias)}}function vu(i,o){1&i&&(t.TgZ(0,"th",39),t._uU(1,"Events"),t.qZA())}function Zu(i,o){if(1&i&&(t.TgZ(0,"td",36)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,n.events))}}function Su(i,o){1&i&&(t.TgZ(0,"th",39),t._uU(1,"Amount (Sats)"),t.qZA())}function Au(i,o){if(1&i&&(t.TgZ(0,"td",36)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,n.totalAmount))}}function Eu(i,o){1&i&&(t.TgZ(0,"th",39),t._uU(1,"Fee (Sats)"),t.qZA())}function wu(i,o){if(1&i&&(t.TgZ(0,"td",36)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&i){const n=o.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,n.totalFee))}}function Iu(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"No outgoing routing peer available."),t.qZA())}function Fu(i,o){1&i&&(t.TgZ(0,"p"),t._uU(1,"Getting outgoing routing peers..."),t.qZA())}function qu(i,o){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&i){const n=t.oxw(3);t.xp6(1),t.Oqu(n.errorMessage)}}function Nu(i,o){if(1&i&&(t.TgZ(0,"td",41),t.YNc(1,Iu,2,0,"p",42),t.YNc(2,Fu,2,0,"p",42),t.YNc(3,qu,2,1,"p",42),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=n.routingPeersOutgoing&&n.routingPeersOutgoing.data)||(null==n.routingPeersOutgoing||null==n.routingPeersOutgoing.data?null:n.routingPeersOutgoing.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.routingPeersOutgoing&&n.routingPeersOutgoing.data)||(null==n.routingPeersOutgoing||null==n.routingPeersOutgoing.data?null:n.routingPeersOutgoing.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=n.routingPeersOutgoing&&n.routingPeersOutgoing.data)||(null==n.routingPeersOutgoing||null==n.routingPeersOutgoing.data?null:n.routingPeersOutgoing.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function Ou(i,o){if(1&i&&t._UZ(0,"tr",43),2&i){const n=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Qt,(null==n.routingPeersOutgoing?null:n.routingPeersOutgoing.data)&&(null==n.routingPeersOutgoing||null==n.routingPeersOutgoing.data?null:n.routingPeersOutgoing.data.length)>0))}}function Pu(i,o){1&i&&t._UZ(0,"tr",44)}function ku(i,o){1&i&&t._UZ(0,"tr",45)}const Uu=function(i,o){return{"mt-2":i,"mt-1":o}},Ru=function(){return["no_incoming_event"]},Mu=function(i){return{"mt-2":i}},Du=function(){return["no_outgoing_event"]};function Ju(i,o){if(1&i&&(t.TgZ(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7),t._uU(4,"Incoming"),t.qZA(),t._UZ(5,"div",8),t.qZA(),t.TgZ(6,"div",9),t.YNc(7,eu,1,0,"mat-progress-bar",10),t.TgZ(8,"table",11,12),t.ynx(10,13),t.YNc(11,nu,2,0,"th",14),t.YNc(12,iu,4,4,"td",15),t.BQk(),t.ynx(13,16),t.YNc(14,au,2,0,"th",14),t.YNc(15,ou,4,4,"td",15),t.BQk(),t.ynx(16,17),t.YNc(17,su,2,0,"th",18),t.YNc(18,lu,4,3,"td",15),t.BQk(),t.ynx(19,19),t.YNc(20,ru,2,0,"th",18),t.YNc(21,cu,4,3,"td",15),t.BQk(),t.ynx(22,20),t.YNc(23,uu,2,0,"th",18),t.YNc(24,pu,4,3,"td",15),t.BQk(),t.ynx(25,21),t.YNc(26,_u,4,3,"td",22),t.BQk(),t.YNc(27,gu,1,3,"tr",23),t.YNc(28,fu,1,0,"tr",24),t.YNc(29,Cu,1,0,"tr",25),t.qZA()(),t._UZ(30,"mat-paginator",26,27),t.qZA(),t.TgZ(32,"div",28)(33,"div",6)(34,"div",7),t._uU(35,"Outgoing"),t.qZA(),t._UZ(36,"div",8),t.qZA(),t.TgZ(37,"div",29),t.YNc(38,xu,1,0,"mat-progress-bar",10),t.TgZ(39,"table",30,31),t.ynx(41,13),t.YNc(42,yu,2,0,"th",14),t.YNc(43,bu,4,4,"td",15),t.BQk(),t.ynx(44,16),t.YNc(45,Lu,2,0,"th",14),t.YNc(46,Tu,4,4,"td",15),t.BQk(),t.ynx(47,17),t.YNc(48,vu,2,0,"th",18),t.YNc(49,Zu,4,3,"td",15),t.BQk(),t.ynx(50,19),t.YNc(51,Su,2,0,"th",18),t.YNc(52,Au,4,3,"td",15),t.BQk(),t.ynx(53,20),t.YNc(54,Eu,2,0,"th",18),t.YNc(55,wu,4,3,"td",15),t.BQk(),t.ynx(56,32),t.YNc(57,Nu,4,3,"td",22),t.BQk(),t.YNc(58,Ou,1,3,"tr",23),t.YNc(59,Pu,1,0,"tr",24),t.YNc(60,ku,1,0,"tr",25),t.qZA(),t._UZ(61,"mat-paginator",26,33),t.qZA()()()),2&i){const n=t.oxw();t.xp6(2),t.Q6J("ngClass",t.WLB(22,Uu,n.screenSize===n.screenSizeEnum.XS,n.screenSize===n.screenSizeEnum.SM)),t.xp6(5),t.Q6J("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("matSortActive",n.tableSetting.sortBy)("matSortDirection",n.tableSetting.sortOrder)("dataSource",n.routingPeersIncoming),t.xp6(19),t.Q6J("matFooterRowDef",t.DdM(25,Ru)),t.xp6(1),t.Q6J("matHeaderRowDef",n.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",n.displayedColumns),t.xp6(1),t.Q6J("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS),t.xp6(3),t.Q6J("ngClass",t.VKq(26,Mu,n.screenSize!==n.screenSizeEnum.LG)),t.xp6(5),t.Q6J("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("matSortActive",n.tableSetting.sortBy)("matSortDirection",n.tableSetting.sortOrder)("dataSource",n.routingPeersOutgoing),t.xp6(19),t.Q6J("matFooterRowDef",t.DdM(28,Du)),t.xp6(1),t.Q6J("matHeaderRowDef",n.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",n.displayedColumns),t.xp6(1),t.Q6J("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS)}}let Hu=(()=>{var i;class o{constructor(e,a,s,r){this.logger=e,this.commonService=a,this.store=s,this.camelCaseWithSpaces=r,this.nodePageDefs=l.Xk,this.selFilterByIn="all",this.selFilterByOut="all",this.colWidth="20rem",this.PAGE_ID="routing",this.tableSetting={tableId:"routing_peers",recordsPerPage:l.IV,sortBy:"totalFee",sortOrder:l.Pi.DESCENDING},this.routingPeersData=[],this.displayedColumns=[],this.routingPeersIncoming=new c.by([]),this.routingPeersOutgoing=new c.by([]),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()}ngOnInit(){this.store.select(f.nF).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=e.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||l.c3.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/(2*this.displayedColumns.length)/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(f.PP).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.routingPeersData=e.payments&&e.payments.relayed?e.payments.relayed:[],this.routingPeersData.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.routingPeersData),this.logger.info(e)})}ngAfterViewInit(){this.routingPeersData.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.routingPeersData)}applyFilterIncoming(){this.routingPeersIncoming.filter=this.filterIn.trim().toLowerCase()}applyFilterOutgoing(){this.routingPeersOutgoing.filter=this.filterOut.trim().toLowerCase()}getLabel(e){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(s=>s.column===e);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):this.commonService.titleCase(e)}setFilterPredicate(){this.routingPeersIncoming.filterPredicate=(e,a)=>{let s="";return s="all"===this.selFilterByIn?JSON.stringify(e).toLowerCase():"string"==typeof e[this.selFilterByIn]?e[this.selFilterByIn].toLowerCase():"boolean"==typeof e[this.selFilterByIn]?e[this.selFilterByIn]?"yes":"no":e[this.selFilterByIn].toString(),s.includes(a)},this.routingPeersOutgoing.filterPredicate=(e,a)=>{let s="";switch(this.selFilterByOut){case"all":s=JSON.stringify(e).toLowerCase();break;case"total_amount":case"total_fee":s=(+(e[this.selFilterByOut]||0)/1e3).toString()||"";break;default:s="string"==typeof e[this.selFilterByOut]?e[this.selFilterByOut].toLowerCase():"boolean"==typeof e[this.selFilterByOut]?e[this.selFilterByOut]?"yes":"no":e[this.selFilterByOut].toString()}return s.includes(a)}}loadRoutingPeersTable(e){if(e.length>0){const a=this.groupRoutingPeers(e);this.routingPeersIncoming=new c.by(a[0]),this.routingPeersIncoming.sort=this.sortIn,this.routingPeersIncoming.paginator=this.paginatorIn,this.logger.info(this.routingPeersIncoming),this.routingPeersOutgoing=new c.by(a[1]),this.routingPeersOutgoing.sort=this.sortOut,this.routingPeersOutgoing.paginator=this.paginatorOut,this.logger.info(this.routingPeersOutgoing)}else this.routingPeersIncoming=new c.by([]),this.routingPeersOutgoing=new c.by([]);this.setFilterPredicate(),this.applyFilterIncoming(),this.applyFilterOutgoing()}groupRoutingPeers(e){const a=[],s=[];return e.forEach(r=>{const p=a.find(N=>N.channelId===r.fromChannelId),x=s.find(N=>N.channelId===r.toChannelId);p?(p.events++,p.totalAmount=+p.totalAmount+ +r.amountIn,p.totalFee=r.amountIn-r.amountOut+ +p.totalFee):a.push({channelId:r.fromChannelId,alias:r.fromChannelAlias,events:1,totalAmount:+r.amountIn,totalFee:r.amountIn-r.amountOut}),x?(x.events++,x.totalAmount=+x.totalAmount+ +r.amountOut,x.totalFee=r.amountIn-r.amountOut+ +x.totalFee):s.push({channelId:r.toChannelId,alias:r.toChannelAlias,events:1,totalAmount:+r.amountOut,totalFee:r.amountIn-r.amountOut})}),[this.commonService.sortDescByKey(a,"totalFee"),this.commonService.sortDescByKey(s,"totalFee")]}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(M.v),t.Y36(E.yh),t.Y36(z.i1))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-routing-peers"]],viewQuery:function(e,a){if(1&e&&(t.Gf(Kc,5,v.YE),t.Gf(Xc,5,v.YE),t.Gf($c,5),t.Gf(jc,5)),2&e){let s;t.iGM(s=t.CRH())&&(a.sortIn=s.first),t.iGM(s=t.CRH())&&(a.sortOut=s.first),t.iGM(s=t.CRH())&&(a.paginatorIn=s.first),t.iGM(s=t.CRH())&&(a.paginatorOut=s.first)}},features:[t._Bn([{provide:w.ye,useValue:(0,l.pt)("Peers")}])],decls:3,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between stretch","class","page-sub-title-container mt-2",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between stretch",1,"page-sub-title-container","mt-2"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start stretch",1,"mb-4"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"page-sub-title-container","w-100",3,"ngClass"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",1,"overflow-auto","incoming-table",3,"matSortActive","matSortDirection","dataSource"],["tableIn",""],["matColumnDef","channelId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","events"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","totalAmount"],["matColumnDef","totalFee"],["matColumnDef","no_incoming_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["paginatorIn",""],["fxLayout","column","fxFlex","49","fxLayoutAlign","end stretch",1,"mb-4"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",1,"overflow-auto","outgoing-table",3,"matSortActive","matSortDirection","dataSource"],["tableOut",""],["matColumnDef","no_outgoing_event"],["paginatorOut",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t.YNc(1,tu,2,1,"div",1),t.YNc(2,Ju,63,29,"div",2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",""!==a.errorMessage),t.xp6(1),t.Q6J("ngIf",""===a.errorMessage))},dependencies:[u.mk,u.O5,u.PC,h.xw,h.Wh,h.yH,Z.oO,Z.Zl,H.pW,v.YE,v.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.mD,c.Ke,c.ge,c.ev,c.yh,c.XQ,c.Gk,c.Q2,w.NW,P.$V,u.JJ]}),o})();function Qu(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",8),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw();return t.KtG(r.activeLink=s.link)}),t._uU(1),t.qZA()}if(2&i){const n=o.$implicit,e=t.oxw();t.s9C("routerLink",n.link),t.Q6J("active",e.activeLink===n.link),t.xp6(1),t.Oqu(n.name)}}let Yu=(()=>{var i;class o{constructor(e){this.router=e,this.faChartBar=L.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 e=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Y.h)(a=>a instanceof b.Av)).subscribe({next:a=>{const s=this.links.find(r=>a.urlAfterRedirects.includes(r.link));this.activeLink=s?s.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(b.F0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-reports"]],decls:12,vars:3,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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["tabPanel",""],["mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,a){if(1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Reports"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),t.YNc(8,Qu,2,3,"div",6),t.qZA(),t._UZ(9,"mat-tab-nav-panel",null,7)(11,"router-outlet"),t.qZA()()()),2&e){const s=t.MAs(10);t.xp6(1),t.Q6J("icon",a.faChartBar),t.xp6(6),t.Q6J("tabPanel",s),t.xp6(1),t.Q6J("ngForOf",a.links)}},dependencies:[u.sg,I.BN,h.xw,h.Wh,T.a8,T.dn,q.BU,q.sW,q.Nj,b.lC,b.rH]}),o})();var Yt=g(3803),Bt=g(7671);function Bu(i,o){if(1&i&&(t.TgZ(0,"div",13),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&i){const n=t.oxw();t.Q6J("@fadeIn",n.totalFeeSat),t.xp6(1),t.AsE("",t.xi3(2,3,n.totalFeeSat||0,"1.0-2")," Sats/",t.lcZ(3,6,n.filteredEventsBySelectedPeriod.length||0)," Events")}}function Vu(i,o){1&i&&(t.TgZ(0,"div",14),t._uU(1,"No routing report for the selected period"),t.qZA())}function zu(i,o){if(1&i&&(t.TgZ(0,"span")(1,"span",17),t._uU(2),t.ALo(3,"number"),t.qZA(),t.TgZ(4,"span",17),t._uU(5),t.ALo(6,"number"),t.qZA()()),2&i){const n=o.model,e=t.oxw(2);t.xp6(2),t.hij("Events: ",t.lcZ(3,2,(e.selReportBy===e.reportBy.EVENTS?n.value:n.extra.totalEvents)||0),""),t.xp6(3),t.hij("Fee: ",t.xi3(6,4,(e.selReportBy===e.reportBy.EVENTS?n.extra.totalFees:n.value)||0,"1.0-2"),"")}}function Gu(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"ngx-charts-bar-vertical",15),t.NdJ("select",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.onChartBarSelected(a))})("mouseup",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.onChartMouseUp(a))}),t.YNc(1,zu,7,7,"ng-template",null,16,t.W1O),t.qZA()}if(2&i){const n=t.oxw();t.Q6J("view",n.view)("results",n.routingReportData)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",n.showYAxisLabel)("xAxisLabel",n.xAxisLabel)("yAxisLabel",n.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)}}function Wu(i,o){if(1&i&&t._UZ(0,"rtl-ecl-forwarding-history",18),2&i){const n=t.oxw();t.Q6J("pageId","reports")("tableId","routing")("eventsData",n.filteredEventsBySelectedPeriod)("selFilter",n.eventFilterValue)}}let Ku=(()=>{var i;class o{constructor(e,a,s){this.logger=e,this.commonService=a,this.store=s,this.reportPeriod=l.op[0],this.secondsInADay=86400,this.events=[],this.filteredEventsBySelectedPeriod=[],this.eventFilterValue="",this.reportBy=l.Xr,this.selReportBy=l.Xr.FEES,this.totalFeeSat=null,this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.routingReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Fee (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=l.cu,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(f.PP).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.events=e.payments&&e.payments.relayed?e.payments.relayed:[],this.filterForwardingEvents(this.startDate,this.endDate),this.logger.info(e)}),this.commonService.containerSizeUpdated.pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{switch(this.screenSize){case l.cu.MD:this.screenPaddingX=e.width/10;break;case l.cu.LG:this.screenPaddingX=e.width/16;break;default:this.screenPaddingX=e.width/20}this.view=[e.width-this.screenPaddingX,e.height/2.2],this.logger.info("Container Size: "+JSON.stringify(e)),this.logger.info("View: "+JSON.stringify(this.view))})}filterForwardingEvents(e,a){const s=Math.round(e.getTime()/1e3),r=Math.round(a.getTime()/1e3);this.logger.info("Filtering Forwarding Events Starting at "+new Date(Date.now()).toLocaleString()+" From "+e.toLocaleString()+" To "+a.toLocaleString()),this.filteredEventsBySelectedPeriod=[],this.routingReportData=[],this.totalFeeSat=null,this.events&&this.events.length>0&&(this.events.forEach(p=>{Math.floor((p.timestamp||0)/1e3)>=s&&Math.floor((p.timestamp||0)/1e3)0&&"ngx-charts"===e.srcElement.classList[0]&&(this.eventFilterValue="")}onChartBarSelected(e){this.eventFilterValue=this.reportPeriod===l.op[1]?e.name+"/"+this.startDate.getFullYear():e.name.toString().padStart(2,"0")+"/"+l.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}prepareFeeReport(e){const a=Math.round(e.getTime()/1e3),s=[];if(this.totalFeeSat=0,this.logger.info("Fee Report Prepare Starting at "+new Date(Date.now()).toLocaleString()+" From "+e.toLocaleString()),this.reportPeriod===l.op[1]){for(let r=0;r<12;r++)s.push({name:l.gg[r].name,value:0,extra:{totalEvents:0}});this.filteredEventsBySelectedPeriod?.map(r=>{const p=new Date(r.timestamp||0).getMonth();return s[p].value=s[p].value+((r.amountIn||0)-(r.amountOut||0)),s[p].extra.totalEvents=s[p].extra.totalEvents+1,this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((r.amountIn||0)-(r.amountOut||0)),this.filteredEventsBySelectedPeriod})}else{for(let r=0;r{const p=Math.floor((Math.floor((r.timestamp||0)/1e3)-a)/this.secondsInADay);return s[p].value=s[p].value+((r.amountIn||0)-(r.amountOut||0)),s[p].extra.totalEvents=s[p].extra.totalEvents+1,this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((r.amountIn||0)-(r.amountOut||0)),this.filteredEventsBySelectedPeriod})}return this.logger.info("Fee Report Prepare Finished at "+new Date(Date.now()).toLocaleString()),s}prepareEventsReport(e){const a=Math.round(e.getTime()/1e3),s=[];if(this.totalFeeSat=0,this.logger.info("Events Report Prepare Starting at "+new Date(Date.now()).toLocaleString()+" From "+e.toLocaleString()),this.reportPeriod===l.op[1]){for(let r=0;r<12;r++)s.push({name:l.gg[r].name,value:0,extra:{totalFees:0}});this.filteredEventsBySelectedPeriod?.map(r=>{const p=new Date(r.timestamp||0).getMonth();return s[p].value=s[p].value+1,s[p].extra.totalFees=s[p].extra.totalFees+((r.amountIn||0)-(r.amountOut||0)),this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((r.amountIn||0)-(r.amountOut||0)),this.filteredEventsBySelectedPeriod})}else{for(let r=0;r{const p=Math.floor((Math.floor((r.timestamp||0)/1e3)-a)/this.secondsInADay);return s[p].value=s[p].value+1,s[p].extra.totalFees=s[p].extra.totalFees+((r.amountIn||0)-(r.amountOut||0)),this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((r.amountIn||0)-(r.amountOut||0)),this.filteredEventsBySelectedPeriod})}return this.logger.info("Events Report Prepare Finished at "+new Date(Date.now()).toLocaleString()),s}onSelectionChange(e){const a=e.selDate.getMonth(),s=e.selDate.getFullYear();this.reportPeriod=e.selScrollRange,this.reportPeriod===l.op[1]?(this.startDate=new Date(s,0,1,0,0,0),this.endDate=new Date(s,11,31,23,59,59)):(this.startDate=new Date(s,a,1,0,0,0),this.endDate=new Date(s,a,this.getMonthDays(a,s),23,59,59)),this.filterForwardingEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(e,a){return 1===e&&a%4==0?l.gg[e].days+1:l.gg[e].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(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(M.v),t.Y36(E.yh))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-routing-report"]],hostBindings:function(e,a){1&e&&t.NdJ("mouseup",function(r){return a.onChartMouseUp(r)})},decls:17,vars:7,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 center",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 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],[1,"mt-1"],["class","one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup",4,"ngIf"],[3,"pageId","tableId","eventsData","selFilter",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],[1,"one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"pageId","tableId","eventsData","selFilter"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0)(1,"rtl-horizontal-scroller",1),t.NdJ("stepChanged",function(r){return a.onSelectionChange(r)}),t.qZA(),t.TgZ(2,"div",2)(3,"mat-radio-group",3),t.NdJ("ngModelChange",function(r){return a.selReportBy=r})("change",function(){return a.onSelReportByChange()}),t.TgZ(4,"span",4),t._uU(5,"Report By: "),t.qZA(),t.TgZ(6,"mat-radio-button",5),t._uU(7,"Fees"),t.qZA(),t.TgZ(8,"mat-radio-button",6),t._uU(9,"Events"),t.qZA()()(),t.TgZ(10,"div",7),t.YNc(11,Bu,4,8,"div",8),t.YNc(12,Vu,2,0,"div",9),t.TgZ(13,"div",10),t.YNc(14,Gu,3,11,"ngx-charts-bar-vertical",11),t.qZA(),t.TgZ(15,"div",10),t.YNc(16,Wu,1,4,"rtl-ecl-forwarding-history",12),t.qZA()()()),2&e&&(t.xp6(3),t.Q6J("ngModel",a.selReportBy),t.xp6(3),t.s9C("value",a.reportBy.FEES),t.xp6(2),t.s9C("value",a.reportBy.EVENTS),t.xp6(3),t.Q6J("ngIf",a.routingReportData.length>0&&a.filteredEventsBySelectedPeriod.length>0),t.xp6(1),t.Q6J("ngIf",a.routingReportData.length<=0||a.filteredEventsBySelectedPeriod.length<=0),t.xp6(2),t.Q6J("ngIf",a.routingReportData.length>0&&a.filteredEventsBySelectedPeriod.length>0),t.xp6(2),t.Q6J("ngIf",a.filteredEventsBySelectedPeriod.length>0))},dependencies:[u.O5,d.JJ,d.On,h.xw,h.Wh,h.yH,at.VQ,at.U0,Yt.K$,Bt.D,Ht,u.JJ],data:{animation:[xt.J]}}),o})();var Xu=g(165);function $u(i,o){if(1&i&&(t.TgZ(0,"div",10),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.AsE(" Paid ",t.xi3(2,2,n.transactionsReportSummary.amountPaidSelectedPeriod||0,"1.0-2")," Sats/",t.lcZ(3,5,n.transactionsReportSummary.paymentsSelectedPeriod)," Payments ")}}function ju(i,o){if(1&i&&(t.TgZ(0,"div",10),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.AsE(" Received ",t.xi3(2,2,n.transactionsReportSummary.amountReceivedSelectedPeriod||0,"1.0-2")," Sats/",t.lcZ(3,5,n.transactionsReportSummary.invoicesSelectedPeriod)," Invoices ")}}function tp(i,o){if(1&i&&(t.TgZ(0,"div",8),t.YNc(1,$u,4,7,"div",9),t.YNc(2,ju,4,7,"div",9),t.qZA()),2&i){const n=t.oxw();t.Q6J("@fadeIn",n.transactionsReportSummary),t.xp6(1),t.Q6J("ngIf",n.transactionsReportSummary.paymentsSelectedPeriod),t.xp6(1),t.Q6J("ngIf",n.transactionsReportSummary.invoicesSelectedPeriod)}}function ep(i,o){1&i&&(t.TgZ(0,"div",11),t._uU(1,"No transactions report for the selected period"),t.qZA())}function np(i,o){if(1&i&&(t.TgZ(0,"span",14),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&i){const n=o.model;t.xp6(1),t.HOy("",n.name,": ",t.xi3(2,4,n.value||0,"1.0-2"),"/# ","Paid"===n.name?"Payments":"Invoices",": ",t.lcZ(3,7,(null==n.extra?null:n.extra.total)||0),"")}}function ip(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"ngx-charts-bar-vertical-2d",12),t.NdJ("select",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.onChartBarSelected(a))})("mouseup",function(a){t.CHM(n);const s=t.oxw();return t.KtG(s.onChartMouseUp(a))}),t.YNc(1,np,4,9,"ng-template",null,13,t.W1O),t.qZA()}if(2&i){const n=t.oxw();t.Q6J("view",n.view)("results",n.transactionsReportData)("noBarWhenZero",!1)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",n.showYAxisLabel)("xAxisLabel",n.xAxisLabel)("yAxisLabel",n.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)("groupPadding",n.reportPeriod===n.scrollRanges[0]?2:8)}}function ap(i,o){if(1&i&&t._UZ(0,"rtl-transactions-report-table",15),2&i){const n=t.oxw();t.Q6J("displayedColumns",n.displayedColumns)("tableSetting",n.tableSetting)("dataList",n.transactionsNonZeroReportData)("dataRange",n.reportPeriod)("selFilter",n.transactionFilterValue)}}let op=(()=>{var i;class o{constructor(e,a,s){this.logger=e,this.commonService=a,this.store=s,this.scrollRanges=l.op,this.reportPeriod=l.op[0],this.secondsInADay=86400,this.payments=[],this.invoices=[],this.colWidth="20rem",this.PAGE_ID="reports",this.tableSetting={tableId:"transactions",recordsPerPage:l.IV,sortBy:"date",sortOrder:l.Pi.DESCENDING},this.displayedColumns=["date","amount_paid","num_payments","amount_received","num_invoices"],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0},this.transactionFilterValue="",this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.transactionsReportData=[],this.transactionsNonZeroReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Amount (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new m.x,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(f.nF).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.tableSetting=e.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||l.c3.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(f.PP).pipe((0,_.R)(this.unSubs[1]),(0,lt.M)(this.store.select(f.Ef))).subscribe(([e,a])=>{this.payments=e.payments.sent?e.payments.sent:[],this.invoices=a.invoices?a.invoices:[],(this.payments.length>0||this.invoices.length>0)&&(this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData())}),this.commonService.containerSizeUpdated.pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{switch(this.screenSize){case l.cu.MD:this.screenPaddingX=e.width/10;break;case l.cu.LG:this.screenPaddingX=e.width/16;break;default:this.screenPaddingX=e.width/20}this.view=[e.width-this.screenPaddingX,e.height/2.2],this.logger.info("Container Size: "+JSON.stringify(e)),this.logger.info("View: "+JSON.stringify(this.view))})}onChartMouseUp(e){"svg"===e.srcElement.tagName&&e.srcElement.classList.length>0&&"ngx-charts"===e.srcElement.classList[0]&&(this.transactionFilterValue="")}onChartBarSelected(e){this.transactionFilterValue=this.reportPeriod===l.op[1]?e.series.toString()+"/"+this.startDate.getFullYear():e.series.toString().padStart(2,"0")+"/"+l.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}filterTransactionsForSelectedPeriod(e,a){const s=Math.round(e.getTime()/1e3),r=Math.round(a.getTime()/1e3),p=[];this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};const x=this.payments?.filter(y=>y.firstPartTimestamp&&Math.floor(y.firstPartTimestamp/1e3)>=s&&Math.floor(y.firstPartTimestamp/1e3)"received"===y.status&&y.timestamp&&y.timestamp>=s&&y.timestamp{const O=new Date(y.firstPartTimestamp||0).getMonth();return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+(y.recipientAmount||0),p[O].series[0].value=p[O].series[0].value+y.recipientAmount,p[O].series[0].extra.total=p[O].series[0].extra.total+1,this.transactionsReportSummary}),N?.map(y=>{const O=new Date(1e3*(y.timestamp||0)).getMonth();return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+(y.amountSettled||0),p[O].series[1].value=p[O].series[1].value+y.amountSettled,p[O].series[1].extra.total=p[O].series[1].extra.total+1,this.transactionsReportSummary})}else{for(let y=0;y{const O=Math.floor((Math.floor((y.firstPartTimestamp||0)/1e3)-s)/this.secondsInADay);return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+(y.recipientAmount||0),p[O].series[0].value=p[O].series[0].value+y.recipientAmount,p[O].series[0].extra.total=p[O].series[0].extra.total+1,this.transactionsReportSummary}),N?.map(y=>{const O=Math.floor(((y.timestamp||0)-s)/this.secondsInADay);return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+(y.amountSettled||0),p[O].series[1].value=p[O].series[1].value+y.amountSettled,p[O].series[1].extra.total=p[O].series[1].extra.total+1,this.transactionsReportSummary})}return p}prepareTableData(){return this.transactionsReportData?.reduce((e,a)=>a.series[0].extra.total>0||a.series[1].extra.total>0?e.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}):e,[])}onSelectionChange(e){const a=e.selDate.getMonth(),s=e.selDate.getFullYear();this.reportPeriod=e.selScrollRange,this.reportPeriod===l.op[1]?(this.startDate=new Date(s,0,1,0,0,0),this.endDate=new Date(s,11,31,23,59,59)):(this.startDate=new Date(s,a,1,0,0,0),this.endDate=new Date(s,a,this.getMonthDays(a,s),23,59,59)),this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData(),this.transactionFilterValue=""}getMonthDays(e,a){return 1===e&&a%4==0?l.gg[e].days+1:l.gg[e].days}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(R.mQ),t.Y36(M.v),t.Y36(E.yh))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-transactions-report"]],hostBindings:function(e,a){1&e&&t.NdJ("mouseup",function(r){return a.onChartMouseUp(r)})},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,"displayedColumns","tableSetting","dataList","dataRange","selFilter",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],[1,"two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"displayedColumns","tableSetting","dataList","dataRange","selFilter"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0)(1,"rtl-horizontal-scroller",1),t.NdJ("stepChanged",function(r){return a.onSelectionChange(r)}),t.qZA(),t.TgZ(2,"div",2),t.YNc(3,tp,3,3,"div",3),t.YNc(4,ep,2,0,"div",4),t.TgZ(5,"div",5),t.YNc(6,ip,3,13,"ngx-charts-bar-vertical-2d",6),t.qZA(),t.TgZ(7,"div",5),t.YNc(8,ap,1,5,"rtl-transactions-report-table",7),t.qZA()()()),2&e&&(t.xp6(3),t.Q6J("ngIf",a.transactionsNonZeroReportData.length>0),t.xp6(1),t.Q6J("ngIf",a.transactionsNonZeroReportData.length<=0),t.xp6(2),t.Q6J("ngIf",a.transactionsNonZeroReportData.length>0),t.xp6(2),t.Q6J("ngIf",a.transactionsNonZeroReportData.length>0))},dependencies:[u.O5,h.xw,h.Wh,h.yH,Yt.H5,Bt.D,Xu.g,u.JJ],data:{animation:[xt.J]}}),o})();var U=g(1643),sp=g(9442);function lp(i,o){if(1&i){const n=t.EpF();t.TgZ(0,"div",9),t.NdJ("click",function(){const s=t.CHM(n).$implicit,r=t.oxw();return t.KtG(r.activeLink=s.link)}),t._uU(1),t.qZA()}if(2&i){const n=o.$implicit,e=t.oxw();t.s9C("routerLink",n.link),t.Q6J("active",e.activeLink===n.link),t.xp6(1),t.Oqu(n.name)}}let rp=(()=>{var i;class o{constructor(e){this.router=e,this.faSearch=L.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 e=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Y.h)(a=>a instanceof b.Av)).subscribe({next:a=>{const s=this.links.find(r=>a.urlAfterRedirects.includes(r.link));this.activeLink=s?s.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return(i=o).\u0275fac=function(e){return new(e||i)(t.Y36(b.F0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["rtl-ecl-graph"]],decls:13,vars:3,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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["tabPanel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,a){if(1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Graph Lookups"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),t.YNc(8,lp,2,3,"div",6),t.qZA(),t._UZ(9,"mat-tab-nav-panel",null,7),t.TgZ(11,"div",8),t._UZ(12,"router-outlet"),t.qZA()()()()),2&e){const s=t.MAs(10);t.xp6(1),t.Q6J("icon",a.faSearch),t.xp6(6),t.Q6J("tabPanel",s),t.xp6(1),t.Q6J("ngForOf",a.links)}},dependencies:[u.sg,I.BN,h.xw,h.Wh,h.yH,T.a8,T.dn,q.BU,q.sW,q.Nj,b.lC,b.rH]}),o})();const cp=[{path:"",component:Tt,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:xa,canActivate:[(0,U.fY)()]},{path:"onchain",component:lo,canActivate:[(0,U.fY)()],children:[{path:"",pathMatch:"full",redirectTo:"receive"},{path:"receive",component:zo,canActivate:[(0,U.fY)()]},{path:"send",component:Go,canActivate:[(0,U.fY)()]}]},{path:"connections",component:uo,canActivate:[(0,U.fY)()],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:ps,canActivate:[(0,U.fY)()],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:Kl,canActivate:[(0,U.fY)()]},{path:"pending",component:Ir,canActivate:[(0,U.fY)()]},{path:"inactive",component:oc,canActivate:[(0,U.fY)()]}]},{path:"peers",component:s1,data:{sweepAll:!1},canActivate:[(0,U.fY)()]}]},{path:"transactions",component:mo,canActivate:[(0,U.fY)()],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:At,canActivate:[(0,U.fY)()]},{path:"invoices",component:Et,canActivate:[(0,U.fY)()]}]},{path:"routing",component:_o,canActivate:[(0,U.fY)()],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:Ht,canActivate:[(0,U.fY)()]},{path:"peers",component:Hu,canActivate:[(0,U.fY)()]}]},{path:"reports",component:Yu,canActivate:[(0,U.fY)()],children:[{path:"",pathMatch:"full",redirectTo:"routingreport"},{path:"routingreport",component:Ku,canActivate:[(0,U.fY)()]},{path:"transactions",component:op,canActivate:[(0,U.fY)()]}]},{path:"graph",component:rp,canActivate:[(0,U.fY)()],children:[{path:"",pathMatch:"full",redirectTo:"lookups"},{path:"lookups",component:Bo,canActivate:[(0,U.fY)()]},{path:"queryroutes",component:b1,canActivate:[(0,U.fY)()]}]},{path:"**",component:sp.w}]}],up=b.Bz.forChild(cp);var pp=g(9470);let mp=(()=>{var i;class o{}return(i=o).\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i,bootstrap:[Tt]}),i.\u0275inj=t.cJS({imports:[u.ez,pp.m,up]}),o})()}}]); \ No newline at end of file diff --git a/frontend/index.html b/frontend/index.html index 83f9c22a..c32d925a 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -13,6 +13,6 @@ - + \ No newline at end of file diff --git a/frontend/main.1a49c9ef2ba55bf2.js b/frontend/main.1a49c9ef2ba55bf2.js new file mode 100644 index 00000000..b3686c04 --- /dev/null +++ b/frontend/main.1a49c9ef2ba55bf2.js @@ -0,0 +1 @@ +(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[179],{429:(We,q,m)=>{"use strict";m.d(q,{$A:()=>ge,$W:()=>me,BL:()=>W,CX:()=>w,EG:()=>V,EK:()=>M,El:()=>ie,HI:()=>a,HJ:()=>D,Hc:()=>_,I8:()=>H,JK:()=>ht,Lu:()=>Y,Ly:()=>pe,Mf:()=>s,Nr:()=>fe,OG:()=>O,QJ:()=>ye,RX:()=>L,Rd:()=>Oe,SN:()=>C,Sf:()=>G,TM:()=>l,UH:()=>Ve,UR:()=>k,VD:()=>Pe,W:()=>d,WM:()=>xe,WO:()=>v,Wi:()=>he,X3:()=>ce,YP:()=>oe,YX:()=>g,Z8:()=>re,ZH:()=>lt,Zu:()=>rt,_9:()=>qe,_E:()=>J,aL:()=>Fe,as:()=>x,cQ:()=>i,d7:()=>yt,dh:()=>Ke,e9:()=>be,eF:()=>P,eM:()=>Qe,en:()=>Ie,g3:()=>j,g6:()=>De,i9:()=>Ut,kL:()=>I,mI:()=>T,n7:()=>nt,oV:()=>f,pW:()=>n,pd:()=>h,u0:()=>at,uT:()=>Ge,v_:()=>Ue,wD:()=>y,xS:()=>Q,yl:()=>de,z:()=>Ce});var t=m(9653),e=m(7731);const _=(0,t.PH)(e.AB.UPDATE_API_CALL_STATUS_CLN,(0,t.Ky)()),T=(0,t.PH)(e.AB.RESET_CLN_STORE,(0,t.Ky)()),s=(0,t.PH)(e.AB.SET_CHILD_NODE_SETTINGS_CLN,(0,t.Ky)()),y=(0,t.PH)(e.AB.FETCH_PAGE_SETTINGS_CLN),h=(0,t.PH)(e.AB.SET_PAGE_SETTINGS_CLN,(0,t.Ky)()),P=(0,t.PH)(e.AB.SAVE_PAGE_SETTINGS_CLN,(0,t.Ky)()),d=(0,t.PH)(e.AB.FETCH_INFO_CLN,(0,t.Ky)()),w=(0,t.PH)(e.AB.SET_INFO_CLN,(0,t.Ky)()),C=(0,t.PH)(e.AB.FETCH_FEES_CLN),L=(0,t.PH)(e.AB.SET_FEES_CLN,(0,t.Ky)()),D=(0,t.PH)(e.AB.FETCH_FEE_RATES_CLN,(0,t.Ky)()),H=(0,t.PH)(e.AB.SET_FEE_RATES_CLN,(0,t.Ky)()),V=(0,t.PH)(e.AB.FETCH_BALANCE_CLN),Y=(0,t.PH)(e.AB.SET_BALANCE_CLN,(0,t.Ky)()),j=(0,t.PH)(e.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),Q=(0,t.PH)(e.AB.SET_LOCAL_REMOTE_BALANCE_CLN,(0,t.Ky)()),J=(0,t.PH)(e.AB.GET_NEW_ADDRESS_CLN,(0,t.Ky)()),me=((0,t.PH)(e.AB.SET_NEW_ADDRESS_CLN,(0,t.Ky)()),(0,t.PH)(e.AB.FETCH_PEERS_CLN)),re=(0,t.PH)(e.AB.SET_PEERS_CLN,(0,t.Ky)()),ie=(0,t.PH)(e.AB.SAVE_NEW_PEER_CLN,(0,t.Ky)()),ce=((0,t.PH)(e.AB.NEWLY_ADDED_PEER_CLN,(0,t.Ky)()),(0,t.PH)(e.AB.ADD_PEER_CLN,(0,t.Ky)())),Ce=(0,t.PH)(e.AB.DETACH_PEER_CLN,(0,t.Ky)()),M=(0,t.PH)(e.AB.REMOVE_PEER_CLN,(0,t.Ky)()),i=(0,t.PH)(e.AB.FETCH_PAYMENTS_CLN),a=(0,t.PH)(e.AB.SET_PAYMENTS_CLN,(0,t.Ky)()),f=(0,t.PH)(e.AB.SEND_PAYMENT_CLN,(0,t.Ky)()),l=(0,t.PH)(e.AB.SEND_PAYMENT_STATUS_CLN,(0,t.Ky)()),v=(0,t.PH)(e.AB.GET_QUERY_ROUTES_CLN,(0,t.Ky)()),I=(0,t.PH)(e.AB.SET_QUERY_ROUTES_CLN,(0,t.Ky)()),k=(0,t.PH)(e.AB.FETCH_CHANNELS_CLN),x=(0,t.PH)(e.AB.SET_CHANNELS_CLN,(0,t.Ky)()),n=(0,t.PH)(e.AB.UPDATE_CHANNEL_CLN,(0,t.Ky)()),g=(0,t.PH)(e.AB.SAVE_NEW_CHANNEL_CLN,(0,t.Ky)()),W=(0,t.PH)(e.AB.CLOSE_CHANNEL_CLN,(0,t.Ky)()),O=(0,t.PH)(e.AB.REMOVE_CHANNEL_CLN,(0,t.Ky)()),G=(0,t.PH)(e.AB.PEER_LOOKUP_CLN,(0,t.Ky)()),ge=(0,t.PH)(e.AB.CHANNEL_LOOKUP_CLN,(0,t.Ky)()),nt=(0,t.PH)(e.AB.INVOICE_LOOKUP_CLN,(0,t.Ky)()),Ue=(0,t.PH)(e.AB.SET_LOOKUP_CLN,(0,t.Ky)()),at=(0,t.PH)(e.AB.GET_FORWARDING_HISTORY_CLN,(0,t.Ky)()),ye=(0,t.PH)(e.AB.SET_FORWARDING_HISTORY_CLN,(0,t.Ky)()),xe=(0,t.PH)(e.AB.FETCH_INVOICES_CLN,(0,t.Ky)()),fe=(0,t.PH)(e.AB.SET_INVOICES_CLN,(0,t.Ky)()),Oe=(0,t.PH)(e.AB.SAVE_NEW_INVOICE_CLN,(0,t.Ky)()),oe=(0,t.PH)(e.AB.ADD_INVOICE_CLN,(0,t.Ky)()),Fe=(0,t.PH)(e.AB.UPDATE_INVOICE_CLN,(0,t.Ky)()),De=(0,t.PH)(e.AB.DELETE_EXPIRED_INVOICE_CLN,(0,t.Ky)()),he=(0,t.PH)(e.AB.SET_CHANNEL_TRANSACTION_CLN,(0,t.Ky)()),pe=((0,t.PH)(e.AB.SET_CHANNEL_TRANSACTION_RES_CLN,(0,t.Ky)()),(0,t.PH)(e.AB.FETCH_UTXOS_CLN)),Ve=(0,t.PH)(e.AB.SET_UTXOS_CLN,(0,t.Ky)()),Qe=(0,t.PH)(e.AB.FETCH_OFFER_INVOICE_CLN,(0,t.Ky)()),Pe=(0,t.PH)(e.AB.SET_OFFER_INVOICE_CLN,(0,t.Ky)()),de=(0,t.PH)(e.AB.FETCH_OFFERS_CLN),rt=(0,t.PH)(e.AB.SET_OFFERS_CLN,(0,t.Ky)()),Ke=(0,t.PH)(e.AB.SAVE_NEW_OFFER_CLN,(0,t.Ky)()),lt=(0,t.PH)(e.AB.ADD_OFFER_CLN,(0,t.Ky)()),Ut=(0,t.PH)(e.AB.DISABLE_OFFER_CLN,(0,t.Ky)()),ht=(0,t.PH)(e.AB.UPDATE_OFFER_CLN,(0,t.Ky)()),Ge=(0,t.PH)(e.AB.FETCH_OFFER_BOOKMARKS_CLN),yt=(0,t.PH)(e.AB.SET_OFFER_BOOKMARKS_CLN,(0,t.Ky)()),be=(0,t.PH)(e.AB.ADD_UPDATE_OFFER_BOOKMARK_CLN,(0,t.Ky)()),qe=(0,t.PH)(e.AB.DELETE_OFFER_BOOKMARK_CLN,(0,t.Ky)()),Ie=(0,t.PH)(e.AB.REMOVE_OFFER_BOOKMARK_CLN,(0,t.Ky)())},4947:(We,q,m)=>{"use strict";m.d(q,{J:()=>se});var t=m(493),e=m(7579),_=m(9646),T=m(5577),s=m(2722),y=m(4004),h=m(262),P=m(1786),d=m(5566),w=m(7731),C=m(7861),L=m(429),D=m(9828),H=m(1462),V=m(4650),Y=m(529),j=m(9653),Q=m(5986),J=m(62),ee=m(5043),me=m(9116),re=m(7998),ie=m(6895);let se=(()=>{var ce;class Ce{constructor(i,a,f,l,v,I,k,x,n){this.actions=i,this.httpClient=a,this.store=f,this.sessionService=l,this.commonService=v,this.logger=I,this.router=k,this.wsService=x,this.location=n,this.CHILD_API_URL=w.T5+"/cln",this.API_VERION="",this.CLN_VERISON="",this.flgInitialized=!1,this.unSubs=[new e.x,new e.x,new e.x],this.infoFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_INFO_CLN),(0,T.z)(g=>(this.flgInitialized=!1,this.store.dispatch((0,C.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,L.Hc)({payload:{action:"FetchInfo",status:w.Bn.INITIATED}})),this.store.dispatch((0,C.ac)({payload:w.m6.GET_NODE_INFO})),this.httpClient.get(this.CHILD_API_URL+w.vv.GETINFO_API).pipe((0,s.R)(this.actions.pipe((0,t.l4)(w.pg.SET_SELECTED_NODE))),(0,y.U)(W=>(this.logger.info(W),this.API_VERION=W.api_version||"",this.CLN_VERISON=W.version||"",W.chains&&W.chains.length&&W.chains[0]&&"object"==typeof W.chains[0]&&W.chains[0].hasOwnProperty("chain")&&W?.chains[0].chain&&W?.chains[0].chain.toLowerCase().indexOf("bitcoin")<0&&W?.chains[0].chain.toLowerCase().indexOf("liquid")<0?(this.store.dispatch((0,L.Hc)({payload:{action:"FetchInfo",status:w.Bn.COMPLETED}})),this.store.dispatch((0,C.uO)({payload:w.m6.GET_NODE_INFO})),this.store.dispatch((0,C.ts)()),setTimeout(()=>{this.store.dispatch((0,C.qR)({payload:{data:{type:w.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}}))},500),{type:w.pg.LOGOUT}):(this.initializeRemainingData(W,g.payload.loadPage),this.store.dispatch((0,L.Hc)({payload:{action:"FetchInfo",status:w.Bn.COMPLETED}})),this.store.dispatch((0,C.uO)({payload:w.m6.GET_NODE_INFO})),{type:w.AB.SET_INFO_CLN,payload:W||{}}))),(0,h.K)(W=>{const O=this.commonService.extractErrorCode(W),G="ETIMEDOUT"===O?"Unable to Connect to Core Lightning Server.":this.commonService.extractErrorMessage(W);return this.router.navigate(["/error"],{state:{errorCode:O,errorMessage:G}}),this.handleErrorWithoutAlert("FetchInfo",w.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:O,error:G}),(0,_.of)({type:w.pg.VOID})})))))),this.fetchFeesCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_FEES_CLN),(0,T.z)(()=>(this.store.dispatch((0,L.Hc)({payload:{action:"FetchFees",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.FEES_API))),(0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,L.Hc)({payload:{action:"FetchFees",status:w.Bn.COMPLETED}})),{type:w.AB.SET_FEES_CLN,payload:g||{}})),(0,h.K)(g=>(this.handleErrorWithoutAlert("FetchFees",w.m6.NO_SPINNER,"Fetching Fees Failed.",g),(0,_.of)({type:w.pg.VOID}))))),this.fetchFeeRatesCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_FEE_RATES_CLN),(0,T.z)(g=>(this.store.dispatch((0,L.Hc)({payload:{action:"FetchFeeRates"+g.payload,status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.NETWORK_API+"/feeRates/"+g.payload).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.Hc)({payload:{action:"FetchFeeRates"+g.payload,status:w.Bn.COMPLETED}})),{type:w.AB.SET_FEE_RATES_CLN,payload:W||{}})),(0,h.K)(W=>(this.handleErrorWithoutAlert("FetchFeeRates"+g.payload,w.m6.NO_SPINNER,"Fetching Fee Rates Failed.",W),(0,_.of)({type:w.pg.VOID})))))))),this.fetchBalanceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_BALANCE_CLN),(0,T.z)(()=>(this.store.dispatch((0,L.Hc)({payload:{action:"FetchBalance",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.BALANCE_API))),(0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,L.Hc)({payload:{action:"FetchBalance",status:w.Bn.COMPLETED}})),{type:w.AB.SET_BALANCE_CLN,payload:g||{}})),(0,h.K)(g=>(this.handleErrorWithoutAlert("FetchBalance",w.m6.NO_SPINNER,"Fetching Balances Failed.",g),(0,_.of)({type:w.pg.VOID}))))),this.fetchLocalRemoteBalanceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),(0,T.z)(()=>(this.store.dispatch((0,L.Hc)({payload:{action:"FetchLocalRemoteBalance",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.CHANNELS_API+"/localRemoteBalance"))),(0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,L.Hc)({payload:{action:"FetchLocalRemoteBalance",status:w.Bn.COMPLETED}})),{type:w.AB.SET_LOCAL_REMOTE_BALANCE_CLN,payload:g||{}})),(0,h.K)(g=>(this.handleErrorWithoutAlert("FetchLocalRemoteBalance",w.m6.NO_SPINNER,"Fetching Balances Failed.",g),(0,_.of)({type:w.pg.VOID}))))),this.getNewAddressCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.GET_NEW_ADDRESS_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:w.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+w.vv.ON_CHAIN_API+"?type="+g.payload.addressCode).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,C.uO)({payload:w.m6.GENERATE_NEW_ADDRESS})),{type:w.AB.SET_NEW_ADDRESS_CLN,payload:W&&W.address?W.address:{}})),(0,h.K)(W=>(this.handleErrorWithAlert("GenerateNewAddress",w.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+w.vv.ON_CHAIN_API+"?type="+g.payload.addressId,W),(0,_.of)({type:w.pg.VOID})))))))),this.setNewAddressCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_NEW_ADDRESS_CLN),(0,y.U)(g=>(this.logger.info(g.payload),g.payload))),{dispatch:!1}),this.peersFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_PEERS_CLN),(0,T.z)(()=>(this.store.dispatch((0,L.Hc)({payload:{action:"FetchPeers",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.PEERS_API).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,L.Hc)({payload:{action:"FetchPeers",status:w.Bn.COMPLETED}})),{type:w.AB.SET_PEERS_CLN,payload:g||[]})),(0,h.K)(g=>(this.handleErrorWithoutAlert("FetchPeers",w.m6.NO_SPINNER,"Fetching Peers Failed.",g),(0,_.of)({type:w.pg.VOID})))))))),this.saveNewPeerCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_NEW_PEER_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:w.m6.CONNECT_PEER})),this.store.dispatch((0,L.Hc)({payload:{action:"SaveNewPeer",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.vv.PEERS_API,{id:g.payload.id}).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.Hc)({payload:{action:"SaveNewPeer",status:w.Bn.COMPLETED}})),this.store.dispatch((0,C.uO)({payload:w.m6.CONNECT_PEER})),this.store.dispatch((0,L.Z8)({payload:W||[]})),{type:w.AB.NEWLY_ADDED_PEER_CLN,payload:{peer:W.find(O=>0===g.payload.id.indexOf(O.id?O.id:""))}})),(0,h.K)(W=>(this.handleErrorWithoutAlert("SaveNewPeer",w.m6.CONNECT_PEER,"Peer Connection Failed.",W),(0,_.of)({type:w.pg.VOID})))))))),this.detachPeerCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.DETACH_PEER_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:w.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+w.vv.PEERS_API+"/"+g.payload.id+"?force="+g.payload.force).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,C.uO)({payload:w.m6.DISCONNECT_PEER})),this.store.dispatch((0,C.jW)({payload:"Peer Disconnected Successfully!"})),{type:w.AB.REMOVE_PEER_CLN,payload:{id:g.payload.id}})),(0,h.K)(W=>(this.handleErrorWithAlert("PeerDisconnect",w.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+w.vv.PEERS_API+"/"+g.payload.id,W),(0,_.of)({type:w.pg.VOID})))))))),this.channelsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_CHANNELS_CLN),(0,T.z)(()=>{this.store.dispatch((0,L.Hc)({payload:{action:"FetchChannels",status:w.Bn.INITIATED}}));const g=this.commonService.isVersionCompatible(this.CLN_VERISON,"23.02")&&this.commonService.isVersionCompatible(this.API_VERION,"0.10.3")?"/listPeerChannels":"/listChannels";return this.httpClient.get(this.CHILD_API_URL+w.vv.CHANNELS_API+g)}),(0,y.U)(g=>{this.logger.info(g),this.store.dispatch((0,L.Hc)({payload:{action:"FetchChannels",status:w.Bn.COMPLETED}}));const W={activeChannels:[],pendingChannels:[],inactiveChannels:[]};return g.forEach(O=>{O.id&&(O.peer_id=O.id),O.connected&&(O.peer_connected=O.connected),"CHANNELD_NORMAL"===O.state?O.peer_connected?W.activeChannels.push(O):W.inactiveChannels.push(O):W.pendingChannels.push(O)}),{type:w.AB.SET_CHANNELS_CLN,payload:W}}),(0,h.K)(g=>(this.handleErrorWithoutAlert("FetchChannels",w.m6.NO_SPINNER,"Fetching Channels Failed.",g),(0,_.of)({type:w.pg.VOID}))))),this.openNewChannelCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_NEW_CHANNEL_CLN),(0,T.z)(g=>{this.store.dispatch((0,C.ac)({payload:w.m6.OPEN_CHANNEL})),this.store.dispatch((0,L.Hc)({payload:{action:"SaveNewChannel",status:w.Bn.INITIATED}}));const W={id:g.payload.peerId,satoshis:g.payload.satoshis,feeRate:g.payload.feeRate,announce:g.payload.announce};return g.payload.minconf&&(W.minconf=g.payload.minconf),g.payload.utxos&&(W.utxos=g.payload.utxos),g.payload.requestAmount&&(W.request_amt=g.payload.requestAmount),g.payload.compactLease&&(W.compact_lease=g.payload.compactLease),this.httpClient.post(this.CHILD_API_URL+w.vv.CHANNELS_API,W).pipe((0,y.U)(O=>(this.logger.info(O),this.store.dispatch((0,L.Hc)({payload:{action:"SaveNewChannel",status:w.Bn.COMPLETED}})),this.store.dispatch((0,C.uO)({payload:w.m6.OPEN_CHANNEL})),this.store.dispatch((0,C.jW)({payload:"Channel Added Successfully!"})),this.store.dispatch((0,L.EG)()),this.store.dispatch((0,L.Ly)()),{type:w.AB.FETCH_CHANNELS_CLN})),(0,h.K)(O=>(this.handleErrorWithoutAlert("SaveNewChannel",w.m6.OPEN_CHANNEL,"Opening Channel Failed.",O),(0,_.of)({type:w.pg.VOID}))))}))),this.updateChannelCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.UPDATE_CHANNEL_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:w.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+w.vv.CHANNELS_API+"/setChannelFee",{id:g.payload.channelId,base:g.payload.baseFeeMsat,ppm:g.payload.feeRate}).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,C.uO)({payload:w.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,C.jW)("all"===g.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:w.AB.FETCH_CHANNELS_CLN})),(0,h.K)(W=>(this.handleErrorWithAlert("UpdateChannel",w.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+w.vv.CHANNELS_API,W),(0,_.of)({type:w.pg.VOID})))))))),this.closeChannelCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.CLOSE_CHANNEL_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:g.payload.force?w.m6.FORCE_CLOSE_CHANNEL:w.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+w.vv.CHANNELS_API+"/"+g.payload.channelId+(g.payload.force?"?force="+g.payload.force:"")).pipe((0,y.U)(O=>(this.logger.info(O),this.store.dispatch((0,C.uO)({payload:g.payload.force?w.m6.FORCE_CLOSE_CHANNEL:w.m6.CLOSE_CHANNEL})),this.store.dispatch((0,L.UR)()),this.store.dispatch((0,L.g3)()),this.store.dispatch((0,C.jW)({payload:"Channel Closed Successfully!"})),{type:w.AB.REMOVE_CHANNEL_CLN,payload:g.payload})),(0,h.K)(O=>(this.handleErrorWithAlert("CloseChannel",g.payload.force?w.m6.FORCE_CLOSE_CHANNEL:w.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+w.vv.CHANNELS_API,O),(0,_.of)({type:w.pg.VOID})))))))),this.paymentsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_PAYMENTS_CLN),(0,T.z)(()=>(this.store.dispatch((0,L.Hc)({payload:{action:"FetchPayments",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.PAYMENTS_API))),(0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,L.Hc)({payload:{action:"FetchPayments",status:w.Bn.COMPLETED}})),{type:w.AB.SET_PAYMENTS_CLN,payload:g||[]})),(0,h.K)(g=>(this.handleErrorWithoutAlert("FetchPayments",w.m6.NO_SPINNER,"Fetching Payments Failed.",g),(0,_.of)({type:w.pg.VOID}))))),this.fetchOfferInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_OFFER_INVOICE_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:w.m6.FETCH_INVOICE})),this.store.dispatch((0,L.Hc)({payload:{action:"FetchOfferInvoice",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.vv.OFFERS_API+"/fetchOfferInvoice",g.payload).pipe((0,y.U)(W=>{this.logger.info(W),setTimeout(()=>{this.store.dispatch((0,L.Hc)({payload:{action:"FetchOfferInvoice",status:w.Bn.COMPLETED}})),this.store.dispatch((0,C.uO)({payload:w.m6.FETCH_INVOICE})),this.store.dispatch((0,L.VD)({payload:W||{}}))},500)}),(0,h.K)(W=>(this.handleErrorWithoutAlert("FetchOfferInvoice",w.m6.FETCH_INVOICE,"Offer Invoice Fetch Failed",W),(0,_.of)({type:w.pg.VOID}))))))),{dispatch:!1}),this.setOfferInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_OFFER_INVOICE_CLN),(0,y.U)(g=>(this.logger.info(g.payload),g.payload))),{dispatch:!1}),this.sendPaymentCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SEND_PAYMENT_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:g.payload.uiMessage})),this.store.dispatch((0,L.Hc)({payload:{action:"SendPayment",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.vv.PAYMENTS_API,g.payload).pipe((0,y.U)(W=>{this.logger.info(W),this.store.dispatch((0,L.Hc)({payload:{action:"SendPayment",status:w.Bn.COMPLETED}}));let O="Payment Sent Successfully!";W.saveToDBError&&(O="Payment Sent Successfully but Offer Saving to Database Failed."),W.saveToDBResponse&&"NA"!==W.saveToDBResponse&&(this.store.dispatch((0,L.e9)({payload:W.saveToDBResponse})),O="Payment Sent Successfully and Offer Saved to Database."),setTimeout(()=>{this.store.dispatch((0,L.UR)()),this.store.dispatch((0,L.EG)()),this.store.dispatch((0,L.cQ)()),this.store.dispatch((0,C.uO)({payload:g.payload.uiMessage})),this.store.dispatch((0,C.jW)({payload:O})),this.store.dispatch((0,L.TM)({payload:W.paymentResponse}))},1e3)}),(0,h.K)(W=>(this.logger.error("Error: "+JSON.stringify(W)),g.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",g.payload.uiMessage,"Send Payment Failed.",W):this.handleErrorWithAlert("SendPayment",g.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+w.vv.PAYMENTS_API,W),(0,_.of)({type:w.pg.VOID}))))))),{dispatch:!1}),this.queryRoutesFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.GET_QUERY_ROUTES_CLN),(0,T.z)(g=>(this.store.dispatch((0,L.Hc)({payload:{action:"GetQueryRoutes",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.NETWORK_API+"/getRoute/"+g.payload.destPubkey+"/"+g.payload.amount).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.Hc)({payload:{action:"GetQueryRoutes",status:w.Bn.COMPLETED}})),{type:w.AB.SET_QUERY_ROUTES_CLN,payload:W})),(0,h.K)(W=>(this.store.dispatch((0,L.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",w.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+w.vv.NETWORK_API+"/getRoute/"+g.payload.destPubkey+"/"+g.payload.amount,W),(0,_.of)({type:w.pg.VOID})))))))),this.setQueryRoutesCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_QUERY_ROUTES_CLN),(0,y.U)(g=>g.payload)),{dispatch:!1}),this.peerLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.PEER_LOOKUP_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:w.m6.SEARCHING_NODE})),this.store.dispatch((0,L.Hc)({payload:{action:"Lookup",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.NETWORK_API+"/listNode/"+g.payload).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.Hc)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),this.store.dispatch((0,C.uO)({payload:w.m6.SEARCHING_NODE})),{type:w.AB.SET_LOOKUP_CLN,payload:W})),(0,h.K)(W=>(this.handleErrorWithAlert("Lookup",w.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+w.vv.NETWORK_API+"/listNode/"+g.payload,W),(0,_.of)({type:w.pg.VOID})))))))),this.channelLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.CHANNEL_LOOKUP_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:g.payload.uiMessage})),this.store.dispatch((0,L.Hc)({payload:{action:"Lookup",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.NETWORK_API+"/listChannel/"+g.payload.shortChannelID).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.Hc)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),this.store.dispatch((0,C.uO)({payload:g.payload.uiMessage})),{type:w.AB.SET_LOOKUP_CLN,payload:W})),(0,h.K)(W=>(g.payload.showError?this.handleErrorWithAlert("Lookup",g.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+w.vv.NETWORK_API+"/listChannel/"+g.payload.shortChannelID,W):this.store.dispatch((0,C.uO)({payload:g.payload.uiMessage})),this.store.dispatch((0,L.v_)({payload:[]})),(0,_.of)({type:w.pg.VOID})))))))),this.invoiceLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.INVOICE_LOOKUP_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:w.m6.SEARCHING_INVOICE})),this.store.dispatch((0,L.Hc)({payload:{action:"Lookup",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.INVOICES_API+"?label="+g.payload).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.Hc)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),this.store.dispatch((0,C.uO)({payload:w.m6.SEARCHING_INVOICE})),W.invoices&&W.invoices.length&&W.invoices.length>0&&this.store.dispatch((0,L.aL)({payload:W.invoices[0]})),{type:w.AB.SET_LOOKUP_CLN,payload:W.invoices&&W.invoices.length&&W.invoices.length>0?W.invoices[0]:W})),(0,h.K)(W=>(this.handleErrorWithoutAlert("Lookup",w.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",W),this.store.dispatch((0,C.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,_.of)({type:w.pg.VOID})))))))),this.setLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_LOOKUP_CLN),(0,y.U)(g=>(this.logger.info(g.payload),g.payload))),{dispatch:!1}),this.fetchForwardingHistoryCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.GET_FORWARDING_HISTORY_CLN),(0,T.z)(g=>{const W=g.payload.status.charAt(0).toUpperCase();return this.store.dispatch((0,L.Hc)({payload:{action:"FetchForwardingHistory"+W,status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.CHANNELS_API+"/listForwards?status="+g.payload.status).pipe((0,y.U)(O=>(this.logger.info(O),this.store.dispatch((0,L.Hc)({payload:{action:"FetchForwardingHistory"+W,status:w.Bn.COMPLETED}})),g.payload.status===w.OO.FAILED?this.store.dispatch((0,L.QJ)({payload:{status:w.OO.FAILED,totalForwards:O.length,listForwards:O}})):g.payload.status===w.OO.LOCAL_FAILED?this.store.dispatch((0,L.QJ)({payload:{status:w.OO.LOCAL_FAILED,totalForwards:O.length,listForwards:O}})):g.payload.status===w.OO.SETTLED&&this.store.dispatch((0,L.QJ)({payload:{status:w.OO.SETTLED,totalForwards:O.length,listForwards:O}})),{type:w.pg.VOID})),(0,h.K)(O=>(this.handleErrorWithAlert("FetchForwardingHistory"+W,w.m6.NO_SPINNER,"Get "+g.payload.status+" Forwarding History Failed",this.CHILD_API_URL+w.vv.CHANNELS_API+"/listForwards?status="+g.payload.status,O),(0,_.of)({type:w.pg.VOID}))))}))),this.deleteExpiredInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.DELETE_EXPIRED_INVOICE_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:w.m6.DELETE_INVOICE})),this.httpClient.delete(this.CHILD_API_URL+w.vv.INVOICES_API+(g.payload?"?maxexpiry="+g.payload:"")).pipe((0,y.U)(O=>(this.logger.info(O),this.store.dispatch((0,C.uO)({payload:w.m6.DELETE_INVOICE})),this.store.dispatch((0,C.jW)({payload:"Invoices Deleted Successfully!"})),{type:w.AB.FETCH_INVOICES_CLN,payload:{num_max_invoices:1e6,reversed:!0}})),(0,h.K)(O=>(this.handleErrorWithAlert("DeleteInvoices",w.m6.DELETE_INVOICE,"Delete Invoice Failed",this.CHILD_API_URL+w.vv.INVOICES_API,O),(0,_.of)({type:w.pg.VOID})))))))),this.saveNewInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_NEW_INVOICE_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:w.m6.ADD_INVOICE})),this.store.dispatch((0,L.Hc)({payload:{action:"SaveNewInvoice",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.vv.INVOICES_API,{label:g.payload.label,amount:g.payload.amount,description:g.payload.description,expiry:g.payload.expiry,private:g.payload.private}).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.Hc)({payload:{action:"SaveNewInvoice",status:w.Bn.COMPLETED}})),this.store.dispatch((0,C.uO)({payload:w.m6.ADD_INVOICE})),W.amount_msat=g.payload.amount,W.label=g.payload.label,W.expires_at=Math.round((new Date).getTime()/1e3+g.payload.expiry),W.description=g.payload.description,W.status="unpaid",setTimeout(()=>{this.store.dispatch((0,C.qR)({payload:{data:{invoice:W,newlyAdded:!0,component:d.y}}}))},200),{type:w.AB.ADD_INVOICE_CLN,payload:W})),(0,h.K)(W=>(this.handleErrorWithoutAlert("SaveNewInvoice",w.m6.ADD_INVOICE,"Add Invoice Failed.",W),(0,_.of)({type:w.pg.VOID})))))))),this.saveNewOfferCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_NEW_OFFER_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:w.m6.CREATE_OFFER})),this.store.dispatch((0,L.Hc)({payload:{action:"SaveNewOffer",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.vv.OFFERS_API,{amount:g.payload.amount,description:g.payload.description,issuer:g.payload.issuer}).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.Hc)({payload:{action:"SaveNewOffer",status:w.Bn.COMPLETED}})),this.store.dispatch((0,C.uO)({payload:w.m6.CREATE_OFFER})),setTimeout(()=>{this.store.dispatch((0,C.qR)({payload:{data:{offer:W,newlyAdded:!0,component:H.k}}}))},100),{type:w.AB.ADD_OFFER_CLN,payload:W})),(0,h.K)(W=>(this.handleErrorWithoutAlert("SaveNewOffer",w.m6.CREATE_OFFER,"Create Offer Failed.",W),(0,_.of)({type:w.pg.VOID})))))))),this.invoicesFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_INVOICES_CLN),(0,T.z)(g=>(this.store.dispatch((0,L.Hc)({payload:{action:"FetchInvoices",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.INVOICES_API+"?num_max_invoices="+(g.payload.num_max_invoices?g.payload.num_max_invoices:1e6)+"&index_offset="+(g.payload.index_offset?g.payload.index_offset:0)+"&reversed="+(!g.payload.reversed||g.payload.reversed)).pipe((0,y.U)(ge=>(this.logger.info(ge),this.store.dispatch((0,L.Hc)({payload:{action:"FetchInvoices",status:w.Bn.COMPLETED}})),{type:w.AB.SET_INVOICES_CLN,payload:ge})),(0,h.K)(ge=>(this.handleErrorWithoutAlert("FetchInvoices",w.m6.NO_SPINNER,"Fetching Invoices Failed.",ge),(0,_.of)({type:w.pg.VOID})))))))),this.offersFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_OFFERS_CLN),(0,T.z)(g=>(this.store.dispatch((0,L.Hc)({payload:{action:"FetchOffers",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.OFFERS_API).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.Hc)({payload:{action:"FetchOffers",status:w.Bn.COMPLETED}})),{type:w.AB.SET_OFFERS_CLN,payload:W.offers?W.offers:[]})),(0,h.K)(W=>(this.handleErrorWithoutAlert("FetchOffers",w.m6.NO_SPINNER,"Fetching Offers Failed.",W),(0,_.of)({type:w.pg.VOID})))))))),this.offersDisableCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.DISABLE_OFFER_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:w.m6.DISABLE_OFFER})),this.store.dispatch((0,L.Hc)({payload:{action:"DisableOffer",status:w.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+w.vv.OFFERS_API+"/"+g.payload.offer_id).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.Hc)({payload:{action:"DisableOffer",status:w.Bn.COMPLETED}})),this.store.dispatch((0,C.uO)({payload:w.m6.DISABLE_OFFER})),this.store.dispatch((0,C.jW)({payload:"Offer Disabled Successfully!"})),{type:w.AB.UPDATE_OFFER_CLN,payload:{offer:W}})),(0,h.K)(W=>(this.handleErrorWithoutAlert("DisableOffer",w.m6.DISABLE_OFFER,"Disabling Offer Failed.",W),(0,_.of)({type:w.pg.VOID})))))))),this.offerBookmarksFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_OFFER_BOOKMARKS_CLN),(0,T.z)(g=>(this.store.dispatch((0,L.Hc)({payload:{action:"FetchOfferBookmarks",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.OFFERS_API+"/offerbookmarks").pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.Hc)({payload:{action:"FetchOfferBookmarks",status:w.Bn.COMPLETED}})),{type:w.AB.SET_OFFER_BOOKMARKS_CLN,payload:W||[]})),(0,h.K)(W=>(this.handleErrorWithoutAlert("FetchOfferBookmarks",w.m6.NO_SPINNER,"Fetching Offer Bookmarks Failed.",W),(0,_.of)({type:w.pg.VOID})))))))),this.peidOffersDeleteCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.DELETE_OFFER_BOOKMARK_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:w.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,L.Hc)({payload:{action:"DeleteOfferBookmark",status:w.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+w.vv.OFFERS_API+"/offerbookmark/"+g.payload.bolt12).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.Hc)({payload:{action:"DeleteOfferBookmark",status:w.Bn.COMPLETED}})),this.store.dispatch((0,C.uO)({payload:w.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,C.jW)({payload:"Offer Bookmark Deleted Successfully!"})),{type:w.AB.REMOVE_OFFER_BOOKMARK_CLN,payload:{bolt12:g.payload.bolt12}})),(0,h.K)(W=>(this.handleErrorWithAlert("DeleteOfferBookmark",w.m6.DELETE_OFFER_BOOKMARK,"Deleting Offer Bookmark Failed.",this.CHILD_API_URL+w.vv.OFFERS_API+"/offerbookmark/"+g.payload.bolt12,W),(0,_.of)({type:w.pg.VOID})))))))),this.SetChannelTransactionCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_CHANNEL_TRANSACTION_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:w.m6.SEND_FUNDS})),this.store.dispatch((0,L.Hc)({payload:{action:"SetChannelTransaction",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.vv.ON_CHAIN_API,g.payload).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.Hc)({payload:{action:"SetChannelTransaction",status:w.Bn.COMPLETED}})),this.store.dispatch((0,C.uO)({payload:w.m6.SEND_FUNDS})),this.store.dispatch((0,L.EG)()),this.store.dispatch((0,L.Ly)()),{type:w.AB.SET_CHANNEL_TRANSACTION_RES_CLN,payload:W})),(0,h.K)(W=>(this.handleErrorWithoutAlert("SetChannelTransaction",w.m6.SEND_FUNDS,"Sending Fund Failed.",W),(0,_.of)({type:w.pg.VOID})))))))),this.utxosFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_UTXOS_CLN),(0,T.z)(()=>(this.store.dispatch((0,L.Hc)({payload:{action:"FetchUTXOs",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.ON_CHAIN_API+"/utxos"))),(0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,L.Hc)({payload:{action:"FetchUTXOs",status:w.Bn.COMPLETED}})),g.outputs.forEach(W=>{W.value&&(W.amount_msat=W.value)}),{type:w.AB.SET_UTXOS_CLN,payload:g.outputs||[]})),(0,h.K)(g=>(this.handleErrorWithoutAlert("FetchUTXOs",w.m6.NO_SPINNER,"Fetching UTXOs Failed.",g),(0,_.of)({type:w.pg.VOID}))))),this.pageSettingsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_PAGE_SETTINGS_CLN),(0,T.z)(()=>(this.store.dispatch((0,L.Hc)({payload:{action:"FetchPageSettings",status:w.Bn.INITIATED}})),this.httpClient.get(w.vv.PAGE_SETTINGS_API).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,L.Hc)({payload:{action:"FetchPageSettings",status:w.Bn.COMPLETED}})),{type:w.AB.SET_PAGE_SETTINGS_CLN,payload:g||[]})),(0,h.K)(g=>(this.handleErrorWithoutAlert("FetchPageSettings",w.m6.NO_SPINNER,"Fetching Page Settings Failed.",g),(0,_.of)({type:w.pg.VOID})))))))),this.savePageSettingsCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_PAGE_SETTINGS_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:w.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,L.Hc)({payload:{action:"SavePageSettings",status:w.Bn.INITIATED}})),this.httpClient.post(w.vv.PAGE_SETTINGS_API,g.payload).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.Hc)({payload:{action:"SavePageSettings",status:w.Bn.COMPLETED}})),this.store.dispatch((0,C.uO)({payload:w.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,C.jW)({payload:"Page Layout Updated Successfully!"})),{type:w.AB.SET_PAGE_SETTINGS_CLN,payload:W||[]})),(0,h.K)(W=>(this.handleErrorWithAlert("SavePageSettings",w.m6.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",w.vv.PAGE_SETTINGS_API,W),(0,_.of)({type:w.pg.VOID})))))))),this.store.select(D.yA).pipe((0,s.R)(this.unSubs[0])).subscribe(g=>{g.FetchInfo.status!==w.Bn.COMPLETED&&g.FetchInfo.status!==w.Bn.ERROR||g.FetchFees.status!==w.Bn.COMPLETED&&g.FetchFees.status!==w.Bn.ERROR||g.FetchChannels.status!==w.Bn.COMPLETED&&g.FetchChannels.status!==w.Bn.ERROR||g.FetchBalance.status!==w.Bn.COMPLETED&&g.FetchBalance.status!==w.Bn.ERROR||g.FetchLocalRemoteBalance.status!==w.Bn.COMPLETED&&g.FetchLocalRemoteBalance.status!==w.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,C.uO)({payload:w.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.clWSMessages.pipe((0,s.R)(this.unSubs[1])).subscribe(g=>{if(this.logger.info("Received new message from the service: "+JSON.stringify(g)),g)switch(g.event){case w.nM.INVOICE:this.logger.info(g),g&&g.data&&g.data.label&&this.store.dispatch((0,L.aL)({payload:g.data}));break;case w.nM.SEND_PAYMENT:case w.nM.BLOCK_HEIGHT:this.logger.info(g);break;default:this.logger.info("Received Event from WS: "+JSON.stringify(g))}})}initializeRemainingData(i,a){this.sessionService.setItem("clnUnlocked","true");const f={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,C.ac)({payload:w.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,C._V)({payload:f}));let l=this.location.path();l.includes("/lnd/")?l=l?.replace("/lnd/","/cln/"):l.includes("/ecl/")&&(l=l?.replace("/ecl/","/cln/")),(l.includes("/login")||l.includes("/error")||""===l||"HOME"===a||l.includes("?access-key="))&&(l="/cln/home"),this.router.navigate([l]),this.store.dispatch((0,L.WM)({payload:{num_max_invoices:1e6,index_offset:0,reversed:!0}})),this.store.dispatch((0,L.SN)()),this.store.dispatch((0,L.UR)()),this.store.dispatch((0,L.EG)()),this.store.dispatch((0,L.g3)()),this.store.dispatch((0,L.HJ)({payload:"perkw"})),this.store.dispatch((0,L.HJ)({payload:"perkb"})),this.store.dispatch((0,L.$W)()),this.store.dispatch((0,L.Ly)()),this.store.dispatch((0,L.cQ)())}handleErrorWithoutAlert(i,a,f,l){if(this.logger.error("ERROR IN: "+i+"\n"+JSON.stringify(l)),401===l.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,C.ts)()),this.store.dispatch((0,C.kS)()),this.store.dispatch((0,C.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,C.uO)({payload:a}));const v=this.commonService.extractErrorMessage(l,f);this.store.dispatch((0,L.Hc)({payload:{action:i,status:w.Bn.ERROR,statusCode:l.status.toString(),message:v}}))}}handleErrorWithAlert(i,a,f,l,v){if(this.logger.error(v),401===v.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,C.ts)()),this.store.dispatch((0,C.kS)()),this.store.dispatch((0,C.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,C.uO)({payload:a}));const I=this.commonService.extractErrorMessage(v);this.store.dispatch((0,C.qR)({payload:{data:{type:"ERROR",alertTitle:f,message:{code:v.status,message:I,URL:l},component:P.H}}})),this.store.dispatch((0,L.Hc)({payload:{action:i,status:w.Bn.ERROR,statusCode:v.status.toString(),message:I,URL:l}}))}}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}}return(ce=Ce).\u0275fac=function(i){return new(i||ce)(V.LFG(t.eX),V.LFG(Y.eN),V.LFG(j.yh),V.LFG(Q.m),V.LFG(J.v),V.LFG(ee.mQ),V.LFG(me.F0),V.LFG(re.d),V.LFG(ie.Ye))},ce.\u0275prov=V.Yz7({token:ce,factory:ce.\u0275fac}),Ce})()},9828:(We,q,m)=>{"use strict";m.d(q,{AS:()=>T,Ao:()=>ie,Bo:()=>Q,EQ:()=>Ce,Hz:()=>se,JG:()=>w,OL:()=>me,PP:()=>P,Rn:()=>Y,T4:()=>H,Wi:()=>d,Wj:()=>j,Y_:()=>ce,ZW:()=>V,ey:()=>s,gc:()=>D,hx:()=>L,jK:()=>re,lK:()=>ee,lw:()=>_,xQ:()=>J,yA:()=>h,zm:()=>C});var t=m(9653);const e=(0,t.ZF)("cln"),_=(0,t.P1)(e,i=>i.nodeSettings),T=(0,t.P1)(e,i=>({pageSettings:i.pageSettings,apiCallStatus:i.apisCallStatus.FetchPageSettings})),s=(0,t.P1)(e,i=>i.information),h=((0,t.P1)(e,i=>i.apisCallStatus.FetchInfo),(0,t.P1)(e,i=>i.apisCallStatus)),P=(0,t.P1)(e,i=>({payments:i.payments,apiCallStatus:i.apisCallStatus.FetchPayments})),d=(0,t.P1)(e,i=>({peers:i.peers,apiCallStatus:i.apisCallStatus.FetchPeers})),w=(0,t.P1)(e,i=>({fees:i.fees,apiCallStatus:i.apisCallStatus.FetchFees})),C=(0,t.P1)(e,i=>({feeRatesPerKB:i.feeRatesPerKB,apiCallStatus:i.apisCallStatus.FetchFeeRatesperkb})),L=(0,t.P1)(e,i=>({feeRatesPerKW:i.feeRatesPerKW,apiCallStatus:i.apisCallStatus.FetchFeeRatesperkw})),D=(0,t.P1)(e,i=>({listInvoices:i.invoices,apiCallStatus:i.apisCallStatus.FetchInvoices})),H=(0,t.P1)(e,i=>({utxos:i.utxos,apiCallStatus:i.apisCallStatus.FetchUTXOs})),V=(0,t.P1)(e,i=>({activeChannels:i.activeChannels,pendingChannels:i.pendingChannels,inactiveChannels:i.inactiveChannels,apiCallStatus:i.apisCallStatus.FetchChannels})),Y=(0,t.P1)(e,i=>({balance:i.balance,apiCallStatus:i.apisCallStatus.FetchBalance})),j=(0,t.P1)(e,i=>({localRemoteBalance:i.localRemoteBalance,apiCallStatus:i.apisCallStatus.FetchLocalRemoteBalance})),Q=(0,t.P1)(e,i=>({forwardingHistory:i.forwardingHistory,apiCallStatus:i.apisCallStatus.FetchForwardingHistoryS})),J=(0,t.P1)(e,i=>({failedForwardingHistory:i.failedForwardingHistory,apiCallStatus:i.apisCallStatus.FetchForwardingHistoryF})),ee=(0,t.P1)(e,i=>({localFailedForwardingHistory:i.localFailedForwardingHistory,apiCallStatus:i.apisCallStatus.FetchForwardingHistoryL})),me=(0,t.P1)(e,i=>({information:i.information,nodeSettings:i.nodeSettings,balance:i.balance})),re=(0,t.P1)(e,i=>({information:i.information,balance:i.balance,numPeers:i.peers.length})),ie=(0,t.P1)(e,i=>({information:i.information,balance:i.balance})),se=(0,t.P1)(e,i=>({information:i.information,nodeSettings:i.nodeSettings,apisCallStatus:[i.apisCallStatus.FetchInfo,i.apisCallStatus.FetchForwardingHistoryS]})),ce=(0,t.P1)(e,i=>({offers:i.offers,apiCallStatus:i.apisCallStatus.FetchOffers})),Ce=(0,t.P1)(e,i=>({offersBookmarks:i.offersBookmarks,apiCallStatus:i.apisCallStatus.FetchOfferBookmarks}))},5566:(We,q,m)=>{"use strict";m.d(q,{y:()=>De});var t=m(5412),e=m(2687),_=m(7579),T=m(2722),s=m(7731),y=m(9828),h=m(4650),P=m(5043),d=m(62),w=m(7009),C=m(9653),L=m(6895),D=m(2216),H=m(1576),V=m(5829),Y=m(4859),j=m(3546),Q=m(4850),J=m(1572),ee=m(266),me=m(658),re=m(5199),ie=m(3390);function se(he,Me){if(1&he&&h._UZ(0,"qr-code",33),2&he){const pe=h.oxw();h.Q6J("value",(null==pe.invoice?null:pe.invoice.bolt11)||(null==pe.invoice?null:pe.invoice.bolt12))("size",pe.qrWidth)("errorCorrectionLevel","L")}}function ce(he,Me){1&he&&(h.TgZ(0,"span",34),h._uU(1,"N/A"),h.qZA())}const Ce=function(he){return{"mr-0":he}};function M(he,Me){if(1&he&&h._UZ(0,"span",35),2&he){const pe=h.oxw();h.Q6J("ngClass",h.VKq(1,Ce,pe.screenSize===pe.screenSizeEnum.XS))}}function i(he,Me){if(1&he&&h._UZ(0,"span",36),2&he){const pe=h.oxw();h.Q6J("ngClass",h.VKq(1,Ce,pe.screenSize===pe.screenSizeEnum.XS))}}function a(he,Me){if(1&he&&h._UZ(0,"span",37),2&he){const pe=h.oxw();h.Q6J("ngClass",h.VKq(1,Ce,pe.screenSize===pe.screenSizeEnum.XS))}}function f(he,Me){if(1&he&&h._UZ(0,"qr-code",33),2&he){const pe=h.oxw();h.Q6J("value",(null==pe.invoice?null:pe.invoice.bolt11)||(null==pe.invoice?null:pe.invoice.bolt12))("size",pe.qrWidth)("errorCorrectionLevel","L")}}function l(he,Me){1&he&&(h.TgZ(0,"span",38),h._uU(1,"QR Code Not Applicable"),h.qZA())}function v(he,Me){1&he&&h._UZ(0,"mat-divider",39)}function I(he,Me){if(1&he&&(h.TgZ(0,"div",19)(1,"div",40),h._UZ(2,"fa-icon",41),h.TgZ(3,"span"),h._uU(4),h.qZA()()()),2&he){const pe=h.oxw();h.xp6(2),h.Q6J("icon",pe.faExclamationTriangle),h.xp6(2),h.Oqu(null==pe.invoice?null:pe.invoice.warning_capacity)}}function k(he,Me){1&he&&(h.ynx(0),h._uU(1," (zero amount) "),h.BQk())}function x(he,Me){1&he&&h._UZ(0,"span",47)}const n=function(){return[]};function g(he,Me){if(1&he&&(h.TgZ(0,"div",43)(1,"div",44)(2,"span",45),h._uU(3),h.ALo(4,"number"),h.qZA(),h.YNc(5,x,1,0,"span",46),h.qZA()()),2&he){const pe=h.oxw(2);h.xp6(3),h.hij("",h.lcZ(4,2,(null==pe.invoice?null:pe.invoice.amount_received_msat)/1e3)," Sats"),h.xp6(2),h.Q6J("ngForOf",h.DdM(4,n).constructor(35))}}function W(he,Me){if(1&he&&(h.TgZ(0,"div"),h._uU(1),h.ALo(2,"number"),h.qZA()),2&he){const pe=h.oxw(2);h.xp6(1),h.hij("",h.lcZ(2,1,(null==pe.invoice?null:pe.invoice.amount_received_msat)/1e3)," Sats")}}function O(he,Me){if(1&he&&(h.ynx(0),h.YNc(1,g,6,5,"div",42),h.YNc(2,W,3,3,"div",23),h.BQk()),2&he){const pe=h.oxw();h.xp6(1),h.Q6J("ngIf",pe.flgInvoicePaid),h.xp6(1),h.Q6J("ngIf",!pe.flgInvoicePaid)}}function G(he,Me){1&he&&(h.TgZ(0,"span"),h._uU(1,"-"),h.qZA())}function ge(he,Me){1&he&&h._UZ(0,"mat-spinner",49),2&he&&h.Q6J("diameter",20)}function nt(he,Me){if(1&he&&(h.ynx(0),h.YNc(1,G,2,0,"span",23),h.YNc(2,ge,1,1,"mat-spinner",48),h.BQk()),2&he){const pe=h.oxw();h.xp6(1),h.Q6J("ngIf","unpaid"!==(null==pe.invoice?null:pe.invoice.status)||!pe.flgVersionCompatible),h.xp6(1),h.Q6J("ngIf","unpaid"===(null==pe.invoice?null:pe.invoice.status)&&pe.flgVersionCompatible)}}function Ue(he,Me){if(1&he&&(h.TgZ(0,"div"),h._UZ(1,"mat-divider",25),h.TgZ(2,"div",19)(3,"div",26)(4,"h4",21),h._uU(5,"Payment Hash"),h.qZA(),h.TgZ(6,"span",24),h._uU(7),h.qZA()()(),h._UZ(8,"mat-divider",25),h.TgZ(9,"div",19)(10,"div",26)(11,"h4",21),h._uU(12,"Label"),h.qZA(),h.TgZ(13,"span",24),h._uU(14),h.qZA()()(),h._UZ(15,"mat-divider",25),h.qZA()),2&he){const pe=h.oxw();h.xp6(7),h.Oqu(null==pe.invoice?null:pe.invoice.payment_hash),h.xp6(7),h.Oqu(null==pe.invoice?null:pe.invoice.label)}}function at(he,Me){1&he&&(h.TgZ(0,"p"),h._uU(1,"Show Advanced"),h.qZA())}function ye(he,Me){1&he&&(h.TgZ(0,"p"),h._uU(1,"Hide Advanced"),h.qZA())}function xe(he,Me){if(1&he){const pe=h.EpF();h.TgZ(0,"button",50),h.NdJ("copied",function(Qe){h.CHM(pe);const Pe=h.oxw();return h.KtG(Pe.onCopyPayment(Qe))}),h._uU(1,"Copy Invoice"),h.qZA()}if(2&he){const pe=h.oxw();h.Q6J("payload",(null==pe.invoice?null:pe.invoice.bolt11)||(null==pe.invoice?null:pe.invoice.bolt12))}}function fe(he,Me){if(1&he){const pe=h.EpF();h.TgZ(0,"button",51),h.NdJ("click",function(){h.CHM(pe);const Qe=h.oxw();return h.KtG(Qe.onClose())}),h._uU(1,"OK"),h.qZA()}}const Oe=function(he){return{"display-none":he}},oe=function(he){return{"xs-scroll-y":he}},Fe=function(he,Me){return{"mt-2":he,"mt-1":Me}};let De=(()=>{var he;class Me{constructor(Ve,Qe,Pe,de,rt,Ke){this.dialogRef=Ve,this.data=Qe,this.logger=Pe,this.commonService=de,this.snackBar=rt,this.store=Ke,this.faReceipt=e.dLy,this.faExclamationTriangle=e.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.cu,this.flgInvoicePaid=!1,this.unSubs=[new _.x,new _.x,new _.x,new _.x,new _.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS&&(this.qrWidth=220),this.store.select(y.gc).pipe((0,T.R)(this.unSubs[1])).subscribe(Ve=>{const Qe=this.invoice.status,de=(Ve.listInvoices.invoices||[])?.find(rt=>rt.payment_hash===this.invoice.payment_hash)||null;de&&(this.invoice=de),Qe!==this.invoice.status&&"paid"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(Ve)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(Ve){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+Ve)}ngOnDestroy(){this.unSubs.forEach(Ve=>{Ve.next(null),Ve.complete()})}}return(he=Me).\u0275fac=function(Ve){return new(Ve||he)(h.Y36(t.so),h.Y36(t.WI),h.Y36(P.mQ),h.Y36(d.v),h.Y36(w.ux),h.Y36(C.yh))},he.\u0275cmp=h.Xpm({type:he,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 center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"overflow-wrap","foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["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"],["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(Ve,Qe){if(1&Ve&&(h.TgZ(0,"div",0)(1,"div",1),h.YNc(2,se,1,3,"qr-code",2),h.YNc(3,ce,2,0,"span",3),h.qZA(),h.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),h._UZ(7,"fa-icon",7),h.TgZ(8,"span",8),h._uU(9),h.YNc(10,M,1,3,"span",9),h.YNc(11,i,1,3,"span",10),h.YNc(12,a,1,3,"span",11),h.qZA()(),h.TgZ(13,"button",12),h.NdJ("click",function(){return Qe.onClose()}),h._uU(14,"X"),h.qZA()(),h.TgZ(15,"mat-card-content",13)(16,"div",14)(17,"div",15),h.YNc(18,f,1,3,"qr-code",2),h.YNc(19,l,2,0,"span",16),h.qZA(),h.YNc(20,v,1,0,"mat-divider",17),h.YNc(21,I,5,2,"div",18),h.TgZ(22,"div",19)(23,"div",20)(24,"h4",21),h._uU(25),h.qZA(),h.TgZ(26,"span",22),h._uU(27),h.ALo(28,"number"),h.YNc(29,k,2,0,"ng-container",23),h.qZA()(),h.TgZ(30,"div",20)(31,"h4",21),h._uU(32,"Amount Received"),h.qZA(),h.TgZ(33,"span",24),h.YNc(34,O,3,2,"ng-container",23),h.YNc(35,nt,3,2,"ng-container",23),h.qZA()()(),h._UZ(36,"mat-divider",25),h.TgZ(37,"div",19)(38,"div",20)(39,"h4",21),h._uU(40,"Date Expiry"),h.qZA(),h.TgZ(41,"span",22),h._uU(42),h.ALo(43,"date"),h.qZA()(),h.TgZ(44,"div",20)(45,"h4",21),h._uU(46,"Date Settled"),h.qZA(),h.TgZ(47,"span",22),h._uU(48),h.ALo(49,"date"),h.qZA()()(),h._UZ(50,"mat-divider",25),h.TgZ(51,"div",19)(52,"div",26)(53,"h4",21),h._uU(54,"Description"),h.qZA(),h.TgZ(55,"span",22),h._uU(56),h.qZA()()(),h._UZ(57,"mat-divider",25),h.TgZ(58,"div",19)(59,"div",26)(60,"h4",21),h._uU(61),h.qZA(),h.TgZ(62,"span",24),h._uU(63),h.qZA()()(),h.YNc(64,Ue,16,2,"div",23),h.TgZ(65,"div",27)(66,"button",28),h.NdJ("click",function(){return Qe.onShowAdvanced()}),h.YNc(67,at,2,0,"p",29),h.YNc(68,ye,2,0,"ng-template",null,30,h.W1O),h.qZA(),h.YNc(70,xe,2,1,"button",31),h.YNc(71,fe,2,0,"button",32),h.qZA()()()()()),2&Ve){const Pe=h.MAs(69);h.xp6(1),h.Q6J("fxLayoutAlign",null!=Qe.invoice&&Qe.invoice.bolt11&&""!==(null==Qe.invoice?null:Qe.invoice.bolt11)||null!=Qe.invoice&&Qe.invoice.bolt12&&""!==(null==Qe.invoice?null:Qe.invoice.bolt12)?"center start":"center center")("ngClass",h.VKq(40,Oe,Qe.screenSize===Qe.screenSizeEnum.XS||Qe.screenSize===Qe.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==Qe.invoice?null:Qe.invoice.bolt11)&&""!==(null==Qe.invoice?null:Qe.invoice.bolt11)||(null==Qe.invoice?null:Qe.invoice.bolt12)&&""!==(null==Qe.invoice?null:Qe.invoice.bolt12)),h.xp6(1),h.Q6J("ngIf",!(null!=Qe.invoice&&Qe.invoice.bolt11||null!=Qe.invoice&&Qe.invoice.bolt12)),h.xp6(4),h.Q6J("icon",Qe.faReceipt),h.xp6(2),h.hij(" ",Qe.screenSize===Qe.screenSizeEnum.XS?Qe.newlyAdded?"Created":"Invoice":Qe.newlyAdded?"Invoice Created":"Invoice Information"," "),h.xp6(1),h.Q6J("ngIf","paid"===(null==Qe.invoice?null:Qe.invoice.status)),h.xp6(1),h.Q6J("ngIf","unpaid"===(null==Qe.invoice?null:Qe.invoice.status)),h.xp6(1),h.Q6J("ngIf","expired"===(null==Qe.invoice?null:Qe.invoice.status)),h.xp6(3),h.Q6J("ngClass",h.VKq(42,oe,Qe.screenSize===Qe.screenSizeEnum.XS)),h.xp6(2),h.Q6J("fxLayoutAlign",null!=Qe.invoice&&Qe.invoice.bolt11&&""!==(null==Qe.invoice?null:Qe.invoice.bolt11)||null!=Qe.invoice&&Qe.invoice.bolt12&&""!==(null==Qe.invoice?null:Qe.invoice.bolt12)?"center start":"center center")("ngClass",h.VKq(44,Oe,Qe.screenSize!==Qe.screenSizeEnum.XS&&Qe.screenSize!==Qe.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==Qe.invoice?null:Qe.invoice.bolt11)&&""!==(null==Qe.invoice?null:Qe.invoice.bolt11)||(null==Qe.invoice?null:Qe.invoice.bolt12)&&""!==(null==Qe.invoice?null:Qe.invoice.bolt12)),h.xp6(1),h.Q6J("ngIf",!(null!=Qe.invoice&&Qe.invoice.bolt11||null!=Qe.invoice&&Qe.invoice.bolt12)),h.xp6(1),h.Q6J("ngIf",Qe.screenSize===Qe.screenSizeEnum.XS||Qe.screenSize===Qe.screenSizeEnum.SM),h.xp6(1),h.Q6J("ngIf",null==Qe.invoice?null:Qe.invoice.warning_capacity),h.xp6(4),h.Oqu(Qe.screenSize===Qe.screenSizeEnum.XS?"Amount":"Amount Requested"),h.xp6(2),h.hij(" ",h.lcZ(28,32,(null==Qe.invoice?null:Qe.invoice.amount_msat)/1e3||0)," Sats"),h.xp6(2),h.Q6J("ngIf",!(null!=Qe.invoice&&Qe.invoice.amount_msat)||"0"===(null==Qe.invoice?null:Qe.invoice.amount_msat)),h.xp6(5),h.Q6J("ngIf","paid"===(null==Qe.invoice?null:Qe.invoice.status)),h.xp6(1),h.Q6J("ngIf","paid"!==(null==Qe.invoice?null:Qe.invoice.status)),h.xp6(7),h.Oqu(h.xi3(43,34,1e3*(null==Qe.invoice?null:Qe.invoice.expires_at),"dd/MMM/y HH:mm")),h.xp6(6),h.Oqu(h.xi3(49,37,1e3*(null==Qe.invoice?null:Qe.invoice.paid_at),"dd/MMM/y HH:mm")||"-"),h.xp6(8),h.Oqu((null==Qe.invoice?null:Qe.invoice.description)||"-"),h.xp6(5),h.hij("",null!=Qe.invoice&&Qe.invoice.bolt12?"Bolt12":null!=Qe.invoice&&Qe.invoice.bolt11&&!Qe.invoice.label.includes("keysend-")?"Bolt11":"Keysend"," Invoice"),h.xp6(2),h.Oqu((null==Qe.invoice?null:Qe.invoice.bolt11)||(null==Qe.invoice?null:Qe.invoice.bolt12)),h.xp6(1),h.Q6J("ngIf",Qe.showAdvanced),h.xp6(1),h.Q6J("ngClass",h.WLB(46,Fe,!Qe.showAdvanced,Qe.showAdvanced)),h.xp6(2),h.Q6J("ngIf",!Qe.showAdvanced)("ngIfElse",Pe),h.xp6(3),h.Q6J("ngIf",(null==Qe.invoice?null:Qe.invoice.bolt11)&&""!==(null==Qe.invoice?null:Qe.invoice.bolt11)||(null==Qe.invoice?null:Qe.invoice.bolt12)&&""!==(null==Qe.invoice?null:Qe.invoice.bolt12)),h.xp6(1),h.Q6J("ngIf",!(null!=Qe.invoice&&Qe.invoice.bolt11||null!=Qe.invoice&&Qe.invoice.bolt12))}},dependencies:[L.mk,L.sg,L.O5,D.BN,H.xw,H.Wh,H.yH,V.oO,Y.lW,j.dn,j.dk,Q.d,J.Ou,ee.gM,me.uU,re.y,ie.h,L.JJ,L.uU]}),Me})()},1462:(We,q,m)=>{"use strict";m.d(q,{k:()=>G});var t=m(5412),e=m(2687),_=m(7579),T=m(2722),s=m(7731),y=m(4650),h=m(5043),P=m(62),d=m(7009),w=m(8104),C=m(6895),L=m(2216),D=m(1576),H=m(5829),V=m(4859),Y=m(3546),j=m(4850),Q=m(658),J=m(5199),ee=m(3390);function me(ge,nt){if(1&ge&&y._UZ(0,"qr-code",28),2&ge){const Ue=y.oxw();y.Q6J("value",null==Ue.offer?null:Ue.offer.bolt12)("size",Ue.qrWidth)("errorCorrectionLevel","L")}}function re(ge,nt){1&ge&&(y.TgZ(0,"span",29),y._uU(1,"N/A"),y.qZA())}function ie(ge,nt){if(1&ge&&y._UZ(0,"qr-code",28),2&ge){const Ue=y.oxw();y.Q6J("value",null==Ue.offer?null:Ue.offer.bolt12)("size",Ue.qrWidth)("errorCorrectionLevel","L")}}function se(ge,nt){1&ge&&(y.TgZ(0,"span",30),y._uU(1,"QR Code Not Applicable"),y.qZA())}function ce(ge,nt){1&ge&&y._UZ(0,"mat-divider",31),2&ge&&y.Q6J("inset",!0)}function Ce(ge,nt){1&ge&&y._UZ(0,"mat-divider",19)}function M(ge,nt){if(1&ge&&(y.TgZ(0,"div",15)(1,"div",16)(2,"h4",17),y._uU(3,"Used"),y.qZA(),y.TgZ(4,"span",18),y._uU(5),y.qZA()(),y.TgZ(6,"div",16)(7,"h4",17),y._uU(8,"Single Use"),y.qZA(),y.TgZ(9,"span",18),y._uU(10),y.qZA()()()),2&ge){const Ue=y.oxw(2);y.xp6(5),y.hij(" ",null!=Ue.offer&&Ue.offer.used?null!=Ue.offer&&Ue.offer.used?"Yes":"No":"N/K"," "),y.xp6(5),y.hij(" ",null!=Ue.offer&&Ue.offer.single_use?null!=Ue.offer&&Ue.offer.single_use?"Yes":"No":"N/K"," ")}}function i(ge,nt){1&ge&&y._UZ(0,"mat-divider",19)}function a(ge,nt){if(1&ge&&(y.TgZ(0,"div",15)(1,"div",20)(2,"h4",17),y._uU(3,"Issuer"),y.qZA(),y.TgZ(4,"span",34),y._uU(5),y.qZA()()()),2&ge){const Ue=y.oxw(2);y.xp6(5),y.Oqu(null==Ue.offerDecoded?null:Ue.offerDecoded.offer_issuer)}}function f(ge,nt){1&ge&&y._UZ(0,"mat-divider",19)}function l(ge,nt){if(1&ge&&(y.TgZ(0,"div",15)(1,"div",20)(2,"h4",17),y._uU(3,"Label"),y.qZA(),y.TgZ(4,"span",18),y._uU(5),y.qZA()()()),2&ge){const Ue=y.oxw(2);y.xp6(5),y.Oqu(Ue.offer.label)}}function v(ge,nt){if(1&ge&&(y.TgZ(0,"div"),y.YNc(1,Ce,1,0,"mat-divider",32),y.YNc(2,M,11,2,"div",33),y.YNc(3,i,1,0,"mat-divider",32),y.YNc(4,a,6,1,"div",33),y.YNc(5,f,1,0,"mat-divider",32),y.YNc(6,l,6,1,"div",33),y._UZ(7,"mat-divider",19),y.TgZ(8,"div",15)(9,"div",20)(10,"h4",17),y._uU(11,"Offer ID"),y.qZA(),y.TgZ(12,"span",18),y._uU(13),y.qZA()()(),y._UZ(14,"mat-divider",19),y.TgZ(15,"div",15)(16,"div",20)(17,"h4",17),y._uU(18,"Offer Node ID"),y.qZA(),y.TgZ(19,"span",18),y._uU(20),y.qZA()()(),y._UZ(21,"mat-divider",19),y.qZA()),2&ge){const Ue=y.oxw();y.xp6(1),y.Q6J("ngIf",(null==Ue.offer?null:Ue.offer.used)||(null==Ue.offer?null:Ue.offer.single_use)),y.xp6(1),y.Q6J("ngIf",(null==Ue.offer?null:Ue.offer.used)||(null==Ue.offer?null:Ue.offer.single_use)),y.xp6(1),y.Q6J("ngIf",null==Ue.offerDecoded?null:Ue.offerDecoded.issuer),y.xp6(1),y.Q6J("ngIf",null==Ue.offerDecoded?null:Ue.offerDecoded.issuer),y.xp6(1),y.Q6J("ngIf",Ue.offer.label),y.xp6(1),y.Q6J("ngIf",Ue.offer.label),y.xp6(7),y.Oqu(Ue.offerDecoded.offer_id),y.xp6(7),y.Oqu(null==Ue.offerDecoded?null:Ue.offerDecoded.offer_node_id)}}function I(ge,nt){1&ge&&(y.TgZ(0,"p"),y._uU(1,"Show Advanced"),y.qZA())}function k(ge,nt){1&ge&&(y.TgZ(0,"p"),y._uU(1,"Hide Advanced"),y.qZA())}function x(ge,nt){if(1&ge){const Ue=y.EpF();y.TgZ(0,"button",35),y.NdJ("copied",function(ye){y.CHM(Ue);const xe=y.oxw();return y.KtG(xe.onCopyOffer(ye))}),y._uU(1,"Copy Offer"),y.qZA()}if(2&ge){const Ue=y.oxw();y.Q6J("payload",null==Ue.offer?null:Ue.offer.bolt12)}}function n(ge,nt){if(1&ge){const Ue=y.EpF();y.TgZ(0,"button",36),y.NdJ("click",function(){y.CHM(Ue);const ye=y.oxw();return y.KtG(ye.onClose())}),y._uU(1,"OK"),y.qZA()}}const g=function(ge){return{"display-none":ge}},W=function(ge){return{"xs-scroll-y":ge}},O=function(ge,nt){return{"mt-2":ge,"mt-1":nt}};let G=(()=>{var ge;class nt{constructor(at,ye,xe,fe,Oe,oe){this.dialogRef=at,this.data=ye,this.logger=xe,this.commonService=fe,this.snackBar=Oe,this.dataService=oe,this.faReceipt=e.dLy,this.faExclamationTriangle=e.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.offerDecoded={},this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.cu,this.flgOfferPaid=!1,this.unSubs=[new _.x,new _.x,new _.x,new _.x,new _.x]}ngOnInit(){this.offer=this.data.offer,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS&&(this.qrWidth=220),this.dataService.decodePayment(this.offer.bolt12,!0).pipe((0,T.R)(this.unSubs[1])).subscribe(at=>{this.offerDecoded=at,this.offerDecoded.offer_id&&!this.offerDecoded.offer_amount_msat&&(this.offerDecoded.offer_amount_msat=0)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyOffer(at){this.snackBar.open("Offer copied."),this.logger.info("Copied Text: "+at)}ngOnDestroy(){this.unSubs.forEach(at=>{at.next(null),at.complete()})}}return(ge=nt).\u0275fac=function(at){return new(at||ge)(y.Y36(t.so),y.Y36(t.WI),y.Y36(h.mQ),y.Y36(P.v),y.Y36(d.ux),y.Y36(w.D))},ge.\u0275cmp=y.Xpm({type:ge,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 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(at,ye){if(1&at&&(y.TgZ(0,"div",0)(1,"div",1),y.YNc(2,me,1,3,"qr-code",2),y.YNc(3,re,2,0,"span",3),y.qZA(),y.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),y._UZ(7,"fa-icon",7),y.TgZ(8,"span",8),y._uU(9),y.qZA()(),y.TgZ(10,"button",9),y.NdJ("click",function(){return ye.onClose()}),y._uU(11,"X"),y.qZA()(),y.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),y.YNc(15,ie,1,3,"qr-code",2),y.YNc(16,se,2,0,"span",13),y.qZA(),y.YNc(17,ce,1,1,"mat-divider",14),y.TgZ(18,"div",15)(19,"div",16)(20,"h4",17),y._uU(21,"Amount Requested (Sats)"),y.qZA(),y.TgZ(22,"span",18),y._uU(23),y.ALo(24,"number"),y.qZA()(),y.TgZ(25,"div",16)(26,"h4",17),y._uU(27,"Valid"),y.qZA(),y.TgZ(28,"span",18),y._uU(29),y.qZA()()(),y._UZ(30,"mat-divider",19),y.TgZ(31,"div",15)(32,"div",20)(33,"h4",17),y._uU(34,"Description"),y.qZA(),y.TgZ(35,"span",18),y._uU(36),y.qZA()()(),y._UZ(37,"mat-divider",19),y.TgZ(38,"div",15)(39,"div",20)(40,"h4",17),y._uU(41,"Offer"),y.qZA(),y.TgZ(42,"span",18),y._uU(43),y.qZA()()(),y.YNc(44,v,22,8,"div",21),y.TgZ(45,"div",22)(46,"button",23),y.NdJ("click",function(){return ye.onShowAdvanced()}),y.YNc(47,I,2,0,"p",24),y.YNc(48,k,2,0,"ng-template",null,25,y.W1O),y.qZA(),y.YNc(50,x,2,1,"button",26),y.YNc(51,n,2,0,"button",27),y.qZA()()()()()),2&at){const xe=y.MAs(49);y.xp6(1),y.Q6J("fxLayoutAlign",null!=ye.offer&&ye.offer.bolt12&&""!==(null==ye.offer?null:ye.offer.bolt12)?"center start":"center center")("ngClass",y.VKq(24,g,ye.screenSize===ye.screenSizeEnum.XS||ye.screenSize===ye.screenSizeEnum.SM)),y.xp6(1),y.Q6J("ngIf",(null==ye.offer?null:ye.offer.bolt12)&&""!==(null==ye.offer?null:ye.offer.bolt12)),y.xp6(1),y.Q6J("ngIf",!(null!=ye.offer&&ye.offer.bolt12)||""===(null==ye.offer?null:ye.offer.bolt12)),y.xp6(4),y.Q6J("icon",ye.faReceipt),y.xp6(2),y.Oqu(ye.screenSize===ye.screenSizeEnum.XS?ye.newlyAdded?"Created":"Offer":ye.newlyAdded?"Offer Created":"Offer Information"),y.xp6(3),y.Q6J("ngClass",y.VKq(26,W,ye.screenSize===ye.screenSizeEnum.XS)),y.xp6(2),y.Q6J("fxLayoutAlign",null!=ye.offer&&ye.offer.bolt12&&""!==(null==ye.offer?null:ye.offer.bolt12)?"center start":"center center")("ngClass",y.VKq(28,g,ye.screenSize!==ye.screenSizeEnum.XS&&ye.screenSize!==ye.screenSizeEnum.SM)),y.xp6(1),y.Q6J("ngIf",(null==ye.offer?null:ye.offer.bolt12)&&""!==(null==ye.offer?null:ye.offer.bolt12)),y.xp6(1),y.Q6J("ngIf",!(null!=ye.offer&&ye.offer.bolt12)||""===(null==ye.offer?null:ye.offer.bolt12)),y.xp6(1),y.Q6J("ngIf",ye.screenSize===ye.screenSizeEnum.XS||ye.screenSize===ye.screenSizeEnum.SM),y.xp6(6),y.hij(" ",null!=ye.offerDecoded&&ye.offerDecoded.offer_amount_msat&&0!==(null==ye.offerDecoded?null:ye.offerDecoded.offer_amount_msat)?y.lcZ(24,22,(null==ye.offerDecoded?null:ye.offerDecoded.offer_amount_msat)/1e3):"Open Offer"," "),y.xp6(6),y.hij(" ",null!=ye.offerDecoded&&ye.offerDecoded.valid?null!=ye.offerDecoded&&ye.offerDecoded.valid?"Yes":"No":"N/K"," "),y.xp6(7),y.hij(" ",null==ye.offerDecoded?null:ye.offerDecoded.offer_description," "),y.xp6(7),y.Oqu(null==ye.offer?null:ye.offer.bolt12),y.xp6(1),y.Q6J("ngIf",ye.showAdvanced),y.xp6(1),y.Q6J("ngClass",y.WLB(30,O,!ye.showAdvanced,ye.showAdvanced)),y.xp6(2),y.Q6J("ngIf",!ye.showAdvanced)("ngIfElse",xe),y.xp6(3),y.Q6J("ngIf",(null==ye.offer?null:ye.offer.bolt12)&&""!==(null==ye.offer?null:ye.offer.bolt12)),y.xp6(1),y.Q6J("ngIf",!(null!=ye.offer&&ye.offer.bolt12)||""===(null==ye.offer?null:ye.offer.bolt12))}},dependencies:[C.mk,C.O5,L.BN,D.xw,D.Wh,D.yH,H.oO,V.lW,Y.dn,Y.dk,j.d,Q.uU,J.y,ee.h,C.JJ]}),nt})()},2994:(We,q,m)=>{"use strict";m.d(q,{$W:()=>me,BL:()=>v,Bw:()=>Q,CX:()=>w,DJ:()=>he,EK:()=>M,El:()=>ie,Fd:()=>T,GD:()=>Ce,HG:()=>ee,HI:()=>x,Iy:()=>nt,Lf:()=>ge,Nr:()=>ye,OG:()=>I,On:()=>J,QZ:()=>_,RX:()=>L,SN:()=>C,Sf:()=>oe,TM:()=>O,TW:()=>V,UR:()=>D,WM:()=>at,WO:()=>n,YP:()=>fe,YX:()=>f,Z$:()=>xe,Z8:()=>re,Zr:()=>s,_E:()=>i,aL:()=>Oe,cQ:()=>k,eF:()=>P,eN:()=>H,i:()=>Y,iL:()=>j,iz:()=>d,kL:()=>g,mC:()=>G,n7:()=>Fe,oV:()=>W,pW:()=>l,pd:()=>h,ti:()=>Me,wD:()=>y});var t=m(9653),e=m(7731);const _=(0,t.PH)(e.lr.UPDATE_API_CALL_STATUS_ECL,(0,t.Ky)()),T=(0,t.PH)(e.lr.RESET_ECL_STORE,(0,t.Ky)()),s=(0,t.PH)(e.lr.SET_CHILD_NODE_SETTINGS_ECL,(0,t.Ky)()),y=(0,t.PH)(e.lr.FETCH_PAGE_SETTINGS_ECL),h=(0,t.PH)(e.lr.SET_PAGE_SETTINGS_ECL,(0,t.Ky)()),P=(0,t.PH)(e.lr.SAVE_PAGE_SETTINGS_ECL,(0,t.Ky)()),d=(0,t.PH)(e.lr.FETCH_INFO_ECL,(0,t.Ky)()),w=(0,t.PH)(e.lr.SET_INFO_ECL,(0,t.Ky)()),C=(0,t.PH)(e.lr.FETCH_FEES_ECL),L=(0,t.PH)(e.lr.SET_FEES_ECL,(0,t.Ky)()),D=(0,t.PH)(e.lr.FETCH_CHANNELS_ECL,(0,t.Ky)()),H=(0,t.PH)(e.lr.SET_ACTIVE_CHANNELS_ECL,(0,t.Ky)()),V=(0,t.PH)(e.lr.SET_PENDING_CHANNELS_ECL,(0,t.Ky)()),Y=(0,t.PH)(e.lr.SET_INACTIVE_CHANNELS_ECL,(0,t.Ky)()),j=(0,t.PH)(e.lr.FETCH_ONCHAIN_BALANCE_ECL),Q=(0,t.PH)(e.lr.SET_ONCHAIN_BALANCE_ECL,(0,t.Ky)()),J=(0,t.PH)(e.lr.SET_LIGHTNING_BALANCE_ECL,(0,t.Ky)()),ee=(0,t.PH)(e.lr.SET_CHANNELS_STATUS_ECL,(0,t.Ky)()),me=(0,t.PH)(e.lr.FETCH_PEERS_ECL),re=(0,t.PH)(e.lr.SET_PEERS_ECL,(0,t.Ky)()),ie=(0,t.PH)(e.lr.SAVE_NEW_PEER_ECL,(0,t.Ky)()),Ce=((0,t.PH)(e.lr.NEWLY_ADDED_PEER_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.ADD_PEER_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.DETACH_PEER_ECL,(0,t.Ky)())),M=(0,t.PH)(e.lr.REMOVE_PEER_ECL,(0,t.Ky)()),i=(0,t.PH)(e.lr.GET_NEW_ADDRESS_ECL),f=((0,t.PH)(e.lr.SET_NEW_ADDRESS_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.SAVE_NEW_CHANNEL_ECL,(0,t.Ky)())),l=(0,t.PH)(e.lr.UPDATE_CHANNEL_ECL,(0,t.Ky)()),v=(0,t.PH)(e.lr.CLOSE_CHANNEL_ECL,(0,t.Ky)()),I=(0,t.PH)(e.lr.REMOVE_CHANNEL_ECL,(0,t.Ky)()),k=(0,t.PH)(e.lr.FETCH_PAYMENTS_ECL),x=(0,t.PH)(e.lr.SET_PAYMENTS_ECL,(0,t.Ky)()),n=(0,t.PH)(e.lr.GET_QUERY_ROUTES_ECL,(0,t.Ky)()),g=(0,t.PH)(e.lr.SET_QUERY_ROUTES_ECL,(0,t.Ky)()),W=(0,t.PH)(e.lr.SEND_PAYMENT_ECL,(0,t.Ky)()),O=(0,t.PH)(e.lr.SEND_PAYMENT_STATUS_ECL,(0,t.Ky)()),G=(0,t.PH)(e.lr.FETCH_TRANSACTIONS_ECL),ge=(0,t.PH)(e.lr.SET_TRANSACTIONS_ECL,(0,t.Ky)()),nt=(0,t.PH)(e.lr.SEND_ONCHAIN_FUNDS_ECL,(0,t.Ky)()),at=((0,t.PH)(e.lr.SEND_ONCHAIN_FUNDS_RES_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.FETCH_INVOICES_ECL)),ye=(0,t.PH)(e.lr.SET_INVOICES_ECL,(0,t.Ky)()),xe=(0,t.PH)(e.lr.CREATE_INVOICE_ECL,(0,t.Ky)()),fe=(0,t.PH)(e.lr.ADD_INVOICE_ECL,(0,t.Ky)()),Oe=(0,t.PH)(e.lr.UPDATE_INVOICE_ECL,(0,t.Ky)()),oe=(0,t.PH)(e.lr.PEER_LOOKUP_ECL,(0,t.Ky)()),Fe=(0,t.PH)(e.lr.INVOICE_LOOKUP_ECL,(0,t.Ky)()),he=((0,t.PH)(e.lr.SET_LOOKUP_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.UPDATE_CHANNEL_STATE_ECL,(0,t.Ky)())),Me=(0,t.PH)(e.lr.UPDATE_RELAYED_PAYMENT_ECL,(0,t.Ky)())},3289:(We,q,m)=>{"use strict";m.d(q,{o:()=>ie});var t=m(493),e=m(7579),_=m(9646),T=m(5577),s=m(2722),y=m(4004),h=m(262),P=m(1786),d=m(7731),w=m(7861),C=m(7766),L=m(2994),D=m(2501),H=m(4650),V=m(529),Y=m(9653),j=m(5986),Q=m(62),J=m(5043),ee=m(9116),me=m(7998),re=m(6895);let ie=(()=>{var se;class ce{constructor(M,i,a,f,l,v,I,k,x){this.actions=M,this.httpClient=i,this.store=a,this.sessionService=f,this.commonService=l,this.logger=v,this.router=I,this.wsService=k,this.location=x,this.CHILD_API_URL=d.T5+"/ecl",this.flgInitialized=!1,this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.rawChannelsList=[],this.unSubs=[new e.x,new e.x,new e.x],this.infoFetchECL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_INFO_ECL),(0,T.z)(n=>(this.flgInitialized=!1,this.store.dispatch((0,w.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,w.ac)({payload:d.m6.GET_NODE_INFO})),this.store.dispatch((0,L.QZ)({payload:{action:"FetchInfo",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.GETINFO_API).pipe((0,s.R)(this.actions.pipe((0,t.l4)(d.pg.SET_SELECTED_NODE))),(0,y.U)(g=>(this.logger.info(g),this.initializeRemainingData(g,n.payload.loadPage),this.store.dispatch((0,L.QZ)({payload:{action:"FetchInfo",status:d.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:d.m6.GET_NODE_INFO})),{type:d.lr.SET_INFO_ECL,payload:g||{}})),(0,h.K)(g=>{const W=this.commonService.extractErrorCode(g),O=503===W?"Unable to Connect to Eclair Server.":this.commonService.extractErrorMessage(g);return this.router.navigate(["/error"],{state:{errorCode:W,errorMessage:O}}),this.handleErrorWithoutAlert("FetchInfo",d.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:W,error:O}),(0,_.of)({type:d.pg.VOID})})))))),this.fetchFees=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_FEES_ECL),(0,T.z)(()=>(this.store.dispatch((0,L.QZ)({payload:{action:"FetchFees",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.FEES_API+"/fees").pipe((0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,L.QZ)({payload:{action:"FetchFees",status:d.Bn.COMPLETED}})),{type:d.lr.SET_FEES_ECL,payload:n||{}})),(0,h.K)(n=>(this.handleErrorWithoutAlert("FetchFees",d.m6.NO_SPINNER,"Fetching Fees Failed.",n),(0,_.of)({type:d.pg.VOID})))))))),this.fetchPayments=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_PAYMENTS_ECL),(0,T.z)(()=>(this.store.dispatch((0,L.QZ)({payload:{action:"FetchPayments",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.FEES_API+"/payments").pipe((0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,L.QZ)({payload:{action:"FetchPayments",status:d.Bn.COMPLETED}})),{type:d.lr.SET_PAYMENTS_ECL,payload:n||{}})),(0,h.K)(n=>(this.handleErrorWithoutAlert("FetchPayments",d.m6.NO_SPINNER,"Fetching Payments Failed.",n),(0,_.of)({type:d.pg.VOID})))))))),this.channelsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_CHANNELS_ECL),(0,T.z)(n=>(this.store.dispatch((0,L.QZ)({payload:{action:"FetchChannels",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.CHANNELS_API).pipe((0,y.U)(g=>(this.logger.info(g),this.rawChannelsList=g,this.setChannelsAndStatusAndBalances(),this.store.dispatch((0,L.QZ)({payload:{action:"FetchChannels",status:d.Bn.COMPLETED}})),n.payload&&n.payload.fetchPayments&&this.store.dispatch((0,L.cQ)()),{type:d.pg.VOID})),(0,h.K)(g=>(this.handleErrorWithoutAlert("FetchChannels",d.m6.NO_SPINNER,"Fetching Channels Failed.",g),(0,_.of)({type:d.pg.VOID})))))))),this.fetchOnchainBalance=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_ONCHAIN_BALANCE_ECL),(0,T.z)(()=>(this.store.dispatch((0,L.QZ)({payload:{action:"FetchOnchainBalance",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.ON_CHAIN_API+"/balance"))),(0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,L.QZ)({payload:{action:"FetchOnchainBalance",status:d.Bn.COMPLETED}})),{type:d.lr.SET_ONCHAIN_BALANCE_ECL,payload:n||{}})),(0,h.K)(n=>(this.handleErrorWithoutAlert("FetchOnchainBalance",d.m6.NO_SPINNER,"Fetching Onchain Balances Failed.",n),(0,_.of)({type:d.pg.VOID}))))),this.peersFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_PEERS_ECL),(0,T.z)(()=>(this.store.dispatch((0,L.QZ)({payload:{action:"FetchPeers",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.PEERS_API).pipe((0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,L.QZ)({payload:{action:"FetchPeers",status:d.Bn.COMPLETED}})),{type:d.lr.SET_PEERS_ECL,payload:n||[]})),(0,h.K)(n=>(this.handleErrorWithoutAlert("FetchPeers",d.m6.NO_SPINNER,"Fetching Peers Failed.",n),(0,_.of)({type:d.pg.VOID})))))))),this.getNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.GET_NEW_ADDRESS_ECL),(0,T.z)(()=>(this.store.dispatch((0,w.ac)({payload:d.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+d.vv.ON_CHAIN_API).pipe((0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,w.uO)({payload:d.m6.GENERATE_NEW_ADDRESS})),{type:d.lr.SET_NEW_ADDRESS_ECL,payload:n})),(0,h.K)(n=>(this.handleErrorWithAlert("GetNewAddress",d.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+d.vv.ON_CHAIN_API,n),(0,_.of)({type:d.pg.VOID})))))))),this.setNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SET_NEW_ADDRESS_ECL),(0,y.U)(n=>(this.logger.info(n.payload),n.payload))),{dispatch:!1}),this.saveNewPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SAVE_NEW_PEER_ECL),(0,T.z)(n=>(this.store.dispatch((0,w.ac)({payload:d.m6.CONNECT_PEER})),this.store.dispatch((0,L.QZ)({payload:{action:"SaveNewPeer",status:d.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+d.vv.PEERS_API+(n.payload.id.includes("@")?"?uri=":"?nodeId=")+n.payload.id,{}).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,L.QZ)({payload:{action:"SaveNewPeer",status:d.Bn.COMPLETED}})),g=g||[],this.store.dispatch((0,w.uO)({payload:d.m6.CONNECT_PEER})),this.store.dispatch((0,L.Z8)({payload:g})),{type:d.lr.NEWLY_ADDED_PEER_ECL,payload:{peer:g.find(W=>W.nodeId===(n.payload.id.includes("@")?n.payload.id.substring(0,n.payload.id.indexOf("@")):n.payload.id))}})),(0,h.K)(g=>(this.handleErrorWithoutAlert("SaveNewPeer",d.m6.CONNECT_PEER,"Peer Connection Failed.",g),(0,_.of)({type:d.pg.VOID})))))))),this.detachPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.DETACH_PEER_ECL),(0,T.z)(n=>(this.store.dispatch((0,w.ac)({payload:d.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+d.vv.PEERS_API+"/"+n.payload.nodeId).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,w.uO)({payload:d.m6.DISCONNECT_PEER})),this.store.dispatch((0,w.jW)({payload:"Disconnecting Peer!"})),{type:d.lr.REMOVE_PEER_ECL,payload:{nodeId:n.payload.nodeId}})),(0,h.K)(g=>(this.handleErrorWithAlert("DisconnectPeer",d.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+d.vv.PEERS_API+"/"+n.payload.nodeId,g),(0,_.of)({type:d.pg.VOID})))))))),this.openNewChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SAVE_NEW_CHANNEL_ECL),(0,T.z)(n=>{this.store.dispatch((0,w.ac)({payload:d.m6.OPEN_CHANNEL})),this.store.dispatch((0,L.QZ)({payload:{action:"SaveNewChannel",status:d.Bn.INITIATED}}));const g={nodeId:n.payload.nodeId,fundingSatoshis:n.payload.amount,announceChannel:!n.payload.private};return n.payload.feeRate&&n.payload.feeRate>0&&(g.fundingFeerateSatByte=n.payload.feeRate),this.httpClient.post(this.CHILD_API_URL+d.vv.CHANNELS_API,g).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.QZ)({payload:{action:"SaveNewChannel",status:d.Bn.COMPLETED}})),this.store.dispatch((0,L.$W)()),this.store.dispatch((0,L.iL)()),this.store.dispatch((0,w.uO)({payload:d.m6.OPEN_CHANNEL})),this.store.dispatch((0,w.jW)({payload:"Channel Added Successfully!"})),{type:d.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,h.K)(W=>(this.handleErrorWithoutAlert("SaveNewChannel",d.m6.OPEN_CHANNEL,"Opening Channel Failed.",W),(0,_.of)({type:d.pg.VOID}))))}))),this.updateChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.UPDATE_CHANNEL_ECL),(0,T.z)(n=>{this.store.dispatch((0,w.ac)({payload:d.m6.UPDATE_CHAN_POLICY}));let g="?feeBaseMsat="+n.payload.baseFeeMsat+"&feeProportionalMillionths="+n.payload.feeRate;return g=n.payload.nodeIds?g+"&nodeIds="+n.payload.nodeIds:n.payload.nodeId?g+"&nodeId="+n.payload.nodeId:n.payload.channelIds?g+"&channelIds="+n.payload.channelIds:g+"&channelId="+n.payload.channelId,this.httpClient.post(this.CHILD_API_URL+d.vv.CHANNELS_API+"/updateRelayFee"+g,{}).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,w.uO)({payload:d.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,w.jW)(n.payload.nodeIds||n.payload.channelIds?{payload:"Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:d.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,h.K)(W=>(this.handleErrorWithAlert("UpdateChannels",d.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+d.vv.CHANNELS_API,W),(0,_.of)({type:d.pg.VOID}))))}))),this.closeChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.CLOSE_CHANNEL_ECL),(0,T.z)(n=>(this.store.dispatch((0,w.ac)({payload:n.payload.force?d.m6.FORCE_CLOSE_CHANNEL:d.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+d.vv.CHANNELS_API+"?channelId="+n.payload.channelId+"&force="+n.payload.force).pipe((0,y.U)(g=>(this.logger.info(g),setTimeout(()=>{this.store.dispatch((0,w.uO)({payload:n.payload.force?d.m6.FORCE_CLOSE_CHANNEL:d.m6.CLOSE_CHANNEL})),this.store.dispatch((0,L.UR)({payload:{fetchPayments:!1}})),this.store.dispatch((0,w.jW)({payload:n.payload.force?"Channel Force Closed Successfully!":"Channel Closed Successfully!"}))},2e3),{type:d.pg.VOID})),(0,h.K)(g=>(this.handleErrorWithAlert("CloseChannel",n.payload.force?d.m6.FORCE_CLOSE_CHANNEL:d.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+d.vv.CHANNELS_API,g),(0,_.of)({type:d.pg.VOID})))))))),this.queryRoutesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.GET_QUERY_ROUTES_ECL),(0,T.z)(n=>this.httpClient.get(this.CHILD_API_URL+d.vv.PAYMENTS_API+"/route?nodeId="+n.payload.nodeId+"&amountMsat="+n.payload.amount).pipe((0,y.U)(g=>(this.logger.info(g),{type:d.lr.SET_QUERY_ROUTES_ECL,payload:g})),(0,h.K)(g=>(this.store.dispatch((0,L.kL)({payload:[]})),this.handleErrorWithAlert("GetQueryRoutes",d.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+d.vv.PAYMENTS_API+"/route?nodeId="+n.payload.nodeId+"&amountMsat="+n.payload.amount,g),(0,_.of)({type:d.pg.VOID}))))))),this.setQueryRoutes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SET_QUERY_ROUTES_ECL),(0,y.U)(n=>n.payload)),{dispatch:!1}),this.sendPayment=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SEND_PAYMENT_ECL),(0,T.z)(n=>(this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.store.dispatch((0,w.ac)({payload:d.m6.SEND_PAYMENT})),this.store.dispatch((0,L.QZ)({payload:{action:"SendPayment",status:d.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+d.vv.PAYMENTS_API,n.payload).pipe((0,y.U)(g=>(this.logger.info(g),this.latestPaymentRes=g,setTimeout(()=>{this.flgReceivedPaymentUpdateFromWS||this.handleSendPaymentStatus("Payment Submitted!")},3e3),{type:d.pg.VOID})),(0,h.K)(g=>(this.logger.error("Error: "+JSON.stringify(g)),n.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",d.m6.SEND_PAYMENT,"Send Payment Failed.",g):this.handleErrorWithAlert("SendPayment",d.m6.SEND_PAYMENT,"Send Payment Failed",this.CHILD_API_URL+d.vv.PAYMENTS_API,g),(0,_.of)({type:d.pg.VOID})))))))),this.transactionsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_TRANSACTIONS_ECL),(0,T.z)(()=>(this.store.dispatch((0,L.QZ)({payload:{action:"FetchTransactions",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.ON_CHAIN_API+"/transactions?count=1000&skip=0"))),(0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,L.QZ)({payload:{action:"FetchTransactions",status:d.Bn.COMPLETED}})),{type:d.lr.SET_TRANSACTIONS_ECL,payload:n||[]})),(0,h.K)(n=>(this.handleErrorWithoutAlert("FetchTransactions",d.m6.NO_SPINNER,"Fetching Transactions Failed.",n),(0,_.of)({type:d.pg.VOID}))))),this.SendOnchainFunds=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SEND_ONCHAIN_FUNDS_ECL),(0,T.z)(n=>(this.store.dispatch((0,w.ac)({payload:d.m6.SEND_FUNDS})),this.store.dispatch((0,L.QZ)({payload:{action:"SendOnchainFunds",status:d.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+d.vv.ON_CHAIN_API,n.payload).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,L.QZ)({payload:{action:"SendOnchainFunds",status:d.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:d.m6.SEND_FUNDS})),this.store.dispatch((0,L.iL)()),{type:d.lr.SEND_ONCHAIN_FUNDS_RES_ECL,payload:g})),(0,h.K)(g=>(this.handleErrorWithoutAlert("SendOnchainFunds",d.m6.SEND_FUNDS,"Sending Fund Failed.",g),(0,_.of)({type:d.pg.VOID})))))))),this.createInvoice=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.CREATE_INVOICE_ECL),(0,T.z)(n=>(this.store.dispatch((0,w.ac)({payload:d.m6.CREATE_INVOICE})),this.store.dispatch((0,L.QZ)({payload:{action:"CreateInvoice",status:d.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+d.vv.INVOICES_API,n.payload).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,L.QZ)({payload:{action:"CreateInvoice",status:d.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:d.m6.CREATE_INVOICE})),g.timestamp=Math.round((new Date).getTime()/1e3),g.expiresAt=Math.round(g.timestamp+n.payload.expireIn),g.description=n.payload.description,g.status="unpaid",setTimeout(()=>{this.store.dispatch((0,w.qR)({payload:{data:{invoice:g,newlyAdded:!0,component:C.R}}}))},200),{type:d.lr.ADD_INVOICE_ECL,payload:g})),(0,h.K)(g=>(this.handleErrorWithoutAlert("CreateInvoice",d.m6.CREATE_INVOICE,"Create Invoice Failed.",g),(0,_.of)({type:d.pg.VOID})))))))),this.invoicesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_INVOICES_ECL),(0,T.z)(()=>(this.store.dispatch((0,L.QZ)({payload:{action:"FetchInvoices",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.INVOICES_API).pipe((0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,L.QZ)({payload:{action:"FetchInvoices",status:d.Bn.COMPLETED}})),{type:d.lr.SET_INVOICES_ECL,payload:n})),(0,h.K)(n=>(this.handleErrorWithoutAlert("FetchInvoices",d.m6.NO_SPINNER,"Fetching Invoices Failed.",n),(0,_.of)({type:d.pg.VOID})))))))),this.peerLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.PEER_LOOKUP_ECL),(0,T.z)(n=>(this.store.dispatch((0,w.ac)({payload:d.m6.SEARCHING_NODE})),this.store.dispatch((0,L.QZ)({payload:{action:"Lookup",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.NETWORK_API+"/nodes/"+n.payload).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,L.QZ)({payload:{action:"Lookup",status:d.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:d.m6.SEARCHING_NODE})),{type:d.lr.SET_LOOKUP_ECL,payload:g})),(0,h.K)(g=>(this.handleErrorWithAlert("Lookup",d.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+d.vv.NETWORK_API+"/nodes/"+n.payload,g),(0,_.of)({type:d.pg.VOID})))))))),this.invoiceLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.INVOICE_LOOKUP_ECL),(0,T.z)(n=>(this.store.dispatch((0,w.ac)({payload:d.m6.SEARCHING_INVOICE})),this.store.dispatch((0,L.QZ)({payload:{action:"Lookup",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.INVOICES_API+"/"+n.payload).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,L.QZ)({payload:{action:"Lookup",status:d.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:d.m6.SEARCHING_INVOICE})),this.store.dispatch((0,L.aL)({payload:g})),{type:d.lr.SET_LOOKUP_ECL,payload:g})),(0,h.K)(g=>(this.handleErrorWithoutAlert("Lookup",d.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",g),this.store.dispatch((0,w.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,_.of)({type:d.pg.VOID})))))))),this.setLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SET_LOOKUP_ECL),(0,y.U)(n=>(this.logger.info(n.payload),n.payload))),{dispatch:!1}),this.pageSettingsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_PAGE_SETTINGS_ECL),(0,T.z)(()=>(this.store.dispatch((0,L.QZ)({payload:{action:"FetchPageSettings",status:d.Bn.INITIATED}})),this.httpClient.get(d.vv.PAGE_SETTINGS_API).pipe((0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,L.QZ)({payload:{action:"FetchPageSettings",status:d.Bn.COMPLETED}})),{type:d.lr.SET_PAGE_SETTINGS_ECL,payload:n||[]})),(0,h.K)(n=>(this.handleErrorWithoutAlert("FetchPageSettings",d.m6.NO_SPINNER,"Fetching Page Settings Failed.",n),(0,_.of)({type:d.pg.VOID})))))))),this.savePageSettingsCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SAVE_PAGE_SETTINGS_ECL),(0,T.z)(n=>(this.store.dispatch((0,w.ac)({payload:d.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,L.QZ)({payload:{action:"SavePageSettings",status:d.Bn.INITIATED}})),this.httpClient.post(d.vv.PAGE_SETTINGS_API,n.payload).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,L.QZ)({payload:{action:"SavePageSettings",status:d.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:d.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,w.jW)({payload:"Page Layout Updated Successfully!"})),{type:d.lr.SET_PAGE_SETTINGS_ECL,payload:g||[]})),(0,h.K)(g=>(this.handleErrorWithAlert("SavePageSettings",d.m6.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",d.vv.PAGE_SETTINGS_API,g),(0,_.of)({type:d.pg.VOID})))))))),this.handleSendPaymentStatus=n=>{this.store.dispatch((0,L.QZ)({payload:{action:"SendPayment",status:d.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:d.m6.SEND_PAYMENT})),this.store.dispatch((0,L.TM)({payload:this.latestPaymentRes})),this.store.dispatch((0,L.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,w.jW)({payload:n}))},this.store.select(D.yA).pipe((0,s.R)(this.unSubs[0])).subscribe(n=>{n.FetchInfo.status!==d.Bn.COMPLETED&&n.FetchInfo.status!==d.Bn.ERROR||n.FetchFees.status!==d.Bn.COMPLETED&&n.FetchFees.status!==d.Bn.ERROR||n.FetchOnchainBalance.status!==d.Bn.COMPLETED&&n.FetchOnchainBalance.status!==d.Bn.ERROR||n.FetchChannels.status!==d.Bn.COMPLETED&&n.FetchChannels.status!==d.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,w.uO)({payload:d.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.eclWSMessages.pipe((0,s.R)(this.unSubs[1])).subscribe(n=>{this.logger.info("Received new message from the service: "+JSON.stringify(n));let g="";if(n)switch(n.type){case d.$v.PAYMENT_SENT:n&&n.id&&this.latestPaymentRes===n.id&&(this.flgReceivedPaymentUpdateFromWS=!0,g="Payment Sent: "+(n.paymentHash?"with payment hash "+n.paymentHash:JSON.stringify(n)),this.handleSendPaymentStatus(g));break;case d.$v.PAYMENT_FAILED:n&&n.id&&this.latestPaymentRes===n.id&&(this.flgReceivedPaymentUpdateFromWS=!0,g="Payment Failed: "+(n.failures&&n.failures.length&&n.failures.length>0&&n.failures[0].t?n.failures[0].t:n.failures&&n.failures.length&&n.failures.length>0&&n.failures[0].e&&n.failures[0].e.failureMessage?n.failures[0].e.failureMessage:JSON.stringify(n)),this.handleSendPaymentStatus(g));break;case d.$v.PAYMENT_RECEIVED:this.store.dispatch((0,L.aL)({payload:n}));break;case d.$v.PAYMENT_RELAYED:delete n.source,n.amountIn=Math.round((n.amountIn||0)/1e3),n.amountOut=Math.round((n.amountOut||0)/1e3),n.timestamp.unix&&(n.timestamp=1e3*n.timestamp.unix),this.store.dispatch((0,L.ti)({payload:n}));break;case d.$v.CHANNEL_STATE_CHANGED:"NORMAL"===n.currentState||"CLOSED"===n.currentState?(this.rawChannelsList=this.rawChannelsList?.map(W=>(W.channelId===n.channelId&&W.nodeId===n.remoteNodeId&&(W.state=n.currentState),W)),this.setChannelsAndStatusAndBalances()):this.store.dispatch((0,L.DJ)({payload:n}));break;default:this.logger.info("Received Event from WS: "+JSON.stringify(n))}})}setChannelsAndStatusAndBalances(){let M=0,i=0,a=0,f={localBalance:0,remoteBalance:0},l=[];const v=[],I=[],k={active:{channels:0,capacity:0},inactive:{channels:0,capacity:0},pending:{channels:0,capacity:0}};this.rawChannelsList.forEach((x,n)=>{x&&("NORMAL"===x.state?(M=(x.toLocal||0)+(x.toRemote||0),i+=x.toLocal||0,a+=x.toRemote||0,x.balancedness=0===M?1:+(1-Math.abs(((x.toLocal||0)-(x.toRemote||0))/M)).toFixed(3),l.push(x),k.active.channels=k.active.channels+1,k.active.capacity=k.active.capacity+(x.toLocal||0)):x.state?.includes("WAIT")||x.state?.includes("CLOSING")||x.state?.includes("SYNCING")?(x.state=x.state?.replace(/_/g," "),v.push(x),k.pending.channels=k.pending.channels+1,k.pending.capacity=k.pending.capacity+(x.toLocal||0)):(x.state=x.state?.replace(/_/g," "),I.push(x),k.inactive.channels=k.inactive.channels+1,k.inactive.capacity=k.inactive.capacity+(x.toLocal||0)))}),f={localBalance:i,remoteBalance:a},l=this.commonService.sortDescByKey(l,"balancedness"),this.logger.info("Active Channels: "+JSON.stringify(l)),this.logger.info("Pending Channels: "+JSON.stringify(v)),this.logger.info("Inactive Channels: "+JSON.stringify(I)),this.logger.info("Lightning Balances: "+JSON.stringify(f)),this.logger.info("Channels Status: "+JSON.stringify(k)),this.logger.info("Channel, status and balances: "+JSON.stringify({active:l,pending:v,inactive:I,balances:f,status:k})),this.store.dispatch((0,L.eN)({payload:l})),this.store.dispatch((0,L.TW)({payload:v})),this.store.dispatch((0,L.i)({payload:I})),this.store.dispatch((0,L.On)({payload:f})),this.store.dispatch((0,L.HG)({payload:k}))}initializeRemainingData(M,i){this.sessionService.setItem("eclUnlocked","true");const a={identity_pubkey:M.nodeId,alias:M.alias,testnet:"testnet"===M.network,chains:M.publicAddresses,uris:M.uris,version:M.version,numberOfPendingChannels:0};this.store.dispatch((0,w.ac)({payload:d.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,w._V)({payload:a}));let f=this.location.path();f.includes("/lnd/")?f=f?.replace("/lnd/","/ecl/"):f.includes("/cln/")&&(f=f?.replace("/cln/","/ecl/")),(f.includes("/login")||f.includes("/error")||""===f||"HOME"===i||f.includes("?access-key="))&&(f="/ecl/home"),this.router.navigate([f]),this.store.dispatch((0,L.WM)()),this.store.dispatch((0,L.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,L.SN)()),this.store.dispatch((0,L.iL)()),this.store.dispatch((0,L.$W)())}handleErrorWithoutAlert(M,i,a,f){this.logger.error("ERROR IN: "+M+"\n"+JSON.stringify(f)),401===f.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:i})),this.store.dispatch((0,L.QZ)({payload:{action:M,status:d.Bn.ERROR,statusCode:f.status.toString(),message:this.commonService.extractErrorMessage(f,a)}})))}handleErrorWithAlert(M,i,a,f,l){if(this.logger.error(l),401===l.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:i}));const v=this.commonService.extractErrorMessage(l);this.store.dispatch((0,w.qR)({payload:{data:{type:"ERROR",alertTitle:a,message:{code:l.status,message:v,URL:f},component:P.H}}})),this.store.dispatch((0,L.QZ)({payload:{action:M,status:d.Bn.ERROR,statusCode:l.status.toString(),message:v,URL:f}}))}}ngOnDestroy(){this.unSubs.forEach(M=>{M.next(null),M.complete()})}}return(se=ce).\u0275fac=function(M){return new(M||se)(H.LFG(t.eX),H.LFG(V.eN),H.LFG(Y.yh),H.LFG(j.m),H.LFG(Q.v),H.LFG(J.mQ),H.LFG(ee.F0),H.LFG(me.d),H.LFG(re.Ye))},se.\u0275prov=H.Yz7({token:se,factory:se.\u0275fac}),ce})()},2501:(We,q,m)=>{"use strict";m.d(q,{Bo:()=>j,Ef:()=>Y,JG:()=>w,LR:()=>_,PP:()=>d,T$:()=>y,Xz:()=>H,dx:()=>V,kY:()=>Q,nF:()=>T,yA:()=>P,yD:()=>s});var t=m(9653);const e=(0,t.ZF)("ecl"),_=(0,t.P1)(e,J=>J.nodeSettings),T=(0,t.P1)(e,J=>({pageSettings:J.pageSettings,apiCallStatus:J.apisCallStatus.FetchPageSettings})),s=(0,t.P1)(e,J=>J.information),y=(0,t.P1)(e,J=>({information:J.information,apiCallStatus:J.apisCallStatus.FetchInfo})),P=((0,t.P1)(e,J=>J.apisCallStatus.FetchInfo),(0,t.P1)(e,J=>J.apisCallStatus)),d=(0,t.P1)(e,J=>({payments:J.payments,apiCallStatus:J.apisCallStatus.FetchPayments})),w=(0,t.P1)(e,J=>({fees:J.fees,apiCallStatus:J.apisCallStatus.FetchFees})),H=((0,t.P1)(e,J=>({activeChannels:J.activeChannels,apiCallStatus:J.apisCallStatus.FetchChannels})),(0,t.P1)(e,J=>({pendingChannels:J.pendingChannels,apiCallStatus:J.apisCallStatus.FetchChannels})),(0,t.P1)(e,J=>({inactiveChannels:J.inactiveChannels,apiCallStatus:J.apisCallStatus.FetchChannels})),(0,t.P1)(e,J=>({activeChannels:J.activeChannels,pendingChannels:J.pendingChannels,inactiveChannels:J.inactiveChannels,lightningBalance:J.lightningBalance,channelsStatus:J.channelsStatus,apiCallStatus:J.apisCallStatus.FetchChannels}))),V=(0,t.P1)(e,J=>({transactions:J.transactions,apiCallStatus:J.apisCallStatus.FetchTransactions})),Y=(0,t.P1)(e,J=>({invoices:J.invoices,apiCallStatus:J.apisCallStatus.FetchInvoices})),j=(0,t.P1)(e,J=>({peers:J.peers,apiCallStatus:J.apisCallStatus.FetchPeers})),Q=(0,t.P1)(e,J=>({onchainBalance:J.onchainBalance,apiCallStatus:J.apisCallStatus.FetchOnchainBalance}))},7766:(We,q,m)=>{"use strict";m.d(q,{R:()=>ye});var t=m(5412),e=m(2687),_=m(7579),T=m(2722),s=m(7731),y=m(2501),h=m(4650),P=m(5043),d=m(62),w=m(7009),C=m(9653),L=m(6895),D=m(2216),H=m(1576),V=m(5829),Y=m(4859),j=m(3546),Q=m(4850),J=m(1572),ee=m(658),me=m(5199),re=m(3390);function ie(xe,fe){if(1&xe&&h._UZ(0,"qr-code",29),2&xe){const Oe=h.oxw();h.Q6J("value",null==Oe.invoice?null:Oe.invoice.serialized)("size",Oe.qrWidth)("errorCorrectionLevel","L")}}function se(xe,fe){1&xe&&(h.TgZ(0,"span",30),h._uU(1,"N/A"),h.qZA())}function ce(xe,fe){if(1&xe&&h._UZ(0,"qr-code",29),2&xe){const Oe=h.oxw();h.Q6J("value",null==Oe.invoice?null:Oe.invoice.serialized)("size",Oe.qrWidth)("errorCorrectionLevel","L")}}function Ce(xe,fe){1&xe&&(h.TgZ(0,"span",31),h._uU(1,"QR Code Not Applicable"),h.qZA())}function M(xe,fe){1&xe&&h._UZ(0,"mat-divider",32),2&xe&&h.Q6J("inset",!0)}function i(xe,fe){1&xe&&(h.ynx(0),h._uU(1," (zero amount) "),h.BQk())}function a(xe,fe){1&xe&&h._UZ(0,"span",38)}const f=function(){return[]};function l(xe,fe){if(1&xe&&(h.TgZ(0,"div",34)(1,"div",35)(2,"span",36),h._uU(3),h.ALo(4,"number"),h.qZA(),h.YNc(5,a,1,0,"span",37),h.qZA()()),2&xe){const Oe=h.oxw(2);h.xp6(3),h.hij("",h.lcZ(4,2,null==Oe.invoice?null:Oe.invoice.amountSettled)," Sats"),h.xp6(2),h.Q6J("ngForOf",h.DdM(4,f).constructor(35))}}function v(xe,fe){if(1&xe&&(h.TgZ(0,"div"),h._uU(1),h.ALo(2,"number"),h.qZA()),2&xe){const Oe=h.oxw(2);h.xp6(1),h.hij("",h.lcZ(2,1,null==Oe.invoice?null:Oe.invoice.amountSettled)," Sats")}}function I(xe,fe){if(1&xe&&(h.ynx(0),h.YNc(1,l,6,5,"div",33),h.YNc(2,v,3,3,"div",19),h.BQk()),2&xe){const Oe=h.oxw();h.xp6(1),h.Q6J("ngIf",Oe.flgInvoicePaid),h.xp6(1),h.Q6J("ngIf",!Oe.flgInvoicePaid)}}function k(xe,fe){1&xe&&(h.TgZ(0,"span"),h._uU(1,"-"),h.qZA())}function x(xe,fe){1&xe&&h._UZ(0,"mat-spinner",40),2&xe&&h.Q6J("diameter",20)}function n(xe,fe){if(1&xe&&(h.ynx(0),h.YNc(1,k,2,0,"span",19),h.YNc(2,x,1,1,"mat-spinner",39),h.BQk()),2&xe){const Oe=h.oxw();h.xp6(1),h.Q6J("ngIf","unpaid"!==(null==Oe.invoice?null:Oe.invoice.status)||!Oe.flgVersionCompatible),h.xp6(1),h.Q6J("ngIf","unpaid"===(null==Oe.invoice?null:Oe.invoice.status)&&Oe.flgVersionCompatible)}}function g(xe,fe){if(1&xe&&(h.TgZ(0,"div"),h._UZ(1,"mat-divider",20),h.TgZ(2,"div",15)(3,"div",41)(4,"h4",17),h._uU(5,"Date Expiry"),h.qZA(),h.TgZ(6,"span",18),h._uU(7),h.ALo(8,"date"),h.qZA()(),h.TgZ(9,"div",42)(10,"h4",17),h._uU(11,"Date Settled"),h.qZA(),h.TgZ(12,"span",21),h._uU(13),h.ALo(14,"date"),h.qZA()()(),h._UZ(15,"mat-divider",20),h.TgZ(16,"div",15)(17,"div",22)(18,"h4",17),h._uU(19,"Payment Hash"),h.qZA(),h.TgZ(20,"span",21),h._uU(21),h.qZA()()(),h._UZ(22,"mat-divider",20),h.TgZ(23,"div",15)(24,"div",22)(25,"h4",17),h._uU(26,"Node ID"),h.qZA(),h.TgZ(27,"span",21),h._uU(28),h.qZA()()(),h._UZ(29,"mat-divider",20),h.qZA()),2&xe){const Oe=h.oxw();h.xp6(7),h.Oqu(h.xi3(8,4,1e3*(null==Oe.invoice?null:Oe.invoice.expiresAt),"dd/MMM/y HH:mm")),h.xp6(6),h.Oqu(h.xi3(14,7,1e3*(null==Oe.invoice?null:Oe.invoice.receivedAt),"dd/MMM/y HH:mm")),h.xp6(8),h.Oqu(null==Oe.invoice?null:Oe.invoice.paymentHash),h.xp6(7),h.Oqu(null==Oe.invoice?null:Oe.invoice.nodeId)}}function W(xe,fe){1&xe&&(h.TgZ(0,"p"),h._uU(1,"Show Advanced"),h.qZA())}function O(xe,fe){1&xe&&(h.TgZ(0,"p"),h._uU(1,"Hide Advanced"),h.qZA())}function G(xe,fe){if(1&xe){const Oe=h.EpF();h.TgZ(0,"button",43),h.NdJ("copied",function(Fe){h.CHM(Oe);const De=h.oxw();return h.KtG(De.onCopyPayment(Fe))}),h._uU(1,"Copy Invoice"),h.qZA()}if(2&xe){const Oe=h.oxw();h.Q6J("payload",null==Oe.invoice?null:Oe.invoice.serialized)}}function ge(xe,fe){if(1&xe){const Oe=h.EpF();h.TgZ(0,"button",44),h.NdJ("click",function(){h.CHM(Oe);const Fe=h.oxw();return h.KtG(Fe.onClose())}),h._uU(1,"OK"),h.qZA()}}const nt=function(xe){return{"display-none":xe}},Ue=function(xe){return{"xs-scroll-y":xe}},at=function(xe,fe){return{"mt-2":xe,"mt-1":fe}};let ye=(()=>{var xe;class fe{constructor(oe,Fe,De,he,Me,pe){this.dialogRef=oe,this.data=Fe,this.logger=De,this.commonService=he,this.snackBar=Me,this.store=pe,this.faReceipt=e.dLy,this.faExclamationTriangle=e.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.cu,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new _.x,new _.x,new _.x,new _.x,new _.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS&&(this.qrWidth=220),this.store.select(y.yD).pipe((0,T.R)(this.unSubs[0])).subscribe(oe=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(oe.version,"0.5.0")}),this.store.select(y.Ef).pipe((0,T.R)(this.unSubs[1])).subscribe(oe=>{const Fe=this.invoice.status,he=(oe.invoices&&oe.invoices.length>0?oe.invoices:[])?.find(Me=>Me.paymentHash===this.invoice.paymentHash)||null;he&&(this.invoice=he),Fe!==this.invoice.status&&"received"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(oe)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(oe){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+oe)}ngOnDestroy(){this.unSubs.forEach(oe=>{oe.next(null),oe.complete()})}}return(xe=fe).\u0275fac=function(oe){return new(oe||xe)(h.Y36(t.so),h.Y36(t.WI),h.Y36(P.mQ),h.Y36(d.v),h.Y36(w.ux),h.Y36(C.yh))},xe.\u0275cmp=h.Xpm({type:xe,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 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(oe,Fe){if(1&oe&&(h.TgZ(0,"div",0)(1,"div",1),h.YNc(2,ie,1,3,"qr-code",2),h.YNc(3,se,2,0,"span",3),h.qZA(),h.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),h._UZ(7,"fa-icon",7),h.TgZ(8,"span",8),h._uU(9),h.qZA()(),h.TgZ(10,"button",9),h.NdJ("click",function(){return Fe.onClose()}),h._uU(11,"X"),h.qZA()(),h.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),h.YNc(15,ce,1,3,"qr-code",2),h.YNc(16,Ce,2,0,"span",13),h.qZA(),h.YNc(17,M,1,1,"mat-divider",14),h.TgZ(18,"div",15)(19,"div",16)(20,"h4",17),h._uU(21,"Amount Requested"),h.qZA(),h.TgZ(22,"span",18),h._uU(23),h.ALo(24,"number"),h.YNc(25,i,2,0,"ng-container",19),h.qZA()(),h.TgZ(26,"div",16)(27,"h4",17),h._uU(28,"Amount Settled"),h.qZA(),h.TgZ(29,"span",18),h.YNc(30,I,3,2,"ng-container",19),h.YNc(31,n,3,2,"ng-container",19),h.qZA()()(),h._UZ(32,"mat-divider",20),h.TgZ(33,"div",15)(34,"div",16)(35,"h4",17),h._uU(36,"Date Created"),h.qZA(),h.TgZ(37,"span",21),h._uU(38),h.ALo(39,"date"),h.qZA()(),h.TgZ(40,"div",16)(41,"h4",17),h._uU(42,"Status"),h.qZA(),h.TgZ(43,"span",21),h._uU(44),h.ALo(45,"titlecase"),h.qZA()()(),h._UZ(46,"mat-divider",20),h.TgZ(47,"div",15)(48,"div",22)(49,"h4",17),h._uU(50,"Description"),h.qZA(),h.TgZ(51,"span",18),h._uU(52),h.qZA()()(),h._UZ(53,"mat-divider",20),h.TgZ(54,"div",15)(55,"div",22)(56,"h4",17),h._uU(57,"Invoice"),h.qZA(),h.TgZ(58,"span",21),h._uU(59),h.qZA()()(),h.YNc(60,g,30,10,"div",19),h.TgZ(61,"div",23)(62,"button",24),h.NdJ("click",function(){return Fe.onShowAdvanced()}),h.YNc(63,W,2,0,"p",25),h.YNc(64,O,2,0,"ng-template",null,26,h.W1O),h.qZA(),h.YNc(66,G,2,1,"button",27),h.YNc(67,ge,2,0,"button",28),h.qZA()()()()()),2&oe){const De=h.MAs(65);h.xp6(1),h.Q6J("fxLayoutAlign",null!=Fe.invoice&&Fe.invoice.serialized&&""!==(null==Fe.invoice?null:Fe.invoice.serialized)?"center start":"center center")("ngClass",h.VKq(33,nt,Fe.screenSize===Fe.screenSizeEnum.XS||Fe.screenSize===Fe.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==Fe.invoice?null:Fe.invoice.serialized)&&""!==(null==Fe.invoice?null:Fe.invoice.serialized)),h.xp6(1),h.Q6J("ngIf",!(null!=Fe.invoice&&Fe.invoice.serialized)||""===(null==Fe.invoice?null:Fe.invoice.serialized)),h.xp6(4),h.Q6J("icon",Fe.faReceipt),h.xp6(2),h.Oqu(Fe.screenSize===Fe.screenSizeEnum.XS?Fe.newlyAdded?"Created":"Invoice":Fe.newlyAdded?"Invoice Created":"Invoice Information"),h.xp6(3),h.Q6J("ngClass",h.VKq(35,Ue,Fe.screenSize===Fe.screenSizeEnum.XS)),h.xp6(2),h.Q6J("fxLayoutAlign",null!=Fe.invoice&&Fe.invoice.serialized&&""!==(null==Fe.invoice?null:Fe.invoice.serialized)?"center start":"center center")("ngClass",h.VKq(37,nt,Fe.screenSize!==Fe.screenSizeEnum.XS&&Fe.screenSize!==Fe.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==Fe.invoice?null:Fe.invoice.serialized)&&""!==(null==Fe.invoice?null:Fe.invoice.serialized)),h.xp6(1),h.Q6J("ngIf",!(null!=Fe.invoice&&Fe.invoice.serialized)||""===(null==Fe.invoice?null:Fe.invoice.serialized)),h.xp6(1),h.Q6J("ngIf",Fe.screenSize===Fe.screenSizeEnum.XS||Fe.screenSize===Fe.screenSizeEnum.SM),h.xp6(6),h.hij("",h.lcZ(24,26,(null==Fe.invoice?null:Fe.invoice.amount)||0)," Sats"),h.xp6(2),h.Q6J("ngIf",!(null!=Fe.invoice&&Fe.invoice.amount)||"0"===(null==Fe.invoice?null:Fe.invoice.amount)),h.xp6(5),h.Q6J("ngIf",null==Fe.invoice?null:Fe.invoice.amountSettled),h.xp6(1),h.Q6J("ngIf",!(null!=Fe.invoice&&Fe.invoice.amountSettled)),h.xp6(7),h.Oqu(h.xi3(39,28,1e3*(null==Fe.invoice?null:Fe.invoice.timestamp),"dd/MMM/y HH:mm")),h.xp6(6),h.Oqu(h.lcZ(45,31,null==Fe.invoice?null:Fe.invoice.status)),h.xp6(8),h.Oqu((null==Fe.invoice?null:Fe.invoice.description)||"-"),h.xp6(7),h.Oqu((null==Fe.invoice?null:Fe.invoice.serialized)||"N/A"),h.xp6(1),h.Q6J("ngIf",Fe.showAdvanced),h.xp6(1),h.Q6J("ngClass",h.WLB(39,at,!Fe.showAdvanced,Fe.showAdvanced)),h.xp6(2),h.Q6J("ngIf",!Fe.showAdvanced)("ngIfElse",De),h.xp6(3),h.Q6J("ngIf",(null==Fe.invoice?null:Fe.invoice.serialized)&&""!==(null==Fe.invoice?null:Fe.invoice.serialized)),h.xp6(1),h.Q6J("ngIf",!(null!=Fe.invoice&&Fe.invoice.serialized)||""===(null==Fe.invoice?null:Fe.invoice.serialized))}},dependencies:[L.mk,L.sg,L.O5,D.BN,H.xw,H.Wh,H.yH,V.oO,Y.lW,j.dn,j.dk,Q.d,J.Ou,ee.uU,me.y,re.h,L.JJ,L.rS,L.uU]}),fe})()},6523:(We,q,m)=>{"use strict";m.d(q,{$A:()=>Ie,$W:()=>C,BL:()=>k,B_:()=>ge,Bl:()=>re,CX:()=>w,Cp:()=>g,EK:()=>Y,El:()=>D,Fr:()=>Gt,HI:()=>Me,JT:()=>s,Jl:()=>ie,Jo:()=>Nt,Lf:()=>oe,Ll:()=>T,Ly:()=>Fe,Nr:()=>ye,OG:()=>x,PC:()=>_,QJ:()=>je,RX:()=>me,Rd:()=>j,Rv:()=>se,SN:()=>ee,Sf:()=>qe,TW:()=>a,UH:()=>De,UR:()=>Ce,Vv:()=>n,WM:()=>at,WO:()=>zt,Wi:()=>Ke,YP:()=>J,YX:()=>I,Z7:()=>i,Z8:()=>L,Zh:()=>f,_E:()=>de,_L:()=>l,aL:()=>xe,as:()=>M,cQ:()=>he,dV:()=>Qe,eF:()=>P,fu:()=>Ut,kL:()=>xt,ks:()=>ce,mC:()=>Oe,n7:()=>X,oV:()=>pe,pW:()=>v,pd:()=>h,qY:()=>fe,sQ:()=>d,tb:()=>G,u0:()=>it,vV:()=>nt,wD:()=>y,xG:()=>be,y2:()=>Ge,yZ:()=>mt,z:()=>V});var t=m(9653),e=m(7731);const _=(0,t.PH)(e.uR.UPDATE_API_CALL_STATUS_LND,(0,t.Ky)()),T=(0,t.PH)(e.uR.RESET_LND_STORE,(0,t.Ky)()),s=(0,t.PH)(e.uR.SET_CHILD_NODE_SETTINGS_LND,(0,t.Ky)()),y=(0,t.PH)(e.uR.FETCH_PAGE_SETTINGS_LND),h=(0,t.PH)(e.uR.SET_PAGE_SETTINGS_LND,(0,t.Ky)()),P=(0,t.PH)(e.uR.SAVE_PAGE_SETTINGS_LND,(0,t.Ky)()),d=(0,t.PH)(e.uR.FETCH_INFO_LND,(0,t.Ky)()),w=(0,t.PH)(e.uR.SET_INFO_LND,(0,t.Ky)()),C=(0,t.PH)(e.uR.FETCH_PEERS_LND),L=(0,t.PH)(e.uR.SET_PEERS_LND,(0,t.Ky)()),D=(0,t.PH)(e.uR.SAVE_NEW_PEER_LND,(0,t.Ky)()),V=((0,t.PH)(e.uR.NEWLY_ADDED_PEER_LND,(0,t.Ky)()),(0,t.PH)(e.uR.DETACH_PEER_LND,(0,t.Ky)())),Y=(0,t.PH)(e.uR.REMOVE_PEER_LND,(0,t.Ky)()),j=(0,t.PH)(e.uR.SAVE_NEW_INVOICE_LND,(0,t.Ky)()),J=((0,t.PH)(e.uR.NEWLY_SAVED_INVOICE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.ADD_INVOICE_LND,(0,t.Ky)())),ee=(0,t.PH)(e.uR.FETCH_FEES_LND),me=(0,t.PH)(e.uR.SET_FEES_LND,(0,t.Ky)()),re=(0,t.PH)(e.uR.FETCH_BLOCKCHAIN_BALANCE_LND),ie=(0,t.PH)(e.uR.SET_BLOCKCHAIN_BALANCE_LND,(0,t.Ky)()),se=(0,t.PH)(e.uR.FETCH_NETWORK_LND),ce=(0,t.PH)(e.uR.SET_NETWORK_LND,(0,t.Ky)()),Ce=(0,t.PH)(e.uR.FETCH_CHANNELS_LND),M=(0,t.PH)(e.uR.SET_CHANNELS_LND,(0,t.Ky)()),i=(0,t.PH)(e.uR.FETCH_PENDING_CHANNELS_LND),a=(0,t.PH)(e.uR.SET_PENDING_CHANNELS_LND,(0,t.Ky)()),f=(0,t.PH)(e.uR.FETCH_CLOSED_CHANNELS_LND),l=(0,t.PH)(e.uR.SET_CLOSED_CHANNELS_LND,(0,t.Ky)()),v=(0,t.PH)(e.uR.UPDATE_CHANNEL_LND,(0,t.Ky)()),I=(0,t.PH)(e.uR.SAVE_NEW_CHANNEL_LND,(0,t.Ky)()),k=(0,t.PH)(e.uR.CLOSE_CHANNEL_LND,(0,t.Ky)()),x=(0,t.PH)(e.uR.REMOVE_CHANNEL_LND,(0,t.Ky)()),n=(0,t.PH)(e.uR.BACKUP_CHANNELS_LND,(0,t.Ky)()),g=(0,t.PH)(e.uR.VERIFY_CHANNEL_LND,(0,t.Ky)()),G=((0,t.PH)(e.uR.BACKUP_CHANNELS_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.VERIFY_CHANNEL_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.RESTORE_CHANNELS_LIST_LND)),ge=(0,t.PH)(e.uR.SET_RESTORE_CHANNELS_LIST_LND,(0,t.Ky)()),nt=(0,t.PH)(e.uR.RESTORE_CHANNELS_LND,(0,t.Ky)()),at=((0,t.PH)(e.uR.RESTORE_CHANNELS_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.FETCH_INVOICES_LND,(0,t.Ky)())),ye=(0,t.PH)(e.uR.SET_INVOICES_LND,(0,t.Ky)()),xe=(0,t.PH)(e.uR.UPDATE_INVOICE_LND,(0,t.Ky)()),fe=(0,t.PH)(e.uR.UPDATE_PAYMENT_LND,(0,t.Ky)()),Oe=(0,t.PH)(e.uR.FETCH_TRANSACTIONS_LND),oe=(0,t.PH)(e.uR.SET_TRANSACTIONS_LND,(0,t.Ky)()),Fe=(0,t.PH)(e.uR.FETCH_UTXOS_LND),De=(0,t.PH)(e.uR.SET_UTXOS_LND,(0,t.Ky)()),he=(0,t.PH)(e.uR.FETCH_PAYMENTS_LND,(0,t.Ky)()),Me=(0,t.PH)(e.uR.SET_PAYMENTS_LND,(0,t.Ky)()),pe=(0,t.PH)(e.uR.SEND_PAYMENT_LND,(0,t.Ky)()),Qe=((0,t.PH)(e.uR.SEND_PAYMENT_STATUS_LND,(0,t.Ky)()),(0,t.PH)(e.uR.FETCH_GRAPH_NODE_LND,(0,t.Ky)())),de=((0,t.PH)(e.uR.SET_GRAPH_NODE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.GET_NEW_ADDRESS_LND,(0,t.Ky)())),Ke=((0,t.PH)(e.uR.SET_NEW_ADDRESS_LND,(0,t.Ky)()),(0,t.PH)(e.uR.SET_CHANNEL_TRANSACTION_LND,(0,t.Ky)())),Ut=((0,t.PH)(e.uR.SET_CHANNEL_TRANSACTION_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.GEN_SEED_LND,(0,t.Ky)())),Ge=((0,t.PH)(e.uR.GEN_SEED_RESPONSE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.INIT_WALLET_LND,(0,t.Ky)())),be=((0,t.PH)(e.uR.INIT_WALLET_RESPONSE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.UNLOCK_WALLET_LND,(0,t.Ky)())),qe=(0,t.PH)(e.uR.PEER_LOOKUP_LND,(0,t.Ky)()),Ie=(0,t.PH)(e.uR.CHANNEL_LOOKUP_LND,(0,t.Ky)()),X=(0,t.PH)(e.uR.INVOICE_LOOKUP_LND,(0,t.Ky)()),mt=(0,t.PH)(e.uR.PAYMENT_LOOKUP_LND,(0,t.Ky)()),it=((0,t.PH)(e.uR.SET_LOOKUP_LND,(0,t.Ky)()),(0,t.PH)(e.uR.GET_FORWARDING_HISTORY_LND,(0,t.Ky)())),je=(0,t.PH)(e.uR.SET_FORWARDING_HISTORY_LND,(0,t.Ky)()),zt=(0,t.PH)(e.uR.GET_QUERY_ROUTES_LND,(0,t.Ky)()),xt=(0,t.PH)(e.uR.SET_QUERY_ROUTES_LND,(0,t.Ky)()),Nt=(0,t.PH)(e.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),Gt=(0,t.PH)(e.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,(0,t.Ky)())},711:(We,q,m)=>{"use strict";m.d(q,{l:()=>ce});var t=m(493),e=m(7579),_=m(9646),T=m(5577),s=m(2722),y=m(4004),h=m(262),P=m(1365),d=m(8627),w=m(1786),C=m(7731),L=m(7861),D=m(6523),H=m(6529),V=m(4650),Y=m(529),j=m(9653),Q=m(5043),J=m(62),ee=m(5986),me=m(5412),re=m(9116),ie=m(7998),se=m(6895);let ce=(()=>{var Ce;class M{constructor(a,f,l,v,I,k,x,n,g,W){this.actions=a,this.httpClient=f,this.store=l,this.logger=v,this.commonService=I,this.sessionService=k,this.dialog=x,this.router=n,this.wsService=g,this.location=W,this.CHILD_API_URL=C.T5+"/lnd",this.invoicesPageSettings=C.gK.find(O=>"transactions"===O.pageId)?.tables.find(O=>"invoices"===O.tableId),this.paymentsPageSettings=C.gK.find(O=>"transactions"===O.pageId)?.tables.find(O=>"payments"===O.tableId),this.flgInitialized=!1,this.unSubs=[new e.x,new e.x],this.infoFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.FETCH_INFO_LND),(0,T.z)(O=>(this.flgInitialized=!1,this.store.dispatch((0,L.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,L.ts)()),this.store.dispatch((0,L.ac)({payload:C.m6.GET_NODE_INFO})),this.store.dispatch((0,D.PC)({payload:{action:"FetchInfo",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.GETINFO_API).pipe((0,s.R)(this.actions.pipe((0,t.l4)(C.pg.SET_SELECTED_NODE))),(0,y.U)(G=>(this.logger.info(G),G.chains&&G.chains.length&&G.chains[0]&&("string"==typeof G.chains[0]&&G.chains[0].toLowerCase().indexOf("bitcoin")<0||"object"==typeof G.chains[0]&&G.chains[0].hasOwnProperty("chain")&&G.chains[0].chain&&G.chains[0].chain.toLowerCase().indexOf("bitcoin")<0)?(this.store.dispatch((0,D.PC)({payload:{action:"FetchInfo",status:C.Bn.COMPLETED}})),this.store.dispatch((0,L.ts)()),this.store.dispatch((0,L.qR)({payload:{data:{type:C.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}})),{type:C.pg.LOGOUT}):G.identity_pubkey?(G.lnImplementation="LND",this.initializeRemainingData(G,O.payload.loadPage),this.store.dispatch((0,D.PC)({payload:{action:"FetchInfo",status:C.Bn.COMPLETED}})),this.store.dispatch((0,L.ts)()),{type:C.uR.SET_INFO_LND,payload:G||{}}):(this.store.dispatch((0,D.PC)({payload:{action:"FetchInfo",status:C.Bn.COMPLETED}})),this.store.dispatch((0,L.ts)()),this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),{type:C.uR.SET_INFO_LND,payload:{}}))),(0,h.K)(G=>{if("string"==typeof G.error.error&&G.error.error.includes("Not Found")||"string"==typeof G.error.error&&G.error.error.includes("wallet locked")||502===G.status&&!G.error.message.includes("Bad or Missing Macaroon"))this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),this.handleErrorWithoutAlert("FetchInfo",C.m6.GET_NODE_INFO,"Fetching Node Info Failed.",G);else if("string"==typeof G.error.error&&G.error.error.includes("starting up")&&500===G.status)setTimeout(()=>{this.store.dispatch((0,D.sQ)({payload:{loadPage:"HOME"}}))},2e3);else{const ge=this.commonService.extractErrorCode(G),nt=503===ge?"Unable to Connect to LND Server.":this.commonService.extractErrorMessage(G);this.router.navigate(["/error"],{state:{errorCode:ge,errorMessage:nt}}),this.handleErrorWithoutAlert("FetchInfo",C.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:ge,error:nt})}return(0,_.of)({type:C.pg.VOID})})))))),this.peersFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.FETCH_PEERS_LND),(0,T.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchPeers",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.PEERS_API).pipe((0,y.U)(O=>(this.logger.info(O),this.store.dispatch((0,D.PC)({payload:{action:"FetchPeers",status:C.Bn.COMPLETED}})),{type:C.uR.SET_PEERS_LND,payload:O||[]})),(0,h.K)(O=>(this.handleErrorWithoutAlert("FetchPeers",C.m6.NO_SPINNER,"Fetching Peers Failed.",O),(0,_.of)({type:C.pg.VOID})))))))),this.saveNewPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.SAVE_NEW_PEER_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:C.m6.CONNECT_PEER})),this.store.dispatch((0,D.PC)({payload:{action:"SaveNewPeer",status:C.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+C.vv.PEERS_API,{pubkey:O.payload.pubkey,host:O.payload.host,perm:O.payload.perm}).pipe((0,y.U)(G=>(this.logger.info(G),this.store.dispatch((0,D.PC)({payload:{action:"SaveNewPeer",status:C.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:C.m6.CONNECT_PEER})),this.store.dispatch((0,D.Z8)({payload:G||[]})),{type:C.uR.NEWLY_ADDED_PEER_LND,payload:{peer:G[0]}})),(0,h.K)(G=>(this.handleErrorWithoutAlert("SaveNewPeer",C.m6.CONNECT_PEER,"Peer Connection Failed.",G),(0,_.of)({type:C.pg.VOID})))))))),this.detachPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.DETACH_PEER_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:C.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+C.vv.PEERS_API+"/"+O.payload.pubkey).pipe((0,y.U)(G=>(this.logger.info(G),this.store.dispatch((0,L.uO)({payload:C.m6.DISCONNECT_PEER})),this.store.dispatch((0,L.jW)({payload:"Peer Disconnected Successfully."})),{type:C.uR.REMOVE_PEER_LND,payload:{pubkey:O.payload.pubkey}})),(0,h.K)(G=>(this.handleErrorWithAlert("DetachPeer",C.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+C.vv.PEERS_API+"/"+O.payload.pubkey,G),(0,_.of)({type:C.pg.VOID})))))))),this.saveNewInvoice=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.SAVE_NEW_INVOICE_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:O.payload.uiMessage})),this.store.dispatch((0,D.PC)({payload:{action:"SaveNewInvoice",status:C.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+C.vv.INVOICES_API,{memo:O.payload.memo,value:O.payload.value,private:O.payload.private,expiry:O.payload.expiry,is_amp:O.payload.is_amp}).pipe((0,y.U)(G=>(this.logger.info(G),this.store.dispatch((0,D.PC)({payload:{action:"SaveNewInvoice",status:C.Bn.COMPLETED}})),this.store.dispatch((0,D.WM)({payload:{num_max_invoices:O.payload.pageSize,reversed:!0}})),O.payload.openModal?(G.memo=O.payload.memo,G.value=O.payload.value,G.expiry=O.payload.expiry,G.private=O.payload.private,G.is_amp=O.payload.is_amp,G.cltv_expiry="144",G.creation_date=Math.round((new Date).getTime()/1e3).toString(),setTimeout(()=>{this.store.dispatch((0,L.qR)({payload:{data:{invoice:G,newlyAdded:!0,component:d.v}}}))},200),{type:C.pg.CLOSE_SPINNER,payload:O.payload.uiMessage}):{type:C.uR.NEWLY_SAVED_INVOICE_LND,payload:{paymentRequest:G.payment_request}})),(0,h.K)(G=>(this.handleErrorWithoutAlert("SaveNewInvoice",O.payload.uiMessage,"Add Invoice Failed.",G),(0,_.of)({type:C.pg.VOID})))))))),this.openNewChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.SAVE_NEW_CHANNEL_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:C.m6.OPEN_CHANNEL})),this.store.dispatch((0,D.PC)({payload:{action:"SaveNewChannel",status:C.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+C.vv.CHANNELS_API,{node_pubkey:O.payload.selectedPeerPubkey,local_funding_amount:O.payload.fundingAmount,private:O.payload.private,trans_type:O.payload.transType,trans_type_value:O.payload.transTypeValue,spend_unconfirmed:O.payload.spendUnconfirmed}).pipe((0,y.U)(G=>(this.logger.info(G),this.store.dispatch((0,D.PC)({payload:{action:"SaveNewChannel",status:C.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:C.m6.OPEN_CHANNEL})),this.store.dispatch((0,D.Bl)()),this.store.dispatch((0,D.UR)()),this.store.dispatch((0,D.Vv)({payload:{uiMessage:C.m6.NO_SPINNER,channelPoint:"ALL",showMessage:"Channel Added Successfully!"}})),{type:C.uR.FETCH_PENDING_CHANNELS_LND})),(0,h.K)(G=>(this.handleErrorWithoutAlert("SaveNewChannel",C.m6.OPEN_CHANNEL,"Opening Channel Failed.",G),(0,_.of)({type:C.pg.VOID})))))))),this.updateChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.UPDATE_CHANNEL_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:C.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+C.vv.CHANNELS_API+"/chanPolicy",{baseFeeMsat:O.payload.baseFeeMsat,feeRate:O.payload.feeRate,timeLockDelta:O.payload.timeLockDelta,max_htlc_msat:O.payload.maxHtlcMsat,min_htlc_msat:O.payload.minHtlcMsat,chanPoint:O.payload.chanPoint}).pipe((0,y.U)(G=>(this.logger.info(G),this.store.dispatch((0,L.uO)({payload:C.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,L.jW)("all"===O.payload.chanPoint?{payload:"All Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:C.uR.FETCH_CHANNELS_LND})),(0,h.K)(G=>(this.handleErrorWithAlert("UpdateChannels",C.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+C.vv.CHANNELS_API+"/chanPolicy",G),(0,_.of)({type:C.pg.VOID})))))))),this.closeChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.CLOSE_CHANNEL_LND),(0,T.z)(O=>{this.store.dispatch((0,L.ac)({payload:O.payload.forcibly?C.m6.FORCE_CLOSE_CHANNEL:C.m6.CLOSE_CHANNEL}));let G=this.CHILD_API_URL+C.vv.CHANNELS_API+"/"+O.payload.channelPoint+"?force="+O.payload.forcibly;return O.payload.targetConf&&(G=G+"&target_conf="+O.payload.targetConf),O.payload.satPerByte&&(G=G+"&sat_per_byte="+O.payload.satPerByte),this.httpClient.delete(G).pipe((0,y.U)(ge=>(this.logger.info(ge),this.store.dispatch((0,L.uO)({payload:O.payload.forcibly?C.m6.FORCE_CLOSE_CHANNEL:C.m6.CLOSE_CHANNEL})),this.store.dispatch((0,D.UR)()),this.store.dispatch((0,D.Z7)()),this.store.dispatch((0,D.Vv)({payload:{uiMessage:C.m6.NO_SPINNER,channelPoint:"ALL",showMessage:ge.message}})),{type:C.pg.VOID})),(0,h.K)(ge=>(this.handleErrorWithAlert("CloseChannel",O.payload.forcibly?C.m6.FORCE_CLOSE_CHANNEL:C.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+C.vv.CHANNELS_API+"/"+O.payload.channelPoint+"?force="+O.payload.forcibly,ge),(0,_.of)({type:C.pg.VOID}))))}))),this.backupChannels=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.BACKUP_CHANNELS_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:O.payload.uiMessage})),this.store.dispatch((0,D.PC)({payload:{action:"BackupChannels",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.CHANNELS_BACKUP_API+"/"+O.payload.channelPoint).pipe((0,y.U)(G=>(this.logger.info(G),this.store.dispatch((0,D.PC)({payload:{action:"BackupChannels",status:C.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:O.payload.uiMessage})),this.store.dispatch((0,L.jW)({payload:O.payload.showMessage+" "+G.message})),{type:C.uR.BACKUP_CHANNELS_RES_LND,payload:G.message})),(0,h.K)(G=>(this.handleErrorWithAlert("BackupChannels",O.payload.uiMessage,O.payload.showMessage+" Unable to Backup Channel. Try again later.",this.CHILD_API_URL+C.vv.CHANNELS_BACKUP_API+"/"+O.payload.channelPoint,G),(0,_.of)({type:C.pg.VOID})))))))),this.verifyChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.VERIFY_CHANNEL_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:C.m6.VERIFY_CHANNEL})),this.store.dispatch((0,D.PC)({payload:{action:"VerifyChannel",status:C.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+C.vv.CHANNELS_BACKUP_API+"/verify/"+O.payload.channelPoint,{}).pipe((0,y.U)(G=>(this.logger.info(G),this.store.dispatch((0,D.PC)({payload:{action:"VerifyChannel",status:C.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:C.m6.VERIFY_CHANNEL})),this.store.dispatch((0,L.jW)({payload:G.message})),{type:C.uR.VERIFY_CHANNEL_RES_LND,payload:G.message})),(0,h.K)(G=>(this.handleErrorWithAlert("VerifyChannel",C.m6.VERIFY_CHANNEL,"Unable to Verify Channel. Try again later.",this.CHILD_API_URL+C.vv.CHANNELS_BACKUP_API+"/verify/"+O.payload.channelPoint,G),(0,_.of)({type:C.pg.VOID})))))))),this.restoreChannels=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.RESTORE_CHANNELS_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:C.m6.RESTORE_CHANNEL})),this.store.dispatch((0,D.PC)({payload:{action:"RestoreChannels",status:C.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+C.vv.CHANNELS_BACKUP_API+"/restore/"+O.payload.channelPoint,{}).pipe((0,y.U)(G=>(this.logger.info(G),this.store.dispatch((0,D.PC)({payload:{action:"RestoreChannels",status:C.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:C.m6.RESTORE_CHANNEL})),this.store.dispatch((0,L.jW)({payload:G.message})),this.store.dispatch((0,D.B_)({payload:G.list})),{type:C.uR.RESTORE_CHANNELS_RES_LND,payload:G.message})),(0,h.K)(G=>(this.handleErrorWithAlert("RestoreChannels",C.m6.RESTORE_CHANNEL,"Unable to Restore Channel. Try again later.",this.CHILD_API_URL+C.vv.CHANNELS_BACKUP_API+"/restore/"+O.payload.channelPoint,G),(0,_.of)({type:C.pg.VOID})))))))),this.fetchFees=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.FETCH_FEES_LND),(0,T.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchFees",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.FEES_API))),(0,y.U)(O=>(this.logger.info(O),this.store.dispatch((0,D.PC)({payload:{action:"FetchFees",status:C.Bn.COMPLETED}})),O.forwarding_events_history&&(this.store.dispatch((0,D.QJ)({payload:O.forwarding_events_history})),delete O.forwarding_events_history),{type:C.uR.SET_FEES_LND,payload:O||{}})),(0,h.K)(O=>(this.handleErrorWithoutAlert("FetchFees",C.m6.NO_SPINNER,"Fetching Fees Failed.",O),(0,_.of)({type:C.pg.VOID}))))),this.balanceBlockchainFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.FETCH_BLOCKCHAIN_BALANCE_LND),(0,T.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchBalance",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.BALANCE_API))),(0,y.U)(O=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchBalance",status:C.Bn.COMPLETED}})),this.logger.info(O),{type:C.uR.SET_BLOCKCHAIN_BALANCE_LND,payload:O||{total_balance:""}})),(0,h.K)(O=>(this.handleErrorWithoutAlert("FetchBalance",C.m6.NO_SPINNER,"Fetching Blockchain Balance Failed.",O),(0,_.of)({type:C.pg.VOID}))))),this.networkInfoFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.FETCH_NETWORK_LND),(0,T.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchNetwork",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.NETWORK_API+"/info"))),(0,y.U)(O=>(this.logger.info(O),this.store.dispatch((0,D.PC)({payload:{action:"FetchNetwork",status:C.Bn.COMPLETED}})),{type:C.uR.SET_NETWORK_LND,payload:O||{}})),(0,h.K)(O=>(this.handleErrorWithoutAlert("FetchNetwork",C.m6.NO_SPINNER,"Fetching Network Failed.",O),(0,_.of)({type:C.pg.VOID}))))),this.channelsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.FETCH_CHANNELS_LND),(0,T.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchChannels",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.CHANNELS_API).pipe((0,y.U)(O=>(this.logger.info(O),this.store.dispatch((0,D.PC)({payload:{action:"FetchChannels",status:C.Bn.COMPLETED}})),{type:C.uR.SET_CHANNELS_LND,payload:O.channels||[]})),(0,h.K)(O=>(this.handleErrorWithoutAlert("FetchChannels",C.m6.NO_SPINNER,"Fetching Channels Failed.",O),(0,_.of)({type:C.pg.VOID})))))))),this.channelsPendingFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.FETCH_PENDING_CHANNELS_LND),(0,T.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchPendingChannels",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.CHANNELS_API+"/pending").pipe((0,y.U)(O=>{this.logger.info(O),this.store.dispatch((0,D.PC)({payload:{action:"FetchPendingChannels",status:C.Bn.COMPLETED}}));const G={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 O&&(G.total_limbo_balance=O.total_limbo_balance,O.pending_closing_channels&&(G.closing.num_channels=O.pending_closing_channels.length,G.total_channels=G.total_channels+O.pending_closing_channels.length,O.pending_closing_channels.forEach(ge=>{G.closing.limbo_balance=+G.closing.limbo_balance+(ge.channel.local_balance?+ge.channel.local_balance:0)})),O.pending_force_closing_channels&&(G.force_closing.num_channels=O.pending_force_closing_channels.length,G.total_channels=G.total_channels+O.pending_force_closing_channels.length,O.pending_force_closing_channels.forEach(ge=>{G.force_closing.limbo_balance=+G.force_closing.limbo_balance+(ge.channel.local_balance?+ge.channel.local_balance:0)})),O.pending_open_channels&&(G.open.num_channels=O.pending_open_channels.length,G.total_channels=G.total_channels+O.pending_open_channels.length,O.pending_open_channels.forEach(ge=>{G.open.limbo_balance=+G.open.limbo_balance+(ge.channel.local_balance?+ge.channel.local_balance:0)})),O.waiting_close_channels&&(G.waiting_close.num_channels=O.waiting_close_channels.length,G.total_channels=G.total_channels+O.waiting_close_channels.length,O.waiting_close_channels.forEach(ge=>{G.waiting_close.limbo_balance=+G.waiting_close.limbo_balance+(ge.channel.local_balance?+ge.channel.local_balance:0)}))),{type:C.uR.SET_PENDING_CHANNELS_LND,payload:O?{pendingChannels:O,pendingChannelsSummary:G}:{pendingChannels:{},pendingChannelsSummary:G}}}),(0,h.K)(O=>(this.handleErrorWithoutAlert("FetchPendingChannels",C.m6.NO_SPINNER,"Fetching Pending Channels Failed.",O),(0,_.of)({type:C.pg.VOID})))))))),this.channelsClosedFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.FETCH_CLOSED_CHANNELS_LND),(0,T.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchClosedChannels",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.CHANNELS_API+"/closed").pipe((0,y.U)(O=>(this.logger.info(O),this.store.dispatch((0,D.PC)({payload:{action:"FetchClosedChannels",status:C.Bn.COMPLETED}})),{type:C.uR.SET_CLOSED_CHANNELS_LND,payload:O.channels||[]})),(0,h.K)(O=>(this.handleErrorWithoutAlert("FetchClosedChannels",C.m6.NO_SPINNER,"Fetching Closed Channels Failed.",O),(0,_.of)({type:C.pg.VOID})))))))),this.invoicesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.FETCH_INVOICES_LND),(0,T.z)(O=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchInvoices",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.INVOICES_API+"?num_max_invoices="+(O.payload.num_max_invoices?O.payload.num_max_invoices:100)+"&index_offset="+(O.payload.index_offset?O.payload.index_offset:0)+"&reversed="+(!!O.payload.reversed&&O.payload.reversed)).pipe((0,y.U)(Ue=>(this.logger.info(Ue),this.store.dispatch((0,D.PC)({payload:{action:"FetchInvoices",status:C.Bn.COMPLETED}})),O.payload.reversed&&!O.payload.index_offset&&(Ue.total_invoices=+(Ue.last_index_offset||0)),{type:C.uR.SET_INVOICES_LND,payload:Ue})),(0,h.K)(Ue=>(this.handleErrorWithoutAlert("FetchInvoices",C.m6.NO_SPINNER,"Fetching Invoices Failed.",Ue),(0,_.of)({type:C.pg.VOID})))))))),this.transactionsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.FETCH_TRANSACTIONS_LND),(0,T.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchTransactions",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.TRANSACTIONS_API))),(0,y.U)(O=>(this.logger.info(O),this.store.dispatch((0,D.PC)({payload:{action:"FetchTransactions",status:C.Bn.COMPLETED}})),{type:C.uR.SET_TRANSACTIONS_LND,payload:O||[]})),(0,h.K)(O=>(this.handleErrorWithoutAlert("FetchTransactions",C.m6.NO_SPINNER,"Fetching Transactions Failed.",O),(0,_.of)({type:C.pg.VOID}))))),this.utxosFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.FETCH_UTXOS_LND),(0,P.M)(this.store.select(H.Q5)),(0,T.z)(([O,G])=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchUTXOs",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.WALLET_API+"/getUTXOs?max_confs="+(G&&G.block_height?G.block_height:1e9)))),(0,y.U)(O=>(this.logger.info(O),this.store.dispatch((0,D.PC)({payload:{action:"FetchUTXOs",status:C.Bn.COMPLETED}})),{type:C.uR.SET_UTXOS_LND,payload:O||[]})),(0,h.K)(O=>(this.handleErrorWithoutAlert("FetchUTXOs",C.m6.NO_SPINNER,"Fetching UTXOs Failed.",O),(0,_.of)({type:C.pg.VOID}))))),this.paymentsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.FETCH_PAYMENTS_LND),(0,T.z)(O=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchPayments",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.PAYMENTS_API+"?max_payments="+(O.payload.max_payments?O.payload.max_payments:100)+"&index_offset="+(O.payload.index_offset?O.payload.index_offset:0)+"&reversed="+(!!O.payload.reversed&&O.payload.reversed)).pipe((0,y.U)(Ue=>(this.logger.info(Ue),this.store.dispatch((0,D.PC)({payload:{action:"FetchPayments",status:C.Bn.COMPLETED}})),this.commonService.sortByKey(Ue.payments||[],this.paymentsPageSettings?.sortBy||"creation_date","number",this.paymentsPageSettings?.sortOrder),{type:C.uR.SET_PAYMENTS_LND,payload:Ue})),(0,h.K)(Ue=>(this.handleErrorWithoutAlert("FetchPayments",C.m6.NO_SPINNER,"Fetching Payments Failed.",Ue),(0,_.of)({type:C.uR.SET_PAYMENTS_LND,payload:{payments:[]}})))))))),this.sendPayment=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.SEND_PAYMENT_LND),(0,T.z)(O=>{this.store.dispatch((0,L.ac)({payload:O.payload.uiMessage})),this.store.dispatch((0,D.PC)({payload:{action:"SendPayment",status:C.Bn.INITIATED}}));const G={};return G.paymentReq=O.payload.paymentReq,O.payload.paymentAmount&&(G.paymentAmount=O.payload.paymentAmount),O.payload.outgoingChannel&&(G.outgoingChannel=O.payload.outgoingChannel.chan_id),O.payload.allowSelfPayment&&(G.allowSelfPayment=O.payload.allowSelfPayment),O.payload.lastHopPubkey&&(G.lastHopPubkey=O.payload.lastHopPubkey),O.payload.feeLimitType&&O.payload.feeLimitType!==C.Vc[0].id&&(G.feeLimit={},G.feeLimit[O.payload.feeLimitType]=O.payload.feeLimit),this.httpClient.post(this.CHILD_API_URL+C.vv.CHANNELS_API+"/transactions",G).pipe((0,y.U)(ge=>{if(this.logger.info(ge),this.store.dispatch((0,L.uO)({payload:O.payload.uiMessage})),this.store.dispatch((0,D.PC)({payload:{action:"SendPayment",status:C.Bn.COMPLETED}})),ge.payment_error)return O.payload.allowSelfPayment?(this.store.dispatch((0,D.WM)({payload:{num_max_invoices:this.invoicesPageSettings?.recordsPerPage,reversed:!0}})),{type:C.uR.SEND_PAYMENT_STATUS_LND,payload:ge}):(O.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",O.payload.uiMessage,"Send Payment Failed.",ge.payment_error):this.handleErrorWithAlert("SendPayment",O.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+C.vv.CHANNELS_API+"/transactions",ge.payment_error),{type:C.pg.VOID});if(this.store.dispatch((0,L.uO)({payload:O.payload.uiMessage})),this.store.dispatch((0,D.PC)({payload:{action:"SendPayment",status:C.Bn.COMPLETED}})),this.store.dispatch((0,D.UR)()),this.store.dispatch((0,D.cQ)({payload:{max_payments:this.paymentsPageSettings?.recordsPerPage,reversed:!0}})),O.payload.allowSelfPayment)this.store.dispatch((0,D.WM)({payload:{num_max_invoices:this.invoicesPageSettings?.recordsPerPage,reversed:!0}}));else{let nt="Payment Sent Successfully.";ge.payment_route&&ge.payment_route.total_fees_msat&&(nt="Payment sent successfully with the total fee "+ge.payment_route.total_fees_msat+" (mSats)."),this.store.dispatch((0,L.jW)({payload:nt}))}return{type:C.uR.SEND_PAYMENT_STATUS_LND,payload:ge}}),(0,h.K)(ge=>(this.logger.error("Error: "+JSON.stringify(ge)),O.payload.allowSelfPayment?(this.handleErrorWithoutAlert("SendPayment",O.payload.uiMessage,"Send Payment Failed.",ge),this.store.dispatch((0,D.WM)({payload:{num_max_invoices:this.invoicesPageSettings?.recordsPerPage,reversed:!0}})),(0,_.of)({type:C.uR.SEND_PAYMENT_STATUS_LND,payload:{error:this.commonService.extractErrorMessage(ge)}})):(O.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",O.payload.uiMessage,"Send Payment Failed.",ge):this.handleErrorWithAlert("SendPayment",O.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+C.vv.CHANNELS_API+"/transactions",ge),(0,_.of)({type:C.pg.VOID})))))}))),this.graphNodeFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.FETCH_GRAPH_NODE_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:C.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,D.PC)({payload:{action:"FetchGraphNode",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.NETWORK_API+"/node/"+O.payload.pubkey).pipe((0,y.U)(G=>(this.logger.info(G),this.store.dispatch((0,L.uO)({payload:C.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,D.PC)({payload:{action:"FetchGraphNode",status:C.Bn.COMPLETED}})),{type:C.uR.SET_GRAPH_NODE_LND,payload:G&&G.node?{node:G.node}:{node:null}})),(0,h.K)(G=>(this.handleErrorWithoutAlert("FetchGraphNode",C.m6.GET_NODE_ADDRESS,"Fetching Graph Node Failed.",G),(0,_.of)({type:C.pg.VOID})))))))),this.setGraphNode=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.SET_GRAPH_NODE_LND),(0,y.U)(O=>(this.logger.info(O.payload),O.payload))),{dispatch:!1}),this.getNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.GET_NEW_ADDRESS_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:C.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+C.vv.NEW_ADDRESS_API+"?type="+O.payload.addressId).pipe((0,y.U)(G=>(this.logger.info(G),this.store.dispatch((0,L.uO)({payload:C.m6.GENERATE_NEW_ADDRESS})),{type:C.uR.SET_NEW_ADDRESS_LND,payload:G&&G.address?G.address:{}})),(0,h.K)(G=>(this.handleErrorWithAlert("GetNewAddress",C.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+C.vv.NEW_ADDRESS_API+"?type="+O.payload.addressId,G),(0,_.of)({type:C.pg.VOID})))))))),this.setNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.SET_NEW_ADDRESS_LND),(0,y.U)(O=>(this.logger.info(O.payload),O.payload))),{dispatch:!1}),this.SetChannelTransaction=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.SET_CHANNEL_TRANSACTION_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:C.m6.SEND_FUNDS})),this.store.dispatch((0,D.PC)({payload:{action:"SetChannelTransaction",status:C.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+C.vv.TRANSACTIONS_API,{amount:O.payload.amount,address:O.payload.address,sendAll:O.payload.sendAll,fees:O.payload.fees,blocks:O.payload.blocks}).pipe((0,y.U)(G=>(this.logger.info(G),this.store.dispatch((0,D.PC)({payload:{action:"SetChannelTransaction",status:C.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:C.m6.SEND_FUNDS})),this.store.dispatch((0,D.mC)()),this.store.dispatch((0,D.Bl)()),this.store.dispatch((0,D.UR)()),{type:C.uR.SET_CHANNEL_TRANSACTION_RES_LND,payload:G})),(0,h.K)(G=>(this.handleErrorWithoutAlert("SetChannelTransaction",C.m6.SEND_FUNDS,"Sending Fund Failed.",G),(0,_.of)({type:C.pg.VOID})))))))),this.fetchForwardingHistory=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.GET_FORWARDING_HISTORY_LND),(0,T.z)(O=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchForwardingHistory",status:C.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+C.vv.SWITCH_API,{num_max_events:O.payload.num_max_events,index_offset:O.payload.index_offset,end_time:O.payload.end_time,start_time:O.payload.start_time}).pipe((0,y.U)(ge=>(this.logger.info(ge),this.store.dispatch((0,D.PC)({payload:{action:"FetchForwardingHistory",status:C.Bn.COMPLETED}})),{type:C.uR.SET_FORWARDING_HISTORY_LND,payload:ge})),(0,h.K)(ge=>(this.handleErrorWithAlert("FetchForwardingHistory",C.m6.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+C.vv.SWITCH_API,ge),(0,_.of)({type:C.pg.VOID})))))))),this.queryRoutesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.GET_QUERY_ROUTES_LND),(0,T.z)(O=>{let G=this.CHILD_API_URL+C.vv.NETWORK_API+"/routes/"+O.payload.destPubkey+"/"+O.payload.amount;return O.payload.outgoingChanId&&(G=G+"?outgoing_chan_id="+O.payload.outgoingChanId),this.httpClient.get(G).pipe((0,y.U)(ge=>(this.logger.info(ge),{type:C.uR.SET_QUERY_ROUTES_LND,payload:ge})),(0,h.K)(ge=>(this.store.dispatch((0,D.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",C.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+C.vv.NETWORK_API,ge),(0,_.of)({type:C.pg.VOID}))))}))),this.setQueryRoutes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.SET_QUERY_ROUTES_LND),(0,y.U)(O=>O.payload)),{dispatch:!1}),this.genSeed=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.GEN_SEED_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:C.m6.GEN_SEED})),this.httpClient.get(this.CHILD_API_URL+C.vv.WALLET_API+"/genseed/"+O.payload).pipe((0,y.U)(G=>(this.logger.info("Generated GenSeed!"),this.logger.info(G),this.store.dispatch((0,L.uO)({payload:C.m6.GEN_SEED})),{type:C.uR.GEN_SEED_RESPONSE_LND,payload:G.cipher_seed_mnemonic})),(0,h.K)(G=>(this.handleErrorWithAlert("GenSeed",C.m6.GEN_SEED,"Genseed Generation Failed",this.CHILD_API_URL+C.vv.WALLET_API+"/genseed/"+O.payload,G),(0,_.of)({type:C.pg.VOID})))))))),this.updateSelNodeOptions=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.pg.UPDATE_SELECTED_NODE_OPTIONS),(0,T.z)(()=>this.httpClient.get(this.CHILD_API_URL+C.vv.WALLET_API+"/updateSelNodeOptions").pipe((0,y.U)(O=>(this.logger.info("Update Sel Node Successfull"),this.logger.info(O),{type:C.pg.VOID})),(0,h.K)(O=>(this.handleErrorWithAlert("UpdateSelectedNodeOptions",C.m6.NO_SPINNER,"Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!","Update Macaroon",O),(0,_.of)({type:C.pg.VOID}))))))),this.genSeedResponse=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.GEN_SEED_RESPONSE_LND),(0,y.U)(O=>O.payload)),{dispatch:!1}),this.initWalletRes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.INIT_WALLET_RESPONSE_LND),(0,y.U)(O=>O.payload)),{dispatch:!1}),this.initWallet=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.INIT_WALLET_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:C.m6.INITIALIZE_WALLET})),this.httpClient.post(this.CHILD_API_URL+C.vv.WALLET_API+"/wallet/initwallet",{wallet_password:O.payload.pwd,cipher_seed_mnemonic:O.payload.cipher?O.payload.cipher:"",aezeed_passphrase:O.payload.passphrase?O.payload.passphrase:""}).pipe((0,y.U)(G=>(this.logger.info(G),this.store.dispatch((0,L.uO)({payload:C.m6.INITIALIZE_WALLET})),{type:C.uR.INIT_WALLET_RESPONSE_LND,payload:G})),(0,h.K)(G=>(this.handleErrorWithAlert("InitWallet",C.m6.INITIALIZE_WALLET,"Wallet Initialization Failed",this.CHILD_API_URL+C.vv.WALLET_API+"/initwallet",G),(0,_.of)({type:C.pg.VOID})))))))),this.unlockWallet=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.UNLOCK_WALLET_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:C.m6.UNLOCK_WALLET})),this.httpClient.post(this.CHILD_API_URL+C.vv.WALLET_API+"/wallet/unlockwallet",{wallet_password:O.payload.pwd}).pipe((0,y.U)(G=>(this.logger.info(G),this.logger.info("Successfully Unlocked!"),this.sessionService.setItem("lndUnlocked","true"),this.store.dispatch((0,L.uO)({payload:C.m6.UNLOCK_WALLET})),this.store.dispatch((0,L.ac)({payload:C.m6.WAIT_SYNC_NODE})),setTimeout(()=>{this.store.dispatch((0,L.uO)({payload:C.m6.WAIT_SYNC_NODE})),this.store.dispatch((0,D.sQ)({payload:{loadPage:"HOME"}}))},5e3),{type:C.pg.VOID})),(0,h.K)(G=>(this.handleErrorWithAlert("UnlockWallet",C.m6.UNLOCK_WALLET,"Unlock Wallet Failed",this.CHILD_API_URL+C.vv.WALLET_API+"/unlockwallet",G),(0,_.of)({type:C.pg.VOID}))))))),{dispatch:!1}),this.peerLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.PEER_LOOKUP_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:C.m6.SEARCHING_NODE})),this.store.dispatch((0,D.PC)({payload:{action:"Lookup",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.NETWORK_API+"/node/"+O.payload).pipe((0,y.U)(G=>(this.logger.info(G),this.store.dispatch((0,L.uO)({payload:C.m6.SEARCHING_NODE})),this.store.dispatch((0,D.PC)({payload:{action:"Lookup",status:C.Bn.COMPLETED}})),{type:C.uR.SET_LOOKUP_LND,payload:G})),(0,h.K)(G=>(this.handleErrorWithAlert("Lookup",C.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+C.vv.NETWORK_API+"/node/"+O.payload,G),(0,_.of)({type:C.pg.VOID})))))))),this.channelLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.CHANNEL_LOOKUP_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:O.payload.uiMessage})),this.store.dispatch((0,D.PC)({payload:{action:"Lookup",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.NETWORK_API+"/edge/"+O.payload.channelID).pipe((0,y.U)(G=>(this.logger.info(G),this.store.dispatch((0,L.uO)({payload:O.payload.uiMessage})),this.store.dispatch((0,D.PC)({payload:{action:"Lookup",status:C.Bn.COMPLETED}})),{type:C.uR.SET_LOOKUP_LND,payload:G})),(0,h.K)(G=>(this.handleErrorWithAlert("Lookup",O.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+C.vv.NETWORK_API+"/edge/"+O.payload.channelID,G),(0,_.of)({type:C.pg.VOID})))))))),this.invoiceLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.INVOICE_LOOKUP_LND),(0,T.z)(O=>{this.store.dispatch((0,L.ac)({payload:C.m6.SEARCHING_INVOICE})),this.store.dispatch((0,D.PC)({payload:{action:"Lookup",status:C.Bn.INITIATED}}));let G=this.CHILD_API_URL+C.vv.INVOICES_API+"/lookup";return G=O.payload.paymentAddress&&""!==O.payload.paymentAddress?G+"?payment_addr="+O.payload.paymentAddress:G+"?payment_hash="+O.payload.paymentHash,this.httpClient.get(G).pipe((0,y.U)(ge=>(this.logger.info(ge),this.store.dispatch((0,L.uO)({payload:C.m6.SEARCHING_INVOICE})),this.store.dispatch((0,D.PC)({payload:{action:"Lookup",status:C.Bn.COMPLETED}})),this.store.dispatch((0,D.aL)({payload:ge})),{type:C.uR.SET_LOOKUP_LND,payload:ge})),(0,h.K)(ge=>(this.store.dispatch((0,D.PC)({payload:{action:"Lookup",status:C.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",C.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",ge),O.payload.openSnackBar&&this.store.dispatch((0,L.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,_.of)({type:C.uR.SET_LOOKUP_LND,payload:{error:ge}}))))}))),this.paymentLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.PAYMENT_LOOKUP_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:C.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,D.PC)({payload:{action:"Lookup",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.PAYMENTS_API+"/lookup/"+O.payload).pipe((0,y.U)(G=>(this.logger.info(G),this.store.dispatch((0,L.uO)({payload:C.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,D.PC)({payload:{action:"Lookup",status:C.Bn.COMPLETED}})),this.store.dispatch((0,D.qY)({payload:G})),{type:C.uR.SET_LOOKUP_LND,payload:G})),(0,h.K)(G=>(this.store.dispatch((0,D.PC)({payload:{action:"Lookup",status:C.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",C.m6.SEARCHING_PAYMENT,"Payment Lookup Failed",G),(0,_.of)({type:C.uR.SET_LOOKUP_LND,payload:{error:G}})))))))),this.setLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.SET_LOOKUP_LND),(0,y.U)(O=>(this.logger.info(O.payload),O.payload))),{dispatch:!1}),this.getRestoreChannelList=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.RESTORE_CHANNELS_LIST_LND),(0,T.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"RestoreChannelsList",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.CHANNELS_BACKUP_API+"/restore/list").pipe((0,y.U)(O=>(this.logger.info(O),this.store.dispatch((0,D.PC)({payload:{action:"RestoreChannelsList",status:C.Bn.COMPLETED}})),{type:C.uR.SET_RESTORE_CHANNELS_LIST_LND,payload:O||{all_restore_exists:!1,files:[]}})),(0,h.K)(O=>(this.handleErrorWithAlert("RestoreChannelsList",C.m6.NO_SPINNER,"Restore Channels List Failed",this.CHILD_API_URL+C.vv.CHANNELS_BACKUP_API,O),(0,_.of)({type:C.pg.VOID})))))))),this.setRestoreChannelList=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.SET_RESTORE_CHANNELS_LIST_LND),(0,y.U)(O=>(this.logger.info(O.payload),O.payload))),{dispatch:!1}),this.allLightningTransactionsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),(0,T.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchLightningTransactions",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.PAYMENTS_API+"/alltransactions").pipe((0,y.U)(O=>(this.logger.info(O),this.store.dispatch((0,D.PC)({payload:{action:"FetchLightningTransactions",status:C.Bn.COMPLETED}})),{type:C.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,payload:O})),(0,h.K)(O=>(this.handleErrorWithoutAlert("FetchLightningTransactions",C.m6.NO_SPINNER,"Fetching All Lightning Transaction Failed.",O),(0,_.of)({type:C.pg.VOID})))))))),this.pageSettingsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.FETCH_PAGE_SETTINGS_LND),(0,T.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchPageSettings",status:C.Bn.INITIATED}})),this.httpClient.get(C.vv.PAGE_SETTINGS_API).pipe((0,y.U)(O=>(this.logger.info(O),this.store.dispatch((0,D.PC)({payload:{action:"FetchPageSettings",status:C.Bn.COMPLETED}})),this.invoicesPageSettings=O&&Object.keys(O).length>0?O.find(G=>"transactions"===G.pageId)?.tables.find(G=>"invoices"===G.tableId):C.gK.find(G=>"transactions"===G.pageId)?.tables.find(G=>"invoices"===G.tableId),this.paymentsPageSettings=O&&Object.keys(O).length>0?O.find(G=>"transactions"===G.pageId)?.tables.find(G=>"payments"===G.tableId):C.gK.find(G=>"transactions"===G.pageId)?.tables.find(G=>"payments"===G.tableId),{type:C.uR.SET_PAGE_SETTINGS_LND,payload:O||[]})),(0,h.K)(O=>(this.handleErrorWithoutAlert("FetchPageSettings",C.m6.NO_SPINNER,"Fetching Page Settings Failed.",O),(0,_.of)({type:C.pg.VOID})))))))),this.savePageSettings=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.SAVE_PAGE_SETTINGS_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:C.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,D.PC)({payload:{action:"SavePageSettings",status:C.Bn.INITIATED}})),this.httpClient.post(C.vv.PAGE_SETTINGS_API,O.payload).pipe((0,y.U)(G=>{this.logger.info(G),this.store.dispatch((0,D.PC)({payload:{action:"SavePageSettings",status:C.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:C.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,L.jW)({payload:"Page Layout Updated Successfully!"}));const ge=(G.find(Ue=>"transactions"===Ue.pageId)?.tables.find(Ue=>"invoices"===Ue.tableId)||C.gK.find(Ue=>"transactions"===Ue.pageId)?.tables.find(Ue=>"invoices"===Ue.tableId)).recordsPerPage,nt=(G.find(Ue=>"transactions"===Ue.pageId)?.tables.find(Ue=>"payments"===Ue.tableId)||C.gK.find(Ue=>"transactions"===Ue.pageId)?.tables.find(Ue=>"payments"===Ue.tableId)).recordsPerPage;return this.invoicesPageSettings&&ge!==this.invoicesPageSettings?.recordsPerPage&&(this.invoicesPageSettings.recordsPerPage=ge,this.store.dispatch((0,D.WM)({payload:{num_max_invoices:this.invoicesPageSettings?.recordsPerPage,reversed:!0}}))),this.paymentsPageSettings&&nt!==this.paymentsPageSettings?.recordsPerPage&&(this.paymentsPageSettings.recordsPerPage=nt),{type:C.uR.SET_PAGE_SETTINGS_LND,payload:G||[]}}),(0,h.K)(G=>(this.handleErrorWithAlert("SavePageSettings",C.m6.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",C.vv.PAGE_SETTINGS_API,G),(0,_.of)({type:C.pg.VOID})))))))),this.store.select(H.yA).pipe((0,s.R)(this.unSubs[0])).subscribe(O=>{O.FetchInfo.status!==C.Bn.COMPLETED&&O.FetchInfo.status!==C.Bn.ERROR||O.FetchFees.status!==C.Bn.COMPLETED&&O.FetchFees.status!==C.Bn.ERROR||O.FetchBalanceBlockchain.status!==C.Bn.COMPLETED&&O.FetchBalanceBlockchain.status!==C.Bn.ERROR||O.FetchAllChannels.status!==C.Bn.COMPLETED&&O.FetchAllChannels.status!==C.Bn.ERROR||O.FetchPendingChannels.status!==C.Bn.COMPLETED&&O.FetchPendingChannels.status!==C.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,L.uO)({payload:C.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.lndWSMessages.pipe((0,s.R)(this.unSubs[1])).subscribe(O=>{this.logger.info("Received new message from the service: "+JSON.stringify(O)),O&&(O.type===C.g8.INVOICE?(this.logger.info(O),O&&O.result&&O.result.payment_request&&this.store.dispatch((0,D.aL)({payload:O.result}))):this.logger.info("Received Event from WS: "+JSON.stringify(O)))})}initializeRemainingData(a,f){this.sessionService.setItem("lndUnlocked","true");const l={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,L.ac)({payload:C.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,L._V)({payload:l}));let v=this.location.path();v.includes("/cln/")?v=v?.replace("/cln/","/lnd/"):v.includes("/ecl/")&&(v=v?.replace("/ecl/","/lnd/")),(v.includes("/unlock")||v.includes("/login")||v.includes("/error")||""===v||"HOME"===f||v.includes("?access-key="))&&(v="/lnd/home"),this.router.navigate([v]),this.store.dispatch((0,D.Bl)()),this.store.dispatch((0,D.UR)()),this.store.dispatch((0,D.Z7)()),this.store.dispatch((0,D.Zh)()),this.store.dispatch((0,D.$W)()),this.store.dispatch((0,D.Rv)()),this.store.dispatch((0,D.SN)()),this.store.dispatch((0,D.cQ)({payload:{max_payments:1e5,reversed:!0}})),this.store.dispatch((0,D.WM)({payload:{num_max_invoices:this.invoicesPageSettings?.recordsPerPage,reversed:!0}}))}handleErrorWithoutAlert(a,f,l,v){this.logger.error("ERROR IN: "+a+"\n"+JSON.stringify(v)),401===v.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,L.ts)()),this.store.dispatch((0,L.kS)()),this.store.dispatch((0,L.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,L.uO)({payload:f})),this.store.dispatch((0,D.PC)({payload:{action:a,status:C.Bn.ERROR,statusCode:v.status.toString(),message:this.commonService.extractErrorMessage(v,l)}})))}handleErrorWithAlert(a,f,l,v,I){if(this.logger.error(I),401===I.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,L.ts)()),this.store.dispatch((0,L.kS)()),this.store.dispatch((0,L.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,L.uO)({payload:f}));const k=this.commonService.extractErrorMessage(I);this.store.dispatch((0,L.qR)({payload:{data:{type:"ERROR",alertTitle:l,message:{code:I.status,message:k,URL:v},component:w.H}}})),this.store.dispatch((0,D.PC)({payload:{action:a,status:C.Bn.ERROR,statusCode:I.status.toString(),message:k,URL:v}}))}}ngOnDestroy(){this.unSubs.forEach(a=>{a.next(null),a.complete()})}}return(Ce=M).\u0275fac=function(a){return new(a||Ce)(V.LFG(t.eX),V.LFG(Y.eN),V.LFG(j.yh),V.LFG(Q.mQ),V.LFG(J.v),V.LFG(ee.m),V.LFG(me.uw),V.LFG(re.F0),V.LFG(ie.d),V.LFG(se.Ye))},Ce.\u0275prov=V.Yz7({token:Ce,factory:Ce.\u0275fac}),M})()},6529:(We,q,m)=>{"use strict";m.d(q,{$k:()=>_,Bo:()=>P,Ef:()=>D,JG:()=>w,N7:()=>me,P2:()=>j,PP:()=>d,Pr:()=>T,Q5:()=>s,T4:()=>ee,Wi:()=>C,ZW:()=>H,_f:()=>ie,bx:()=>se,dx:()=>L,l5:()=>re,ni:()=>Y,qU:()=>Q,yA:()=>h});var t=m(9653);const e=(0,t.ZF)("lnd"),_=(0,t.P1)(e,ce=>ce.nodeSettings),T=(0,t.P1)(e,ce=>({pageSettings:ce.pageSettings,apiCallStatus:ce.apisCallStatus.FetchPageSettings})),s=(0,t.P1)(e,ce=>ce.information),h=((0,t.P1)(e,ce=>({information:ce.information,apiCallStatus:ce.apisCallStatus.FetchInfo})),(0,t.P1)(e,ce=>ce.apisCallStatus)),P=(0,t.P1)(e,ce=>({forwardingHistory:ce.forwardingHistory,apiCallStatus:ce.apisCallStatus.FetchForwardingHistory})),d=(0,t.P1)(e,ce=>({listPayments:ce.listPayments,apiCallStatus:ce.apisCallStatus.FetchPayments})),w=(0,t.P1)(e,ce=>({fees:ce.fees,apiCallStatus:ce.apisCallStatus.FetchFees})),C=(0,t.P1)(e,ce=>({peers:ce.peers,apiCallStatus:ce.apisCallStatus.FetchPeers})),L=(0,t.P1)(e,ce=>({transactions:ce.transactions,apiCallStatus:ce.apisCallStatus.FetchTransactions})),D=(0,t.P1)(e,ce=>({listInvoices:ce.listInvoices,apiCallStatus:ce.apisCallStatus.FetchInvoices})),H=(0,t.P1)(e,ce=>({channels:ce.channels,channelsSummary:ce.channelsSummary,lightningBalance:ce.lightningBalance,apiCallStatus:ce.apisCallStatus.FetchAllChannels})),Y=((0,t.P1)(e,ce=>({channelsSummary:ce.channelsSummary,pendingChannels:ce.pendingChannels,closedChannels:ce.closedChannels,apiCallStatus:ce.apisCallStatus.FetchAllChannels})),(0,t.P1)(e,ce=>({pendingChannels:ce.pendingChannels,pendingChannelsSummary:ce.pendingChannelsSummary,apiCallStatus:ce.apisCallStatus.FetchPendingChannels}))),j=(0,t.P1)(e,ce=>({closedChannels:ce.closedChannels,apiCallStatus:ce.apisCallStatus.FetchClosedChannels})),Q=(0,t.P1)(e,ce=>({blockchainBalance:ce.blockchainBalance,apiCallStatus:ce.apisCallStatus.FetchBalanceBlockchain})),ee=((0,t.P1)(e,ce=>({lightningBalance:ce.lightningBalance,apiCallStatus:ce.apisCallStatus.FetchAllChannels})),(0,t.P1)(e,ce=>({utxos:ce.utxos,apiCallStatus:ce.apisCallStatus.FetchUTXOs}))),me=(0,t.P1)(e,ce=>({networkInfo:ce.networkInfo,apiCallStatus:ce.apisCallStatus.FetchNetwork})),re=(0,t.P1)(e,ce=>({allLightningTransactions:ce.allLightningTransactions,apiCallStatus:ce.apisCallStatus.FetchLightningTransactions})),ie=(0,t.P1)(e,ce=>({channels:ce.channels,pendingChannels:ce.pendingChannels,closedChannels:ce.closedChannels})),se=(0,t.P1)(e,ce=>({information:ce.information,nodeSettings:ce.nodeSettings,apiCallStatus:ce.apisCallStatus.FetchInfo}))},8627:(We,q,m)=>{"use strict";m.d(q,{v:()=>rt});var t=m(5412),e=m(2687),_=m(7579),T=m(2722),s=m(7731),y=m(6529),h=m(4650),P=m(5043),d=m(62),w=m(7009),C=m(9653),L=m(6895),D=m(2216),H=m(1576),V=m(5829),Y=m(4859),j=m(3546),Q=m(752),J=m(7392),ee=m(4850),me=m(1572),re=m(266),ie=m(658),se=m(5199),ce=m(3390);const Ce=["scrollContainer"];function M(Ke,lt){if(1&Ke&&h._UZ(0,"qr-code",33),2&Ke){const Ut=h.oxw();h.Q6J("value",null==Ut.invoice?null:Ut.invoice.payment_request)("size",Ut.qrWidth)("errorCorrectionLevel","L")}}function i(Ke,lt){1&Ke&&(h.TgZ(0,"span",34),h._uU(1,"N/A"),h.qZA())}function a(Ke,lt){if(1&Ke&&h._UZ(0,"qr-code",33),2&Ke){const Ut=h.oxw();h.Q6J("value",null==Ut.invoice?null:Ut.invoice.payment_request)("size",Ut.qrWidth)("errorCorrectionLevel","L")}}function f(Ke,lt){1&Ke&&(h.TgZ(0,"span",35),h._uU(1,"QR Code Not Applicable"),h.qZA())}function l(Ke,lt){1&Ke&&h._UZ(0,"mat-divider",22),2&Ke&&h.Q6J("inset",!0)}function v(Ke,lt){1&Ke&&(h.ynx(0),h._uU(1," (zero amount) "),h.BQk())}function I(Ke,lt){1&Ke&&h._UZ(0,"span",41)}const k=function(){return[]};function x(Ke,lt){if(1&Ke&&(h.TgZ(0,"div",37)(1,"div",38)(2,"span",39),h._uU(3),h.ALo(4,"number"),h.qZA(),h.YNc(5,I,1,0,"span",40),h.qZA()()),2&Ke){const Ut=h.oxw(2);h.xp6(3),h.hij("",h.lcZ(4,2,null==Ut.invoice?null:Ut.invoice.amt_paid_sat)," Sats"),h.xp6(2),h.Q6J("ngForOf",h.DdM(4,k).constructor(35))}}function n(Ke,lt){if(1&Ke&&(h.TgZ(0,"div"),h._uU(1),h.ALo(2,"number"),h.qZA()),2&Ke){const Ut=h.oxw(2);h.xp6(1),h.hij("",h.lcZ(2,1,null==Ut.invoice?null:Ut.invoice.amt_paid_sat)," Sats")}}function g(Ke,lt){if(1&Ke&&(h.ynx(0),h.YNc(1,x,6,5,"div",36),h.YNc(2,n,3,3,"div",21),h.BQk()),2&Ke){const Ut=h.oxw();h.xp6(1),h.Q6J("ngIf",Ut.flgInvoicePaid),h.xp6(1),h.Q6J("ngIf",!Ut.flgInvoicePaid)}}function W(Ke,lt){1&Ke&&(h.TgZ(0,"span"),h._uU(1,"-"),h.qZA())}function O(Ke,lt){1&Ke&&h._UZ(0,"mat-spinner",43),2&Ke&&h.Q6J("diameter",20)}function G(Ke,lt){if(1&Ke&&(h.ynx(0),h.YNc(1,W,2,0,"span",21),h.YNc(2,O,1,1,"mat-spinner",42),h.BQk()),2&Ke){const Ut=h.oxw();h.xp6(1),h.Q6J("ngIf","OPEN"!==(null==Ut.invoice?null:Ut.invoice.state)||!Ut.flgVersionCompatible),h.xp6(1),h.Q6J("ngIf","OPEN"===(null==Ut.invoice?null:Ut.invoice.state)&&Ut.flgVersionCompatible)}}function ge(Ke,lt){1&Ke&&h.GkF(0)}function nt(Ke,lt){if(1&Ke&&(h.TgZ(0,"div"),h.YNc(1,ge,1,0,"ng-container",44),h.qZA()),2&Ke){h.oxw();const Ut=h.MAs(79);h.xp6(1),h.Q6J("ngTemplateOutlet",Ut)}}function Ue(Ke,lt){if(1&Ke){const Ut=h.EpF();h.TgZ(0,"div",45)(1,"button",46),h.NdJ("click",function(){h.CHM(Ut);const Ge=h.oxw();return h.KtG(Ge.onScrollDown())}),h.TgZ(2,"mat-icon",47),h._uU(3,"arrow_downward"),h.qZA()()()}}function at(Ke,lt){1&Ke&&(h.TgZ(0,"p"),h._uU(1,"Show Advanced"),h.qZA())}function ye(Ke,lt){1&Ke&&(h.TgZ(0,"p"),h._uU(1,"Hide Advanced"),h.qZA())}function xe(Ke,lt){if(1&Ke){const Ut=h.EpF();h.TgZ(0,"button",48),h.NdJ("copied",function(Ge){h.CHM(Ut);const yt=h.oxw();return h.KtG(yt.onCopyPayment(Ge))}),h._uU(1),h.qZA()}if(2&Ke){const Ut=h.oxw();h.Q6J("payload",null==Ut.invoice?null:Ut.invoice.payment_request),h.xp6(1),h.Oqu(Ut.screenSize===Ut.screenSizeEnum.XS?"Copy Payment":"Copy Payment Request")}}function fe(Ke,lt){if(1&Ke){const Ut=h.EpF();h.TgZ(0,"button",49),h.NdJ("click",function(){h.CHM(Ut);const Ge=h.oxw();return h.KtG(Ge.onClose())}),h._uU(1,"OK"),h.qZA()}}const Oe=function(Ke){return{"mr-0":Ke}};function oe(Ke,lt){if(1&Ke&&h._UZ(0,"span",64),2&Ke){const Ut=h.oxw(4);h.Q6J("ngClass",h.VKq(1,Oe,Ut.screenSize===Ut.screenSizeEnum.XS))}}function Fe(Ke,lt){if(1&Ke&&h._UZ(0,"span",65),2&Ke){const Ut=h.oxw(4);h.Q6J("ngClass",h.VKq(1,Oe,Ut.screenSize===Ut.screenSizeEnum.XS))}}function De(Ke,lt){if(1&Ke&&h._UZ(0,"span",66),2&Ke){const Ut=h.oxw(4);h.Q6J("ngClass",h.VKq(1,Oe,Ut.screenSize===Ut.screenSizeEnum.XS))}}function he(Ke,lt){if(1&Ke&&(h.TgZ(0,"div",53)(1,"div",58)(2,"span",59),h.YNc(3,oe,1,3,"span",60),h.YNc(4,Fe,1,3,"span",61),h.YNc(5,De,1,3,"span",62),h._uU(6),h.qZA(),h.TgZ(7,"span",63),h._uU(8),h.ALo(9,"number"),h.qZA()(),h._UZ(10,"mat-divider",22),h.qZA()),2&Ke){const Ut=lt.$implicit,ht=h.oxw(3);h.xp6(3),h.Q6J("ngIf","SETTLED"===Ut.state),h.xp6(1),h.Q6J("ngIf","ACCEPTED"===Ut.state),h.xp6(1),h.Q6J("ngIf","CANCELED"===Ut.state),h.xp6(1),h.hij(" ",Ut.chan_id," "),h.xp6(2),h.Oqu(h.xi3(9,6,+Ut.amt_msat/1e3||0,ht.getDecimalFormat(Ut))),h.xp6(2),h.Q6J("inset",!0)}}function Me(Ke,lt){if(1&Ke){const Ut=h.EpF();h.TgZ(0,"div",17)(1,"mat-expansion-panel",51),h.NdJ("opened",function(){h.CHM(Ut);const Ge=h.oxw(2);return h.KtG(Ge.flgOpened=!0)})("closed",function(){h.CHM(Ut);const Ge=h.oxw(2);return h.KtG(Ge.onExpansionClosed())}),h.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title")(4,"h4",52),h._uU(5,"HTLCs"),h.qZA()()(),h.TgZ(6,"div",53)(7,"div",54)(8,"span",55),h._uU(9,"Channel ID"),h.qZA(),h.TgZ(10,"span",56),h._uU(11,"Amount (Sats)"),h.qZA()(),h._UZ(12,"mat-divider",22),h.YNc(13,he,11,9,"div",57),h.qZA()()()}if(2&Ke){const Ut=h.oxw(2);h.xp6(12),h.Q6J("inset",!0),h.xp6(1),h.Q6J("ngForOf",null==Ut.invoice?null:Ut.invoice.htlcs)}}function pe(Ke,lt){1&Ke&&h._UZ(0,"mat-divider",22),2&Ke&&h.Q6J("inset",!0)}function Ve(Ke,lt){if(1&Ke&&(h._UZ(0,"mat-divider",22),h.TgZ(1,"div",17)(2,"div",23)(3,"h4",19),h._uU(4,"Preimage"),h.qZA(),h.TgZ(5,"span",24),h._uU(6),h.qZA()()(),h._UZ(7,"mat-divider",22),h.TgZ(8,"div",17)(9,"div",18)(10,"h4",19),h._uU(11,"State"),h.qZA(),h.TgZ(12,"span",24),h._uU(13),h.qZA()(),h.TgZ(14,"div",18)(15,"h4",19),h._uU(16,"Expiry"),h.qZA(),h.TgZ(17,"span",24),h._uU(18),h.ALo(19,"date"),h.qZA()()(),h._UZ(20,"mat-divider",22),h.TgZ(21,"div",17)(22,"div",18)(23,"h4",19),h._uU(24,"Private Routing Hints"),h.qZA(),h.TgZ(25,"span",24),h._uU(26),h.qZA()(),h.TgZ(27,"div",18)(28,"h4",19),h._uU(29,"AMP Invoice"),h.qZA(),h.TgZ(30,"span",24),h._uU(31),h.qZA()()(),h._UZ(32,"mat-divider",22),h.YNc(33,Me,14,2,"div",50),h.YNc(34,pe,1,1,"mat-divider",14)),2&Ke){const Ut=h.oxw();h.Q6J("inset",!0),h.xp6(6),h.Oqu((null==Ut.invoice?null:Ut.invoice.r_preimage)||"-"),h.xp6(1),h.Q6J("inset",!0),h.xp6(6),h.Oqu(null==Ut.invoice?null:Ut.invoice.state),h.xp6(5),h.Oqu(h.xi3(19,11,1e3*(+(null==Ut.invoice?null:Ut.invoice.creation_date)+ +(null==Ut.invoice?null:Ut.invoice.expiry)),"dd/MMM/y HH:mm")),h.xp6(2),h.Q6J("inset",!0),h.xp6(6),h.Oqu(null!=Ut.invoice&&Ut.invoice.private?"Yes":"No"),h.xp6(5),h.Oqu(null!=Ut.invoice&&Ut.invoice.is_amp?"Yes":"No"),h.xp6(1),h.Q6J("inset",!0),h.xp6(1),h.Q6J("ngIf",(null==Ut.invoice?null:Ut.invoice.htlcs)&&(null==Ut.invoice?null:Ut.invoice.htlcs.length)>0),h.xp6(1),h.Q6J("ngIf",(null==Ut.invoice?null:Ut.invoice.htlcs)&&(null==Ut.invoice?null:Ut.invoice.htlcs.length)>0)}}const Qe=function(Ke){return{"display-none":Ke}},Pe=function(Ke){return{"xs-scroll-y":Ke}},de=function(Ke){return{"h-50":Ke}};let rt=(()=>{var Ke;class lt{constructor(ht,Ge,yt,be,qe,Ie){this.dialogRef=ht,this.data=Ge,this.logger=yt,this.commonService=be,this.snackBar=qe,this.store=Ie,this.faReceipt=e.dLy,this.showAdvanced=!1,this.newlyAdded=!1,this.invoice=null,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.cu,this.flgOpened=!1,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new _.x,new _.x,new _.x,new _.x,new _.x]}set container(ht){ht&&(this.scrollContainer=ht)}ngOnInit(){this.invoice=JSON.parse(JSON.stringify(this.data.invoice)),this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS&&(this.qrWidth=220),this.store.select(y.Q5).pipe((0,T.R)(this.unSubs[0])).subscribe(Ge=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(Ge.version,"0.11.0")});const ht=JSON.parse(JSON.stringify(this.invoice));this.store.select(y.Ef).pipe((0,T.R)(this.unSubs[1])).subscribe(Ge=>{const yt=this.invoice?.state,qe=(Ge.listInvoices.invoices||[]).find(Ie=>Ie.r_hash===ht.r_hash)||null;qe&&(this.invoice=qe),yt!==this.invoice?.state&&"SETTLED"===this.invoice?.state&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(Ge)})}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(ht){this.snackBar.open("Payment request copied."),this.logger.info("Copied Text: "+ht)}getDecimalFormat(ht){return ht.amt_msat<1e3?"1.0-4":"1.0-0"}ngOnDestroy(){this.unSubs.forEach(ht=>{ht.next(null),ht.complete()})}}return(Ke=lt).\u0275fac=function(ht){return new(ht||Ke)(h.Y36(t.so),h.Y36(t.WI),h.Y36(P.mQ),h.Y36(d.v),h.Y36(w.ux),h.Y36(C.yh))},Ke.\u0275cmp=h.Xpm({type:Ke,selectors:[["rtl-invoice-information"]],viewQuery:function(ht,Ge){if(1&ht&&h.Gf(Ce,5),2&ht){let yt;h.iGM(yt=h.CRH())&&(Ge.container=yt.first)}},decls:80,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 center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],[3,"ngClass"],["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"],["advancedBlock",""],[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"],[4,"ngTemplateOutlet"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container","padding-gap-x-large"],["mat-mini-fab","","aria-label","Scroll Down","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"flat-expansion-panel",3,"opened","closed"],["fxLayoutAlign","start center","fxFlex","100",1,"font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100",1,"mt-minus-1"],["fxFlex","60",1,"foreground-secondary-text","font-bold-500"],["fxFlex","40",1,"foreground-secondary-text","font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100"],["fxFlex","60",1,"foreground-secondary-text"],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Accepted","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Cancelled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["fxFlex","40",1,"foreground-secondary-text"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Accepted","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Cancelled","matTooltipPosition","right",1,"dot","red",3,"ngClass"]],template:function(ht,Ge){if(1&ht&&(h.TgZ(0,"div",0)(1,"div",1),h.YNc(2,M,1,3,"qr-code",2),h.YNc(3,i,2,0,"span",3),h.qZA(),h.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),h._UZ(7,"fa-icon",7),h.TgZ(8,"span",8),h._uU(9),h.qZA()(),h.TgZ(10,"button",9),h.NdJ("click",function(){return Ge.onClose()}),h._uU(11,"X"),h.qZA()(),h.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),h.YNc(15,a,1,3,"qr-code",2),h.YNc(16,f,2,0,"span",13),h.qZA(),h.YNc(17,l,1,1,"mat-divider",14),h.TgZ(18,"div",15,16)(20,"div",17)(21,"div",18)(22,"h4",19),h._uU(23),h.qZA(),h.TgZ(24,"span",20),h._uU(25),h.ALo(26,"number"),h.YNc(27,v,2,0,"ng-container",21),h.qZA()(),h.TgZ(28,"div",18)(29,"h4",19),h._uU(30,"Amount Settled"),h.qZA(),h.TgZ(31,"span",20),h.YNc(32,g,3,2,"ng-container",21),h.YNc(33,G,3,2,"ng-container",21),h.qZA()()(),h._UZ(34,"mat-divider",22),h.TgZ(35,"div",17)(36,"div",18)(37,"h4",19),h._uU(38,"Date Created"),h.qZA(),h.TgZ(39,"span",20),h._uU(40),h.ALo(41,"date"),h.qZA()(),h.TgZ(42,"div",18)(43,"h4",19),h._uU(44,"Date Settled"),h.qZA(),h.TgZ(45,"span",20),h._uU(46),h.ALo(47,"date"),h.qZA()()(),h._UZ(48,"mat-divider",22),h.TgZ(49,"div",17)(50,"div",23)(51,"h4",19),h._uU(52,"Memo"),h.qZA(),h.TgZ(53,"span",20),h._uU(54),h.qZA()()(),h._UZ(55,"mat-divider",22),h.TgZ(56,"div",17)(57,"div",23)(58,"h4",19),h._uU(59,"Payment Request"),h.qZA(),h.TgZ(60,"span",24),h._uU(61),h.qZA()()(),h._UZ(62,"mat-divider",22),h.TgZ(63,"div",17)(64,"div",23)(65,"h4",19),h._uU(66,"Payment Hash"),h.qZA(),h.TgZ(67,"span",24),h._uU(68),h.qZA()()(),h.YNc(69,nt,2,1,"div",21),h.qZA()()(),h.YNc(70,Ue,4,0,"div",25),h.TgZ(71,"div",26)(72,"button",27),h.NdJ("click",function(){return Ge.onShowAdvanced()}),h.YNc(73,at,2,0,"p",28),h.YNc(74,ye,2,0,"ng-template",null,29,h.W1O),h.qZA(),h.YNc(76,xe,2,2,"button",30),h.YNc(77,fe,2,0,"button",31),h.qZA()()(),h.YNc(78,Ve,35,14,"ng-template",null,32,h.W1O)),2&ht){const yt=h.MAs(75);h.xp6(1),h.Q6J("fxLayoutAlign",null!=Ge.invoice&&Ge.invoice.payment_request&&""!==(null==Ge.invoice?null:Ge.invoice.payment_request)?"center start":"center center")("ngClass",h.VKq(41,Qe,Ge.screenSize===Ge.screenSizeEnum.XS||Ge.screenSize===Ge.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==Ge.invoice?null:Ge.invoice.payment_request)&&""!==(null==Ge.invoice?null:Ge.invoice.payment_request)),h.xp6(1),h.Q6J("ngIf",!(null!=Ge.invoice&&Ge.invoice.payment_request)||""===(null==Ge.invoice?null:Ge.invoice.payment_request)),h.xp6(4),h.Q6J("icon",Ge.faReceipt),h.xp6(2),h.Oqu(Ge.screenSize===Ge.screenSizeEnum.XS?Ge.newlyAdded?"Created":"Invoice":Ge.newlyAdded?"Invoice Created":"Invoice Information"),h.xp6(3),h.Q6J("ngClass",h.VKq(43,Pe,Ge.screenSize===Ge.screenSizeEnum.XS)),h.xp6(2),h.Q6J("fxLayoutAlign",null!=Ge.invoice&&Ge.invoice.payment_request&&""!==(null==Ge.invoice?null:Ge.invoice.payment_request)?"center start":"center center")("ngClass",h.VKq(45,Qe,Ge.screenSize!==Ge.screenSizeEnum.XS&&Ge.screenSize!==Ge.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==Ge.invoice?null:Ge.invoice.payment_request)&&""!==(null==Ge.invoice?null:Ge.invoice.payment_request)),h.xp6(1),h.Q6J("ngIf",!(null!=Ge.invoice&&Ge.invoice.payment_request)||""===(null==Ge.invoice?null:Ge.invoice.payment_request)),h.xp6(1),h.Q6J("ngIf",Ge.screenSize===Ge.screenSizeEnum.XS||Ge.screenSize===Ge.screenSizeEnum.SM),h.xp6(1),h.Q6J("ngClass",h.VKq(47,de,(null==Ge.invoice?null:Ge.invoice.htlcs)&&(null==Ge.invoice?null:Ge.invoice.htlcs.length)>0&&Ge.showAdvanced)),h.xp6(5),h.Oqu(Ge.screenSize===Ge.screenSizeEnum.XS?"Amount":"Amount Requested"),h.xp6(2),h.hij("",h.lcZ(26,33,(null==Ge.invoice?null:Ge.invoice.value)||0)," Sats"),h.xp6(2),h.Q6J("ngIf",!(null!=Ge.invoice&&Ge.invoice.value)||"0"===(null==Ge.invoice?null:Ge.invoice.value)),h.xp6(5),h.Q6J("ngIf",(null==Ge.invoice?null:Ge.invoice.amt_paid_sat)&&"OPEN"!==(null==Ge.invoice?null:Ge.invoice.state)),h.xp6(1),h.Q6J("ngIf",!(null!=Ge.invoice&&Ge.invoice.amt_paid_sat)||"0"===(null==Ge.invoice?null:Ge.invoice.amt_paid_sat)),h.xp6(1),h.Q6J("inset",!0),h.xp6(6),h.Oqu(h.xi3(41,35,1e3*(null==Ge.invoice?null:Ge.invoice.creation_date),"dd/MMM/y HH:mm")),h.xp6(6),h.Oqu(0!=+(null==Ge.invoice?null:Ge.invoice.settle_date)?h.xi3(47,38,1e3*+(null==Ge.invoice?null:Ge.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),h.xp6(2),h.Q6J("inset",!0),h.xp6(6),h.Oqu(null==Ge.invoice?null:Ge.invoice.memo),h.xp6(1),h.Q6J("inset",!0),h.xp6(6),h.Oqu((null==Ge.invoice?null:Ge.invoice.payment_request)||"N/A"),h.xp6(1),h.Q6J("inset",!0),h.xp6(6),h.Oqu((null==Ge.invoice?null:Ge.invoice.r_hash)||""),h.xp6(1),h.Q6J("ngIf",Ge.showAdvanced),h.xp6(1),h.Q6J("ngIf",(null==Ge.invoice?null:Ge.invoice.htlcs)&&(null==Ge.invoice?null:Ge.invoice.htlcs.length)>0&&Ge.showAdvanced&&Ge.flgOpened),h.xp6(3),h.Q6J("ngIf",!Ge.showAdvanced)("ngIfElse",yt),h.xp6(3),h.Q6J("ngIf",(null==Ge.invoice?null:Ge.invoice.payment_request)&&""!==(null==Ge.invoice?null:Ge.invoice.payment_request)),h.xp6(1),h.Q6J("ngIf",!(null!=Ge.invoice&&Ge.invoice.payment_request)||""===(null==Ge.invoice?null:Ge.invoice.payment_request))}},dependencies:[L.mk,L.sg,L.O5,L.tP,D.BN,H.xw,H.Wh,H.yH,V.oO,Y.lW,Y.nh,j.dn,j.dk,Q.ib,Q.yz,Q.yK,J.Hw,ee.d,me.Ou,re.gM,ie.uU,se.y,ce.h,L.JJ,L.uU]}),lt})()},7772:(We,q,m)=>{"use strict";m.d(q,{J:()=>_,_:()=>e});var t=m(7340);const e=[(0,t.X$)("opacityAnimation",[(0,t.eR)(":enter",[(0,t.oB)({opacity:0}),(0,t.jt)("1000ms ease-in",(0,t.oB)({opacity:1}))]),(0,t.eR)(":leave",[(0,t.jt)("0ms",(0,t.oB)({opacity:0}))])])],_=[(0,t.X$)("fadeIn",[(0,t.eR)("void => *",[]),(0,t.eR)("* => void",[]),(0,t.eR)("* => *",[(0,t.jt)(800,(0,t.F4)([(0,t.oB)({opacity:0,transform:"translateY(100%)"}),(0,t.oB)({opacity:1,transform:"translateY(0%)"})]))])])]},8878:(We,q,m)=>{"use strict";m.d(q,{g:()=>e});var t=m(7340);const e=(0,t.X$)("routeAnimation",[(0,t.eR)("* => *",[(0,t.IO)(":enter, :leave",(0,t.oB)({position:"fixed",width:"100%"}),{optional:!0}),(0,t.ru)([(0,t.IO)(":enter",[(0,t.oB)({transform:"translateX(100%)"}),(0,t.jt)("1000ms ease-in-out",(0,t.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,t.IO)(":leave",[(0,t.oB)({transform:"translateX(0%)"}),(0,t.jt)("1000ms ease-in-out",(0,t.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])])},113:(We,q,m)=>{"use strict";m.d(q,{l:()=>e});var t=m(7340);const e=[(0,t.X$)("sliderAnimation",[(0,t.SB)("*",(0,t.oB)({transform:"translateX(0)"})),(0,t.eR)("void => backward",[(0,t.oB)({transform:"translateX(-100%"}),(0,t.jt)("800ms")]),(0,t.eR)("backward => void",[(0,t.jt)("0ms",(0,t.oB)({transform:"translateX(100%)"}))]),(0,t.eR)("void => forward",[(0,t.oB)({transform:"translateX(100%"}),(0,t.jt)("800ms")]),(0,t.eR)("forward => void",[(0,t.jt)("0ms",(0,t.oB)({transform:"translateX(-100%)"}))])])]},1786:(We,q,m)=>{"use strict";m.d(q,{H:()=>C});var t=m(5412),e=m(4650),_=m(5043),T=m(6895),s=m(1576),y=m(4859),h=m(3546),P=m(4850),d=m(3390);function w(L,D){if(1&L&&(e.TgZ(0,"p",14),e._uU(1),e.qZA()),2&L){const H=e.oxw();e.xp6(1),e.Oqu(H.data.titleMessage)}}let C=(()=>{var L;class D{constructor(V,Y,j){this.dialogRef=V,this.data=Y,this.logger=j,this.errorMessage=""}ngOnInit(){this.errorMessage=this.data.message&&this.data.message.message&&"object"==typeof this.data.message.message?JSON.stringify(this.data.message.message):this.data.message&&this.data.message.message?this.data.message.message:"",!this.data.message&&!this.data.titleMessage&&!this.data.message&&(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.data.message)}onClose(){this.dialogRef.close(!1)}}return(L=D).\u0275fac=function(V){return new(V||L)(e.Y36(t.so),e.Y36(t.WI),e.Y36(_.mQ))},L.\u0275cmp=e.Xpm({type:L,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 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(V,Y){1&V&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5),e.qZA()(),e.TgZ(6,"button",5),e.NdJ("click",function(){return Y.onClose()}),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"div",7),e.YNc(10,w,2,1,"p",8),e.TgZ(11,"h4",9),e._uU(12,"Error Code"),e.qZA(),e.TgZ(13,"span"),e._uU(14),e.qZA(),e._UZ(15,"mat-divider",10),e.TgZ(16,"h4",9),e._uU(17,"Error Message"),e.qZA(),e.TgZ(18,"span",11),e._uU(19),e.qZA(),e._UZ(20,"mat-divider",10),e.TgZ(21,"h4",9),e._uU(22,"API URL"),e.qZA(),e.TgZ(23,"span",11),e._uU(24),e.qZA(),e._UZ(25,"mat-divider",10),e.TgZ(26,"div",12)(27,"button",13),e._uU(28,"OK"),e.qZA()()()()()()),2&V&&(e.xp6(5),e.Oqu(Y.data.alertTitle||"ERROR"),e.xp6(5),e.Q6J("ngIf",Y.data.titleMessage),e.xp6(4),e.Oqu(Y.data.message.code),e.xp6(5),e.Oqu(Y.errorMessage),e.xp6(5),e.Oqu(Y.data.message.URL),e.xp6(3),e.Q6J("mat-dialog-close",!1))},dependencies:[T.O5,s.xw,s.Wh,s.yH,t.ZT,y.lW,h.dn,h.dk,P.d,d.h],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),D})()},2615:(We,q,m)=>{"use strict";m.d(q,{a:()=>Gi});var t=m(4006),e=m(7579),_=m(2722),T=m(5412),s=m(2687),y=m(7772),h=m(7731),P=m(6529),d=m(4650),w=m(9653),C=m(9107),L=m(6895),D=m(5043),H=m(9116),V=m(62),Y=m(1576),j=m(5829),Q=m(4859),J=m(3546),ee=m(752),me=m(7392),re=m(4144),ie=m(9549),se=m(3162),ce=m(1948),Ce=m(455),M=m(266),i=m(8425),a=m(3390),f=m(4850);function l(Xe,It){1&Xe&&d.GkF(0)}function v(Xe,It){1&Xe&&d.GkF(0)}const I=function(Xe){return{"h-5":Xe}};function k(Xe,It){if(1&Xe&&(d.TgZ(0,"mat-expansion-panel",3)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",4),d._uU(4),d.ALo(5,"number"),d.qZA()()(),d.YNc(6,v,1,0,"ng-container",0),d.qZA()),2&Xe){const Se=d.oxw(),wt=d.MAs(4);d.Q6J("expanded",Se.panelExpanded)("ngClass",d.VKq(7,I,!Se.flgShowPanel)),d.xp6(4),d.AsE("Quote for ",Se.termCaption," amount (",d.lcZ(5,5,Se.quote.amount)," Sats)"),d.xp6(2),d.Q6J("ngTemplateOutlet",wt)}}function x(Xe,It){if(1&Xe&&(d.TgZ(0,"div",19)(1,"h4",8),d._uU(2," Prepay Amount (Sats) "),d.TgZ(3,"mat-icon",20),d._uU(4,"info_outline"),d.qZA()(),d.TgZ(5,"span",10),d._uU(6),d.ALo(7,"number"),d.qZA()()),2&Xe){const Se=d.oxw(2);d.xp6(6),d.Oqu(d.lcZ(7,1,null==Se.quote?null:Se.quote.prepay_amt_sat))}}function n(Xe,It){1&Xe&&d._UZ(0,"mat-divider",13)}function g(Xe,It){if(1&Xe&&(d.TgZ(0,"div",6)(1,"div",21)(2,"h4",8),d._uU(3," Swap Server Node Pubkey "),d.TgZ(4,"mat-icon",22),d._uU(5,"info_outline"),d.qZA()(),d.TgZ(6,"span",10),d._uU(7),d.qZA()()()),2&Xe){const Se=d.oxw(2);d.xp6(7),d.Oqu(null==Se.quote?null:Se.quote.swap_payment_dest)}}function W(Xe,It){if(1&Xe&&(d.TgZ(0,"div",5)(1,"div",6)(2,"div",7)(3,"h4",8),d._uU(4," Swap Fee (Sats) "),d.TgZ(5,"mat-icon",9),d._uU(6,"info_outline"),d.qZA()(),d.TgZ(7,"span",10),d._uU(8),d.ALo(9,"number"),d.qZA()(),d.TgZ(10,"div",7)(11,"h4",8),d._uU(12),d.TgZ(13,"mat-icon",11),d._uU(14,"info_outline"),d.qZA()(),d.TgZ(15,"span",10),d._uU(16),d.ALo(17,"number"),d.qZA()(),d.YNc(18,x,8,3,"div",12),d.qZA(),d._UZ(19,"mat-divider",13),d.TgZ(20,"div",6)(21,"div",14)(22,"h4",8),d._uU(23," Max Off-chain Swap Routing Fee (Sats) "),d.TgZ(24,"mat-icon",15),d._uU(25,"info_outline"),d.qZA()(),d.TgZ(26,"span",10),d._uU(27),d.ALo(28,"number"),d.qZA()(),d.TgZ(29,"div",14)(30,"h4",8),d._uU(31," Max Off-chain Prepay Routing Fee (Sats) "),d.TgZ(32,"mat-icon",16),d._uU(33,"info_outline"),d.qZA()(),d.TgZ(34,"span",10),d._uU(35,"36"),d.qZA()()(),d.YNc(36,n,1,0,"mat-divider",17),d.YNc(37,g,8,1,"div",18),d.qZA()),2&Xe){const Se=d.oxw();d.xp6(2),d.Q6J("fxFlex",null!=Se.quote&&Se.quote.prepay_amt_sat?"30":"50"),d.xp6(6),d.Oqu(d.lcZ(9,9,null==Se.quote?null:Se.quote.swap_fee_sat)),d.xp6(2),d.Q6J("fxFlex",null!=Se.quote&&Se.quote.prepay_amt_sat?"35":"50"),d.xp6(2),d.hij(" ",null!=Se.quote&&Se.quote.htlc_sweep_fee_sat?"HTLC Sweep Fee (Sats)":null!=Se.quote&&Se.quote.htlc_publish_fee_sat?"HTLC Publish Fee (Sats)":""," "),d.xp6(4),d.Oqu(d.lcZ(17,11,null!=Se.quote&&Se.quote.htlc_sweep_fee_sat?Se.quote.htlc_sweep_fee_sat:null!=Se.quote&&Se.quote.htlc_publish_fee_sat?Se.quote.htlc_publish_fee_sat:0)),d.xp6(2),d.Q6J("ngIf",null==Se.quote?null:Se.quote.prepay_amt_sat),d.xp6(9),d.Oqu(d.lcZ(28,13,(null==Se.quote?null:Se.quote.amount)*((null!=Se.quote&&Se.quote.off_chain_swap_routing_fee_percentage?null==Se.quote?null:Se.quote.off_chain_swap_routing_fee_percentage:2)/100))),d.xp6(9),d.Q6J("ngIf",""!==(null==Se.quote?null:Se.quote.swap_payment_dest)),d.xp6(1),d.Q6J("ngIf",""!==(null==Se.quote?null:Se.quote.swap_payment_dest))}}let O=(()=>{var Xe;class It{constructor(){this.quote={},this.termCaption="",this.showPanel=!0,this.panelExpanded=!1,this.flgShowPanel=!1}ngOnInit(){setTimeout(()=>{this.flgShowPanel=!0},1200)}}return(Xe=It).\u0275fac=function(wt){return new(wt||Xe)},Xe.\u0275cmp=d.Xpm({type:Xe,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(wt,Zt){if(1&wt&&(d.YNc(0,l,1,0,"ng-container",0),d.YNc(1,k,7,9,"ng-template",null,1,d.W1O),d.YNc(3,W,38,15,"ng-template",null,2,d.W1O)),2&wt){const si=d.MAs(2),Ai=d.MAs(4);d.Q6J("ngTemplateOutlet",Zt.showPanel?si:Ai)}},dependencies:[L.mk,L.O5,L.tP,Y.xw,Y.Wh,Y.yH,j.oO,ee.ib,ee.yz,ee.yK,me.Hw,f.d,M.gM,L.JJ]}),It})();function G(Xe,It){1&Xe&&d.GkF(0)}function ge(Xe,It){if(1&Xe&&(d.TgZ(0,"div",3)(1,"span",4),d._uU(2),d.qZA()()),2&Xe){const Se=d.oxw();d.xp6(2),d.Oqu(null!=Se.loopStatus&&Se.loopStatus.error?null==Se.loopStatus?null:Se.loopStatus.error:"Unknown Error.")}}function nt(Xe,It){if(1&Xe&&(d.TgZ(0,"div",3)(1,"div",5)(2,"div",6)(3,"h4",7),d._uU(4,"ID"),d.qZA(),d.TgZ(5,"span",4),d._uU(6),d.qZA()()(),d._UZ(7,"mat-divider",8),d.TgZ(8,"div",5)(9,"div",6)(10,"h4",7),d._uU(11,"HTLC Address"),d.qZA(),d.TgZ(12,"span",4),d._uU(13),d.qZA()()()()),2&Xe){const Se=d.oxw();d.xp6(6),d.Oqu(null==Se.loopStatus?null:Se.loopStatus.id_bytes),d.xp6(7),d.Oqu(null==Se.loopStatus?null:Se.loopStatus.htlc_address)}}let Ue=(()=>{var Xe;class It{constructor(){}}return(Xe=It).\u0275fac=function(wt){return new(wt||Xe)},Xe.\u0275cmp=d.Xpm({type:Xe,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(wt,Zt){if(1&wt&&(d.YNc(0,G,1,0,"ng-container",0),d.YNc(1,ge,3,1,"ng-template",null,1,d.W1O),d.YNc(3,nt,14,2,"ng-template",null,2,d.W1O)),2&wt){const si=d.MAs(2),Ai=d.MAs(4);d.Q6J("ngTemplateOutlet",null!=Zt.loopStatus&&Zt.loopStatus.error?si:Ai)}},dependencies:[L.tP,Y.xw,Y.Wh,Y.yH,f.d]}),It})();var at=m(113);function ye(Xe,It){1&Xe&&d.GkF(0)}const xe=function(Xe,It){return{"small-svg":Xe,"large-svg":It}};function fe(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(Zt){d.CHM(Se);const si=d.oxw();return d.KtG(si.onSwipe(Zt))}),d.O4$(),d.TgZ(1,"svg",7)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),d._UZ(8,"circle",12)(9,"path",13),d.qZA(),d.TgZ(10,"g",14),d._UZ(11,"ellipse",15)(12,"ellipse",16)(13,"rect",17)(14,"rect",18)(15,"rect",19)(16,"rect",20)(17,"rect",21)(18,"rect",22)(19,"rect",23)(20,"rect",24)(21,"rect",25)(22,"rect",26)(23,"rect",27)(24,"rect",28)(25,"rect",29),d.qZA()()()()(),d.kcU(),d.TgZ(26,"div",30)(27,"mat-card-title"),d._uU(28,"Loop In explained."),d.qZA()(),d.TgZ(29,"div",31)(30,"mat-card-subtitle",32),d._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),d.qZA()()()}if(2&Xe){const Se=d.oxw();d.Q6J("@sliderAnimation",Se.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,xe,Se.screenSize===Se.screenSizeEnum.XS,Se.screenSize!==Se.screenSizeEnum.XS))}}function Oe(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(Zt){d.CHM(Se);const si=d.oxw();return d.KtG(si.onSwipe(Zt))}),d.O4$(),d.TgZ(1,"svg",33)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"defs")(5,"linearGradient",34),d._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),d.qZA()(),d.TgZ(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40),d._UZ(13,"rect",41)(14,"rect",42)(15,"rect",43)(16,"circle",44)(17,"rect",45)(18,"rect",46)(19,"circle",47)(20,"rect",48)(21,"rect",49)(22,"rect",50)(23,"rect",51)(24,"rect",52)(25,"circle",53)(26,"circle",54)(27,"circle",55),d.qZA(),d.TgZ(28,"g",56)(29,"g",57)(30,"g",58),d._UZ(31,"path",59)(32,"rect",60)(33,"polygon",61),d.TgZ(34,"g",62),d._UZ(35,"path",63),d.qZA(),d._UZ(36,"rect",64)(37,"rect",65)(38,"rect",66)(39,"rect",67)(40,"rect",68)(41,"rect",69)(42,"rect",70)(43,"path",71)(44,"path",72),d.qZA(),d.TgZ(45,"g",73),d._UZ(46,"path",74)(47,"path",75)(48,"path",76)(49,"path",77)(50,"path",78)(51,"path",79)(52,"path",80)(53,"path",81)(54,"path",82)(55,"path",83)(56,"path",84)(57,"circle",85)(58,"circle",86),d.qZA(),d._UZ(59,"path",87),d.qZA()()()()()(),d.kcU(),d.TgZ(60,"div",30)(61,"mat-card-title"),d._uU(62,"Step 1: Deciding to Loop In"),d.qZA()(),d.TgZ(63,"div",31)(64,"mat-card-subtitle",32),d._uU(65," Your outgoing capacity is depleted and you want to regain it without opening new channels. "),d.qZA()()()}if(2&Xe){const Se=d.oxw();d.Q6J("@sliderAnimation",Se.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,xe,Se.screenSize===Se.screenSizeEnum.XS,Se.screenSize!==Se.screenSizeEnum.XS))}}function oe(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(Zt){d.CHM(Se);const si=d.oxw();return d.KtG(si.onSwipe(Zt))}),d.O4$(),d.TgZ(1,"svg",88)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"defs")(5,"linearGradient",89),d._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),d.qZA()(),d.TgZ(9,"g",90)(10,"g",91)(11,"g",92)(12,"g",93)(13,"g",94),d._UZ(14,"circle",95)(15,"path",96),d.TgZ(16,"g",97),d._UZ(17,"polygon",98)(18,"polygon",99)(19,"path",100),d.qZA(),d.TgZ(20,"g",101),d._UZ(21,"polygon",102)(22,"path",103)(23,"rect",104)(24,"path",105)(25,"rect",106)(26,"rect",107)(27,"rect",108)(28,"rect",109)(29,"circle",110)(30,"path",111),d.TgZ(31,"g",112)(32,"g",113),d._UZ(33,"g",114),d.qZA(),d._UZ(34,"g",115),d.qZA()()(),d.TgZ(35,"g",116)(36,"g",40),d._UZ(37,"rect",117)(38,"rect",42)(39,"rect",43)(40,"circle",118)(41,"rect",45)(42,"rect",46)(43,"circle",119)(44,"rect",48)(45,"rect",49)(46,"rect",50)(47,"rect",51)(48,"rect",52)(49,"circle",120)(50,"circle",54)(51,"circle",55)(52,"circle",121),d.qZA(),d.TgZ(53,"g",56)(54,"g",57)(55,"g",58),d._UZ(56,"path",59)(57,"rect",60)(58,"polygon",61),d.TgZ(59,"g",122),d._UZ(60,"path",63),d.qZA(),d._UZ(61,"rect",123)(62,"rect",124)(63,"rect",125)(64,"rect",126)(65,"rect",127)(66,"rect",128)(67,"rect",129)(68,"path",130)(69,"path",72),d.qZA(),d.TgZ(70,"g",73),d._UZ(71,"path",131)(72,"path",132)(73,"path",133)(74,"path",134)(75,"path",135)(76,"path",136)(77,"path",80)(78,"path",81)(79,"path",137)(80,"path",83)(81,"path",138)(82,"circle",85)(83,"circle",86),d.qZA(),d._UZ(84,"path",139),d.qZA()()()(),d._UZ(85,"path",140)(86,"path",141),d.qZA()()()(),d.kcU(),d.TgZ(87,"div",30)(88,"mat-card-title"),d._uU(89,"Step 2: Send payment out"),d.qZA()(),d.TgZ(90,"div",31)(91,"mat-card-subtitle",32),d._uU(92," Your node sends funds on-chain to loop server to be swapped with off-chain liquidity. "),d.qZA()()()}if(2&Xe){const Se=d.oxw();d.Q6J("@sliderAnimation",Se.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,xe,Se.screenSize===Se.screenSizeEnum.XS,Se.screenSize!==Se.screenSizeEnum.XS))}}function Fe(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(Zt){d.CHM(Se);const si=d.oxw();return d.KtG(si.onSwipe(Zt))}),d.O4$(),d.TgZ(1,"svg",142)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"g",90)(5,"g",143)(6,"g",144)(7,"g")(8,"g",145)(9,"g",146),d._UZ(10,"circle",12)(11,"path",147),d.qZA(),d.TgZ(12,"g",14),d._UZ(13,"ellipse",148)(14,"ellipse",16)(15,"rect",17)(16,"rect",18)(17,"rect",19)(18,"rect",20)(19,"rect",21)(20,"rect",22)(21,"rect",23)(22,"rect",24)(23,"rect",25)(24,"rect",26)(25,"rect",27)(26,"rect",28)(27,"rect",29),d.qZA()(),d.TgZ(28,"g",149),d._UZ(29,"polygon",150)(30,"polygon",99)(31,"path",151),d.qZA(),d.TgZ(32,"g",152),d._UZ(33,"polygon",102)(34,"path",103)(35,"rect",104)(36,"path",105)(37,"rect",106)(38,"rect",107)(39,"rect",108)(40,"rect",109)(41,"circle",110)(42,"path",111),d.TgZ(43,"g",112)(44,"g",113),d._UZ(45,"g",114),d.qZA(),d._UZ(46,"g",115),d.qZA()()(),d._UZ(47,"path",153),d.qZA()()()(),d.kcU(),d.TgZ(48,"div",30)(49,"mat-card-title"),d._uU(50,"Step 3: Recieve Funds Off-chain"),d.qZA()(),d.TgZ(51,"div",31)(52,"mat-card-subtitle",32),d._uU(53," Loop server sends equivalent funds off-chain to your node by making a lightning payment to you. "),d.qZA()()()}if(2&Xe){const Se=d.oxw();d.Q6J("@sliderAnimation",Se.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,xe,Se.screenSize===Se.screenSizeEnum.XS,Se.screenSize!==Se.screenSizeEnum.XS))}}function De(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(Zt){d.CHM(Se);const si=d.oxw();return d.KtG(si.onSwipe(Zt))}),d.O4$(),d.TgZ(1,"svg",154)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"defs")(5,"linearGradient",34),d._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),d.qZA()(),d.TgZ(9,"g",90)(10,"g",155)(11,"g",156)(12,"g",157)(13,"g",158)(14,"g",40),d._UZ(15,"rect",159)(16,"rect",160)(17,"rect",161)(18,"circle",162)(19,"rect",163)(20,"rect",164)(21,"circle",165)(22,"rect",166)(23,"rect",167)(24,"rect",168)(25,"rect",169)(26,"circle",170)(27,"circle",171),d.qZA(),d.TgZ(28,"g",172),d._UZ(29,"path",173)(30,"rect",174)(31,"polygon",175)(32,"circle",176)(33,"path",177)(34,"rect",178)(35,"rect",179)(36,"rect",180)(37,"rect",181)(38,"rect",182)(39,"rect",183)(40,"rect",184)(41,"path",185)(42,"path",186),d.qZA(),d._UZ(43,"path",187),d.qZA()(),d._UZ(44,"circle",188),d.qZA()()()(),d.kcU(),d.TgZ(45,"div",30)(46,"mat-card-title"),d._uU(47,"Done!"),d.qZA()(),d.TgZ(48,"div",31)(49,"mat-card-subtitle",32),d._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. "),d.qZA()()()}if(2&Xe){const Se=d.oxw();d.Q6J("@sliderAnimation",Se.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,xe,Se.screenSize===Se.screenSizeEnum.XS,Se.screenSize!==Se.screenSizeEnum.XS))}}let he=(()=>{var Xe;class It{constructor(wt){this.commonService=wt,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new d.vpe,this.screenSize="",this.screenSizeEnum=h.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(wt){2===wt.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===wt.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return(Xe=It).\u0275fac=function(wt){return new(wt||Xe)(d.Y36(V.v))},Xe.\u0275cmp=d.Xpm({type:Xe,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(wt,Zt){if(1&wt&&(d.YNc(0,ye,1,0,"ng-container",0),d.YNc(1,fe,32,5,"ng-template",null,1,d.W1O),d.YNc(3,Oe,66,5,"ng-template",null,2,d.W1O),d.YNc(5,oe,93,5,"ng-template",null,3,d.W1O),d.YNc(7,Fe,54,5,"ng-template",null,4,d.W1O),d.YNc(9,De,51,5,"ng-template",null,5,d.W1O)),2&wt){const si=d.MAs(2),Ai=d.MAs(4),Oi=d.MAs(6),Qi=d.MAs(8),en=d.MAs(10);d.Q6J("ngTemplateOutlet",1===Zt.stepNumber?si:2===Zt.stepNumber?Ai:3===Zt.stepNumber?Oi:4===Zt.stepNumber?Qi:en)}},dependencies:[L.mk,L.tP,Y.xw,Y.Wh,Y.yH,j.oO,J.$j,J.n5],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:[at.l]}}),It})();function Me(Xe,It){1&Xe&&d.GkF(0)}const pe=function(Xe,It){return{"small-svg":Xe,"large-svg":It}};function Ve(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(Zt){d.CHM(Se);const si=d.oxw();return d.KtG(si.onSwipe(Zt))}),d.O4$(),d.TgZ(1,"svg",7)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),d._UZ(8,"circle",12)(9,"path",13),d.qZA(),d.TgZ(10,"g",14),d._UZ(11,"ellipse",15)(12,"ellipse",16)(13,"rect",17)(14,"rect",18)(15,"rect",19)(16,"rect",20)(17,"rect",21)(18,"rect",22)(19,"rect",23)(20,"rect",24)(21,"rect",25)(22,"rect",26)(23,"rect",27)(24,"rect",28)(25,"rect",29),d.qZA()()()()(),d.kcU(),d.TgZ(26,"div",30)(27,"mat-card-title"),d._uU(28,"Loop Out explained."),d.qZA()(),d.TgZ(29,"div",31)(30,"mat-card-subtitle",32),d._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),d.qZA()()()}if(2&Xe){const Se=d.oxw();d.Q6J("@sliderAnimation",Se.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,pe,Se.screenSize===Se.screenSizeEnum.XS,Se.screenSize!==Se.screenSizeEnum.XS))}}function Qe(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(Zt){d.CHM(Se);const si=d.oxw();return d.KtG(si.onSwipe(Zt))}),d.O4$(),d.TgZ(1,"svg",33)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"defs")(5,"linearGradient",34),d._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),d.qZA()(),d.TgZ(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40)(13,"g",41)(14,"g",42),d._UZ(15,"rect",43)(16,"rect",44)(17,"rect",45)(18,"circle",46)(19,"rect",47)(20,"rect",48)(21,"circle",49)(22,"rect",50)(23,"rect",51)(24,"rect",52)(25,"rect",53)(26,"circle",54)(27,"circle",55),d.qZA(),d.TgZ(28,"g",56),d._UZ(29,"path",57)(30,"rect",58)(31,"polygon",59)(32,"circle",60)(33,"path",61)(34,"rect",62)(35,"rect",63)(36,"rect",64)(37,"rect",65)(38,"rect",66)(39,"rect",67)(40,"rect",68)(41,"path",69)(42,"path",70),d.qZA(),d._UZ(43,"path",71),d.qZA()(),d._UZ(44,"circle",72),d.qZA()()()(),d.kcU(),d.TgZ(45,"div",30)(46,"mat-card-title"),d._uU(47,"Step 1: Deciding to Loop Out"),d.qZA()(),d.TgZ(48,"div",31)(49,"mat-card-subtitle",32),d._uU(50," You have a channel with a local balance amount and you want to gain inbound liquidity. "),d.qZA()()()}if(2&Xe){const Se=d.oxw();d.Q6J("@sliderAnimation",Se.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,pe,Se.screenSize===Se.screenSizeEnum.XS,Se.screenSize!==Se.screenSizeEnum.XS))}}function Pe(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(Zt){d.CHM(Se);const si=d.oxw();return d.KtG(si.onSwipe(Zt))}),d.O4$(),d.TgZ(1,"svg",73)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"defs")(5,"linearGradient",74),d._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),d.qZA()(),d.TgZ(9,"g",8)(10,"g",75)(11,"g",76),d._UZ(12,"circle",77)(13,"path",78),d.TgZ(14,"g",79),d._UZ(15,"polygon",80)(16,"polygon",81)(17,"path",82),d.qZA(),d.TgZ(18,"g",83),d._UZ(19,"polygon",84)(20,"path",85)(21,"rect",86)(22,"path",87)(23,"rect",88)(24,"rect",89)(25,"rect",90)(26,"rect",91)(27,"circle",92)(28,"path",93),d.TgZ(29,"g",94)(30,"g",95),d._UZ(31,"g",96),d.qZA(),d._UZ(32,"g",97),d.qZA(),d._UZ(33,"path",98),d.qZA(),d.TgZ(34,"g",99)(35,"g",41)(36,"g",42),d._UZ(37,"rect",43)(38,"rect",44)(39,"rect",45)(40,"circle",46)(41,"rect",47)(42,"rect",48)(43,"circle",49)(44,"rect",50)(45,"rect",51)(46,"rect",52)(47,"rect",53)(48,"circle",100)(49,"circle",54)(50,"circle",55)(51,"circle",101),d.qZA(),d.TgZ(52,"g",56),d._UZ(53,"path",57)(54,"rect",102)(55,"polygon",103)(56,"circle",104)(57,"path",61)(58,"rect",105)(59,"rect",106)(60,"rect",107)(61,"rect",108)(62,"rect",109)(63,"rect",110)(64,"rect",68)(65,"path",69)(66,"path",70),d.qZA(),d._UZ(67,"path",111),d.qZA()()()()()(),d.kcU(),d.TgZ(68,"div",30)(69,"mat-card-title"),d._uU(70,"Step 2: Send lightning payment"),d.qZA()(),d.TgZ(71,"div",31)(72,"mat-card-subtitle",32),d._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. "),d.qZA()()()}if(2&Xe){const Se=d.oxw();d.Q6J("@sliderAnimation",Se.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,pe,Se.screenSize===Se.screenSizeEnum.XS,Se.screenSize!==Se.screenSizeEnum.XS))}}function de(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(Zt){d.CHM(Se);const si=d.oxw();return d.KtG(si.onSwipe(Zt))}),d.O4$(),d.TgZ(1,"svg",112)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"g",8)(5,"g",113)(6,"g",114)(7,"g",115)(8,"g",116),d._UZ(9,"circle",12)(10,"path",117),d.qZA(),d.TgZ(11,"g",14),d._UZ(12,"ellipse",118)(13,"ellipse",16)(14,"rect",17)(15,"rect",18)(16,"rect",19)(17,"rect",20)(18,"rect",21)(19,"rect",22)(20,"rect",23)(21,"rect",24)(22,"rect",25)(23,"rect",26)(24,"rect",27)(25,"rect",28)(26,"rect",29),d.qZA()(),d.TgZ(27,"g",119),d._UZ(28,"polygon",80)(29,"polygon",120)(30,"path",82),d.qZA(),d.TgZ(31,"g",121),d._UZ(32,"polygon",84)(33,"path",85)(34,"rect",86)(35,"path",87)(36,"rect",88)(37,"rect",89)(38,"rect",90)(39,"rect",91)(40,"circle",122)(41,"path",93),d.TgZ(42,"g",94)(43,"g",95),d._UZ(44,"g",96),d.qZA(),d._UZ(45,"g",97),d.qZA(),d._UZ(46,"path",123),d.qZA()()()()(),d.kcU(),d.TgZ(47,"div",30)(48,"mat-card-title"),d._uU(49,"Step 3: Receive funds back"),d.qZA()(),d.TgZ(50,"div",31)(51,"mat-card-subtitle",32),d._uU(52," Loop service then sends you a payment on-chain for the amount same as the lightning payment minus the fee. "),d.qZA()()()}if(2&Xe){const Se=d.oxw();d.Q6J("@sliderAnimation",Se.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,pe,Se.screenSize===Se.screenSizeEnum.XS,Se.screenSize!==Se.screenSizeEnum.XS))}}function rt(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(Zt){d.CHM(Se);const si=d.oxw();return d.KtG(si.onSwipe(Zt))}),d.O4$(),d.TgZ(1,"svg",124)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"defs")(5,"linearGradient",34),d._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),d.qZA()(),d.TgZ(9,"g",8)(10,"g",125)(11,"g",126)(12,"g",42),d._UZ(13,"rect",127)(14,"rect",128)(15,"rect",129)(16,"circle",130)(17,"rect",131)(18,"rect",132)(19,"circle",133)(20,"rect",134)(21,"rect",135)(22,"rect",136)(23,"rect",137)(24,"rect",138)(25,"circle",139)(26,"circle",140)(27,"circle",141),d.qZA(),d.TgZ(28,"g",142)(29,"g",143)(30,"g",144),d._UZ(31,"path",145)(32,"rect",146)(33,"polygon",147),d.TgZ(34,"g",148),d._UZ(35,"path",149),d.qZA(),d._UZ(36,"rect",150)(37,"rect",151)(38,"rect",152)(39,"rect",153)(40,"rect",154)(41,"rect",155)(42,"rect",156)(43,"path",157)(44,"path",158),d.qZA(),d.TgZ(45,"g",159),d._UZ(46,"path",160)(47,"path",161)(48,"path",162)(49,"path",163)(50,"path",164)(51,"path",165)(52,"path",166)(53,"path",167)(54,"path",168)(55,"path",169)(56,"path",170)(57,"circle",171)(58,"circle",172),d.qZA(),d._UZ(59,"path",173),d.qZA()()()()()(),d.kcU(),d.TgZ(60,"div",30)(61,"mat-card-title"),d._uU(62,"Done!"),d.qZA()(),d.TgZ(63,"div",31)(64,"mat-card-subtitle",32),d._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. "),d.qZA()()()}if(2&Xe){const Se=d.oxw();d.Q6J("@sliderAnimation",Se.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,pe,Se.screenSize===Se.screenSizeEnum.XS,Se.screenSize!==Se.screenSizeEnum.XS))}}let Ke=(()=>{var Xe;class It{constructor(wt){this.commonService=wt,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new d.vpe,this.screenSize="",this.screenSizeEnum=h.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(wt){2===wt.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===wt.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return(Xe=It).\u0275fac=function(wt){return new(wt||Xe)(d.Y36(V.v))},Xe.\u0275cmp=d.Xpm({type:Xe,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(wt,Zt){if(1&wt&&(d.YNc(0,Me,1,0,"ng-container",0),d.YNc(1,Ve,32,5,"ng-template",null,1,d.W1O),d.YNc(3,Qe,51,5,"ng-template",null,2,d.W1O),d.YNc(5,Pe,74,5,"ng-template",null,3,d.W1O),d.YNc(7,de,53,5,"ng-template",null,4,d.W1O),d.YNc(9,rt,66,5,"ng-template",null,5,d.W1O)),2&wt){const si=d.MAs(2),Ai=d.MAs(4),Oi=d.MAs(6),Qi=d.MAs(8),en=d.MAs(10);d.Q6J("ngTemplateOutlet",1===Zt.stepNumber?si:2===Zt.stepNumber?Ai:3===Zt.stepNumber?Oi:4===Zt.stepNumber?Qi:en)}},dependencies:[L.mk,L.tP,Y.xw,Y.Wh,Y.yH,j.oO,J.$j,J.n5],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:[at.l]}}),It})();const lt=["stepper"];function Ut(Xe,It){if(1&Xe&&(d.TgZ(0,"div",48)(1,"p",49)(2,"strong"),d._uU(3,"Channel Peer:\xa0"),d.qZA(),d._uU(4),d.ALo(5,"titlecase"),d.qZA(),d.TgZ(6,"p",50)(7,"strong"),d._uU(8,"Channel ID:\xa0"),d.qZA(),d._uU(9),d.qZA(),d._UZ(10,"p",50),d.qZA()),2&Xe){const Se=d.oxw(2);d.xp6(4),d.Oqu(d.lcZ(5,2,Se.channel.remote_alias)),d.xp6(5),d.Oqu(Se.channel.chan_id)}}function ht(Xe,It){if(1&Xe&&d._uU(0),2&Xe){const Se=d.oxw(2);d.Oqu(Se.inputFormLabel)}}function Ge(Xe,It){1&Xe&&(d.TgZ(0,"mat-error"),d._uU(1,"Amount is required."),d.qZA())}function yt(Xe,It){if(1&Xe&&(d.TgZ(0,"mat-error"),d._uU(1),d.ALo(2,"number"),d.qZA()),2&Xe){const Se=d.oxw(2);d.xp6(1),d.hij("Amount must be greater than or equal to ",d.lcZ(2,1,Se.minQuote.amount),".")}}function be(Xe,It){if(1&Xe&&(d.TgZ(0,"mat-error"),d._uU(1),d.ALo(2,"number"),d.qZA()),2&Xe){const Se=d.oxw(2);d.xp6(1),d.hij("Amount must be less than or equal to ",d.lcZ(2,1,Se.maxQuote.amount),".")}}function qe(Xe,It){1&Xe&&(d.TgZ(0,"mat-error"),d._uU(1,"Confirmation target is required."),d.qZA())}function Ie(Xe,It){1&Xe&&(d.TgZ(0,"mat-error"),d._uU(1,"Confirmation target must be a positive number."),d.qZA())}function X(Xe,It){1&Xe&&(d.TgZ(0,"mat-error"),d._uU(1,"Percentage is required."),d.qZA())}function mt(Xe,It){1&Xe&&(d.TgZ(0,"mat-error"),d._uU(1,"Percentage must be a positive number."),d.qZA())}function Tt(Xe,It){if(1&Xe&&(d.TgZ(0,"mat-form-field",50)(1,"mat-label"),d._uU(2,"Max Off-chain Routing Fee (%)"),d.qZA(),d._UZ(3,"input",51),d.YNc(4,X,2,0,"mat-error",25),d.YNc(5,mt,2,0,"mat-error",25),d.qZA()),2&Xe){const Se=d.oxw(2);d.xp6(3),d.Q6J("step",1),d.xp6(1),d.Q6J("ngIf",null==Se.inputFormGroup.controls.routingFeePercent.errors?null:Se.inputFormGroup.controls.routingFeePercent.errors.required),d.xp6(1),d.Q6J("ngIf",null==Se.inputFormGroup.controls.routingFeePercent.errors?null:Se.inputFormGroup.controls.routingFeePercent.errors.min)}}function it(Xe,It){1&Xe&&(d.TgZ(0,"div",52)(1,"mat-slide-toggle",53),d._uU(2,"Fast"),d.qZA(),d.TgZ(3,"mat-icon",54),d._uU(4,"info_outline"),d.qZA()())}function je(Xe,It){if(1&Xe&&d._uU(0),2&Xe){const Se=d.oxw(2);d.Oqu(Se.quoteFormLabel)}}function zt(Xe,It){1&Xe&&(d.TgZ(0,"p",55)(1,"mat-icon",56),d._uU(2,"close"),d.qZA(),d._uU(3,"Local balance amount is insufficient for swap."),d.qZA())}function xt(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"button",57),d.NdJ("click",function(){d.CHM(Se);const Zt=d.oxw(2);return d.KtG(Zt.onValidateAmount())}),d._uU(1,"Next"),d.qZA()}}function Nt(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"button",58),d.NdJ("click",function(){d.CHM(Se);const Zt=d.oxw(2);return d.KtG(Zt.onLoop())}),d._uU(1),d.qZA()}if(2&Xe){const Se=d.oxw(2);d.xp6(1),d.hij("Initiate ",Se.loopDirectionCaption,"")}}function Gt(Xe,It){if(1&Xe&&d._uU(0),2&Xe){const Se=d.oxw(3);d.Oqu(Se.addressFormLabel)}}function ke(Xe,It){1&Xe&&(d.TgZ(0,"mat-error"),d._uU(1,"Address is required."),d.qZA())}function $(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"mat-step",16)(1,"form",17),d.YNc(2,Gt,1,1,"ng-template",18),d.TgZ(3,"div",59)(4,"mat-radio-group",60),d.NdJ("change",function(Zt){d.CHM(Se);const si=d.oxw(2);return d.KtG(si.onAddressTypeChange(Zt))}),d.TgZ(5,"mat-radio-button",61),d._uU(6,"Node Local Address"),d.qZA(),d.TgZ(7,"mat-radio-button",62),d._uU(8,"External Address"),d.qZA()(),d.TgZ(9,"mat-form-field",63)(10,"mat-label"),d._uU(11,"Address"),d.qZA(),d._UZ(12,"input",64),d.YNc(13,ke,2,0,"mat-error",25),d.qZA()(),d.TgZ(14,"div",29)(15,"button",65),d.NdJ("click",function(){d.CHM(Se);const Zt=d.oxw(2);return d.KtG(Zt.onLoop())}),d._uU(16),d.qZA()()()()}if(2&Xe){const Se=d.oxw(2);d.Q6J("stepControl",Se.addressFormGroup)("editable",Se.flgEditable),d.xp6(1),d.Q6J("formGroup",Se.addressFormGroup),d.xp6(11),d.Q6J("required","external"===Se.addressFormGroup.controls.addressType.value),d.xp6(1),d.Q6J("ngIf",null==Se.addressFormGroup.controls.address.errors?null:Se.addressFormGroup.controls.address.errors.required),d.xp6(3),d.hij("Initiate ",Se.loopDirectionCaption,"")}}function ue(Xe,It){if(1&Xe&&d._uU(0),2&Xe){const Se=d.oxw(2);d.hij("",Se.loopDirectionCaption," Status")}}function Le(Xe,It){if(1&Xe&&(d.TgZ(0,"mat-icon",66),d._uU(1),d.qZA()),2&Xe){const Se=d.oxw(2);d.xp6(1),d.Oqu(Se.loopStatus&&null!=Se.loopStatus&&Se.loopStatus.id_bytes?"check":"close")}}function Je(Xe,It){1&Xe&&d._UZ(0,"div")}function $t(Xe,It){1&Xe&&d._UZ(0,"mat-progress-bar",67)}function Vt(Xe,It){if(1&Xe&&(d.TgZ(0,"h4",68),d._uU(1),d.qZA()),2&Xe){const Se=d.oxw(2);d.xp6(1),d.Oqu(Se.loopStatus&&Se.loopStatus.error?Se.loopDirectionCaption+" failed.":Se.loopStatus&&Se.loopStatus.id_bytes&&Se.channel?Se.loopDirectionCaption+" request placed successfully. You can check the status of the request on the 'Loop' menu.":Se.loopDirectionCaption+" request placed successfully.")}}function ii(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"button",69),d.NdJ("click",function(){d.CHM(Se);const Zt=d.oxw(2);return d.KtG(Zt.goToLoop())}),d._uU(1,"Check Status"),d.qZA()}}function pt(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"button",70),d.NdJ("click",function(){d.CHM(Se);const Zt=d.oxw(2);return d.KtG(Zt.onRestart())}),d._uU(1,"Start Again"),d.qZA()}}function ot(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),d._uU(5),d.qZA()(),d.TgZ(6,"div",8)(7,"button",9),d.NdJ("click",function(){d.CHM(Se);const Zt=d.oxw();return d.KtG(Zt.showInfo())}),d._uU(8,"?"),d.qZA(),d.TgZ(9,"button",10),d.NdJ("click",function(){d.CHM(Se);const Zt=d.oxw();return d.KtG(Zt.onClose())}),d._uU(10,"X"),d.qZA()()(),d.TgZ(11,"mat-card-content",11)(12,"div",12),d.YNc(13,Ut,11,4,"div",13),d.TgZ(14,"mat-vertical-stepper",14,15),d.NdJ("selectionChange",function(Zt){d.CHM(Se);const si=d.oxw();return d.KtG(si.stepSelectionChanged(Zt))}),d.TgZ(16,"mat-step",16)(17,"form",17),d.YNc(18,ht,1,1,"ng-template",18),d.TgZ(19,"div",19),d._UZ(20,"rtl-loop-quote",20)(21,"rtl-loop-quote",20),d.qZA(),d.TgZ(22,"div",21)(23,"mat-form-field",22)(24,"mat-label"),d._uU(25,"Amount"),d.qZA(),d._UZ(26,"input",23),d.TgZ(27,"mat-hint"),d._uU(28),d.ALo(29,"number"),d.ALo(30,"number"),d.qZA(),d.TgZ(31,"span",24),d._uU(32,"Sats"),d.qZA(),d.YNc(33,Ge,2,0,"mat-error",25),d.YNc(34,yt,3,3,"mat-error",25),d.YNc(35,be,3,3,"mat-error",25),d.qZA(),d.TgZ(36,"mat-form-field",22)(37,"mat-label"),d._uU(38,"Sweep Confirmation Target"),d.qZA(),d._UZ(39,"input",26),d.YNc(40,qe,2,0,"mat-error",25),d.YNc(41,Ie,2,0,"mat-error",25),d.qZA(),d.YNc(42,Tt,6,3,"mat-form-field",27),d.qZA(),d.YNc(43,it,5,0,"div",28),d.TgZ(44,"div",29)(45,"button",30),d.NdJ("click",function(){d.CHM(Se);const Zt=d.oxw();return d.KtG(Zt.onEstimateQuote())}),d._uU(46,"Estimate Quote"),d.qZA()()()(),d.TgZ(47,"mat-step",16)(48,"form",17),d.YNc(49,je,1,1,"ng-template",18),d._UZ(50,"rtl-loop-quote",31),d.YNc(51,zt,4,0,"p",32),d.TgZ(52,"div",29),d.YNc(53,xt,2,0,"button",33),d.YNc(54,Nt,2,1,"button",34),d.qZA()()(),d.YNc(55,$,17,6,"mat-step",35),d.TgZ(56,"mat-step",36)(57,"form",17),d.YNc(58,ue,1,1,"ng-template",18),d.TgZ(59,"div",37)(60,"mat-expansion-panel",38)(61,"mat-expansion-panel-header")(62,"mat-panel-title")(63,"span",39),d._uU(64),d.YNc(65,Le,2,1,"mat-icon",40),d.qZA()()(),d.YNc(66,Je,1,0,"div",41),d.qZA(),d.YNc(67,$t,1,0,"mat-progress-bar",42),d.qZA(),d.YNc(68,Vt,2,1,"h4",43),d.TgZ(69,"div",29),d.YNc(70,ii,2,0,"button",44),d.YNc(71,pt,2,0,"button",45),d.qZA()()()(),d.TgZ(72,"div",46)(73,"button",47),d._uU(74,"Close"),d.qZA()()()()()()}if(2&Xe){const Se=d.oxw(),wt=d.MAs(2);d.Q6J("@opacityAnimation",void 0),d.xp6(3),d.Q6J("fxFlex",Se.screenSize===Se.screenSizeEnum.XS||Se.screenSize===Se.screenSizeEnum.SM?"83":"91"),d.xp6(2),d.Oqu(Se.channel?"Channel "+Se.loopDirectionCaption:Se.loopDirectionCaption),d.xp6(1),d.Q6J("fxFlex",Se.screenSize===Se.screenSizeEnum.XS||Se.screenSize===Se.screenSizeEnum.SM?"17":"9"),d.xp6(7),d.Q6J("ngIf",Se.channel),d.xp6(1),d.Q6J("linear",!0),d.xp6(2),d.Q6J("stepControl",Se.inputFormGroup)("editable",Se.flgEditable),d.xp6(1),d.Q6J("formGroup",Se.inputFormGroup),d.xp6(3),d.Q6J("quote",Se.minQuote)("termCaption","min")("panelExpanded",!1)("showPanel",!0),d.xp6(1),d.Q6J("quote",Se.maxQuote)("termCaption","max")("panelExpanded",!1)("showPanel",!0),d.xp6(2),d.Q6J("fxFlex",Se.direction===Se.LoopTypeEnum.LOOP_OUT?"35":"48"),d.xp6(3),d.Q6J("step",1e3),d.xp6(2),d.AsE("Range: ",d.lcZ(29,51,Se.minQuote.amount),"-",d.lcZ(30,53,Se.maxQuote.amount),""),d.xp6(5),d.Q6J("ngIf",null==Se.inputFormGroup.controls.amount.errors?null:Se.inputFormGroup.controls.amount.errors.required),d.xp6(1),d.Q6J("ngIf",null==Se.inputFormGroup.controls.amount.errors?null:Se.inputFormGroup.controls.amount.errors.min),d.xp6(1),d.Q6J("ngIf",null==Se.inputFormGroup.controls.amount.errors?null:Se.inputFormGroup.controls.amount.errors.max),d.xp6(1),d.Q6J("fxFlex",Se.direction===Se.LoopTypeEnum.LOOP_OUT?"30":"48"),d.xp6(3),d.Q6J("step",1),d.xp6(1),d.Q6J("ngIf",null==Se.inputFormGroup.controls.sweepConfTarget.errors?null:Se.inputFormGroup.controls.sweepConfTarget.errors.required),d.xp6(1),d.Q6J("ngIf",null==Se.inputFormGroup.controls.sweepConfTarget.errors?null:Se.inputFormGroup.controls.sweepConfTarget.errors.min),d.xp6(1),d.Q6J("ngIf",Se.direction===Se.LoopTypeEnum.LOOP_OUT),d.xp6(1),d.Q6J("ngIf",Se.direction===Se.LoopTypeEnum.LOOP_OUT),d.xp6(4),d.Q6J("stepControl",Se.quoteFormGroup)("editable",Se.flgEditable),d.xp6(1),d.Q6J("formGroup",Se.quoteFormGroup),d.xp6(2),d.Q6J("quote",Se.quote)("showPanel",!1),d.xp6(1),d.Q6J("ngIf",Se.inputFormGroup.controls.amount.value>Se.localBalanceToCompare),d.xp6(2),d.Q6J("ngIf",Se.direction===Se.LoopTypeEnum.LOOP_OUT),d.xp6(1),d.Q6J("ngIf",Se.direction===Se.LoopTypeEnum.LOOP_IN),d.xp6(1),d.Q6J("ngIf",Se.direction===Se.LoopTypeEnum.LOOP_OUT),d.xp6(1),d.Q6J("stepControl",Se.statusFormGroup),d.xp6(1),d.Q6J("formGroup",Se.statusFormGroup),d.xp6(3),d.Q6J("expanded",!!Se.loopStatus),d.xp6(4),d.Oqu(Se.loopStatus?Se.loopStatus.id_bytes?Se.loopDirectionCaption+" request details":Se.loopDirectionCaption+" error details":"Waiting for "+Se.loopDirectionCaption+" request..."),d.xp6(1),d.Q6J("ngIf",Se.loopStatus),d.xp6(1),d.Q6J("ngIf",!Se.loopStatus)("ngIfElse",wt),d.xp6(1),d.Q6J("ngIf",!Se.loopStatus),d.xp6(1),d.Q6J("ngIf",Se.loopStatus),d.xp6(2),d.Q6J("ngIf",Se.loopStatus&&Se.loopStatus.id_bytes&&Se.channel),d.xp6(1),d.Q6J("ngIf",Se.loopStatus&&(Se.loopStatus.error||!Se.loopStatus.id_bytes)),d.xp6(2),d.Q6J("mat-dialog-close",!1)}}function ft(Xe,It){if(1&Xe&&d._UZ(0,"rtl-loop-status",71),2&Xe){const Se=d.oxw();d.Q6J("loopStatus",Se.loopStatus)}}function St(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"rtl-loop-out-info-graphics",88),d.NdJ("stepNumberChange",function(Zt){d.CHM(Se);const si=d.oxw(2);return d.KtG(si.stepNumber=Zt)}),d.qZA()}if(2&Xe){const Se=d.oxw(2);d.Q6J("animationDirection",Se.animationDirection)("stepNumber",Se.stepNumber)}}function gt(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"rtl-loop-in-info-graphics",88),d.NdJ("stepNumberChange",function(Zt){d.CHM(Se);const si=d.oxw(2);return d.KtG(si.stepNumber=Zt)}),d.qZA()}if(2&Xe){const Se=d.oxw(2);d.Q6J("animationDirection",Se.animationDirection)("stepNumber",Se.stepNumber)}}const $e=function(Xe,It){return{"dot-primary":Xe,"dot-primary-lighter":It}};function _t(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"span",89),d.NdJ("click",function(){const si=d.CHM(Se).$implicit,Ai=d.oxw(2);return d.KtG(Ai.onStepChanged(si))}),d._UZ(1,"p",90),d.qZA()}if(2&Xe){const Se=It.$implicit,wt=d.oxw(2);d.xp6(1),d.Q6J("ngClass",d.WLB(1,$e,wt.stepNumber===Se,wt.stepNumber!==Se))}}function vt(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"button",91),d.NdJ("click",function(){d.CHM(Se);const Zt=d.oxw(2);return d.KtG(Zt.onReadMore())}),d._uU(1,"Read More"),d.qZA()}}function He(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"button",92),d.NdJ("click",function(){d.CHM(Se);const Zt=d.oxw(2);return d.KtG(Zt.onStepChanged(4))}),d._uU(1,"Back"),d.qZA()}}function Et(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"button",93),d.NdJ("click",function(){d.CHM(Se);const Zt=d.oxw(2);return Zt.flgShowInfo=!1,d.KtG(Zt.stepNumber=1)}),d._uU(1,"Close"),d.qZA()}}function At(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"button",94),d.NdJ("click",function(){d.CHM(Se);const Zt=d.oxw(2);return Zt.flgShowInfo=!1,d.KtG(Zt.stepNumber=1)}),d._uU(1,"Close"),d.qZA()}}function Qt(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"button",95),d.NdJ("click",function(){d.CHM(Se);const Zt=d.oxw(2);return d.KtG(Zt.onStepChanged(Zt.stepNumber-1))}),d._uU(1,"Back"),d.qZA()}}function zi(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"button",96),d.NdJ("click",function(){d.CHM(Se);const Zt=d.oxw(2);return d.KtG(Zt.onStepChanged(Zt.stepNumber+1))}),d._uU(1,"Next"),d.qZA()}}const Ni=function(){return[1,2,3,4,5]};function Mi(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"div",72)(1,"div",19)(2,"mat-card-header",73)(3,"div",74),d._UZ(4,"span",7),d.qZA(),d.TgZ(5,"div",75)(6,"button",76),d.NdJ("click",function(){d.CHM(Se);const Zt=d.oxw();return Zt.flgShowInfo=!1,d.KtG(Zt.stepNumber=1)}),d._uU(7,"X"),d.qZA()()(),d.TgZ(8,"mat-card-content",77),d.YNc(9,St,1,2,"rtl-loop-out-info-graphics",78),d.YNc(10,gt,1,2,"rtl-loop-in-info-graphics",78),d.qZA(),d.TgZ(11,"div",79),d.YNc(12,_t,2,4,"span",80),d.qZA(),d.TgZ(13,"div",81),d.YNc(14,vt,2,0,"button",82),d.YNc(15,He,2,0,"button",83),d.YNc(16,Et,2,0,"button",84),d.YNc(17,At,2,0,"button",85),d.YNc(18,Qt,2,0,"button",86),d.YNc(19,zi,2,0,"button",87),d.qZA()()()}if(2&Xe){const Se=d.oxw();d.Q6J("@opacityAnimation",void 0),d.xp6(9),d.Q6J("ngIf",Se.direction===Se.LoopTypeEnum.LOOP_OUT),d.xp6(1),d.Q6J("ngIf",Se.direction===Se.LoopTypeEnum.LOOP_IN),d.xp6(2),d.Q6J("ngForOf",d.DdM(10,Ni)),d.xp6(2),d.Q6J("ngIf",5===Se.stepNumber),d.xp6(1),d.Q6J("ngIf",5===Se.stepNumber),d.xp6(1),d.Q6J("ngIf",5===Se.stepNumber),d.xp6(1),d.Q6J("ngIf",Se.stepNumber<5),d.xp6(1),d.Q6J("ngIf",Se.stepNumber>1&&Se.stepNumber<5),d.xp6(1),d.Q6J("ngIf",Se.stepNumber<5)}}let Gi=(()=>{var Xe;class It{constructor(wt,Zt,si,Ai,Oi,Qi,en,Yi,Yt){this.dialogRef=wt,this.data=Zt,this.store=si,this.loopService=Ai,this.formBuilder=Oi,this.decimalPipe=Qi,this.logger=en,this.router=Yi,this.commonService=Yt,this.faInfoCircle=s.sqG,this.LoopTypeEnum=h.$I,this.direction=h.$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=h.cu,this.animationDirection="forward",this.flgEditable=!0,this.localBalanceToCompare=null,this.unSubs=[new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.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||h.$I.LOOP_OUT,this.loopDirectionCaption=this.direction===h.$I.LOOP_IN?"Loop in":"Loop out",this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.minQuote.amount,[t.kI.required,t.kI.min(this.minQuote.amount||0),t.kI.max(this.maxQuote.amount||0)]],sweepConfTarget:[6,[t.kI.required,t.kI.min(1)]],routingFeePercent:[2,[t.kI.required,t.kI.min(0)]],fast:[!1,[t.kI.required]]}),this.inputFormGroup.setErrors({Invalid:!0}),this.quoteFormGroup=this.formBuilder.group({}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[t.kI.required]],address:[{value:"",disabled:!0}]}),this.direction===h.$I.LOOP_OUT&&this.addressFormGroup.setErrors({Invalid:!0}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges(),this.store.select(P.ZW).pipe((0,_.R)(this.unSubs[6])).subscribe(wt=>{this.localBalanceToCompare=this.channel&&this.channel.local_balance?+this.channel.local_balance:wt.lightningBalance&&wt.lightningBalance.local?+wt.lightningBalance.local:null})}onFormValueChanges(){this.inputFormGroup.valueChanges.pipe((0,_.R)(this.unSubs[4])).subscribe(wt=>{this.inputFormGroup.setErrors({Invalid:!0})}),this.direction===h.$I.LOOP_OUT&&this.addressFormGroup.valueChanges.pipe((0,_.R)(this.unSubs[5])).subscribe(wt=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(wt){"external"===wt.value?(this.addressFormGroup.controls.address.setValidators([t.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.localBalanceToCompare&&this.inputFormGroup.controls.amount.value<=this.localBalanceToCompare&&this.stepper.next()}onLoop(){if(!this.inputFormGroup.controls.amount.value||this.minQuote.amount&&this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2||this.direction===h.$I.LOOP_OUT&&(!this.inputFormGroup.controls.routingFeePercent.value||this.inputFormGroup.controls.routingFeePercent.value<0)||this.direction===h.$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===h.$I.LOOP_IN)this.loopService.loopIn(this.inputFormGroup.controls.amount.value,+(this.quote.swap_fee_sat||0),+(this.quote.htlc_publish_fee_sat||0),"",!0).pipe((0,_.R)(this.unSubs[0])).subscribe({next:wt=>{this.loopStatus=wt,this.loopService.listSwaps(),this.flgEditable=!0},error:wt=>{this.loopStatus={error:wt},this.flgEditable=!0,this.logger.error(wt)}});else{const wt=Math.ceil(this.inputFormGroup.controls.amount.value*(this.inputFormGroup.controls.routingFeePercent.value/100)),Zt="external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"",si=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,wt,+(this.quote.htlc_sweep_fee_sat||0),this.prepayRoutingFee,+(this.quote.prepay_amt_sat||0),+(this.quote.swap_fee_sat||0),si,Zt).pipe((0,_.R)(this.unSubs[1])).subscribe({next:Ai=>{this.loopStatus=Ai,this.loopService.listSwaps(),this.flgEditable=!0},error:Ai=>{this.loopStatus={error:Ai},this.flgEditable=!0,this.logger.error(Ai)}})}}onEstimateQuote(){if(!this.inputFormGroup.controls.amount.value||this.minQuote.amount&&this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2)return!0;const wt=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.direction===h.$I.LOOP_IN?this.loopService.getLoopInQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,wt).pipe((0,_.R)(this.unSubs[2])).subscribe(Zt=>{this.quote=Zt,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,wt).pipe((0,_.R)(this.unSubs[3])).subscribe(Zt=>{this.quote=Zt,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(wt){switch(wt.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===h.$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===h.$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===h.$I.LOOP_OUT&&1!==wt.selectedIndex&&wt.selectedIndex{wt.next(null),wt.complete()})}}return(Xe=It).\u0275fac=function(wt){return new(wt||Xe)(d.Y36(T.so),d.Y36(T.WI),d.Y36(w.yh),d.Y36(C.W),d.Y36(t.QS),d.Y36(L.JJ),d.Y36(D.mQ),d.Y36(H.F0),d.Y36(V.v))},Xe.\u0275cmp=d.Xpm({type:Xe,selectors:[["rtl-loop-modal"]],viewQuery:function(wt,Zt){if(1&wt&&d.Gf(lt,5),2&wt){let si;d.iGM(si=d.CRH())&&(Zt.stepper=si.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","","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["matInput","","type","number","tabindex","2","formControlName","sweepConfTarget","required","",3,"step"],["fxFlex","30",4,"ngIf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","class","mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","5","type","button",3,"click"],[3,"quote","showPanel"],["fxFlex","100","class","color-warn mt-2","fxLayoutAlign","start center",4,"ngIf"],["mat-button","","color","primary","tabindex","6","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","7","type","button",3,"click",4,"ngIf"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[4,"ngIf","ngIfElse"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxLayoutAlign","start","class","font-bold-500 mt-2",4,"ngIf"],["mat-button","","color","primary","tabindex","12","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-button","","color","primary","tabindex","14","type","button","default","",3,"mat-dialog-close"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","40"],["fxFlex","30"],["matInput","","type","number","tabindex","3","formControlName","routingFeePercent","required","",3,"step"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["tabindex","4","color","primary","formControlName","fast","fxFlex","none"],["matTooltip","Swap immediately (Might end up paying a higher on-chain fee)","matTooltipPosition","above","fxFlex","none",1,"info-icon"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn","mt-2"],[1,"mr-1","icon-small"],["mat-button","","color","primary","tabindex","6","type","button",3,"click"],["mat-button","","color","primary","tabindex","7","type","button",3,"click"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-1"],["color","primary","name","addressType","formControlName","addressType","fxFlex","100","fxLayoutAlign","space-between stretch",3,"change"],["fxFlex","48","tabindex","8","value","local"],["fxFlex","48","tabindex","9","value","external"],["fxLayout","column","fxFlex","100",1,"mt-1"],["matInput","","tabindex","10","formControlName","address",3,"required"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-2"],["mat-button","","color","primary","tabindex","12","type","button",3,"click"],["mat-button","","color","primary","tabindex","13","type","button",3,"click"],["fxLayout","column",3,"loopStatus"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["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,"animationDirection","stepNumber","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,"animationDirection","stepNumber","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(wt,Zt){1&wt&&(d.YNc(0,ot,75,55,"div",0),d.YNc(1,ft,1,1,"ng-template",null,1,d.W1O),d.YNc(3,Mi,20,11,"div",2)),2&wt&&(d.Q6J("ngIf",!Zt.flgShowInfo),d.xp6(3),d.Q6J("ngIf",Zt.flgShowInfo))},dependencies:[L.mk,L.sg,L.O5,t._Y,t.Fj,t.wV,t.JJ,t.JL,t.Q7,t.sg,t.u,Y.xw,Y.Wh,Y.yH,j.oO,T.ZT,Q.lW,J.dn,J.dk,ee.ib,ee.yz,ee.yK,me.Hw,re.Nt,ie.KE,ie.hX,ie.bx,ie.TO,ie.R9,se.pW,ce.VQ,ce.U0,Ce.Rr,M.gM,i.C0,i.VY,i.Vq,a.h,O,Ue,he,Ke,L.JJ,L.rS],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:30rem;min-height:30rem;overflow-x:hidden}"],data:{animation:[y._]}}),It})()},9442:(We,q,m)=>{"use strict";m.d(q,{w:()=>P});var t=m(2687),e=m(4650),_=m(9116),T=m(2216),s=m(1576),y=m(4859),h=m(3546);let P=(()=>{var d;class w{constructor(L){this.router=L,this.faTimes=t.NBC}goToHelp(){this.router.navigate(["/help"])}}return(d=w).\u0275fac=function(L){return new(L||d)(e.Y36(_.F0))},d.\u0275cmp=e.Xpm({type:d,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(L,D){1&L&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Page Not Found"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"div",5)(8,"div",6),e._uU(9,"This page does not exist!"),e.qZA(),e.TgZ(10,"span",7)(11,"button",8),e.NdJ("click",function(){return D.goToHelp()}),e._uU(12,"Go To Help"),e.qZA()()()()()()),2&L&&(e.xp6(1),e.Q6J("icon",D.faTimes))},dependencies:[T.BN,s.xw,s.Wh,s.yH,y.lW,h.a8,h.dn],encapsulation:2}),w})()},3390:(We,q,m)=>{"use strict";m.d(q,{h:()=>e});var t=m(4650);let e=(()=>{var _;class T{constructor(y){this.el=y}ngAfterContentInit(){setTimeout(()=>{this.el.nativeElement.focus()},500)}}return(_=T).\u0275fac=function(y){return new(y||_)(t.Y36(t.SBq))},_.\u0275dir=t.lG2({type:_,selectors:[["","autoFocus",""]],inputs:{appAutoFocus:"appAutoFocus"}}),T})()},5199:(We,q,m)=>{"use strict";m.d(q,{y:()=>e});var t=m(4650);let e=(()=>{var _;class T{constructor(){this.copied=new t.vpe}onClick(y){y.preventDefault(),this.payload&&navigator.clipboard&&navigator.clipboard.writeText(this.payload.toString()).then(()=>{this.copied.emit(this.payload.toString())},h=>{this.copied.emit("Error could not copy text: "+JSON.stringify(h))})}}return(_=T).\u0275fac=function(y){return new(y||_)},_.\u0275dir=t.lG2({type:_,selectors:[["","rtlClipboard",""]],hostBindings:function(y,h){1&y&&t.NdJ("click",function(d){return h.onClick(d)})},inputs:{payload:"payload"},outputs:{copied:"copied"}}),T})()},9843:(We,q,m)=>{"use strict";m.d(q,{F:()=>_});var t=m(4006),e=m(4650);let _=(()=>{var T;class s{validate(h){return this.max?t.kI.max(+this.max)(h):null}}return(T=s).\u0275fac=function(h){return new(h||T)},T.\u0275dir=e.lG2({type:T,selectors:[["input","max",""]],inputs:{max:"max"},features:[e._Bn([{provide:t.Cf,useExisting:T,multi:!0}])]}),s})()},6534:(We,q,m)=>{"use strict";m.d(q,{q:()=>_});var t=m(4006),e=m(4650);let _=(()=>{var T;class s{validate(h){return this.min?t.kI.min(+this.min)(h):null}}return(T=s).\u0275fac=function(h){return new(h||T)},T.\u0275dir=e.lG2({type:T,selectors:[["input","min",""]],inputs:{min:"min"},features:[e._Bn([{provide:t.Cf,useExisting:T,multi:!0}])]}),s})()},9445:(We,q,m)=>{"use strict";m.d(q,{D3:()=>s,al:()=>e,h9:()=>_,i1:()=>T});var t=m(4650);let e=(()=>{var y;class h{transform(d,w){return d?.replace(/^[0]+/g,"")}}return(y=h).\u0275fac=function(d){return new(d||y)},y.\u0275pipe=t.Yjl({name:"removeleadingzeros",type:y,pure:!0}),h})(),_=(()=>{var y;class h{transform(d,w){return d?.replace(/(?:^\w|[A-Z]|\b\w)/g,(C,L)=>C.toUpperCase())?.replace(/\s+/g,"")?.replace(/-/g," ")}}return(y=h).\u0275fac=function(d){return new(d||y)},y.\u0275pipe=t.Yjl({name:"camelcase",type:y,pure:!0}),h})(),T=(()=>{var y;class h{transform(d,w,C){return d.replace(/(?:^\w|[A-Z]|\b\w)/g,(L,D)=>" "+L.toUpperCase())}}return(y=h).\u0275fac=function(d){return new(d||y)},y.\u0275pipe=t.Yjl({name:"camelCaseWithSpaces",type:y,pure:!0}),h})(),s=(()=>{var y;class h{transform(d,w,C){return d=d?d.toLowerCase().replace(/\s+/g,"")?.replace(/-/g," "):"",w&&(d=d.replace(new RegExp(w,"g")," ")),C&&(d=d.replace(new RegExp(C,"g")," ")),d.replace(/(?:^\w|[A-Z]|\b\w)/g,(L,D)=>L.toUpperCase())}}return(y=h).\u0275fac=function(d){return new(d||y)},y.\u0275pipe=t.Yjl({name:"camelcaseWithReplace",type:y,pure:!0}),h})()},1643:(We,q,m)=>{"use strict";m.d(q,{QM:()=>y,a1:()=>s,eQ:()=>h,fY:()=>P});var t=m(4650),e=m(9116),_=m(5986),T=m(4004);function s(){return()=>{const d=(0,t.f3M)(e.F0),w=(0,t.f3M)(e.gz),C=(0,t.f3M)(_.m);return!(!C.getItem("token")||w.snapshot.url&&w.snapshot.url.length&&"settings"!==w.snapshot.url[0].path&&"auth"!==w.snapshot.url[0].path&&"true"===C.getItem("defaultPassword")&&(d.navigate(["/settings/auth"]),1))}}function y(){return()=>!!(0,t.f3M)(_.m).watchSession().pipe((0,T.U)(w=>w.lndUnlocked))}function h(){return()=>!!(0,t.f3M)(_.m).watchSession().pipe((0,T.U)(w=>w.clnUnlocked))}function P(){return()=>!!(0,t.f3M)(_.m).watchSession().pipe((0,T.U)(w=>w.eclUnlocked))}},62:(We,q,m)=>{"use strict";m.d(q,{v:()=>C});var t=m(1135),e=m(9646),_=m(2843),T=m(5698),s=m(4004),y=m(262),h=m(7731),P=m(4650),d=m(8104),w=m(5043);let C=(()=>{var L;class D{constructor(V,Y){this.dataService=V,this.logger=Y,this.currencyUnits=[],this.CurrencyUnitEnum=h.NT,this.conversionData={data:null,last_fetched:null},this.ratesAPIStatus=h.Bn.UN_INITIATED,this.screenSize=h.cu.MD,this.containerSize={width:0,height:0},this.containerSizeUpdated=new t.X(this.containerSize)}getScreenSize(){return this.screenSize}setScreenSize(V){this.screenSize=V}getContainerSize(){return this.containerSize}setContainerSize(V,Y){this.containerSize={width:V,height:Y},this.logger.info("Container Size: "+JSON.stringify(this.containerSize)),this.containerSizeUpdated.next(this.containerSize)}sortByKey(V,Y,j,Q="asc"){return V.sort("number"===j?"desc"===Q?(J,ee)=>+J[Y]>+ee[Y]?-1:1:(J,ee)=>+J[Y]>+ee[Y]?1:-1:"desc"===Q?(J,ee)=>J[Y]>ee[Y]?-1:1:(J,ee)=>J[Y]>ee[Y]?1:-1)}sortDescByKey(V,Y){return V.sort((j,Q)=>{const J=+j[Y],ee=+Q[Y];return J>ee?-1:J{const J=+j[Y],ee=+Q[Y];return Jee?1:0})}camelCase(V){return V?.replace(/(?:^\w|[A-Z]|\b\w)/g,(Y,j)=>Y.toUpperCase())?.replace(/\s+/g,"")?.replace(/-/g," ")}titleCase(V,Y,j){return Y&&j&&""!==Y&&""!==j&&(V=V?.replace(new RegExp(Y,"g"),j)),V.indexOf("!\n")>0||V.indexOf(".\n")>0?V.split("\n")?.reduce((Q,J)=>Q+J.charAt(0).toUpperCase()+J.substring(1).toLowerCase()+"\n",""):V.indexOf(" ")>0?V.split(" ")?.reduce((Q,J)=>Q+J.charAt(0).toUpperCase()+J.substring(1).toLowerCase()+" ",""):V.charAt(0).toUpperCase()+V.substring(1).toLowerCase()}convertCurrency(V,Y,j,Q,J){const ee=(new Date).valueOf();return J&&Q&&this.ratesAPIStatus!==h.Bn.INITIATED&&(Y===h.NT.OTHER||j===h.NT.OTHER)?this.conversionData.data&&this.conversionData.last_fetched&&ee(this.ratesAPIStatus=h.Bn.COMPLETED,this.conversionData.data=me&&"object"==typeof me?me:me&&"string"==typeof me?JSON.parse(me):{},this.conversionData.last_fetched=ee,this.convertWithFiat(V,Y,Q))),(0,y.K)(me=>(this.ratesAPIStatus=h.Bn.ERROR,(0,_._)(()=>this.extractErrorMessage(me,"Currency Conversion Error.")))))):(0,e.of)(this.convertWithoutFiat(V,Y))}convertWithoutFiat(V,Y){const j={};switch(j[h.NT.SATS]=0,j[h.NT.BTC]=0,Y){case h.NT.SATS:j[h.NT.SATS]=V,j[h.NT.BTC]=1e-8*V;break;case h.NT.BTC:j[h.NT.SATS]=1e8*V,j[h.NT.BTC]=V}return j}convertWithFiat(V,Y,j){const Q={unit:j,symbol:this.conversionData.data[j].symbol};switch(Q[h.NT.SATS]=0,Q[h.NT.BTC]=0,Q[h.NT.OTHER]=0,Y){case h.NT.SATS:Q[h.NT.SATS]=V,Q[h.NT.BTC]=1e-8*V,Q[h.NT.OTHER]=1e-8*V*this.conversionData.data[j].last;break;case h.NT.BTC:Q[h.NT.SATS]=1e8*V,Q[h.NT.BTC]=V,Q[h.NT.OTHER]=V*this.conversionData.data[j].last;break;case h.NT.OTHER:Q[h.NT.SATS]=V/this.conversionData.data[j].last*1e8,Q[h.NT.BTC]=V/this.conversionData.data[j].last,Q[h.NT.OTHER]=V}return Q}convertTime(V,Y,j){switch(Y){case h.Qk.SECS:switch(j){case h.Qk.MINS:V/=60;break;case h.Qk.HOURS:V/=h.k_;break;case h.Qk.DAYS:V/=24*h.k_}break;case h.Qk.MINS:switch(j){case h.Qk.SECS:V*=60;break;case h.Qk.HOURS:V/=60;break;case h.Qk.DAYS:V/=1440}break;case h.Qk.HOURS:switch(j){case h.Qk.SECS:V*=h.k_;break;case h.Qk.MINS:V*=60;break;case h.Qk.DAYS:V/=24}break;case h.Qk.DAYS:switch(j){case h.Qk.SECS:V=V*h.k_*24;break;case h.Qk.MINS:V=60*V*24;break;case h.Qk.HOURS:V*=24}}return V}downloadFile(V,Y,j=".json",Q=".csv"){let J=new Blob;J=".json"===j?new Blob(["\ufeff"+this.convertToCSV(V)],{type:"text/csv;charset=utf-8;"}):new Blob([V.toString()],{type:"text/plain;charset=utf-8"});const ee=document.createElement("a"),me=URL.createObjectURL(J);-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&ee.setAttribute("target","_blank"),ee.setAttribute("href",me),ee.setAttribute("download",Y+Q),ee.style.visibility="hidden",document.body.appendChild(ee),ee.click(),document.body.removeChild(ee)}convertToCSV(V){const Y=[];let j="",Q="",J="";return"object"!=typeof V&&(V=JSON.parse(V)),V.forEach((me,re)=>{for(const ie in me)Y.findIndex(se=>se===ie)<0&&Y.push(ie)}),J=Y.join(",")+"\r\n",V.forEach(me=>{j="",Y.forEach(re=>{me.hasOwnProperty(re)?Array.isArray(me[re])?(Q="",me[re].forEach((ie,se)=>{Q+="object"==typeof ie?"("+JSON.stringify(ie)?.replace(/\,/g,";")+")":"("+ie+")"}),j+=Q+","):j+="object"==typeof me[re]?JSON.stringify(me[re])?.replace(/\,/g,";")+",":me[re]+",":j+=","}),J+=j.slice(0,-1)+"\r\n"}),J}isVersionCompatible(V,Y){if(V){const j=V.match(/v?(?\d+(?:\.\d+)*)/);if(j&&j.groups&&j.groups.version){this.logger.info("Current Version: "+j.groups.version),this.logger.info("Checking Compatiblility with Version: "+Y);const Q=j.groups.version.split(".")||[],J=Y.split(".");return+Q[0]>+J[0]||+Q[0]==+J[0]&&+Q[1]>+J[1]||+Q[0]==+J[0]&&+Q[1]==+J[1]&&+Q[2]>=+J[2]}return this.logger.error("Invalid Version String: "+V),!1}return!1}extractErrorMessage(V,Y="Unknown Error."){const j=this.titleCase(V.error&&V.error.text&&"string"==typeof V.error.text&&V.error.text.includes('')?"API Route Does Not Exist.":V.error&&V.error.error&&V.error.error.error&&V.error.error.error.error&&V.error.error.error.error.error&&"string"==typeof V.error.error.error.error.error?V.error.error.error.error.error:V.error&&V.error.error&&V.error.error.error&&V.error.error.error.error&&"string"==typeof V.error.error.error.error?V.error.error.error.error:V.error&&V.error.error&&V.error.error.error&&"string"==typeof V.error.error.error?V.error.error.error:V.error&&V.error.error&&"string"==typeof V.error.error?V.error.error:V.error&&"string"==typeof V.error?V.error:V.error&&V.error.error&&V.error.error.error&&V.error.error.error.error&&V.error.error.error.error.message&&"string"==typeof V.error.error.error.error.message?V.error.error.error.error.message:V.error&&V.error.error&&V.error.error.error&&V.error.error.error.message&&"string"==typeof V.error.error.error.message?V.error.error.error.message:V.error&&V.error.error&&V.error.error.message&&"string"==typeof V.error.error.message?V.error.error.message:V.error&&V.error.message&&"string"==typeof V.error.message?V.error.message:V.message&&"string"==typeof V.message?V.message:Y);return this.logger.info("Error Message: "+j),j}extractErrorCode(V,Y=500){const j=V.error&&V.error.error&&V.error.error.message&&V.error.error.message.code?V.error.error.message.code:V.error&&V.error.error&&V.error.error.code?V.error.error.code:V.error&&V.error.code?V.error.code:V.code?V.code:V.status?V.status:Y;return this.logger.info("Error Code: "+j),j}extractErrorNumber(V,Y=500){const j=V.error&&V.error.error&&V.error.error.errno?V.error.error.errno:V.error&&V.error.errno?V.error.errno:V.errno?V.errno:V.status?V.status:Y;return this.logger.info("Error Number: "+j),j}ngOnDestroy(){this.containerSizeUpdated.next(null),this.containerSizeUpdated.complete()}}return(L=D).\u0275fac=function(V){return new(V||L)(P.LFG(d.D),P.LFG(w.mQ))},L.\u0275prov=P.Yz7({token:L,factory:L.\u0275fac}),D})()},7731:(We,q,m)=>{"use strict";m.d(q,{$I:()=>g,$Y:()=>s,$v:()=>me,AB:()=>Fe,At:()=>Ge,Bn:()=>at,Df:()=>he,Dr:()=>j,Er:()=>C,Fq:()=>n,Gi:()=>f,HW:()=>v,H_:()=>Me,IV:()=>H,IX:()=>xe,JX:()=>nt,LO:()=>L,NT:()=>a,OJ:()=>Ce,OO:()=>Qe,Pi:()=>lt,Qk:()=>M,Qw:()=>O,T5:()=>h,TJ:()=>V,Vc:()=>Q,Xk:()=>Ie,Xr:()=>fe,Xz:()=>w,Zs:()=>x,_t:()=>Y,c3:()=>qe,cu:()=>l,g8:()=>ie,gB:()=>Ve,gG:()=>ht,gK:()=>yt,gg:()=>G,hG:()=>be,hZ:()=>pe,hc:()=>W,kO:()=>Ue,k_:()=>T,lr:()=>De,m6:()=>ye,nM:()=>re,n_:()=>ce,ol:()=>se,op:()=>ge,p7:()=>k,pg:()=>Oe,pt:()=>_,q4:()=>y,uA:()=>d,uR:()=>oe,vn:()=>J,vv:()=>P,wZ:()=>ee,x$:()=>I,zZ:()=>Ut});var t=m(4650),e=m(8739);function _(X){const mt=new e.ye;return mt.itemsPerPageLabel=X+" per page:",mt}const T=3600,s=24*T*7,y="0.14.1-beta",h=(0,t.X6Q)()?"http://localhost:3000/rtl/api":"./api",P={AUTHENTICATE_API:h+"/authenticate",CONF_API:h+"/conf",PAGE_SETTINGS_API:h+"/pagesettings",BALANCE_API:"/balance",FEES_API:"/fees",PEERS_API:"/peers",CHANNELS_API:"/channels",CHANNELS_BACKUP_API:"/channels/backup",GETINFO_API:"/getinfo",WALLET_API:"/wallet",NETWORK_API:"/network",NEW_ADDRESS_API:"/newaddress",TRANSACTIONS_API:"/transactions",PAYMENTS_API:"/payments",INVOICES_API:"/invoices",SWITCH_API:"/switch",ON_CHAIN_API:"/onchain",MESSAGE_API:"/message",OFFERS_API:"/offers",UTILITY_API:"/utility",LOOP_API:"/loop",BOLTZ_API:"/boltz",Web_SOCKET_API:"/ws"},d=["Sats","BTC"],w={Sats:"1.0-0",BTC:"1.6-6",OTHER:"1.2-2"},C=[{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"}],L=["SECS","MINS","HOURS","DAYS"],H=10,V=[5,10,25,100],Y=[{addressId:"0",addressCode:"bech32",addressTp:"Bech32 (P2WKH)",addressDetails:"Pay to witness key hash"},{addressId:"1",addressCode:"p2sh-segwit",addressTp:"P2SH (NP2WKH)",addressDetails:"Pay to nested witness key hash (default)"},{addressId:"4",addressCode:"p2tr",addressTp:"Taproot (P2TR)",addressDetails:"Pay to taproot pubkey"}],j=[{id:"0",name:"Priority (Default)"},{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],Q=[{id:"none",name:"No Fee Limit",placeholder:"No Limit"},{id:"fixed",name:"Fixed Limit (Sats)",placeholder:"Fixed Limit in Sats"},{id:"percent",name:"Percentage of Payment Amount",placeholder:"Percentage Limit"}],J=[{feeRateId:"urgent",feeRateType:"Urgent"},{feeRateId:"normal",feeRateType:"Normal"},{feeRateId:"slow",feeRateType:"Slow"},{feeRateId:"customperkb",feeRateType:"Custom (Sats/vByte)"}],ee={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 me=(()=>{return(X=me||(me={})).PAYMENT_RECEIVED="payment-received",X.PAYMENT_RELAYED="payment-relayed",X.PAYMENT_SENT="payment-sent",X.PAYMENT_SETTLING_ONCHAIN="payment-settling-onchain",X.PAYMENT_FAILED="payment-failed",X.CHANNEL_OPENED="channel-opened",X.CHANNEL_STATE_CHANGED="channel-state-changed",X.CHANNEL_CLOSED="channel-closed",me;var X})(),re=(()=>{return(X=re||(re={})).INVOICE="invoice",X.BLOCK_HEIGHT="block-height",X.SEND_PAYMENT="send-payment",re;var X})(),ie=(()=>((ie||(ie={})).INVOICE="invoice",ie))(),se=(()=>{return(X=se||(se={})).OPERATOR="OPERATOR",X.MERCHANT="MERCHANT",X.ALL="ALL",se;var X})(),ce=(()=>{return(X=ce||(ce={})).INFORMATION="Information",X.WARNING="Warning",X.ERROR="Error",X.SUCCESS="Success",X.CONFIRM="Confirm",ce;var X})(),Ce=(()=>{return(X=Ce||(Ce={})).JWT="JWT",X.PASSWORD="PASSWORD",Ce;var X})(),M=(()=>{return(X=M||(M={})).SECS="SECS",X.MINS="MINS",X.HOURS="HOURS",X.DAYS="DAYS",M;var X})(),a=(()=>{return(X=a||(a={})).SATS="Sats",X.BTC="BTC",X.OTHER="OTHER",a;var X})(),f=(()=>{return(X=f||(f={})).ARRAY="ARRAY",X.NUMBER="NUMBER",X.STRING="STRING",X.BOOLEAN="BOOLEAN",X.PASSWORD="PASSWORD",X.DATE="DATE",X.DATE_TIME="DATE_TIME",f;var X})(),l=(()=>{return(X=l||(l={})).XS="XS",X.SM="SM",X.MD="MD",X.LG="LG",X.XL="XL",l;var X})();const v={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"}},I={WITNESS_PUBKEY_HASH:{name:"Witness Pubkey Hash",tooltip:""},NESTED_PUBKEY_HASH:{name:"Nested Pubkey Hash",tooltip:""},UNUSED_WITNESS_PUBKEY_HASH:{name:"Unused Witness Pubkey Hash",tooltip:""},UNUSED_NESTED_PUBKEY_HASH:{name:"Unused Nested Pubkey Hash",tooltip:""},TAPROOT_PUBKEY:{name:"Taproot Pubkey Hash",tooltip:""}};var k=(()=>{return(X=k||(k={})).WIRE_INVALID_ONION_VERSION="Invalid Onion Version",X.WIRE_INVALID_ONION_HMAC="Invalid Onion HMAC",X.WIRE_INVALID_ONION_KEY="Invalid Onion Key",X.WIRE_TEMPORARY_CHANNEL_FAILURE="Temporary Channel Failure",X.WIRE_PERMANENT_CHANNEL_FAILURE="Permanent Channel Failure",X.WIRE_REQUIRED_CHANNEL_FEATURE_MISSING="Missing Required Channel Feature",X.WIRE_UNKNOWN_NEXT_PEER="Unknown Next Peer",X.WIRE_AMOUNT_BELOW_MINIMUM="Amount Below Minimum",X.WIRE_FEE_INSUFFICIENT="Insufficient Fee",X.WIRE_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",X.WIRE_EXPIRY_TOO_FAR="Expiry Too Far",X.WIRE_EXPIRY_TOO_SOON="Expiry Too Soon",X.WIRE_CHANNEL_DISABLED="Channel Disabled",X.WIRE_INVALID_ONION_PAYLOAD="Invalid Onion Payload",X.WIRE_INVALID_REALM="Invalid Realm",X.WIRE_PERMANENT_NODE_FAILURE="Permanent Node Failure",X.WIRE_TEMPORARY_NODE_FAILURE="Temporary Node Failure",X.WIRE_REQUIRED_NODE_FEATURE_MISSING="Missing Required Node Feature",X.WIRE_INVALID_ONION_BLINDING="Invalid Onion Binding",X.WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS="Incorrect or Unknow Payment Details",X.WIRE_MPP_TIMEOUT="MPP Timeout",X.WIRE_FINAL_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",X.WIRE_FINAL_INCORRECT_HTLC_AMOUNT="Incorrect HTLC Amount",k;var X})(),x=(()=>{return(X=x||(x={})).CHANNELD_NORMAL="Active",X.OPENINGD="Opening",X.CHANNELD_AWAITING_LOCKIN="Pending Open",X.CHANNELD_SHUTTING_DOWN="Shutting Down",X.CLOSINGD_SIGEXCHANGE="Closing: Sig Exchange",X.CLOSINGD_COMPLETE="Closed",X.AWAITING_UNILATERAL="Awaiting Unilateral Close",X.FUNDING_SPEND_SEEN="Funding Spend Seen",X.ONCHAIN="Onchain",X.DUALOPEND_OPEN_INIT="Dual Open Initialized",X.DUALOPEND_AWAITING_LOCKIN="Dual Pending Open",x;var X})(),n=(()=>{return(X=n||(n={})).INITIATED="Initiated",X.PREIMAGE_REVEALED="Preimage Revealed",X.HTLC_PUBLISHED="HTLC Published",X.SUCCESS="Successful",X.FAILED="Failed",X.INVOICE_SETTLED="Invoice Settled",n;var X})(),g=(()=>{return(X=g||(g={})).LOOP_OUT="LOOP_OUT",X.LOOP_IN="LOOP_IN",g;var X})(),W=(()=>{return(X=W||(W={})).SWAP_OUT="SWAP_OUT",X.SWAP_IN="SWAP_IN",W;var X})(),O=(()=>{return(X=O||(O={}))["swap.created"]="Swap Created",X["swap.expired"]="Swap Expired",X["invoice.set"]="Invoice Set",X["invoice.paid"]="Invoice Paid",X["invoice.pending"]="Invoice Pending",X["invoice.settled"]="Invoice Settled",X["invoice.failedToPay"]="Invoice Failed To Pay",X["channel.created"]="Channel Created",X["transaction.failed"]="Transaction Failed",X["transaction.mempool"]="Transaction Mempool",X["transaction.claimed"]="Transaction Claimed",X["transaction.refunded"]="Transaction Refunded",X["transaction.confirmed"]="Transaction Confirmed",X["swap.refunded"]="Swap Refunded",X["swap.abandoned"]="Swap Abandoned",O;var X})();const G=[{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}],ge=["MONTHLY","YEARLY"];var nt=(()=>{return(X=nt||(nt={})).LOOP="LOOP",X.BOLTZ="BOLTZ",X.OFFERS="OFFERS",X.PEERSWAP="PEERSWAP",nt;var X})();const Ue=["password","changeme","moneyprintergobrrr"];var at=(()=>{return(X=at||(at={})).UN_INITIATED="UN_INITIATED",X.INITIATED="INITIATED",X.COMPLETED="COMPLETED",X.ERROR="ERROR",at;var X})();const ye={NO_SPINNER:"No Spinner...",GET_NODE_INFO:"Getting Node Information...",INITALIZE_NODE_DATA:"Initializing Node Data...",GENERATE_NEW_ADDRESS:"Getting New Address...",SEND_FUNDS:"Sending Funds...",UPDATE_CHAN_POLICY:"Updating Channel Policy...",GET_CHAN_POLICY:"Fetching Channel Policy...",GET_REMOTE_POLICY:"Fetching Remote Policy...",CLOSE_CHANNEL:"Closing Channel...",FORCE_CLOSE_CHANNEL:"Force Closing Channel...",OPEN_CHANNEL:"Opening Channel...",CONNECT_PEER:"Connecting Peer...",DISCONNECT_PEER:"Disconnecting Peer...",ADD_INVOICE:"Adding Invoice...",CREATE_INVOICE:"Creating Invoice...",DELETE_INVOICE:"Deleting Invoices...",DECODE_PAYMENT:"Decoding Payment...",DECODE_OFFER:"Decoding Offer...",DECODE_PAYMENTS:"Decoding Payments...",FETCH_INVOICE:"Fetching Invoice...",GET_SENT_PAYMENTS:"Getting Sent Payments...",SEND_PAYMENT:"Sending Payment...",SEND_KEYSEND:"Sending Keysend Payment...",SEARCHING_NODE:"Searching Node...",SEARCHING_CHANNEL:"Searching Channel...",SEARCHING_INVOICE:"Searching Invoice...",SEARCHING_PAYMENT:"Searching Payment...",BACKUP_CHANNEL:"Backup Channels...",VERIFY_CHANNEL:"Verify Channel...",DOWNLOAD_BACKUP_FILE:"Downloading Backup File...",RESTORE_CHANNEL:"Restoring Channels...",GET_TERMS_QUOTES:"Getting Terms and Quotes...",LABEL_UTXO:"Labelling UTXO...",GET_NODE_ADDRESS:"Getting Node Address...",GEN_SEED:"Generating Seed...",INITIALIZE_WALLET:"Initializing Wallet...",UNLOCK_WALLET:"Unlocking Wallet...",WAIT_SYNC_NODE:"Waiting for Node Sync...",UPDATE_BOLTZ_SETTINGS:"Updating Boltz Service Settings...",UPDATE_LOOP_SETTINGS:"Updating Loop Service Settings...",UPDATE_PEERSWAP_SETTINGS:"Updating Peerswap Service Settings...",UPDATE_SETTING:"Updating Setting...",UPDATE_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_INFO:"Getting Loop Info...",GET_LOOP_SWAPS:"Getting List Swaps...",GET_FORWARDING_HISTORY:"Getting Forwarding History...",GET_LOOKUP_DETAILS:"Getting Lookup Details...",GET_RTL_CONFIG:"Getting RTL Config...",VERIFY_TOKEN:"Verify Token...",DISABLE_OFFER:"Disabling Offer...",CREATE_OFFER:"Creating Offer...",DELETE_OFFER_BOOKMARK:"Deleting Bookmark...",GET_FUNDER_POLICY:"Getting Or Updating Funder Policy...",GET_LIST_CONFIGS:"Getting Configurations List...",LIST_NETWORK_NODES:"Getting Network Nodes List...",GET_PAGE_SETTINGS:"Getting Page Settings...",SET_PAGE_SETTINGS:"Setting Page Settings...",UPDATE_PAGE_SETTINGS:"Updating Page Layout...",REBALANCE_CHANNEL:"Rebalancing Channel...",LOG_OUT:"Logging Out..."};var xe=(()=>{return(X=xe||(xe={})).INVOICE="INVOICE",X.OFFER="OFFER",X.KEYSEND="KEYSEND",xe;var X})(),fe=(()=>{return(X=fe||(fe={})).FEES="FEES",X.EVENTS="EVENTS",fe;var X})(),Oe=(()=>{return(X=Oe||(Oe={})).VOID="VOID",X.SET_API_URL_ECL="SET_API_URL_ECL",X.UPDATE_SELECTED_NODE_OPTIONS="UPDATE_SELECTED_NODE_OPTIONS",X.UPDATE_API_CALL_STATUS_ROOT="UPDATE_API_CALL_STATUS_ROOT",X.RESET_ROOT_STORE="RESET_ROOT_STORE",X.CLOSE_ALL_DIALOGS="CLOSE_ALL_DIALOGS",X.OPEN_SNACK_BAR="OPEN_SNACKBAR",X.OPEN_SPINNER="OPEN_SPINNER",X.CLOSE_SPINNER="CLOSE_SPINNER",X.OPEN_ALERT="OPEN_ALERT",X.CLOSE_ALERT="CLOSE_ALERT",X.OPEN_CONFIRMATION="OPEN_CONFIRMATION",X.CLOSE_CONFIRMATION="CLOSE_CONFIRMATION",X.SHOW_PUBKEY="SHOW_PUBKEY",X.FETCH_CONFIG="FETCH_CONFIG",X.SHOW_CONFIG="SHOW_CONFIG",X.FETCH_STORE="FETCH_STORE",X.SET_STORE="SET_STORE",X.FETCH_RTL_CONFIG="FETCH_RTL_CONFIG",X.SET_RTL_CONFIG="SET_RTL_CONFIG",X.SAVE_SSO="SAVE_SSO",X.SAVE_SETTINGS="SAVE_SETTINGS",X.TWO_FA_SAVE_SETTINGS="TWO_FA_SAVE_SETTINGS",X.SET_SELECTED_NODE="SET_SELECTED_NODE",X.UPDATE_ROOT_NODE_SETTINGS="UPDATE_ROOT_NODE_SETTINGS",X.UPDATE_SERVICE_SETTINGS="UPDATE_SERVICE_SETTINGS",X.SET_NODE_DATA="SET_NODE_DATA",X.IS_AUTHORIZED="IS_AUTHORIZED",X.IS_AUTHORIZED_RES="IS_AUTHORIZED_RES",X.LOGIN="LOGIN",X.VERIFY_TWO_FA="VERIFY_TWO_FA",X.LOGOUT="LOGOUT",X.RESET_PASSWORD="RESET_PASSWORD",X.RESET_PASSWORD_RES="RESET_PASSWORD_RES",X.FETCH_FILE="FETCH_FILE",X.SHOW_FILE="SHOW_FILE",Oe;var X})(),oe=(()=>{return(X=oe||(oe={})).RESET_LND_STORE="RESET_LND_STORE",X.UPDATE_API_CALL_STATUS_LND="UPDATE_API_CALL_STATUS_LND",X.SET_CHILD_NODE_SETTINGS_LND="SET_CHILD_NODE_SETTINGS_LND",X.FETCH_PAGE_SETTINGS_LND="FETCH_PAGE_SETTINGS_LND",X.SET_PAGE_SETTINGS_LND="SET_PAGE_SETTINGS_LND",X.SAVE_PAGE_SETTINGS_LND="SAVE_PAGE_SETTINGS_LND",X.FETCH_INFO_LND="FETCH_INFO_LND",X.SET_INFO_LND="SET_INFO_LND",X.FETCH_PEERS_LND="FETCH_PEERS_LND",X.SET_PEERS_LND="SET_PEERS_LND",X.SAVE_NEW_PEER_LND="SAVE_NEW_PEER_LND",X.NEWLY_ADDED_PEER_LND="NEWLY_ADDED_PEER_LND",X.DETACH_PEER_LND="DETACH_PEER_LND",X.REMOVE_PEER_LND="REMOVE_PEER_LND",X.SAVE_NEW_INVOICE_LND="SAVE_NEW_INVOICE_LND",X.NEWLY_SAVED_INVOICE_LND="NEWLY_SAVED_INVOICE_LND",X.ADD_INVOICE_LND="ADD_INVOICE_LND",X.FETCH_FEES_LND="FETCH_FEES_LND",X.SET_FEES_LND="SET_FEES_LND",X.FETCH_BLOCKCHAIN_BALANCE_LND="FETCH_BLOCKCHAIN_BALANCE_LND",X.SET_BLOCKCHAIN_BALANCE_LND="SET_BLOCKCHAIN_BALANCE_LND",X.FETCH_NETWORK_LND="FETCH_NETWORK_LND",X.SET_NETWORK_LND="SET_NETWORK_LND",X.FETCH_CHANNELS_LND="FETCH_CHANNELS_LND",X.FETCH_PENDING_CHANNELS_LND="FETCH_PENDING_CHANNELS_LND",X.FETCH_CLOSED_CHANNELS_LND="FETCH_CLOSED_CHANNELS_LND",X.SET_CHANNELS_LND="SET_CHANNELS_LND",X.SET_PENDING_CHANNELS_LND="SET_PENDING_CHANNELS_LND",X.SET_CLOSED_CHANNELS_LND="SET_CLOSED_CHANNELS_LND",X.UPDATE_CHANNEL_LND="UPDATE_CHANNEL_LND",X.SAVE_NEW_CHANNEL_LND="SAVE_NEW_CHANNEL_LND",X.CLOSE_CHANNEL_LND="CLOSE_CHANNEL_LND",X.REMOVE_CHANNEL_LND="REMOVE_CHANNEL_LND",X.BACKUP_CHANNELS_LND="BACKUP_CHANNELS_LND",X.VERIFY_CHANNEL_LND="VERIFY_CHANNEL_LND",X.BACKUP_CHANNELS_RES_LND="BACKUP_CHANNELS_RES_LND",X.VERIFY_CHANNEL_RES_LND="VERIFY_CHANNEL_RES_LND",X.RESTORE_CHANNELS_LIST_LND="RESTORE_CHANNELS_LIST_LND",X.SET_RESTORE_CHANNELS_LIST_LND="SET_RESTORE_CHANNELS_LIST_LND",X.RESTORE_CHANNELS_LND="RESTORE_CHANNELS_LND",X.RESTORE_CHANNELS_RES_LND="RESTORE_CHANNELS_RES_LND",X.FETCH_INVOICES_LND="FETCH_INVOICES_LND",X.SET_INVOICES_LND="SET_INVOICES_LND",X.UPDATE_INVOICE_LND="UPDATE_INVOICE_LND",X.UPDATE_PAYMENT_LND="UPDATE_PAYMENT_LND",X.SET_TOTAL_INVOICES_LND="SET_TOTAL_INVOICES_LND",X.FETCH_TRANSACTIONS_LND="FETCH_TRANSACTIONS_LND",X.SET_TRANSACTIONS_LND="SET_TRANSACTIONS_LND",X.FETCH_UTXOS_LND="FETCH_UTXOS_LND",X.SET_UTXOS_LND="SET_UTXOS_LND",X.FETCH_PAYMENTS_LND="FETCH_PAYMENTS_LND",X.SET_PAYMENTS_LND="SET_PAYMENTS_LND",X.SEND_PAYMENT_LND="SEND_PAYMENT_LND",X.SEND_PAYMENT_STATUS_LND="SEND_PAYMENT_STATUS_LND",X.FETCH_GRAPH_NODE_LND="FETCH_GRAPH_NODE_LND",X.SET_GRAPH_NODE_LND="SET_GRAPH_NODE_LND",X.GET_NEW_ADDRESS_LND="GET_NEW_ADDRESS_LND",X.SET_NEW_ADDRESS_LND="SET_NEW_ADDRESS_LND",X.SET_CHANNEL_TRANSACTION_LND="SET_CHANNEL_TRANSACTION_LND",X.SET_CHANNEL_TRANSACTION_RES_LND="SET_CHANNEL_TRANSACTION_RES_LND",X.GEN_SEED_LND="GEN_SEED_LND",X.GEN_SEED_RESPONSE_LND="GEN_SEED_RESPONSE_LND",X.INIT_WALLET_LND="INIT_WALLET_LND",X.INIT_WALLET_RESPONSE_LND="INIT_WALLET_RESPONSE_LND",X.UNLOCK_WALLET_LND="UNLOCK_WALLET_LND",X.PEER_LOOKUP_LND="PEER_LOOKUP_LND",X.CHANNEL_LOOKUP_LND="CHANNEL_LOOKUP_LND",X.INVOICE_LOOKUP_LND="INVOICE_LOOKUP_LND",X.PAYMENT_LOOKUP_LND="PAYMENT_LOOKUP_LND",X.SET_LOOKUP_LND="SET_LOOKUP_LND",X.GET_FORWARDING_HISTORY_LND="GET_FORWARDING_HISTORY_LND",X.SET_FORWARDING_HISTORY_LND="SET_FORWARDING_HISTORY_LND",X.GET_QUERY_ROUTES_LND="GET_QUERY_ROUTES_LND",X.SET_QUERY_ROUTES_LND="SET_QUERY_ROUTES_LND",X.GET_ALL_LIGHTNING_TRANSATIONS_LND="GET_ALL_LIGHTNING_TRANSATIONS_LND",X.SET_ALL_LIGHTNING_TRANSATIONS_LND="SET_ALL_LIGHTNING_TRANSATIONS_LND",oe;var X})(),Fe=(()=>{return(X=Fe||(Fe={})).RESET_CLN_STORE="RESET_CLN_STORE",X.UPDATE_API_CALL_STATUS_CLN="UPDATE_API_CALL_STATUS_CLN",X.SET_CHILD_NODE_SETTINGS_CLN="SET_CHILD_NODE_SETTINGS_CLN",X.FETCH_PAGE_SETTINGS_CLN="FETCH_PAGE_SETTINGS_CLN",X.SET_PAGE_SETTINGS_CLN="SET_PAGE_SETTINGS_CLN",X.SAVE_PAGE_SETTINGS_CLN="SAVE_PAGE_SETTINGS_CLN",X.FETCH_INFO_CLN="FETCH_INFO_CL_CLN",X.SET_INFO_CLN="SET_INFO_CLN",X.FETCH_FEES_CLN="FETCH_FEES_CLN",X.SET_FEES_CLN="SET_FEES_CLN",X.FETCH_FEE_RATES_CLN="FETCH_FEE_RATES_CLN",X.SET_FEE_RATES_CLN="SET_FEE_RATES_CLN",X.FETCH_BALANCE_CLN="FETCH_BALANCE_CLN",X.SET_BALANCE_CLN="SET_BALANCE_CLN",X.FETCH_LOCAL_REMOTE_BALANCE_CLN="FETCH_LOCAL_REMOTE_BALANCE_CLN",X.SET_LOCAL_REMOTE_BALANCE_CLN="SET_LOCAL_REMOTE_BALANCE_CLN",X.GET_NEW_ADDRESS_CLN="GET_NEW_ADDRESS_CLN",X.SET_NEW_ADDRESS_CLN="SET_NEW_ADDRESS_CLN",X.FETCH_UTXOS_CLN="FETCH_UTXOS_CLN",X.SET_UTXOS_CLN="SET_UTXOS_CLN",X.FETCH_PEERS_CLN="FETCH_PEERS_CLN",X.SET_PEERS_CLN="SET_PEERS_CLN",X.SAVE_NEW_PEER_CLN="SAVE_NEW_PEER_CLN",X.NEWLY_ADDED_PEER_CLN="NEWLY_ADDED_PEER_CLN",X.ADD_PEER_CLN="ADD_PEER_CLN",X.DETACH_PEER_CLN="DETACH_PEER_CLN",X.REMOVE_PEER_CLN="REMOVE_PEER_CLN",X.FETCH_CHANNELS_CLN="FETCH_CHANNELS_CLN",X.SET_CHANNELS_CLN="SET_CHANNELS_CLN",X.UPDATE_CHANNEL_CLN="UPDATE_CHANNEL_CLN",X.SAVE_NEW_CHANNEL_CLN="SAVE_NEW_CHANNEL_CLN",X.CLOSE_CHANNEL_CLN="CLOSE_CHANNEL_CLN",X.REMOVE_CHANNEL_CLN="REMOVE_CHANNEL_CLN",X.FETCH_PAYMENTS_CLN="FETCH_PAYMENTS_CLN",X.SET_PAYMENTS_CLN="SET_PAYMENTS_CLN",X.SEND_PAYMENT_CLN="SEND_PAYMENT_CLN",X.SEND_PAYMENT_STATUS_CLN="SEND_PAYMENT_STATUS_CLN",X.GET_QUERY_ROUTES_CLN="GET_QUERY_ROUTES_CLN",X.SET_QUERY_ROUTES_CLN="SET_QUERY_ROUTES_CLN",X.PEER_LOOKUP_CLN="PEER_LOOKUP_CLN",X.CHANNEL_LOOKUP_CLN="CHANNEL_LOOKUP_CLN",X.INVOICE_LOOKUP_CLN="INVOICE_LOOKUP_CLN",X.SET_LOOKUP_CLN="SET_LOOKUP_CLN",X.GET_FORWARDING_HISTORY_CLN="GET_FORWARDING_HISTORY_CLN",X.SET_FORWARDING_HISTORY_CLN="SET_FORWARDING_HISTORY_CLN",X.GET_FAILED_FORWARDING_HISTORY_CLN="GET_FAILED_FORWARDING_HISTORY_CLN",X.SET_FAILED_FORWARDING_HISTORY_CLN="SET_FAILED_FORWARDING_HISTORY_CLN",X.GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",X.SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",X.FETCH_INVOICES_CLN="FETCH_INVOICES_CLN",X.SET_INVOICES_CLN="SET_INVOICES_CLN",X.SAVE_NEW_INVOICE_CLN="SAVE_NEW_INVOICE_CLN",X.ADD_INVOICE_CLN="ADD_INVOICE_CLN",X.UPDATE_INVOICE_CLN="UPDATE_INVOICE_CLN",X.DELETE_EXPIRED_INVOICE_CLN="DELETE_EXPIRED_INVOICE_CLN",X.SET_CHANNEL_TRANSACTION_CLN="SET_CHANNEL_TRANSACTION_CLN",X.SET_CHANNEL_TRANSACTION_RES_CLN="SET_CHANNEL_TRANSACTION_RES_CLN",X.FETCH_OFFER_INVOICE_CLN="FETCH_OFFER_INVOICE_CLN",X.SET_OFFER_INVOICE_CLN="SET_OFFER_INVOICE_CLN",X.FETCH_OFFERS_CLN="FETCH_OFFERS_CLN",X.SET_OFFERS_CLN="SET_OFFERS_CLN",X.SAVE_NEW_OFFER_CLN="SAVE_NEW_OFFER_CLN",X.ADD_OFFER_CLN="ADD_OFFER_CLN",X.DISABLE_OFFER_CLN="DISABLE_OFFER_CLN",X.UPDATE_OFFER_CLN="UPDATE_OFFER_CLN",X.FETCH_OFFER_BOOKMARKS_CLN="FETCH_OFFER_BOOKMARKS_CLN",X.SET_OFFER_BOOKMARKS_CLN="SET_OFFER_BOOKMARKS_CLN",X.ADD_UPDATE_OFFER_BOOKMARK_CLN="ADD_UPDATE_OFFER_BOOKMARK_CLN",X.DELETE_OFFER_BOOKMARK_CLN="DELETE_OFFER_BOOKMARK_CLN",X.REMOVE_OFFER_BOOKMARK_CLN="REMOVE_OFFER_BOOKMARK_CL",Fe;var X})(),De=(()=>{return(X=De||(De={})).RESET_ECL_STORE="RESET_ECL_STORE",X.UPDATE_API_CALL_STATUS_ECL="UPDATE_API_CALL_STATUS_ECL",X.SET_CHILD_NODE_SETTINGS_ECL="SET_CHILD_NODE_SETTINGS_ECL",X.FETCH_PAGE_SETTINGS_ECL="FETCH_PAGE_SETTINGS_ECL",X.SET_PAGE_SETTINGS_ECL="SET_PAGE_SETTINGS_ECL",X.SAVE_PAGE_SETTINGS_ECL="SAVE_PAGE_SETTINGS_ECL",X.FETCH_INFO_ECL="FETCH_INFO_ECL",X.SET_INFO_ECL="SET_INFO_ECL",X.FETCH_FEES_ECL="FETCH_FEES_ECL",X.SET_FEES_ECL="SET_FEES_ECL",X.FETCH_CHANNELS_ECL="FETCH_CHANNELS_ECL",X.SET_ACTIVE_CHANNELS_ECL="SET_ACTIVE_CHANNELS_ECL",X.SET_PENDING_CHANNELS_ECL="SET_PENDING_CHANNELS_ECL",X.SET_INACTIVE_CHANNELS_ECL="SET_INACTIVE_CHANNELS_ECL",X.FETCH_ONCHAIN_BALANCE_ECL="FETCH_ONCHAIN_BALANCE_ECL",X.SET_ONCHAIN_BALANCE_ECL="SET_ONCHAIN_BALANCE_ECL",X.FETCH_LIGHTNING_BALANCE_ECL="FETCH_LIGHTNING_BALANCE_ECL",X.SET_LIGHTNING_BALANCE_ECL="SET_LIGHTNING_BALANCE_ECL",X.SET_CHANNELS_STATUS_ECL="SET_CHANNELS_STATUS_ECL",X.FETCH_PEERS_ECL="FETCH_PEERS_ECL",X.SET_PEERS_ECL="SET_PEERS_ECL",X.SAVE_NEW_PEER_ECL="SAVE_NEW_PEER_ECL",X.NEWLY_ADDED_PEER_ECL="NEWLY_ADDED_PEER_ECL",X.ADD_PEER_ECL="ADD_PEER_ECL",X.DETACH_PEER_ECL="DETACH_PEER_ECL",X.REMOVE_PEER_ECL="REMOVE_PEER_ECL",X.GET_NEW_ADDRESS_ECL="GET_NEW_ADDRESS_ECL",X.SET_NEW_ADDRESS_ECL="SET_NEW_ADDRESS_ECL",X.SAVE_NEW_CHANNEL_ECL="SAVE_NEW_CHANNEL_ECL",X.UPDATE_CHANNEL_ECL="UPDATE_CHANNEL_ECL",X.CLOSE_CHANNEL_ECL="CLOSE_CHANNEL_ECL",X.REMOVE_CHANNEL_ECL="REMOVE_CHANNEL_ECL",X.FETCH_PAYMENTS_ECL="FETCH_PAYMENTS_ECL",X.SET_PAYMENTS_ECL="SET_PAYMENTS_ECL",X.GET_QUERY_ROUTES_ECL="GET_QUERY_ROUTES_ECL",X.SET_QUERY_ROUTES_ECL="SET_QUERY_ROUTES_ECL",X.SEND_PAYMENT_ECL="SEND_PAYMENT_ECL",X.SEND_PAYMENT_STATUS_ECL="SEND_PAYMENT_STATUS_ECL",X.FETCH_TRANSACTIONS_ECL="FETCH_TRANSACTIONS_ECL",X.SET_TRANSACTIONS_ECL="SET_TRANSACTIONS_ECL",X.SEND_ONCHAIN_FUNDS_ECL="SEND_ONCHAIN_FUNDS_ECL",X.SEND_ONCHAIN_FUNDS_RES_ECL="SEND_ONCHAIN_FUNDS_RES_ECL",X.FETCH_INVOICES_ECL="FETCH_INVOICES_ECL",X.SET_INVOICES_ECL="SET_INVOICES_ECL",X.SET_TOTAL_INVOICES_ECL="SET_TOTAL_INVOICES_ECL",X.CREATE_INVOICE_ECL="CREATE_INVOICE_ECL",X.ADD_INVOICE_ECL="ADD_INVOICE_ECL",X.UPDATE_INVOICE_ECL="UPDATE_INVOICE_ECL",X.PEER_LOOKUP_ECL="PEER_LOOKUP_ECL",X.INVOICE_LOOKUP_ECL="INVOICE_LOOKUP_ECL",X.SET_LOOKUP_ECL="SET_LOOKUP_ECL",X.UPDATE_CHANNEL_STATE_ECL="UPDATE_CHANNEL_STATE_ECL",X.UPDATE_RELAYED_PAYMENT_ECL="UPDATE_RELAYED_PAYMENT_ECL",De;var X})();const he=[{range:{min:0,max:1},description:"Requires or supports extra channel re-establish fields"},{range:{min:4,max:5},description:"Commits to a shutdown script pubkey when opening channel"},{range:{min:6,max:7},description:"More sophisticated gossip control"},{range:{min:8,max:9},description:"Requires/supports variable-length routing onion payloads"},{range:{min:10,max:11},description:"Gossip queries can include additional information"},{range:{min:12,max:13},description:"Static key for remote output"},{range:{min:14,max:15},description:"Node supports payment secret field"},{range:{min:16,max:17},description:"Node can receive basic multi-part payments"},{range:{min:18,max:19},description:"Node can create large channels"},{range:{min:20,max:21},description:"Anchor outputs"},{range:{min:22,max:23},description:"Anchor commitment type with zero fee HTLC transactions"},{range:{min:26,max:27},description:"Future segwit versions allowed in shutdown"},{range:{min:30,max:31},description:"AMP support"},{range:{min:44,max:45},description:"Explicit commitment type"}];var Me=(()=>{return(X=Me||(Me={})).gossip_queries_ex="Gossip queries including additional information",X.option_anchor_outputs="Anchor outputs",X.option_data_loss_protect="Extra channel re-establish fields",X.var_onion_optin="Variable-length routing onion payloads",X.option_static_remotekey="Static key for remote output",X.option_support_large_channel="Create large channels",X.option_anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",X.payment_secret="Payment secret field",X.option_shutdown_anysegwit="Future segwit versions allowed in shutdown",X.basic_mpp="Basic multi-part payments",X.gossip_queries="More sophisticated gossip control",X.option_upfront_shutdown_script="Shutdown script pubkey when opening channel",X.anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",X.amp="AMP",Me;var X})(),pe=(()=>{return(X=pe||(pe={}))["data-loss-protect"]="Extra channel re-establish fields",X["upfront-shutdown-script"]="Shutdown script pubkey when opening channel",X["gossip-queries"]="More sophisticated gossip control",X["tlv-onion"]="Variable-length routing onion payloads",X["ext-gossip-queries"]="Gossip queries can include additional information",X["static-remote-key"]="Static key for remote output",X["payment-addr"]="Payment secret field",X["multi-path-payments"]="Basic multi-part payments",X["wumbo-channels"]="Wumbo Channels",X.anchors="Anchor outputs",X["anchors-zero-fee-htlc-tx"]="Anchor commitment type with zero fee HTLC transactions",X.amp="AMP",pe;var X})();const Ve=[{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 Qe=(()=>{return(X=Qe||(Qe={})).OFFERED="offered",X.SETTLED="settled",X.FAILED="failed",X.LOCAL_FAILED="local_failed",Qe;var X})(),lt=(()=>{return(X=lt||(lt={})).ASCENDING="asc",X.DESCENDING="desc",lt;var X})();const Ut=["asc","desc"],ht=[{pageId:"on_chain",tables:[{tableId:"utxos",recordsPerPage:H,sortBy:"blockheight",sortOrder:lt.DESCENDING,columnSelectionSM:["txid","value"],columnSelection:["txid","output","value","blockheight"]},{tableId:"dust_utxos",recordsPerPage:H,sortBy:"blockheight",sortOrder:lt.DESCENDING,columnSelectionSM:["txid","value"],columnSelection:["txid","output","value","blockheight"]}]},{pageId:"peers_channels",tables:[{tableId:"open_channels",recordsPerPage:H,sortBy:"msatoshi_to_us",sortOrder:lt.DESCENDING,columnSelectionSM:["alias","msatoshi_to_us","msatoshi_to_them"],columnSelection:["short_channel_id","alias","msatoshi_to_us","msatoshi_to_them","balancedness"]},{tableId:"pending_inactive_channels",recordsPerPage:H,sortBy:"state",sortOrder:lt.DESCENDING,columnSelectionSM:["alias","state"],columnSelection:["alias","connected","state","msatoshi_total"]},{tableId:"peers",recordsPerPage:H,sortBy:"alias",sortOrder:lt.ASCENDING,columnSelectionSM:["alias","id"],columnSelection:["alias","id","netaddr"]},{tableId:"active_HTLCs",recordsPerPage:H,sortBy:"expiry",sortOrder:lt.DESCENDING,columnSelectionSM:["amount_msat","direction","expiry"],columnSelection:["amount_msat","direction","expiry","state"]}]},{pageId:"liquidity_ads",tables:[{tableId:"liquidity_ads",recordsPerPage:H,sortBy:"channel_opening_fee",sortOrder:lt.ASCENDING,columnSelectionSM:["alias","channel_opening_fee"],columnSelection:["alias","last_timestamp","lease_fee","routing_fee","channel_opening_fee"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:H,sortBy:"created_at",sortOrder:lt.DESCENDING,columnSelectionSM:["created_at","msatoshi"],columnSelection:["created_at","type","payment_hash","msatoshi_sent","msatoshi"]},{tableId:"invoices",recordsPerPage:H,sortBy:"expires_at",sortOrder:lt.DESCENDING,columnSelectionSM:["expires_at","msatoshi"],columnSelection:["expires_at","paid_at","type","description","msatoshi","msatoshi_received"]},{tableId:"offers",recordsPerPage:H,sortBy:"offer_id",sortOrder:lt.DESCENDING,columnSelectionSM:["offer_id","single_use"],columnSelection:["offer_id","single_use","used"]},{tableId:"offer_bookmarks",recordsPerPage:H,sortBy:"lastUpdatedAt",sortOrder:lt.DESCENDING,columnSelectionSM:["lastUpdatedAt","amountMSat"],columnSelection:["lastUpdatedAt","title","description","amountMSat"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:H,sortBy:"received_time",sortOrder:lt.DESCENDING,columnSelectionSM:["received_time","in_msatoshi","out_msatoshi"],columnSelection:["received_time","resolved_time","in_channel_alias","out_channel_alias","in_msatoshi","out_msatoshi","fee"]},{tableId:"routing_peers",recordsPerPage:H,sortBy:"total_fee",sortOrder:lt.DESCENDING,columnSelectionSM:["alias","events","total_fee"],columnSelection:["channel_id","alias","events","total_amount","total_fee"]},{tableId:"failed",recordsPerPage:H,sortBy:"received_time",sortOrder:lt.DESCENDING,columnSelectionSM:["received_time","in_channel_alias","in_msatoshi"],columnSelection:["received_time","resolved_time","in_channel_alias","out_channel_alias","in_msatoshi","out_msatoshi","fee"]},{tableId:"local_failed",recordsPerPage:H,sortBy:"received_time",sortOrder:lt.DESCENDING,columnSelectionSM:["received_time","in_channel_alias","in_msatoshi"],columnSelection:["received_time","in_channel_alias","in_msatoshi","style","failreason"]}]},{pageId:"reports",tables:[{tableId:"routing",recordsPerPage:H,sortBy:"received_time",sortOrder:lt.DESCENDING,columnSelectionSM:["received_time","in_msatoshi","out_msatoshi"],columnSelection:["received_time","resolved_time","in_channel_alias","out_channel_alias","in_msatoshi","out_msatoshi","fee"]},{tableId:"transactions",recordsPerPage:H,sortBy:"date",sortOrder:lt.DESCENDING,columnSelectionSM:["date","amount_paid","amount_received"],columnSelection:["date","amount_paid","num_payments","amount_received","num_invoices"]}]},{pageId:"graph_lookup",tables:[{tableId:"query_routes",recordsPerPage:H,sortBy:"msatoshi",sortOrder:lt.DESCENDING,columnSelectionSM:["alias","direction","msatoshi"],columnSelection:["alias","channel","direction","delay","msatoshi"]}]}],Ge={on_chain:{utxos:{maxColumns:7,allowedColumns:[{column:"txid",label:"Transaction ID"},{column:"address"},{column:"scriptpubkey",label:"Script Pubkey"},{column:"output"},{column:"value"},{column:"blockheight"},{column:"reserved"}]},dust_utxos:{maxColumns:7,allowedColumns:[{column:"txid",label:"Transaction ID"},{column:"address"},{column:"scriptpubkey",label:"Script Pubkey"},{column:"output"},{column:"value"},{column:"blockheight"},{column:"reserved"}]}},peers_channels:{open_channels:{maxColumns:8,allowedColumns:[{column:"short_channel_id"},{column:"alias"},{column:"id"},{column:"channel_id"},{column:"funding_txid",label:"Funding Transaction ID"},{column:"connected"},{column:"our_channel_reserve_satoshis",label:"Local Reserve"},{column:"their_channel_reserve_satoshis",label:"Remote Reserve"},{column:"msatoshi_total",label:"Total"},{column:"spendable_msatoshi",label:"Spendable"},{column:"msatoshi_to_us",label:"Local Balance"},{column:"msatoshi_to_them",label:"Remote Balance"},{column:"balancedness",label:"Balance Score"}]},pending_inactive_channels:{maxColumns:8,allowedColumns:[{column:"alias"},{column:"id"},{column:"channel_id"},{column:"funding_txid",label:"Funding Transaction ID"},{column:"connected"},{column:"state"},{column:"our_channel_reserve_satoshis",label:"Local Reserve"},{column:"their_channel_reserve_satoshis",label:"Remote Reserve"},{column:"msatoshi_total",label:"Total"},{column:"spendable_msatoshi",label:"Spendable"},{column:"msatoshi_to_us",label:"Local Balance"},{column:"msatoshi_to_them",label:"Remote Balance"}]},peers:{maxColumns:3,allowedColumns:[{column:"alias"},{column:"id"},{column:"netaddr",label:"Network Address"}]},active_HTLCs:{maxColumns:7,allowedColumns:[{column:"amount_msat",label:"Amount (Sats)"},{column:"direction"},{column:"id",label:"HTLC ID"},{column:"state"},{column:"expiry"},{column:"payment_hash"},{column:"local_trimmed"}]}},liquidity_ads:{liquidity_ads:{maxColumns:8,allowedColumns:[{column:"alias"},{column:"nodeid",label:"Node ID"},{column:"last_timestamp",label:"Last Announcement At"},{column:"compact_lease"},{column:"lease_fee"},{column:"routing_fee"},{column:"channel_opening_fee"},{column:"funding_weight"}]}},transactions:{payments:{maxColumns:7,allowedColumns:[{column:"created_at",label:"Created At"},{column:"type"},{column:"payment_hash"},{column:"bolt11",label:"Invoice"},{column:"destination"},{column:"memo"},{column:"label"},{column:"msatoshi_sent",label:"Sats Sent"},{column:"msatoshi",label:"Sats Received"}]},invoices:{maxColumns:7,allowedColumns:[{column:"expires_at",label:"Expiry Date"},{column:"paid_at",label:"Date Settled"},{column:"type"},{column:"description"},{column:"label"},{column:"payment_hash"},{column:"bolt11",label:"Invoice"},{column:"msatoshi",label:"Amount"},{column:"msatoshi_received",label:"Amount Settled"}]},offers:{maxColumns:4,allowedColumns:[{column:"offer_id",label:"Offer ID"},{column:"single_use"},{column:"used"},{column:"bolt12",label:"Invoice"}]},offer_bookmarks:{maxColumns:6,allowedColumns:[{column:"lastUpdatedAt",label:"Updated At"},{column:"title"},{column:"description"},{column:"issuer"},{column:"bolt12",label:"Invoice"},{column:"amountMSat",label:"Amount"}]}},routing:{forwarding_history:{maxColumns:8,allowedColumns:[{column:"received_time"},{column:"resolved_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"payment_hash"},{column:"in_msatoshi",label:"Amount In"},{column:"out_msatoshi",label:"Amount Out"},{column:"fee"}]},routing_peers:{maxColumns:5,allowedColumns:[{column:"channel_id"},{column:"alias",label:"Peer Alias"},{column:"events"},{column:"total_amount",label:"Amount"},{column:"total_fee",label:"Fee"}]},failed:{maxColumns:7,allowedColumns:[{column:"received_time"},{column:"resolved_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"in_msatoshi",label:"Amount In"},{column:"out_msatoshi",label:"Amount Out"},{column:"fee"}]},local_failed:{maxColumns:6,allowedColumns:[{column:"received_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"in_msatoshi",label:"Amount In"},{column:"style"},{column:"failreason",label:"Fail Reason"}]}},reports:{routing:{maxColumns:8,allowedColumns:[{column:"received_time"},{column:"resolved_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"payment_hash"},{column:"in_msatoshi",label:"Amount In"},{column:"out_msatoshi",label:"Amount Out"},{column:"fee"}]},transactions:{maxColumns:5,allowedColumns:[{column:"date"},{column:"amount_paid"},{column:"num_payments",label:"# Payments"},{column:"amount_received"},{column:"num_invoices",label:"# Invoices"}]}},graph_lookup:{query_routes:{maxColumns:6,allowedColumns:[{column:"id"},{column:"alias"},{column:"channel"},{column:"direction"},{column:"delay"},{column:"msatoshi",label:"Amount"}]}}},yt=[{pageId:"on_chain",tables:[{tableId:"utxos",recordsPerPage:H,sortBy:"tx_id",sortOrder:lt.DESCENDING,columnSelectionSM:["output","amount_sat"],columnSelection:["tx_id","output","label","amount_sat","confirmations"]},{tableId:"transactions",recordsPerPage:H,sortBy:"time_stamp",sortOrder:lt.DESCENDING,columnSelectionSM:["time_stamp","amount","num_confirmations"],columnSelection:["time_stamp","label","amount","total_fees","block_height","num_confirmations"]},{tableId:"dust_utxos",recordsPerPage:H,sortBy:"tx_id",sortOrder:lt.DESCENDING,columnSelectionSM:["output","amount_sat"],columnSelection:["tx_id","output","label","amount_sat","confirmations"]}]},{pageId:"peers_channels",tables:[{tableId:"open",recordsPerPage:H,sortBy:"balancedness",sortOrder:lt.DESCENDING,columnSelectionSM:["remote_alias","local_balance"],columnSelection:["remote_alias","uptime_str","total_satoshis_sent","total_satoshis_received","local_balance","remote_balance","balancedness"]},{tableId:"pending_open",sortBy:"capacity",sortOrder:lt.DESCENDING,columnSelectionSM:["remote_alias","capacity"],columnSelection:["remote_alias","commit_fee","commit_weight","capacity"]},{tableId:"pending_force_closing",sortBy:"limbo_balance",sortOrder:lt.DESCENDING,columnSelectionSM:["remote_alias","limbo_balance"],columnSelection:["remote_alias","recovered_balance","limbo_balance","capacity"]},{tableId:"pending_closing",sortBy:"capacity",sortOrder:lt.DESCENDING,columnSelectionSM:["remote_alias","capacity"],columnSelection:["remote_alias","local_balance","remote_balance","capacity"]},{tableId:"pending_waiting_close",sortBy:"limbo_balance",sortOrder:lt.DESCENDING,columnSelectionSM:["remote_alias","limbo_balance"],columnSelection:["remote_alias","limbo_balance","local_balance","remote_balance"]},{tableId:"closed",recordsPerPage:H,sortBy:"close_type",sortOrder:lt.DESCENDING,columnSelectionSM:["remote_alias","settled_balance"],columnSelection:["close_type","remote_alias","capacity","close_height","settled_balance"]},{tableId:"active_HTLCs",recordsPerPage:H,sortBy:"incoming",sortOrder:lt.ASCENDING,columnSelectionSM:["amount","incoming","expiration_height"],columnSelection:["amount","incoming","expiration_height","hash_lock"]},{tableId:"peers",recordsPerPage:H,sortBy:"alias",sortOrder:lt.DESCENDING,columnSelectionSM:["alias","sat_sent","sat_recv"],columnSelection:["alias","pub_key","sat_sent","sat_recv","ping_time"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:H,sortBy:"creation_date",sortOrder:lt.DESCENDING,columnSelectionSM:["creation_date","fee","value"],columnSelection:["creation_date","payment_hash","fee","value","hops"]},{tableId:"invoices",recordsPerPage:H,sortBy:"creation_date",sortOrder:lt.DESCENDING,columnSelectionSM:["creation_date","settle_date","value"],columnSelection:["creation_date","settle_date","memo","value","amt_paid_sat"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:H,sortBy:"timestamp",sortOrder:lt.DESCENDING,columnSelectionSM:["timestamp","amt_in","amt_out"],columnSelection:["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat"]},{tableId:"routing_peers",recordsPerPage:H,sortBy:"total_amount",sortOrder:lt.DESCENDING,columnSelectionSM:["alias","events","total_amount"],columnSelection:["chan_id","alias","events","total_amount"]},{tableId:"non_routing_peers",recordsPerPage:H,sortBy:"remote_alias",sortOrder:lt.DESCENDING,columnSelectionSM:["remote_alias","local_balance","remote_balance"],columnSelection:["chan_id","remote_alias","total_satoshis_received","total_satoshis_sent","local_balance","remote_balance"]}]},{pageId:"reports",tables:[{tableId:"routing",recordsPerPage:H,sortBy:"timestamp",sortOrder:lt.DESCENDING,columnSelectionSM:["timestamp","amt_in","amt_out"],columnSelection:["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat"]},{tableId:"transactions",recordsPerPage:H,sortBy:"date",sortOrder:lt.DESCENDING,columnSelectionSM:["date","amount_paid","amount_received"],columnSelection:["date","amount_paid","num_payments","amount_received","num_invoices"]}]},{pageId:"graph_lookup",tables:[{tableId:"query_routes",recordsPerPage:H,sortBy:"hop_sequence",sortOrder:lt.ASCENDING,columnSelectionSM:["hop_sequence","pubkey_alias","fee_msat"],columnSelection:["hop_sequence","pubkey_alias","chan_capacity","amt_to_forward_msat","fee_msat"]}]},{pageId:"loop",tables:[{tableId:"loop",recordsPerPage:H,sortBy:"initiation_time",sortOrder:lt.DESCENDING,columnSelectionSM:["state","amt"],columnSelection:["state","initiation_time","amt","cost_server","cost_offchain","cost_onchain"]}]},{pageId:"boltz",tables:[{tableId:"swap_out",recordsPerPage:H,sortBy:"status",sortOrder:lt.DESCENDING,columnSelectionSM:["status","id","onchainAmount"],columnSelection:["status","id","claimAddress","onchainAmount","timeoutBlockHeight"]},{tableId:"swap_in",recordsPerPage:H,sortBy:"status",sortOrder:lt.DESCENDING,columnSelectionSM:["status","id","expectedAmount"],columnSelection:["status","id","lockupAddress","expectedAmount","timeoutBlockHeight"]}]}],be={on_chain:{utxos:{maxColumns:7,allowedColumns:[{column:"tx_id",label:"Transaction ID"},{column:"output"},{column:"label"},{column:"address_type"},{column:"address"},{column:"amount_sat",label:"Amount"},{column:"confirmations"}]},transactions:{maxColumns:7,allowedColumns:[{column:"time_stamp",label:"Date/Time"},{column:"label"},{column:"block_hash"},{column:"tx_hash",label:"Transaction Hash"},{column:"amount"},{column:"total_fees",label:"Fees"},{column:"block_height"},{column:"num_confirmations",label:"Confirmations"}]},dust_utxos:{maxColumns:7,allowedColumns:[{column:"tx_id",label:"Transaction ID"},{column:"output"},{column:"label"},{column:"address_type"},{column:"address"},{column:"amount_sat"},{column:"confirmations"}]}},peers_channels:{open:{maxColumns:8,allowedColumns:[{column:"remote_alias",label:"Peer"},{column:"remote_pubkey",label:"Pubkey"},{column:"channel_point"},{column:"chan_id",label:"Channel ID"},{column:"initiator"},{column:"static_remote_key"},{column:"uptime_str",label:"Uptime"},{column:"lifetime_str",label:"Lifetime"},{column:"commit_fee"},{column:"commit_weight"},{column:"fee_per_kw",label:"Fee/KW"},{column:"num_updates",label:"Updates"},{column:"unsettled_balance"},{column:"capacity"},{column:"local_chan_reserve_sat",label:"Local Reserve"},{column:"remote_chan_reserve_sat",label:"Remote Reserve"},{column:"total_satoshis_sent",label:"Sats Sent"},{column:"total_satoshis_received",label:"Sats Received"},{column:"local_balance"},{column:"remote_balance"},{column:"balancedness",label:"Balance Score"}]},pending_open:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"confirmation_height"},{column:"commit_fee"},{column:"commit_weight"},{column:"fee_per_kw",label:"Fee/KW"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},pending_force_closing:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"closing_txid",label:"Closing Tx ID"},{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"limbo_balance"},{column:"maturity_height"},{column:"blocks_til_maturity",label:"Blocks till Maturity"},{column:"recovered_balance"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},pending_closing:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"closing_txid",label:"Closing Tx ID"},{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},pending_waiting_close:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"closing_txid",label:"Closing Tx ID"},{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"limbo_balance"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},closed:{maxColumns:7,allowedColumns:[{column:"close_type"},{column:"remote_alias",label:"Peer"},{column:"remote_pubkey",label:"Pubkey"},{column:"channel_point"},{column:"chan_id",label:"Channel ID"},{column:"closing_tx_hash",label:"Closing Tx Hash"},{column:"chain_hash"},{column:"open_initiator"},{column:"close_initiator"},{column:"time_locked_balance",label:"Timelocked Balance"},{column:"capacity"},{column:"close_height"},{column:"settled_balance"}]},active_HTLCs:{maxColumns:7,allowedColumns:[{column:"amount"},{column:"incoming"},{column:"forwarding_channel"},{column:"htlc_index"},{column:"forwarding_htlc_index"},{column:"expiration_height"},{column:"hash_lock"}]},peers:{maxColumns:8,allowedColumns:[{column:"alias"},{column:"pub_key",label:"Public Key"},{column:"address"},{column:"sync_type"},{column:"inbound"},{column:"bytes_sent"},{column:"bytes_recv",label:"Bytes Received"},{column:"sat_sent",label:"Sats Sent"},{column:"sat_recv",label:"Sats Received"},{column:"ping_time"}]}},transactions:{payments:{maxColumns:8,allowedColumns:[{column:"creation_date"},{column:"payment_hash"},{column:"payment_request"},{column:"payment_preimage"},{column:"description"},{column:"description_hash"},{column:"failure_reason"},{column:"payment_index"},{column:"fee"},{column:"value"},{column:"hops"}]},invoices:{maxColumns:9,allowedColumns:[{column:"private"},{column:"is_keysend",label:"Keysend"},{column:"is_amp",label:"AMP"},{column:"creation_date",label:"Date Created"},{column:"settle_date",label:"Date Settled"},{column:"memo"},{column:"r_preimage",label:"Preimage"},{column:"r_hash",label:"Preimage Hash"},{column:"payment_addr",label:"Payment Address"},{column:"payment_request"},{column:"description_hash"},{column:"expiry"},{column:"cltv_expiry"},{column:"add_index"},{column:"settle_index"},{column:"value",label:"Amount"},{column:"amt_paid_sat",label:"Amount Settled"}]}},routing:{forwarding_history:{maxColumns:6,allowedColumns:[{column:"timestamp"},{column:"alias_in",label:"Inbound Alias"},{column:"chan_id_in",label:"Inbound Channel"},{column:"alias_out",label:"Outbound Alias"},{column:"chan_id_out",label:"Outbound Channel"},{column:"amt_in",label:"Inbound Amount"},{column:"amt_out",label:"Outbound Amount"},{column:"fee_msat",label:"Fee"}]},routing_peers:{maxColumns:4,allowedColumns:[{column:"chan_id",label:"Channel ID"},{column:"alias",label:"Peer Alias"},{column:"events"},{column:"total_amount"}]},non_routing_peers:{maxColumns:8,allowedColumns:[{column:"chan_id",label:"Channel ID"},{column:"remote_alias",label:"Peer Alias"},{column:"remote_pubkey",label:"Peer Pubkey"},{column:"channel_point"},{column:"uptime_str",label:"Uptime"},{column:"lifetime_str",label:"Lifetime"},{column:"commit_fee"},{column:"commit_weight"},{column:"fee_per_kw",label:"Fee/KW"},{column:"num_updates",label:"Updates"},{column:"unsettled_balance"},{column:"capacity"},{column:"local_chan_reserve_sat",label:"Local Reserve"},{column:"remote_chan_reserve_sat",label:"Remote Reserve"},{column:"total_satoshis_sent",label:"Sats Sent"},{column:"total_satoshis_received",label:"Sats Received"},{column:"local_balance"},{column:"remote_balance"}]}},reports:{routing:{maxColumns:6,allowedColumns:[{column:"timestamp"},{column:"alias_in",label:"Inbound Alias"},{column:"chan_id_in",label:"Inbound Channel"},{column:"alias_out",label:"Outbound Alias"},{column:"chan_id_out",label:"Outbound Channel"},{column:"amt_in",label:"Inbound Amount"},{column:"amt_out",label:"Outbound Amount"},{column:"fee_msat",label:"Fee"}]},transactions:{maxColumns:5,allowedColumns:[{column:"date"},{column:"amount_paid"},{column:"num_payments",label:"# Payments"},{column:"amount_received"},{column:"num_invoices",label:"# Invoices"}]}},graph_lookup:{query_routes:{maxColumns:8,disablePageSize:!0,allowedColumns:[{column:"hop_sequence",label:"Hop"},{column:"pubkey_alias",label:"Peer"},{column:"pub_key",label:"Peer Pubkey"},{column:"chan_id",label:"Channel ID"},{column:"tlv_payload"},{column:"expiry"},{column:"chan_capacity",label:"Capacity"},{column:"amt_to_forward_msat",label:"Amount To Fwd"},{column:"fee_msat",label:"Fee"}]}},loop:{loop:{maxColumns:8,allowedColumns:[{column:"state"},{column:"initiation_time"},{column:"last_update_time"},{column:"amt",label:"Amount"},{column:"cost_server"},{column:"cost_offchain"},{column:"cost_onchain"},{column:"htlc_address"},{column:"id"},{column:"id_bytes",label:"ID (Bytes)"}]}},boltz:{swap_out:{maxColumns:7,allowedColumns:[{column:"status"},{column:"id",label:"Swap ID"},{column:"claimAddress",label:"Claim Address"},{column:"onchainAmount",label:"Onchain Amount"},{column:"error"},{column:"privateKey",label:"Private Key"},{column:"preimage"},{column:"redeemScript",label:"Redeem Script"},{column:"invoice"},{column:"timeoutBlockHeight",label:"Timeout Block Height"},{column:"lockupTransactionId",label:"Lockup Tx ID"},{column:"claimTransactionId",label:"Claim Tx ID"}]},swap_in:{maxColumns:7,allowedColumns:[{column:"status"},{column:"id",label:"Swap ID"},{column:"lockupAddress",label:"Lockup Address"},{column:"expectedAmount",label:"Expected Amount"},{column:"error"},{column:"privateKey",label:"Private Key"},{column:"preimage"},{column:"redeemScript",label:"Redeem Script"},{column:"invoice"},{column:"timeoutBlockHeight",label:"Timeout Block Height"},{column:"lockupTransactionId",label:"Lockup Tx ID"},{column:"refundTransactionId",label:"Refund Tx ID"}]}}},qe=[{pageId:"on_chain",tables:[{tableId:"transaction",recordsPerPage:H,sortBy:"timestamp",sortOrder:lt.DESCENDING,columnSelectionSM:["timestamp","amount"],columnSelection:["timestamp","address","amount","fees","confirmations"]}]},{pageId:"peers_channels",tables:[{tableId:"open_channels",recordsPerPage:H,sortBy:"alias",sortOrder:lt.DESCENDING,columnSelectionSM:["alias","toLocal","toRemote"],columnSelection:["shortChannelId","alias","feeBaseMsat","feeProportionalMillionths","toLocal","toRemote","balancedness"]},{tableId:"pending_channels",recordsPerPage:H,sortBy:"alias",sortOrder:lt.DESCENDING,columnSelectionSM:["state","alias","toLocal"],columnSelection:["state","alias","toLocal","toRemote"]},{tableId:"inactive_channels",recordsPerPage:H,sortBy:"alias",sortOrder:lt.DESCENDING,columnSelectionSM:["state","alias","toLocal"],columnSelection:["state","shortChannelId","alias","toLocal","toRemote","balancedness"]},{tableId:"peers",recordsPerPage:H,sortBy:"alias",sortOrder:lt.ASCENDING,columnSelectionSM:["alias","nodeId"],columnSelection:["alias","nodeId","address","channels"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:H,sortBy:"firstPartTimestamp",sortOrder:lt.DESCENDING,columnSelectionSM:["firstPartTimestamp","recipientAmount"],columnSelection:["firstPartTimestamp","id","recipientNodeAlias","recipientAmount"]},{tableId:"invoices",recordsPerPage:H,sortBy:"receivedAt",sortOrder:lt.DESCENDING,columnSelectionSM:["timestamp","amount","amountSettled"],columnSelection:["timestamp","receivedAt","description","amount","amountSettled"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:H,sortBy:"timestamp",sortOrder:lt.DESCENDING,columnSelectionSM:["timestamp","amountIn","fee"],columnSelection:["timestamp","fromChannelAlias","toChannelAlias","amountIn","amountOut","fee"]},{tableId:"routing_peers",recordsPerPage:H,sortBy:"totalFee",sortOrder:lt.DESCENDING,columnSelectionSM:["alias","events","totalFee"],columnSelection:["channelId","alias","events","totalAmount","totalFee"]}]},{pageId:"reports",tables:[{tableId:"routing",recordsPerPage:H,sortBy:"timestamp",sortOrder:lt.DESCENDING,columnSelectionSM:["timestamp","amountIn","fee"],columnSelection:["timestamp","fromChannelAlias","toChannelAlias","amountIn","amountOut","fee"]},{tableId:"transactions",recordsPerPage:H,sortBy:"date",sortOrder:lt.DESCENDING,columnSelectionSM:["date","amount_paid","amount_received"],columnSelection:["date","amount_paid","num_payments","amount_received","num_invoices"]}]}],Ie={on_chain:{transaction:{maxColumns:6,allowedColumns:[{column:"timestamp",label:"Date/Time"},{column:"address"},{column:"blockHash"},{column:"txid",label:"Transaction ID"},{column:"amount"},{column:"fees"},{column:"confirmations"}]}},peers_channels:{open_channels:{maxColumns:8,allowedColumns:[{column:"shortChannelId"},{column:"channelId"},{column:"alias"},{column:"nodeId"},{column:"isInitiator",label:"Initiator"},{column:"feeBaseMsat",label:"Base Fee"},{column:"feeProportionalMillionths",label:"Fee Rate"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"},{column:"balancedness",label:"Balance Score"}]},pending_channels:{maxColumns:7,allowedColumns:[{column:"state"},{column:"channelId"},{column:"alias"},{column:"nodeId"},{column:"isInitiator",label:"Initiator"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"}]},inactive_channels:{maxColumns:8,allowedColumns:[{column:"state"},{column:"shortChannelId"},{column:"channelId"},{column:"alias"},{column:"nodeId"},{column:"isInitiator",label:"Initiator"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"},{column:"balancedness",label:"Balance Score"}]},peers:{maxColumns:4,allowedColumns:[{column:"alias"},{column:"nodeId"},{column:"address",label:"Netwrok Address"},{column:"channels"}]}},transactions:{payments:{maxColumns:7,allowedColumns:[{column:"firstPartTimestamp",label:"Date/Time"},{column:"id"},{column:"recipientNodeId",label:"Destination Node ID"},{column:"recipientNodeAlias",label:"Destination"},{column:"description"},{column:"paymentHash"},{column:"paymentPreimage",label:"Preimage"},{column:"recipientAmount",label:"Amount"}]},invoices:{maxColumns:7,allowedColumns:[{column:"timestamp",label:"Date Created"},{column:"expiresAt",label:"Date Expiry"},{column:"receivedAt",label:"Date Settled"},{column:"nodeId",label:"Node ID"},{column:"description"},{column:"paymentHash"},{column:"amount"},{column:"amountSettled",label:"Amount Settled"}]}},routing:{forwarding_history:{maxColumns:7,allowedColumns:[{column:"timestamp",label:"Date/Time"},{column:"fromChannelId",label:"In Channel ID"},{column:"fromShortChannelId",label:"In Channel Short ID"},{column:"fromChannelAlias",label:"In Channel"},{column:"toChannelId",label:"Out Channel ID"},{column:"toShortChannelId",label:"Out Channel Short ID"},{column:"toChannelAlias",label:"Out Channel"},{column:"paymentHash"},{column:"amountIn"},{column:"amountOut"},{column:"fee",label:"Fee Earned"}]},routing_peers:{maxColumns:5,allowedColumns:[{column:"channelId"},{column:"alias",label:"Peer Alias"},{column:"events"},{column:"totalAmount",label:"Amount"},{column:"totalFee",label:"Fee"}]}},reports:{routing:{maxColumns:7,allowedColumns:[{column:"timestamp",label:"Date/Time"},{column:"fromChannelId",label:"In Channel ID"},{column:"fromShortChannelId",label:"In Channel Short ID"},{column:"fromChannelAlias",label:"In Channel"},{column:"toChannelId",label:"Out Channel ID"},{column:"toShortChannelId",label:"Out Channel Short ID"},{column:"toChannelAlias",label:"Out Channel"},{column:"paymentHash"},{column:"amountIn"},{column:"amountOut"},{column:"fee",label:"Fee Earned"}]},transactions:{maxColumns:5,allowedColumns:[{column:"date"},{column:"amount_paid"},{column:"num_payments",label:"# Payments"},{column:"amount_received"},{column:"num_invoices",label:"# Invoices"}]}}}},8104:(We,q,m)=>{"use strict";m.d(q,{D:()=>ie});var t=m(529),e=m(1135),_=m(7579),T=m(2843),s=m(9646),y=m(590),h=m(5577),P=m(2722),d=m(4004),w=m(262),C=m(1365),L=m(7731),D=m(1786),H=m(7861),V=m(6523),Y=m(6529),j=m(9828),Q=m(4650),J=m(9653),ee=m(5043),me=m(7009),re=m(6895);let ie=(()=>{var se;class ce{constructor(M,i,a,f,l){this.httpClient=M,this.store=i,this.logger=a,this.snackBar=f,this.titleCasePipe=l,this.APIUrl=L.T5,this.lnImplementation="",this.lnImplementationUpdated=new e.X(null),this.unSubs=[new _.x,new _.x,new _.x,new _.x,new _.x,new _.x,new _.x,new _.x,new _.x,new _.x,new _.x,new _.x,new _.x],this.mapAliases=(v,I)=>(v&&v.length>0?v.forEach((k,x)=>{if(I&&I.length>0)for(let n=0;n{let f=this.APIUrl+"/"+a+L.vv.PAYMENTS_API+"/decode/"+M;return"cln"===a&&(f=this.APIUrl+"/"+a+L.vv.UTILITY_API+"/decode/"+M),this.store.dispatch((0,H.ac)({payload:L.m6.DECODE_PAYMENT})),this.httpClient.get(f).pipe((0,P.R)(this.unSubs[0]),(0,d.U)(l=>(this.store.dispatch((0,H.uO)({payload:L.m6.DECODE_PAYMENT})),l)),(0,w.K)(l=>(i?this.handleErrorWithoutAlert("Decode Payment",L.m6.DECODE_PAYMENT,l):this.handleErrorWithAlert("decodePaymentData",L.m6.DECODE_PAYMENT,"Decode Payment Failed",f,l),(0,T._)(()=>new Error(this.extractErrorMessage(l))))))}))}decodePayments(M){return this.lnImplementationUpdated.pipe((0,y.P)(),(0,h.z)(i=>{let a="",f="";return"ecl"===i?(a=this.APIUrl+"/"+i+L.vv.PAYMENTS_API+"/getsentinfos",f=L.m6.GET_SENT_PAYMENTS):"cln"===i?(a=this.APIUrl+"/"+i+L.vv.UTILITY_API,f=L.m6.DECODE_PAYMENTS):(a=this.APIUrl+"/"+i+L.vv.PAYMENTS_API,f=L.m6.DECODE_PAYMENTS),this.store.dispatch((0,H.ac)({payload:f})),this.httpClient.post(a,{payments:M}).pipe((0,P.R)(this.unSubs[1]),(0,d.U)(l=>(this.store.dispatch((0,H.uO)({payload:f})),l)),(0,w.K)(l=>(this.handleErrorWithAlert("decodePaymentsData",f,f+" Failed",a,l),(0,T._)(()=>new Error(this.extractErrorMessage(l))))))}))}getAliasesFromPubkeys(M,i){return this.lnImplementationUpdated.pipe((0,y.P)(),(0,h.z)(a=>{if(i){const f=(new t.LE).set("pubkeys",M);return this.httpClient.get(this.APIUrl+"/"+a+L.vv.NETWORK_API+"/nodes",{params:f})}return this.httpClient.get(this.APIUrl+"/"+a+L.vv.NETWORK_API+"/node/"+M)}))}signMessage(M){return this.lnImplementationUpdated.pipe((0,y.P)(),(0,h.z)(i=>{let a=this.APIUrl+"/"+i+L.vv.MESSAGE_API+"/sign";return"cln"===i&&(a=this.APIUrl+"/"+i+L.vv.UTILITY_API+"/sign"),this.store.dispatch((0,H.ac)({payload:L.m6.SIGN_MESSAGE})),this.httpClient.post(a,{message:M}).pipe((0,P.R)(this.unSubs[2]),(0,d.U)(f=>(this.store.dispatch((0,H.uO)({payload:L.m6.SIGN_MESSAGE})),f)),(0,w.K)(f=>(this.handleErrorWithAlert("signMessageData",L.m6.SIGN_MESSAGE,"Sign Message Failed",a,f),(0,T._)(()=>new Error(this.extractErrorMessage(f))))))}))}verifyMessage(M,i){return this.lnImplementationUpdated.pipe((0,y.P)(),(0,h.z)(a=>{let f=this.APIUrl+"/"+a+L.vv.MESSAGE_API+"/verify";return"cln"===a&&(f=this.APIUrl+"/"+a+L.vv.UTILITY_API+"/verify"),this.store.dispatch((0,H.ac)({payload:L.m6.VERIFY_MESSAGE})),this.httpClient.post(f,{message:M,signature:i}).pipe((0,P.R)(this.unSubs[3]),(0,d.U)(l=>(this.store.dispatch((0,H.uO)({payload:L.m6.VERIFY_MESSAGE})),l)),(0,w.K)(l=>(this.handleErrorWithAlert("verifyMessageData",L.m6.VERIFY_MESSAGE,"Verify Message Failed",f,l),(0,T._)(()=>new Error(this.extractErrorMessage(l))))))}))}bumpFee(M,i,a,f){return this.lnImplementationUpdated.pipe((0,y.P)(),(0,h.z)(l=>{const v={txid:M,outputIndex:i};return a&&(v.targetConf=a),f&&(v.satPerByte=f),this.store.dispatch((0,H.ac)({payload:L.m6.BUMP_FEE})),this.httpClient.post(this.APIUrl+"/"+l+L.vv.WALLET_API+"/bumpfee",v).pipe((0,P.R)(this.unSubs[4]),(0,d.U)(I=>(this.store.dispatch((0,H.uO)({payload:L.m6.BUMP_FEE})),this.snackBar.open("Successfully bumped the fee. Use the block explorer to verify transaction."),I)),(0,w.K)(I=>(this.handleErrorWithoutAlert("Bump Fee",L.m6.BUMP_FEE,I),(0,T._)(()=>new Error(this.extractErrorMessage(I))))))}))}labelUTXO(M,i,a=!0){return this.lnImplementationUpdated.pipe((0,y.P)(),(0,h.z)(f=>{const l={txid:M,label:i,overwrite:a};return this.store.dispatch((0,H.ac)({payload:L.m6.LABEL_UTXO})),this.httpClient.post(this.APIUrl+"/"+f+L.vv.WALLET_API+"/label",l).pipe((0,P.R)(this.unSubs[5]),(0,d.U)(v=>(this.store.dispatch((0,H.uO)({payload:L.m6.LABEL_UTXO})),v)),(0,w.K)(v=>(this.handleErrorWithoutAlert("Lease UTXO",L.m6.LABEL_UTXO,v),(0,T._)(()=>new Error(this.extractErrorMessage(v))))))}))}leaseUTXO(M,i){return this.lnImplementationUpdated.pipe((0,y.P)(),(0,h.z)(a=>{const f={txid:M,outputIndex:i};return this.store.dispatch((0,H.ac)({payload:L.m6.LEASE_UTXO})),this.httpClient.post(this.APIUrl+"/"+a+L.vv.WALLET_API+"/lease",f).pipe((0,P.R)(this.unSubs[6]),(0,d.U)(l=>{this.store.dispatch((0,H.uO)({payload:L.m6.LEASE_UTXO})),this.store.dispatch((0,V.mC)()),this.store.dispatch((0,V.Ly)());const v=new Date(1e3*l.expiration);return Math.round(v.getTime())-60*v.getTimezoneOffset()}),(0,w.K)(l=>(this.handleErrorWithoutAlert("Lease UTXO",L.m6.LEASE_UTXO,l),(0,T._)(()=>new Error(this.extractErrorMessage(l))))))}))}getForwardingHistory(M,i,a,f){if("LND"===M){const l={end_time:a,start_time:i};return this.store.dispatch((0,H.ac)({payload:L.m6.GET_FORWARDING_HISTORY})),this.httpClient.post(this.APIUrl+"/lnd"+L.vv.SWITCH_API,l).pipe((0,P.R)(this.unSubs[7]),(0,C.M)(this.store.select(Y._f)),(0,h.z)(([v,I])=>{if(v.forwarding_events){const k=[...I.channels,...I.closedChannels];v.forwarding_events.forEach(x=>{if(k&&k.length>0)for(let n=0;n(this.handleErrorWithAlert("getForwardingHistoryData",L.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/lnd"+L.vv.SWITCH_API,v),(0,T._)(()=>new Error(this.extractErrorMessage(v))))))}return"CLN"===M?(this.store.dispatch((0,H.ac)({payload:L.m6.GET_FORWARDING_HISTORY})),this.httpClient.get(this.APIUrl+"/cln"+L.vv.CHANNELS_API+"/listForwards?status="+f).pipe((0,P.R)(this.unSubs[8]),(0,C.M)(this.store.select(j.ZW)),(0,h.z)(([l,v])=>{const I=this.mapAliases(l,[...v.activeChannels,...v.pendingChannels,...v.inactiveChannels]);return this.store.dispatch((0,H.uO)({payload:L.m6.GET_FORWARDING_HISTORY})),(0,s.of)(I)}),(0,w.K)(l=>(this.handleErrorWithAlert("getForwardingHistoryData",L.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/cln"+L.vv.CHANNELS_API+"/listForwards?status="+f+"&start="+i+"&end="+a,l),(0,T._)(()=>new Error(this.extractErrorMessage(l))))))):(0,s.of)({})}listNetworkNodes(M=""){return this.lnImplementationUpdated.pipe((0,y.P)(),(0,h.z)(i=>(this.store.dispatch((0,H.ac)({payload:L.m6.LIST_NETWORK_NODES})),this.httpClient.get(this.APIUrl+"/"+i+L.vv.NETWORK_API+"/listNodes"+M).pipe((0,P.R)(this.unSubs[9]),(0,h.z)(a=>(this.store.dispatch((0,H.uO)({payload:L.m6.LIST_NETWORK_NODES})),(0,s.of)(a))),(0,w.K)(a=>(this.handleErrorWithoutAlert("List Network Nodes",L.m6.LIST_NETWORK_NODES,a),(0,T._)(()=>this.extractErrorMessage(a))))))))}listConfigs(){return this.lnImplementationUpdated.pipe((0,y.P)(),(0,h.z)(M=>(this.store.dispatch((0,H.ac)({payload:L.m6.GET_LIST_CONFIGS})),this.httpClient.get(this.APIUrl+"/"+M+L.vv.UTILITY_API+"/listConfigs").pipe((0,P.R)(this.unSubs[10]),(0,h.z)(i=>(this.store.dispatch((0,H.uO)({payload:L.m6.GET_LIST_CONFIGS})),(0,s.of)(i))),(0,w.K)(i=>(this.handleErrorWithoutAlert("List Configurations",L.m6.GET_LIST_CONFIGS,i),(0,T._)(()=>this.extractErrorMessage(i))))))))}getOrUpdateFunderPolicy(M,i,a,f,l,v){return this.lnImplementationUpdated.pipe((0,y.P)(),(0,h.z)(I=>{const k=M?{policy:M,policy_mod:i,lease_fee_base_msat:a,lease_fee_basis:f,channel_fee_max_base_msat:l,channel_fee_max_proportional_thousandths:v}:null;return this.store.dispatch((0,H.ac)({payload:L.m6.GET_FUNDER_POLICY})),this.httpClient.post(this.APIUrl+"/"+I+L.vv.CHANNELS_API+"/funderUpdate",k).pipe((0,P.R)(this.unSubs[11]),(0,d.U)(x=>(this.store.dispatch((0,H.uO)({payload:L.m6.GET_FUNDER_POLICY})),k&&this.store.dispatch((0,H.jW)({payload:"Funder Policy Updated Successfully with Compact Lease: "+x.compact_lease+"!"})),x)),(0,w.K)(x=>(this.handleErrorWithoutAlert("Funder Policy",L.m6.GET_FUNDER_POLICY,x),(0,T._)(()=>new Error(this.extractErrorMessage(x))))))}))}circularRebalance(M,i="",a="",f="",l="",v=[],I="shortChannelId"){return this.httpClient.post(this.APIUrl+"/"+this.lnImplementation+L.vv.CHANNELS_API+"/circularRebalance",{amountMsat:M,sourceShortChannelId:i,sourceNodeId:a,targetShortChannelId:f,targetNodeId:l,ignoreNodeIds:v,format:I}).pipe((0,P.R)(this.unSubs[12]),(0,d.U)(n=>n),(0,w.K)(n=>(this.handleErrorWithoutAlert("Rebalance Channel",L.m6.REBALANCE_CHANNEL,n),(0,T._)(()=>n.error))))}extractErrorMessage(M,i="Unknown Error."){return this.titleCasePipe.transform(M.error.text&&"string"==typeof M.error.text&&M.error.text.includes('')?"API Route Does Not Exist.":M.error&&M.error.error&&M.error.error.error&&M.error.error.error.error&&M.error.error.error.error.error&&"string"==typeof M.error.error.error.error.error?M.error.error.error.error.error:M.error&&M.error.error&&M.error.error.error&&M.error.error.error.error&&"string"==typeof M.error.error.error.error?M.error.error.error.error:M.error&&M.error.error&&M.error.error.error&&"string"==typeof M.error.error.error?M.error.error.error:M.error&&M.error.error&&"string"==typeof M.error.error?M.error.error:M.error&&"string"==typeof M.error?M.error:M.error&&M.error.error&&M.error.error.error&&M.error.error.error.error&&M.error.error.error.error.message&&"string"==typeof M.error.error.error.error.message?M.error.error.error.error.message:M.error&&M.error.error&&M.error.error.error&&M.error.error.error.message&&"string"==typeof M.error.error.error.message?M.error.error.error.message:M.error&&M.error.error&&M.error.error.message&&"string"==typeof M.error.error.message?M.error.error.message:M.error&&M.error.message&&"string"==typeof M.error.message?M.error.message:M.message&&"string"==typeof M.message?M.message:i)}handleErrorWithoutAlert(M,i,a){a.error.text&&"string"==typeof a.error.text&&a.error.text.includes('')&&(a={status:403,error:{message:"API Route Does Not Exist."}}),this.logger.error("ERROR IN: "+M+"\n"+JSON.stringify(a)),401===a.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,H.ts)()),this.store.dispatch((0,H.kS)()),this.store.dispatch((0,H.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,H.uO)({payload:i})),this.store.dispatch((0,H.qi)({payload:{action:M,status:L.Bn.ERROR,statusCode:a.status.toString(),message:this.extractErrorMessage(a)}})))}handleErrorWithAlert(M,i,a,f,l){if(this.logger.error(l),401===l.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,H.ts)()),this.store.dispatch((0,H.kS)()),this.store.dispatch((0,H.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,H.uO)({payload:i}));const v=this.extractErrorMessage(l);this.store.dispatch((0,H.qR)({payload:{data:{type:"ERROR",alertTitle:a,message:{code:l.status?l.status:"Unknown Error",message:v,URL:f},component:D.H}}})),this.store.dispatch((0,H.qi)({payload:{action:M,status:L.Bn.ERROR,statusCode:l.status.toString(),message:v,URL:f}}))}}ngOnDestroy(){this.unSubs.forEach(M=>{M.next(null),M.complete()})}}return(se=ce).\u0275fac=function(M){return new(M||se)(Q.LFG(t.eN),Q.LFG(J.yh),Q.LFG(ee.mQ),Q.LFG(me.ux),Q.LFG(re.rS))},se.\u0275prov=Q.Yz7({token:se,factory:se.\u0275fac}),ce})()},5043:(We,q,m)=>{"use strict";m.d(q,{LG:()=>y,mQ:()=>s});var t=m(4650);const e=(0,t.X6Q)(),_=()=>null;let s=(()=>{var h;class P{invokeConsoleMethod(w,C){}}return(h=P).\u0275fac=function(w){return new(w||h)},h.\u0275prov=t.Yz7({token:h,factory:h.\u0275fac}),P})(),y=(()=>{var h;class P{get info(){return e?console.log.bind(console):_}get warn(){return e?console.warn.bind(console):_}get error(){return e?console.error.bind(console):_}invokeConsoleMethod(w,C){(console[w]||console.log||_).apply(console,[C])}}return(h=P).\u0275fac=function(w){return new(w||h)},h.\u0275prov=t.Yz7({token:h,factory:h.\u0275fac}),P})()},9107:(We,q,m)=>{"use strict";m.d(q,{W:()=>Y});var t=m(529),e=m(1135),_=m(7579),T=m(9646),s=m(2843),y=m(2722),h=m(262),P=m(4004),d=m(7731),w=m(1786),C=m(7861),L=m(4650),D=m(5043),H=m(9653),V=m(62);let Y=(()=>{var j;class Q{constructor(ee,me,re,ie){this.httpClient=ee,this.logger=me,this.store=re,this.commonService=ie,this.loopUrl="",this.swaps=[],this.swapsChanged=new e.X([]),this.unSubs=[new _.x,new _.x,new _.x,new _.x,new _.x,new _.x,new _.x]}getLoopInfo(){return this.loopUrl=d.T5+d.vv.LOOP_API+"/info",this.httpClient.get(this.loopUrl)}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,C.ac)({payload:d.m6.GET_LOOP_SWAPS})),this.loopUrl=d.T5+d.vv.LOOP_API+"/swaps",this.httpClient.get(this.loopUrl).pipe((0,y.R)(this.unSubs[0])).subscribe({next:ee=>{this.store.dispatch((0,C.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,me,re,ie,se,ce,Ce,M,i,a){const f={amount:ee,targetConf:re,swapRoutingFee:ie,minerFee:se,prepayRoutingFee:ce,prepayAmt:Ce,swapFee:M,swapPublicationDeadline:i,destAddress:a};return""!==me&&(f.chanId=me),this.loopUrl=d.T5+d.vv.LOOP_API+"/out",this.httpClient.post(this.loopUrl,f).pipe((0,h.K)(l=>this.handleErrorWithoutAlert("Loop Out for Channel: "+me,d.m6.NO_SPINNER,l)))}getLoopOutTerms(){return this.loopUrl=d.T5+d.vv.LOOP_API+"/out/terms",this.httpClient.get(this.loopUrl).pipe((0,h.K)(ee=>this.handleErrorWithoutAlert("Loop Out Terms",d.m6.NO_SPINNER,ee)))}getLoopOutQuote(ee,me,re){let ie=new t.LE;return ie=ie.append("targetConf",me.toString()),ie=ie.append("swapPublicationDeadline",re.toString()),this.loopUrl=d.T5+d.vv.LOOP_API+"/out/quote/"+ee,this.store.dispatch((0,C.ac)({payload:d.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:ie}).pipe((0,y.R)(this.unSubs[1]),(0,P.U)(se=>(this.store.dispatch((0,C.uO)({payload:d.m6.GET_QUOTE})),se)),(0,h.K)(se=>this.handleErrorWithoutAlert("Loop Out Quote",d.m6.GET_QUOTE,se)))}getLoopOutTermsAndQuotes(ee){let me=new t.LE;return me=me.append("targetConf",ee.toString()),me=me.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=d.T5+d.vv.LOOP_API+"/out/termsAndQuotes",this.store.dispatch((0,C.ac)({payload:d.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:me}).pipe((0,y.R)(this.unSubs[2]),(0,P.U)(re=>(this.store.dispatch((0,C.uO)({payload:d.m6.GET_TERMS_QUOTES})),re)),(0,h.K)(re=>(0,T.of)(this.handleErrorWithAlert(d.m6.GET_TERMS_QUOTES,this.loopUrl,re))))}loopIn(ee,me,re,ie,se){const ce={amount:ee,swapFee:me,minerFee:re,lastHop:ie,externalHtlc:se};return this.loopUrl=d.T5+d.vv.LOOP_API+"/in",this.httpClient.post(this.loopUrl,ce).pipe((0,h.K)(Ce=>this.handleErrorWithoutAlert("Loop In",d.m6.NO_SPINNER,Ce)))}getLoopInTerms(){return this.loopUrl=d.T5+d.vv.LOOP_API+"/in/terms",this.httpClient.get(this.loopUrl).pipe((0,h.K)(ee=>this.handleErrorWithoutAlert("Loop In Terms",d.m6.NO_SPINNER,ee)))}getLoopInQuote(ee,me,re){let ie=new t.LE;return ie=ie.append("targetConf",me.toString()),ie=ie.append("swapPublicationDeadline",re.toString()),this.loopUrl=d.T5+d.vv.LOOP_API+"/in/quote/"+ee,this.store.dispatch((0,C.ac)({payload:d.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:ie}).pipe((0,y.R)(this.unSubs[3]),(0,P.U)(se=>(this.store.dispatch((0,C.uO)({payload:d.m6.GET_QUOTE})),se)),(0,h.K)(se=>this.handleErrorWithoutAlert("Loop In Qoute",d.m6.GET_QUOTE,se)))}getLoopInTermsAndQuotes(ee){let me=new t.LE;return me=me.append("targetConf",ee.toString()),me=me.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=d.T5+d.vv.LOOP_API+"/in/termsAndQuotes",this.store.dispatch((0,C.ac)({payload:d.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:me}).pipe((0,y.R)(this.unSubs[4]),(0,P.U)(re=>(this.store.dispatch((0,C.uO)({payload:d.m6.GET_TERMS_QUOTES})),re)),(0,h.K)(re=>(0,T.of)(this.handleErrorWithAlert(d.m6.GET_TERMS_QUOTES,this.loopUrl,re))))}getSwap(ee){return this.loopUrl=d.T5+d.vv.LOOP_API+"/swap/"+ee,this.httpClient.get(this.loopUrl).pipe((0,h.K)(me=>this.handleErrorWithoutAlert("Loop Get Swap for ID: "+ee,d.m6.NO_SPINNER,me)))}handleErrorWithoutAlert(ee,me,re){let ie="";return this.logger.error("ERROR IN: "+ee+"\n"+JSON.stringify(re)),this.store.dispatch((0,C.uO)({payload:me})),401===re.status?(ie="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,C.kS)())):503===re.status?(ie="Unable to Connect to Loop Server.",this.store.dispatch((0,C.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:re.status,message:"Unable to Connect to Loop Server",URL:ee},component:w.H}}}))):ie=this.commonService.extractErrorMessage(re),(0,s._)(()=>new Error(ie))}handleErrorWithAlert(ee,me,re){let ie="";if(this.logger.error(re),this.store.dispatch((0,C.uO)({payload:ee})),401===re.status)ie="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,C.kS)());else if(503===re.status)ie="Unable to Connect to Loop Server.",setTimeout(()=>{this.store.dispatch((0,C.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:re.status,message:"Unable to Connect to Loop Server",URL:me},component:w.H}}}))},100);else{ie=this.commonService.extractErrorMessage(re);const se=re.error&&re.error.error&&re.error.error.code?re.error.error.code:re.error&&re.error.code?re.error.code:re.code?re.code:re.status;setTimeout(()=>{this.store.dispatch((0,C.qR)({payload:{data:{type:d.n_.ERROR,alertTitle:"ERROR",message:{code:se,message:ie,URL:me},component:w.H}}}))},100)}return{message:ie}}ngOnDestroy(){this.unSubs.forEach(ee=>{ee.next(null),ee.complete()})}}return(j=Q).\u0275fac=function(ee){return new(ee||j)(L.LFG(t.eN),L.LFG(D.mQ),L.LFG(H.yh),L.LFG(V.v))},j.\u0275prov=L.Yz7({token:j,factory:j.\u0275fac}),Q})()},5986:(We,q,m)=>{"use strict";m.d(q,{m:()=>_});var t=m(7579),e=m(4650);let _=(()=>{var T;class s{constructor(){this.sessionSub=new t.x}watchSession(){return this.sessionSub.asObservable()}getItem(h){return sessionStorage.getItem(h)}getAllItems(){return sessionStorage}setItem(h,P){sessionStorage.setItem(h,P),this.sessionSub.next(sessionStorage)}removeItem(h){sessionStorage.removeItem(h),this.sessionSub.next(sessionStorage)}clearAll(){sessionStorage.clear(),this.sessionSub.next(sessionStorage)}}return(T=s).\u0275fac=function(h){return new(h||T)},T.\u0275prov=e.Yz7({token:T,factory:T.\u0275fac}),s})()},7998:(We,q,m)=>{"use strict";m.d(q,{d:()=>H});var t=m(1135),e=m(7579),_=m(2722),T=m(930),s=m(9751),y=m(727),h=m(4707);const P={url:"",deserializer:V=>JSON.parse(V.data),serializer:V=>JSON.stringify(V)};class w extends e.u{constructor(Y,j){if(super(),this._socket=null,Y instanceof s.y)this.destination=j,this.source=Y;else{const Q=this._config=Object.assign({},P);if(this._output=new e.x,"string"==typeof Y)Q.url=Y;else for(const J in Y)Y.hasOwnProperty(J)&&(Q[J]=Y[J]);if(!Q.WebSocketCtor&&WebSocket)Q.WebSocketCtor=WebSocket;else if(!Q.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new h.t}}lift(Y){const j=new w(this._config,this.destination);return j.operator=Y,j.source=this,j}_resetState(){this._socket=null,this.source||(this.destination=new h.t),this._output=new e.x}multiplex(Y,j,Q){const J=this;return new s.y(ee=>{try{J.next(Y())}catch(re){ee.error(re)}const me=J.subscribe({next:re=>{try{Q(re)&&ee.next(re)}catch(ie){ee.error(ie)}},error:re=>ee.error(re),complete:()=>ee.complete()});return()=>{try{J.next(j())}catch(re){ee.error(re)}me.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:Y,protocol:j,url:Q,binaryType:J}=this._config,ee=this._output;let me=null;try{me=j?new Y(Q,j):new Y(Q),this._socket=me,J&&(this._socket.binaryType=J)}catch(ie){return void ee.error(ie)}const re=new y.w0(()=>{this._socket=null,me&&1===me.readyState&&me.close()});me.onopen=ie=>{const{_socket:se}=this;if(!se)return me.close(),void this._resetState();const{openObserver:ce}=this._config;ce&&ce.next(ie);const Ce=this.destination;this.destination=T.Lv.create(M=>{if(1===me.readyState)try{const{serializer:i}=this._config;me.send(i(M))}catch(i){this.destination.error(i)}},M=>{const{closingObserver:i}=this._config;i&&i.next(void 0),M&&M.code?me.close(M.code,M.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:M}=this._config;M&&M.next(void 0),me.close(),this._resetState()}),Ce&&Ce instanceof h.t&&re.add(Ce.subscribe(this.destination))},me.onerror=ie=>{this._resetState(),ee.error(ie)},me.onclose=ie=>{me===this._socket&&this._resetState();const{closeObserver:se}=this._config;se&&se.next(ie),ie.wasClean?ee.complete():ee.error(ie)},me.onmessage=ie=>{try{const{deserializer:se}=this._config;ee.next(se(ie))}catch(se){ee.error(se)}}}_subscribe(Y){const{source:j}=this;return j?j.subscribe(Y):(this._socket||this._connectSocket(),this._output.subscribe(Y),Y.add(()=>{const{_socket:Q}=this;0===this._output.observers.length&&(Q&&(1===Q.readyState||0===Q.readyState)&&Q.close(),this._resetState())}),Y)}unsubscribe(){const{_socket:Y}=this;Y&&(1===Y.readyState||0===Y.readyState)&&Y.close(),this._resetState(),super.unsubscribe()}}var C=m(4650),L=m(5043),D=m(5986);let H=(()=>{var V;class Y{constructor(Q,J){this.logger=Q,this.sessionService=J,this.clWSMessages=new t.X(null),this.eclWSMessages=new t.X(null),this.lndWSMessages=new t.X(null),this.wsUrl="",this.nodeIndex="",this.RETRY_SECONDS=5,this.RECONNECT_TIMEOUT=null,this.unSubs=[new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x]}connectWebSocket(Q,J){(!this.socket||this.socket.closed)&&(this.wsUrl=Q,this.nodeIndex=J,this.logger.info("Websocket Url: "+this.wsUrl),this.socket=new w({url:Q,protocol:[this.sessionService.getItem("token")||"",J]}),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,_.R)(this.unSubs[1])).subscribe({next:Q=>{if((Q="string"==typeof Q?JSON.parse(Q):Q).error)this.handleError(Q.error);else switch(this.logger.info("Next Message from WS:"+JSON.stringify(Q)),Q.source){case"LND":this.lndWSMessages.next(Q);break;case"CLN":this.clWSMessages.next(Q);break;case"ECL":this.eclWSMessages.next(Q)}},error:Q=>this.handleError(Q),complete:()=>{this.logger.info("Web Socket Closed")}})}handleError(Q){this.logger.error(Q),this.clWSMessages.error(Q),this.eclWSMessages.error(Q),this.lndWSMessages.error(Q),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(V=Y).\u0275fac=function(Q){return new(Q||V)(C.LFG(L.mQ),C.LFG(D.m))},V.\u0275prov=C.Yz7({token:V,factory:V.\u0275fac}),Y})()},9470:(We,q,m)=>{"use strict";m.d(q,{m:()=>Ro});var t=m(6895),e=m(9116),_=m(4006),T=m(529),s=m(2216),y=m(4650),h=m(2233),P=m(5829),d=m(1576);m(1281);let wt=(()=>{class Ft{}return Ft.\u0275fac=function(Ct){return new(Ct||Ft)},Ft.\u0275mod=y.oAB({type:Ft}),Ft.\u0275inj=y.cJS({imports:[h.IR]}),Ft})(),si=(()=>{class Ft{constructor(Ct,ai){(0,t.PM)(ai)&&!Ct&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(Ct,ai=[]){return{ngModule:Ft,providers:Ct.serverLoaded?[{provide:h.WU,useValue:{...h.g5,...Ct}},{provide:h.Bs,useValue:ai,multi:!0},{provide:h.wY,useValue:!0}]:[{provide:h.WU,useValue:{...h.g5,...Ct}},{provide:h.Bs,useValue:ai,multi:!0}]}}}return Ft.\u0275fac=function(Ct){return new(Ct||Ft)(y.LFG(h.wY),y.LFG(y.Lbi))},Ft.\u0275mod=y.oAB({type:Ft}),Ft.\u0275inj=y.cJS({imports:[d.ae,P.aT,wt,d.ae,P.aT,wt]}),Ft})();var Ai=m(2289),Oi=m(3238),Qi=m(5412),en=m(7957),Yi=m(2673),Yt=m(4859);m(4761),m(5017);let Dn=(()=>{class Ft{}return Ft.\u0275fac=function(Ct){return new(Ct||Ft)},Ft.\u0275mod=y.oAB({type:Ft}),Ft.\u0275inj=y.cJS({imports:[Oi.BQ,Oi.si,Oi.BQ]}),Ft})();var oa=m(3546),Ea=m(6709),ta=m(9602),er=m(752),Jt=m(782),pi=m(7392),Kt=m(4144),ri=m(6338),xi=m(8255),Hi=m(8739),ln=m(3162),Gn=m(1572),Hn=m(1948),_a=m(4385),Tn=m(3267),Vn=m(455);m(7579);let Fr=(()=>{class Ft{}return Ft.\u0275fac=function(Ct){return new(Ct||Ft)},Ft.\u0275mod=y.oAB({type:Ft}),Ft.\u0275inj=y.cJS({imports:[Oi.BQ,t.ez,Oi.si]}),Ft})();var Wa=m(7009),Hr=m(6308),sa=m(8425),za=m(671),sr=m(3848),gr=m(3683),Cr=m(266),Oo=m(5423),oo=m(7331),Qr=m(3803),qr=m(658),cr=m(6839),Po=m(8184),wo=m(3353);let Va=(()=>{var Ft;class hi extends Po.Xj{constructor(ai,Ii){super(ai,Ii)}_createContainer(){super._createContainer(),this._containerElement&&(document.querySelector("#rtl-container")||document.body).appendChild(this._containerElement)}ngOnDestroy(){super.ngOnDestroy()}}return(Ft=hi).\u0275fac=function(ai){return new(ai||Ft)(y.Y36(t.K0),y.Y36(wo.t4))},Ft.\u0275dir=y.lG2({type:Ft,features:[y.qOj]}),hi})();var wr=m(5043),Qn=m(7731),On=m(9445);const lr={suppressScrollX:!1,suppressScrollY:!1};let Mr=(()=>{var Ft;class hi extends Oi.LF{constructor(ai,Ii){super(ai,Ii)}format(ai,Ii){if("input"===Ii){let nn=ai.getDate().toString();return nn=+nn<10?"0"+nn:nn,nn+"/"+Qn.gg[ai.getMonth()].name.toUpperCase()+"/"+ai.getFullYear()}return Qn.gg[ai.getMonth()].name.toUpperCase()+" "+ai.getFullYear()}}return(Ft=hi).\u0275fac=function(ai){return new(ai||Ft)(y.LFG(Oi.Ad,8),y.LFG(wo.t4))},Ft.\u0275prov=y.Yz7({token:Ft,factory:Ft.\u0275fac}),hi})();const ya={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 Ro=(()=>{var Ft;class hi{}return(Ft=hi).\u0275fac=function(ai){return new(ai||Ft)},Ft.\u0275mod=y.oAB({type:Ft}),Ft.\u0275inj=y.cJS({providers:[{provide:wr.mQ,useClass:wr.LG},{provide:cr.op,useValue:lr},{provide:Wa.Ve,useValue:{duration:2e3,verticalPosition:"bottom",panelClass:"rtl-snack-bar"}},{provide:Qi.Bq,useValue:{hasBackdrop:!0,autoFocus:!0,disableClose:!0,role:"dialog"}},{provide:Oi._A,useClass:Mr},{provide:Oi.sG,useValue:ya},{provide:Po.Xj,useClass:Va},t.JJ,t.rS,t.uU,On.al,On.h9,On.D3,On.i1],imports:[t.ez,_.u5,_.UX,s.uH,si,Ai.xu,Qi.Is,Yt.ot,Dn,oa.QW,Ea.p9,er.To,Jt.N6,ta.FA,Oi.XK,pi.Ps,Kt.c,ri.ie,xi.Tx,ln.Cv,Gn.Cq,Hn.Fk,Oo.dp,oo.Hi,_a.LD,Tn.SJ,Vn.rP,Hr.JX,za.p0,gr.g0,Cr.AV,Yi.g,Hi.TU,sa.T5,Fr,sr.Nh,Wa.ZX,en.Bb,Qr.a4,qr.OF,e.Bz,T.JF,cr.Xd,_.u5,_.UX,s.uH,si,Ai.xu,Qi.Is,Yt.ot,Dn,oa.QW,Ea.p9,er.To,Jt.N6,ta.FA,Oi.XK,pi.Ps,Kt.c,ri.ie,xi.Tx,ln.Cv,Gn.Cq,Hn.Fk,Oo.dp,oo.Hi,_a.LD,Tn.SJ,Vn.rP,Hr.JX,za.p0,gr.g0,Cr.AV,Yi.g,Hi.TU,sa.T5,Fr,sr.Nh,Wa.ZX,en.Bb,Qr.a4,qr.OF,cr.Xd]}),hi})()},7861:(We,q,m)=>{"use strict";m.d(q,{M6:()=>C,Q2:()=>V,QO:()=>l,Tm:()=>se,Uy:()=>re,XT:()=>ee,_V:()=>Ce,ac:()=>P,c0:()=>a,c1:()=>L,dc:()=>x,ey:()=>J,fk:()=>ie,jS:()=>ce,jW:()=>h,kS:()=>i,lC:()=>T,qR:()=>w,qi:()=>s,tj:()=>H,ts:()=>y,tw:()=>j,uO:()=>d,vI:()=>Q,x4:()=>I,yb:()=>D,zQ:()=>me});var t=m(9653),e=m(7731);(0,t.PH)(e.pg.VOID);const T=(0,t.PH)(e.pg.SET_API_URL_ECL,(0,t.Ky)()),s=(0,t.PH)(e.pg.UPDATE_API_CALL_STATUS_ROOT,(0,t.Ky)()),y=(0,t.PH)(e.pg.CLOSE_ALL_DIALOGS),h=(0,t.PH)(e.pg.OPEN_SNACK_BAR,(0,t.Ky)()),P=(0,t.PH)(e.pg.OPEN_SPINNER,(0,t.Ky)()),d=(0,t.PH)(e.pg.CLOSE_SPINNER,(0,t.Ky)()),w=(0,t.PH)(e.pg.OPEN_ALERT,(0,t.Ky)()),C=(0,t.PH)(e.pg.CLOSE_ALERT,(0,t.Ky)()),L=(0,t.PH)(e.pg.OPEN_CONFIRMATION,(0,t.Ky)()),D=(0,t.PH)(e.pg.CLOSE_CONFIRMATION,(0,t.Ky)()),H=(0,t.PH)(e.pg.SHOW_PUBKEY),V=(0,t.PH)(e.pg.FETCH_CONFIG,(0,t.Ky)()),j=((0,t.PH)(e.pg.SHOW_CONFIG,(0,t.Ky)()),(0,t.PH)(e.pg.UPDATE_SELECTED_NODE_OPTIONS)),Q=(0,t.PH)(e.pg.RESET_ROOT_STORE,(0,t.Ky)()),J=(0,t.PH)(e.pg.FETCH_RTL_CONFIG),ee=(0,t.PH)(e.pg.SET_RTL_CONFIG,(0,t.Ky)()),me=(0,t.PH)(e.pg.SAVE_SETTINGS,(0,t.Ky)()),re=(0,t.PH)(e.pg.TWO_FA_SAVE_SETTINGS,(0,t.Ky)()),ie=(0,t.PH)(e.pg.SET_SELECTED_NODE,(0,t.Ky)()),se=(0,t.PH)(e.pg.UPDATE_ROOT_NODE_SETTINGS,(0,t.Ky)()),ce=(0,t.PH)(e.pg.UPDATE_SERVICE_SETTINGS,(0,t.Ky)()),Ce=(0,t.PH)(e.pg.SET_NODE_DATA,(0,t.Ky)()),i=((0,t.PH)(e.pg.SAVE_SSO,(0,t.Ky)()),(0,t.PH)(e.pg.LOGOUT)),a=(0,t.PH)(e.pg.RESET_PASSWORD,(0,t.Ky)()),l=((0,t.PH)(e.pg.RESET_PASSWORD_RES,(0,t.Ky)()),(0,t.PH)(e.pg.IS_AUTHORIZED,(0,t.Ky)())),I=((0,t.PH)(e.pg.IS_AUTHORIZED_RES,(0,t.Ky)()),(0,t.PH)(e.pg.LOGIN,(0,t.Ky)())),x=((0,t.PH)(e.pg.VERIFY_TWO_FA,(0,t.Ky)()),(0,t.PH)(e.pg.FETCH_FILE,(0,t.Ky)()));(0,t.PH)(e.pg.SHOW_FILE,(0,t.Ky)())},3093:(We,q,m)=>{"use strict";m.d(q,{V:()=>Bt});var t=m(4650),e=m(493),_=m(7579),T=m(9646),s=m(9751),y=m(4128),h=m(4004),P=m(5698),d=m(1365),w=m(5577),C=m(262),L=m(2722),D=m(7731),H=m(5412),V=m(1576),Y=m(1572);let j=(()=>{var Ot;class vi{constructor(mi,gi){this.dialogRef=mi,this.data=gi}}return(Ot=vi).\u0275fac=function(mi){return new(mi||Ot)(t.Y36(H.so),t.Y36(H.WI))},Ot.\u0275cmp=t.Xpm({type:Ot,selectors:[["rtl-spinner-dialog"]],decls:4,vars:1,consts:[["fxLayout","column","fxLayoutAlign","center center",1,"spinner-container"],["color","primary","mode","indeterminate",1,"modal-spinner-message"]],template:function(mi,gi){1&mi&&(t.TgZ(0,"div",0),t._UZ(1,"mat-progress-spinner",1),t.TgZ(2,"h2"),t._uU(3),t.qZA()()),2&mi&&(t.xp6(3),t.Oqu(gi.data.titleMessage))},dependencies:[V.xw,V.Wh,Y.Ou],styles:["h2[_ngcontent-%COMP%]{text-align:center}"]}),vi})();var Q=m(5043),J=m(7009),ee=m(62),me=m(9116),re=m(6895),ie=m(5829),se=m(4859),ce=m(3546),Ce=m(7392),M=m(4850),i=m(266),a=m(658),f=m(6839),l=m(5199),v=m(3390);const I=["scrollContainer"];function k(Ot,vi){if(1&Ot&&t._UZ(0,"qr-code",15),2&Ot){const li=t.oxw();t.Q6J("value",li.showQRField)("size",200)("errorCorrectionLevel","L")}}function x(Ot,vi){1&Ot&&t.GkF(0)}const n=function(Ot){return{"h-40":Ot}};function g(Ot,vi){if(1&Ot&&(t.ynx(0),t.TgZ(1,"mat-card-content",16,17),t.YNc(3,x,1,0,"ng-container",18),t.qZA(),t.BQk()),2&Ot){const li=t.oxw(),mi=t.MAs(20);t.xp6(1),t.Q6J("ngClass",t.VKq(2,n,li.data.scrollable)),t.xp6(2),t.Q6J("ngTemplateOutlet",mi)}}function W(Ot,vi){1&Ot&&t.GkF(0)}function O(Ot,vi){if(1&Ot&&(t.ynx(0),t.TgZ(1,"mat-card-content",19),t.YNc(2,W,1,0,"ng-container",18),t.qZA(),t.BQk()),2&Ot){t.oxw();const li=t.MAs(20);t.xp6(2),t.Q6J("ngTemplateOutlet",li)}}function G(Ot,vi){1&Ot&&(t.TgZ(0,"mat-icon",23),t._uU(1,"arrow_downward"),t.qZA())}function ge(Ot,vi){1&Ot&&(t.TgZ(0,"mat-icon",23),t._uU(1,"arrow_upward"),t.qZA())}function nt(Ot,vi){if(1&Ot){const li=t.EpF();t.TgZ(0,"div",20)(1,"button",21),t.NdJ("click",function(){t.CHM(li);const gi=t.oxw();return t.KtG(gi.onScroll())}),t.YNc(2,G,2,0,"mat-icon",22),t.YNc(3,ge,2,0,"mat-icon",22),t.qZA()()}if(2&Ot){const li=t.oxw();t.xp6(2),t.Q6J("ngIf","DOWN"===li.scrollDirection),t.xp6(1),t.Q6J("ngIf","UP"===li.scrollDirection)}}function Ue(Ot,vi){1&Ot&&(t.TgZ(0,"button",24),t._uU(1,"OK"),t.qZA()),2&Ot&&t.Q6J("mat-dialog-close",!1)}function at(Ot,vi){1&Ot&&(t.TgZ(0,"button",25),t._uU(1,"Close"),t.qZA()),2&Ot&&t.Q6J("mat-dialog-close",!1)}function ye(Ot,vi){if(1&Ot){const li=t.EpF();t.TgZ(0,"button",26),t.NdJ("copied",function(gi){t.CHM(li);const Ui=t.oxw();return t.KtG(Ui.onCopyField(gi))}),t._uU(1),t.qZA()}if(2&Ot){const li=t.oxw();t.Q6J("payload",li.showCopyField),t.xp6(1),t.hij("Copy ",li.showCopyName,"")}}function xe(Ot,vi){1&Ot&&(t.TgZ(0,"button",25),t._uU(1,"Close"),t.qZA()),2&Ot&&t.Q6J("mat-dialog-close",!1)}function fe(Ot,vi){if(1&Ot){const li=t.EpF();t.TgZ(0,"button",26),t.NdJ("copied",function(gi){t.CHM(li);const Ui=t.oxw();return t.KtG(Ui.onCopyField(gi))}),t._uU(1),t.qZA()}if(2&Ot){const li=t.oxw();t.Q6J("payload",li.showQRField),t.xp6(1),t.hij("Copy ",li.showQRName,"")}}function Oe(Ot,vi){if(1&Ot&&t._UZ(0,"qr-code",15),2&Ot){const li=t.oxw(2);t.Q6J("value",li.showQRField)("size",200)("errorCorrectionLevel","L")}}function oe(Ot,vi){if(1&Ot&&(t.TgZ(0,"p",32),t._uU(1),t.qZA()),2&Ot){const li=t.oxw(2);t.xp6(1),t.Oqu(li.data.titleMessage)}}function Fe(Ot,vi){1&Ot&&t._UZ(0,"span",46),2&Ot&&t.Q6J("innerHTML",vi.$implicit,t.oJD)}function De(Ot,vi){if(1&Ot&&(t.ynx(0),t.YNc(1,Fe,1,1,"span",45),t.BQk()),2&Ot){const li=t.oxw(2).$implicit;t.xp6(1),t.Q6J("ngForOf",li.value)}}function he(Ot,vi){if(1&Ot&&(t.ynx(0),t._uU(1),t.ALo(2,"date"),t.BQk()),2&Ot){const li=t.oxw(2).$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*li.value,"dd/MMM/y HH:mm"))}}function Me(Ot,vi){if(1&Ot&&(t.ynx(0),t._uU(1),t.ALo(2,"number"),t.BQk()),2&Ot){const li=t.oxw(2).$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,li.value,li.digitsInfo?li.digitsInfo:"1.0-3"))}}function pe(Ot,vi){if(1&Ot&&(t.ynx(0),t._uU(1),t.BQk()),2&Ot){const li=t.oxw(2).$implicit;t.xp6(1),t.Oqu(li.value?"True":"False")}}function Ve(Ot,vi){1&Ot&&(t.TgZ(0,"mat-icon",51),t._uU(1,"info"),t.qZA())}const Qe=function(Ot){return{"failed-status":Ot}};function Pe(Ot,vi){if(1&Ot&&(t.TgZ(0,"p",49),t._uU(1),t.YNc(2,Ve,2,0,"mat-icon",50),t.qZA()),2&Ot){const li=t.oxw(3).$implicit,mi=t.oxw(4);t.Q6J("ngClass",t.VKq(3,Qe,li.value===mi.LoopStateEnum.FAILED)),t.xp6(1),t.hij(" ",li.value," "),t.xp6(1),t.Q6J("ngIf",li.value===mi.LoopStateEnum.FAILED)}}function de(Ot,vi){if(1&Ot){const li=t.EpF();t.TgZ(0,"p",54),t.NdJ("click",function(){t.CHM(li);const gi=t.oxw(8);return t.KtG(gi.onGoToLink())}),t._uU(1),t.qZA()}if(2&Ot){const li=t.oxw(4).$implicit,mi=t.oxw(4);t.s9C("matTooltip","Go To "+mi.goToName),t.xp6(1),t.hij(" ",li.value," ")}}function rt(Ot,vi){if(1&Ot&&t._uU(0),2&Ot){const li=t.oxw(4).$implicit;t.hij(" ",li.value," ")}}function Ke(Ot,vi){if(1&Ot&&(t.YNc(0,de,2,2,"p",52),t.YNc(1,rt,1,1,"ng-template",null,53,t.W1O)),2&Ot){const li=t.MAs(2),mi=t.oxw(3).$implicit,gi=t.oxw(4);t.Q6J("ngIf",mi.value===gi.goToFieldValue)("ngIfElse",li)}}function lt(Ot,vi){if(1&Ot&&(t.ynx(0),t.YNc(1,Pe,3,5,"p",47),t.YNc(2,Ke,3,2,"ng-template",null,48,t.W1O),t.BQk()),2&Ot){const li=t.MAs(3),mi=t.oxw(2).$implicit,gi=t.oxw(4);t.xp6(1),t.Q6J("ngIf","SWAP"===gi.data.openedBy&&"state"===mi.key)("ngIfElse",li)}}function Ut(Ot,vi){if(1&Ot&&(t.TgZ(0,"span")(1,"span",42),t.YNc(2,De,2,1,"ng-container",43),t.YNc(3,he,3,4,"ng-container",43),t.YNc(4,Me,3,4,"ng-container",43),t.YNc(5,pe,2,1,"ng-container",43),t.YNc(6,lt,4,2,"ng-container",44),t.qZA()()),2&Ot){const li=t.oxw().$implicit,mi=t.oxw(4);t.xp6(1),t.Q6J("ngSwitch",li.type),t.xp6(1),t.Q6J("ngSwitchCase",mi.dataTypeEnum.ARRAY),t.xp6(1),t.Q6J("ngSwitchCase",mi.dataTypeEnum.DATE_TIME),t.xp6(1),t.Q6J("ngSwitchCase",mi.dataTypeEnum.NUMBER),t.xp6(1),t.Q6J("ngSwitchCase",mi.dataTypeEnum.BOOLEAN)}}function ht(Ot,vi){1&Ot&&(t.TgZ(0,"span",55),t._uU(1,"\xa0"),t.qZA())}function Ge(Ot,vi){if(1&Ot&&(t.TgZ(0,"div",37)(1,"h4",38),t._uU(2),t.qZA(),t.YNc(3,Ut,7,5,"span",39),t.YNc(4,ht,2,0,"ng-template",null,40,t.W1O),t._UZ(6,"mat-divider",41),t.qZA()),2&Ot){const li=vi.$implicit,mi=t.MAs(5);t.s9C("fxFlex.gt-md",li.width),t.xp6(2),t.Oqu(li.title),t.xp6(1),t.Q6J("ngIf",li&&(!!li.value||0===li.value))("ngIfElse",mi)}}function yt(Ot,vi){if(1&Ot&&(t.TgZ(0,"div")(1,"div",35),t.YNc(2,Ge,7,4,"div",36),t.qZA()()),2&Ot){const li=vi.$implicit;t.xp6(2),t.Q6J("ngForOf",li)}}function be(Ot,vi){if(1&Ot&&(t.TgZ(0,"div",33),t.YNc(1,yt,3,1,"div",34),t.qZA()),2&Ot){const li=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",li.messageObjs)}}const qe=function(Ot){return{"display-none":Ot}};function Ie(Ot,vi){if(1&Ot&&(t.TgZ(0,"div",27)(1,"div",28),t.YNc(2,Oe,1,3,"qr-code",2),t.qZA(),t.TgZ(3,"div",29),t.YNc(4,oe,2,1,"p",30),t.YNc(5,be,2,1,"div",31),t.qZA()()),2&Ot){const li=t.oxw();t.xp6(1),t.Q6J("ngClass",t.VKq(4,qe,""===li.showQRField||li.screenSize!==li.screenSizeEnum.XS&&li.screenSize!==li.screenSizeEnum.SM)),t.xp6(1),t.Q6J("ngIf",""!==li.showQRField),t.xp6(2),t.Q6J("ngIf",li.data.titleMessage),t.xp6(1),t.Q6J("ngIf",(null==li.messageObjs?null:li.messageObjs.length)>0)}}let X=(()=>{var Ot;class vi{constructor(mi,gi,Ui,Un,Dn,oa,Ea){this.dialogRef=mi,this.data=gi,this.logger=Ui,this.snackBar=Un,this.commonService=Dn,this.renderer=oa,this.router=Ea,this.LoopStateEnum=D.Fq,this.goToFieldValue="",this.goToName="",this.goToLink="",this.showQRField="",this.showQRName="",this.showCopyName="",this.showCopyField="",this.errorMessage="",this.messageObjs=[],this.alertTypeEnum=D.n_,this.dataTypeEnum=D.Gi,this.screenSize="",this.screenSizeEnum=D.cu,this.scrollDirection="DOWN",this.shouldScroll=!0}set container(mi){mi&&(this.scrollContainer=mi,this.scrollContainer&&this.scrollContainer.nativeElement&&(this.unlistenEnd=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-end",gi=>{this.scrollDirection="UP"}),this.unlistenStart=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-start",gi=>{this.scrollDirection="DOWN"})))}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.messageObjs=this.data.message||[],this.goToFieldValue=this.data.goToFieldValue?this.data.goToFieldValue:"",this.goToName=this.data.goToName?this.data.goToName:"",this.goToLink=this.data.goToLink?this.data.goToLink:"",this.showQRField=this.data.showQRField?this.data.showQRField:"",this.showQRName=this.data.showQRName?this.data.showQRName:"",this.showCopyName=this.data.showCopyName?this.data.showCopyName:"",this.showCopyField=this.data.showCopyField?this.data.showCopyField:"",this.data.type===D.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(mi){this.snackBar.open((this.showQRName?this.showQRName:this.showCopyName)+" copied."),this.logger.info("Copied Text: "+mi)}onClose(){this.dialogRef.close(!1)}onGoToLink(){this.router.navigateByUrl(this.goToLink,{state:{lookupType:"0",lookupValue:this.goToFieldValue}}),this.onClose()}ngOnDestroy(){this.unlistenStart&&this.unlistenStart(),this.unlistenEnd&&this.unlistenEnd()}}return(Ot=vi).\u0275fac=function(mi){return new(mi||Ot)(t.Y36(H.so),t.Y36(H.WI),t.Y36(Q.mQ),t.Y36(J.ux),t.Y36(ee.v),t.Y36(t.Qsj),t.Y36(me.F0))},Ot.\u0275cmp=t.Xpm({type:Ot,selectors:[["rtl-alert-message"]],viewQuery:function(mi,gi){if(1&mi&&t.Gf(I,5),2&mi){let Ui;t.iGM(Ui=t.CRH())&&(gi.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 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"],["fxLayout","row","class","go-to-link",3,"matTooltip","click",4,"ngIf","ngIfElse"],["noStyleChild",""],["fxLayout","row",1,"go-to-link",3,"matTooltip","click"],["fxFlex","100",1,"foreground-secondary-text"]],template:function(mi,gi){1&mi&&(t.TgZ(0,"div",0)(1,"div",1),t.YNc(2,k,1,3,"qr-code",2),t.qZA(),t.TgZ(3,"div",3)(4,"mat-card-header",4)(5,"div",5)(6,"span",6),t._uU(7),t.qZA()(),t.TgZ(8,"button",7),t.NdJ("click",function(){return gi.onClose()}),t._uU(9,"X"),t.qZA()(),t.YNc(10,g,4,4,"ng-container",8),t.YNc(11,O,3,1,"ng-container",8),t.YNc(12,nt,4,2,"div",9),t.TgZ(13,"div",10),t.YNc(14,Ue,2,1,"button",11),t.YNc(15,at,2,1,"button",12),t.YNc(16,ye,2,2,"button",13),t.YNc(17,xe,2,1,"button",12),t.YNc(18,fe,2,2,"button",13),t.qZA()()(),t.YNc(19,Ie,6,6,"ng-template",null,14,t.W1O)),2&mi&&(t.xp6(1),t.Q6J("ngClass",t.VKq(12,qe,""===gi.showQRField||gi.screenSize===gi.screenSizeEnum.XS||gi.screenSize===gi.screenSizeEnum.SM)),t.xp6(1),t.Q6J("ngIf",""!==gi.showQRField),t.xp6(1),t.Q6J("fxFlex",""===gi.showQRField||gi.screenSize===gi.screenSizeEnum.XS||gi.screenSize===gi.screenSizeEnum.SM?"100":"70"),t.xp6(4),t.Oqu(gi.data.alertTitle||gi.alertTypeEnum[gi.data.type]),t.xp6(3),t.Q6J("ngIf",gi.data.scrollable),t.xp6(1),t.Q6J("ngIf",!gi.data.scrollable),t.xp6(1),t.Q6J("ngIf",gi.data.scrollable&&gi.shouldScroll),t.xp6(2),t.Q6J("ngIf",(!gi.showQRField||""===gi.showQRField)&&""===gi.showCopyName),t.xp6(1),t.Q6J("ngIf",""!==gi.showCopyName),t.xp6(1),t.Q6J("ngIf",""!==gi.showCopyName),t.xp6(1),t.Q6J("ngIf",""!==gi.showQRField),t.xp6(1),t.Q6J("ngIf",""!==gi.showQRField))},dependencies:[re.mk,re.sg,re.O5,re.tP,re.RF,re.n9,re.ED,V.xw,V.Wh,V.yH,ie.oO,H.ZT,se.lW,se.nh,ce.dn,ce.dk,Ce.Hw,M.d,i.gM,a.uU,f.$V,l.y,v.h,re.JJ,re.uU],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),vi})();var mt=m(2687),Tt=m(7861),it=m(9653),je=m(4006),zt=m(2216),xt=m(4144),Nt=m(9549),Gt=m(6534);function ke(Ot,vi){if(1&Ot&&(t.TgZ(0,"div",18),t._UZ(1,"fa-icon",19),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&Ot){const li=t.oxw();t.xp6(1),t.Q6J("icon",li.faExclamationTriangle),t.xp6(2),t.Oqu(li.warningMessage)}}function $(Ot,vi){if(1&Ot&&(t.TgZ(0,"div",20),t._UZ(1,"fa-icon",19),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&Ot){const li=t.oxw();t.xp6(1),t.Q6J("icon",li.faInfoCircle),t.xp6(2),t.Oqu(li.informationMessage)}}function ue(Ot,vi){if(1&Ot&&(t.TgZ(0,"p",21),t._uU(1),t.qZA()),2&Ot){const li=t.oxw();t.xp6(1),t.Oqu(li.data.titleMessage)}}function Le(Ot,vi){1&Ot&&t._UZ(0,"div",36),2&Ot&&t.Q6J("innerHTML",vi.$implicit,t.oJD)}function Je(Ot,vi){if(1&Ot&&(t.ynx(0,34),t.YNc(1,Le,1,1,"div",35),t.BQk()),2&Ot){const li=t.oxw(2).$implicit;t.xp6(1),t.Q6J("ngForOf",li.value)}}function $t(Ot,vi){if(1&Ot&&(t.ynx(0),t._uU(1),t.ALo(2,"date"),t.BQk()),2&Ot){const li=t.oxw(2).$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*li.value,"dd/MMM/y HH:mm"))}}function Vt(Ot,vi){if(1&Ot&&(t.ynx(0),t._uU(1),t.ALo(2,"number"),t.BQk()),2&Ot){const li=t.oxw(2).$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,li.value,"1.0-3"))}}function ii(Ot,vi){if(1&Ot&&(t.ynx(0),t._uU(1),t.BQk()),2&Ot){const li=t.oxw(2).$implicit;t.xp6(1),t.Oqu(!0===li.value?"True":"False")}}function pt(Ot,vi){if(1&Ot&&(t.ynx(0),t._uU(1),t.BQk()),2&Ot){const li=t.oxw(2).$implicit;t.xp6(1),t.Oqu(li.value)}}function ot(Ot,vi){if(1&Ot&&(t.TgZ(0,"span")(1,"span",30),t.YNc(2,Je,2,1,"ng-container",31),t.YNc(3,$t,3,4,"ng-container",32),t.YNc(4,Vt,3,4,"ng-container",32),t.YNc(5,ii,2,1,"ng-container",32),t.YNc(6,pt,2,1,"ng-container",33),t.qZA()()),2&Ot){const li=t.oxw().$implicit,mi=t.oxw(3);t.xp6(1),t.Q6J("ngSwitch",li.type),t.xp6(1),t.Q6J("ngSwitchCase",mi.dataTypeEnum.ARRAY),t.xp6(1),t.Q6J("ngSwitchCase",mi.dataTypeEnum.DATE_TIME),t.xp6(1),t.Q6J("ngSwitchCase",mi.dataTypeEnum.NUMBER),t.xp6(1),t.Q6J("ngSwitchCase",mi.dataTypeEnum.BOOLEAN)}}function ft(Ot,vi){1&Ot&&(t.TgZ(0,"span",37),t._uU(1,"\xa0"),t.qZA())}function St(Ot,vi){if(1&Ot&&(t.TgZ(0,"div",25)(1,"h4",26),t._uU(2),t.qZA(),t.YNc(3,ot,7,5,"span",27),t.YNc(4,ft,2,0,"ng-template",null,28,t.W1O),t._UZ(6,"mat-divider",29),t.qZA()),2&Ot){const li=vi.$implicit,mi=t.MAs(5);t.s9C("fxFlex.gt-md",li.width),t.xp6(2),t.Oqu(li.title),t.xp6(1),t.Q6J("ngIf",li&&(!!li.value||0===li.value))("ngIfElse",mi)}}function gt(Ot,vi){if(1&Ot&&(t.TgZ(0,"div")(1,"div",23),t.YNc(2,St,7,4,"div",24),t.qZA()()),2&Ot){const li=vi.$implicit;t.xp6(2),t.Q6J("ngForOf",li)}}function $e(Ot,vi){if(1&Ot&&(t.TgZ(0,"div"),t.YNc(1,gt,3,1,"div",22),t.qZA()),2&Ot){const li=t.oxw();t.xp6(1),t.Q6J("ngForOf",li.messageObjs)}}function _t(Ot,vi){if(1&Ot&&(t.TgZ(0,"p",21),t._uU(1),t.qZA()),2&Ot){const li=t.oxw(2);t.xp6(1),t.Oqu(li.data.titleMessage)}}function vt(Ot,vi){if(1&Ot&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&Ot){const li=t.oxw(2).$implicit;t.xp6(1),t.hij("",li.placeholder," is required.")}}function He(Ot,vi){if(1&Ot){const li=t.EpF();t.TgZ(0,"mat-form-field",41)(1,"mat-label"),t._uU(2),t.qZA(),t.TgZ(3,"input",42),t.NdJ("ngModelChange",function(gi){t.CHM(li);const Ui=t.oxw().$implicit;return t.KtG(Ui.inputValue=gi)}),t.ALo(4,"lowercase"),t.qZA(),t.YNc(5,vt,2,1,"mat-error",11),t.TgZ(6,"mat-hint"),t._uU(7),t.qZA()()}if(2&Ot){const li=t.oxw(),mi=li.$implicit,gi=li.index;t.Q6J("fxFlex",mi.width),t.xp6(2),t.Oqu(mi.placeholder),t.xp6(1),t.MGl("name","input",gi,""),t.Q6J("autoFocus",0===gi)("min",mi.min)("step",mi.step)("type",t.lcZ(4,11,mi.inputType))("tabindex",gi+1)("ngModel",mi.inputValue),t.xp6(2),t.Q6J("ngIf",!mi.inputValue),t.xp6(2),t.Oqu(mi.hintFunction?mi.hintFunction(mi.inputValue):mi.hintText)}}function Et(Ot,vi){if(1&Ot&&(t.ynx(0),t.YNc(1,He,8,13,"mat-form-field",40),t.BQk()),2&Ot){const li=vi.$implicit,mi=t.oxw(2);t.xp6(1),t.Q6J("ngIf",!li.advancedField||mi.showAdvanced)}}function At(Ot,vi){if(1&Ot&&(t.TgZ(0,"div",38),t.YNc(1,_t,2,1,"p",10),t.TgZ(2,"div",39),t.YNc(3,Et,2,1,"ng-container",22),t.qZA()()),2&Ot){const li=t.oxw();t.xp6(1),t.Q6J("ngIf",li.data.titleMessage),t.xp6(2),t.Q6J("ngForOf",li.getInputs)}}function Qt(Ot,vi){1&Ot&&(t.TgZ(0,"p"),t._uU(1,"Show Advanced"),t.qZA())}function zi(Ot,vi){1&Ot&&(t.TgZ(0,"p"),t._uU(1,"Hide Advanced"),t.qZA())}function Ni(Ot,vi){if(1&Ot){const li=t.EpF();t.TgZ(0,"button",43),t.NdJ("click",function(){t.CHM(li);const gi=t.oxw();return t.KtG(gi.onShowAdvanced())}),t.YNc(1,Qt,2,0,"p",27),t.YNc(2,zi,2,0,"ng-template",null,44,t.W1O),t.qZA()}if(2&Ot){const li=t.MAs(3),mi=t.oxw();t.xp6(1),t.Q6J("ngIf",!mi.showAdvanced)("ngIfElse",li)}}function Mi(Ot,vi){if(1&Ot){const li=t.EpF();t.TgZ(0,"button",45),t.NdJ("click",function(){t.CHM(li);const gi=t.oxw();return t.KtG(gi.onClose(gi.getInputs))}),t._uU(1),t.qZA()}if(2&Ot){const li=t.oxw();t.xp6(1),t.Oqu(li.yesBtnText)}}function Gi(Ot,vi){if(1&Ot){const li=t.EpF();t.TgZ(0,"button",46),t.NdJ("click",function(){t.CHM(li);const gi=t.oxw();return t.KtG(gi.onClose(!0))}),t._uU(1),t.qZA()}if(2&Ot){const li=t.oxw();t.xp6(1),t.Oqu(li.yesBtnText)}}let Xe=(()=>{var Ot;class vi{constructor(mi,gi,Ui,Un){this.dialogRef=mi,this.data=gi,this.logger=Ui,this.store=Un,this.faInfoCircle=mt.sqG,this.faExclamationTriangle=mt.eHv,this.informationMessage="",this.warningMessage="",this.noBtnText="No",this.yesBtnText="Yes",this.messageObjs=[],this.flgShowInput=!1,this.hasAdvanced=!1,this.alertTypeEnum=D.n_,this.dataTypeEnum=D.Gi,this.getInputs=[{placeholder:"",inputType:D.Gi.STRING,inputValue:"",hintText:"",hintFunction:null,advancedField:!1}],this.showAdvanced=!1}ngOnInit(){this.informationMessage=this.data.informationMessage||"",this.warningMessage=this.data.warningMessage||"",this.flgShowInput=!!this.data.flgShowInput,this.getInputs=this.data.getInputs||[],this.noBtnText=this.data.noBtnText?this.data.noBtnText:"No",this.yesBtnText=this.data.yesBtnText?this.data.yesBtnText:"Yes",this.hasAdvanced=!!this.data.hasAdvanced&&this.data.hasAdvanced,this.messageObjs=this.data.message,this.data.type===D.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection")}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onClose(mi){if(mi&&this.getInputs&&this.getInputs.some(gi=>typeof gi.inputValue>"u"))return!0;!this.showAdvanced&&mi.length&&(mi=mi?.reduce((gi,Ui)=>(Ui.advancedField||gi.push(Ui),gi),[])),this.store.dispatch((0,Tt.yb)({payload:mi}))}}return(Ot=vi).\u0275fac=function(mi){return new(mi||Ot)(t.Y36(H.so),t.Y36(H.WI),t.Y36(Q.mQ),t.Y36(it.yh))},Ot.\u0275cmp=t.Xpm({type:Ot,selectors:[["rtl-confirmation-message"]],decls:21,vars:10,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 center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","100","class","alert alert-warn",4,"ngIf"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],[4,"ngIf"],["fxLayout","column","class","bordered-box my-2 p-2",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],["mat-button","","color","primary","type","button","class","mr-1","tabindex","2",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","3","default","",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","4","default","",3,"click",4,"ngIf"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayoutAlign","start center",1,"pb-1"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],["emptyField",""],[1,"w-100","my-1"],[1,"foreground-secondary-text",3,"ngSwitch"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch"],[3,"innerHTML",4,"ngFor","ngForOf"],[3,"innerHTML"],["fxFlex","100",1,"foreground-secondary-text"],["fxLayout","column",1,"bordered-box","my-2","p-2"],["fxLayout","row wrap","fxLayoutAlign","space-between center"],[3,"fxFlex",4,"ngIf"],[3,"fxFlex"],["matInput","","required","",3,"autoFocus","name","min","step","type","tabindex","ngModel","ngModelChange"],["mat-button","","color","primary","type","button","tabindex","2",1,"mr-1",3,"click"],["hideAdvancedText",""],["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(mi,gi){1&mi&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return gi.onClose(!1)}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7),t.YNc(10,ke,4,2,"div",8),t.YNc(11,$,4,2,"div",9),t.YNc(12,ue,2,1,"p",10),t.YNc(13,$e,2,1,"div",11),t.YNc(14,At,4,2,"div",12),t.TgZ(15,"div",13)(16,"button",14),t.NdJ("click",function(){return gi.onClose(!1)}),t._uU(17),t.qZA(),t.YNc(18,Ni,4,2,"button",15),t.YNc(19,Mi,2,1,"button",16),t.YNc(20,Gi,2,1,"button",17),t.qZA()()()()()),2&mi&&(t.xp6(5),t.Oqu(gi.data.alertTitle||gi.alertTypeEnum[gi.data.type]),t.xp6(5),t.Q6J("ngIf",gi.warningMessage&&""!==gi.warningMessage),t.xp6(1),t.Q6J("ngIf",gi.informationMessage&&""!==gi.informationMessage),t.xp6(1),t.Q6J("ngIf",gi.data.titleMessage&&!gi.flgShowInput),t.xp6(1),t.Q6J("ngIf",(null==gi.messageObjs?null:gi.messageObjs.length)>0),t.xp6(1),t.Q6J("ngIf",gi.flgShowInput),t.xp6(3),t.Oqu(gi.noBtnText),t.xp6(1),t.Q6J("ngIf",gi.hasAdvanced),t.xp6(1),t.Q6J("ngIf",gi.flgShowInput),t.xp6(1),t.Q6J("ngIf",!gi.flgShowInput))},dependencies:[re.sg,re.O5,re.RF,re.n9,re.ED,je._Y,je.Fj,je.JJ,je.JL,je.Q7,je.On,je.F,zt.BN,V.xw,V.Wh,V.yH,se.lW,ce.dn,ce.dk,xt.Nt,Nt.KE,Nt.hX,Nt.bx,Nt.TO,M.d,v.h,Gt.q,re.i8,re.JJ,re.uU]}),vi})();var It=m(1786),Se=m(4385),wt=m(3238);function Zt(Ot,vi){if(1&Ot&&(t.TgZ(0,"mat-option",23),t._uU(1),t.qZA()),2&Ot){const li=vi.$implicit;t.Q6J("value",li),t.xp6(1),t.hij(" ",li.infoName," ")}}function si(Ot,vi){if(1&Ot){const li=t.EpF();t.TgZ(0,"div",13)(1,"mat-form-field",20)(2,"mat-select",21),t.NdJ("valueChange",function(gi){t.CHM(li);const Ui=t.oxw();return t.KtG(Ui.selInfoType=gi)}),t.YNc(3,Zt,2,2,"mat-option",22),t.qZA()()()}if(2&Ot){const li=t.oxw();t.xp6(2),t.Q6J("value",li.selInfoType),t.xp6(1),t.Q6J("ngForOf",li.infoTypes)}}const Ai=function(Ot){return{"display-none":Ot}};let Oi=(()=>{var Ot;class vi{constructor(mi,gi,Ui,Un,Dn){this.dialogRef=mi,this.data=gi,this.logger=Ui,this.snackBar=Un,this.commonService=Dn,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=D.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((mi,gi)=>{this.infoTypes.push({infoID:gi+1,infoKey:"node URI "+(gi+1),infoName:"Node URI "+(gi+1)})})),this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyPubkey(mi){this.snackBar.open(this.selInfoType.infoName+" copied."),this.logger.info("Copied Text: "+mi)}}return(Ot=vi).\u0275fac=function(mi){return new(mi||Ot)(t.Y36(H.so),t.Y36(H.WI),t.Y36(Q.mQ),t.Y36(J.ux),t.Y36(ee.v))},Ot.\u0275cmp=t.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 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"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","40","fxLayoutAlign","start end"],["tabindex","1",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(mi,gi){1&mi&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"qr-code",2),t.qZA(),t.TgZ(3,"div",3)(4,"mat-card-header",4)(5,"div",5),t._UZ(6,"fa-icon",6),t.TgZ(7,"span",7),t._uU(8),t.qZA()(),t.TgZ(9,"button",8),t.NdJ("click",function(){return gi.onClose()}),t._uU(10,"X"),t.qZA()(),t.TgZ(11,"mat-card-content",9)(12,"div",10)(13,"div",11),t._UZ(14,"qr-code",2),t.qZA(),t.YNc(15,si,4,2,"div",12),t.TgZ(16,"div",13)(17,"div",14)(18,"h4",15),t._uU(19),t.qZA(),t.TgZ(20,"span",16),t._uU(21),t.qZA()()(),t._UZ(22,"mat-divider",17),t.TgZ(23,"div",18)(24,"button",19),t.NdJ("copied",function(Un){return gi.onCopyPubkey(Un)}),t._uU(25),t.qZA()()()()()()),2&mi&&(t.xp6(1),t.Q6J("ngClass",t.VKq(15,Ai,gi.screenSize===gi.screenSizeEnum.XS||gi.screenSize===gi.screenSizeEnum.SM)),t.xp6(1),t.s9C("value",0===gi.selInfoType.infoID?gi.information.identity_pubkey:gi.information.uris[gi.selInfoType.infoID-1]),t.Q6J("size",gi.qrWidth)("errorCorrectionLevel","L"),t.xp6(4),t.Q6J("icon",gi.faReceipt),t.xp6(2),t.Oqu(gi.selInfoType.infoName),t.xp6(5),t.Q6J("ngClass",t.VKq(17,Ai,gi.screenSize!==gi.screenSizeEnum.XS&&gi.screenSize!==gi.screenSizeEnum.SM)),t.xp6(1),t.s9C("value",0===gi.selInfoType.infoID?gi.information.identity_pubkey:gi.information.uris[gi.selInfoType.infoID-1]),t.Q6J("size",gi.qrWidth)("errorCorrectionLevel","L"),t.xp6(1),t.Q6J("ngIf",gi.information.uris&&gi.information.uris.length>0),t.xp6(4),t.Oqu(gi.selInfoType.infoName),t.xp6(2),t.Oqu(0===gi.selInfoType.infoID?gi.information.identity_pubkey:gi.information.uris[gi.selInfoType.infoID-1]),t.xp6(3),t.s9C("payload",0===gi.selInfoType.infoID?gi.information.identity_pubkey:gi.information.uris[gi.selInfoType.infoID-1]),t.xp6(1),t.hij("Copy ",gi.selInfoType.infoKey,""))},dependencies:[re.mk,re.sg,re.O5,zt.BN,V.xw,V.Wh,V.yH,ie.oO,se.lW,ce.dn,ce.dk,Nt.KE,M.d,Se.gD,wt.ey,a.uU,l.y,v.h]}),vi})();var Qi=m(6523),en=m(429),Yi=m(2994),Yt=m(8377),qt=m(529),_e=m(7998),dt=m(5986),Dt=m(8104);let Bt=(()=>{var Ot;class vi{constructor(mi,gi,Ui,Un,Dn,oa,Ea,ta,er,Jt,pi){this.actions=mi,this.httpClient=gi,this.store=Ui,this.logger=Un,this.wsService=Dn,this.sessionService=oa,this.commonService=Ea,this.dataService=ta,this.dialog=er,this.snackBar=Jt,this.router=pi,this.screenSize="",this.alertWidth="55%",this.confirmWidth="70%",this.unSubs=[new _.x,new _.x],this.closeAllDialogs=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.CLOSE_ALL_DIALOGS),(0,h.U)(()=>{this.dialog.closeAll()})),{dispatch:!1}),this.openSnackBar=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.OPEN_SNACK_BAR),(0,h.U)(Kt=>{"string"==typeof Kt.payload?this.snackBar.open(Kt.payload):this.snackBar.open(Kt.payload.message,"","ERROR"===Kt.payload.type?{duration:Kt.payload.duration?Kt.payload.duration:2e3,panelClass:"rtl-warn-snack-bar"}:"WARN"===Kt.payload.type?{duration:Kt.payload.duration?Kt.payload.duration:2e3,panelClass:"rtl-accent-snack-bar"}:{duration:Kt.payload.duration?Kt.payload.duration:2e3,panelClass:"rtl-snack-bar"})})),{dispatch:!1}),this.openSpinner=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.OPEN_SPINNER),(0,h.U)(Kt=>{Kt.payload!==D.m6.NO_SPINNER&&(this.dialogRef=this.dialog.open(j,{panelClass:"spinner-dialog-panel",data:{titleMessage:Kt.payload}}))})),{dispatch:!1}),this.closeSpinner=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.CLOSE_SPINNER),(0,h.U)(Kt=>{if(Kt.payload!==D.m6.NO_SPINNER)try{this.dialogRef&&this.dialogRef.componentInstance&&this.dialogRef.componentInstance.data&&this.dialogRef.componentInstance.data.titleMessage&&this.dialogRef.componentInstance.data.titleMessage===Kt.payload?this.dialogRef.close():this.dialog.openDialogs.forEach(ri=>{ri.componentInstance&&ri.componentInstance.data&&ri.componentInstance.data.titleMessage&&ri.componentInstance.data.titleMessage===Kt.payload&&ri.close()})}catch(ri){this.logger.error(ri)}})),{dispatch:!1}),this.openAlert=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.OPEN_ALERT),(0,h.U)(Kt=>{const ri=JSON.parse(JSON.stringify(Kt.payload));ri.width||(ri.width=this.alertWidth),this.dialogRef=this.dialog.open(Kt.payload.data.component?Kt.payload.data.component:X,ri)})),{dispatch:!1}),this.closeAlert=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.CLOSE_ALERT),(0,h.U)(Kt=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(Kt.payload),Kt.payload))),{dispatch:!1}),this.openConfirm=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.OPEN_CONFIRMATION),(0,h.U)(Kt=>{const ri=JSON.parse(JSON.stringify(Kt.payload));ri.width||(ri.width=this.confirmWidth),this.dialogRef=this.dialog.open(Xe,ri)})),{dispatch:!1}),this.closeConfirm=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.CLOSE_CONFIRMATION),(0,P.q)(1),(0,h.U)(Kt=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(Kt.payload),Kt.payload))),{dispatch:!1}),this.showNodePubkey=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.SHOW_PUBKEY),(0,d.M)(this.store.select(Yt.R4)),(0,w.z)(([Kt,ri])=>(this.sessionService.getItem("token")&&ri.identity_pubkey?this.store.dispatch((0,Tt.qR)({payload:{data:{information:ri,component:Oi}}})):this.snackBar.open("Node Pubkey does not exist."),(0,T.of)({type:D.pg.VOID}))))),this.appConfigFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.FETCH_RTL_CONFIG),(0,w.z)(()=>(this.screenSize=this.commonService.getScreenSize(),this.screenSize===D.cu.XS||this.screenSize===D.cu.SM?(this.alertWidth="95%",this.confirmWidth="95%"):this.screenSize===D.cu.MD?(this.alertWidth="80%",this.confirmWidth="80%"):(this.alertWidth="50%",this.confirmWidth="53%"),this.store.dispatch((0,Tt.ac)({payload:D.m6.GET_RTL_CONFIG})),this.store.dispatch((0,Tt.qi)({payload:{action:"FetchRTLConfig",status:D.Bn.INITIATED}})),this.sessionService.getItem("token")?this.httpClient.get(D.vv.CONF_API+"/rtlconf"):this.httpClient.get(D.vv.CONF_API+"/rtlconfinit"))),(0,h.U)(Kt=>{this.logger.info(Kt),this.store.dispatch((0,Tt.uO)({payload:D.m6.GET_RTL_CONFIG})),this.store.dispatch((0,Tt.qi)({payload:{action:"FetchRTLConfig",status:D.Bn.COMPLETED}}));let ri=null;return Kt.nodes.forEach(xi=>{xi.settings.currencyUnits=[...D.uA,xi.settings?.currencyUnit?xi.settings?.currencyUnit:""],+(xi.index||-1)===Kt.selectedNodeIndex&&(ri=xi)}),ri?(this.store.dispatch((0,Tt.fk)({payload:{uiMessage:D.m6.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:ri,isInitialSetup:!0}})),{type:D.pg.SET_RTL_CONFIG,payload:Kt}):{type:D.pg.VOID}}),(0,C.K)(Kt=>(this.handleErrorWithAlert("FetchRTLConfig",D.m6.GET_RTL_CONFIG,"Fetch RTL Config Failed!",D.vv.CONF_API,Kt),(0,T.of)({type:D.pg.VOID}))))),this.settingSave=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.SAVE_SETTINGS),(0,w.z)(Kt=>{this.store.dispatch((0,Tt.ac)({payload:Kt.payload.uiMessage})),this.store.dispatch((0,Tt.qi)({payload:{action:"UpdateSettings",status:D.Bn.INITIATED}}));let ri=new s.y;if(Kt.payload.settings&&Kt.payload.defaultNodeIndex){const xi=this.httpClient.post(D.vv.CONF_API,{updatedSettings:Kt.payload.settings}),Hi=this.httpClient.post(D.vv.CONF_API+"/updateDefaultNode",{defaultNodeIndex:Kt.payload.defaultNodeIndex});ri=(0,y.D)([xi,Hi])}else Kt.payload.settings&&!Kt.payload.defaultNodeIndex?ri=this.httpClient.post(D.vv.CONF_API,{updatedSettings:Kt.payload.settings}):!Kt.payload.settings&&Kt.payload.defaultNodeIndex&&(ri=this.httpClient.post(D.vv.CONF_API+"/updateDefaultNode",{defaultNodeIndex:Kt.payload.defaultNodeIndex}));return ri.pipe((0,h.U)(xi=>(this.logger.info(xi),this.store.dispatch((0,Tt.qi)({payload:{action:"UpdateSettings",status:D.Bn.COMPLETED}})),this.store.dispatch((0,Tt.uO)({payload:Kt.payload.uiMessage})),{type:D.pg.OPEN_SNACK_BAR,payload:xi.length?xi[0].message+".":xi.message+"."})),(0,C.K)(xi=>(this.handleErrorWithAlert("UpdateSettings",Kt.payload.uiMessage,"Update Settings Failed!",D.vv.CONF_API,xi.length?xi[0]:xi),(0,T.of)({type:D.pg.VOID}))))}))),this.updateServicesettings=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.UPDATE_SERVICE_SETTINGS),(0,w.z)(Kt=>(this.store.dispatch((0,Tt.ac)({payload:Kt.payload.uiMessage})),this.store.dispatch((0,Tt.qi)({payload:{action:"UpdateServiceSettings",status:D.Bn.INITIATED}})),this.httpClient.post(D.vv.CONF_API+"/updateServiceSettings",Kt.payload).pipe((0,h.U)(ri=>(this.logger.info(ri),this.store.dispatch((0,Tt.qi)({payload:{action:"UpdateServiceSettings",status:D.Bn.COMPLETED}})),this.store.dispatch((0,Tt.uO)({payload:Kt.payload.uiMessage})),this.store.dispatch((0,Tt.Tm)({payload:Kt.payload})),{type:D.pg.OPEN_SNACK_BAR,payload:ri.message+"."})),(0,C.K)(ri=>(this.handleErrorWithAlert("UpdateServiceSettings",Kt.payload.uiMessage,"Update Service Settings Failed!",D.vv.CONF_API,ri),(0,T.of)({type:D.pg.VOID})))))))),this.twoFASettingSave=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.TWO_FA_SAVE_SETTINGS),(0,w.z)(Kt=>(this.store.dispatch((0,Tt.ac)({payload:D.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,Tt.qi)({payload:{action:"Update2FASettings",status:D.Bn.INITIATED}})),this.httpClient.post(D.vv.CONF_API+"/update2FA",{secret2fa:Kt.payload.secret2fa}))),(0,d.M)(this.store.select(Yt.Yj)),(0,h.U)(([Kt,ri])=>{this.logger.info(Kt),ri.enable2FA=!ri.enable2FA,this.store.dispatch((0,Tt.qi)({payload:{action:"Update2FASettings",status:D.Bn.COMPLETED}})),this.store.dispatch((0,Tt.uO)({payload:D.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,Tt.XT)({payload:ri}))}),(0,C.K)(Kt=>(this.handleErrorWithAlert("Update2FASettings",D.m6.UPDATE_UI_SETTINGS,"Update 2FA Settings Failed!",D.vv.CONF_API,Kt),(0,T.of)({type:D.pg.VOID})))),{dispatch:!1}),this.configFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.FETCH_CONFIG),(0,w.z)(Kt=>(this.store.dispatch((0,Tt.ac)({payload:D.m6.OPEN_CONFIG_FILE})),this.store.dispatch((0,Tt.qi)({payload:{action:"fetchConfig",status:D.Bn.INITIATED}})),this.httpClient.get(D.vv.CONF_API+"/config/"+Kt.payload).pipe((0,h.U)(ri=>(this.store.dispatch((0,Tt.qi)({payload:{action:"fetchConfig",status:D.Bn.COMPLETED}})),this.store.dispatch((0,Tt.uO)({payload:D.m6.OPEN_CONFIG_FILE})),{type:D.pg.SHOW_CONFIG,payload:ri})),(0,C.K)(ri=>(this.handleErrorWithAlert("fetchConfig",D.m6.OPEN_CONFIG_FILE,"Fetch Config Failed!",D.vv.CONF_API+"/config/"+Kt.payload,ri),(0,T.of)({type:D.pg.VOID})))))))),this.showLnConfig=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.SHOW_CONFIG),(0,h.U)(Kt=>Kt.payload)),{dispatch:!1}),this.isAuthorized=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.IS_AUTHORIZED),(0,w.z)(Kt=>(this.store.dispatch((0,Tt.qi)({payload:{action:"IsAuthorized",status:D.Bn.INITIATED}})),this.httpClient.post(D.vv.AUTHENTICATE_API,{authenticateWith:Kt.payload&&""!==Kt.payload.trim()?D.OJ.PASSWORD:D.OJ.JWT,authenticationValue:Kt.payload&&""!==Kt.payload.trim()?Kt.payload:this.sessionService.getItem("token")?this.sessionService.getItem("token"):""}).pipe((0,h.U)(ri=>(this.logger.info(ri),this.store.dispatch((0,Tt.qi)({payload:{action:"IsAuthorized",status:D.Bn.COMPLETED}})),this.logger.info("Successfully Authorized!"),{type:D.pg.IS_AUTHORIZED_RES,payload:ri})),(0,C.K)(ri=>(this.handleErrorWithAlert("IsAuthorized",D.m6.NO_SPINNER,"Authorization Failed",D.vv.AUTHENTICATE_API,ri),(0,T.of)({type:D.pg.IS_AUTHORIZED_RES,payload:"ERROR"})))))))),this.isAuthorizedRes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.IS_AUTHORIZED_RES),(0,h.U)(Kt=>Kt.payload)),{dispatch:!1}),this.authLogin=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.LOGIN),(0,d.M)(this.store.select(Yt.Yj)),(0,w.z)(([Kt,ri])=>(this.store.dispatch((0,Qi.Ll)({payload:null})),this.store.dispatch((0,en.mI)({payload:null})),this.store.dispatch((0,Yi.Fd)({payload:null})),this.store.dispatch((0,Tt.qi)({payload:{action:"Login",status:D.Bn.INITIATED}})),this.httpClient.post(D.vv.AUTHENTICATE_API,{authenticateWith:Kt.payload.password?D.OJ.PASSWORD:D.OJ.JWT,authenticationValue:Kt.payload.password?Kt.payload.password:this.sessionService.getItem("token")?this.sessionService.getItem("token"):"",twoFAToken:Kt.payload.twoFAToken?Kt.payload.twoFAToken:""}).pipe((0,h.U)(xi=>{this.logger.info(xi),this.store.dispatch((0,Tt.qi)({payload:{action:"Login",status:D.Bn.COMPLETED}})),this.setLoggedInDetails(Kt.payload.defaultPassword,xi)}),(0,C.K)(xi=>(this.logger.info("Redirecting to Login Error Page"),this.handleErrorWithoutAlert("Login",D.m6.NO_SPINNER,xi),+ri.sso.rtlSSO?this.router.navigate(["/error"],{state:{errorCode:"406",errorMessage:xi.error&&xi.error.error?xi.error.error:"Single Sign On Failed!"}}):this.router.navigate(["./login"]),(0,T.of)({type:D.pg.VOID}))))))),{dispatch:!1}),this.tokenVerify=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.VERIFY_TWO_FA),(0,w.z)(Kt=>(this.store.dispatch((0,Tt.ac)({payload:D.m6.VERIFY_TOKEN})),this.store.dispatch((0,Tt.qi)({payload:{action:"VerifyToken",status:D.Bn.INITIATED}})),this.httpClient.post(D.vv.AUTHENTICATE_API+"/token",{authentication2FA:Kt.payload.token}).pipe((0,h.U)(ri=>{this.logger.info(ri),this.store.dispatch((0,Tt.uO)({payload:D.m6.VERIFY_TOKEN})),this.store.dispatch((0,Tt.qi)({payload:{action:"VerifyToken",status:D.Bn.COMPLETED}})),this.logger.info("Token Successfully Verified!"),this.setLoggedInDetails(!1,Kt.payload.authResponse)}),(0,C.K)(ri=>(this.handleErrorWithAlert("VerifyToken",D.m6.VERIFY_TOKEN,"Authorization Failed!",D.vv.AUTHENTICATE_API+"/token",ri),(0,T.of)({type:D.pg.VOID}))))))),{dispatch:!1}),this.logOut=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.LOGOUT),(0,w.z)(Kt=>(this.store.dispatch((0,Tt.ac)({payload:D.m6.LOG_OUT})),Kt.sso&&+Kt.sso.rtlSSO?window.location.href=Kt.sso.logoutRedirectLink:this.router.navigate(["./login"]),this.sessionService.clearAll(),this.store.dispatch((0,Tt._V)({payload:{}})),this.store.dispatch((0,Tt.uO)({payload:D.m6.LOG_OUT})),this.logger.info("Logged out from browser"),this.httpClient.get(D.vv.AUTHENTICATE_API+"/logout").pipe((0,h.U)(ri=>{this.logger.info(ri),this.store.dispatch((0,Tt.uO)({payload:D.m6.LOG_OUT})),this.logger.info("Logged out from server")}))))),{dispatch:!1}),this.resetPassword=(0,e.GW)(()=>this.actions.pipe((0,L.R)(this.unSubs[1]),(0,e.l4)(D.pg.RESET_PASSWORD),(0,w.z)(Kt=>(this.store.dispatch((0,Tt.qi)({payload:{action:"ResetPassword",status:D.Bn.INITIATED}})),this.httpClient.post(D.vv.AUTHENTICATE_API+"/reset",{currPassword:Kt.payload.currPassword,newPassword:Kt.payload.newPassword}).pipe((0,L.R)(this.unSubs[0]),(0,h.U)(ri=>(this.logger.info(ri),this.store.dispatch((0,Tt.qi)({payload:{action:"ResetPassword",status:D.Bn.COMPLETED}})),this.sessionService.setItem("defaultPassword",!1),this.logger.info("Password Reset Successful!"),this.store.dispatch((0,Tt.jW)({payload:"Password Reset Successful!"})),this.SetToken(ri.token),{type:D.pg.RESET_PASSWORD_RES,payload:ri.token})),(0,C.K)(ri=>(this.handleErrorWithAlert("ResetPassword",D.m6.NO_SPINNER,"Password Reset Failed!",D.vv.AUTHENTICATE_API+"/reset",ri),(0,T.of)({type:D.pg.VOID})))))))),this.setSelectedNode=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.SET_SELECTED_NODE),(0,w.z)(Kt=>(this.store.dispatch((0,Tt.ac)({payload:Kt.payload.uiMessage})),this.store.dispatch((0,Tt.qi)({payload:{action:"UpdateSelNode",status:D.Bn.INITIATED}})),this.httpClient.get(D.vv.CONF_API+"/updateSelNode/"+Kt.payload.currentLnNode?.index+"/"+Kt.payload.prevLnNodeIndex).pipe((0,h.U)(ri=>(this.logger.info(ri),this.store.dispatch((0,Tt.qi)({payload:{action:"UpdateSelNode",status:D.Bn.COMPLETED}})),this.store.dispatch((0,Tt.uO)({payload:Kt.payload.uiMessage})),this.initializeNode(Kt.payload.currentLnNode,Kt.payload.isInitialSetup),{type:D.pg.VOID})),(0,C.K)(ri=>(this.handleErrorWithAlert("UpdateSelNode",Kt.payload.uiMessage,"Update Selected Node Failed!",D.vv.CONF_API+"/updateSelNode",ri),(0,T.of)({type:D.pg.VOID})))))))),this.fetchFile=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.FETCH_FILE),(0,w.z)(Kt=>{this.store.dispatch((0,Tt.ac)({payload:D.m6.DOWNLOAD_BACKUP_FILE})),this.store.dispatch((0,Tt.qi)({payload:{action:"FetchFile",status:D.Bn.INITIATED}}));const ri="?channel="+Kt.payload.channelPoint+(Kt.payload.path?"&path="+Kt.payload.path:"");return this.httpClient.get(D.vv.CONF_API+"/file"+ri).pipe((0,h.U)(xi=>(this.store.dispatch((0,Tt.qi)({payload:{action:"FetchFile",status:D.Bn.COMPLETED}})),this.store.dispatch((0,Tt.uO)({payload:D.m6.DOWNLOAD_BACKUP_FILE})),{type:D.pg.SHOW_FILE,payload:xi})),(0,C.K)(xi=>(this.handleErrorWithAlert("fetchFile",D.m6.DOWNLOAD_BACKUP_FILE,"Download Backup File Failed!",D.vv.CONF_API+"/file"+ri,{status:this.commonService.extractErrorNumber(xi),error:{error:this.commonService.extractErrorCode(xi)}}),(0,T.of)({type:D.pg.VOID}))))}))),this.showFile=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.SHOW_FILE),(0,h.U)(Kt=>Kt.payload)),{dispatch:!1})}initializeNode(mi,gi){this.logger.info("Initializing node from RTL Effects.");const Ui=gi?"":"HOME",Un={userPersona:mi.settings.userPersona,channelBackupPath:mi.settings.channelBackupPath,unannouncedChannels:!!mi.settings.unannouncedChannels,selCurrencyUnit:mi.settings.currencyUnit,currencyUnits:D.uA,fiatConversion:mi.settings.fiatConversion,lnImplementation:mi.lnImplementation,swapServerUrl:mi.settings.swapServerUrl,boltzServerUrl:mi.settings.boltzServerUrl,enableOffers:mi.settings.enableOffers,enablePeerswap:mi.settings.enablePeerswap};if(mi.settings.fiatConversion&&mi.settings.currencyUnit&&(Un.currencyUnits=[...D.uA,mi.settings.currencyUnit]),this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("clnUnlocked"),this.sessionService.removeItem("eclUnlocked"),this.store.dispatch((0,Tt.vI)({payload:mi})),this.store.dispatch((0,Qi.Ll)({payload:Un})),this.store.dispatch((0,en.mI)({payload:Un})),this.store.dispatch((0,Yi.Fd)({payload:Un})),this.sessionService.getItem("token")){const Dn=mi.lnImplementation?mi.lnImplementation.toUpperCase():"LND";this.dataService.setLnImplementation(Dn);const oa=!(0,t.X6Q)()&&window.location.origin?window.location.origin+"/rtl/api":D.T5;switch(this.wsService.connectWebSocket(oa?.replace(/^http/,"ws")+D.vv.Web_SOCKET_API,mi.index?mi.index.toString():"-1"),Dn){case"CLN":this.store.dispatch((0,en.wD)()),this.store.dispatch((0,en.W)({payload:{loadPage:Ui}}));break;case"ECL":this.store.dispatch((0,Yi.wD)()),this.store.dispatch((0,Yi.iz)({payload:{loadPage:Ui}}));break;default:this.store.dispatch((0,Qi.wD)()),this.store.dispatch((0,Qi.sQ)({payload:{loadPage:Ui}}))}}}SetToken(mi){mi?(this.sessionService.setItem("lndUnlocked","true"),this.sessionService.setItem("token",mi)):(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("token"))}setLoggedInDetails(mi,gi){this.logger.info("Successfully Authorized!"),this.SetToken(gi.token),this.sessionService.setItem("defaultPassword",mi),mi?(this.store.dispatch((0,Tt.jW)({payload:"Reset your password."})),this.router.navigate(["/settings/auth"])):this.store.dispatch((0,Tt.ey)())}handleErrorWithoutAlert(mi,gi,Ui){this.logger.error("ERROR IN: "+mi+"\n"+JSON.stringify(Ui)),401===Ui.status&&"Login"!==mi?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Tt.ts)()),this.store.dispatch((0,Tt.kS)()),this.store.dispatch((0,Tt.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,Tt.uO)({payload:gi})),this.store.dispatch((0,Tt.qi)({payload:{action:mi,status:D.Bn.ERROR,statusCode:Ui.status?Ui.status.toString():"",message:this.commonService.extractErrorMessage(Ui)}})))}handleErrorWithAlert(mi,gi,Ui,Un,Dn){if(this.logger.error(Dn),0===Dn.status&&Dn.statusText&&"Unknown Error"===Dn.statusText&&(Dn={status:400,error:{message:"Unknown Error / CORS Origin Not Allowed"}}),401===Dn.status&&"Login"!==mi)this.logger.info("Redirecting to Login"),this.store.dispatch((0,Tt.ts)()),this.store.dispatch((0,Tt.kS)()),this.store.dispatch((0,Tt.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,Tt.uO)({payload:gi}));const oa=this.commonService.extractErrorMessage(Dn);this.store.dispatch((0,Tt.qR)({payload:{data:{type:"ERROR",alertTitle:Ui,message:{code:Dn.status?Dn.status:"Unknown Error",message:oa,URL:Un},component:It.H}}})),this.store.dispatch((0,Tt.qi)({payload:{action:mi,status:D.Bn.ERROR,statusCode:Dn.status?Dn.status.toString():"",message:oa,URL:Un}}))}}ngOnDestroy(){this.unSubs.forEach(mi=>{mi.next(null),mi.complete()})}}return(Ot=vi).\u0275fac=function(mi){return new(mi||Ot)(t.LFG(e.eX),t.LFG(qt.eN),t.LFG(it.yh),t.LFG(Q.mQ),t.LFG(_e.d),t.LFG(dt.m),t.LFG(ee.v),t.LFG(Dt.D),t.LFG(H.uw),t.LFG(J.ux),t.LFG(me.F0))},Ot.\u0275prov=t.Yz7({token:Ot,factory:Ot.\u0275fac}),vi})()},8377:(We,q,m)=>{"use strict";m.d(q,{R4:()=>y,Sr:()=>P,Yj:()=>s,dT:()=>T,gW:()=>d,ul:()=>h});var t=m(9653);const e=(0,t.ZF)("root"),T=((0,t.P1)(e,w=>w.apiURL),(0,t.P1)(e,w=>w.selNode)),s=(0,t.P1)(e,w=>w.appConfig),y=(0,t.P1)(e,w=>w.nodeData),h=(0,t.P1)(e,w=>w.apisCallStatus.Login),P=(0,t.P1)(e,w=>w.apisCallStatus.IsAuthorized),d=(0,t.P1)(e,w=>({nodeDate:w.nodeData,selNode:w.selNode}))},5415:(We,q,m)=>{"use strict";var t=m(1481),e=m(4650),_=m(7340);function s(R){return new e.vHH(3e3,!1)}function nt(){return typeof window<"u"&&typeof window.document<"u"}function Ue(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function at(R){switch(R.length){case 0:return new _.ZN;case 1:return R[0];default:return new _.ZE(R)}}function ye(R,N,S,z,U=new Map,Ee=new Map){const Mt=[],Xt=[];let oi=-1,Ci=null;if(z.forEach(Zi=>{const Vi=Zi.get("offset"),Ln=Vi==oi,In=Ln&&Ci||new Map;Zi.forEach((pn,Cn)=>{let ea=Cn,pa=pn;if("offset"!==Cn)switch(ea=N.normalizePropertyName(ea,Mt),pa){case _.k1:pa=U.get(Cn);break;case _.l3:pa=Ee.get(Cn);break;default:pa=N.normalizeStyleValue(Cn,ea,pa,Mt)}In.set(ea,pa)}),Ln||Xt.push(In),Ci=In,oi=Vi}),Mt.length)throw function a(R){return new e.vHH(3502,!1)}();return Xt}function xe(R,N,S,z){switch(N){case"start":R.onStart(()=>z(S&&fe(S,"start",R)));break;case"done":R.onDone(()=>z(S&&fe(S,"done",R)));break;case"destroy":R.onDestroy(()=>z(S&&fe(S,"destroy",R)))}}function fe(R,N,S){const Ee=Oe(R.element,R.triggerName,R.fromState,R.toState,N||R.phaseName,S.totalTime??R.totalTime,!!S.disabled),Mt=R._data;return null!=Mt&&(Ee._data=Mt),Ee}function Oe(R,N,S,z,U="",Ee=0,Mt){return{element:R,triggerName:N,fromState:S,toState:z,phaseName:U,totalTime:Ee,disabled:!!Mt}}function oe(R,N,S){let z=R.get(N);return z||R.set(N,z=S),z}function Fe(R){const N=R.indexOf(":");return[R.substring(1,N),R.slice(N+1)]}let De=(R,N)=>!1,he=(R,N,S)=>[],Me=null;function pe(R){const N=R.parentNode||R.host;return N===Me?null:N}(Ue()||typeof Element<"u")&&(nt()?(Me=(()=>document.documentElement)(),De=(R,N)=>{for(;N;){if(N===R)return!0;N=pe(N)}return!1}):De=(R,N)=>R.contains(N),he=(R,N,S)=>{if(S)return Array.from(R.querySelectorAll(N));const z=R.querySelector(N);return z?[z]:[]});let Pe=null,de=!1;const Ut=De,ht=he;let yt=(()=>{class R{validateStyleProperty(S){return function rt(R){Pe||(Pe=function lt(){return typeof document<"u"?document.body:null}()||{},de=!!Pe.style&&"WebkitAppearance"in Pe.style);let N=!0;return Pe.style&&!function Qe(R){return"ebkit"==R.substring(1,6)}(R)&&(N=R in Pe.style,!N&&de&&(N="Webkit"+R.charAt(0).toUpperCase()+R.slice(1)in Pe.style)),N}(S)}matchesElement(S,z){return!1}containsElement(S,z){return Ut(S,z)}getParentElement(S){return pe(S)}query(S,z,U){return ht(S,z,U)}computeStyle(S,z,U){return U||""}animate(S,z,U,Ee,Mt,Xt=[],oi){return new _.ZN(U,Ee)}}return R.\u0275fac=function(S){return new(S||R)},R.\u0275prov=e.Yz7({token:R,factory:R.\u0275fac}),R})(),be=(()=>{class R{}return R.NOOP=new yt,R})();const qe=1e3,mt="ng-enter",Tt="ng-leave",it="ng-trigger",je=".ng-trigger",zt="ng-animating",xt=".ng-animating";function Nt(R){if("number"==typeof R)return R;const N=R.match(/^(-?[\.\d]+)(m?s)/);return!N||N.length<2?0:Gt(parseFloat(N[1]),N[2])}function Gt(R,N){return"s"===N?R*qe:R}function ke(R,N,S){return R.hasOwnProperty("duration")?R:function $(R,N,S){let U,Ee=0,Mt="";if("string"==typeof R){const Xt=R.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Xt)return N.push(s()),{duration:0,delay:0,easing:""};U=Gt(parseFloat(Xt[1]),Xt[2]);const oi=Xt[3];null!=oi&&(Ee=Gt(parseFloat(oi),Xt[4]));const Ci=Xt[5];Ci&&(Mt=Ci)}else U=R;if(!S){let Xt=!1,oi=N.length;U<0&&(N.push(function y(){return new e.vHH(3100,!1)}()),Xt=!0),Ee<0&&(N.push(function h(){return new e.vHH(3101,!1)}()),Xt=!0),Xt&&N.splice(oi,0,s())}return{duration:U,delay:Ee,easing:Mt}}(R,N,S)}function ue(R,N={}){return Object.keys(R).forEach(S=>{N[S]=R[S]}),N}function Le(R){const N=new Map;return Object.keys(R).forEach(S=>{N.set(S,R[S])}),N}function Vt(R,N=new Map,S){if(S)for(let[z,U]of S)N.set(z,U);for(let[z,U]of R)N.set(z,U);return N}function ii(R,N,S){return S?N+":"+S+";":""}function pt(R){let N="";for(let S=0;S{const Ee=At(U);S&&!S.has(U)&&S.set(U,R.style[Ee]),R.style[Ee]=z}),Ue()&&pt(R))}function ft(R,N){R.style&&(N.forEach((S,z)=>{const U=At(z);R.style[U]=""}),Ue()&&pt(R))}function St(R){return Array.isArray(R)?1==R.length?R[0]:(0,_.vP)(R):R}const $e=new RegExp("{{\\s*(.+?)\\s*}}","g");function _t(R){let N=[];if("string"==typeof R){let S;for(;S=$e.exec(R);)N.push(S[1]);$e.lastIndex=0}return N}function vt(R,N,S){const z=R.toString(),U=z.replace($e,(Ee,Mt)=>{let Xt=N[Mt];return null==Xt&&(S.push(function d(R){return new e.vHH(3003,!1)}()),Xt=""),Xt.toString()});return U==z?R:U}function He(R){const N=[];let S=R.next();for(;!S.done;)N.push(S.value),S=R.next();return N}const Et=/-+([a-z0-9])/g;function At(R){return R.replace(Et,(...N)=>N[1].toUpperCase())}function Qt(R){return R.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Mi(R,N,S){switch(N.type){case 7:return R.visitTrigger(N,S);case 0:return R.visitState(N,S);case 1:return R.visitTransition(N,S);case 2:return R.visitSequence(N,S);case 3:return R.visitGroup(N,S);case 4:return R.visitAnimate(N,S);case 5:return R.visitKeyframes(N,S);case 6:return R.visitStyle(N,S);case 8:return R.visitReference(N,S);case 9:return R.visitAnimateChild(N,S);case 10:return R.visitAnimateRef(N,S);case 11:return R.visitQuery(N,S);case 12:return R.visitStagger(N,S);default:throw function w(R){return new e.vHH(3004,!1)}()}}function Gi(R,N){return window.getComputedStyle(R)[N]}const Oi="*";function Qi(R,N){const S=[];return"string"==typeof R?R.split(/\s*,\s*/).forEach(z=>function en(R,N,S){if(":"==R[0]){const oi=function Yi(R,N){switch(R){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(S,z)=>parseFloat(z)>parseFloat(S);case":decrement":return(S,z)=>parseFloat(z) *"}}(R,S);if("function"==typeof oi)return void N.push(oi);R=oi}const z=R.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==z||z.length<4)return S.push(function se(R){return new e.vHH(3015,!1)}()),N;const U=z[1],Ee=z[2],Mt=z[3];N.push(_e(U,Mt));"<"==Ee[0]&&!(U==Oi&&Mt==Oi)&&N.push(_e(Mt,U))}(z,S,N)):S.push(R),S}const Yt=new Set(["true","1"]),qt=new Set(["false","0"]);function _e(R,N){const S=Yt.has(R)||qt.has(R),z=Yt.has(N)||qt.has(N);return(U,Ee)=>{let Mt=R==Oi||R==U,Xt=N==Oi||N==Ee;return!Mt&&S&&"boolean"==typeof U&&(Mt=U?Yt.has(R):qt.has(R)),!Xt&&z&&"boolean"==typeof Ee&&(Xt=Ee?Yt.has(N):qt.has(N)),Mt&&Xt}}const Dt=new RegExp("s*:selfs*,?","g");function Bt(R,N,S,z){return new vi(R).build(N,S,z)}class vi{constructor(N){this._driver=N}build(N,S,z){const U=new gi(S);return this._resetContextStyleTimingState(U),Mi(this,St(N),U)}_resetContextStyleTimingState(N){N.currentQuerySelector="",N.collectedStyles=new Map,N.collectedStyles.set("",new Map),N.currentTime=0}visitTrigger(N,S){let z=S.queryCount=0,U=S.depCount=0;const Ee=[],Mt=[];return"@"==N.name.charAt(0)&&S.errors.push(function L(){return new e.vHH(3006,!1)}()),N.definitions.forEach(Xt=>{if(this._resetContextStyleTimingState(S),0==Xt.type){const oi=Xt,Ci=oi.name;Ci.toString().split(/\s*,\s*/).forEach(Zi=>{oi.name=Zi,Ee.push(this.visitState(oi,S))}),oi.name=Ci}else if(1==Xt.type){const oi=this.visitTransition(Xt,S);z+=oi.queryCount,U+=oi.depCount,Mt.push(oi)}else S.errors.push(function D(){return new e.vHH(3007,!1)}())}),{type:7,name:N.name,states:Ee,transitions:Mt,queryCount:z,depCount:U,options:null}}visitState(N,S){const z=this.visitStyle(N.styles,S),U=N.options&&N.options.params||null;if(z.containsDynamicStyles){const Ee=new Set,Mt=U||{};z.styles.forEach(Xt=>{Xt instanceof Map&&Xt.forEach(oi=>{_t(oi).forEach(Ci=>{Mt.hasOwnProperty(Ci)||Ee.add(Ci)})})}),Ee.size&&(He(Ee.values()),S.errors.push(function H(R,N){return new e.vHH(3008,!1)}()))}return{type:0,name:N.name,style:z,options:U?{params:U}:null}}visitTransition(N,S){S.queryCount=0,S.depCount=0;const z=Mi(this,St(N.animation),S);return{type:1,matchers:Qi(N.expr,S.errors),animation:z,queryCount:S.queryCount,depCount:S.depCount,options:Dn(N.options)}}visitSequence(N,S){return{type:2,steps:N.steps.map(z=>Mi(this,z,S)),options:Dn(N.options)}}visitGroup(N,S){const z=S.currentTime;let U=0;const Ee=N.steps.map(Mt=>{S.currentTime=z;const Xt=Mi(this,Mt,S);return U=Math.max(U,S.currentTime),Xt});return S.currentTime=U,{type:3,steps:Ee,options:Dn(N.options)}}visitAnimate(N,S){const z=function Un(R,N){if(R.hasOwnProperty("duration"))return R;if("number"==typeof R)return oa(ke(R,N).duration,0,"");const S=R;if(S.split(/\s+/).some(Ee=>"{"==Ee.charAt(0)&&"{"==Ee.charAt(1))){const Ee=oa(0,0,"");return Ee.dynamic=!0,Ee.strValue=S,Ee}const U=ke(S,N);return oa(U.duration,U.delay,U.easing)}(N.timings,S.errors);S.currentAnimateTimings=z;let U,Ee=N.styles?N.styles:(0,_.oB)({});if(5==Ee.type)U=this.visitKeyframes(Ee,S);else{let Mt=N.styles,Xt=!1;if(!Mt){Xt=!0;const Ci={};z.easing&&(Ci.easing=z.easing),Mt=(0,_.oB)(Ci)}S.currentTime+=z.duration+z.delay;const oi=this.visitStyle(Mt,S);oi.isEmptyStep=Xt,U=oi}return S.currentAnimateTimings=null,{type:4,timings:z,style:U,options:null}}visitStyle(N,S){const z=this._makeStyleAst(N,S);return this._validateStyleAst(z,S),z}_makeStyleAst(N,S){const z=[],U=Array.isArray(N.styles)?N.styles:[N.styles];for(let Xt of U)"string"==typeof Xt?Xt===_.l3?z.push(Xt):S.errors.push(new e.vHH(3002,!1)):z.push(Le(Xt));let Ee=!1,Mt=null;return z.forEach(Xt=>{if(Xt instanceof Map&&(Xt.has("easing")&&(Mt=Xt.get("easing"),Xt.delete("easing")),!Ee))for(let oi of Xt.values())if(oi.toString().indexOf("{{")>=0){Ee=!0;break}}),{type:6,styles:z,easing:Mt,offset:N.offset,containsDynamicStyles:Ee,options:null}}_validateStyleAst(N,S){const z=S.currentAnimateTimings;let U=S.currentTime,Ee=S.currentTime;z&&Ee>0&&(Ee-=z.duration+z.delay),N.styles.forEach(Mt=>{"string"!=typeof Mt&&Mt.forEach((Xt,oi)=>{const Ci=S.collectedStyles.get(S.currentQuerySelector),Zi=Ci.get(oi);let Vi=!0;Zi&&(Ee!=U&&Ee>=Zi.startTime&&U<=Zi.endTime&&(S.errors.push(function j(R,N,S,z,U){return new e.vHH(3010,!1)}()),Vi=!1),Ee=Zi.startTime),Vi&&Ci.set(oi,{startTime:Ee,endTime:U}),S.options&&function gt(R,N,S){const z=N.params||{},U=_t(R);U.length&&U.forEach(Ee=>{z.hasOwnProperty(Ee)||S.push(function P(R){return new e.vHH(3001,!1)}())})}(Xt,S.options,S.errors)})})}visitKeyframes(N,S){const z={type:5,styles:[],options:null};if(!S.currentAnimateTimings)return S.errors.push(function Q(){return new e.vHH(3011,!1)}()),z;let Ee=0;const Mt=[];let Xt=!1,oi=!1,Ci=0;const Zi=N.steps.map(pa=>{const Dr=this._makeStyleAst(pa,S);let to=null!=Dr.offset?Dr.offset:function Ui(R){if("string"==typeof R)return null;let N=null;if(Array.isArray(R))R.forEach(S=>{if(S instanceof Map&&S.has("offset")){const z=S;N=parseFloat(z.get("offset")),z.delete("offset")}});else if(R instanceof Map&&R.has("offset")){const S=R;N=parseFloat(S.get("offset")),S.delete("offset")}return N}(Dr.styles),Ir=0;return null!=to&&(Ee++,Ir=Dr.offset=to),oi=oi||Ir<0||Ir>1,Xt=Xt||Ir0&&Ee{const to=Ln>0?Dr==In?1:Ln*Dr:Mt[Dr],Ir=to*ea;S.currentTime=pn+Cn.delay+Ir,Cn.duration=Ir,this._validateStyleAst(pa,S),pa.offset=to,z.styles.push(pa)}),z}visitReference(N,S){return{type:8,animation:Mi(this,St(N.animation),S),options:Dn(N.options)}}visitAnimateChild(N,S){return S.depCount++,{type:9,options:Dn(N.options)}}visitAnimateRef(N,S){return{type:10,animation:this.visitReference(N.animation,S),options:Dn(N.options)}}visitQuery(N,S){const z=S.currentQuerySelector,U=N.options||{};S.queryCount++,S.currentQuery=N;const[Ee,Mt]=function li(R){const N=!!R.split(/\s*,\s*/).find(S=>":self"==S);return N&&(R=R.replace(Dt,"")),R=R.replace(/@\*/g,je).replace(/@\w+/g,S=>je+"-"+S.slice(1)).replace(/:animating/g,xt),[R,N]}(N.selector);S.currentQuerySelector=z.length?z+" "+Ee:Ee,oe(S.collectedStyles,S.currentQuerySelector,new Map);const Xt=Mi(this,St(N.animation),S);return S.currentQuery=null,S.currentQuerySelector=z,{type:11,selector:Ee,limit:U.limit||0,optional:!!U.optional,includeSelf:Mt,animation:Xt,originalSelector:N.selector,options:Dn(N.options)}}visitStagger(N,S){S.currentQuery||S.errors.push(function re(){return new e.vHH(3013,!1)}());const z="full"===N.timings?{duration:0,delay:0,easing:"full"}:ke(N.timings,S.errors,!0);return{type:12,animation:Mi(this,St(N.animation),S),timings:z,options:null}}}class gi{constructor(N){this.errors=N,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Dn(R){return R?(R=ue(R)).params&&(R.params=function mi(R){return R?ue(R):null}(R.params)):R={},R}function oa(R,N,S){return{duration:R,delay:N,easing:S}}function Ea(R,N,S,z,U,Ee,Mt=null,Xt=!1){return{type:1,element:R,keyframes:N,preStyleProps:S,postStyleProps:z,duration:U,delay:Ee,totalTime:U+Ee,easing:Mt,subTimeline:Xt}}class ta{constructor(){this._map=new Map}get(N){return this._map.get(N)||[]}append(N,S){let z=this._map.get(N);z||this._map.set(N,z=[]),z.push(...S)}has(N){return this._map.has(N)}clear(){this._map.clear()}}const pi=new RegExp(":enter","g"),ri=new RegExp(":leave","g");function xi(R,N,S,z,U,Ee=new Map,Mt=new Map,Xt,oi,Ci=[]){return(new Hi).buildKeyframes(R,N,S,z,U,Ee,Mt,Xt,oi,Ci)}class Hi{buildKeyframes(N,S,z,U,Ee,Mt,Xt,oi,Ci,Zi=[]){Ci=Ci||new ta;const Vi=new Gn(N,S,Ci,U,Ee,Zi,[]);Vi.options=oi;const Ln=oi.delay?Nt(oi.delay):0;Vi.currentTimeline.delayNextStep(Ln),Vi.currentTimeline.setStyles([Mt],null,Vi.errors,oi),Mi(this,z,Vi);const In=Vi.timelines.filter(pn=>pn.containsAnimation());if(In.length&&Xt.size){let pn;for(let Cn=In.length-1;Cn>=0;Cn--){const ea=In[Cn];if(ea.element===S){pn=ea;break}}pn&&!pn.allowOnlyTimelineStyles()&&pn.setStyles([Xt],null,Vi.errors,oi)}return In.length?In.map(pn=>pn.buildKeyframes()):[Ea(S,[],[],[],0,Ln,"",!1)]}visitTrigger(N,S){}visitState(N,S){}visitTransition(N,S){}visitAnimateChild(N,S){const z=S.subInstructions.get(S.element);if(z){const U=S.createSubContext(N.options),Ee=S.currentTimeline.currentTime,Mt=this._visitSubInstructions(z,U,U.options);Ee!=Mt&&S.transformIntoNewTimeline(Mt)}S.previousNode=N}visitAnimateRef(N,S){const z=S.createSubContext(N.options);z.transformIntoNewTimeline(),this._applyAnimationRefDelays([N.options,N.animation.options],S,z),this.visitReference(N.animation,z),S.transformIntoNewTimeline(z.currentTimeline.currentTime),S.previousNode=N}_applyAnimationRefDelays(N,S,z){for(const U of N){const Ee=U?.delay;if(Ee){const Mt="number"==typeof Ee?Ee:Nt(vt(Ee,U?.params??{},S.errors));z.delayNextStep(Mt)}}}_visitSubInstructions(N,S,z){let Ee=S.currentTimeline.currentTime;const Mt=null!=z.duration?Nt(z.duration):null,Xt=null!=z.delay?Nt(z.delay):null;return 0!==Mt&&N.forEach(oi=>{const Ci=S.appendInstructionToTimeline(oi,Mt,Xt);Ee=Math.max(Ee,Ci.duration+Ci.delay)}),Ee}visitReference(N,S){S.updateOptions(N.options,!0),Mi(this,N.animation,S),S.previousNode=N}visitSequence(N,S){const z=S.subContextCount;let U=S;const Ee=N.options;if(Ee&&(Ee.params||Ee.delay)&&(U=S.createSubContext(Ee),U.transformIntoNewTimeline(),null!=Ee.delay)){6==U.previousNode.type&&(U.currentTimeline.snapshotCurrentStyles(),U.previousNode=ln);const Mt=Nt(Ee.delay);U.delayNextStep(Mt)}N.steps.length&&(N.steps.forEach(Mt=>Mi(this,Mt,U)),U.currentTimeline.applyStylesToKeyframe(),U.subContextCount>z&&U.transformIntoNewTimeline()),S.previousNode=N}visitGroup(N,S){const z=[];let U=S.currentTimeline.currentTime;const Ee=N.options&&N.options.delay?Nt(N.options.delay):0;N.steps.forEach(Mt=>{const Xt=S.createSubContext(N.options);Ee&&Xt.delayNextStep(Ee),Mi(this,Mt,Xt),U=Math.max(U,Xt.currentTimeline.currentTime),z.push(Xt.currentTimeline)}),z.forEach(Mt=>S.currentTimeline.mergeTimelineCollectedStyles(Mt)),S.transformIntoNewTimeline(U),S.previousNode=N}_visitTiming(N,S){if(N.dynamic){const z=N.strValue;return ke(S.params?vt(z,S.params,S.errors):z,S.errors)}return{duration:N.duration,delay:N.delay,easing:N.easing}}visitAnimate(N,S){const z=S.currentAnimateTimings=this._visitTiming(N.timings,S),U=S.currentTimeline;z.delay&&(S.incrementTime(z.delay),U.snapshotCurrentStyles());const Ee=N.style;5==Ee.type?this.visitKeyframes(Ee,S):(S.incrementTime(z.duration),this.visitStyle(Ee,S),U.applyStylesToKeyframe()),S.currentAnimateTimings=null,S.previousNode=N}visitStyle(N,S){const z=S.currentTimeline,U=S.currentAnimateTimings;!U&&z.hasCurrentStyleProperties()&&z.forwardFrame();const Ee=U&&U.easing||N.easing;N.isEmptyStep?z.applyEmptyStep(Ee):z.setStyles(N.styles,Ee,S.errors,S.options),S.previousNode=N}visitKeyframes(N,S){const z=S.currentAnimateTimings,U=S.currentTimeline.duration,Ee=z.duration,Xt=S.createSubContext().currentTimeline;Xt.easing=z.easing,N.styles.forEach(oi=>{Xt.forwardTime((oi.offset||0)*Ee),Xt.setStyles(oi.styles,oi.easing,S.errors,S.options),Xt.applyStylesToKeyframe()}),S.currentTimeline.mergeTimelineCollectedStyles(Xt),S.transformIntoNewTimeline(U+Ee),S.previousNode=N}visitQuery(N,S){const z=S.currentTimeline.currentTime,U=N.options||{},Ee=U.delay?Nt(U.delay):0;Ee&&(6===S.previousNode.type||0==z&&S.currentTimeline.hasCurrentStyleProperties())&&(S.currentTimeline.snapshotCurrentStyles(),S.previousNode=ln);let Mt=z;const Xt=S.invokeQuery(N.selector,N.originalSelector,N.limit,N.includeSelf,!!U.optional,S.errors);S.currentQueryTotal=Xt.length;let oi=null;Xt.forEach((Ci,Zi)=>{S.currentQueryIndex=Zi;const Vi=S.createSubContext(N.options,Ci);Ee&&Vi.delayNextStep(Ee),Ci===S.element&&(oi=Vi.currentTimeline),Mi(this,N.animation,Vi),Vi.currentTimeline.applyStylesToKeyframe(),Mt=Math.max(Mt,Vi.currentTimeline.currentTime)}),S.currentQueryIndex=0,S.currentQueryTotal=0,S.transformIntoNewTimeline(Mt),oi&&(S.currentTimeline.mergeTimelineCollectedStyles(oi),S.currentTimeline.snapshotCurrentStyles()),S.previousNode=N}visitStagger(N,S){const z=S.parentContext,U=S.currentTimeline,Ee=N.timings,Mt=Math.abs(Ee.duration),Xt=Mt*(S.currentQueryTotal-1);let oi=Mt*S.currentQueryIndex;switch(Ee.duration<0?"reverse":Ee.easing){case"reverse":oi=Xt-oi;break;case"full":oi=z.currentStaggerTime}const Zi=S.currentTimeline;oi&&Zi.delayNextStep(oi);const Vi=Zi.currentTime;Mi(this,N.animation,S),S.previousNode=N,z.currentStaggerTime=U.currentTime-Vi+(U.startTime-z.currentTimeline.startTime)}}const ln={};class Gn{constructor(N,S,z,U,Ee,Mt,Xt,oi){this._driver=N,this.element=S,this.subInstructions=z,this._enterClassName=U,this._leaveClassName=Ee,this.errors=Mt,this.timelines=Xt,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ln,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=oi||new Hn(this._driver,S,0),Xt.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(N,S){if(!N)return;const z=N;let U=this.options;null!=z.duration&&(U.duration=Nt(z.duration)),null!=z.delay&&(U.delay=Nt(z.delay));const Ee=z.params;if(Ee){let Mt=U.params;Mt||(Mt=this.options.params={}),Object.keys(Ee).forEach(Xt=>{(!S||!Mt.hasOwnProperty(Xt))&&(Mt[Xt]=vt(Ee[Xt],Mt,this.errors))})}}_copyOptions(){const N={};if(this.options){const S=this.options.params;if(S){const z=N.params={};Object.keys(S).forEach(U=>{z[U]=S[U]})}}return N}createSubContext(N=null,S,z){const U=S||this.element,Ee=new Gn(this._driver,U,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(U,z||0));return Ee.previousNode=this.previousNode,Ee.currentAnimateTimings=this.currentAnimateTimings,Ee.options=this._copyOptions(),Ee.updateOptions(N),Ee.currentQueryIndex=this.currentQueryIndex,Ee.currentQueryTotal=this.currentQueryTotal,Ee.parentContext=this,this.subContextCount++,Ee}transformIntoNewTimeline(N){return this.previousNode=ln,this.currentTimeline=this.currentTimeline.fork(this.element,N),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(N,S,z){const U={duration:S??N.duration,delay:this.currentTimeline.currentTime+(z??0)+N.delay,easing:""},Ee=new _a(this._driver,N.element,N.keyframes,N.preStyleProps,N.postStyleProps,U,N.stretchStartingKeyframe);return this.timelines.push(Ee),U}incrementTime(N){this.currentTimeline.forwardTime(this.currentTimeline.duration+N)}delayNextStep(N){N>0&&this.currentTimeline.delayNextStep(N)}invokeQuery(N,S,z,U,Ee,Mt){let Xt=[];if(U&&Xt.push(this.element),N.length>0){N=(N=N.replace(pi,"."+this._enterClassName)).replace(ri,"."+this._leaveClassName);let Ci=this._driver.query(this.element,N,1!=z);0!==z&&(Ci=z<0?Ci.slice(Ci.length+z,Ci.length):Ci.slice(0,z)),Xt.push(...Ci)}return!Ee&&0==Xt.length&&Mt.push(function ie(R){return new e.vHH(3014,!1)}()),Xt}}class Hn{constructor(N,S,z,U){this._driver=N,this.element=S,this.startTime=z,this._elementTimelineStylesLookup=U,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(S),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(S,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(N){const S=1===this._keyframes.size&&this._pendingStyles.size;this.duration||S?(this.forwardTime(this.currentTime+N),S&&this.snapshotCurrentStyles()):this.startTime+=N}fork(N,S){return this.applyStylesToKeyframe(),new Hn(this._driver,N,S||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(N){this.applyStylesToKeyframe(),this.duration=N,this._loadKeyframe()}_updateStyle(N,S){this._localTimelineStyles.set(N,S),this._globalTimelineStyles.set(N,S),this._styleSummary.set(N,{time:this.currentTime,value:S})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(N){N&&this._previousKeyframe.set("easing",N);for(let[S,z]of this._globalTimelineStyles)this._backFill.set(S,z||_.l3),this._currentKeyframe.set(S,_.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(N,S,z,U){S&&this._previousKeyframe.set("easing",S);const Ee=U&&U.params||{},Mt=function Vn(R,N){const S=new Map;let z;return R.forEach(U=>{if("*"===U){z=z||N.keys();for(let Ee of z)S.set(Ee,_.l3)}else Vt(U,S)}),S}(N,this._globalTimelineStyles);for(let[Xt,oi]of Mt){const Ci=vt(oi,Ee,z);this._pendingStyles.set(Xt,Ci),this._localTimelineStyles.has(Xt)||this._backFill.set(Xt,this._globalTimelineStyles.get(Xt)??_.l3),this._updateStyle(Xt,Ci)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((N,S)=>{this._currentKeyframe.set(S,N)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((N,S)=>{this._currentKeyframe.has(S)||this._currentKeyframe.set(S,N)}))}snapshotCurrentStyles(){for(let[N,S]of this._localTimelineStyles)this._pendingStyles.set(N,S),this._updateStyle(N,S)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const N=[];for(let S in this._currentKeyframe)N.push(S);return N}mergeTimelineCollectedStyles(N){N._styleSummary.forEach((S,z)=>{const U=this._styleSummary.get(z);(!U||S.time>U.time)&&this._updateStyle(z,S.value)})}buildKeyframes(){this.applyStylesToKeyframe();const N=new Set,S=new Set,z=1===this._keyframes.size&&0===this.duration;let U=[];this._keyframes.forEach((Xt,oi)=>{const Ci=Vt(Xt,new Map,this._backFill);Ci.forEach((Zi,Vi)=>{Zi===_.k1?N.add(Vi):Zi===_.l3&&S.add(Vi)}),z||Ci.set("offset",oi/this.duration),U.push(Ci)});const Ee=N.size?He(N.values()):[],Mt=S.size?He(S.values()):[];if(z){const Xt=U[0],oi=new Map(Xt);Xt.set("offset",0),oi.set("offset",1),U=[Xt,oi]}return Ea(this.element,U,Ee,Mt,this.duration,this.startTime,this.easing,!1)}}class _a extends Hn{constructor(N,S,z,U,Ee,Mt,Xt=!1){super(N,S,Mt.delay),this.keyframes=z,this.preStyleProps=U,this.postStyleProps=Ee,this._stretchStartingKeyframe=Xt,this.timings={duration:Mt.duration,delay:Mt.delay,easing:Mt.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let N=this.keyframes,{delay:S,duration:z,easing:U}=this.timings;if(this._stretchStartingKeyframe&&S){const Ee=[],Mt=z+S,Xt=S/Mt,oi=Vt(N[0]);oi.set("offset",0),Ee.push(oi);const Ci=Vt(N[0]);Ci.set("offset",Tn(Xt)),Ee.push(Ci);const Zi=N.length-1;for(let Vi=1;Vi<=Zi;Vi++){let Ln=Vt(N[Vi]);const In=Ln.get("offset");Ln.set("offset",Tn((S+In*z)/Mt)),Ee.push(Ln)}z=Mt,S=0,U="",N=Ee}return Ea(this.element,N,this.preStyleProps,this.postStyleProps,z,S,U,!0)}}function Tn(R,N=3){const S=Math.pow(10,N-1);return Math.round(R*S)/S}class zn{}const Co=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Pr extends zn{normalizePropertyName(N,S){return At(N)}normalizeStyleValue(N,S,z,U){let Ee="";const Mt=z.toString().trim();if(Co.has(S)&&0!==z&&"0"!==z)if("number"==typeof z)Ee="px";else{const Xt=z.match(/^[+-]?[\d\.]+([a-z]*)$/);Xt&&0==Xt[1].length&&U.push(function C(R,N){return new e.vHH(3005,!1)}())}return Mt+Ee}}function xr(R,N,S,z,U,Ee,Mt,Xt,oi,Ci,Zi,Vi,Ln){return{type:0,element:R,triggerName:N,isRemovalTransition:U,fromState:S,fromStyles:Ee,toState:z,toStyles:Mt,timelines:Xt,queriedElements:oi,preStyleProps:Ci,postStyleProps:Zi,totalTime:Vi,errors:Ln}}const jn={};class Ta{constructor(N,S,z){this._triggerName=N,this.ast=S,this._stateStyles=z}match(N,S,z,U){return function Rr(R,N,S,z,U){return R.some(Ee=>Ee(N,S,z,U))}(this.ast.matchers,N,S,z,U)}buildStyles(N,S,z){let U=this._stateStyles.get("*");return void 0!==N&&(U=this._stateStyles.get(N?.toString())||U),U?U.buildStyles(S,z):new Map}build(N,S,z,U,Ee,Mt,Xt,oi,Ci,Zi){const Vi=[],Ln=this.ast.options&&this.ast.options.params||jn,pn=this.buildStyles(z,Xt&&Xt.params||jn,Vi),Cn=oi&&oi.params||jn,ea=this.buildStyles(U,Cn,Vi),pa=new Set,Dr=new Map,to=new Map,Ir="void"===U,Ec={params:Nr(Cn,Ln),delay:this.ast.options?.delay},as=Zi?[]:xi(N,S,this.ast.animation,Ee,Mt,pn,ea,Ec,Ci,Vi);let kr=0;if(as.forEach(Qo=>{kr=Math.max(Qo.duration+Qo.delay,kr)}),Vi.length)return xr(S,this._triggerName,z,U,Ir,pn,ea,[],[],Dr,to,kr,Vi);as.forEach(Qo=>{const ws=Qo.element,kh=oe(Dr,ws,new Set);Qo.preStyleProps.forEach(ac=>kh.add(ac));const rs=oe(to,ws,new Set);Qo.postStyleProps.forEach(ac=>rs.add(ac)),ws!==S&&pa.add(ws)});const nc=He(pa.values());return xr(S,this._triggerName,z,U,Ir,pn,ea,as,nc,Dr,to,kr)}}function Nr(R,N){const S=ue(N);for(const z in R)R.hasOwnProperty(z)&&null!=R[z]&&(S[z]=R[z]);return S}class Yr{constructor(N,S,z){this.styles=N,this.defaultParams=S,this.normalizer=z}buildStyles(N,S){const z=new Map,U=ue(this.defaultParams);return Object.keys(N).forEach(Ee=>{const Mt=N[Ee];null!==Mt&&(U[Ee]=Mt)}),this.styles.styles.forEach(Ee=>{"string"!=typeof Ee&&Ee.forEach((Mt,Xt)=>{Mt&&(Mt=vt(Mt,U,S));const oi=this.normalizer.normalizePropertyName(Xt,S);Mt=this.normalizer.normalizeStyleValue(Xt,oi,Mt,S),z.set(Xt,Mt)})}),z}}class wa{constructor(N,S,z){this.name=N,this.ast=S,this._normalizer=z,this.transitionFactories=[],this.states=new Map,S.states.forEach(U=>{this.states.set(U.name,new Yr(U.style,U.options&&U.options.params||{},z))}),no(this.states,"true","1"),no(this.states,"false","0"),S.transitions.forEach(U=>{this.transitionFactories.push(new Ta(N,U,this.states))}),this.fallbackTransition=function Io(R,N,S){return new Ta(R,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Mt,Xt)=>!0],options:null,queryCount:0,depCount:0},N)}(N,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(N,S,z,U){return this.transitionFactories.find(Mt=>Mt.match(N,S,z,U))||null}matchStyles(N,S,z){return this.fallbackTransition.buildStyles(N,S,z)}}function no(R,N,S){R.has(N)?R.has(S)||R.set(S,R.get(N)):R.has(S)&&R.set(N,R.get(S))}const jr=new ta;class pr{constructor(N,S,z){this.bodyNode=N,this._driver=S,this._normalizer=z,this._animations=new Map,this._playersById=new Map,this.players=[]}register(N,S){const z=[],U=[],Ee=Bt(this._driver,S,z,U);if(z.length)throw function f(R){return new e.vHH(3503,!1)}();this._animations.set(N,Ee)}_buildPlayer(N,S,z){const U=N.element,Ee=ye(0,this._normalizer,0,N.keyframes,S,z);return this._driver.animate(U,Ee,N.duration,N.delay,N.easing,[],!0)}create(N,S,z={}){const U=[],Ee=this._animations.get(N);let Mt;const Xt=new Map;if(Ee?(Mt=xi(this._driver,S,Ee,mt,Tt,new Map,new Map,z,jr,U),Mt.forEach(Zi=>{const Vi=oe(Xt,Zi.element,new Map);Zi.postStyleProps.forEach(Ln=>Vi.set(Ln,null))})):(U.push(function l(){return new e.vHH(3300,!1)}()),Mt=[]),U.length)throw function v(R){return new e.vHH(3504,!1)}();Xt.forEach((Zi,Vi)=>{Zi.forEach((Ln,In)=>{Zi.set(In,this._driver.computeStyle(Vi,In,_.l3))})});const Ci=at(Mt.map(Zi=>{const Vi=Xt.get(Zi.element);return this._buildPlayer(Zi,new Map,Vi)}));return this._playersById.set(N,Ci),Ci.onDestroy(()=>this.destroy(N)),this.players.push(Ci),Ci}destroy(N){const S=this._getPlayer(N);S.destroy(),this._playersById.delete(N);const z=this.players.indexOf(S);z>=0&&this.players.splice(z,1)}_getPlayer(N){const S=this._playersById.get(N);if(!S)throw function I(R){return new e.vHH(3301,!1)}();return S}listen(N,S,z,U){const Ee=Oe(S,"","","");return xe(this._getPlayer(N),z,Ee,U),()=>{}}command(N,S,z,U){if("register"==z)return void this.register(N,U[0]);if("create"==z)return void this.create(N,S,U[0]||{});const Ee=this._getPlayer(N);switch(z){case"play":Ee.play();break;case"pause":Ee.pause();break;case"reset":Ee.reset();break;case"restart":Ee.restart();break;case"finish":Ee.finish();break;case"init":Ee.init();break;case"setPosition":Ee.setPosition(parseFloat(U[0]));break;case"destroy":this.destroy(N)}}}const or="ng-animate-queued",ro="ng-animate-disabled",Fr=[],Wa={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Hr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},sa="__ng_removed";class za{get params(){return this.options.params}constructor(N,S=""){this.namespaceId=S;const z=N&&N.hasOwnProperty("value");if(this.value=function qr(R){return R??null}(z?N.value:N),z){const Ee=ue(N);delete Ee.value,this.options=Ee}else this.options={};this.options.params||(this.options.params={})}absorbOptions(N){const S=N.params;if(S){const z=this.options.params;Object.keys(S).forEach(U=>{null==z[U]&&(z[U]=S[U])})}}}const sr="void",gr=new za(sr);class Cr{constructor(N,S,z){this.id=N,this.hostElement=S,this._engine=z,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+N,Qn(S,this._hostClassName)}listen(N,S,z,U){if(!this._triggers.has(S))throw function k(R,N){return new e.vHH(3302,!1)}();if(null==z||0==z.length)throw function x(R){return new e.vHH(3303,!1)}();if(!function Po(R){return"start"==R||"done"==R}(z))throw function n(R,N){return new e.vHH(3400,!1)}();const Ee=oe(this._elementListeners,N,[]),Mt={name:S,phase:z,callback:U};Ee.push(Mt);const Xt=oe(this._engine.statesByElement,N,new Map);return Xt.has(S)||(Qn(N,it),Qn(N,it+"-"+S),Xt.set(S,gr)),()=>{this._engine.afterFlush(()=>{const oi=Ee.indexOf(Mt);oi>=0&&Ee.splice(oi,1),this._triggers.has(S)||Xt.delete(S)})}}register(N,S){return!this._triggers.has(N)&&(this._triggers.set(N,S),!0)}_getTrigger(N){const S=this._triggers.get(N);if(!S)throw function g(R){return new e.vHH(3401,!1)}();return S}trigger(N,S,z,U=!0){const Ee=this._getTrigger(S),Mt=new oo(this.id,S,N);let Xt=this._engine.statesByElement.get(N);Xt||(Qn(N,it),Qn(N,it+"-"+S),this._engine.statesByElement.set(N,Xt=new Map));let oi=Xt.get(S);const Ci=new za(z,this.id);if(!(z&&z.hasOwnProperty("value"))&&oi&&Ci.absorbOptions(oi.options),Xt.set(S,Ci),oi||(oi=gr),Ci.value!==sr&&oi.value===Ci.value){if(!function Ro(R,N){const S=Object.keys(R),z=Object.keys(N);if(S.length!=z.length)return!1;for(let U=0;U{ft(N,ea),ot(N,pa)})}return}const Ln=oe(this._engine.playersByElement,N,[]);Ln.forEach(Cn=>{Cn.namespaceId==this.id&&Cn.triggerName==S&&Cn.queued&&Cn.destroy()});let In=Ee.matchTransition(oi.value,Ci.value,N,Ci.params),pn=!1;if(!In){if(!U)return;In=Ee.fallbackTransition,pn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:N,triggerName:S,transition:In,fromState:oi,toState:Ci,player:Mt,isFallbackTransition:pn}),pn||(Qn(N,or),Mt.onStart(()=>{On(N,or)})),Mt.onDone(()=>{let Cn=this.players.indexOf(Mt);Cn>=0&&this.players.splice(Cn,1);const ea=this._engine.playersByElement.get(N);if(ea){let pa=ea.indexOf(Mt);pa>=0&&ea.splice(pa,1)}}),this.players.push(Mt),Ln.push(Mt),Mt}deregister(N){this._triggers.delete(N),this._engine.statesByElement.forEach(S=>S.delete(N)),this._elementListeners.forEach((S,z)=>{this._elementListeners.set(z,S.filter(U=>U.name!=N))})}clearElementCache(N){this._engine.statesByElement.delete(N),this._elementListeners.delete(N);const S=this._engine.playersByElement.get(N);S&&(S.forEach(z=>z.destroy()),this._engine.playersByElement.delete(N))}_signalRemovalForInnerTriggers(N,S){const z=this._engine.driver.query(N,je,!0);z.forEach(U=>{if(U[sa])return;const Ee=this._engine.fetchNamespacesByElement(U);Ee.size?Ee.forEach(Mt=>Mt.triggerLeaveAnimation(U,S,!1,!0)):this.clearElementCache(U)}),this._engine.afterFlushAnimationsDone(()=>z.forEach(U=>this.clearElementCache(U)))}triggerLeaveAnimation(N,S,z,U){const Ee=this._engine.statesByElement.get(N),Mt=new Map;if(Ee){const Xt=[];if(Ee.forEach((oi,Ci)=>{if(Mt.set(Ci,oi.value),this._triggers.has(Ci)){const Zi=this.trigger(N,Ci,sr,U);Zi&&Xt.push(Zi)}}),Xt.length)return this._engine.markElementAsRemoved(this.id,N,!0,S,Mt),z&&at(Xt).onDone(()=>this._engine.processLeaveNode(N)),!0}return!1}prepareLeaveAnimationListeners(N){const S=this._elementListeners.get(N),z=this._engine.statesByElement.get(N);if(S&&z){const U=new Set;S.forEach(Ee=>{const Mt=Ee.name;if(U.has(Mt))return;U.add(Mt);const oi=this._triggers.get(Mt).fallbackTransition,Ci=z.get(Mt)||gr,Zi=new za(sr),Vi=new oo(this.id,Mt,N);this._engine.totalQueuedPlayers++,this._queue.push({element:N,triggerName:Mt,transition:oi,fromState:Ci,toState:Zi,player:Vi,isFallbackTransition:!0})})}}removeNode(N,S){const z=this._engine;if(N.childElementCount&&this._signalRemovalForInnerTriggers(N,S),this.triggerLeaveAnimation(N,S,!0))return;let U=!1;if(z.totalAnimations){const Ee=z.players.length?z.playersByQueriedElement.get(N):[];if(Ee&&Ee.length)U=!0;else{let Mt=N;for(;Mt=Mt.parentNode;)if(z.statesByElement.get(Mt)){U=!0;break}}}if(this.prepareLeaveAnimationListeners(N),U)z.markElementAsRemoved(this.id,N,!1,S);else{const Ee=N[sa];(!Ee||Ee===Wa)&&(z.afterFlush(()=>this.clearElementCache(N)),z.destroyInnerAnimations(N),z._onRemovalComplete(N,S))}}insertNode(N,S){Qn(N,this._hostClassName)}drainQueuedTransitions(N){const S=[];return this._queue.forEach(z=>{const U=z.player;if(U.destroyed)return;const Ee=z.element,Mt=this._elementListeners.get(Ee);Mt&&Mt.forEach(Xt=>{if(Xt.name==z.triggerName){const oi=Oe(Ee,z.triggerName,z.fromState.value,z.toState.value);oi._data=N,xe(z.player,Xt.phase,oi,Xt.callback)}}),U.markedForDestroy?this._engine.afterFlush(()=>{U.destroy()}):S.push(z)}),this._queue=[],S.sort((z,U)=>{const Ee=z.transition.ast.depCount,Mt=U.transition.ast.depCount;return 0==Ee||0==Mt?Ee-Mt:this._engine.driver.containsElement(z.element,U.element)?1:-1})}destroy(N){this.players.forEach(S=>S.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,N)}elementContainsData(N){let S=!1;return this._elementListeners.has(N)&&(S=!0),S=!!this._queue.find(z=>z.element===N)||S,S}}class Oo{_onRemovalComplete(N,S){this.onRemovalComplete(N,S)}constructor(N,S,z){this.bodyNode=N,this.driver=S,this._normalizer=z,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=(U,Ee)=>{}}get queuedPlayers(){const N=[];return this._namespaceList.forEach(S=>{S.players.forEach(z=>{z.queued&&N.push(z)})}),N}createNamespace(N,S){const z=new Cr(N,S,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,S)?this._balanceNamespaceList(z,S):(this.newHostElements.set(S,z),this.collectEnterElement(S)),this._namespaceLookup[N]=z}_balanceNamespaceList(N,S){const z=this._namespaceList,U=this.namespacesByHostElement;if(z.length-1>=0){let Mt=!1,Xt=this.driver.getParentElement(S);for(;Xt;){const oi=U.get(Xt);if(oi){const Ci=z.indexOf(oi);z.splice(Ci+1,0,N),Mt=!0;break}Xt=this.driver.getParentElement(Xt)}Mt||z.unshift(N)}else z.push(N);return U.set(S,N),N}register(N,S){let z=this._namespaceLookup[N];return z||(z=this.createNamespace(N,S)),z}registerTrigger(N,S,z){let U=this._namespaceLookup[N];U&&U.register(S,z)&&this.totalAnimations++}destroy(N,S){if(!N)return;const z=this._fetchNamespace(N);this.afterFlush(()=>{this.namespacesByHostElement.delete(z.hostElement),delete this._namespaceLookup[N];const U=this._namespaceList.indexOf(z);U>=0&&this._namespaceList.splice(U,1)}),this.afterFlushAnimationsDone(()=>z.destroy(S))}_fetchNamespace(N){return this._namespaceLookup[N]}fetchNamespacesByElement(N){const S=new Set,z=this.statesByElement.get(N);if(z)for(let U of z.values())if(U.namespaceId){const Ee=this._fetchNamespace(U.namespaceId);Ee&&S.add(Ee)}return S}trigger(N,S,z,U){if(cr(S)){const Ee=this._fetchNamespace(N);if(Ee)return Ee.trigger(S,z,U),!0}return!1}insertNode(N,S,z,U){if(!cr(S))return;const Ee=S[sa];if(Ee&&Ee.setForRemoval){Ee.setForRemoval=!1,Ee.setForMove=!0;const Mt=this.collectedLeaveElements.indexOf(S);Mt>=0&&this.collectedLeaveElements.splice(Mt,1)}if(N){const Mt=this._fetchNamespace(N);Mt&&Mt.insertNode(S,z)}U&&this.collectEnterElement(S)}collectEnterElement(N){this.collectedEnterElements.push(N)}markElementAsDisabled(N,S){S?this.disabledNodes.has(N)||(this.disabledNodes.add(N),Qn(N,ro)):this.disabledNodes.has(N)&&(this.disabledNodes.delete(N),On(N,ro))}removeNode(N,S,z,U){if(cr(S)){const Ee=N?this._fetchNamespace(N):null;if(Ee?Ee.removeNode(S,U):this.markElementAsRemoved(N,S,!1,U),z){const Mt=this.namespacesByHostElement.get(S);Mt&&Mt.id!==N&&Mt.removeNode(S,U)}}else this._onRemovalComplete(S,U)}markElementAsRemoved(N,S,z,U,Ee){this.collectedLeaveElements.push(S),S[sa]={namespaceId:N,setForRemoval:U,hasAnimation:z,removedBeforeQueried:!1,previousTriggersValues:Ee}}listen(N,S,z,U,Ee){return cr(S)?this._fetchNamespace(N).listen(S,z,U,Ee):()=>{}}_buildInstruction(N,S,z,U,Ee){return N.transition.build(this.driver,N.element,N.fromState.value,N.toState.value,z,U,N.fromState.options,N.toState.options,S,Ee)}destroyInnerAnimations(N){let S=this.driver.query(N,je,!0);S.forEach(z=>this.destroyActiveAnimationsForElement(z)),0!=this.playersByQueriedElement.size&&(S=this.driver.query(N,xt,!0),S.forEach(z=>this.finishActiveQueriedAnimationOnElement(z)))}destroyActiveAnimationsForElement(N){const S=this.playersByElement.get(N);S&&S.forEach(z=>{z.queued?z.markedForDestroy=!0:z.destroy()})}finishActiveQueriedAnimationOnElement(N){const S=this.playersByQueriedElement.get(N);S&&S.forEach(z=>z.finish())}whenRenderingDone(){return new Promise(N=>{if(this.players.length)return at(this.players).onDone(()=>N());N()})}processLeaveNode(N){const S=N[sa];if(S&&S.setForRemoval){if(N[sa]=Wa,S.namespaceId){this.destroyInnerAnimations(N);const z=this._fetchNamespace(S.namespaceId);z&&z.clearElementCache(N)}this._onRemovalComplete(N,S.setForRemoval)}N.classList?.contains(ro)&&this.markElementAsDisabled(N,!1),this.driver.query(N,".ng-animate-disabled",!0).forEach(z=>{this.markElementAsDisabled(z,!1)})}flush(N=-1){let S=[];if(this.newHostElements.size&&(this.newHostElements.forEach((z,U)=>this._balanceNamespaceList(z,U)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let z=0;zz()),this._flushFns=[],this._whenQuietFns.length){const z=this._whenQuietFns;this._whenQuietFns=[],S.length?at(S).onDone(()=>{z.forEach(U=>U())}):z.forEach(U=>U())}}reportError(N){throw function W(R){return new e.vHH(3402,!1)}()}_flushAnimations(N,S){const z=new ta,U=[],Ee=new Map,Mt=[],Xt=new Map,oi=new Map,Ci=new Map,Zi=new Set;this.disabledNodes.forEach(fn=>{Zi.add(fn);const yn=this.driver.query(fn,".ng-animate-queued",!0);for(let wn=0;wn{const wn=mt+Cn++;pn.set(yn,wn),fn.forEach(Xn=>Qn(Xn,wn))});const ea=[],pa=new Set,Dr=new Set;for(let fn=0;fnpa.add(Xn)):Dr.add(yn))}const to=new Map,Ir=wr(Ln,Array.from(pa));Ir.forEach((fn,yn)=>{const wn=Tt+Cn++;to.set(yn,wn),fn.forEach(Xn=>Qn(Xn,wn))}),N.push(()=>{In.forEach((fn,yn)=>{const wn=pn.get(yn);fn.forEach(Xn=>On(Xn,wn))}),Ir.forEach((fn,yn)=>{const wn=to.get(yn);fn.forEach(Xn=>On(Xn,wn))}),ea.forEach(fn=>{this.processLeaveNode(fn)})});const Ec=[],as=[];for(let fn=this._namespaceList.length-1;fn>=0;fn--)this._namespaceList[fn].drainQueuedTransitions(S).forEach(wn=>{const Xn=wn.player,qa=wn.element;if(Ec.push(Xn),this.collectedEnterElements.length){const Ur=qa[sa];if(Ur&&Ur.setForMove){if(Ur.previousTriggersValues&&Ur.previousTriggersValues.has(wn.triggerName)){const Ms=Ur.previousTriggersValues.get(wn.triggerName),Vo=this.statesByElement.get(wn.element);if(Vo&&Vo.has(wn.triggerName)){const S1=Vo.get(wn.triggerName);S1.value=Ms,Vo.set(wn.triggerName,S1)}}return void Xn.destroy()}}const Ao=!Vi||!this.driver.containsElement(Vi,qa),go=to.get(qa),os=pn.get(qa),Oa=this._buildInstruction(wn,z,os,go,Ao);if(Oa.errors&&Oa.errors.length)return void as.push(Oa);if(Ao)return Xn.onStart(()=>ft(qa,Oa.fromStyles)),Xn.onDestroy(()=>ot(qa,Oa.toStyles)),void U.push(Xn);if(wn.isFallbackTransition)return Xn.onStart(()=>ft(qa,Oa.fromStyles)),Xn.onDestroy(()=>ot(qa,Oa.toStyles)),void U.push(Xn);const M1=[];Oa.timelines.forEach(Ur=>{Ur.stretchStartingKeyframe=!0,this.disabledNodes.has(Ur.element)||M1.push(Ur)}),Oa.timelines=M1,z.append(qa,Oa.timelines),Mt.push({instruction:Oa,player:Xn,element:qa}),Oa.queriedElements.forEach(Ur=>oe(Xt,Ur,[]).push(Xn)),Oa.preStyleProps.forEach((Ur,Ms)=>{if(Ur.size){let Vo=oi.get(Ms);Vo||oi.set(Ms,Vo=new Set),Ur.forEach((S1,l0)=>Vo.add(l0))}}),Oa.postStyleProps.forEach((Ur,Ms)=>{let Vo=Ci.get(Ms);Vo||Ci.set(Ms,Vo=new Set),Ur.forEach((S1,l0)=>Vo.add(l0))})});if(as.length){const fn=[];as.forEach(yn=>{fn.push(function G(R,N){return new e.vHH(3505,!1)}())}),Ec.forEach(yn=>yn.destroy()),this.reportError(fn)}const kr=new Map,nc=new Map;Mt.forEach(fn=>{const yn=fn.element;z.has(yn)&&(nc.set(yn,yn),this._beforeAnimationBuild(fn.player.namespaceId,fn.instruction,kr))}),U.forEach(fn=>{const yn=fn.element;this._getPreviousPlayers(yn,!1,fn.namespaceId,fn.triggerName,null).forEach(Xn=>{oe(kr,yn,[]).push(Xn),Xn.destroy()})});const Qo=ea.filter(fn=>Ft(fn,oi,Ci)),ws=new Map;Va(ws,this.driver,Dr,Ci,_.l3).forEach(fn=>{Ft(fn,oi,Ci)&&Qo.push(fn)});const rs=new Map;In.forEach((fn,yn)=>{Va(rs,this.driver,new Set(fn),oi,_.k1)}),Qo.forEach(fn=>{const yn=ws.get(fn),wn=rs.get(fn);ws.set(fn,new Map([...Array.from(yn?.entries()??[]),...Array.from(wn?.entries()??[])]))});const ac=[],c0=[],Vd={};Mt.forEach(fn=>{const{element:yn,player:wn,instruction:Xn}=fn;if(z.has(yn)){if(Zi.has(yn))return wn.onDestroy(()=>ot(yn,Xn.toStyles)),wn.disabled=!0,wn.overrideTotalTime(Xn.totalTime),void U.push(wn);let qa=Vd;if(nc.size>1){let go=yn;const os=[];for(;go=go.parentNode;){const Oa=nc.get(go);if(Oa){qa=Oa;break}os.push(go)}os.forEach(Oa=>nc.set(Oa,qa))}const Ao=this._buildAnimation(wn.namespaceId,Xn,kr,Ee,rs,ws);if(wn.setRealPlayer(Ao),qa===Vd)ac.push(wn);else{const go=this.playersByElement.get(qa);go&&go.length&&(wn.parentPlayer=at(go)),U.push(wn)}}else ft(yn,Xn.fromStyles),wn.onDestroy(()=>ot(yn,Xn.toStyles)),c0.push(wn),Zi.has(yn)&&U.push(wn)}),c0.forEach(fn=>{const yn=Ee.get(fn.element);if(yn&&yn.length){const wn=at(yn);fn.setRealPlayer(wn)}}),U.forEach(fn=>{fn.parentPlayer?fn.syncPlayerEvents(fn.parentPlayer):fn.destroy()});for(let fn=0;fn!Ao.destroyed);qa.length?lr(this,yn,qa):this.processLeaveNode(yn)}return ea.length=0,ac.forEach(fn=>{this.players.push(fn),fn.onDone(()=>{fn.destroy();const yn=this.players.indexOf(fn);this.players.splice(yn,1)}),fn.play()}),ac}elementContainsData(N,S){let z=!1;const U=S[sa];return U&&U.setForRemoval&&(z=!0),this.playersByElement.has(S)&&(z=!0),this.playersByQueriedElement.has(S)&&(z=!0),this.statesByElement.has(S)&&(z=!0),this._fetchNamespace(N).elementContainsData(S)||z}afterFlush(N){this._flushFns.push(N)}afterFlushAnimationsDone(N){this._whenQuietFns.push(N)}_getPreviousPlayers(N,S,z,U,Ee){let Mt=[];if(S){const Xt=this.playersByQueriedElement.get(N);Xt&&(Mt=Xt)}else{const Xt=this.playersByElement.get(N);if(Xt){const oi=!Ee||Ee==sr;Xt.forEach(Ci=>{Ci.queued||!oi&&Ci.triggerName!=U||Mt.push(Ci)})}}return(z||U)&&(Mt=Mt.filter(Xt=>!(z&&z!=Xt.namespaceId||U&&U!=Xt.triggerName))),Mt}_beforeAnimationBuild(N,S,z){const Ee=S.element,Mt=S.isRemovalTransition?void 0:N,Xt=S.isRemovalTransition?void 0:S.triggerName;for(const oi of S.timelines){const Ci=oi.element,Zi=Ci!==Ee,Vi=oe(z,Ci,[]);this._getPreviousPlayers(Ci,Zi,Mt,Xt,S.toState).forEach(In=>{const pn=In.getRealPlayer();pn.beforeDestroy&&pn.beforeDestroy(),In.destroy(),Vi.push(In)})}ft(Ee,S.fromStyles)}_buildAnimation(N,S,z,U,Ee,Mt){const Xt=S.triggerName,oi=S.element,Ci=[],Zi=new Set,Vi=new Set,Ln=S.timelines.map(pn=>{const Cn=pn.element;Zi.add(Cn);const ea=Cn[sa];if(ea&&ea.removedBeforeQueried)return new _.ZN(pn.duration,pn.delay);const pa=Cn!==oi,Dr=function Mr(R){const N=[];return ya(R,N),N}((z.get(Cn)||Fr).map(kr=>kr.getRealPlayer())).filter(kr=>!!kr.element&&kr.element===Cn),to=Ee.get(Cn),Ir=Mt.get(Cn),Ec=ye(0,this._normalizer,0,pn.keyframes,to,Ir),as=this._buildPlayer(pn,Ec,Dr);if(pn.subTimeline&&U&&Vi.add(Cn),pa){const kr=new oo(N,Xt,Cn);kr.setRealPlayer(as),Ci.push(kr)}return as});Ci.forEach(pn=>{oe(this.playersByQueriedElement,pn.element,[]).push(pn),pn.onDone(()=>function Qr(R,N,S){let z=R.get(N);if(z){if(z.length){const U=z.indexOf(S);z.splice(U,1)}0==z.length&&R.delete(N)}return z}(this.playersByQueriedElement,pn.element,pn))}),Zi.forEach(pn=>Qn(pn,zt));const In=at(Ln);return In.onDestroy(()=>{Zi.forEach(pn=>On(pn,zt)),ot(oi,S.toStyles)}),Vi.forEach(pn=>{oe(U,pn,[]).push(In)}),In}_buildPlayer(N,S,z){return S.length>0?this.driver.animate(N.element,S,N.duration,N.delay,N.easing,z):new _.ZN(N.duration,N.delay)}}class oo{constructor(N,S,z){this.namespaceId=N,this.triggerName=S,this.element=z,this._player=new _.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(N){this._containsRealPlayer||(this._player=N,this._queuedCallbacks.forEach((S,z)=>{S.forEach(U=>xe(N,z,void 0,U))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(N.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(N){this.totalTime=N}syncPlayerEvents(N){const S=this._player;S.triggerCallback&&N.onStart(()=>S.triggerCallback("start")),N.onDone(()=>this.finish()),N.onDestroy(()=>this.destroy())}_queueEvent(N,S){oe(this._queuedCallbacks,N,[]).push(S)}onDone(N){this.queued&&this._queueEvent("done",N),this._player.onDone(N)}onStart(N){this.queued&&this._queueEvent("start",N),this._player.onStart(N)}onDestroy(N){this.queued&&this._queueEvent("destroy",N),this._player.onDestroy(N)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(N){this.queued||this._player.setPosition(N)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(N){const S=this._player;S.triggerCallback&&S.triggerCallback(N)}}function cr(R){return R&&1===R.nodeType}function wo(R,N){const S=R.style.display;return R.style.display=N??"none",S}function Va(R,N,S,z,U){const Ee=[];S.forEach(oi=>Ee.push(wo(oi)));const Mt=[];z.forEach((oi,Ci)=>{const Zi=new Map;oi.forEach(Vi=>{const Ln=N.computeStyle(Ci,Vi,U);Zi.set(Vi,Ln),(!Ln||0==Ln.length)&&(Ci[sa]=Hr,Mt.push(Ci))}),R.set(Ci,Zi)});let Xt=0;return S.forEach(oi=>wo(oi,Ee[Xt++])),Mt}function wr(R,N){const S=new Map;if(R.forEach(Xt=>S.set(Xt,[])),0==N.length)return S;const z=1,U=new Set(N),Ee=new Map;function Mt(Xt){if(!Xt)return z;let oi=Ee.get(Xt);if(oi)return oi;const Ci=Xt.parentNode;return oi=S.has(Ci)?Ci:U.has(Ci)?z:Mt(Ci),Ee.set(Xt,oi),oi}return N.forEach(Xt=>{const oi=Mt(Xt);oi!==z&&S.get(oi).push(Xt)}),S}function Qn(R,N){R.classList?.add(N)}function On(R,N){R.classList?.remove(N)}function lr(R,N,S){at(S).onDone(()=>R.processLeaveNode(N))}function ya(R,N){for(let S=0;SU.add(Ee)):N.set(R,z),S.delete(R),!0}class hi{constructor(N,S,z){this.bodyNode=N,this._driver=S,this._normalizer=z,this._triggerCache={},this.onRemovalComplete=(U,Ee)=>{},this._transitionEngine=new Oo(N,S,z),this._timelineEngine=new pr(N,S,z),this._transitionEngine.onRemovalComplete=(U,Ee)=>this.onRemovalComplete(U,Ee)}registerTrigger(N,S,z,U,Ee){const Mt=N+"-"+U;let Xt=this._triggerCache[Mt];if(!Xt){const oi=[],Ci=[],Zi=Bt(this._driver,Ee,oi,Ci);if(oi.length)throw function i(R,N){return new e.vHH(3404,!1)}();Xt=function Ia(R,N,S){return new wa(R,N,S)}(U,Zi,this._normalizer),this._triggerCache[Mt]=Xt}this._transitionEngine.registerTrigger(S,U,Xt)}register(N,S){this._transitionEngine.register(N,S)}destroy(N,S){this._transitionEngine.destroy(N,S)}onInsert(N,S,z,U){this._transitionEngine.insertNode(N,S,z,U)}onRemove(N,S,z,U){this._transitionEngine.removeNode(N,S,U||!1,z)}disableAnimations(N,S){this._transitionEngine.markElementAsDisabled(N,S)}process(N,S,z,U){if("@"==z.charAt(0)){const[Ee,Mt]=Fe(z);this._timelineEngine.command(Ee,S,Mt,U)}else this._transitionEngine.trigger(N,S,z,U)}listen(N,S,z,U,Ee){if("@"==z.charAt(0)){const[Mt,Xt]=Fe(z);return this._timelineEngine.listen(Mt,S,Xt,Ee)}return this._transitionEngine.listen(N,S,z,U,Ee)}flush(N=-1){this._transitionEngine.flush(N)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let ai=(()=>{class R{constructor(S,z,U){this._element=S,this._startStyles=z,this._endStyles=U,this._state=0;let Ee=R.initialStylesByElement.get(S);Ee||R.initialStylesByElement.set(S,Ee=new Map),this._initialStyles=Ee}start(){this._state<1&&(this._startStyles&&ot(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ot(this._element,this._initialStyles),this._endStyles&&(ot(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(R.initialStylesByElement.delete(this._element),this._startStyles&&(ft(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ft(this._element,this._endStyles),this._endStyles=null),ot(this._element,this._initialStyles),this._state=3)}}return R.initialStylesByElement=new WeakMap,R})();function Ii(R){let N=null;return R.forEach((S,z)=>{(function nn(R){return"display"===R||"position"===R})(z)&&(N=N||new Map,N.set(z,S))}),N}class aa{constructor(N,S,z,U){this.element=N,this.keyframes=S,this.options=z,this._specialStyles=U,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=z.duration,this._delay=z.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(N=>N()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const N=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,N,this.options),this._finalKeyframe=N.length?N[N.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(N){const S=[];return N.forEach(z=>{S.push(Object.fromEntries(z))}),S}_triggerWebAnimation(N,S,z){return N.animate(this._convertKeyframesToObject(S),z)}onStart(N){this._originalOnStartFns.push(N),this._onStartFns.push(N)}onDone(N){this._originalOnDoneFns.push(N),this._onDoneFns.push(N)}onDestroy(N){this._onDestroyFns.push(N)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(N=>N()),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,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_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(N=>N()),this._onDestroyFns=[])}setPosition(N){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=N*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const N=new Map;this.hasStarted()&&this._finalKeyframe.forEach((z,U)=>{"offset"!==U&&N.set(U,this._finished?z:Gi(this.element,U))}),this.currentSnapshot=N}triggerCallback(N){const S="start"===N?this._onStartFns:this._onDoneFns;S.forEach(z=>z()),S.length=0}}class ca{validateStyleProperty(N){return!0}validateAnimatableStyleProperty(N){return!0}matchesElement(N,S){return!1}containsElement(N,S){return Ut(N,S)}getParentElement(N){return pe(N)}query(N,S,z){return ht(N,S,z)}computeStyle(N,S,z){return window.getComputedStyle(N)[S]}animate(N,S,z,U,Ee,Mt=[]){const oi={duration:z,delay:U,fill:0==U?"both":"forwards"};Ee&&(oi.easing=Ee);const Ci=new Map,Zi=Mt.filter(In=>In instanceof aa);(function zi(R,N){return 0===R||0===N})(z,U)&&Zi.forEach(In=>{In.currentSnapshot.forEach((pn,Cn)=>Ci.set(Cn,pn))});let Vi=function Je(R){return R.length?R[0]instanceof Map?R:R.map(N=>Le(N)):[]}(S).map(In=>Vt(In));Vi=function Ni(R,N,S){if(S.size&&N.length){let z=N[0],U=[];if(S.forEach((Ee,Mt)=>{z.has(Mt)||U.push(Mt),z.set(Mt,Ee)}),U.length)for(let Ee=1;EeMt.set(Xt,Gi(R,Xt)))}}return N}(N,Vi,Ci);const Ln=function Ct(R,N){let S=null,z=null;return Array.isArray(N)&&N.length?(S=Ii(N[0]),N.length>1&&(z=Ii(N[N.length-1]))):N instanceof Map&&(S=Ii(N)),S||z?new ai(R,S,z):null}(N,Vi);return new aa(N,Vi,oi,Ln)}}var Wi=m(6895);let _n=(()=>{class R extends _._j{constructor(S,z){super(),this._nextAnimationId=0,this._renderer=S.createRenderer(z.body,{id:"0",encapsulation:e.ifc.None,styles:[],data:{animation:[]}})}build(S){const z=this._nextAnimationId.toString();this._nextAnimationId++;const U=Array.isArray(S)?(0,_.vP)(S):S;return et(this._renderer,null,z,"register",[U]),new Za(z,this._renderer)}}return R.\u0275fac=function(S){return new(S||R)(e.LFG(e.FYo),e.LFG(Wi.K0))},R.\u0275prov=e.Yz7({token:R,factory:R.\u0275fac}),R})();class Za extends _.LC{constructor(N,S){super(),this._id=N,this._renderer=S}create(N,S){return new ct(this._id,N,S||{},this._renderer)}}class ct{constructor(N,S,z,U){this.id=N,this.element=S,this._renderer=U,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",z)}_listen(N,S){return this._renderer.listen(this.element,`@@${this.id}:${N}`,S)}_command(N,...S){return et(this._renderer,this.element,this.id,N,S)}onDone(N){this._listen("done",N)}onStart(N){this._listen("start",N)}onDestroy(N){this._listen("destroy",N)}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(N){this._command("setPosition",N)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function et(R,N,S,z,U){return R.setProperty(N,`@@${S}:${z}`,U)}const kt="@.disabled";let wi=(()=>{class R{constructor(S,z,U){this.delegate=S,this.engine=z,this._zone=U,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),z.onRemovalComplete=(Ee,Mt)=>{const Xt=Mt?.parentNode(Ee);Xt&&Mt.removeChild(Xt,Ee)}}createRenderer(S,z){const Ee=this.delegate.createRenderer(S,z);if(!(S&&z&&z.data&&z.data.animation)){let Zi=this._rendererCache.get(Ee);return Zi||(Zi=new on("",Ee,this.engine,()=>this._rendererCache.delete(Ee)),this._rendererCache.set(Ee,Zi)),Zi}const Mt=z.id,Xt=z.id+"-"+this._currentId;this._currentId++,this.engine.register(Xt,S);const oi=Zi=>{Array.isArray(Zi)?Zi.forEach(oi):this.engine.registerTrigger(Mt,Xt,S,Zi.name,Zi)};return z.data.animation.forEach(oi),new va(this,Xt,Ee,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(S,z,U){S>=0&&Sz(U)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(Ee=>{const[Mt,Xt]=Ee;Mt(Xt)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([z,U]))}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 R.\u0275fac=function(S){return new(S||R)(e.LFG(e.FYo),e.LFG(hi),e.LFG(e.R0b))},R.\u0275prov=e.Yz7({token:R,factory:R.\u0275fac}),R})();class on{constructor(N,S,z,U){this.namespaceId=N,this.delegate=S,this.engine=z,this._onDestroy=U,this.destroyNode=this.delegate.destroyNode?Ee=>S.destroyNode(Ee):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(N,S){return this.delegate.createElement(N,S)}createComment(N){return this.delegate.createComment(N)}createText(N){return this.delegate.createText(N)}appendChild(N,S){this.delegate.appendChild(N,S),this.engine.onInsert(this.namespaceId,S,N,!1)}insertBefore(N,S,z,U=!0){this.delegate.insertBefore(N,S,z),this.engine.onInsert(this.namespaceId,S,N,U)}removeChild(N,S,z){this.engine.onRemove(this.namespaceId,S,this.delegate,z)}selectRootElement(N,S){return this.delegate.selectRootElement(N,S)}parentNode(N){return this.delegate.parentNode(N)}nextSibling(N){return this.delegate.nextSibling(N)}setAttribute(N,S,z,U){this.delegate.setAttribute(N,S,z,U)}removeAttribute(N,S,z){this.delegate.removeAttribute(N,S,z)}addClass(N,S){this.delegate.addClass(N,S)}removeClass(N,S){this.delegate.removeClass(N,S)}setStyle(N,S,z,U){this.delegate.setStyle(N,S,z,U)}removeStyle(N,S,z){this.delegate.removeStyle(N,S,z)}setProperty(N,S,z){"@"==S.charAt(0)&&S==kt?this.disableAnimations(N,!!z):this.delegate.setProperty(N,S,z)}setValue(N,S){this.delegate.setValue(N,S)}listen(N,S,z){return this.delegate.listen(N,S,z)}disableAnimations(N,S){this.engine.disableAnimations(N,S)}}class va extends on{constructor(N,S,z,U,Ee){super(S,z,U,Ee),this.factory=N,this.namespaceId=S}setProperty(N,S,z){"@"==S.charAt(0)?"."==S.charAt(1)&&S==kt?this.disableAnimations(N,z=void 0===z||!!z):this.engine.process(this.namespaceId,N,S.slice(1),z):this.delegate.setProperty(N,S,z)}listen(N,S,z){if("@"==S.charAt(0)){const U=function Ei(R){switch(R){case"body":return document.body;case"document":return document;case"window":return window;default:return R}}(N);let Ee=S.slice(1),Mt="";return"@"!=Ee.charAt(0)&&([Ee,Mt]=function An(R){const N=R.indexOf(".");return[R.substring(0,N),R.slice(N+1)]}(Ee)),this.engine.listen(this.namespaceId,U,Ee,Mt,Xt=>{this.factory.scheduleListenerCallback(Xt._data||-1,z,Xt)})}return this.delegate.listen(N,S,z)}}const ds=[{provide:_._j,useClass:_n},{provide:zn,useFactory:function Ws(){return new Pr}},{provide:hi,useClass:(()=>{class R extends hi{constructor(S,z,U,Ee){super(S.body,z,U)}ngOnDestroy(){this.flush()}}return R.\u0275fac=function(S){return new(S||R)(e.LFG(Wi.K0),e.LFG(be),e.LFG(zn),e.LFG(e.z2F))},R.\u0275prov=e.Yz7({token:R,factory:R.\u0275fac}),R})()},{provide:e.FYo,useFactory:function Ba(R,N,S){return new wi(R,N,S)},deps:[t.se,hi,e.R0b]}],Uo=[{provide:be,useFactory:()=>new ca},{provide:e.QbO,useValue:"BrowserAnimations"},...ds],Sr=[{provide:be,useClass:yt},{provide:e.QbO,useValue:"NoopAnimations"},...ds];let Xo=(()=>{class R{static withConfig(S){return{ngModule:R,providers:S.disableAnimations?Sr:Uo}}}return R.\u0275fac=function(S){return new(S||R)},R.\u0275mod=e.oAB({type:R}),R.\u0275inj=e.cJS({providers:Uo,imports:[t.b2]}),R})();var $o=m(529),qn=m(2289),ki=m(9653),Ua=m(493),co=m(825),Fi=m(7579),No=m(6451),Mo=m(4968),lc=m(457),Er=m(4986),dr=m(2805);function Go(R=0,N=Er.z){return R<0&&(R=0),(0,dr.H)(R,R,N)}var lo=m(9646),hs=m(727),Ys=m(4482),Fo=m(5403),Is=m(8737),ks=m(3269),dc=m(9672),Ya=m(9300),es=m(8505),us=m(3900),sn=m(2722),ja=m(8746),Ho=m(1884),la=m(4004);class fs{}let Rc=(()=>{class R{constructor(S,z){this._ngZone=z,this.timerStart$=new Fi.x,this.idleDetected$=new Fi.x,this.timeout$=new Fi.x,this.idleMillisec=6e5,this.idleSensitivityMillisec=1e3,this.timeout=300,this.pingMillisec=12e4,this.isTimeout=!1,this.isInactivityTimer=!1,this.isIdleDetected=!1,S&&this.setConfig(S)}startWatching(){this.activityEvents$||(this.activityEvents$=(0,No.T)((0,Mo.R)(window,"mousemove"),(0,Mo.R)(window,"resize"),(0,Mo.R)(document,"keydown"))),this.idle$=(0,lc.D)(this.activityEvents$),this.idleSubscription&&this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.pipe(function js(R,...N){var S,z;const U=null!==(S=(0,ks.yG)(N))&&void 0!==S?S:Er.z,Ee=null!==(z=N[0])&&void 0!==z?z:null,Mt=N[1]||1/0;return(0,Ys.e)((Xt,oi)=>{let Ci=[],Zi=!1;const Vi=pn=>{const{buffer:Cn,subs:ea}=pn;ea.unsubscribe(),(0,Is.P)(Ci,pn),oi.next(Cn),Zi&&Ln()},Ln=()=>{if(Ci){const pn=new hs.w0;oi.add(pn);const ea={buffer:[],subs:pn};Ci.push(ea),(0,dc.f)(pn,U,()=>Vi(ea),R)}};null!==Ee&&Ee>=0?(0,dc.f)(oi,U,Ln,Ee,!0):Zi=!0,Ln();const In=(0,Fo.x)(oi,pn=>{const Cn=Ci.slice();for(const ea of Cn){const{buffer:pa}=ea;pa.push(pn),Mt<=pa.length&&Vi(ea)}},()=>{for(;Ci?.length;)oi.next(Ci.shift().buffer);In?.unsubscribe(),oi.complete(),oi.unsubscribe()},void 0,()=>Ci=null);Xt.subscribe(In)})}(this.idleSensitivityMillisec),(0,Ya.h)(S=>!S.length&&!this.isIdleDetected&&!this.isInactivityTimer),(0,es.b)(()=>{this.isIdleDetected=!0,this.idleDetected$.next(!0)}),(0,us.w)(()=>this._ngZone.runOutsideAngular(()=>Go(1e3).pipe((0,sn.R)((0,No.T)(this.activityEvents$,(0,dr.H)(this.idleMillisec).pipe((0,es.b)(()=>{this.isInactivityTimer=!0,this.timerStart$.next(!0)})))),(0,ja.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,Ho.x)(),(0,us.w)(S=>S?this.timer$:(0,lo.of)(null)))}onIdleStatusChanged(){return this.idleDetected$.asObservable()}onTimeout(){return this.timeout$.pipe((0,Ya.h)(S=>!!S),(0,es.b)(()=>this.isTimeout=!0),(0,la.U)(()=>!0))}getConfigValue(){return{idle:this.idleMillisec/1e3,idleSensitivity:this.idleSensitivityMillisec/1e3,timeout:this.timeout,ping:this.pingMillisec/1e3}}setConfigValues(S){!this.idleSubscription||this.idleSubscription.closed?this.setConfig(S):console.error("Call stopWatching() before set config values")}setConfig(S){S.idle&&(this.idleMillisec=1e3*S.idle),S.ping&&(this.pingMillisec=1e3*S.ping),S.idleSensitivity&&(this.idleSensitivityMillisec=1e3*S.idleSensitivity),S.timeout&&(this.timeout=S.timeout)}setCustomActivityEvents(S){!this.idleSubscription||this.idleSubscription.closed?this.activityEvents$=S:console.error("Call stopWatching() before set custom activity events")}setupTimer(S){this._ngZone.runOutsideAngular(()=>{this.timer$=(0,lo.of)(()=>new Date).pipe((0,la.U)(z=>z()),(0,us.w)(z=>Go(1e3).pipe((0,la.U)(()=>Math.round(((new Date).valueOf()-z.valueOf())/1e3)),(0,es.b)(U=>{U>=S&&this.timeout$.next(!0)}))))})}setupPing(S){this.ping$=Go(S).pipe((0,Ya.h)(()=>!this.isTimeout))}}return R.\u0275fac=function(S){return new(S||R)(e.LFG(fs,8),e.LFG(e.R0b))},R.\u0275prov=e.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})(),hc=(()=>{class R{static forRoot(S){return{ngModule:R,providers:[{provide:fs,useValue:S}]}}}return R.\u0275fac=function(S){return new(S||R)},R.\u0275mod=e.oAB({type:R}),R.\u0275inj=e.cJS({imports:[[]]}),R})();var Wn=m(9116),Xi=m(2687),xa=m(8377),La=m(2216),ji=m(1576),Kn=m(3546),ze=m(3848);const ne=function(){return{initial:!1}};function te(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",11),e.NdJ("click",function(){e.CHM(S);const U=e.oxw();return e.KtG(U.activeLink=U.links[1].link)}),e._uU(1),e.qZA()}if(2&R){const S=e.oxw();e.s9C("routerLink",S.links[1].link),e.Q6J("active",S.activeLink===S.links[1].link)("state",e.DdM(4,ne)),e.xp6(1),e.Oqu(S.links[1].name)}}function Te(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",6),e.NdJ("click",function(){e.CHM(S);const U=e.oxw();return e.KtG(U.activeLink=U.links[2].link)}),e._uU(1),e.qZA()}if(2&R){const S=e.oxw();e.s9C("routerLink",S.links[2].link),e.Q6J("active",S.activeLink===S.links[2].link),e.xp6(1),e.Oqu(S.links[2].name)}}let tt=(()=>{var R;class N{constructor(z,U){this.store=z,this.router=U,this.faUserCog=Xi.gNZ,this.showBitcoind=!1,this.links=[{link:"app",name:"Application"},{link:"auth",name:"Authentication"},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new Fi.x,new Fi.x,new Fi.x]}ngOnInit(){const z=this.links.find(U=>this.router.url.includes(U.link));this.activeLink=z?z.link:this.links[0].link,this.router.events.pipe((0,sn.R)(this.unSubs[0]),(0,Ya.h)(U=>U instanceof Wn.Av)).subscribe({next:U=>{const Ee=this.links.find(Mt=>U.urlAfterRedirects.includes(Mt.link));this.activeLink=Ee?Ee.link:this.links[0].link}}),this.store.select(xa.Yj).pipe((0,sn.R)(this.unSubs[1])).subscribe(U=>{this.appConfig=U}),this.store.select(xa.dT).pipe((0,sn.R)(this.unSubs[2])).subscribe(U=>{this.showBitcoind=!1,this.selNode=U,this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return(R=N).\u0275fac=function(z){return new(z||R)(e.Y36(ki.yh),e.Y36(Wn.F0))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-settings"]],decls:16,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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["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"],["tabPanel",""],["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(z,U){if(1&z&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Settings"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5)(8,"div",6),e.NdJ("click",function(){return U.activeLink=U.links[0].link}),e._uU(9),e.qZA(),e.YNc(10,te,2,5,"div",7),e.YNc(11,Te,2,3,"div",8),e.qZA(),e._UZ(12,"mat-tab-nav-panel",null,9),e.TgZ(14,"div",10),e._UZ(15,"router-outlet"),e.qZA()()()()),2&z){const Ee=e.MAs(13);e.xp6(1),e.Q6J("icon",U.faUserCog),e.xp6(6),e.Q6J("tabPanel",Ee),e.xp6(1),e.s9C("routerLink",U.links[0].link),e.Q6J("active",U.activeLink===U.links[0].link),e.xp6(1),e.Oqu(U.links[0].name),e.xp6(1),e.Q6J("ngIf",!+U.appConfig.sso.rtlSSO),e.xp6(1),e.Q6J("ngIf",U.showBitcoind)}},dependencies:[Wi.O5,La.BN,ji.xw,ji.Wh,ji.yH,Kn.a8,Kn.dn,ze.BU,ze.sW,ze.Nj,Wn.lC,Wn.rH]}),N})();var Ne=m(7731),Rt=m(7861),ni=m(5043),ti=m(4006),bi=m(4859),Si=m(9549),Pi=m(4385),qi=m(3238),tn=m(6839),hn=m(3390);function da(R,N){if(1&R&&(e.TgZ(0,"mat-option",17),e._uU(1),e.qZA()),2&R){const S=N.$implicit;e.Q6J("value",S.index),e.xp6(1),e.AsE(" ",S.lnNode," (",S.lnImplementation,") ")}}function ma(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"form",2,3)(2,"div",4),e._UZ(3,"fa-icon",5),e.TgZ(4,"span",6),e._uU(5,"Default Node"),e.qZA()(),e.TgZ(6,"div",7)(7,"div",8),e._UZ(8,"fa-icon",9),e.TgZ(9,"span"),e._uU(10,"The setting will apply after RTL server restarts."),e.qZA()(),e.TgZ(11,"div",10)(12,"mat-form-field",11)(13,"mat-select",12),e.NdJ("ngModelChange",function(U){e.CHM(S);const Ee=e.oxw();return e.KtG(Ee.appConfig.defaultNodeIndex=U)}),e.YNc(14,da,2,3,"mat-option",13),e.qZA()()(),e.TgZ(15,"div",14)(16,"div",10)(17,"button",15),e.NdJ("click",function(){e.CHM(S);const U=e.oxw();return e.KtG(U.onResetSettings())}),e._uU(18,"Reset"),e.qZA(),e.TgZ(19,"button",16),e.NdJ("click",function(){e.CHM(S);const U=e.oxw();return e.KtG(U.onUpdateSettings())}),e._uU(20,"Update"),e.qZA()()()()()}if(2&R){const S=e.oxw();e.xp6(3),e.Q6J("icon",S.faWindowRestore),e.xp6(5),e.Q6J("icon",S.faInfoCircle),e.xp6(5),e.Q6J("ngModel",S.appConfig.defaultNodeIndex),e.xp6(1),e.Q6J("ngForOf",S.appConfig.nodes)}}let ka=(()=>{var R;class N{constructor(z,U){this.logger=z,this.store=U,this.faInfoCircle=Xi.sqG,this.faWindowRestore=Xi.wyP,this.faPlus=Xi.r8p,this.previousDefaultNode=0,this.unSubs=[new Fi.x,new Fi.x]}ngOnInit(){this.store.select(xa.Yj).pipe((0,sn.R)(this.unSubs[0])).subscribe(z=>{this.appConfig=z,this.previousDefaultNode=this.appConfig.defaultNodeIndex,this.logger.info(z)})}onAddNewNode(){this.logger.warn("ADD NEW NODE")}onUpdateSettings(){this.store.dispatch((0,Rt.zQ)({payload:{uiMessage:Ne.m6.UPDATE_DEFAULT_NODE_SETTING,defaultNodeIndex:this.appConfig.defaultNodeIndex?this.appConfig.defaultNodeIndex:this.appConfig&&this.appConfig.nodes&&this.appConfig.nodes.length&&this.appConfig.nodes.length>0&&this.appConfig.nodes[0].index?+this.appConfig.nodes[0].index:-1}}))}onResetSettings(){this.appConfig.defaultNodeIndex=this.previousDefaultNode}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(),z.complete()})}}return(R=N).\u0275fac=function(z){return new(z||R)(e.Y36(ni.mQ),e.Y36(ki.yh))},R.\u0275cmp=e.Xpm({type:R,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"],["fxLayout","column","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(z,U){1&z&&(e.TgZ(0,"div",0),e.YNc(1,ma,21,4,"form",1),e.qZA()),2&z&&(e.xp6(1),e.Q6J("ngIf",U.appConfig.nodes&&U.appConfig.nodes.length&&U.appConfig.nodes.length>0))},dependencies:[Wi.sg,Wi.O5,ti._Y,ti.JJ,ti.JL,ti.On,ti.F,La.BN,ji.xw,ji.Wh,ji.yH,bi.lW,Si.KE,Pi.gD,qi.ey,tn.$V,hn.h]}),N})();var ha=m(8012),ua=m(5698),ra=m(5412),Da=m(5768),Ma=m(3093),Tr=m(7009),hr=m(4144),ho=m(8425),zr=m(658),ol=m(5199);const Wo=["stepper"];function Ul(R,N){if(1&R&&e._uU(0),2&R){const S=e.oxw();e.Oqu(S.passwordFormLabel)}}function Nc(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}function Ar(R,N){if(1&R&&e._uU(0),2&R){const S=e.oxw(2);e.Oqu(S.secretFormLabel)}}function Gl(R,N){if(1&R&&e._UZ(0,"qr-code",33),2&R){const S=e.oxw(2);e.Q6J("value",S.otpauth)("size",180)("errorCorrectionLevel","L")}}function Os(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Secret Code is required."),e.qZA())}function Fc(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"mat-step",10)(1,"form",22),e.YNc(2,Ar,1,1,"ng-template",23),e.TgZ(3,"div",24),e.YNc(4,Gl,1,3,"qr-code",25),e.qZA(),e.TgZ(5,"div",26),e._UZ(6,"fa-icon",27),e.TgZ(7,"span"),e._uU(8,"You can use a compatible authentication app to get an authentication code when you log in to RTL. e.g.: Google Authenticator."),e.qZA()(),e.TgZ(9,"div",28)(10,"mat-form-field",13)(11,"mat-label"),e._uU(12,"Secret Code"),e.qZA(),e._UZ(13,"input",29),e.TgZ(14,"fa-icon",30),e.NdJ("copied",function(U){e.CHM(S);const Ee=e.oxw();return e.KtG(Ee.onCopySecret(U))}),e.qZA(),e.YNc(15,Os,2,0,"mat-error",15),e.qZA()(),e.TgZ(16,"div",31)(17,"button",32),e._uU(18,"Next"),e.qZA()()()()}if(2&R){const S=e.oxw();e.Q6J("stepControl",S.secretFormGroup)("editable",S.flgEditable),e.xp6(1),e.Q6J("formGroup",S.secretFormGroup),e.xp6(3),e.Q6J("ngIf",S.otpauth),e.xp6(2),e.Q6J("icon",S.faInfoCircle),e.xp6(8),e.Q6J("icon",S.faCopy)("payload",null==S.secretFormGroup||null==S.secretFormGroup.controls||null==S.secretFormGroup.controls.secret?null:S.secretFormGroup.controls.secret.value),e.xp6(1),e.Q6J("ngIf",null==S.secretFormGroup||null==S.secretFormGroup.controls||null==S.secretFormGroup.controls.secret||null==S.secretFormGroup.controls.secret.errors?null:S.secretFormGroup.controls.secret.errors.required)}}function sl(R,N){if(1&R&&e._uU(0),2&R){const S=e.oxw(2);e.Oqu(S.tokenFormLabel)}}function cl(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Token is required."),e.qZA())}function H1(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Token is invalid."),e.qZA())}function z1(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",7)(1,"div",28)(2,"mat-form-field",13)(3,"mat-label"),e._uU(4,"Token"),e.qZA(),e._UZ(5,"input",37),e.YNc(6,cl,2,0,"mat-error",15),e.YNc(7,H1,2,0,"mat-error",15),e.qZA()(),e.TgZ(8,"div",31)(9,"button",38),e.NdJ("click",function(){e.CHM(S);const U=e.oxw(2);return e.KtG(U.onVerifyToken())}),e._uU(10),e.qZA()()()}if(2&R){const S=e.oxw(2);e.xp6(6),e.Q6J("ngIf",null==S.tokenFormGroup||null==S.tokenFormGroup.controls||null==S.tokenFormGroup.controls.token||null==S.tokenFormGroup.controls.token.errors?null:S.tokenFormGroup.controls.token.errors.required),e.xp6(1),e.Q6J("ngIf",null==S.tokenFormGroup||null==S.tokenFormGroup.controls||null==S.tokenFormGroup.controls.token||null==S.tokenFormGroup.controls.token.errors?null:S.tokenFormGroup.controls.token.errors.notValid),e.xp6(3),e.Oqu(null!=S.tokenFormGroup&&null!=S.tokenFormGroup.controls&&null!=S.tokenFormGroup.controls.token&&null!=S.tokenFormGroup.controls.token.errors&&S.tokenFormGroup.controls.token.errors.notValid?"Retry":"Verify")}}function Wl(R,N){1&R&&(e.TgZ(0,"div")(1,"strong"),e._uU(2,"Success! You are all set."),e.qZA()())}function Hc(R,N){if(1&R&&(e.TgZ(0,"mat-step",34)(1,"form",35),e.YNc(2,sl,1,1,"ng-template",12),e.YNc(3,z1,11,3,"div",36),e.YNc(4,Wl,3,0,"div",15),e.qZA()()),2&R){const S=e.oxw();e.Q6J("stepControl",S.tokenFormGroup),e.xp6(1),e.Q6J("formGroup",S.tokenFormGroup),e.xp6(2),e.Q6J("ngIf",!S.flgValidated||!S.isTokenValid),e.xp6(1),e.Q6J("ngIf",S.flgValidated&&S.isTokenValid)}}function Ks(R,N){if(1&R&&e._uU(0),2&R){const S=e.oxw(2);e.Oqu(S.disableFormLabel)}}function tr(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",7)(1,"div",39),e._UZ(2,"fa-icon",27),e.TgZ(3,"span"),e._uU(4,"You are about to disable two-factor authentication security from RTL. Are you sure you want to turn it off?"),e.qZA()(),e.TgZ(5,"div",31)(6,"button",38),e.NdJ("click",function(){e.CHM(S);const U=e.oxw(2);return e.KtG(U.onVerifyToken())}),e._uU(7,"Disable"),e.qZA()()()}if(2&R){const S=e.oxw(2);e.xp6(2),e.Q6J("icon",S.faExclamationTriangle)}}function Zo(R,N){1&R&&(e.TgZ(0,"div")(1,"strong"),e._uU(2,"Two factor authentication removed from RTL."),e.qZA()())}function Ps(R,N){if(1&R&&(e.TgZ(0,"mat-step",34)(1,"form",35),e.YNc(2,Ks,1,1,"ng-template",12),e.YNc(3,tr,8,1,"div",36),e.YNc(4,Zo,3,0,"div",15),e.qZA()()),2&R){const S=e.oxw();e.Q6J("stepControl",S.disableFormGroup),e.xp6(1),e.Q6J("formGroup",S.disableFormGroup),e.xp6(2),e.Q6J("ngIf",!S.flgValidated||!S.isTokenValid),e.xp6(1),e.Q6J("ngIf",S.flgValidated&&S.isTokenValid)}}let Zl=(()=>{var R;class N{constructor(z,U,Ee,Mt,Xt,oi){this.dialogRef=z,this.data=U,this.store=Ee,this.formBuilder=Mt,this.rtlEffects=Xt,this.snackBar=oi,this.faExclamationTriangle=Xi.eHv,this.faCopy=Xi.kZ_,this.faInfoCircle=Xi.sqG,this.flgValidated=!1,this.isTokenValid=!0,this.otpauth="",this.appConfig=null,this.flgEditable=!0,this.showDisableStepper=!1,this.passwordFormLabel="Authenticate with your RTL password",this.secretFormLabel="Scan or copy the secret",this.tokenFormLabel="Verify your authentication is working",this.disableFormLabel="Disable two factor authentication",this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[ti.kI.required]],password:["",[ti.kI.required]]}),this.secretFormGroup=this.formBuilder.group({secret:[{value:"",disabled:!0},ti.kI.required]}),this.tokenFormGroup=this.formBuilder.group({token:["",ti.kI.required]}),this.disableFormGroup=this.formBuilder.group({}),this.unSubs=[new Fi.x,new Fi.x]}ngOnInit(){this.appConfig=this.data.appConfig||null,this.showDisableStepper=!!this.appConfig?.enable2FA,this.secretFormGroup=this.formBuilder.group({secret:[{value:this.appConfig?.enable2FA?"":this.generateSecret(),disabled:!0},ti.kI.required]})}generateSecret(){const z=Da.authenticator.generateSecret();return this.otpauth=Da.authenticator.keyuri("","Ride The Lightning (RTL)",z),z}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,Rt.QO)({payload:ha(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,ua.q)(1)).subscribe(z=>{"ERROR"!==z?(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(z){this.snackBar.open("Secret code "+this.secretFormGroup.controls.secret.value+" copied.")}onVerifyToken(){if(this.appConfig?.enable2FA)this.store.dispatch((0,Rt.Uy)({payload:{secret2fa:""}})),this.generateSecret(),this.isTokenValid=!0;else{if(!this.tokenFormGroup.controls.token.value)return!0;if(this.isTokenValid=Da.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,Rt.Uy)({payload:{secret2fa:this.secretFormGroup.controls.secret.value}})),this.tokenFormGroup.controls.token.setValue("")}this.flgValidated=!0,this.appConfig&&(this.appConfig.enable2FA=!this.appConfig?.enable2FA)}stepSelectionChanged(z){switch(z.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password";break;case 1:case 2:this.passwordFormLabel="User authenticated successfully"}z.selectedIndex{z.next(),z.complete()})}}return(R=N).\u0275fac=function(z){return new(z||R)(e.Y36(ra.so),e.Y36(ra.WI),e.Y36(ki.yh),e.Y36(ti.QS),e.Y36(Ma.V),e.Y36(Tr.ux))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-two-factor-auth"]],viewQuery:function(z,U){if(1&z&&e.Gf(Wo,5),2&z){let Ee;e.iGM(Ee=e.CRH())&&(U.stepper=Ee.first)}},decls:30,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 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",""],["fxLayout","column","fxFlex","100"],["autoFocus","","matInput","","type","password","tabindex","1","formControlName","password","required",""],[4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start"],[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","","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","","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(z,U){1&z&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5,"Setup Two Factor Authentication"),e.qZA()(),e.TgZ(6,"button",5),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"div",7)(10,"mat-vertical-stepper",8,9),e.NdJ("selectionChange",function(Mt){return U.stepSelectionChanged(Mt)}),e.TgZ(12,"mat-step",10)(13,"form",11),e.YNc(14,Ul,1,1,"ng-template",12),e.TgZ(15,"div",0)(16,"mat-form-field",13)(17,"mat-label"),e._uU(18,"Password"),e.qZA(),e._UZ(19,"input",14),e.YNc(20,Nc,2,0,"mat-error",15),e.qZA()(),e.TgZ(21,"div",16)(22,"button",17),e.NdJ("click",function(){return U.onAuthenticate()}),e._uU(23,"Confirm"),e.qZA()()()(),e.YNc(24,Fc,19,8,"mat-step",18),e.YNc(25,Hc,5,4,"mat-step",19),e.YNc(26,Ps,5,4,"mat-step",19),e.qZA(),e.TgZ(27,"div",20)(28,"button",21),e._uU(29),e.qZA()()()()()()),2&z&&(e.xp6(6),e.Q6J("mat-dialog-close",!1),e.xp6(4),e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",U.passwordFormGroup)("editable",U.flgEditable),e.xp6(1),e.Q6J("formGroup",U.passwordFormGroup),e.xp6(7),e.Q6J("ngIf",null==U.passwordFormGroup||null==U.passwordFormGroup.controls||null==U.passwordFormGroup.controls.password||null==U.passwordFormGroup.controls.password.errors?null:U.passwordFormGroup.controls.password.errors.required),e.xp6(4),e.Q6J("ngIf",!U.showDisableStepper),e.xp6(1),e.Q6J("ngIf",!U.showDisableStepper),e.xp6(1),e.Q6J("ngIf",U.showDisableStepper),e.xp6(2),e.Q6J("mat-dialog-close",!1),e.xp6(1),e.Oqu(U.flgValidated&&U.isTokenValid?"Close":"Cancel"))},dependencies:[Wi.O5,ti._Y,ti.Fj,ti.JJ,ti.JL,ti.Q7,ti.sg,ti.u,La.BN,ji.xw,ji.Wh,ji.yH,ra.ZT,bi.lW,Kn.dn,Kn.dk,hr.Nt,Si.KE,Si.hX,Si.TO,Si.R9,ho.C0,ho.VY,ho.Vq,ho.Ic,zr.uU,ol.y,hn.h]}),N})();var Ga=m(5986),Jr=m(4850);const ll=["authForm"];function dl(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Current password is required."),e.qZA())}function o2(R,N){if(1&R&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&R){const S=e.oxw(2);e.xp6(1),e.Oqu(S.errorMsg)}}function V1(R,N){if(1&R&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&R){const S=e.oxw(2);e.xp6(1),e.Oqu(S.errorConfirmMsg)}}function uc(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"form",11,12)(2,"div",13),e._UZ(3,"fa-icon",5),e.TgZ(4,"span",6),e._uU(5,"Password"),e.qZA()(),e.TgZ(6,"mat-form-field")(7,"mat-label"),e._uU(8,"Current Password"),e.qZA(),e.TgZ(9,"input",14),e.NdJ("ngModelChange",function(U){e.CHM(S);const Ee=e.oxw();return e.KtG(Ee.currPassword=U)}),e.qZA(),e.YNc(10,dl,2,0,"mat-error",15),e.qZA(),e.TgZ(11,"mat-form-field")(12,"mat-label"),e._uU(13,"New Password"),e.qZA(),e.TgZ(14,"input",16),e.NdJ("ngModelChange",function(U){e.CHM(S);const Ee=e.oxw();return e.KtG(Ee.newPassword=U)}),e.qZA(),e.YNc(15,o2,2,1,"mat-error",15),e.qZA(),e.TgZ(16,"mat-form-field")(17,"mat-label"),e._uU(18,"Confirm New Password"),e.qZA(),e.TgZ(19,"input",17),e.NdJ("ngModelChange",function(U){e.CHM(S);const Ee=e.oxw();return e.KtG(Ee.confirmPassword=U)}),e.qZA(),e.YNc(20,V1,2,1,"mat-error",15),e.qZA(),e.TgZ(21,"div",18)(22,"button",19),e.NdJ("click",function(){e.CHM(S);const U=e.oxw();return e.KtG(U.onResetPassword())}),e._uU(23,"Reset"),e.qZA(),e.TgZ(24,"button",20),e.NdJ("click",function(){e.CHM(S);const U=e.oxw();return e.KtG(U.onChangePassword())}),e._uU(25,"Change Password"),e.qZA()()()}if(2&R){const S=e.oxw();e.xp6(3),e.Q6J("icon",S.faLock),e.xp6(6),e.Q6J("ngModel",S.currPassword),e.xp6(1),e.Q6J("ngIf",!S.currPassword),e.xp6(4),e.Q6J("ngModel",S.newPassword),e.xp6(1),e.Q6J("ngIf",S.matchOldAndNewPasswords()),e.xp6(4),e.Q6J("ngModel",S.confirmPassword),e.xp6(1),e.Q6J("ngIf",S.matchNewPasswords())}}let ts=(()=>{var R;class N{constructor(z,U,Ee,Mt,Xt){this.logger=z,this.store=U,this.actions=Ee,this.router=Mt,this.sessionService=Xt,this.faInfoCircle=Xi.sqG,this.faUserLock=Xi.FJU,this.faUserClock=Xi.hnx,this.faLock=Xi.byT,this.currPassword="",this.newPassword="",this.confirmPassword="",this.errorMsg="",this.errorConfirmMsg="",this.initializeNodeData=!1,this.unSubs=[new Fi.x,new Fi.x,new Fi.x]}ngOnInit(){this.initializeNodeData="true"===this.sessionService.getItem("defaultPassword"),this.store.select(xa.Yj).pipe((0,sn.R)(this.unSubs[0])).subscribe(z=>{this.appConfig=z,this.logger.info(this.appConfig)}),this.store.select(xa.dT).pipe((0,sn.R)(this.unSubs[1])).subscribe(z=>{this.selNode=z}),this.actions.pipe((0,sn.R)(this.unSubs[2]),(0,Ya.h)(z=>z.type===Ne.pg.RESET_PASSWORD_RES)).subscribe(z=>{if(Ne.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||Ne.kO.includes(this.newPassword.toLowerCase()))return!0;this.store.dispatch((0,Rt.c0)({payload:{currPassword:ha(this.currPassword).toString(),newPassword:ha(this.newPassword).toString()}}))}matchOldAndNewPasswords(){let z=!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.",z=!0):Ne.kO.includes(this.newPassword.toLowerCase())?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg=Ne.kO?.reduce((U,Ee,Mt)=>Mt{z.next(),z.complete()})}}return(R=N).\u0275fac=function(z){return new(z||R)(e.Y36(ni.mQ),e.Y36(ki.yh),e.Y36(Ua.eX),e.Y36(Wn.F0),e.Y36(Ga.m))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-auth-settings"]],viewQuery:function(z,U){if(1&z&&e.Gf(ll,5),2&z){let Ee;e.iGM(Ee=e.CRH())&&(U.form=Ee.first)}},decls:15,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"],[1,"my-2"],["fxLayout","column","fxLayoutAlign","start stretch"],[1,"mb-1","settings-container","page-sub-title-container","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[1,"alert","alert-info"],[1,"mt-1","mr-1","alert-icon",3,"icon"],[1,"mt-1"],["mat-flat-button","","color","primary","tabindex","6",1,"mb-2",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1"],["authForm","ngForm"],["fxLayout","row","fxLayoutAlign","start start",1,"mb-2"],["autoFocus","","matInput","","type","password","id","currpassword","name","currpassword","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["matInput","","type","password","id","newpassword","name","newpassword","tabindex","2","required","",3,"ngModel","ngModelChange"],["matInput","","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"]],template:function(z,U){1&z&&(e.TgZ(0,"div",0),e.YNc(1,uc,26,7,"form",1),e._UZ(2,"mat-divider",2),e.TgZ(3,"div",3)(4,"div",4),e._UZ(5,"fa-icon",5),e.TgZ(6,"span",6),e._uU(7,"Two Factor Authentication"),e.qZA()(),e.TgZ(8,"div",7),e._UZ(9,"fa-icon",8),e.TgZ(10,"span"),e._uU(11,"Protect your account from unauthorized access by requiring a second authentication method in addition to your password."),e.qZA()(),e.TgZ(12,"div",9)(13,"button",10),e.NdJ("click",function(){return U.on2FAuth()}),e._uU(14),e.qZA()()()()),2&z&&(e.xp6(1),e.Q6J("ngIf",null==U.appConfig?null:U.appConfig.allowPasswordUpdate),e.xp6(4),e.Q6J("icon",U.faUserClock),e.xp6(4),e.Q6J("icon",U.faInfoCircle),e.xp6(5),e.Oqu(U.appConfig.enable2FA?"Disable 2FA":"Enable 2FA"))},dependencies:[Wi.O5,ti._Y,ti.Fj,ti.JJ,ti.JL,ti.Q7,ti.On,ti.F,La.BN,ji.xw,ji.Wh,ji.yH,bi.lW,hr.Nt,Si.KE,Si.hX,Si.TO,Jr.d,hn.h]}),N})();var uo=m(6338);function Rs(R,N){1&R&&e._UZ(0,"mat-divider",7)}function zc(R,N){if(1&R&&(e.TgZ(0,"div",4)(1,"pre",5),e._uU(2),e.ALo(3,"json"),e.qZA(),e.YNc(4,Rs,1,0,"mat-divider",6),e.qZA()),2&R){const S=e.oxw();e.xp6(2),e.Oqu(e.lcZ(3,2,S.configData)),e.xp6(2),e.Q6J("ngIf",""!==S.configData)}}function Vc(R,N){if(1&R&&(e.TgZ(0,"h2"),e._uU(1),e.qZA()),2&R){const S=e.oxw().$implicit;e.xp6(1),e.Oqu(S)}}function Yo(R,N){if(1&R&&(e.TgZ(0,"h4",14),e._uU(1),e.qZA()),2&R){const S=e.oxw().$implicit;e.xp6(1),e.Oqu(S)}}function fc(R,N){1&R&&e._UZ(0,"mat-divider",15),2&R&&e.Q6J("inset",!0)}function ms(R,N){if(1&R&&(e.TgZ(0,"mat-list-item")(1,"mat-card-subtitle",7),e.YNc(2,Vc,2,1,"h2",10),e.qZA(),e.TgZ(3,"mat-card-subtitle",11),e.YNc(4,Yo,2,1,"h4",12),e.qZA(),e.YNc(5,fc,1,1,"mat-divider",13),e.qZA()),2&R){const S=N.$implicit;e.xp6(2),e.Q6J("ngIf",S.indexOf("[")>=0),e.xp6(2),e.Q6J("ngIf",S.indexOf("[")<0),e.xp6(1),e.Q6J("ngIf",S.indexOf("[")<0)}}function Ca(R,N){if(1&R&&(e.TgZ(0,"div",8)(1,"mat-list"),e.YNc(2,ms,6,3,"mat-list-item",9),e.qZA()()),2&R){const S=e.oxw();e.xp6(2),e.Q6J("ngForOf",S.configData)}}let Xr=(()=>{var R;class N{constructor(z,U,Ee){this.store=z,this.rtlEffects=U,this.router=Ee,this.configData="",this.fileFormat="INI",this.faCog=Xi.b7W,this.unSubs=[new Fi.x,new Fi.x]}ngOnInit(){this.store.dispatch((0,Rt.Q2)({payload:"bitcoind"})),this.rtlEffects.showLnConfig.pipe((0,sn.R)(this.unSubs[1])).subscribe(z=>{const U=z.data;this.fileFormat=z.format,this.configData=""===U||!U||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==U&&U&&"JSON"===this.fileFormat?U:"":U.split("\n")})}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return(R=N).\u0275fac=function(z){return new(z||R)(e.Y36(ki.yh),e.Y36(Ma.V),e.Y36(Wn.F0))},R.\u0275cmp=e.Xpm({type:R,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(z,U){1&z&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,zc,5,4,"div",2),e.YNc(3,Ca,3,1,"div",3),e.qZA()()),2&z&&(e.xp6(2),e.Q6J("ngIf",""!==U.configData&&"JSON"===U.fileFormat),e.xp6(1),e.Q6J("ngIf",""!==U.configData&&("INI"===U.fileFormat||"HOCON"===U.fileFormat)))},dependencies:[Wi.sg,Wi.O5,ji.xw,ji.Wh,ji.yH,Kn.$j,uo.i$,uo.Tg,Jr.d,Wi.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),N})();function ir(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}let s2=(()=>{var R;class N{constructor(z,U,Ee){this.dialogRef=z,this.store=U,this.rtlEffects=Ee,this.password="",this.isAuthenticated=!1,this.unSubs=[new Fi.x,new Fi.x]}ngOnInit(){this.rtlEffects.isAuthorizedRes.pipe((0,ua.q)(1)).subscribe(z=>{"ERROR"!==z?(this.isAuthenticated=!0,this.store.dispatch((0,Rt.M6)({payload:this.isAuthenticated}))):this.isAuthenticated=!1})}onAuthenticate(){if(!this.password)return!0;this.store.dispatch((0,Rt.QO)({payload:ha(this.password)}))}onClose(){this.store.dispatch((0,Rt.M6)({payload:this.isAuthenticated}))}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return(R=N).\u0275fac=function(z){return new(z||R)(e.Y36(ra.so),e.Y36(ki.yh),e.Y36(Ma.V))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-is-authorized"]],decls:18,vars:2,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","row",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["autoFocus","","matInput","","type","password","id","password","name","password","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","2","type","submit","default","",3,"click"]],template:function(z,U){1&z&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5,"Authenticate with your RTL Password"),e.qZA()(),e.TgZ(6,"button",5),e.NdJ("click",function(){return U.onClose()}),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"form",7)(10,"mat-form-field")(11,"mat-label"),e._uU(12,"Password"),e.qZA(),e.TgZ(13,"input",8),e.NdJ("ngModelChange",function(Mt){return U.password=Mt}),e.qZA(),e.YNc(14,ir,2,0,"mat-error",9),e.qZA(),e.TgZ(15,"div",10)(16,"button",11),e.NdJ("click",function(){return U.onAuthenticate()}),e._uU(17,"Confirm"),e.qZA()()()()()()),2&z&&(e.xp6(13),e.Q6J("ngModel",U.password),e.xp6(1),e.Q6J("ngIf",!U.password))},dependencies:[Wi.O5,ti._Y,ti.Fj,ti.JJ,ti.JL,ti.Q7,ti.On,ti.F,ji.xw,ji.Wh,ji.yH,bi.lW,Kn.dn,Kn.dk,hr.Nt,Si.KE,Si.hX,Si.TO,hn.h]}),N})();const hl=function(){return{initial:!1}};function Bc(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",12),e.NdJ("click",function(){e.CHM(S);const U=e.oxw();return e.KtG(U.activeLink=U.links[2].link)}),e._uU(1),e.qZA()}if(2&R){const S=e.oxw();e.s9C("routerLink",S.links[2].link),e.Q6J("active",S.activeLink===S.links[2].link)("state",e.DdM(4,hl)),e.xp6(1),e.Oqu(S.links[2].name)}}function ul(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",6),e.NdJ("click",function(){e.CHM(S);const U=e.oxw();return e.KtG(U.activeLink=U.links[3].link)}),e._uU(1),e.qZA()}if(2&R){const S=e.oxw();e.s9C("routerLink",S.links[3].link),e.Q6J("active",S.activeLink===S.links[3].link),e.xp6(1),e.Oqu(S.links[3].name)}}function c2(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",13),e.NdJ("click",function(){e.CHM(S);const U=e.oxw();return e.KtG(U.showLnConfigClicked())}),e._uU(1),e.qZA()}if(2&R){const S=e.oxw();e.Q6J("active",S.activeLink===S.links[4].link),e.xp6(1),e.Oqu(S.links[4].name)}}let fo=(()=>{var R;class N{constructor(z,U,Ee,Mt){this.store=z,this.router=U,this.rtlEffects=Ee,this.activatedRoute=Mt,this.faTools=Xi.CgH,this.showLnConfig=!1,this.lnImplementationStr="",this.links=[{link:"nodesettings",name:"Node Settings"},{link:"pglayout",name:"Page Layout"},{link:"services",name:"Services"},{link:"experimental",name:"Experimental"},{link:"lnconfig",name:this.lnImplementationStr}],this.activeLink="",this.unSubs=[new Fi.x,new Fi.x,new Fi.x,new Fi.x,new Fi.x]}ngOnInit(){const z=this.links.find(U=>this.router.url.includes(U.link));this.activeLink=z?z.link:this.links[0].link,this.router.events.pipe((0,sn.R)(this.unSubs[0]),(0,Ya.h)(U=>U instanceof Wn.Av)).subscribe({next:U=>{const Ee=this.links.find(Mt=>U.urlAfterRedirects.includes(Mt.link));this.activeLink=Ee?Ee.link:this.links[0].link}}),this.store.select(xa.Yj).pipe((0,sn.R)(this.unSubs[1])).subscribe(U=>{this.appConfig=U}),this.store.select(xa.dT).pipe((0,sn.R)(this.unSubs[2])).subscribe(U=>{switch(this.showLnConfig=!1,this.selNode=U,this.selNode.lnImplementation?.toUpperCase()){case"CLN":this.lnImplementationStr="Core Lightning Config";break;case"ECL":this.lnImplementationStr="Eclair Config";break;default:this.lnImplementationStr="LND Config"}this.selNode.authentication&&this.selNode.authentication.configPath&&""!==this.selNode.authentication.configPath.trim()&&(this.links[4].name=this.lnImplementationStr,this.showLnConfig=!0)})}showLnConfigClicked(){this.appConfig.sso.rtlSSO?(this.activeLink=this.links[4].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute})):(this.store.dispatch((0,Rt.qR)({payload:{maxWidth:"50rem",data:{component:s2}}})),this.rtlEffects.closeAlert.pipe((0,sn.R)(this.unSubs[3])).subscribe(z=>{z&&(this.activeLink=this.links[4].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute}))}))}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return(R=N).\u0275fac=function(z){return new(z||R)(e.Y36(ki.yh),e.Y36(Wn.F0),e.Y36(Ma.V),e.Y36(Wn.gz))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-node-config"]],decls:19,vars:11,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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["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"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","click",4,"ngIf"],["tabPanel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper","mb-2"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","click"]],template:function(z,U){if(1&z&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Node Config"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5)(8,"div",6),e.NdJ("click",function(){return U.activeLink=U.links[0].link}),e._uU(9),e.qZA(),e.TgZ(10,"div",6),e.NdJ("click",function(){return U.activeLink=U.links[1].link}),e._uU(11),e.qZA(),e.YNc(12,Bc,2,5,"div",7),e.YNc(13,ul,2,3,"div",8),e.YNc(14,c2,2,2,"div",9),e.qZA(),e._UZ(15,"mat-tab-nav-panel",null,10),e.TgZ(17,"div",11),e._UZ(18,"router-outlet"),e.qZA()()()()),2&z){const Ee=e.MAs(16);e.xp6(1),e.Q6J("icon",U.faTools),e.xp6(6),e.Q6J("tabPanel",Ee),e.xp6(1),e.s9C("routerLink",U.links[0].link),e.Q6J("active",U.activeLink===U.links[0].link),e.xp6(1),e.Oqu(U.links[0].name),e.xp6(1),e.s9C("routerLink",U.links[1].link),e.Q6J("active",U.activeLink===U.links[1].link),e.xp6(1),e.Oqu(U.links[1].name),e.xp6(1),e.Q6J("ngIf","LND"===(null==U.selNode||null==U.selNode.lnImplementation?null:U.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf","CLN"===(null==U.selNode||null==U.selNode.lnImplementation?null:U.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf",U.showLnConfig)}},dependencies:[Wi.O5,La.BN,ji.xw,ji.Wh,ji.yH,Kn.a8,Kn.dn,ze.BU,ze.sW,ze.Nj,Wn.lC,Wn.rH]}),N})();function B1(R,N){1&R&&e._UZ(0,"mat-divider",7)}function U1(R,N){if(1&R&&(e.TgZ(0,"div",4)(1,"pre",5),e._uU(2),e.ALo(3,"json"),e.qZA(),e.YNc(4,B1,1,0,"mat-divider",6),e.qZA()),2&R){const S=e.oxw();e.xp6(2),e.Oqu(e.lcZ(3,2,S.configData)),e.xp6(2),e.Q6J("ngIf",""!==S.configData)}}function nr(R,N){if(1&R&&(e.TgZ(0,"h2"),e._uU(1),e.qZA()),2&R){const S=e.oxw().$implicit;e.xp6(1),e.Oqu(S)}}function Uc(R,N){if(1&R&&(e.TgZ(0,"h4",14),e._uU(1),e.qZA()),2&R){const S=e.oxw().$implicit;e.xp6(1),e.Oqu(S)}}function jo(R,N){1&R&&e._UZ(0,"mat-divider",15),2&R&&e.Q6J("inset",!0)}function G1(R,N){if(1&R&&(e.TgZ(0,"mat-list-item")(1,"mat-card-subtitle",7),e.YNc(2,nr,2,1,"h2",10),e.qZA(),e.TgZ(3,"mat-card-subtitle",11),e.YNc(4,Uc,2,1,"h4",12),e.qZA(),e.YNc(5,jo,1,1,"mat-divider",13),e.qZA()),2&R){const S=N.$implicit;e.xp6(2),e.Q6J("ngIf",S.indexOf("[")>=0),e.xp6(2),e.Q6J("ngIf",S.indexOf("[")<0),e.xp6(1),e.Q6J("ngIf",S.indexOf("[")<0)}}function So(R,N){if(1&R&&(e.TgZ(0,"div",8)(1,"mat-list"),e.YNc(2,G1,6,3,"mat-list-item",9),e.qZA()()),2&R){const S=e.oxw();e.xp6(2),e.Q6J("ngForOf",S.configData)}}let ve=(()=>{var R;class N{constructor(z,U,Ee){this.store=z,this.rtlEffects=U,this.router=Ee,this.configData="",this.fileFormat="INI",this.faCog=Xi.b7W,this.unSubs=[new Fi.x,new Fi.x]}ngOnInit(){this.store.dispatch((0,Rt.Q2)({payload:"ln"})),this.rtlEffects.showLnConfig.pipe((0,sn.R)(this.unSubs[1])).subscribe(z=>{const U=z.data;this.fileFormat=z.format,this.configData=""===U||!U||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==U&&U&&"JSON"===this.fileFormat?U:"":U.split("\n")})}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return(R=N).\u0275fac=function(z){return new(z||R)(e.Y36(ki.yh),e.Y36(Ma.V),e.Y36(Wn.F0))},R.\u0275cmp=e.Xpm({type:R,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(z,U){1&z&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,U1,5,4,"div",2),e.YNc(3,So,3,1,"div",3),e.qZA()()),2&z&&(e.xp6(2),e.Q6J("ngIf",""!==U.configData&&"JSON"===U.fileFormat),e.xp6(1),e.Q6J("ngIf",""!==U.configData&&("INI"===U.fileFormat||"HOCON"===U.fileFormat)))},dependencies:[Wi.sg,Wi.O5,ji.xw,ji.Wh,ji.yH,Kn.$j,uo.i$,uo.Tg,Jr.d,Wi.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),N})();var we=m(2994),ae=m(429),Be=m(6523),ut=m(62),Lt=m(5829),Ht=m(752),ui=m(1948),Di=m(455);function rn(R,N){if(1&R&&(e.TgZ(0,"mat-option",35),e._uU(1),e.qZA()),2&R){const S=N.$implicit;e.Q6J("value",S.id),e.xp6(1),e.hij(" ",S.id," ")}}function an(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Currency unit is required."),e.qZA())}function fa(R,N){if(1&R&&(e.TgZ(0,"mat-radio-button",36),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&R){const S=N.$implicit,z=e.oxw();e.Q6J("value",S)("checked",z.selNode.settings.userPersona===S),e.xp6(1),e.hij(" ",e.lcZ(2,3,S)," ")}}function ar(R,N){if(1&R&&(e.TgZ(0,"mat-radio-button",37),e._uU(1),e.qZA()),2&R){const S=N.$implicit;e.Q6J("value",S),e.xp6(1),e.hij("",S.name," ")}}const ps=function(R){return{skin:!0,"selected-color":R}};function is(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"span",38)(1,"div",39),e.NdJ("click",function(){const Ee=e.CHM(S).$implicit,Mt=e.oxw();return e.KtG(Mt.changeThemeColor(Ee.id))}),e.ALo(2,"lowercase"),e.qZA(),e._uU(3),e.qZA()}if(2&R){const S=N.$implicit,z=e.oxw();e.xp6(1),e.Tol(e.lcZ(2,4,S.id)),e.Q6J("ngClass",e.VKq(6,ps,z.selectedThemeColor===S.id)),e.xp6(2),e.hij(" ",S.name," ")}}let Ko=(()=>{var R;class N{constructor(z,U,Ee){this.logger=z,this.commonService=U,this.store=Ee,this.faExclamationTriangle=Xi.eHv,this.faMoneyBillAlt=Xi.co4,this.faPaintBrush=Xi.XsY,this.faInfoCircle=Xi.sqG,this.faEyeSlash=Xi.Aq,this.userPersonas=[Ne.ol.OPERATOR,Ne.ol.MERCHANT],this.currencyUnits=Ne.Er,this.themeModes=Ne.wZ.modes,this.themeColors=Ne.wZ.themes,this.selectedThemeMode=Ne.wZ.modes[0],this.selectedThemeColor=Ne.wZ.themes[0].id,this.currencyUnit="BTC",this.smallerCurrencyUnit="Sats",this.showSettingOption=!0,this.screenSize="",this.screenSizeEnum=Ne.cu,this.unSubs=[new Fi.x,new Fi.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(xa.dT).pipe((0,sn.R)(this.unSubs[0])).subscribe(z=>{this.selNode=z,this.selectedThemeMode=this.themeModes.find(U=>this.selNode.settings.themeMode===U.id)||this.themeModes[0],this.selectedThemeColor=this.selNode.settings.themeColor,this.selNode.settings.fiatConversion||(this.selNode.settings.currencyUnit=""),this.previousSettings=JSON.parse(JSON.stringify(this.selNode.settings)),this.logger.info(z)})}onCurrencyChange(z){this.selNode.settings.currencyUnits=[...Ne.uA,z.value],this.store.dispatch((0,Be.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:z.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,ae.Mf)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:z.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,we.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:z.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}}))}toggleSettings(z,U){this.selNode.settings[z]=!this.selNode.settings[z]}changeThemeColor(z){this.selectedThemeColor=z,this.selNode.settings.themeColor=z}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,Rt.zQ)({payload:{uiMessage:Ne.m6.UPDATE_NODE_SETTINGS,settings:this.selNode.settings}})),this.store.dispatch((0,Be.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,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,ae.Mf)({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,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,we.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,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}}))}onResetSettings(){const z=this.selNode.index||-1;this.selNode.settings=this.previousSettings,this.selectedThemeMode=this.themeModes.find(U=>U.id===this.previousSettings.themeMode)||this.themeModes[0],this.selectedThemeColor=this.previousSettings.themeColor,this.store.dispatch((0,Rt.fk)({payload:{uiMessage:Ne.m6.NO_SPINNER,prevLnNodeIndex:+z,currentLnNode:this.selNode,isInitialSetup:!0}}))}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(),z.complete()})}}return(R=N).\u0275fac=function(z){return new(z||R)(e.Y36(ni.mQ),e.Y36(ut.v),e.Y36(ki.yh))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-node-settings"]],decls:78,vars:18,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",3,"perfectScrollbar"],["fxLayout","column","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container"],["form","ngForm"],["displayMode","flat","multi","false"],["fxLayout","column",1,"flat-expansion-panel","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","row","fxFlex","100",1,"alert","alert-info","mb-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","row wrap","fxLayoutAlign","start center"],["tabindex","1","color","primary","name","unannouncedChannels",3,"ngModel","ngModelChange","change"],["fxFlex","100",1,"alert","alert-warn"],["href","https://www.blockchain.com/api/exchange_rates_api","target","blank"],["tabindex","2","color","primary","name","fiatConversion",1,"mr-2",3,"ngModel","ngModelChange","change"],["autoFocus","","tabindex","3","name","currencyUnit",3,"disabled","required","ngModel","ngModelChange","selectionChange"],["currencyUnit","ngModel"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","row","fxFlex","100",1,"alert","alert-info","mb-0"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100"],["color","primary","tabindex","1","name","userPersona",1,"radio-group",3,"ngModel","ngModelChange"],["class","radio-text mr-4",3,"value","checked",4,"ngFor","ngForOf"],[1,"mt-1"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start"],["color","primary","name","themeMode",1,"radio-group",3,"ngModel","ngModelChange","change"],["tabindex","5","class","radio-text mr-4",3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxLayout.gt-xs","row","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-xs","start stretch"],["fxLayout","column","fxFlex.gt-xs","50","fxFlex.gt-md","40","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","row","class","theme-name",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","start start",1,"mt-1"],["fxLayout","row"],["mat-stroked-button","","color","primary","tabindex","10",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","11",3,"click"],[3,"value"],[1,"radio-text","mr-4",3,"value","checked"],["tabindex","5",1,"radio-text","mr-4",3,"value"],["fxLayout","row",1,"theme-name"],["tabindex","9",3,"ngClass","click"]],template:function(z,U){1&z&&(e.TgZ(0,"div",0)(1,"form",1,2)(3,"mat-accordion",3)(4,"mat-expansion-panel",4)(5,"mat-expansion-panel-header")(6,"mat-panel-title"),e._UZ(7,"fa-icon",5),e.TgZ(8,"span",6),e._uU(9,"Open Unannounced Channels"),e.qZA()()(),e.TgZ(10,"div",7)(11,"div",8),e._UZ(12,"fa-icon",9),e.TgZ(13,"span"),e._uU(14,"Use this control to toggle setting which defaults to opening unannounced channels only."),e.qZA()(),e.TgZ(15,"div",10)(16,"mat-slide-toggle",11),e.NdJ("ngModelChange",function(Mt){return U.selNode.settings.unannouncedChannels=Mt})("change",function(){return!U.selNode.settings.unannouncedChannels}),e._uU(17,"Open Unannounced Channels"),e.qZA()()()(),e.TgZ(18,"mat-expansion-panel",4)(19,"mat-expansion-panel-header")(20,"mat-panel-title"),e._UZ(21,"fa-icon",5),e.TgZ(22,"span",6),e._uU(23,"Balance Display"),e.qZA()()(),e.TgZ(24,"div",7)(25,"div",12),e._UZ(26,"fa-icon",9),e.TgZ(27,"span"),e._uU(28,"Fiat conversion calls "),e.TgZ(29,"strong")(30,"a",13),e._uU(31,"Blockchain.com"),e.qZA()(),e._uU(32," API to get conversion rates."),e.qZA()(),e.TgZ(33,"div",10)(34,"mat-slide-toggle",14),e.NdJ("ngModelChange",function(Mt){return U.selNode.settings.fiatConversion=Mt})("change",function(){return!U.selNode.settings.currencyUnit}),e._uU(35,"Enable Fiat Conversion"),e.qZA(),e.TgZ(36,"mat-form-field")(37,"mat-label"),e._uU(38,"Fiat Currency"),e.qZA(),e.TgZ(39,"mat-select",15,16),e.NdJ("ngModelChange",function(Mt){return U.selNode.settings.currencyUnit=Mt})("selectionChange",function(Mt){return U.onCurrencyChange(Mt)}),e.YNc(41,rn,2,2,"mat-option",17),e.qZA(),e.YNc(42,an,2,0,"mat-error",18),e.qZA()()()(),e.TgZ(43,"mat-expansion-panel",4)(44,"mat-expansion-panel-header")(45,"mat-panel-title"),e._UZ(46,"fa-icon",5),e.TgZ(47,"span",6),e._uU(48,"Customization"),e.qZA()()(),e.TgZ(49,"div",7)(50,"div",19),e._UZ(51,"fa-icon",9),e.TgZ(52,"span"),e._uU(53,"Dashboard layout will be tailored based on the role selected to better serve its needs."),e.qZA()(),e.TgZ(54,"div",20)(55,"h4"),e._uU(56,"Dashboard Layout"),e.qZA(),e.TgZ(57,"mat-radio-group",21),e.NdJ("ngModelChange",function(Mt){return U.selNode.settings.userPersona=Mt}),e.YNc(58,fa,3,5,"mat-radio-button",22),e.qZA()(),e._UZ(59,"mat-divider",23),e.TgZ(60,"div",24)(61,"h4"),e._uU(62,"Mode"),e.qZA(),e.TgZ(63,"mat-radio-group",25),e.NdJ("ngModelChange",function(Mt){return U.selectedThemeMode=Mt})("change",function(){return U.chooseThemeMode()}),e.YNc(64,ar,2,2,"mat-radio-button",26),e.qZA()(),e._UZ(65,"mat-divider",23),e.TgZ(66,"div",27)(67,"div",28)(68,"h4"),e._uU(69,"Themes"),e.qZA(),e.TgZ(70,"div",29),e.YNc(71,is,4,8,"span",30),e.qZA()()()()()()(),e.TgZ(72,"div",31)(73,"div",32)(74,"button",33),e.NdJ("click",function(){return U.onResetSettings()}),e._uU(75,"Reset"),e.qZA(),e.TgZ(76,"button",34),e.NdJ("click",function(){return U.onUpdateSettings()}),e._uU(77,"Update"),e.qZA()()()()),2&z&&(e.xp6(7),e.Q6J("icon",U.faEyeSlash),e.xp6(5),e.Q6J("icon",U.faInfoCircle),e.xp6(4),e.Q6J("ngModel",U.selNode.settings.unannouncedChannels),e.xp6(5),e.Q6J("icon",U.faMoneyBillAlt),e.xp6(5),e.Q6J("icon",U.faExclamationTriangle),e.xp6(8),e.Q6J("ngModel",U.selNode.settings.fiatConversion),e.xp6(5),e.Q6J("disabled",!U.selNode.settings.fiatConversion)("required",U.selNode.settings.fiatConversion)("ngModel",U.selNode.settings.currencyUnit),e.xp6(2),e.Q6J("ngForOf",U.currencyUnits),e.xp6(1),e.Q6J("ngIf",U.selNode.settings.fiatConversion&&!U.selNode.settings.currencyUnit),e.xp6(4),e.Q6J("icon",U.faPaintBrush),e.xp6(5),e.Q6J("icon",U.faInfoCircle),e.xp6(6),e.Q6J("ngModel",U.selNode.settings.userPersona),e.xp6(1),e.Q6J("ngForOf",U.userPersonas),e.xp6(5),e.Q6J("ngModel",U.selectedThemeMode),e.xp6(1),e.Q6J("ngForOf",U.themeModes),e.xp6(7),e.Q6J("ngForOf",U.themeColors))},dependencies:[Wi.mk,Wi.sg,Wi.O5,ti._Y,ti.JJ,ti.JL,ti.Q7,ti.On,ti.F,La.BN,ji.xw,ji.Wh,ji.yH,Lt.oO,bi.lW,Ht.pp,Ht.ib,Ht.yz,Ht.yK,Si.KE,Si.hX,Si.TO,Jr.d,ui.VQ,ui.U0,Pi.gD,qi.ey,Di.Rr,tn.$V,hn.h,Wi.i8,Wi.rS],styles:["h4[_ngcontent-%COMP%]{margin:.75rem 0 .5rem}.theme-name[_ngcontent-%COMP%]{min-width:10rem}@media only screen and (max-width: 37.5em){.theme-name[_ngcontent-%COMP%]{min-width:unset}}.skin[_ngcontent-%COMP%]{width:1.25rem;height:1.25rem;border-radius:50%;cursor:pointer;margin-right:.5rem}.skin.selected-color[_ngcontent-%COMP%]{width:1rem;height:1rem;border:2px solid}.skin.purple[_ngcontent-%COMP%]{background-color:#5e4ea5}.skin.indigo[_ngcontent-%COMP%]{background-color:#3f51b5}.skin.teal[_ngcontent-%COMP%]{background-color:#00695c}.skin.pink[_ngcontent-%COMP%]{background-color:#d81b60}.skin.yellow[_ngcontent-%COMP%]{background-color:#a1842c}"]}),N})();var mo=m(1365),Gc=m(9828),gs=m(6529),Eo=m(2501),ur=m(7392),To=m(266),$r=m(9445);const fl=function(R){return{error:R}};function Ns(R,N){if(1&R&&e.GkF(0,14),2&R){const S=e.oxw(),z=e.MAs(18);e.Q6J("ngTemplateOutlet",z)("ngTemplateOutletContext",e.VKq(2,fl,S.errorMessage))}}function W1(R,N){if(1&R&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&R){const S=N.$implicit;e.Q6J("value",S),e.xp6(1),e.hij(" ",S," ")}}function Yl(R,N){if(1&R&&(e.TgZ(0,"mat-option",31),e._uU(1),e.ALo(2,"camelCaseWithSpaces"),e.ALo(3,"camelcaseWithReplace"),e.qZA()),2&R){const S=N.$implicit,z=e.oxw(3);e.Q6J("value",S),e.xp6(1),e.hij(" ","ECL"===z.selNode.lnImplementation?e.lcZ(2,2,S):e.xi3(3,4,S,"_")," ")}}function mc(R,N){if(1&R&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&R){const S=N.$implicit;e.Q6J("value",S),e.xp6(1),e.hij(" ","desc"===S?"Descending":"Ascending"," ")}}function Ka(R,N){if(1&R&&(e.TgZ(0,"mat-option",34),e._uU(1),e.ALo(2,"camelCaseWithSpaces"),e.ALo(3,"camelcaseWithReplace"),e.qZA()),2&R){const S=N.$implicit,z=e.oxw(2).$implicit,U=e.oxw(2);e.Q6J("value",S.column)("disabled",z.columnSelection.length<=2&&z.columnSelection.includes(S.column)),e.xp6(1),e.hij(" ",S.label?S.label:"ECL"===U.selNode.lnImplementation?e.lcZ(2,3,S.column):e.xi3(3,5,S.column,"_")," ")}}function ml(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"mat-form-field",32)(1,"mat-label"),e._uU(2,"Column selection (Desktop Resolution)"),e.qZA(),e.TgZ(3,"mat-select",33),e.NdJ("ngModelChange",function(U){e.CHM(S);const Ee=e.oxw().$implicit;return e.KtG(Ee.columnSelection=U)})("selectionChange",function(){e.CHM(S);const U=e.oxw().$implicit,Ee=e.oxw(2);return e.KtG(Ee.oncolumnSelectionChange(U))}),e.YNc(4,Ka,4,8,"mat-option",28),e.qZA()()}if(2&R){const S=e.oxw().$implicit,z=e.oxw().$implicit,U=e.oxw();e.xp6(3),e.hYB("name","",z.pageId,"",S.tableId,"-columns-selection"),e.Q6J("ngModel",S.columnSelection),e.xp6(1),e.Q6J("ngForOf",U.nodePageDefs[z.pageId][S.tableId].allowedColumns)}}function L0(R,N){if(1&R&&(e.TgZ(0,"mat-option",34),e._uU(1),e.ALo(2,"camelCaseWithSpaces"),e.ALo(3,"camelcaseWithReplace"),e.qZA()),2&R){const S=N.$implicit,z=e.oxw().$implicit,U=e.oxw(2);e.Q6J("value",S.column)("disabled",z.columnSelectionSM.length<=1&&z.columnSelectionSM.includes(S.column)||z.columnSelectionSM.length>=3&&!z.columnSelectionSM.includes(S.column)),e.xp6(1),e.hij(" ",S.label?S.label:"ECL"===U.selNode.lnImplementation?e.lcZ(2,3,S.column):e.xi3(3,5,S.column,"_")," ")}}const Wc=function(R){return{"ml-minus-1":R}};function Zc(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",17)(1,"div",18)(2,"span",19),e._uU(3),e.ALo(4,"camelcaseWithReplace"),e.qZA(),e.TgZ(5,"mat-form-field",20)(6,"mat-label"),e._uU(7,"Records/Page"),e.qZA(),e.TgZ(8,"mat-select",21),e.NdJ("ngModelChange",function(U){const Mt=e.CHM(S).$implicit;return e.KtG(Mt.recordsPerPage=U)}),e.YNc(9,W1,2,2,"mat-option",22),e.qZA()(),e.TgZ(10,"mat-form-field",20)(11,"mat-label"),e._uU(12,"Sort By"),e.qZA(),e.TgZ(13,"mat-select",23),e.NdJ("ngModelChange",function(U){const Mt=e.CHM(S).$implicit;return e.KtG(Mt.sortBy=U)}),e.YNc(14,Yl,4,7,"mat-option",22),e.qZA()(),e.TgZ(15,"mat-form-field",20)(16,"mat-label"),e._uU(17,"Sort Order"),e.qZA(),e.TgZ(18,"mat-select",24),e.NdJ("ngModelChange",function(U){const Mt=e.CHM(S).$implicit;return e.KtG(Mt.sortOrder=U)}),e.YNc(19,mc,2,2,"mat-option",22),e.qZA()(),e.YNc(20,ml,5,4,"mat-form-field",25),e.TgZ(21,"mat-form-field",26)(22,"mat-label"),e._uU(23,"Column Selection (Mobile Resolution)"),e.qZA(),e.TgZ(24,"mat-select",27),e.NdJ("ngModelChange",function(U){const Mt=e.CHM(S).$implicit;return e.KtG(Mt.columnSelectionSM=U)}),e.YNc(25,L0,4,8,"mat-option",28),e.qZA()(),e.TgZ(26,"button",29),e.NdJ("click",function(){const Ee=e.CHM(S).$implicit,Mt=e.oxw().$implicit,Xt=e.oxw();return e.KtG(Xt.onTableReset(Mt.pageId,Ee))}),e.TgZ(27,"mat-icon",30),e._uU(28,"restore"),e.qZA()()()()}if(2&R){const S=N.$implicit,z=e.oxw().$implicit,U=e.oxw();e.xp6(3),e.hij("",e.xi3(4,20,S.tableId,"_"),":"),e.xp6(5),e.hYB("name","",z.pageId,"",S.tableId,"-page-size-options"),e.Q6J("disabled",U.nodePageDefs[z.pageId][S.tableId].disablePageSize)("ngModel",S.recordsPerPage),e.xp6(1),e.Q6J("ngForOf",U.pageSizeOptions),e.xp6(4),e.hYB("name","",z.pageId,"",S.tableId,"-sort-by"),e.Q6J("ngModel",S.sortBy),e.xp6(1),e.Q6J("ngForOf",S.columnSelection),e.xp6(4),e.hYB("name","",z.pageId,"",S.tableId,"-sort-order"),e.Q6J("ngModel",S.sortOrder),e.xp6(1),e.Q6J("ngForOf",U.sortOrders),e.xp6(1),e.Q6J("ngIf",U.screenSize!==U.screenSizeEnum.XS),e.xp6(4),e.hYB("name","",z.pageId,"",S.tableId,"-columns-selection-sm"),e.Q6J("ngModel",S.columnSelectionSM),e.xp6(1),e.Q6J("ngForOf",U.nodePageDefs[z.pageId][S.tableId].allowedColumns),e.xp6(2),e.Q6J("ngClass",e.VKq(23,Wc,U.screenSize===U.screenSizeEnum.XS||U.screenSize===U.screenSizeEnum.SM))}}function pc(R,N){if(1&R&&e.GkF(0,14),2&R){const S=e.oxw(2),z=e.MAs(18);e.Q6J("ngTemplateOutlet",z)("ngTemplateOutletContext",e.VKq(2,fl,S.errorMessage))}}const Cu=function(R){return{"error-border":R}};function D0(R,N){if(1&R&&(e.TgZ(0,"mat-expansion-panel",15)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),e._uU(3),e.ALo(4,"camelcaseWithReplace"),e.qZA()(),e.YNc(5,Zc,29,25,"div",16),e.YNc(6,pc,1,4,"ng-container",6),e.qZA()),2&R){const S=N.$implicit,z=e.oxw();e.Q6J("ngClass",e.VKq(7,Cu,(null==z.errorMessage?null:z.errorMessage.page)===S.pageId)),e.xp6(3),e.Oqu(e.xi3(4,4,S.pageId,"_")),e.xp6(2),e.Q6J("ngForOf",S.tables),e.xp6(1),e.Q6J("ngIf",z.errorMessage&&(null==z.errorMessage?null:z.errorMessage.page)===S.pageId)}}function I0(R,N){if(1&R&&(e.TgZ(0,"mat-panel-title"),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&R){const S=e.oxw().error;e.xp6(1),e.hij("Page ",e.lcZ(2,1,S.page),"")}}function Z1(R,N){if(1&R&&(e.TgZ(0,"mat-list-item")(1,"mat-icon",39),e._uU(2,"close"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.qZA()()),2&R){const S=e.oxw().error;e.xp6(4),e.Oqu(S.message)}}function z3(R,N){if(1&R&&(e.TgZ(0,"mat-list-item")(1,"mat-icon",39),e._uU(2,"close"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"titlecase"),e.qZA()()),2&R){const S=N.$implicit;e.xp6(4),e.AsE("Table ",e.lcZ(5,2,S.table)," ",S.message,"")}}const l2=function(R){return{"error-border p-2":R}};function wu(R,N){if(1&R&&(e.TgZ(0,"div",35),e.YNc(1,I0,3,3,"mat-panel-title",36),e.TgZ(2,"mat-list",37),e.YNc(3,Z1,5,1,"mat-list-item",36),e.YNc(4,z3,6,4,"mat-list-item",38),e.qZA()()),2&R){const S=N.error,z=e.oxw();e.Q6J("ngClass",e.VKq(4,l2,"unknown"===z.errorMessage.page)),e.xp6(1),e.Q6J("ngIf","unknown"===z.errorMessage.page),e.xp6(2),e.Q6J("ngIf",S.message),e.xp6(1),e.Q6J("ngForOf",S.tables)}}let Y1=(()=>{var R;class N{constructor(z,U,Ee,Mt){this.logger=z,this.commonService=U,this.store=Ee,this.actions=Mt,this.faPenRuler=Xi.SoD,this.faExclamationTriangle=Xi.eHv,this.screenSize="",this.screenSizeEnum=Ne.cu,this.pageSizeOptions=Ne.TJ,this.pageSettings=[],this.initialPageSettings=[],this.defaultSettings=[],this.nodePageDefs={},this.sortOrders=Ne.zZ,this.apiCallStatus=null,this.apiCallStatusEnum=Ne.Bn,this.errorMessage=null,this.unSubs=[new Fi.x,new Fi.x,new Fi.x,new Fi.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(xa.dT).pipe((0,sn.R)(this.unSubs[0])).subscribe(z=>{switch(this.selNode=z,this.logger.info(this.selNode),this.selNode.lnImplementation){case"CLN":this.initialPageSettings=Object.assign([],Ne.gG),this.defaultSettings=Object.assign([],Ne.gG),this.nodePageDefs=Ne.At,this.store.select(Gc.AS).pipe((0,sn.R)(this.unSubs[1]),(0,mo.M)(this.store.select(Gc.lw))).subscribe(([U,Ee])=>{const Mt=JSON.parse(JSON.stringify(U.pageSettings));if(this.errorMessage=null,this.apiCallStatus=U.apiCallStatus,this.apiCallStatus.status===Ne.Bn.ERROR)this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=Mt,this.initialPageSettings=Mt;else{if(!Ee?.enableOffers){const Xt=Mt.find(Zi=>"transactions"===Zi.pageId),oi=Xt?.tables.findIndex(Zi=>"offers"===Zi.tableId),Ci=Xt?.tables.findIndex(Zi=>"offer_bookmarks"===Zi.tableId);oi>-1&&Xt?.tables.splice(oi,1),Ci>-1&&Xt?.tables.splice(Ci,1)}if(!Ee?.enablePeerswap){const Xt=Mt.findIndex(oi=>"peerswap"===oi.pageId);Xt>-1&&Mt.splice(Xt,1)}this.pageSettings=Mt,this.initialPageSettings=Mt}this.logger.info(Mt)}),this.actions.pipe((0,sn.R)(this.unSubs[2]),(0,Ya.h)(U=>U.type===Ne.AB.UPDATE_API_CALL_STATUS_CLN||U.type===Ne.AB.SAVE_PAGE_SETTINGS_CLN)).subscribe(U=>{U.type===Ne.AB.UPDATE_API_CALL_STATUS_CLN&&U.payload.status===Ne.Bn.ERROR&&"SavePageSettings"===U.payload.action&&(this.errorMessage=JSON.parse(U.payload.message))});break;case"ECL":this.initialPageSettings=Object.assign([],Ne.c3),this.defaultSettings=Object.assign([],Ne.c3),this.nodePageDefs=Ne.Xk,this.store.select(Eo.nF).pipe((0,sn.R)(this.unSubs[1]),(0,mo.M)(this.store.select(Eo.LR))).subscribe(([U,Ee])=>{const Mt=JSON.parse(JSON.stringify(U.pageSettings));this.errorMessage=null,this.apiCallStatus=U.apiCallStatus,this.apiCallStatus.status===Ne.Bn.ERROR?(this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=Mt,this.initialPageSettings=Mt):(this.pageSettings=Mt,this.initialPageSettings=Mt),this.logger.info(Mt)}),this.actions.pipe((0,sn.R)(this.unSubs[2]),(0,Ya.h)(U=>U.type===Ne.lr.UPDATE_API_CALL_STATUS_ECL||U.type===Ne.lr.SAVE_PAGE_SETTINGS_ECL)).subscribe(U=>{U.type===Ne.lr.UPDATE_API_CALL_STATUS_ECL&&U.payload.status===Ne.Bn.ERROR&&"SavePageSettings"===U.payload.action&&(this.errorMessage=JSON.parse(U.payload.message))});break;default:this.initialPageSettings=Object.assign([],Ne.gK),this.defaultSettings=Object.assign([],Ne.gK),this.nodePageDefs=Ne.hG,this.store.select(gs.Pr).pipe((0,sn.R)(this.unSubs[1]),(0,mo.M)(this.store.select(gs.$k))).subscribe(([U,Ee])=>{const Mt=JSON.parse(JSON.stringify(U.pageSettings));if(this.errorMessage=null,this.apiCallStatus=U.apiCallStatus,this.apiCallStatus.status===Ne.Bn.ERROR)this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=Mt,this.initialPageSettings=Mt;else{if(!Ee?.swapServerUrl||""===Ee.swapServerUrl.trim()){const Xt=Mt.findIndex(oi=>"loop"===oi.pageId);Xt>-1&&Mt.splice(Xt,1)}if(!Ee?.boltzServerUrl||""===Ee.boltzServerUrl.trim()){const Xt=Mt.findIndex(oi=>"boltz"===oi.pageId);Xt>-1&&Mt.splice(Xt,1)}if(!Ee?.enablePeerswap){const Xt=Mt.findIndex(oi=>"peerswap"===oi.pageId);Xt>-1&&Mt.splice(Xt,1)}this.pageSettings=Mt,this.initialPageSettings=Mt}this.logger.info(Mt)}),this.actions.pipe((0,sn.R)(this.unSubs[2]),(0,Ya.h)(U=>U.type===Ne.uR.UPDATE_API_CALL_STATUS_LND||U.type===Ne.uR.SAVE_PAGE_SETTINGS_LND)).subscribe(U=>{U.type===Ne.uR.UPDATE_API_CALL_STATUS_LND&&U.payload.status===Ne.Bn.ERROR&&"SavePageSettings"===U.payload.action&&(this.errorMessage=JSON.parse(U.payload.message))})}})}oncolumnSelectionChange(z){z.columnSelection&&(!z.sortBy||!z.columnSelection.includes(z.sortBy))&&(z.sortBy=z.columnSelection[0])}onUpdatePageSettings(){if(this.pageSettings.reduce((z,U)=>z||U.tables.reduce((Ee,Mt)=>!(Mt.recordsPerPage&&Mt.sortBy&&Mt.sortOrder&&Mt.columnSelection&&Mt.columnSelection.length>=2),!1),!1))return!0;switch(this.errorMessage="",this.selNode.lnImplementation){case"CLN":this.store.dispatch((0,ae.eF)({payload:this.pageSettings}));break;case"ECL":this.store.dispatch((0,we.eF)({payload:this.pageSettings}));break;default:this.store.dispatch((0,Be.eF)({payload:this.pageSettings}))}}onTableReset(z,U){const Ee=this.pageSettings.findIndex(oi=>oi.pageId===z),Mt=this.pageSettings[Ee].tables.findIndex(oi=>oi.tableId===U.tableId),Xt=this.defaultSettings.find(oi=>oi.pageId===z)?.tables.find(oi=>oi.tableId===U.tableId)||this.pageSettings.find(oi=>oi.pageId===z)?.tables.find(oi=>oi.tableId===U.tableId);this.pageSettings[Ee].tables.splice(Mt,1,Xt)}onResetPageSettings(z){"current"===z?(this.errorMessage=null,this.pageSettings=JSON.parse(JSON.stringify(this.initialPageSettings))):(this.errorMessage=null,this.pageSettings=JSON.parse(JSON.stringify(this.defaultSettings)))}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(),z.complete()})}}return(R=N).\u0275fac=function(z){return new(z||R)(e.Y36(ni.mQ),e.Y36(ut.v),e.Y36(ki.yh),e.Y36(Ua.eX))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-page-settings"]],decls:19,vars:3,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"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["displayMode","flat","multi","false"],["fxLayout","column","class","flat-expansion-panel mt-1","expanded","false",3,"ngClass",4,"ngFor","ngForOf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","8",1,"mr-1",3,"click"],["mat-stroked-button","","color","primary","tabindex","9",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","10",3,"click"],["errorObjectBlock",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["fxLayout","column","expanded","false",1,"flat-expansion-panel","mt-1",3,"ngClass"],["fxLayout","column","fxLayoutAlign","start stretch","class","padding-gap-x-large table-setting-row",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x-large","table-setting-row"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center"],["fxFlex","10",1,"mb-2"],["fxLayout","column","fxFlex","10"],["tabindex","2","required","",3,"disabled","name","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["tabindex","3","required","",3,"name","ngModel","ngModelChange"],["tabindex","4","required","",3,"name","ngModel","ngModelChange"],["fxFlex","35","matTooltip","Select a minimum of 2 columns",4,"ngIf"],["fxLayout","column","fxFlex","15","matTooltip","Select between 1 and 3 columns"],["tabindex","5","multiple","","required","",3,"name","ngModel","ngModelChange"],[3,"value","disabled",4,"ngFor","ngForOf"],["mat-icon-button","","color","primary","type","button","tabindex","7","matTooltip","Reset to Default",1,"mb-2",3,"click"],["color","primary",3,"ngClass"],[3,"value"],["fxFlex","35","matTooltip","Select a minimum of 2 columns"],["tabindex","6","multiple","","required","",3,"name","ngModel","ngModelChange","selectionChange"],[3,"value","disabled"],[3,"ngClass"],[4,"ngIf"],["role","list"],[4,"ngFor","ngForOf"],[1,"ml-1","icon-small","red"]],template:function(z,U){1&z&&(e.TgZ(0,"div",0)(1,"form",1,2)(3,"div",3),e._UZ(4,"fa-icon",4),e.TgZ(5,"span",5),e._uU(6,"Grid Settings"),e.qZA()(),e.YNc(7,Ns,1,4,"ng-container",6),e.TgZ(8,"mat-accordion",7),e.YNc(9,D0,7,9,"mat-expansion-panel",8),e.qZA()(),e.TgZ(10,"div",9)(11,"button",10),e.NdJ("click",function(){return U.onResetPageSettings("current")}),e._uU(12,"Reset"),e.qZA(),e.TgZ(13,"button",11),e.NdJ("click",function(){return U.onResetPageSettings("default")}),e._uU(14,"Reset to Default"),e.qZA(),e.TgZ(15,"button",12),e.NdJ("click",function(){return U.onUpdatePageSettings()}),e._uU(16,"Save"),e.qZA()()(),e.YNc(17,wu,5,6,"ng-template",null,13,e.W1O)),2&z&&(e.xp6(4),e.Q6J("icon",U.faPenRuler),e.xp6(3),e.Q6J("ngIf",U.errorMessage&&"unknown"===U.errorMessage.page),e.xp6(2),e.Q6J("ngForOf",U.pageSettings))},dependencies:[Wi.mk,Wi.sg,Wi.O5,Wi.tP,ti._Y,ti.JJ,ti.JL,ti.Q7,ti.On,ti.F,La.BN,ji.xw,ji.Wh,ji.yH,Lt.oO,bi.lW,bi.RK,Ht.pp,Ht.ib,Ht.yz,Ht.yK,ur.Hw,Si.KE,Si.hX,uo.i$,uo.Tg,Pi.gD,qi.ey,To.gM,tn.$V,Wi.rS,$r.D3,$r.i1],styles:[".table-setting-row[_ngcontent-%COMP%]:not(:first-child){margin:.5rem 0}"]}),N})();function j1(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){e.CHM(S);const U=e.oxw();return e.KtG(U.activeLink=U.links[0].link)}),e._uU(1),e.qZA()}if(2&R){const S=e.oxw();e.s9C("routerLink",S.links[0].link),e.Q6J("active",S.activeLink===S.links[0].link),e.xp6(1),e.Oqu(S.links[0].name)}}const k0=function(){return{initial:!1}};function O0(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",11),e.NdJ("click",function(){e.CHM(S);const U=e.oxw();return e.KtG(U.activeLink=U.links[1].link)}),e._uU(1),e.qZA()}if(2&R){const S=e.oxw();e.s9C("routerLink",S.links[1].link),e.Q6J("active",S.activeLink===S.links[1].link)("state",e.DdM(4,k0)),e.xp6(1),e.Oqu(S.links[1].name)}}function K1(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){e.CHM(S);const U=e.oxw();return e.KtG(U.activeLink=U.links[2].link)}),e._uU(1),e.qZA()}if(2&R){const S=e.oxw();e.s9C("routerLink",S.links[2].link),e.Q6J("active",S.activeLink===S.links[2].link),e.xp6(1),e.Oqu(S.links[2].name)}}let Mu=(()=>{var R;class N{constructor(z,U,Ee){this.store=z,this.router=U,this.activatedRoute=Ee,this.faLayerGroup=Xi.Krp,this.links=[{link:"loop",name:"Loop"},{link:"boltz",name:"Boltz"},{link:"peerswap",name:"Peerswap"}],this.activeLink="",this.unSubs=[new Fi.x,new Fi.x,new Fi.x]}ngOnInit(){const z=this.links.find(U=>this.router.url.includes(U.link));this.activeLink=z?z.link:this.links[0].link,this.router.events.pipe((0,sn.R)(this.unSubs[0]),(0,Ya.h)(U=>U instanceof Wn.Av)).subscribe({next:U=>{const Ee=this.links.find(Mt=>U.urlAfterRedirects.includes(Mt.link));this.activeLink="CLN"===this.selNode.lnImplementation.toUpperCase()?this.links[2].link:Ee?Ee.link:this.links[0].link}}),this.store.select(xa.dT).pipe((0,sn.R)(this.unSubs[1])).subscribe(U=>{this.selNode=U,"CLN"===this.selNode.lnImplementation.toUpperCase()&&(this.activeLink=this.links[2].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute}))})}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return(R=N).\u0275fac=function(z){return new(z||R)(e.Y36(ki.yh),e.Y36(Wn.F0),e.Y36(Wn.gz))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-services-settings"]],decls:16,vars:5,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-sub-title-container","my-1"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","click",4,"ngIf"],["tabPanel",""],["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"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(z,U){if(1&z&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span",3),e._uU(4,"Services"),e.qZA()()(),e.TgZ(5,"div",4)(6,"mat-card")(7,"mat-card-content",4)(8,"nav",5),e.YNc(9,j1,2,3,"div",6),e.YNc(10,O0,2,5,"div",7),e.YNc(11,K1,2,3,"div",6),e.qZA(),e._UZ(12,"mat-tab-nav-panel",null,8),e.TgZ(14,"div",9),e._UZ(15,"router-outlet"),e.qZA()()()()),2&z){const Ee=e.MAs(13);e.xp6(2),e.Q6J("icon",U.faLayerGroup),e.xp6(6),e.Q6J("tabPanel",Ee),e.xp6(1),e.Q6J("ngIf","LND"===(null==U.selNode||null==U.selNode.lnImplementation?null:U.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf","LND"===(null==U.selNode||null==U.selNode.lnImplementation?null:U.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf","CLN"===(null==U.selNode||null==U.selNode.lnImplementation?null:U.selNode.lnImplementation.toUpperCase()))}},dependencies:[Wi.O5,La.BN,ji.xw,ji.Wh,ji.yH,Kn.a8,Kn.dn,ze.BU,ze.sW,ze.Nj,Wn.lC,Wn.rH]}),N})();const Qs=["form"];function d2(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Loop server URL is required."),e.qZA())}function P0(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Specify the loop server url with 'https://'."),e.qZA())}function R0(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Loop macaroon path is required."),e.qZA())}let Q1=(()=>{var R;class N{constructor(z,U){this.logger=z,this.store=U,this.faInfoCircle=Xi.sqG,this.enableLoop=!1,this.unSubs=[new Fi.x,new Fi.x]}ngOnInit(){this.store.select(xa.dT).pipe((0,sn.R)(this.unSubs[0])).subscribe(z=>{this.selNode=z,this.enableLoop=!(!z.settings.swapServerUrl||""===z.settings.swapServerUrl.trim()),this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(z)})}onEnableServiceChanged(z){this.enableLoop=z.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,Rt.jS)({payload:{uiMessage:Ne.m6.UPDATE_LOOP_SETTINGS,service:Ne.JX.LOOP,settings:{enable:this.enableLoop,serverUrl:this.selNode.settings.swapServerUrl,macaroonPath:this.selNode.authentication.swapMacaroonPath}}})),this.store.dispatch((0,Be.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,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,ae.Mf)({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,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,we.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,unannouncedChannels:this.selNode.unannouncedChannels,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(z=>{z.next(),z.complete()})}}return(R=N).\u0275fac=function(z){return new(z||R)(e.Y36(ni.mQ),e.Y36(ki.yh))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-loop-service-settings"]],viewQuery:function(z,U){if(1&z&&e.Gf(Qs,7),2&z){let Ee;e.iGM(Ee=e.CRH())&&(U.form=Ee.first)}},decls:38,vars:11,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],[1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://github.com/lightninglabs/loop","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","loop",1,"ml-2",3,"ngModel","ngModelChange","change"],[1,"mb-2"],["matInput","","type","text","id","swapServerUrl","name","srvrUrl","tabindex","2",3,"required","disabled","ngModel","ngModelChange"],["srvrUrl","ngModel"],[4,"ngIf"],["matInput","","type","text","id","swapMacaroonPath","name","swapMacaroonPath","tabindex","3",3,"required","disabled","ngModel","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(z,U){if(1&z&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"Please ensure that "),e.TgZ(5,"strong"),e._uU(6,"loopd"),e.qZA(),e._uU(7," is running and accessible to RTL before enabling this service. Click "),e.TgZ(8,"strong")(9,"a",3),e._uU(10,"here"),e.qZA()(),e._uU(11," to learn more about the installation."),e.qZA()(),e.TgZ(12,"form",4,5)(14,"div",6)(15,"mat-slide-toggle",7),e.NdJ("ngModelChange",function(Mt){return U.enableLoop=Mt})("change",function(Mt){return U.onEnableServiceChanged(Mt)}),e._uU(16,"Enable Loop Service"),e.qZA(),e.TgZ(17,"mat-form-field",8)(18,"mat-label"),e._uU(19,"Loop Server URL"),e.qZA(),e.TgZ(20,"input",9,10),e.NdJ("ngModelChange",function(Mt){return U.selNode.settings.swapServerUrl=Mt}),e.qZA(),e.TgZ(22,"mat-hint"),e._uU(23,"Service url for loop server REST APIs, eg. https://127.0.0.1:8081"),e.qZA(),e.YNc(24,d2,2,0,"mat-error",11),e.YNc(25,P0,2,0,"mat-error",11),e.qZA(),e.TgZ(26,"mat-form-field")(27,"mat-label"),e._uU(28,"Loop Macaroon Path"),e.qZA(),e.TgZ(29,"input",12),e.NdJ("ngModelChange",function(Mt){return U.selNode.authentication.swapMacaroonPath=Mt}),e.qZA(),e.TgZ(30,"mat-hint"),e._uU(31,"Path for the folder containing service 'loop.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Local\\\\Loop\\\\testnet"),e.qZA(),e.YNc(32,R0,2,0,"mat-error",11),e.qZA()()(),e.TgZ(33,"div",13)(34,"button",14),e.NdJ("click",function(){return U.onReset()}),e._uU(35,"Reset"),e.qZA(),e.TgZ(36,"button",15),e.NdJ("click",function(){return U.onUpdateService()}),e._uU(37,"Update"),e.qZA()()()),2&z){const Ee=e.MAs(21);e.xp6(2),e.Q6J("icon",U.faInfoCircle),e.xp6(13),e.Q6J("ngModel",U.enableLoop),e.xp6(5),e.Q6J("required",U.enableLoop)("disabled",!U.enableLoop)("ngModel",U.selNode.settings.swapServerUrl),e.xp6(4),e.Q6J("ngIf",!U.selNode.settings.swapServerUrl&&U.enableLoop),e.xp6(1),e.Q6J("ngIf",(null==Ee||null==Ee.errors?null:Ee.errors.invalid)&&U.enableLoop),e.xp6(4),e.Q6J("required",U.enableLoop)("disabled",!U.enableLoop)("ngModel",U.selNode.authentication.swapMacaroonPath),e.xp6(3),e.Q6J("ngIf",!U.selNode.authentication.swapMacaroonPath&&U.enableLoop)}},dependencies:[Wi.O5,ti._Y,ti.Fj,ti.JJ,ti.JL,ti.Q7,ti.On,ti.F,La.BN,ji.xw,ji.Wh,ji.yH,bi.lW,hr.Nt,Si.KE,Si.hX,Si.bx,Si.TO,Di.Rr,tn.$V,hn.h],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),N})();const q1=["form"];function Su(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Boltz server URL is required."),e.qZA())}function J1(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Specify the boltz server url with 'https://'."),e.qZA())}function V3(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Boltz macaroon path is required."),e.qZA())}let Eu=(()=>{var R;class N{constructor(z,U){this.logger=z,this.store=U,this.faInfoCircle=Xi.sqG,this.enableBoltz=!1,this.serverUrl="",this.macaroonPath="",this.unSubs=[new Fi.x,new Fi.x]}ngOnInit(){this.store.select(xa.dT).pipe((0,sn.R)(this.unSubs[0])).subscribe(z=>{this.selNode=z,this.enableBoltz=!(!z.settings.boltzServerUrl||""===z.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(z)})}onEnableServiceChanged(z){this.enableBoltz=z.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,Rt.jS)({payload:{uiMessage:Ne.m6.UPDATE_BOLTZ_SETTINGS,service:Ne.JX.BOLTZ,settings:{enable:this.enableBoltz,serverUrl:this.serverUrl,macaroonPath:this.macaroonPath}}})),this.store.dispatch((0,Be.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,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,ae.Mf)({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,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,we.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,unannouncedChannels:this.selNode.unannouncedChannels,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(z=>{z.next(),z.complete()})}}return(R=N).\u0275fac=function(z){return new(z||R)(e.Y36(ni.mQ),e.Y36(ki.yh))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-boltz-service-settings"]],viewQuery:function(z,U){if(1&z&&e.Gf(q1,7),2&z){let Ee;e.iGM(Ee=e.CRH())&&(U.form=Ee.first)}},decls:38,vars:11,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],[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,"ml-2",3,"ngModel","ngModelChange","change"],[1,"mb-2"],["matInput","","type","text","id","boltzServerUrl","name","srvrUrl","tabindex","2",3,"required","disabled","ngModel","ngModelChange"],["srvrUrl","ngModel"],[4,"ngIf"],["matInput","","type","text","id","boltzMacaroonPath","name","boltzMacaroonPath","tabindex","3",3,"required","disabled","ngModel","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(z,U){if(1&z&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"Please ensure that "),e.TgZ(5,"strong"),e._uU(6,"boltzd"),e.qZA(),e._uU(7," is running and accessible to RTL before enabling this service. Click "),e.TgZ(8,"strong")(9,"a",3),e._uU(10,"here"),e.qZA()(),e._uU(11," to learn more about the installation."),e.qZA()(),e.TgZ(12,"form",4,5)(14,"div",6)(15,"mat-slide-toggle",7),e.NdJ("ngModelChange",function(Mt){return U.enableBoltz=Mt})("change",function(Mt){return U.onEnableServiceChanged(Mt)}),e._uU(16,"Enable Boltz Service"),e.qZA(),e.TgZ(17,"mat-form-field",8)(18,"mat-label"),e._uU(19,"Boltz Server URL"),e.qZA(),e.TgZ(20,"input",9,10),e.NdJ("ngModelChange",function(Mt){return U.serverUrl=Mt}),e.qZA(),e.TgZ(22,"mat-hint"),e._uU(23,"Service url for boltz server REST APIs, eg. https://127.0.0.1:9003"),e.qZA(),e.YNc(24,Su,2,0,"mat-error",11),e.YNc(25,J1,2,0,"mat-error",11),e.qZA(),e.TgZ(26,"mat-form-field")(27,"mat-label"),e._uU(28,"Boltz Macaroon Path"),e.qZA(),e.TgZ(29,"input",12),e.NdJ("ngModelChange",function(Mt){return U.macaroonPath=Mt}),e.qZA(),e.TgZ(30,"mat-hint"),e._uU(31,"Path for the folder containing boltz 'admin.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Boltz\\\\testnet"),e.qZA(),e.YNc(32,V3,2,0,"mat-error",11),e.qZA()()(),e.TgZ(33,"div",13)(34,"button",14),e.NdJ("click",function(){return U.onReset()}),e._uU(35,"Reset"),e.qZA(),e.TgZ(36,"button",15),e.NdJ("click",function(){return U.onUpdateService()}),e._uU(37,"Update"),e.qZA()()()),2&z){const Ee=e.MAs(21);e.xp6(2),e.Q6J("icon",U.faInfoCircle),e.xp6(13),e.Q6J("ngModel",U.enableBoltz),e.xp6(5),e.Q6J("required",U.enableBoltz)("disabled",!U.enableBoltz)("ngModel",U.serverUrl),e.xp6(4),e.Q6J("ngIf",(!U.serverUrl||""===U.serverUrl.trim())&&U.enableBoltz),e.xp6(1),e.Q6J("ngIf",(null==Ee||null==Ee.errors?null:Ee.errors.invalid)&&U.enableBoltz),e.xp6(4),e.Q6J("required",U.enableBoltz)("disabled",!U.enableBoltz)("ngModel",U.macaroonPath),e.xp6(3),e.Q6J("ngIf",!U.macaroonPath&&U.enableBoltz)}},dependencies:[Wi.O5,ti._Y,ti.Fj,ti.JJ,ti.JL,ti.Q7,ti.On,ti.F,La.BN,ji.xw,ji.Wh,ji.yH,bi.lW,hr.Nt,Si.KE,Si.hX,Si.bx,Si.TO,Di.Rr,tn.$V,hn.h],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),N})(),B3=(()=>{var R;class N{constructor(){}}return(R=N).\u0275fac=function(z){return new(z||R)},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-ln-services"]],decls:1,vars:0,template:function(z,U){1&z&&e._UZ(0,"router-outlet")},dependencies:[Wn.lC]}),N})();var Tu=m(2615),h2=m(9107),pl=m(8739),Yc=m(6308),Zn=m(671),gl=m(3162);function u2(R,N){if(1&R&&(e.TgZ(0,"mat-option",37),e._uU(1),e.qZA()),2&R){const S=N.$implicit,z=e.oxw();e.Q6J("value",S),e.xp6(1),e.Oqu(z.getLabel(S))}}function X1(R,N){1&R&&e._UZ(0,"mat-progress-bar",38)}function _s(R,N){1&R&&(e.TgZ(0,"th",39),e._uU(1,"State"),e.qZA())}function N0(R,N){if(1&R&&(e.TgZ(0,"td",40),e._uU(1),e.qZA()),2&R){const S=N.$implicit,z=e.oxw();e.xp6(1),e.Oqu(z.LoopStateEnum[null==S?null:S.state])}}function f2(R,N){1&R&&(e.TgZ(0,"th",39),e._uU(1,"Initiation Time"),e.qZA())}function F0(R,N){if(1&R&&(e.TgZ(0,"td",40),e._uU(1),e.ALo(2,"date"),e.qZA()),2&R){const S=N.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,(null==S?null:S.initiation_time)/1e6,"dd/MMM/y HH:mm"))}}function H0(R,N){1&R&&(e.TgZ(0,"th",39),e._uU(1,"Last Update Time"),e.qZA())}function m2(R,N){if(1&R&&(e.TgZ(0,"td",40),e._uU(1),e.ALo(2,"date"),e.qZA()),2&R){const S=N.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,(null==S?null:S.last_update_time)/1e6,"dd/MMM/y HH:mm"))}}function z0(R,N){1&R&&(e.TgZ(0,"th",41),e._uU(1,"Amount (Sats)"),e.qZA())}function Au(R,N){if(1&R&&(e.TgZ(0,"td",40)(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&R){const S=N.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==S?null:S.amt))}}function Lu(R,N){1&R&&(e.TgZ(0,"th",41),e._uU(1,"Cost Server (Sats)"),e.qZA())}function V0(R,N){if(1&R&&(e.TgZ(0,"td",40)(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&R){const S=N.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==S?null:S.cost_server))}}function Du(R,N){1&R&&(e.TgZ(0,"th",41),e._uU(1,"Cost Offchain (Sats)"),e.qZA())}function $1(R,N){if(1&R&&(e.TgZ(0,"td",40)(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&R){const S=N.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==S?null:S.cost_offchain))}}function zo(R,N){1&R&&(e.TgZ(0,"th",41),e._uU(1,"Cost Onchain (Sats)"),e.qZA())}function jl(R,N){if(1&R&&(e.TgZ(0,"td",40)(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&R){const S=N.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==S?null:S.cost_onchain)," ")}}function B0(R,N){1&R&&(e.TgZ(0,"th",39),e._uU(1,"HTLC Address"),e.qZA())}const qs=function(R){return{width:R}};function eo(R,N){if(1&R&&(e.TgZ(0,"td",40)(1,"span",43)(2,"span",44),e._uU(3),e.qZA()()()),2&R){const S=N.$implicit,z=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,qs,z.screenSize===z.screenSizeEnum.XS?"6rem":z.colWidth)),e.xp6(2),e.Oqu(null==S?null:S.htlc_address)}}function Js(R,N){1&R&&(e.TgZ(0,"th",39),e._uU(1,"ID"),e.qZA())}function U0(R,N){if(1&R&&(e.TgZ(0,"td",40)(1,"span",43)(2,"span",44),e._uU(3),e.qZA()()()),2&R){const S=N.$implicit,z=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,qs,z.screenSize===z.screenSizeEnum.XS?"6rem":z.colWidth)),e.xp6(2),e.Oqu(null==S?null:S.id)}}function ed(R,N){1&R&&(e.TgZ(0,"th",39),e._uU(1,"ID (Bytes)"),e.qZA())}function Iu(R,N){if(1&R&&(e.TgZ(0,"td",40)(1,"span",43)(2,"span",44),e._uU(3),e.qZA()()()),2&R){const S=N.$implicit,z=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,qs,z.screenSize===z.screenSizeEnum.XS?"6rem":z.colWidth)),e.xp6(2),e.Oqu(null==S?null:S.id_bytes)}}function p2(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"th",45)(1,"div",46)(2,"mat-select",47),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",48),e.NdJ("click",function(){e.CHM(S);const U=e.oxw();return e.KtG(U.onDownloadCSV())}),e._uU(5,"Download CSV"),e.qZA()()()()}}function G0(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"td",49)(1,"button",50),e.NdJ("click",function(U){const Mt=e.CHM(S).$implicit,Xt=e.oxw();return e.KtG(Xt.onSwapClick(Mt,U))}),e._uU(2,"View Info"),e.qZA()()}}function g2(R,N){if(1&R&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&R){const S=e.oxw(2);e.xp6(1),e.Oqu(S.emptyTableMessage)}}function Kl(R,N){if(1&R&&(e.TgZ(0,"td",51),e.YNc(1,g2,2,1,"p",52),e.qZA()),2&R){const S=e.oxw();e.xp6(1),e.Q6J("ngIf",!(null!=S.listSwaps&&S.listSwaps.data)||(null==S.listSwaps||null==S.listSwaps.data?null:S.listSwaps.data.length)<1)}}const Ql=function(R){return{"display-none":R}};function Fs(R,N){if(1&R&&e._UZ(0,"tr",53),2&R){const S=e.oxw();e.Q6J("ngClass",e.VKq(1,Ql,(null==S.listSwaps?null:S.listSwaps.data)&&(null==S.listSwaps||null==S.listSwaps.data?null:S.listSwaps.data.length)>0))}}function ku(R,N){1&R&&e._UZ(0,"tr",54)}function _l(R,N){1&R&&e._UZ(0,"tr",55)}const _2=function(){return["all"]},vl=function(R){return{"overflow-auto error-border":R,"overflow-auto":!0}},gc=function(){return["no_swap"]};let Ou=(()=>{var R;class N{constructor(z,U,Ee,Mt,Xt,oi){this.logger=z,this.commonService=U,this.store=Ee,this.loopService=Mt,this.datePipe=Xt,this.camelCaseWithReplace=oi,this.selectedSwapType=Ne.$I.LOOP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.nodePageDefs=Ne.hG,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="loop",this.tableSetting={tableId:"loop",recordsPerPage:Ne.IV,sortBy:"initiation_time",sortOrder:Ne.Pi.DESCENDING},this.LoopStateEnum=Ne.Fq,this.faHistory=Xi.qO$,this.swapCaption="Loop Out",this.displayedColumns=[],this.listSwaps=new Zn.by([]),this.selFilter="",this.pageSize=Ne.IV,this.pageSizeOptions=Ne.TJ,this.screenSize="",this.screenSizeEnum=Ne.cu,this.unSubs=[new Fi.x,new Fi.x,new Fi.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(gs.Pr).pipe((0,sn.R)(this.unSubs[0])).subscribe(z=>{this.tableSetting=z.pageSettings.find(U=>U.pageId===this.PAGE_ID)?.tables.find(U=>U.tableId===this.tableSetting.tableId)||Ne.gK.find(U=>U.pageId===this.PAGE_ID)?.tables.find(U=>U.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===Ne.cu.XS||this.screenSize===Ne.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:Ne.IV,this.swapsData&&this.swapsData.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadSwapsTable(this.swapsData),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)})}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(z){this.swapCaption=this.selectedSwapType===Ne.$I.LOOP_IN?"Loop In":"Loop Out",this.loadSwapsTable(this.swapsData)}applyFilter(){this.listSwaps.filter=this.selFilter.trim().toLowerCase()}getLabel(z){const U=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(Ee=>Ee.column===z);return U?U.label?U.label:this.camelCaseWithReplace.transform(U.column,"_"):this.commonService.titleCase(z)}setFilterPredicate(){this.listSwaps.filterPredicate=(z,U)=>{let Ee="";switch(this.selFilterBy){case"all":Ee=JSON.stringify(z).toLowerCase();break;case"state":Ee=z?.state?this.LoopStateEnum[z?.state]:"";break;case"initiation_time":case"last_update_time":Ee=this.datePipe.transform(new Date((z[this.selFilterBy]||0)/1e6),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;default:Ee=typeof z[this.selFilterBy]>"u"?"":"string"==typeof z[this.selFilterBy]?z[this.selFilterBy].toLowerCase():"boolean"==typeof z[this.selFilterBy]?z[this.selFilterBy]?"yes":"no":z[this.selFilterBy].toString()}return"state"===this.selFilterBy?0===Ee.indexOf(U):Ee.includes(U)}}onSwapClick(z,U){this.loopService.getSwap(z.id_bytes?.replace(/\//g,"_")?.replace(/\+/g,"-")||"").pipe((0,sn.R)(this.unSubs[1])).subscribe(Ee=>{this.store.dispatch((0,Rt.qR)({payload:{data:{type:Ne.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"state",value:Ne.Fq[Ee.state||""],title:"Status",width:50,type:Ne.Gi.STRING},{key:"amt",value:Ee.amt,title:"Amount (Sats)",width:50,type:Ne.Gi.NUMBER}],[{key:"initiation_time",value:(Ee.initiation_time||0)/1e9,title:"Initiation Time",width:50,type:Ne.Gi.DATE_TIME},{key:"last_update_time",value:(Ee.last_update_time||0)/1e9,title:"Last Update Time",width:50,type:Ne.Gi.DATE_TIME}],[{key:"cost_server",value:Ee.cost_server,title:"Server Cost (Sats)",width:33,type:Ne.Gi.NUMBER},{key:"cost_offchain",value:Ee.cost_offchain,title:"Offchain Cost (Sats)",width:33,type:Ne.Gi.NUMBER},{key:"cost_onchain",value:Ee.cost_onchain,title:"Onchain Cost (Sats)",width:34,type:Ne.Gi.NUMBER}],[{key:"id_bytes",value:Ee.id_bytes,title:"ID",width:100,type:Ne.Gi.STRING}],[{key:"htlc_address",value:Ee.htlc_address,title:"HTLC Address",width:100,type:Ne.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(z){this.listSwaps=new Zn.by([...z]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(U,Ee)=>U[Ee]&&isNaN(U[Ee])?U[Ee].toLocaleLowerCase():U[Ee]?+U[Ee]:null,this.listSwaps.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===Ne.$I.LOOP_IN?"Loop in":"Loop out")}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return(R=N).\u0275fac=function(z){return new(z||R)(e.Y36(ni.mQ),e.Y36(ut.v),e.Y36(ki.yh),e.Y36(h2.W),e.Y36(Wi.uU),e.Y36($r.D3))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-swaps"]],viewQuery:function(z,U){if(1&z&&(e.Gf(Yc.YE,5),e.Gf(pl.NW,5)),2&z){let Ee;e.iGM(Ee=e.CRH())&&(U.sort=Ee.first),e.iGM(Ee=e.CRH())&&(U.paginator=Ee.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[e._Bn([{provide:Pi.PG,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:pl.ye,useValue:(0,Ne.pt)("Swaps")}]),e.TTD],decls:61,vars:20,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.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["table",""],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","initiation_time"],["matColumnDef","last_update_time"],["matColumnDef","amt"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","cost_server"],["matColumnDef","cost_offchain"],["matColumnDef","cost_onchain"],["matColumnDef","htlc_address"],["matColumnDef","id"],["matColumnDef","id_bytes"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayout.gt-xs","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(z,U){1&z&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span",4),e._uU(5),e.qZA()(),e.TgZ(6,"div",5)(7,"mat-form-field",6)(8,"mat-label"),e._uU(9,"Filter By"),e.qZA(),e.TgZ(10,"mat-select",7),e.NdJ("ngModelChange",function(Mt){return U.selFilterBy=Mt})("selectionChange",function(){return U.selFilter="",U.applyFilter()}),e.TgZ(11,"perfect-scrollbar"),e.YNc(12,u2,2,2,"mat-option",8),e.qZA()()(),e.TgZ(13,"mat-form-field",6)(14,"mat-label"),e._uU(15,"Filter"),e.qZA(),e.TgZ(16,"input",9),e.NdJ("ngModelChange",function(Mt){return U.selFilter=Mt})("input",function(){return U.applyFilter()})("keyup",function(){return U.applyFilter()}),e.qZA()()()(),e.TgZ(17,"div",10)(18,"div",11),e.YNc(19,X1,1,0,"mat-progress-bar",12),e.TgZ(20,"table",13,14),e.ynx(22,15),e.YNc(23,_s,2,0,"th",16),e.YNc(24,N0,2,1,"td",17),e.BQk(),e.ynx(25,18),e.YNc(26,f2,2,0,"th",16),e.YNc(27,F0,3,4,"td",17),e.BQk(),e.ynx(28,19),e.YNc(29,H0,2,0,"th",16),e.YNc(30,m2,3,4,"td",17),e.BQk(),e.ynx(31,20),e.YNc(32,z0,2,0,"th",21),e.YNc(33,Au,4,3,"td",17),e.BQk(),e.ynx(34,22),e.YNc(35,Lu,2,0,"th",21),e.YNc(36,V0,4,3,"td",17),e.BQk(),e.ynx(37,23),e.YNc(38,Du,2,0,"th",21),e.YNc(39,$1,4,3,"td",17),e.BQk(),e.ynx(40,24),e.YNc(41,zo,2,0,"th",21),e.YNc(42,jl,4,3,"td",17),e.BQk(),e.ynx(43,25),e.YNc(44,B0,2,0,"th",16),e.YNc(45,eo,4,4,"td",17),e.BQk(),e.ynx(46,26),e.YNc(47,Js,2,0,"th",16),e.YNc(48,U0,4,4,"td",17),e.BQk(),e.ynx(49,27),e.YNc(50,ed,2,0,"th",16),e.YNc(51,Iu,4,4,"td",17),e.BQk(),e.ynx(52,28),e.YNc(53,p2,6,0,"th",29),e.YNc(54,G0,3,0,"td",30),e.BQk(),e.ynx(55,31),e.YNc(56,Kl,2,1,"td",32),e.BQk(),e.YNc(57,Fs,1,3,"tr",33),e.YNc(58,ku,1,0,"tr",34),e.YNc(59,_l,1,0,"tr",35),e.qZA(),e._UZ(60,"mat-paginator",36),e.qZA()()()),2&z&&(e.xp6(3),e.Q6J("icon",U.faHistory),e.xp6(2),e.hij("",U.swapCaption," History"),e.xp6(5),e.Q6J("ngModel",U.selFilterBy),e.xp6(2),e.Q6J("ngForOf",e.DdM(16,_2).concat(U.displayedColumns.slice(0,-1))),e.xp6(4),e.Q6J("ngModel",U.selFilter),e.xp6(3),e.Q6J("ngIf",!0===U.flgLoading[0]),e.xp6(1),e.Q6J("matSortActive",U.tableSetting.sortBy)("matSortDirection",U.tableSetting.sortOrder)("dataSource",U.listSwaps)("ngClass",e.VKq(17,vl,"error"===U.flgLoading[0])),e.xp6(37),e.Q6J("matFooterRowDef",e.DdM(19,gc)),e.xp6(1),e.Q6J("matHeaderRowDef",U.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",U.displayedColumns),e.xp6(1),e.Q6J("pageSize",U.pageSize)("pageSizeOptions",U.pageSizeOptions)("showFirstLastButtons",U.screenSize!==U.screenSizeEnum.XS))},dependencies:[Wi.mk,Wi.sg,Wi.O5,Wi.PC,ti.Fj,ti.JJ,ti.On,La.BN,ji.xw,ji.Wh,ji.yH,Lt.oO,Lt.Zl,bi.lW,hr.Nt,Si.KE,Si.hX,gl.pW,Pi.gD,Pi.$L,qi.ey,Yc.YE,Yc.nU,Zn.BZ,Zn.fO,Zn.as,Zn.w1,Zn.Dz,Zn.nj,Zn.mD,Zn.Ke,Zn.ge,Zn.ev,Zn.yh,Zn.XQ,Zn.Gk,Zn.Q2,pl.NW,tn.Vv,tn.$V,Wi.JJ,Wi.uU]}),N})();const W0=function(R){return["../",R]};function Hs(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",11),e.NdJ("click",function(){const Ee=e.CHM(S).$implicit,Mt=e.oxw();return e.KtG(Mt.onSelectedIndexChange(Ee))}),e._uU(1),e.qZA()}if(2&R){const S=N.$implicit,z=e.oxw();e.Q6J("active",z.activeTab.link===S.link)("routerLink",e.VKq(3,W0,S.link)),e.xp6(1),e.Oqu(S.name)}}let ql=(()=>{var R;class N{constructor(z,U,Ee){this.router=z,this.loopService=U,this.store=Ee,this.faInfinity=Xi.vqe,this.loopInfo=null,this.targetConf=2,this.inAmount=25e4,this.quotes=[],this.LoopTypeEnum=Ne.$I,this.selectedSwapType=Ne.$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 Fi.x,new Fi.x,new Fi.x,new Fi.x,new Fi.x,new Fi.x]}ngOnInit(){this.store.dispatch((0,Rt.ac)({payload:Ne.m6.GET_LOOP_INFO})),this.loopService.getLoopInfo().pipe((0,sn.R)(this.unSubs[4])).subscribe({next:U=>{this.store.dispatch((0,Rt.uO)({payload:Ne.m6.GET_LOOP_INFO})),this.loopInfo=U,this.loopInfo&&this.loopInfo.version&&(this.loopInfo.version=this.loopInfo.version.split(" ")[0])},error:U=>{this.store.dispatch((0,Rt.uO)({payload:Ne.m6.GET_LOOP_INFO})),this.loopInfo.version=" Unknown"}}),this.loopService.listSwaps();const z=this.links.find(U=>this.router.url.includes(U.link));this.activeTab=z||this.links[0],this.selectedSwapType=z&&"loopin"===z.link?Ne.$I.LOOP_IN:Ne.$I.LOOP_OUT,this.router.events.pipe((0,sn.R)(this.unSubs[0]),(0,Ya.h)(U=>U instanceof Wn.Av)).subscribe({next:U=>{const Ee=this.links.find(Mt=>U.urlAfterRedirects.includes(Mt.link));this.activeTab=Ee||this.links[0],this.selectedSwapType=Ee&&"loopin"===Ee.link?Ne.$I.LOOP_IN:Ne.$I.LOOP_OUT}}),this.loopService.swapsChanged.pipe((0,sn.R)(this.unSubs[1])).subscribe({next:U=>{this.flgLoading[0]=!1,this.storedSwaps=U,this.filteredSwaps=this.storedSwaps?.filter(Ee=>Ee.type===this.selectedSwapType)},error:U=>{this.flgLoading[0]="error",this.emptyTableMessage=U.message?U.message:"No loop "+(this.selectedSwapType===Ne.$I.LOOP_IN?"in":"out")+" available."}})}onSelectedIndexChange(z){this.selectedSwapType="loopin"===z.link?Ne.$I.LOOP_IN:Ne.$I.LOOP_OUT,this.filteredSwaps=this.storedSwaps?.filter(U=>U.type===this.selectedSwapType)}onLoop(z){z===Ne.$I.LOOP_IN?this.loopService.getLoopInTermsAndQuotes(this.targetConf).pipe((0,sn.R)(this.unSubs[2])).subscribe({next:U=>{this.store.dispatch((0,Rt.qR)({payload:{data:{minQuote:U[0],maxQuote:U[1],direction:z,component:Tu.a}}}))}}):this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,sn.R)(this.unSubs[3])).subscribe({next:U=>{this.store.dispatch((0,Rt.qR)({payload:{data:{minQuote:U[0],maxQuote:U[1],direction:z,component:Tu.a}}}))}})}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return(R=N).\u0275fac=function(z){return new(z||R)(e.Y36(Wn.F0),e.Y36(h2.W),e.Y36(ki.yh))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-loop"]],decls:15,vars:9,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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["tabPanel",""],["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"],["mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(z,U){if(1&z&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),e.YNc(8,Hs,2,5,"div",6),e.qZA(),e._UZ(9,"mat-tab-nav-panel",null,7),e.TgZ(11,"div",8)(12,"button",9),e.NdJ("click",function(){return U.onLoop(U.selectedSwapType)}),e._uU(13),e.qZA()(),e._UZ(14,"rtl-swaps",10),e.qZA()()()),2&z){const Ee=e.MAs(10);e.xp6(1),e.Q6J("icon",U.faInfinity),e.xp6(2),e.hij("Loop (v",(null==U.loopInfo?null:U.loopInfo.version)||" Unknown",")"),e.xp6(4),e.Q6J("tabPanel",Ee),e.xp6(1),e.Q6J("ngForOf",U.links),e.xp6(5),e.hij("Start ",U.activeTab.name,""),e.xp6(1),e.Q6J("selectedSwapType",U.selectedSwapType)("swapsData",U.filteredSwaps)("flgLoading",U.flgLoading)("emptyTableMessage",U.emptyTableMessage)}},dependencies:[Wi.sg,La.BN,ji.xw,ji.Wh,ji.yH,bi.lW,Kn.a8,Kn.dn,ze.BU,ze.sW,ze.Nj,Wn.rH,Ou]}),N})();var jc=m(7772),Kc=m(1135),Jl=m(2843),vs=m(262),Xl=m(1786);let Qc=(()=>{var R;class N{constructor(z,U,Ee,Mt){this.httpClient=z,this.logger=U,this.store=Ee,this.commonService=Mt,this.swapUrl="",this.swaps={},this.swapsChanged=new Kc.X({}),this.unSubs=[new Fi.x,new Fi.x,new Fi.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,Rt.ac)({payload:Ne.m6.GET_BOLTZ_SWAPS})),this.swapUrl=Ne.T5+Ne.vv.BOLTZ_API+"/listSwaps",this.httpClient.get(this.swapUrl).pipe((0,sn.R)(this.unSubs[0])).subscribe({next:z=>{this.store.dispatch((0,Rt.uO)({payload:Ne.m6.GET_BOLTZ_SWAPS})),this.swaps=z,this.swapsChanged.next(this.swaps)},error:z=>this.swapsChanged.error(this.handleErrorWithAlert(Ne.m6.GET_BOLTZ_SWAPS,this.swapUrl,z))})}swapInfo(z){return this.swapUrl=Ne.T5+Ne.vv.BOLTZ_API+"/swapInfo/"+z,this.httpClient.get(this.swapUrl).pipe((0,vs.K)(U=>(0,lo.of)(this.handleErrorWithAlert(Ne.m6.NO_SPINNER,this.swapUrl,U))))}serviceInfo(){return this.store.dispatch((0,Rt.ac)({payload:Ne.m6.GET_SERVICE_INFO})),this.swapUrl=Ne.T5+Ne.vv.BOLTZ_API+"/serviceInfo",this.httpClient.get(this.swapUrl).pipe((0,sn.R)(this.unSubs[1]),(0,la.U)(z=>(this.store.dispatch((0,Rt.uO)({payload:Ne.m6.GET_SERVICE_INFO})),z)),(0,vs.K)(z=>(0,lo.of)(this.handleErrorWithAlert(Ne.m6.GET_SERVICE_INFO,this.swapUrl,z))))}swapOut(z,U){const Ee={amount:z,address:U};return this.swapUrl=Ne.T5+Ne.vv.BOLTZ_API+"/createreverseswap",this.httpClient.post(this.swapUrl,Ee).pipe((0,vs.K)(Mt=>this.handleErrorWithoutAlert("Swap Out for Address: "+U,Ne.m6.NO_SPINNER,Mt)))}swapIn(z){const U={amount:z};return this.swapUrl=Ne.T5+Ne.vv.BOLTZ_API+"/createswap",this.httpClient.post(this.swapUrl,U).pipe((0,vs.K)(Ee=>this.handleErrorWithoutAlert("Swap In for Amount: "+z,Ne.m6.NO_SPINNER,Ee)))}handleErrorWithoutAlert(z,U,Ee){let Mt="";return this.logger.error("ERROR IN: "+z+"\n"+JSON.stringify(Ee)),this.store.dispatch((0,Rt.uO)({payload:U})),401===Ee.status?(Mt="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Rt.kS)())):503===Ee.status?(Mt="Unable to Connect to Boltz Server.",this.store.dispatch((0,Rt.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:Ee.status,message:"Unable to Connect to Boltz Server",URL:z},component:Xl.H}}}))):Mt=this.commonService.extractErrorMessage(Ee),(0,Jl._)(()=>new Error(Mt))}handleErrorWithAlert(z,U,Ee){let Mt="";if(401===Ee.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Rt.kS)())),this.logger.error(Ee),this.store.dispatch((0,Rt.uO)({payload:z})),401===Ee.status)Mt="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Rt.kS)());else if(503===Ee.status)Mt="Unable to Connect to Boltz Server.",setTimeout(()=>{this.store.dispatch((0,Rt.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:Ee.status,message:"Unable to Connect to Boltz Server",URL:U},component:Xl.H}}}))},100);else{Mt=this.commonService.extractErrorMessage(Ee);const Xt=Ee.error&&Ee.error.error&&Ee.error.error.code?Ee.error.error.code:Ee.error&&Ee.error.code?Ee.error.code:Ee.code?Ee.code:Ee.status;setTimeout(()=>{this.store.dispatch((0,Rt.qR)({payload:{data:{type:Ne.n_.ERROR,alertTitle:"ERROR",message:{code:Xt,message:Mt,URL:U},component:Xl.H}}}))},100)}return{message:Mt}}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return(R=N).\u0275fac=function(z){return new(z||R)(e.LFG($o.eN),e.LFG(ni.mQ),e.LFG(ki.yh),e.LFG(ut.v))},R.\u0275prov=e.Yz7({token:R,factory:R.\u0275fac}),N})();function Pu(R,N){1&R&&e.GkF(0)}function Ru(R,N){if(1&R&&(e.TgZ(0,"div",4)(1,"span",5),e._uU(2),e.qZA()()),2&R){const S=e.oxw();e.xp6(2),e.Oqu(null!=S.swapStatus&&S.swapStatus.error?null==S.swapStatus?null:S.swapStatus.error:"Unknown Error.")}}function Nu(R,N){if(1&R&&(e.TgZ(0,"div",4)(1,"div",6)(2,"div",7)(3,"h4",8),e._uU(4,"ID"),e.qZA(),e.TgZ(5,"span",5),e._uU(6),e.qZA()(),e.TgZ(7,"div",7)(8,"h4",8),e._uU(9,"Routing Fee (mSats)"),e.qZA(),e.TgZ(10,"span",5),e._uU(11),e.ALo(12,"number"),e.qZA()()(),e._UZ(13,"mat-divider",9),e.TgZ(14,"div",6)(15,"div",7)(16,"h4",8),e._uU(17,"Claim Transaction ID"),e.qZA(),e.TgZ(18,"span",5),e._uU(19),e.qZA()(),e.TgZ(20,"div",7)(21,"h4",8),e._uU(22,"Lockup Address"),e.qZA(),e.TgZ(23,"span",5),e._uU(24),e.qZA()()()()),2&R){const S=e.oxw();e.xp6(6),e.Oqu(null==S.swapStatus?null:S.swapStatus.id),e.xp6(5),e.Oqu(e.lcZ(12,4,null==S.swapStatus?null:S.swapStatus.routingFeeMilliSat)),e.xp6(8),e.Oqu(null==S.swapStatus?null:S.swapStatus.claimTransactionId),e.xp6(5),e.Oqu(null==S.swapStatus?null:S.swapStatus.lockupAddress)}}function Fu(R,N){if(1&R&&(e.TgZ(0,"div",4)(1,"div",6)(2,"div",7)(3,"h4",8),e._uU(4,"ID"),e.qZA(),e.TgZ(5,"span",5),e._uU(6),e.qZA()(),e.TgZ(7,"div",7)(8,"h4",8),e._uU(9,"Expected Amount (Sats)"),e.qZA(),e.TgZ(10,"span",5),e._uU(11),e.ALo(12,"number"),e.qZA()()(),e._UZ(13,"mat-divider",9),e.TgZ(14,"div",6)(15,"div",10)(16,"h4",8),e._uU(17,"Address"),e.qZA(),e.TgZ(18,"span",5),e._uU(19),e.qZA()()(),e._UZ(20,"mat-divider",9),e.TgZ(21,"div",6)(22,"div",10)(23,"h4",8),e._uU(24,"BIP 21"),e.qZA(),e.TgZ(25,"span",5),e._uU(26),e.qZA()()()()),2&R){const S=e.oxw();e.xp6(6),e.Oqu(null==S.swapStatus?null:S.swapStatus.id),e.xp6(5),e.Oqu(e.lcZ(12,4,null==S.swapStatus?null:S.swapStatus.expectedAmount)),e.xp6(8),e.Oqu(null==S.swapStatus?null:S.swapStatus.address),e.xp6(7),e.Oqu(null==S.swapStatus?null:S.swapStatus.bip21)}}let Hu=(()=>{var R;class N{constructor(){this.swapStatus=null,this.direction=Ne.hc.SWAP_OUT,this.swapTypeEnum=Ne.hc}}return(R=N).\u0275fac=function(z){return new(z||R)},R.\u0275cmp=e.Xpm({type:R,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(z,U){if(1&z&&(e.YNc(0,Pu,1,0,"ng-container",0),e.YNc(1,Ru,3,1,"ng-template",null,1,e.W1O),e.YNc(3,Nu,25,6,"ng-template",null,2,e.W1O),e.YNc(5,Fu,27,6,"ng-template",null,3,e.W1O)),2&z){const Ee=e.MAs(2),Mt=e.MAs(4),Xt=e.MAs(6);e.Q6J("ngTemplateOutlet",null!=U.swapStatus&&U.swapStatus.error?Ee:U.direction===U.swapTypeEnum.SWAP_OUT?Mt:Xt)}},dependencies:[Wi.tP,ji.xw,ji.Wh,ji.yH,Jr.d,Wi.JJ]}),N})(),zu=(()=>{var R;class N{constructor(){this.serviceInfo={},this.direction=Ne.hc.SWAP_OUT,this.swapTypeEnum=Ne.hc}}return(R=N).\u0275fac=function(z){return new(z||R)},R.\u0275cmp=e.Xpm({type:R,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(z,U){1&z&&(e.TgZ(0,"mat-expansion-panel",0)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",1),e._uU(4,"Service Information"),e.qZA()()(),e.TgZ(5,"div",2)(6,"div",3)(7,"div",4)(8,"h4",5),e._uU(9,"Minimum Amount (Sats)"),e.qZA(),e.TgZ(10,"span",6),e._uU(11),e.ALo(12,"number"),e.qZA()(),e.TgZ(13,"div",4)(14,"h4",5),e._uU(15,"Maximum Amount (Sats)"),e.qZA(),e.TgZ(16,"span",6),e._uU(17),e.ALo(18,"number"),e.qZA()()(),e._UZ(19,"mat-divider",7),e.TgZ(20,"div",3)(21,"div",4)(22,"h4",5),e._uU(23,"Fee Percentage"),e.qZA(),e.TgZ(24,"span",6),e._uU(25),e.ALo(26,"number"),e.qZA()(),e.TgZ(27,"div",4)(28,"h4",5),e._uU(29,"Miner Fee (Sats)"),e.qZA(),e.TgZ(30,"span",6),e._uU(31),e.ALo(32,"number"),e.qZA()()()()()),2&z&&(e.Q6J("expanded",!0),e.xp6(11),e.Oqu(e.lcZ(12,5,null==U.serviceInfo||null==U.serviceInfo.limits?null:U.serviceInfo.limits.minimal)),e.xp6(6),e.Oqu(e.lcZ(18,7,null==U.serviceInfo||null==U.serviceInfo.limits?null:U.serviceInfo.limits.maximal)),e.xp6(8),e.Oqu(e.lcZ(26,9,null==U.serviceInfo||null==U.serviceInfo.fees?null:U.serviceInfo.fees.percentage)),e.xp6(6),e.Oqu(e.lcZ(32,11,U.direction===U.swapTypeEnum.SWAP_OUT?null==U.serviceInfo||null==U.serviceInfo.fees||null==U.serviceInfo.fees.miner?null:U.serviceInfo.fees.miner.reverse:null==U.serviceInfo||null==U.serviceInfo.fees||null==U.serviceInfo.fees.miner?null:U.serviceInfo.fees.miner.normal)))},dependencies:[ji.xw,ji.Wh,ji.yH,Ht.ib,Ht.yz,Ht.yK,Jr.d,Wi.JJ]}),N})();var v2=m(113);function $l(R,N){1&R&&e.GkF(0)}const _c=function(R,N){return{"small-svg":R,"large-svg":N}};function td(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(U){e.CHM(S);const Ee=e.oxw();return e.KtG(Ee.onSwipe(U))}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",8)(3,"path",9)(4,"path",10)(5,"path",11)(6,"path",12)(7,"path",13)(8,"path",14)(9,"path",15)(10,"path",16)(11,"path",17),e.qZA(),e.kcU(),e.TgZ(12,"div",18)(13,"mat-card-title"),e._uU(14,"Boltz Submarine Swaps explained."),e.qZA()(),e.TgZ(15,"div",19)(16,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&R){const S=e.oxw();e.Q6J("@sliderAnimation",S.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,_c,S.screenSize===S.screenSizeEnum.XS,S.screenSize!==S.screenSizeEnum.XS))}}function vc(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(U){e.CHM(S);const Ee=e.oxw();return e.KtG(Ee.onSwipe(U))}),e.O4$(),e.TgZ(1,"svg",21),e._UZ(2,"path",22)(3,"path",23)(4,"path",24)(5,"path",25)(6,"path",26)(7,"path",27)(8,"path",28),e.qZA(),e.kcU(),e.TgZ(9,"div",18)(10,"mat-card-title"),e._uU(11,"Step 1: Deciding to Submarine Swap"),e.qZA()(),e.TgZ(12,"div",19)(13,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&R){const S=e.oxw();e.Q6J("@sliderAnimation",S.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,_c,S.screenSize===S.screenSizeEnum.XS,S.screenSize!==S.screenSizeEnum.XS))}}function id(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(U){e.CHM(S);const Ee=e.oxw();return e.KtG(Ee.onSwipe(U))}),e.O4$(),e.TgZ(1,"svg",29),e._UZ(2,"path",30)(3,"path",31)(4,"path",32)(5,"path",33)(6,"path",34)(7,"circle",35)(8,"rect",36),e.TgZ(9,"defs")(10,"pattern",37),e._UZ(11,"use",38),e.qZA(),e._UZ(12,"image",39),e.qZA()(),e.kcU(),e.TgZ(13,"div",18)(14,"mat-card-title"),e._uU(15,"Step 2: Sending the on-chain funds"),e.qZA()(),e.TgZ(16,"div",19)(17,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&R){const S=e.oxw();e.Q6J("@sliderAnimation",S.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,_c,S.screenSize===S.screenSizeEnum.XS,S.screenSize!==S.screenSizeEnum.XS))}}function bl(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(U){e.CHM(S);const Ee=e.oxw();return e.KtG(Ee.onSwipe(U))}),e.O4$(),e.TgZ(1,"svg",40)(2,"g",41),e._UZ(3,"path",42)(4,"path",43)(5,"path",44)(6,"path",45)(7,"path",46),e.qZA(),e.TgZ(8,"defs")(9,"clipPath",47),e._UZ(10,"rect",48),e.qZA()()(),e.kcU(),e.TgZ(11,"div",18)(12,"mat-card-title"),e._uU(13,"Step 3: Receiving the funds on Lightning"),e.qZA()(),e.TgZ(14,"div",19)(15,"mat-card-subtitle",20),e._uU(16," Boltz pays the Lightning invoice to your node and claims the on-chain funds locked in the previous step. "),e.qZA()()()}if(2&R){const S=e.oxw();e.Q6J("@sliderAnimation",S.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,_c,S.screenSize===S.screenSizeEnum.XS,S.screenSize!==S.screenSizeEnum.XS))}}function nd(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(U){e.CHM(S);const Ee=e.oxw();return e.KtG(Ee.onSwipe(U))}),e.O4$(),e.TgZ(1,"svg",49),e._UZ(2,"path",50)(3,"path",51)(4,"path",52)(5,"path",53)(6,"path",54),e.qZA(),e.kcU(),e.TgZ(7,"div",18)(8,"mat-card-title"),e._uU(9,"Done!"),e.qZA()(),e.TgZ(10,"div",19)(11,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&R){const S=e.oxw();e.Q6J("@sliderAnimation",S.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,_c,S.screenSize===S.screenSizeEnum.XS,S.screenSize!==S.screenSizeEnum.XS))}}let bc=(()=>{var R;class N{constructor(z){this.commonService=z,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.vpe,this.screenSize="",this.screenSizeEnum=Ne.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(z){2===z.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===z.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return(R=N).\u0275fac=function(z){return new(z||R)(e.Y36(ut.v))},R.\u0275cmp=e.Xpm({type:R,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(z,U){if(1&z&&(e.YNc(0,$l,1,0,"ng-container",0),e.YNc(1,td,18,5,"ng-template",null,1,e.W1O),e.YNc(3,vc,15,5,"ng-template",null,2,e.W1O),e.YNc(5,id,19,5,"ng-template",null,3,e.W1O),e.YNc(7,bl,17,5,"ng-template",null,4,e.W1O),e.YNc(9,nd,13,5,"ng-template",null,5,e.W1O)),2&z){const Ee=e.MAs(2),Mt=e.MAs(4),Xt=e.MAs(6),oi=e.MAs(8),Ci=e.MAs(10);e.Q6J("ngTemplateOutlet",1===U.stepNumber?Ee:2===U.stepNumber?Mt:3===U.stepNumber?Xt:4===U.stepNumber?oi:Ci)}},dependencies:[Wi.mk,Wi.tP,ji.xw,ji.Wh,ji.yH,Lt.oO,Kn.$j,Kn.n5],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:[v2.l]}}),N})();function Xs(R,N){1&R&&e.GkF(0)}const qc=function(R,N){return{"small-svg":R,"large-svg":N}};function Z0(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(U){e.CHM(S);const Ee=e.oxw();return e.KtG(Ee.onSwipe(U))}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",8)(3,"path",9)(4,"path",10)(5,"path",11)(6,"path",12)(7,"path",13)(8,"path",14)(9,"path",15)(10,"path",16)(11,"path",17),e.qZA(),e.kcU(),e.TgZ(12,"div",18)(13,"mat-card-title"),e._uU(14,"Boltz Reverse Submarine Swap explained."),e.qZA()(),e.TgZ(15,"div",19)(16,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&R){const S=e.oxw();e.Q6J("@sliderAnimation",S.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,qc,S.screenSize===S.screenSizeEnum.XS,S.screenSize!==S.screenSizeEnum.XS))}}function Vu(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(U){e.CHM(S);const Ee=e.oxw();return e.KtG(Ee.onSwipe(U))}),e.O4$(),e.TgZ(1,"svg",21)(2,"g",22),e._UZ(3,"path",23)(4,"path",24)(5,"path",25)(6,"path",26)(7,"path",27)(8,"path",28),e.qZA(),e._UZ(9,"path",29),e.TgZ(10,"defs")(11,"clipPath",30),e._UZ(12,"rect",31),e.qZA()()(),e.kcU(),e.TgZ(13,"div",18)(14,"mat-card-title"),e._uU(15,"Step 1: Deciding to Reverse Submarine Swap"),e.qZA()(),e.TgZ(16,"div",19)(17,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&R){const S=e.oxw();e.Q6J("@sliderAnimation",S.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,qc,S.screenSize===S.screenSizeEnum.XS,S.screenSize!==S.screenSizeEnum.XS))}}function ad(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(U){e.CHM(S);const Ee=e.oxw();return e.KtG(Ee.onSwipe(U))}),e.O4$(),e.TgZ(1,"svg",32),e._UZ(2,"path",33)(3,"path",34)(4,"path",35)(5,"path",36)(6,"path",37)(7,"circle",38)(8,"rect",39),e.TgZ(9,"defs")(10,"pattern",40),e._UZ(11,"use",41),e.qZA(),e._UZ(12,"image",42),e.qZA()(),e.kcU(),e.TgZ(13,"div",18)(14,"mat-card-title"),e._uU(15,"Step 2: Paying the Lightning Invoice"),e.qZA()(),e.TgZ(16,"div",19)(17,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&R){const S=e.oxw();e.Q6J("@sliderAnimation",S.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,qc,S.screenSize===S.screenSizeEnum.XS,S.screenSize!==S.screenSizeEnum.XS))}}function Bu(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(U){e.CHM(S);const Ee=e.oxw();return e.KtG(Ee.onSwipe(U))}),e.O4$(),e.TgZ(1,"svg",43)(2,"g",22),e._UZ(3,"path",44)(4,"path",45)(5,"path",46)(6,"path",47)(7,"path",48),e.qZA(),e.TgZ(8,"defs")(9,"clipPath",30),e._UZ(10,"rect",49),e.qZA()()(),e.kcU(),e.TgZ(11,"div",18)(12,"mat-card-title"),e._uU(13,"Step 3: Receiving the funds on-chain"),e.qZA()(),e.TgZ(14,"div",19)(15,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&R){const S=e.oxw();e.Q6J("@sliderAnimation",S.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,qc,S.screenSize===S.screenSizeEnum.XS,S.screenSize!==S.screenSizeEnum.XS))}}function Y0(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(U){e.CHM(S);const Ee=e.oxw();return e.KtG(Ee.onSwipe(U))}),e.O4$(),e.TgZ(1,"svg",50),e._UZ(2,"path",51)(3,"path",52)(4,"path",53)(5,"path",54)(6,"path",55),e.qZA(),e.kcU(),e.TgZ(7,"div",18)(8,"mat-card-title"),e._uU(9,"Done!"),e.qZA()(),e.TgZ(10,"div",19)(11,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&R){const S=e.oxw();e.Q6J("@sliderAnimation",S.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,qc,S.screenSize===S.screenSizeEnum.XS,S.screenSize!==S.screenSizeEnum.XS))}}let j0=(()=>{var R;class N{constructor(z){this.commonService=z,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.vpe,this.screenSize="",this.screenSizeEnum=Ne.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(z){2===z.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===z.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return(R=N).\u0275fac=function(z){return new(z||R)(e.Y36(ut.v))},R.\u0275cmp=e.Xpm({type:R,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(z,U){if(1&z&&(e.YNc(0,Xs,1,0,"ng-container",0),e.YNc(1,Z0,18,5,"ng-template",null,1,e.W1O),e.YNc(3,Vu,19,5,"ng-template",null,2,e.W1O),e.YNc(5,ad,19,5,"ng-template",null,3,e.W1O),e.YNc(7,Bu,17,5,"ng-template",null,4,e.W1O),e.YNc(9,Y0,13,5,"ng-template",null,5,e.W1O)),2&z){const Ee=e.MAs(2),Mt=e.MAs(4),Xt=e.MAs(6),oi=e.MAs(8),Ci=e.MAs(10);e.Q6J("ngTemplateOutlet",1===U.stepNumber?Ee:2===U.stepNumber?Mt:3===U.stepNumber?Xt:4===U.stepNumber?oi:Ci)}},dependencies:[Wi.mk,Wi.tP,ji.xw,ji.Wh,ji.yH,Lt.oO,Kn.$j,Kn.n5],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:[v2.l]}}),N})();const b2=["stepper"];function y2(R,N){if(1&R&&e._uU(0),2&R){const S=e.oxw(2);e.Oqu(S.inputFormLabel)}}function rd(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount is required."),e.qZA())}function yl(R,N){if(1&R&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&R){const S=e.oxw(2);e.xp6(1),e.hij("Amount must be greater than or equal to ",e.lcZ(2,1,null==S.serviceInfo||null==S.serviceInfo.limits?null:S.serviceInfo.limits.minimal),".")}}function e1(R,N){if(1&R&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&R){const S=e.oxw(2);e.xp6(1),e.hij("Amount must be less than or equal to ",e.lcZ(2,1,null==S.serviceInfo||null==S.serviceInfo.limits?null:S.serviceInfo.limits.maximal),".")}}function t1(R,N){1&R&&(e.TgZ(0,"button",40),e._uU(1,"Next"),e.qZA())}function $s(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"button",41),e.NdJ("click",function(){e.CHM(S);const U=e.oxw(2);return e.KtG(U.onSwap())}),e._uU(1),e.qZA()}if(2&R){const S=e.oxw(2);e.xp6(1),e.hij("Initiate ",S.swapDirectionCaption,"")}}function x2(R,N){if(1&R&&e._uU(0),2&R){const S=e.oxw(3);e.Oqu(S.addressFormLabel)}}function xl(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Address is required."),e.qZA())}function zs(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"mat-step",15)(1,"form",16),e.YNc(2,x2,1,1,"ng-template",17),e.TgZ(3,"div",42)(4,"mat-radio-group",43),e.NdJ("change",function(U){e.CHM(S);const Ee=e.oxw(2);return e.KtG(Ee.onAddressTypeChange(U))}),e.TgZ(5,"mat-radio-button",44),e._uU(6,"Node Local Address"),e.qZA(),e.TgZ(7,"mat-radio-button",45),e._uU(8,"External Address"),e.qZA()(),e.TgZ(9,"mat-form-field",46)(10,"mat-label"),e._uU(11,"Address"),e.qZA(),e._UZ(12,"input",47),e.YNc(13,xl,2,0,"mat-error",24),e.qZA()(),e.TgZ(14,"div",25)(15,"button",48),e.NdJ("click",function(){e.CHM(S);const U=e.oxw(2);return e.KtG(U.onSwap())}),e._uU(16),e.qZA()()()()}if(2&R){const S=e.oxw(2);e.Q6J("stepControl",S.addressFormGroup)("editable",S.flgEditable),e.xp6(1),e.Q6J("formGroup",S.addressFormGroup),e.xp6(11),e.Q6J("required","external"===S.addressFormGroup.controls.addressType.value),e.xp6(1),e.Q6J("ngIf",null==S.addressFormGroup.controls.address.errors?null:S.addressFormGroup.controls.address.errors.required),e.xp6(3),e.hij("Initiate ",S.swapDirectionCaption,"")}}function Uu(R,N){if(1&R&&e._uU(0),2&R){const S=e.oxw(2);e.hij("",S.swapDirectionCaption," Status")}}function n1(R,N){if(1&R&&(e.TgZ(0,"mat-icon",49),e._uU(1),e.qZA()),2&R){const S=e.oxw(2);e.xp6(1),e.Oqu(S.swapStatus&&null!=S.swapStatus&&S.swapStatus.id?"check":"close")}}function od(R,N){1&R&&e._UZ(0,"div")}function Cl(R,N){1&R&&e._UZ(0,"mat-progress-bar",50)}function C2(R,N){if(1&R&&(e.TgZ(0,"h4",51),e._uU(1),e.qZA()),2&R){const S=e.oxw(2);e.xp6(1),e.Oqu(S.swapStatus&&S.swapStatus.error?S.swapDirectionCaption+" failed.":S.swapStatus&&S.swapStatus.id?S.swapDirectionCaption+" request placed successfully. You can check the status of the request on the 'Boltz' menu.":S.swapDirectionCaption+" request placed successfully.")}}function sd(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"button",52),e.NdJ("click",function(){e.CHM(S);const U=e.oxw(2);return e.KtG(U.onRestart())}),e._uU(1,"Start Again"),e.qZA()}}function fr(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),e._uU(5),e.qZA()(),e.TgZ(6,"div",8)(7,"button",9),e.NdJ("click",function(){e.CHM(S);const U=e.oxw();return e.KtG(U.showInfo())}),e._uU(8,"?"),e.qZA(),e.TgZ(9,"button",10),e.NdJ("click",function(){e.CHM(S);const U=e.oxw();return e.KtG(U.onClose())}),e._uU(10,"X"),e.qZA()()(),e.TgZ(11,"mat-card-content",11)(12,"div",12)(13,"mat-vertical-stepper",13,14),e.NdJ("selectionChange",function(U){e.CHM(S);const Ee=e.oxw();return e.KtG(Ee.stepSelectionChanged(U))}),e.TgZ(15,"mat-step",15)(16,"form",16),e.YNc(17,y2,1,1,"ng-template",17),e.TgZ(18,"div",18),e._UZ(19,"rtl-boltz-service-info",19),e.qZA(),e.TgZ(20,"div",20)(21,"mat-form-field",21)(22,"mat-label"),e._uU(23,"Amount"),e.qZA(),e._UZ(24,"input",22),e.TgZ(25,"mat-hint"),e._uU(26),e.ALo(27,"number"),e.ALo(28,"number"),e.qZA(),e.TgZ(29,"span",23),e._uU(30,"Sats"),e.qZA(),e.YNc(31,rd,2,0,"mat-error",24),e.YNc(32,yl,3,3,"mat-error",24),e.YNc(33,e1,3,3,"mat-error",24),e.qZA()(),e.TgZ(34,"div",25),e.YNc(35,t1,2,0,"button",26),e.YNc(36,$s,2,1,"button",27),e.qZA()()(),e.YNc(37,zs,17,6,"mat-step",28),e.TgZ(38,"mat-step",29)(39,"form",16),e.YNc(40,Uu,1,1,"ng-template",17),e.TgZ(41,"div",30)(42,"mat-expansion-panel",31)(43,"mat-expansion-panel-header")(44,"mat-panel-title")(45,"span",32),e._uU(46),e.YNc(47,n1,2,1,"mat-icon",33),e.qZA()()(),e.YNc(48,od,1,0,"div",34),e.qZA(),e.YNc(49,Cl,1,0,"mat-progress-bar",35),e.qZA(),e.YNc(50,C2,2,1,"h4",36),e.TgZ(51,"div",25),e.YNc(52,sd,2,0,"button",37),e.qZA()()()(),e.TgZ(53,"div",38)(54,"button",39),e._uU(55,"Close"),e.qZA()()()()()()}if(2&R){const S=e.oxw(),z=e.MAs(2);e.Q6J("@opacityAnimation",void 0),e.xp6(3),e.Q6J("fxFlex",S.screenSize===S.screenSizeEnum.XS||S.screenSize===S.screenSizeEnum.SM?"83":"91"),e.xp6(2),e.Oqu(S.swapDirectionCaption),e.xp6(1),e.Q6J("fxFlex",S.screenSize===S.screenSizeEnum.XS||S.screenSize===S.screenSizeEnum.SM?"17":"9"),e.xp6(7),e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",S.inputFormGroup)("editable",S.flgEditable),e.xp6(1),e.Q6J("formGroup",S.inputFormGroup),e.xp6(3),e.Q6J("serviceInfo",S.serviceInfo)("direction",S.direction),e.xp6(5),e.Q6J("step",1e3),e.xp6(2),e.AsE("Range: ",e.lcZ(27,30,null==S.serviceInfo||null==S.serviceInfo.limits?null:S.serviceInfo.limits.minimal),"-",e.lcZ(28,32,null==S.serviceInfo||null==S.serviceInfo.limits?null:S.serviceInfo.limits.maximal),""),e.xp6(5),e.Q6J("ngIf",null==S.inputFormGroup||null==S.inputFormGroup.controls||null==S.inputFormGroup.controls.amount||null==S.inputFormGroup.controls.amount.errors?null:S.inputFormGroup.controls.amount.errors.required),e.xp6(1),e.Q6J("ngIf",null==S.inputFormGroup||null==S.inputFormGroup.controls||null==S.inputFormGroup.controls.amount||null==S.inputFormGroup.controls.amount.errors?null:S.inputFormGroup.controls.amount.errors.min),e.xp6(1),e.Q6J("ngIf",null==S.inputFormGroup||null==S.inputFormGroup.controls||null==S.inputFormGroup.controls.amount||null==S.inputFormGroup.controls.amount.errors?null:S.inputFormGroup.controls.amount.errors.max),e.xp6(2),e.Q6J("ngIf",S.direction===S.swapTypeEnum.SWAP_OUT),e.xp6(1),e.Q6J("ngIf",S.direction===S.swapTypeEnum.SWAP_IN),e.xp6(1),e.Q6J("ngIf",S.direction===S.swapTypeEnum.SWAP_OUT),e.xp6(1),e.Q6J("stepControl",S.statusFormGroup),e.xp6(1),e.Q6J("formGroup",S.statusFormGroup),e.xp6(3),e.Q6J("expanded",!!S.swapStatus),e.xp6(4),e.Oqu(S.swapStatus?S.swapStatus.id?S.swapDirectionCaption+" request details":S.swapDirectionCaption+" error details":"Waiting for "+S.swapDirectionCaption+" request..."),e.xp6(1),e.Q6J("ngIf",S.swapStatus),e.xp6(1),e.Q6J("ngIf",!S.swapStatus)("ngIfElse",z),e.xp6(1),e.Q6J("ngIf",!S.swapStatus),e.xp6(1),e.Q6J("ngIf",S.swapStatus),e.xp6(2),e.Q6J("ngIf",S.swapStatus&&(S.swapStatus.error||!S.swapStatus.id)),e.xp6(2),e.Q6J("mat-dialog-close",!1)}}function a1(R,N){if(1&R&&e._UZ(0,"rtl-boltz-swap-status",53),2&R){const S=e.oxw();e.Q6J("swapStatus",S.swapStatus)("direction",S.direction)}}function r1(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"rtl-boltz-swapout-info-graphics",70),e.NdJ("stepNumberChange",function(U){e.CHM(S);const Ee=e.oxw(2);return e.KtG(Ee.stepNumber=U)}),e.qZA()}if(2&R){const S=e.oxw(2);e.Q6J("animationDirection",S.animationDirection)("stepNumber",S.stepNumber)}}function $n(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"rtl-boltz-swapin-info-graphics",70),e.NdJ("stepNumberChange",function(U){e.CHM(S);const Ee=e.oxw(2);return e.KtG(Ee.stepNumber=U)}),e.qZA()}if(2&R){const S=e.oxw(2);e.Q6J("animationDirection",S.animationDirection)("stepNumber",S.stepNumber)}}const K0=function(R,N){return{"dot-primary":R,"dot-primary-lighter":N}};function Jc(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"span",71),e.NdJ("click",function(){const Ee=e.CHM(S).$implicit,Mt=e.oxw(2);return e.KtG(Mt.onStepChanged(Ee))}),e._UZ(1,"p",72),e.qZA()}if(2&R){const S=N.$implicit,z=e.oxw(2);e.xp6(1),e.Q6J("ngClass",e.WLB(1,K0,z.stepNumber===S,z.stepNumber!==S))}}function o1(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"button",73),e.NdJ("click",function(){e.CHM(S);const U=e.oxw(2);return e.KtG(U.onReadMore())}),e._uU(1,"Read More"),e.qZA()}}function Q0(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"button",74),e.NdJ("click",function(){e.CHM(S);const U=e.oxw(2);return e.KtG(U.onStepChanged(4))}),e._uU(1,"Back"),e.qZA()}}function s1(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"button",75),e.NdJ("click",function(){e.CHM(S);const U=e.oxw(2);return U.flgShowInfo=!1,e.KtG(U.stepNumber=1)}),e._uU(1,"Close"),e.qZA()}}function q0(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"button",76),e.NdJ("click",function(){e.CHM(S);const U=e.oxw(2);return U.flgShowInfo=!1,e.KtG(U.stepNumber=1)}),e._uU(1,"Close"),e.qZA()}}function w2(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"button",77),e.NdJ("click",function(){e.CHM(S);const U=e.oxw(2);return e.KtG(U.onStepChanged(U.stepNumber-1))}),e._uU(1,"Back"),e.qZA()}}function wl(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"button",78),e.NdJ("click",function(){e.CHM(S);const U=e.oxw(2);return e.KtG(U.onStepChanged(U.stepNumber+1))}),e._uU(1,"Next"),e.qZA()}}const c1=function(){return[1,2,3,4,5]};function cd(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",54)(1,"div",18)(2,"mat-card-header",55)(3,"div",56),e._UZ(4,"span",7),e.qZA(),e.TgZ(5,"div",57)(6,"button",58),e.NdJ("click",function(){e.CHM(S);const U=e.oxw();return U.flgShowInfo=!1,e.KtG(U.stepNumber=1)}),e._uU(7,"X"),e.qZA()()(),e.TgZ(8,"mat-card-content",59),e.YNc(9,r1,1,2,"rtl-boltz-swapout-info-graphics",60),e.YNc(10,$n,1,2,"rtl-boltz-swapin-info-graphics",60),e.qZA(),e.TgZ(11,"div",61),e.YNc(12,Jc,2,4,"span",62),e.qZA(),e.TgZ(13,"div",63),e.YNc(14,o1,2,0,"button",64),e.YNc(15,Q0,2,0,"button",65),e.YNc(16,s1,2,0,"button",66),e.YNc(17,q0,2,0,"button",67),e.YNc(18,w2,2,0,"button",68),e.YNc(19,wl,2,0,"button",69),e.qZA()()()}if(2&R){const S=e.oxw();e.Q6J("@opacityAnimation",void 0),e.xp6(9),e.Q6J("ngIf",S.direction===S.swapTypeEnum.SWAP_OUT),e.xp6(1),e.Q6J("ngIf",S.direction===S.swapTypeEnum.SWAP_IN),e.xp6(2),e.Q6J("ngForOf",e.DdM(10,c1)),e.xp6(2),e.Q6J("ngIf",5===S.stepNumber),e.xp6(1),e.Q6J("ngIf",5===S.stepNumber),e.xp6(1),e.Q6J("ngIf",5===S.stepNumber),e.xp6(1),e.Q6J("ngIf",S.stepNumber<5),e.xp6(1),e.Q6J("ngIf",S.stepNumber>1&&S.stepNumber<5),e.xp6(1),e.Q6J("ngIf",S.stepNumber<5)}}let M2=(()=>{var R;class N{constructor(z,U,Ee,Mt,Xt,oi,Ci){this.dialogRef=z,this.data=U,this.boltzService=Ee,this.formBuilder=Mt,this.decimalPipe=Xt,this.logger=oi,this.commonService=Ci,this.faInfoCircle=Xi.sqG,this.serviceInfo={fees:{percentage:null,miner:{normal:null,reverse:null}},limits:{minimal:1e4,maximal:5e7}},this.swapTypeEnum=Ne.hc,this.direction=Ne.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=Ne.cu,this.animationDirection="forward",this.flgEditable=!0,this.unSubs=[new Fi.x,new Fi.x,new Fi.x,new Fi.x,new Fi.x,new Fi.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.serviceInfo=this.data.serviceInfo,this.direction=this.data.direction||Ne.hc.SWAP_OUT,this.swapDirectionCaption=this.direction===Ne.hc.SWAP_OUT?"Swap Out":"Swap in",this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.serviceInfo.limits?.minimal,[ti.kI.required,ti.kI.min(this.serviceInfo.limits?.minimal||0),ti.kI.max(this.serviceInfo.limits?.maximal||0)]]}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[ti.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges()}ngAfterViewInit(){this.direction===Ne.hc.SWAP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.direction===Ne.hc.SWAP_OUT&&this.addressFormGroup.valueChanges.pipe((0,sn.R)(this.unSubs[2])).subscribe(z=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(z){"external"===z.value?(this.addressFormGroup.controls.address.setValidators([ti.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.serviceInfo.limits?.minimal&&this.inputFormGroup.controls.amount.value<+this.serviceInfo.limits.minimal||this.serviceInfo.limits?.maximal&&this.inputFormGroup.controls.amount.value>+this.serviceInfo.limits.maximal||this.direction===Ne.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===Ne.hc.SWAP_IN?this.boltzService.swapIn(this.inputFormGroup.controls.amount.value).pipe((0,sn.R)(this.unSubs[3])).subscribe({next:z=>{this.swapStatus=z,this.boltzService.listSwaps(),this.flgEditable=!0},error:z=>{this.swapStatus={error:z},this.flgEditable=!0,this.logger.error(z)}}):this.boltzService.swapOut(this.inputFormGroup.controls.amount.value,"external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"").pipe((0,sn.R)(this.unSubs[4])).subscribe({next:U=>{this.swapStatus=U,this.boltzService.listSwaps(),this.flgEditable=!0},error:U=>{this.swapStatus={error:U},this.flgEditable=!0,this.logger.error(U)}})}stepSelectionChanged(z){switch(z.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"}z.selectedIndex{z.next(null),z.complete()})}}return(R=N).\u0275fac=function(z){return new(z||R)(e.Y36(ra.so),e.Y36(ra.WI),e.Y36(Qc),e.Y36(ti.QS),e.Y36(Wi.JJ),e.Y36(ni.mQ),e.Y36(ut.v))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-boltz-swap-modal"]],viewQuery:function(z,U){if(1&z&&e.Gf(b2,5),2&z){let Ee;e.iGM(Ee=e.CRH())&&(U.stepper=Ee.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"],["fxLayout","column","fxFlex","48"],["autoFocus","","matInput","","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"],["fxLayout","column","fxFlex","100",1,"mt-1"],["matInput","","tabindex","10","formControlName","address",3,"required"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-2"],["mat-button","","color","primary","tabindex","13","type","button",3,"click"],["fxLayout","column",3,"swapStatus","direction"],["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,"animationDirection","stepNumber","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,"animationDirection","stepNumber","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(z,U){1&z&&(e.YNc(0,fr,56,34,"div",0),e.YNc(1,a1,1,2,"ng-template",null,1,e.W1O),e.YNc(3,cd,20,11,"div",2)),2&z&&(e.Q6J("ngIf",!U.flgShowInfo),e.xp6(3),e.Q6J("ngIf",U.flgShowInfo))},dependencies:[Wi.mk,Wi.sg,Wi.O5,ti._Y,ti.Fj,ti.wV,ti.JJ,ti.JL,ti.Q7,ti.sg,ti.u,ji.xw,ji.Wh,ji.yH,Lt.oO,ra.ZT,bi.lW,Kn.dn,Kn.dk,Ht.ib,Ht.yz,Ht.yK,ur.Hw,hr.Nt,Si.KE,Si.hX,Si.bx,Si.TO,Si.R9,gl.pW,ui.VQ,ui.U0,ho.C0,ho.VY,ho.Vq,ho.Ic,hn.h,Hu,zu,bc,j0,Wi.JJ],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:30rem;min-height:30rem;overflow-x:hidden}"],data:{animation:[jc._]}}),N})();function ld(R,N){if(1&R&&(e.TgZ(0,"mat-option",42),e._uU(1),e.qZA()),2&R){const S=N.$implicit,z=e.oxw();e.Q6J("value",S),e.xp6(1),e.Oqu(z.getLabel(S))}}function yc(R,N){1&R&&e._UZ(0,"mat-progress-bar",43)}function dd(R,N){1&R&&(e.TgZ(0,"th",44),e._uU(1,"Status"),e.qZA())}function J0(R,N){if(1&R&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&R){const S=N.$implicit,z=e.oxw();e.xp6(1),e.Oqu(z.swapStateEnum[null==S?null:S.status])}}function hd(R,N){1&R&&(e.TgZ(0,"th",44),e._uU(1,"Swap ID"),e.qZA())}function X0(R,N){if(1&R&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&R){const S=N.$implicit;e.xp6(1),e.Oqu(null==S?null:S.id)}}function $0(R,N){1&R&&(e.TgZ(0,"th",44),e._uU(1,"Claim Address"),e.qZA())}const po=function(R){return{width:R}};function Xc(R,N){if(1&R&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&R){const S=N.$implicit,z=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,po,z.screenSize===z.screenSizeEnum.XS?"6rem":z.colWidth)),e.xp6(2),e.Oqu(null==S?null:S.claimAddress)}}function eh(R,N){1&R&&(e.TgZ(0,"th",44),e._uU(1,"Lockup Address"),e.qZA())}function S2(R,N){if(1&R&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&R){const S=N.$implicit,z=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,po,z.screenSize===z.screenSizeEnum.XS?"6rem":z.colWidth)),e.xp6(2),e.Oqu(null==S?null:S.lockupAddress)}}function th(R,N){1&R&&(e.TgZ(0,"th",48),e._uU(1,"Onchain Amount (Sats)"),e.qZA())}function E2(R,N){if(1&R&&(e.TgZ(0,"td",45)(1,"span",49),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&R){const S=N.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==S?null:S.onchainAmount))}}function ih(R,N){1&R&&(e.TgZ(0,"th",48),e._uU(1,"Expected Amount (Sats)"),e.qZA())}function nh(R,N){if(1&R&&(e.TgZ(0,"td",45)(1,"span",49),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&R){const S=N.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==S?null:S.expectedAmount))}}function T2(R,N){1&R&&(e.TgZ(0,"th",44),e._uU(1,"Error"),e.qZA())}function A2(R,N){if(1&R&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&R){const S=N.$implicit,z=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,po,z.screenSize===z.screenSizeEnum.XS?"6rem":z.colWidth)),e.xp6(2),e.Oqu(null==S?null:S.error)}}function ah(R,N){1&R&&(e.TgZ(0,"th",44),e._uU(1,"Private Key"),e.qZA())}function rh(R,N){if(1&R&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&R){const S=N.$implicit,z=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,po,z.screenSize===z.screenSizeEnum.XS?"6rem":z.colWidth)),e.xp6(2),e.Oqu(null==S?null:S.privateKey)}}function L2(R,N){1&R&&(e.TgZ(0,"th",44),e._uU(1,"Preimage"),e.qZA())}function l1(R,N){if(1&R&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&R){const S=N.$implicit,z=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,po,z.screenSize===z.screenSizeEnum.XS?"6rem":z.colWidth)),e.xp6(2),e.Oqu(null==S?null:S.preimage)}}function bs(R,N){1&R&&(e.TgZ(0,"th",44),e._uU(1,"Redeem Script"),e.qZA())}function Ml(R,N){if(1&R&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&R){const S=N.$implicit,z=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,po,z.screenSize===z.screenSizeEnum.XS?"6rem":z.colWidth)),e.xp6(2),e.Oqu(null==S?null:S.redeemScript)}}function ud(R,N){1&R&&(e.TgZ(0,"th",44),e._uU(1,"Invoice"),e.qZA())}function D2(R,N){if(1&R&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&R){const S=N.$implicit,z=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,po,z.screenSize===z.screenSizeEnum.XS?"6rem":z.colWidth)),e.xp6(2),e.Oqu(null==S?null:S.invoice)}}function fd(R,N){1&R&&(e.TgZ(0,"th",48),e._uU(1,"Timeout Block Height"),e.qZA())}function Gu(R,N){if(1&R&&(e.TgZ(0,"td",45)(1,"span",49),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&R){const S=N.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==S?null:S.timeoutBlockHeight))}}function I2(R,N){1&R&&(e.TgZ(0,"th",44),e._uU(1,"Lockup Tx ID"),e.qZA())}function Wu(R,N){if(1&R&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&R){const S=N.$implicit;e.xp6(1),e.Oqu(null==S?null:S.lockupTransactionId)}}function md(R,N){1&R&&(e.TgZ(0,"th",44),e._uU(1,"Claim Tx ID"),e.qZA())}function d1(R,N){if(1&R&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&R){const S=N.$implicit;e.xp6(1),e.Oqu(null==S?null:S.claimTransactionId)}}function Zu(R,N){1&R&&(e.TgZ(0,"th",44),e._uU(1,"Refund Tx ID"),e.qZA())}function oh(R,N){if(1&R&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&R){const S=N.$implicit;e.xp6(1),e.Oqu(null==S?null:S.refundTransactionId)}}function pd(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"th",50)(1,"div",51)(2,"mat-select",52),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",53),e.NdJ("click",function(){e.CHM(S);const U=e.oxw();return e.KtG(U.onDownloadCSV())}),e._uU(5,"Download CSV"),e.qZA()()()()}}function sh(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"td",54)(1,"button",55),e.NdJ("click",function(U){const Mt=e.CHM(S).$implicit,Xt=e.oxw();return e.KtG(Xt.onSwapClick(Mt,U))}),e._uU(2,"View Info"),e.qZA()()}}function ch(R,N){if(1&R&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&R){const S=e.oxw(2);e.xp6(1),e.Oqu(S.emptyTableMessage)}}function k2(R,N){if(1&R&&(e.TgZ(0,"td",56),e.YNc(1,ch,2,1,"p",57),e.qZA()),2&R){const S=e.oxw();e.xp6(1),e.Q6J("ngIf",!(null!=S.listSwaps&&S.listSwaps.data)||(null==S.listSwaps||null==S.listSwaps.data?null:S.listSwaps.data.length)<1)}}const lh=function(R){return{"display-none":R}};function O2(R,N){if(1&R&&e._UZ(0,"tr",58),2&R){const S=e.oxw();e.Q6J("ngClass",e.VKq(1,lh,(null==S.listSwaps?null:S.listSwaps.data)&&(null==S.listSwaps||null==S.listSwaps.data?null:S.listSwaps.data.length)>0))}}function h1(R,N){1&R&&e._UZ(0,"tr",59)}function P2(R,N){1&R&&e._UZ(0,"tr",60)}const gd=function(){return["all"]},R2=function(R){return{"overflow-auto error-border":R,"overflow-auto":!0}},Qa=function(){return["no_swap"]};let _d=(()=>{var R;class N{constructor(z,U,Ee,Mt,Xt){this.logger=z,this.commonService=U,this.store=Ee,this.boltzService=Mt,this.camelCaseWithReplace=Xt,this.selectedSwapType=Ne.hc.SWAP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.nodePageDefs=Ne.hG,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="boltz",this.tableSettingSwapOut={tableId:"swap_out",recordsPerPage:Ne.IV,sortBy:"status",sortOrder:Ne.Pi.DESCENDING},this.tableSettingSwapIn={tableId:"swap_in",recordsPerPage:Ne.IV,sortBy:"status",sortOrder:Ne.Pi.DESCENDING},this.swapStateEnum=Ne.Qw,this.swapTypeEnum=Ne.hc,this.faHistory=Xi.qO$,this.swapCaption="Swap Out",this.displayedColumns=[],this.listSwaps=new Zn.by([]),this.selFilter="",this.pageSize=Ne.IV,this.pageSizeOptions=Ne.TJ,this.screenSize="",this.screenSizeEnum=Ne.cu,this.unSubs=[new Fi.x,new Fi.x,new Fi.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(gs.Pr).pipe((0,sn.R)(this.unSubs[0])).subscribe(z=>{this.tableSettingSwapOut=z.pageSettings.find(U=>U.pageId===this.PAGE_ID)?.tables.find(U=>U.tableId===this.tableSettingSwapOut.tableId)||Ne.gK.find(U=>U.pageId===this.PAGE_ID)?.tables.find(U=>U.tableId===this.tableSettingSwapOut.tableId),this.tableSettingSwapIn=z.pageSettings.find(U=>U.pageId===this.PAGE_ID)?.tables.find(U=>U.tableId===this.tableSettingSwapIn.tableId)||Ne.gK.find(U=>U.pageId===this.PAGE_ID)?.tables.find(U=>U.tableId===this.tableSettingSwapIn.tableId),this.setTableColumns(),this.swapsData&&this.swapsData.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadSwapsTable(this.swapsData),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)})}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(z){z.selectedSwapType&&!z.selectedSwapType.firstChange&&this.setTableColumns(),this.swapCaption=this.selectedSwapType===Ne.hc.SWAP_IN?"Swap In":"Swap Out",this.loadSwapsTable(this.swapsData)}setTableColumns(){this.selectedSwapType===Ne.hc.SWAP_IN?(this.displayedColumns=this.screenSize===Ne.cu.XS||this.screenSize===Ne.cu.SM?JSON.parse(JSON.stringify(this.tableSettingSwapIn.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSettingSwapIn.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSettingSwapIn.recordsPerPage?+this.tableSettingSwapIn.recordsPerPage:Ne.IV):(this.displayedColumns=this.screenSize===Ne.cu.XS||this.screenSize===Ne.cu.SM?JSON.parse(JSON.stringify(this.tableSettingSwapOut.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSettingSwapOut.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSettingSwapOut.recordsPerPage?+this.tableSettingSwapOut.recordsPerPage:Ne.IV)}applyFilter(){this.listSwaps&&""!==this.selFilter&&(this.listSwaps.filter=this.selFilter.trim().toLowerCase())}getLabel(z){const Ee=this.nodePageDefs[this.PAGE_ID][this.selectedSwapType===Ne.hc.SWAP_IN?this.tableSettingSwapIn.tableId:this.tableSettingSwapOut.tableId].allowedColumns.find(Mt=>Mt.column===z);return Ee?Ee.label?Ee.label:this.camelCaseWithReplace.transform(Ee.column,"_"):this.commonService.titleCase(z)}setFilterPredicate(){this.listSwaps.filterPredicate=(z,U)=>{let Ee="";switch(this.selFilterBy){case"all":Ee=JSON.stringify(z).toLowerCase();break;case"status":Ee=z?.status?this.swapStateEnum[z?.status]:"";break;default:Ee=typeof z[this.selFilterBy]>"u"?"":"string"==typeof z[this.selFilterBy]?z[this.selFilterBy].toLowerCase():"boolean"==typeof z[this.selFilterBy]?z[this.selFilterBy]?"yes":"no":z[this.selFilterBy].toString()}return"status"===this.selFilterBy?0===Ee.indexOf(U):Ee.includes(U)}}onSwapClick(z,U){this.boltzService.swapInfo(z.id||"").pipe((0,sn.R)(this.unSubs[1])).subscribe(Ee=>{this.store.dispatch((0,Rt.qR)({payload:{data:{type:Ne.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"status",value:Ne.Qw[(Ee=this.selectedSwapType===Ne.hc.SWAP_IN?Ee.swap:Ee.reverseSwap).status],title:"Status",width:50,type:Ne.Gi.STRING},{key:"id",value:Ee.id,title:"ID",width:50,type:Ne.Gi.STRING}],[{key:"amount",value:Ee.onchainAmount?Ee.onchainAmount:Ee.expectedAmount?Ee.expectedAmount:0,title:Ee.onchainAmount?"Onchain Amount (Sats)":Ee.expectedAmount?"Expected Amount (Sats)":"Amount (Sats)",width:50,type:Ne.Gi.NUMBER},{key:"timeoutBlockHeight",value:Ee.timeoutBlockHeight,title:"Timeout Block Height",width:50,type:Ne.Gi.NUMBER}],[{key:"address",value:Ee.claimAddress?Ee.claimAddress:Ee.lockupAddress?Ee.lockupAddress:"",title:Ee.claimAddress?"Claim Address":Ee.lockupAddress?"Lockup Address":"Address",width:100,type:Ne.Gi.STRING}],[{key:"invoice",value:Ee.invoice,title:"Invoice",width:100,type:Ne.Gi.STRING}],[{key:"privateKey",value:Ee.privateKey,title:"Private Key",width:100,type:Ne.Gi.STRING}],[{key:"preimage",value:Ee.preimage,title:"Preimage",width:100,type:Ne.Gi.STRING}],[{key:"redeemScript",value:Ee.redeemScript,title:"Redeem Script",width:100,type:Ne.Gi.STRING}],[{key:"lockupTransactionId",value:Ee.lockupTransactionId,title:"Lockup Transaction ID",width:50,type:Ne.Gi.STRING},{key:"transactionId",value:Ee.claimTransactionId?Ee.claimTransactionId:Ee.refundTransactionId?Ee.refundTransactionId:"",title:Ee.claimTransactionId?"Claim Transaction ID":Ee.refundTransactionId?"Refund Transaction ID":"Transaction ID",width:50,type:Ne.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(z){this.listSwaps=new Zn.by(z?[...z]:[]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(U,Ee)=>U[Ee]&&isNaN(U[Ee])?U[Ee].toLocaleLowerCase():U[Ee]?+U[Ee]:null,this.paginator&&this.paginator.firstPage(),this.listSwaps.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===Ne.hc.SWAP_IN?"Swap in":"Swap out")}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return(R=N).\u0275fac=function(z){return new(z||R)(e.Y36(ni.mQ),e.Y36(ut.v),e.Y36(ki.yh),e.Y36(Qc),e.Y36($r.D3))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-boltz-swaps"]],viewQuery:function(z,U){if(1&z&&(e.Gf(Yc.YE,5),e.Gf(pl.NW,5)),2&z){let Ee;e.iGM(Ee=e.CRH())&&(U.sort=Ee.first),e.iGM(Ee=e.CRH())&&(U.paginator=Ee.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[e._Bn([{provide:Pi.PG,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:pl.ye,useValue:(0,Ne.pt)("Swaps")}]),e.TTD],decls:76,vars:20,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.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["table",""],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","claimAddress"],["matColumnDef","lockupAddress"],["matColumnDef","onchainAmount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","expectedAmount"],["matColumnDef","error"],["matColumnDef","privateKey"],["matColumnDef","preimage"],["matColumnDef","redeemScript"],["matColumnDef","invoice"],["matColumnDef","timeoutBlockHeight"],["matColumnDef","lockupTransactionId"],["matColumnDef","claimTransactionId"],["matColumnDef","refundTransactionId"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayout.gt-xs","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(z,U){1&z&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span",4),e._uU(5),e.qZA()(),e.TgZ(6,"div",5)(7,"mat-form-field",6)(8,"mat-label"),e._uU(9,"Filter By"),e.qZA(),e.TgZ(10,"mat-select",7),e.NdJ("ngModelChange",function(Mt){return U.selFilterBy=Mt})("selectionChange",function(){return U.selFilter="",U.applyFilter()}),e.TgZ(11,"perfect-scrollbar"),e.YNc(12,ld,2,2,"mat-option",8),e.qZA()()(),e.TgZ(13,"mat-form-field",6)(14,"mat-label"),e._uU(15,"Filter"),e.qZA(),e.TgZ(16,"input",9),e.NdJ("ngModelChange",function(Mt){return U.selFilter=Mt})("input",function(){return U.applyFilter()})("keyup",function(){return U.applyFilter()}),e.qZA()()()(),e.TgZ(17,"div",10)(18,"div",11),e.YNc(19,yc,1,0,"mat-progress-bar",12),e.TgZ(20,"table",13,14),e.ynx(22,15),e.YNc(23,dd,2,0,"th",16),e.YNc(24,J0,2,1,"td",17),e.BQk(),e.ynx(25,18),e.YNc(26,hd,2,0,"th",16),e.YNc(27,X0,2,1,"td",17),e.BQk(),e.ynx(28,19),e.YNc(29,$0,2,0,"th",16),e.YNc(30,Xc,4,4,"td",17),e.BQk(),e.ynx(31,20),e.YNc(32,eh,2,0,"th",16),e.YNc(33,S2,4,4,"td",17),e.BQk(),e.ynx(34,21),e.YNc(35,th,2,0,"th",22),e.YNc(36,E2,4,3,"td",17),e.BQk(),e.ynx(37,23),e.YNc(38,ih,2,0,"th",22),e.YNc(39,nh,4,3,"td",17),e.BQk(),e.ynx(40,24),e.YNc(41,T2,2,0,"th",16),e.YNc(42,A2,4,4,"td",17),e.BQk(),e.ynx(43,25),e.YNc(44,ah,2,0,"th",16),e.YNc(45,rh,4,4,"td",17),e.BQk(),e.ynx(46,26),e.YNc(47,L2,2,0,"th",16),e.YNc(48,l1,4,4,"td",17),e.BQk(),e.ynx(49,27),e.YNc(50,bs,2,0,"th",16),e.YNc(51,Ml,4,4,"td",17),e.BQk(),e.ynx(52,28),e.YNc(53,ud,2,0,"th",16),e.YNc(54,D2,4,4,"td",17),e.BQk(),e.ynx(55,29),e.YNc(56,fd,2,0,"th",22),e.YNc(57,Gu,4,3,"td",17),e.BQk(),e.ynx(58,30),e.YNc(59,I2,2,0,"th",16),e.YNc(60,Wu,2,1,"td",17),e.BQk(),e.ynx(61,31),e.YNc(62,md,2,0,"th",16),e.YNc(63,d1,2,1,"td",17),e.BQk(),e.ynx(64,32),e.YNc(65,Zu,2,0,"th",16),e.YNc(66,oh,2,1,"td",17),e.BQk(),e.ynx(67,33),e.YNc(68,pd,6,0,"th",34),e.YNc(69,sh,3,0,"td",35),e.BQk(),e.ynx(70,36),e.YNc(71,k2,2,1,"td",37),e.BQk(),e.YNc(72,O2,1,3,"tr",38),e.YNc(73,h1,1,0,"tr",39),e.YNc(74,P2,1,0,"tr",40),e.qZA(),e._UZ(75,"mat-paginator",41),e.qZA()()()),2&z&&(e.xp6(3),e.Q6J("icon",U.faHistory),e.xp6(2),e.hij("",U.swapCaption," History"),e.xp6(5),e.Q6J("ngModel",U.selFilterBy),e.xp6(2),e.Q6J("ngForOf",e.DdM(16,gd).concat(U.displayedColumns.slice(0,-1))),e.xp6(4),e.Q6J("ngModel",U.selFilter),e.xp6(3),e.Q6J("ngIf",!0===U.flgLoading[0]),e.xp6(1),e.Q6J("matSortActive",U.selectedSwapType===U.swapTypeEnum.SWAP_IN?U.tableSettingSwapIn.sortBy:U.tableSettingSwapOut.sortBy)("matSortDirection",U.selectedSwapType===U.swapTypeEnum.SWAP_IN?U.tableSettingSwapIn.sortOrder:U.tableSettingSwapOut.sortOrder)("dataSource",U.listSwaps)("ngClass",e.VKq(17,R2,"error"===U.flgLoading[0])),e.xp6(52),e.Q6J("matFooterRowDef",e.DdM(19,Qa)),e.xp6(1),e.Q6J("matHeaderRowDef",U.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",U.displayedColumns),e.xp6(1),e.Q6J("pageSize",U.pageSize)("pageSizeOptions",U.pageSizeOptions)("showFirstLastButtons",U.screenSize!==U.screenSizeEnum.XS))},dependencies:[Wi.mk,Wi.sg,Wi.O5,Wi.PC,ti.Fj,ti.JJ,ti.On,La.BN,ji.xw,ji.Wh,ji.yH,Lt.oO,Lt.Zl,bi.lW,hr.Nt,Si.KE,Si.hX,gl.pW,Pi.gD,Pi.$L,qi.ey,Yc.YE,Yc.nU,Zn.BZ,Zn.fO,Zn.as,Zn.w1,Zn.Dz,Zn.nj,Zn.mD,Zn.Ke,Zn.ge,Zn.ev,Zn.yh,Zn.XQ,Zn.Gk,Zn.Q2,pl.NW,tn.Vv,tn.$V,Wi.JJ]}),N})();const dh=function(R){return["../",R]};function N2(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",16),e.NdJ("click",function(){const Ee=e.CHM(S).$implicit,Mt=e.oxw();return e.KtG(Mt.onSelectedIndexChange(Ee))}),e._uU(1),e.qZA()}if(2&R){const S=N.$implicit,z=e.oxw();e.Q6J("active",z.activeTab.link===S.link)("routerLink",e.VKq(3,dh,S.link)),e.xp6(1),e.Oqu(S.name)}}let vd=(()=>{var R;class N{constructor(z,U,Ee){this.router=z,this.store=U,this.boltzService=Ee,this.swapTypeEnum=Ne.hc,this.selectedSwapType=Ne.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 Fi.x,new Fi.x,new Fi.x,new Fi.x]}ngOnInit(){this.boltzService.listSwaps();const z=this.links.find(U=>this.router.url.includes(U.link));this.activeTab=z||this.links[0],this.selectedSwapType=z&&"swapin"===z.link?Ne.hc.SWAP_IN:Ne.hc.SWAP_OUT,this.router.events.pipe((0,sn.R)(this.unSubs[0]),(0,Ya.h)(U=>U instanceof Wn.Av)).subscribe({next:U=>{const Ee=this.links.find(Mt=>U.urlAfterRedirects.includes(Mt.link));this.activeTab=Ee||this.links[0],this.selectedSwapType=Ee&&"swapin"===Ee.link?Ne.hc.SWAP_IN:Ne.hc.SWAP_OUT}}),this.boltzService.swapsChanged.pipe((0,sn.R)(this.unSubs[1])).subscribe({next:U=>{this.swaps=U,this.swapsData=this.selectedSwapType===Ne.hc.SWAP_IN&&U.swaps?U.swaps:this.selectedSwapType===Ne.hc.SWAP_OUT&&U.reverseSwaps?U.reverseSwaps:[],this.flgLoading[0]=!1},error:U=>{this.flgLoading[0]="error",this.emptyTableMessage=U.message?U.message:"No swap "+(this.selectedSwapType===Ne.hc.SWAP_IN?"in":"out")+" available."}})}onSelectedIndexChange(z){"swapin"===z.link?(this.selectedSwapType=Ne.hc.SWAP_IN,this.swapsData=this.swaps.swaps||[]):(this.selectedSwapType=Ne.hc.SWAP_OUT,this.swapsData=this.swaps.reverseSwaps||[])}onSwap(z){this.boltzService.serviceInfo().pipe((0,sn.R)(this.unSubs[2])).subscribe({next:U=>{this.store.dispatch((0,Rt.qR)({payload:{data:{serviceInfo:U,direction:z,component:M2}}}))}})}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return(R=N).\u0275fac=function(z){return new(z||R)(e.Y36(Wn.F0),e.Y36(ki.yh),e.Y36(Qc))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-boltz-root"]],decls:20,vars:7,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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["tabPanel",""],["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"],["mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(z,U){if(1&z&&(e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1)(2,"g",2)(3,"g",3),e._UZ(4,"circle",4)(5,"path",5)(6,"path",6),e.qZA()()(),e.kcU(),e.TgZ(7,"span",7),e._uU(8,"Boltz"),e.qZA()(),e.TgZ(9,"div",8)(10,"mat-card")(11,"mat-card-content",9)(12,"nav",10),e.YNc(13,N2,2,5,"div",11),e.qZA(),e._UZ(14,"mat-tab-nav-panel",null,12),e.TgZ(16,"div",13)(17,"button",14),e.NdJ("click",function(){return U.onSwap(U.selectedSwapType)}),e._uU(18),e.qZA()(),e._UZ(19,"rtl-boltz-swaps",15),e.qZA()()()),2&z){const Ee=e.MAs(15);e.xp6(12),e.Q6J("tabPanel",Ee),e.xp6(1),e.Q6J("ngForOf",U.links),e.xp6(5),e.hij("Start ",U.activeTab.name,""),e.xp6(1),e.Q6J("selectedSwapType",U.selectedSwapType)("swapsData",U.swapsData)("flgLoading",U.flgLoading)("emptyTableMessage",U.emptyTableMessage)}},dependencies:[Wi.sg,ji.xw,ji.Wh,ji.yH,bi.lW,Kn.a8,Kn.dn,ze.BU,ze.sW,ze.Nj,Wn.rH,_d]}),N})();class Lr{constructor(N){this.help=N}}function uh(R,N){if(1&R&&(e.TgZ(0,"mat-expansion-panel",8)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),e._uU(3),e.qZA()(),e.TgZ(4,"mat-panel-description",9),e._UZ(5,"span",10),e.TgZ(6,"a",11),e._uU(7),e.qZA()()()),2&R){const S=e.oxw().$implicit,z=e.oxw();e.xp6(3),e.Oqu(S.help.question),e.xp6(2),e.Q6J("innerHTML",S.help.answer,e.oJD),e.xp6(1),e.Q6J("routerLink",z.flgLoggedIn?S.help.link:"/login"),e.xp6(1),e.Oqu(z.flgLoggedIn?S.help.linkCaption:"Login to go to the page")}}function ys(R,N){if(1&R&&(e.TgZ(0,"div",6),e.YNc(1,uh,8,4,"mat-expansion-panel",7),e.qZA()),2&R){const S=N.$implicit,z=e.oxw();e.xp6(1),e.Q6J("ngIf","ALL"===S.help.lnImplementation||S.help.lnImplementation===z.selNode.lnImplementation)}}let u1=(()=>{var R;class N{constructor(z,U){this.store=z,this.sessionService=U,this.helpTopics=[],this.faQuestion=Xi.Psp,this.LNPLink="/lnd/",this.flgLoggedIn=!1,this.unSubs=[new Fi.x,new Fi.x,new Fi.x,new Fi.x]}ngOnInit(){this.store.select(xa.dT).pipe((0,sn.R)(this.unSubs[0])).subscribe(z=>{this.selNode=z,this.selNode.lnImplementation&&""!==this.selNode.lnImplementation.trim()&&(this.LNPLink="/"+this.selNode.lnImplementation.toLowerCase()+"/",this.addHelpTopics())}),this.sessionService.watchSession().pipe((0,sn.R)(this.unSubs[1])).subscribe(z=>{this.flgLoggedIn=!!z.token}),this.sessionService.getItem("token")&&(this.flgLoggedIn=!0)}addHelpTopics(){this.helpTopics=[],this.helpTopics.push(new Lr({question:"Getting started",answer:'Funding your node is the first step to get started.\nGo to the "On-chain" page of the app:\n1. Generate a new address on the "Recieve" tab.\n2. Send funds to the address.\n3. Wait for the balance to be confirmed on-chain before proceeding further.\n3. Connecting with network peers and opening channels is next.\n',link:this.LNPLink+"onchain/receive/utxos",linkCaption:"On-Chain",lnImplementation:"ALL"})),this.helpTopics.push(new Lr({question:"Connect with peers",answer:'Connect with network peers to open channels with them.\nGo to "Peer/Channels" page under the "Lightning" menu :\n1. Get the peer pubkey and host address in the pubkey@ip:port format.\n2. On the "Peers" enter the peer address and connect.\n3. Once the peer is connected, you can open channel with the peer.\n4. A variety of actions can be performed on the connected peers page for each peer:\n a. View Info - View the peer details.\n b. Open Channel - Open channel with the peer.\n c. Disconnect - Disconnect from the peer.\n',link:this.LNPLink+"connections/peers",linkCaption:"Peers",lnImplementation:"ALL"})),this.helpTopics.push(new Lr({question:"Opening Channels",answer:'Open channels with a connected peer.\nGo to "Peer/Channels" page under the "Lightning" menu:\n1. On the "Channels" section, click on "Open Channel"\n2. On the "Open Channel" modal, select the alias of the connected peer from the drop-down\n2. Specify the amount to commit to the channel and click on "Open Channel".\n3. There are a variety of options available while opening a channel. \n a. Private Channel - When this option is selected, a private channel is opened with the peer. \n b. Priority (advanced option) - Specify either Target confirmation Block or Fee in Sat/vByte. \n c. Spend Unconfirmd Output (advanced option) - Allow channels to be opened with unconfirmed UTXOs.\n4. Track the pending open channels under the "Pending" tab. \n5. Wait for the channel to be confirmed. Only a confimed channel can be used for payments or routing. \n',link:this.LNPLink+"connections/channels/open",linkCaption:"Channels",lnImplementation:"ALL"})),this.helpTopics.push(new Lr({question:"Channel Management",answer:'Channel maintenance and balance score.\nGo to "Peer/Channels" page under the "Lightning" menu:\n1. A variety of actions can be perfomed on the open channels under the "Open" tab, with the "Actions" button:\n a. View Info - View the channel details.\n b. View Remote Fee - View the fee policy on the channel of the remote peer.\n c. Update Fee Policy - Modify the fee policy on the channel.\n d. Circular Rebalance - Off-chain rebalance channels by making a payment to yourself across a circular path of chained payment channels.\n e. Close Channel - Close the channel.\n2. Balance Score is a "balancedness" metric score for the channel. \n a. It helps measure how balanced the remote and local balances are, on a channel.\n b. A perfectly balanced channel has a score of one, where as a completely lopsided one has a score of zero.\n c. The formula for calculating the score is "1 - abs((local bal - remote bal)/total bal)".\n',link:this.LNPLink+"connections/channels/open",linkCaption:"Channels",lnImplementation:"ALL"})),this.helpTopics.push(new Lr({question:"Buying Liquidity",answer:'Buying liquidity for your node.\nGo to "Liquidity Ads" page under the "Lightning" menu:\n 1. Filter ads by liquidity amount and channel opening fee rate.\n 2. Research additionally on liquidity provider nodes before selecting.\n 3. Select the best liquidity node peer for your need and click on "Open Channel" from "Actions" drop-down.\n 4. Confirm amount, rates and total cost on the modal and click on "Execute" to buy liquidity.\n',link:this.LNPLink+"liquidityads",linkCaption:"Liquidity Ads",lnImplementation:"CLN"})),this.helpTopics.push(new Lr({question:"Payments",answer:'Sending Payments from your node.\nGo to the "Transactions" page under the "Lightning" menu :\nPayments tab is for making payments via your node\n 1. Input a non-expired lightning invoice (Bolt11 format) in the "Payment Request" field and click on "Send Payment" to send.\n 2. Advanced option # 1 (LND only) - Specify a limit on the routing fee which you are willing to pay, for the payment.\n 3. Advanced option # 2 (LND only) - Specify the outgoing channel which you want the payment to go through.\n',link:this.LNPLink+"transactions/payments",linkCaption:"Payments",lnImplementation:"ALL"})),this.helpTopics.push(new Lr({question:"Invoices",answer:'Receiving Payments on your node.\nGo to the "Transactions" page under the "Lightning" menu :\nInvoices tab is for receiving payments on your node.\n 1. Memo - Description you want to provide on the invoice.\n 2. Expiry - The time period, after which the invoice will be invalid.\n 3. Private Routing Hints - Generate an invoice with routing hints for private channels.\n',link:this.LNPLink+"transactions/invoices",linkCaption:"Invoices",lnImplementation:"ALL"})),this.helpTopics.push(new Lr({question:"Offers",answer:'Send offer payments, create offer invoices and bookmark paid offers on your node.\nGo to the "Transactions" page under the "Lightning" menu :\nPayment for bolt12 offer invoice can be done on "Payments" tab:\n 1. Click on "Send Payment" button.\n 2. Select "Offer" option on the modal.\n 2. Offer Request - Input offer request (Bolt12 format) in the input box.\n 3. Bookmark - Select the checkbox to bookmark this offer for future use.\nOffers tab is for creating bolt12 offer invoice on your node:\n 1. Click on "Create Offer" button.\n 2. Description - Description you want to provide on the offer invoice.\n 3. Amount - Amount for the offer invoice.\n 4. issuer - issuer of the offer.\nPaid offer bookmarks shows the list of paid offers saved for future payments.\n',link:this.LNPLink+"transactions/offers",linkCaption:"Offers",lnImplementation:"CLN"})),this.helpTopics.push(new Lr({question:"Channel Backups",answer:'Channel Backups are important to ensure that you have means to recover funds in case of node failures.\nBackup folder location can be customized in the RTL config file with the channelBackupPath field.\nRTL automatically creates all channel backup on server startup, as well as everytime a channel is opened or closed\nYou can verify the all channel backup file by clicking on "Verify All" Button on the backup page.\nYou can also backup each channel individually and verify them.\n** Keep taking backups of your channels regularly and store them in redundant locations **.\n',link:this.LNPLink+"channelbackup/bckup",linkCaption:"Channel Backups",lnImplementation:"LND"})),this.helpTopics.push(new Lr({question:"Channel Restore",answer:'Channel Restore is used to recover funds from the channel backup files in case of node failures.\nFollow the below steps to perform fund restoration.\n\nPrerequisite:\n1. The node has been restored with the LND recovery seed.\n2. RTL generated channel backup file/s is available (all channel backup file is channel-all.bak).\n\nRecovery:\n1. Create a restore folder in your folder backup location, as specified in the RTL config file.\n2. Place the channel backup file in the restore folder.\n3. Go to the "Restore" tab under the "Backup" page of RTL.\n4. RTL will list the options to restore funds from the all channel file or individual channel backup file.\n5. Click on the Restore icon on the grid to restore the funds.\n6. Once the restore function is executed successfully, RTL will rename the backup file and it will not be accessible from the UI.\n7. Restore function will force close the channels and recover the funds from them.\n8. The pending close channels can be viewed under the "Pending" tab on the "Peer/Channels" page.\n9. Once the channel is closed, the corresponding pending on-chain transactions can be viewed on the "On-Chain" page.\n10. Once the transactions are confirmed, the channels funds will be restored to your LND Wallet.\n',link:this.LNPLink+"channelbackup/restore",linkCaption:"Channel Restore",lnImplementation:"LND"})),this.helpTopics.push(new Lr({question:"Forwarding History",answer:'Transactions routed by the node.\nGo to "Routing" page under the "Lightning" menu :\nTransactions routed by the node are listed on this page along with channels and the fee earned by transaction.\n',link:this.LNPLink+"routing/forwardinghistory",linkCaption:"Forwarding History",lnImplementation:"ALL"})),this.helpTopics.push(new Lr({question:"Lightning Reports",answer:'Routing and transactions data reports.\nGo to "Reports" page under the "Lightning" menu :\nReport can be generated on monthly/yearly basis by selecting the reporting period, month, and year.\n',link:this.LNPLink+"reports/routingreport",linkCaption:"Reports",lnImplementation:"ALL"})),this.helpTopics.push(new Lr({question:"Graph Lookup",answer:'Querying your node graph for network node and channel information.\nGo to "Graph Lookup" page under the "Lightning" menu :\nEach node maintains a network graph for the information on all the nodes and channels on the network.\nYou can lookup information on nodes and channels from your graph:\n 1. Node Lookup - Enter the pubkey to perform the lookup.\n 2. Channel Lookup - Enter the short channel ID to perform the lookup.\n',link:this.LNPLink+"graph/lookups",linkCaption:"Graph Lookup",lnImplementation:"ALL"})),this.helpTopics.push(new Lr({question:"Query Route",answer:'Querying Payment Routes.\nGo to the "Graph Lookup" page under the "Lightning" menu :\nQuery Routes tab is for querying a potential path to a node and a routing fee estimate for a payment amount.\n 1. Destination Pubkey - Pubkey of the node, you want to send the payment to.\n 2. Amount - Amount in Sats, which you want to send to the node.\n',link:this.LNPLink+"graph/queryroutes",linkCaption:"Query Routes",lnImplementation:"ALL"})),this.helpTopics.push(new Lr({question:"Sign & Verify Messages",answer:'Messages signing and verification.\nGo to the "Sign/Verify" page under the "Lightning" menu :\n 1. Sign your message on "Sign" tab.\n 2. Go to "Verify" tab to verify a message.\n',link:this.LNPLink+"messages/sign",linkCaption:"Messages",lnImplementation:"LND"})),this.helpTopics.push(new Lr({question:"Sign & Verify Messages",answer:'Messages signing and verification.\nGo to the "Sign/Verify" page under the "Lightning" menu :\n 1. Sign your message on "Sign" tab.\n 2. Go to "Verify" tab to verify a message.\n',link:this.LNPLink+"messages/sign",linkCaption:"Messages",lnImplementation:"CLN"})),this.helpTopics.push(new Lr({question:"Node Settings",answer:'RTL offers certain customizations on the UI to personalize your experience on the app\nGo to "Node Config" page to access the customization options.\nNode Layout Options\n 1. User Persona - Two options are available to change the dashboard based on the persona.\n 2. Currency Unit - You can choose your preferred fiat currency, to view the onchain and channel balances in the choosen fiat currency.\n 3. Other customizations include day and night mode and a choice of color themes to select from.\nServices Options\n Loop (LND only), Boltz (LND only) & Peerswap (CLN only) services can be configured.\nExperimental Options (CLN only)\n Offers and Liquidity Ads can be enabled/disabled.\nShow LN Config (if configured)\n Shows lightning config file.\n',link:"../config/layout",linkCaption:"Node Settings",lnImplementation:"ALL"})),this.helpTopics.push(new Lr({question:"Application Settings",answer:'RTL also offers certain customizations on the application level\nGo to top right menu "Settings" page to access these options.\nDefault Node Option\nIf you are managing multiple nodes via RTL UI, you can select the default node to load upon login.\nAuthentication Option\nPassword and 2FA update options are available here.\nShow Bitcoin Config (if configured)\n Shows bitcoin config file.\n',link:"../settings/app",linkCaption:"Application Settings",lnImplementation:"ALL"}))}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return(R=N).\u0275fac=function(z){return new(z||R)(e.Y36(ki.yh),e.Y36(Ga.m))},R.\u0275cmp=e.Xpm({type:R,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(z,U){1&z&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span",3),e._uU(4,"Help"),e.qZA()(),e.TgZ(5,"div",4)(6,"div",0),e.YNc(7,ys,2,1,"div",5),e.qZA()()()),2&z&&(e.xp6(2),e.Q6J("icon",U.faQuestion),e.xp6(5),e.Q6J("ngForOf",U.helpTopics))},dependencies:[Wi.sg,Wi.O5,La.BN,ji.xw,ji.Wh,ji.yH,Ht.ib,Ht.yz,Ht.yK,Ht.u4,Wn.rH],styles:[".mat-mdc-card-content[_ngcontent-%COMP%]{margin-bottom:4px}"]}),N})();var H2=m(9841);function z2(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Token is required."),e.qZA())}let bd=(()=>{var R;class N{constructor(z,U){this.dialogRef=z,this.store=U,this.token=""}onClose(){this.dialogRef.close(null)}onVerifyToken(){if(!this.token)return!0;this.dialogRef.close(),this.store.dispatch((0,Rt.M6)({payload:{twoFAToken:this.token}}))}}return(R=N).\u0275fac=function(z){return new(z||R)(e.Y36(ra.so),e.Y36(ki.yh))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-login-token"]],decls:19,vars:2,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","row",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100",3,"ngSubmit"],["tokenForm","ngForm"],["autoFocus","","matInput","","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(z,U){1&z&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5,"Two Factor Token"),e.qZA()(),e.TgZ(6,"button",5),e.NdJ("click",function(){return U.onClose()}),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"form",7,8),e.NdJ("ngSubmit",function(){return U.onVerifyToken()}),e.TgZ(11,"mat-form-field")(12,"mat-label"),e._uU(13,"Token"),e.qZA(),e.TgZ(14,"input",9),e.NdJ("ngModelChange",function(Mt){return U.token=Mt}),e.qZA(),e.YNc(15,z2,2,0,"mat-error",10),e.qZA(),e.TgZ(16,"div",11)(17,"button",12),e._uU(18,"Verify Token"),e.qZA()()()()()()),2&z&&(e.xp6(14),e.Q6J("ngModel",U.token),e.xp6(1),e.Q6J("ngIf",!U.token))},dependencies:[Wi.O5,ti._Y,ti.Fj,ti.JJ,ti.JL,ti.Q7,ti.On,ti.F,ji.xw,ji.Wh,ji.yH,bi.lW,Kn.dn,Kn.dk,hr.Nt,Si.KE,Si.hX,Si.TO,hn.h]}),N})();function fh(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}function yd(R,N){if(1&R&&(e.TgZ(0,"p",20)(1,"mat-icon",21),e._uU(2,"close"),e.qZA(),e._uU(3),e.qZA()),2&R){const S=e.oxw();e.xp6(3),e.hij(" ",S.loginErrorMessage," ")}}const mh=function(R){return{"padding-gap-large":R}},f1=function(R,N){return{"font-size-200":R,"font-size-300":N}};let xd=(()=>{var R;class N{constructor(z,U,Ee,Mt){this.logger=z,this.store=U,this.rtlEffects=Ee,this.commonService=Mt,this.faUnlockAlt=Xi.B$L,this.password="",this.rtlSSO=0,this.rtlCookiePath="",this.accessKey="",this.flgShow=!1,this.screenSize="",this.screenSizeEnum=Ne.cu,this.loginErrorMessage="",this.apiCallStatusEnum=Ne.Bn,this.unSubs=[new Fi.x,new Fi.x,new Fi.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),(0,H2.a)([this.store.select(xa.ul),this.store.select(xa.Sr)]).pipe((0,sn.R)(this.unSubs[0])).subscribe(([z,U])=>{this.loginErrorMessage="",z.status===Ne.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof z.message?JSON.stringify(z.message):z.message),this.logger.error(z.message)),U.status===Ne.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof U.message?JSON.stringify(U.message):U.message),this.logger.error(U.message))}),this.store.select(xa.Yj).pipe((0,sn.R)(this.unSubs[1])).subscribe(z=>{this.appConfig=z,this.logger.info(z)})}onLogin(){if(!this.password)return!0;this.loginErrorMessage="",this.appConfig.enable2FA?(this.store.dispatch((0,Rt.qR)({payload:{maxWidth:"35rem",data:{component:bd}}})),this.rtlEffects.closeAlert.pipe((0,ua.q)(1)).subscribe(z=>{z&&this.store.dispatch((0,Rt.x4)({payload:{password:ha(this.password),defaultPassword:Ne.kO.includes(this.password.toLowerCase()),twoFAToken:z.twoFAToken}}))})):this.store.dispatch((0,Rt.x4)({payload:{password:ha(this.password),defaultPassword:Ne.kO.includes(this.password.toLowerCase())}}))}resetData(){this.password="",this.loginErrorMessage="",this.flgShow=!1}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return(R=N).\u0275fac=function(z){return new(z||R)(e.Y36(ni.mQ),e.Y36(ki.yh),e.Y36(Ma.V),e.Y36(ut.v))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-login"]],decls:28,vars:13,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"login-container"],["fxLayout","row","fxFlex.gt-sm","35","fxLayoutAlign","center center"],["fxLayout","row","fxFlex","45","fxLayoutAlign","center stretch"],["fxLayout","column","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign","stretch stretch"],["fxFlex","35","fxLayoutAlign","center center",1,"bg-primary"],["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","mt-2","p-0"],[1,"font-bold-500",3,"ngClass"],[1,"page-title"],[1,"pb-2"],["fxLayout","column","fxLayoutAlign","start space-between"],["loginForm","ngForm"],["autoFocus","","matInput","","id","password","name","password","tabindex","1","required","",3,"type","ngModel","ngModelChange"],["mat-icon-button","","matSuffix","","tabindex","2","type","button",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","mb-2",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(z,U){1&z&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card",2)(3,"div",3)(4,"div",4),e._UZ(5,"img",5),e.qZA(),e.TgZ(6,"div",6)(7,"mat-card-header",7)(8,"mat-card-title",8)(9,"span",9),e._uU(10,"Welcome"),e.qZA()()(),e.TgZ(11,"mat-card-content",10)(12,"form",11,12)(14,"mat-form-field")(15,"mat-label"),e._uU(16,"Password"),e.qZA(),e.TgZ(17,"input",13),e.NdJ("ngModelChange",function(Mt){return U.password=Mt}),e.qZA(),e.TgZ(18,"button",14),e.NdJ("click",function(){return U.flgShow=!U.flgShow}),e.TgZ(19,"mat-icon"),e._uU(20),e.qZA()(),e.YNc(21,fh,2,0,"mat-error",15),e.qZA(),e.YNc(22,yd,4,1,"p",16),e.TgZ(23,"div",17)(24,"button",18),e.NdJ("click",function(){return U.resetData()}),e._uU(25,"Clear"),e.qZA(),e.TgZ(26,"button",19),e.NdJ("click",function(){return U.onLogin()}),e._uU(27,"Login"),e.qZA()()()()()()()()()),2&z&&(e.xp6(6),e.Q6J("ngClass",e.VKq(8,mh,U.screenSize===U.screenSizeEnum.XS)),e.xp6(2),e.Q6J("ngClass",e.WLB(10,f1,U.screenSize===U.screenSizeEnum.XS,U.screenSize!==U.screenSizeEnum.XS)),e.xp6(9),e.Q6J("type",U.flgShow?"text":"password")("ngModel",U.password),e.xp6(1),e.uIk("aria-label","Hide password"),e.xp6(2),e.Oqu(U.flgShow?"visibility_off":"visibility"),e.xp6(1),e.Q6J("ngIf",!U.password),e.xp6(1),e.Q6J("ngIf",""!==U.loginErrorMessage))},dependencies:[Wi.mk,Wi.O5,ti._Y,ti.Fj,ti.JJ,ti.JL,ti.Q7,ti.On,ti.F,ji.xw,ji.Wh,ji.yH,Lt.oO,bi.lW,bi.RK,Kn.a8,Kn.dn,Kn.dk,Kn.n5,ur.Hw,hr.Nt,Si.KE,Si.hX,Si.TO,Si.R9,hn.h],styles:[".login-container[_ngcontent-%COMP%]{height:60vh;margin-top:15%}.login-container[_ngcontent-%COMP%] .mat-mdc-card[_ngcontent-%COMP%]{height:30rem}.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 56.25em){.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:37%}}@media only screen and (max-width: 37.5em){.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:70%}}.login-container[_ngcontent-%COMP%] .material-icons.mat-icon[_ngcontent-%COMP%]{font-size:90%;cursor:pointer}"]}),N})();var U3=m(9442);let m1=(()=>{var R;class N{constructor(z,U){this.activatedRoute=z,this.router=U,this.error={errorCode:"",errorMessage:""},this.faTimes=Xi.NBC,this.unsubs=[new Fi.x,new Fi.x]}ngOnInit(){this.activatedRoute.paramMap.pipe((0,sn.R)(this.unsubs[0])).subscribe(z=>{this.error=window.history.state})}goToHelp(){this.router.navigate(["/help"])}}return(R=N).\u0275fac=function(z){return new(z||R)(e.Y36(Wn.gz),e.Y36(Wn.F0))},R.\u0275cmp=e.Xpm({type:R,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(z,U){1&z&&(e.TgZ(0,"div",0)(1,"mat-card",1)(2,"mat-card-header",2)(3,"mat-card-title",3),e._UZ(4,"fa-icon",4),e.TgZ(5,"span",5),e._uU(6),e.qZA()()(),e.TgZ(7,"mat-card-content",6)(8,"div",7),e._uU(9),e.qZA(),e.TgZ(10,"span",8)(11,"button",9),e.NdJ("click",function(){return U.goToHelp()}),e._uU(12,"Go To Help"),e.qZA()()()()()),2&z&&(e.xp6(4),e.Q6J("icon",U.faTimes),e.xp6(2),e.hij("Error ",U.error.errorCode,""),e.xp6(3),e.Oqu(U.error.errorMessage))},dependencies:[La.BN,ji.xw,ji.Wh,ji.yH,bi.lW,Kn.a8,Kn.dn,Kn.dk,Kn.n5],encapsulation:2}),N})();var Vr=m(1643),Sl=m(8104),V2=m(9843),B2=m(6534);function ec(R,N){1&R&&e._UZ(0,"span",16)}function xc(R,N){1&R&&e._UZ(0,"span",17)}function El(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"form",18,4)(2,"div",19),e._UZ(3,"fa-icon",2),e.TgZ(4,"span"),e._uU(5,"Please ensure that "),e.TgZ(6,"strong"),e._uU(7,"experimental-offers"),e.qZA(),e._uU(8," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),e.TgZ(9,"strong")(10,"a",20),e._uU(11,"here"),e.qZA()(),e._uU(12," to learn more about Core Lightning offers."),e.qZA()(),e.TgZ(13,"h4",21),e._uU(14,"Description"),e.qZA(),e.TgZ(15,"span"),e._uU(16,"Offers is a draft specification (also referred as BOLT12) for Lightning nodes and wallets, with experimental support in Core Lightning."),e.qZA(),e.TgZ(17,"h4",21),e._uU(18,"Links"),e.qZA(),e.TgZ(19,"span")(20,"a",22),e._uU(21,"Core lightning Bolt12"),e.qZA()(),e._UZ(22,"mat-divider",23),e.TgZ(23,"div",24),e._UZ(24,"fa-icon",2),e.TgZ(25,"span"),e._uU(26,"Do not get an Offer tattoo until spec is fully ratified!"),e.qZA()(),e.TgZ(27,"mat-slide-toggle",25),e.NdJ("ngModelChange",function(U){e.CHM(S);const Ee=e.oxw(2);return e.KtG(Ee.enableOffers=U)})("change",function(){e.CHM(S);const U=e.oxw(2);return e.KtG(U.onUpdateFeature())}),e._uU(28),e.qZA()()}if(2&R){const S=e.oxw(2);e.xp6(3),e.Q6J("icon",S.faInfoCircle),e.xp6(19),e.Q6J("inset",!0),e.xp6(2),e.Q6J("icon",S.faExclamationTriangle),e.xp6(3),e.Q6J("ngModel",S.enableOffers),e.xp6(1),e.hij("Enable Offers ",S.enableOffers?"(You can find Offers under Lightning -> Transactions -> Offers)":"","")}}function p1(R,N){if(1&R&&(e.TgZ(0,"div")(1,"div",28),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"Please ensure that "),e.TgZ(5,"strong"),e._uU(6,"experimental-dual-fund"),e.qZA(),e._uU(7," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),e.TgZ(8,"strong")(9,"a",29),e._uU(10,"here"),e.qZA()(),e._uU(11," to learn more about Core Lightning Liquidity Ads."),e.qZA()()()),2&R){const S=e.oxw(3);e.xp6(2),e.Q6J("icon",S.faExclamationTriangle)}}function ph(R,N){if(1&R&&(e.TgZ(0,"mat-option",47),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&R){const S=N.$implicit;e.Q6J("value",S),e.xp6(1),e.hij(" ",e.lcZ(2,2,S.id)," ")}}function g1(R,N){if(1&R&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&R){const S=e.oxw(4);e.xp6(1),e.hij("",S.selPolicyType.placeholder," is required.")}}function $c(R,N){if(1&R&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&R){const S=e.oxw(4);e.xp6(1),e.AsE("",S.selPolicyType.placeholder," must be greater than or equal to ",S.selPolicyType.min,".")}}function Cc(R,N){if(1&R&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&R){const S=e.oxw(4);e.xp6(1),e.AsE("",S.selPolicyType.placeholder," must be less than or equal to ",S.selPolicyType.max,".")}}function Cd(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Lease base fee is required."),e.qZA())}function wc(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Lease base basis is required."),e.qZA())}function Qu(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Max channel routing base fee is required."),e.qZA())}function gh(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Max channel routing fee rate is required."),e.qZA())}const U2=function(R,N){return{"alert-danger":R,"alert-info":N}};function el(R,N){if(1&R&&(e.TgZ(0,"h4",48)(1,"span",49),e._uU(2),e.qZA()()),2&R){const S=e.oxw(4);e.xp6(1),e.Q6J("ngClass",e.WLB(2,U2,!!S.updateMsg.error,!!S.updateMsg.data)),e.xp6(1),e.hij(" ",S.updateMsg.error&&""!==S.updateMsg.error?"Error: "+S.updateMsg.error||0:S.updateMsg.data&&""!==S.updateMsg.data?S.updateMsg.data:"Successfully Updated the Funding Policy!"," ")}}function G2(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",30)(1,"div",31),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"These config changes should be configured permanently via the config file on your CLN node otherwise the policy would need to be configured again, if your node restarts."),e.qZA()(),e.TgZ(5,"div",32)(6,"mat-form-field",33)(7,"mat-label"),e._uU(8,"Policy"),e.qZA(),e.TgZ(9,"mat-select",34),e.NdJ("ngModelChange",function(U){e.CHM(S);const Ee=e.oxw(3);return e.KtG(Ee.selPolicyType=U)})("selectionChange",function(){e.CHM(S);const U=e.oxw(3);return e.KtG(U.policyMod=null)}),e.YNc(10,ph,3,4,"mat-option",35),e.qZA()(),e.TgZ(11,"mat-form-field",36)(12,"mat-label"),e._uU(13),e.qZA(),e.TgZ(14,"input",37,38),e.NdJ("ngModelChange",function(U){e.CHM(S);const Ee=e.oxw(3);return e.KtG(Ee.policyMod=U)}),e.qZA(),e.TgZ(16,"mat-hint"),e._uU(17),e.qZA(),e.YNc(18,g1,2,1,"mat-error",26),e.YNc(19,$c,2,2,"mat-error",26),e.YNc(20,Cc,2,2,"mat-error",26),e.qZA()(),e.TgZ(21,"div",32)(22,"mat-form-field",36)(23,"mat-label"),e._uU(24,"Lease Base Fee (Sats)"),e.qZA(),e.TgZ(25,"input",39),e.NdJ("ngModelChange",function(U){e.CHM(S);const Ee=e.oxw(3);return e.KtG(Ee.lease_fee_base_sat=U)}),e.qZA(),e.YNc(26,Cd,2,0,"mat-error",26),e.qZA(),e.TgZ(27,"mat-form-field",36)(28,"mat-label"),e._uU(29,"Lease Base Basis (bps)"),e.qZA(),e.TgZ(30,"input",40),e.NdJ("ngModelChange",function(U){e.CHM(S);const Ee=e.oxw(3);return e.KtG(Ee.lease_fee_basis=U)}),e.qZA(),e.YNc(31,wc,2,0,"mat-error",26),e.qZA()(),e.TgZ(32,"div",32)(33,"mat-form-field",36)(34,"mat-label"),e._uU(35,"Max Channel Routing Base Fee (Sats)"),e.qZA(),e.TgZ(36,"input",41),e.NdJ("ngModelChange",function(U){e.CHM(S);const Ee=e.oxw(3);return e.KtG(Ee.channelFeeMaxBaseSat=U)}),e.qZA(),e.YNc(37,Qu,2,0,"mat-error",26),e.qZA(),e.TgZ(38,"mat-form-field",36)(39,"mat-label"),e._uU(40,"Max Channel Routing Fee Rate (ppm)"),e.qZA(),e.TgZ(41,"input",42),e.NdJ("ngModelChange",function(U){e.CHM(S);const Ee=e.oxw(3);return e.KtG(Ee.channelFeeMaxProportional=U)}),e.qZA(),e.YNc(42,gh,2,0,"mat-error",26),e.qZA()(),e.YNc(43,el,3,5,"h4",43),e.TgZ(44,"div",44)(45,"button",45),e.NdJ("click",function(){e.CHM(S);const U=e.oxw(3);return e.KtG(U.onResetPolicy())}),e._uU(46,"Reset"),e.qZA(),e.TgZ(47,"button",46),e.NdJ("click",function(){e.CHM(S);const U=e.oxw(3);return e.KtG(U.onUpdateFundingPolicy())}),e._uU(48,"Update"),e.qZA()()()}if(2&R){const S=e.oxw(3);e.xp6(2),e.Q6J("icon",S.faExclamationTriangle),e.xp6(7),e.Q6J("ngModel",S.selPolicyType),e.xp6(1),e.Q6J("ngForOf",S.policyTypes),e.xp6(3),e.Oqu(S.selPolicyType.placeholder),e.xp6(1),e.Q6J("step","fixed"===S.selPolicyType.id?1e3:10)("min",S.selPolicyType.min)("max",S.selPolicyType.max)("ngModel",S.policyMod),e.xp6(3),e.lnq("",S.selPolicyType.placeholder," should be between ",S.selPolicyType.min," and ",S.selPolicyType.max,""),e.xp6(1),e.Q6J("ngIf",!S.policyMod),e.xp6(1),e.Q6J("ngIf",S.policyModS.selPolicyType.max),e.xp6(5),e.Q6J("ngModel",S.lease_fee_base_sat),e.xp6(1),e.Q6J("ngIf",!S.lease_fee_base_sat),e.xp6(4),e.Q6J("ngModel",S.lease_fee_basis),e.xp6(1),e.Q6J("ngIf",!S.lease_fee_basis),e.xp6(5),e.Q6J("ngModel",S.channelFeeMaxBaseSat),e.xp6(1),e.Q6J("ngIf",!S.channelFeeMaxBaseSat),e.xp6(4),e.Q6J("ngModel",S.channelFeeMaxProportional),e.xp6(1),e.Q6J("ngIf",!S.channelFeeMaxProportional),e.xp6(1),e.Q6J("ngIf",S.flgUpdateCalled)}}function _h(R,N){if(1&R&&(e.TgZ(0,"form",18,4),e.YNc(2,p1,12,1,"div",26),e.YNc(3,G2,49,23,"div",27),e.qZA()),2&R){const S=e.oxw(2);e.xp6(2),e.Q6J("ngIf",!S.features[1].enabled),e.xp6(1),e.Q6J("ngIf",S.features[1].enabled)}}function vh(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"mat-expansion-panel",9),e.NdJ("opened",function(){const Ee=e.CHM(S).index,Mt=e.oxw();return e.KtG(Mt.onPanelExpanded(Ee))}),e.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title",10)(3,"h4",11),e._uU(4),e.qZA(),e.TgZ(5,"h4",11),e.YNc(6,ec,1,0,"span",12),e.YNc(7,xc,1,0,"span",13),e._uU(8),e.qZA()()(),e.TgZ(9,"div",14),e.YNc(10,El,29,5,"form",15),e.YNc(11,_h,4,2,"form",15),e.qZA()()}if(2&R){const S=N.$implicit,z=N.index;e.Q6J("expanded",!1),e.xp6(4),e.Oqu(S.name),e.xp6(2),e.Q6J("ngIf",S.enabled),e.xp6(1),e.Q6J("ngIf",!S.enabled),e.xp6(1),e.hij(" ",S.enabled?"Enabled":"Disabled"," "),e.xp6(2),e.Q6J("ngIf",0===z),e.xp6(1),e.Q6J("ngIf",1===z)}}let tl=(()=>{var R;class N{constructor(z,U,Ee,Mt){this.logger=z,this.store=U,this.dataService=Ee,this.commonService=Mt,this.faInfoCircle=Xi.sqG,this.faExclamationTriangle=Xi.eHv,this.faCode=Xi.dT$,this.features=[{name:"Offers",enabled:!1},{name:"Channel Funding Policy",enabled:!1}],this.enableOffers=!1,this.fundingPolicy={},this.policyTypes=Ne.gB,this.selPolicyType=Ne.gB[0],this.flgUpdateCalled=!1,this.updateMsg={},this.unSubs=[new Fi.x,new Fi.x,new Fi.x,new Fi.x,new Fi.x]}ngOnInit(){this.dataService.listConfigs().pipe((0,sn.R)(this.unSubs[0])).subscribe({next:z=>{this.logger.info("Received List Configs: "+JSON.stringify(z)),this.features[1].enabled=!!z["experimental-dual-fund"]},error:z=>{this.logger.error("List Configs Error: "+JSON.stringify(z)),this.features[1].enabled=!1}}),this.store.select(xa.dT).pipe((0,sn.R)(this.unSubs[1])).subscribe(z=>{this.selNode=z,this.enableOffers=this.selNode.settings.enableOffers||!1,this.features[0].enabled=this.enableOffers,this.logger.info(this.selNode)}),this.store.select(Gc.Rn).pipe((0,sn.R)(this.unSubs[2])).subscribe(z=>{this.policyTypes[2].max=z.balance.totalBalance||1e3})}onPanelExpanded(z){1===z&&!this.fundingPolicy.policy&&this.dataService.getOrUpdateFunderPolicy().pipe((0,sn.R)(this.unSubs[3])).subscribe(U=>{this.logger.info("Received Funder Update Policy: "+JSON.stringify(U)),this.fundingPolicy=U,this.fundingPolicy.policy&&(this.selPolicyType=Ne.gB.find(Ee=>Ee.id===this.fundingPolicy.policy)||this.policyTypes[0]),this.policyMod=this.fundingPolicy.policy_mod||0===this.fundingPolicy.policy_mod?this.fundingPolicy.policy_mod:null,this.lease_fee_base_sat=this.fundingPolicy.lease_fee_base_msat?this.fundingPolicy.lease_fee_base_msat/1e3:0===this.fundingPolicy.lease_fee_base_msat?0:null,this.lease_fee_basis=this.fundingPolicy.lease_fee_basis||0===this.fundingPolicy.lease_fee_basis?this.fundingPolicy.lease_fee_basis:null,this.channelFeeMaxBaseSat=this.fundingPolicy.channel_fee_max_base_msat?this.fundingPolicy.channel_fee_max_base_msat/1e3:0===this.fundingPolicy.channel_fee_max_base_msat?0:null,this.channelFeeMaxProportional=this.fundingPolicy.channel_fee_max_proportional_thousandths||0===this.fundingPolicy.channel_fee_max_proportional_thousandths?1e3*this.fundingPolicy.channel_fee_max_proportional_thousandths:null})}onUpdateFeature(){this.logger.info(this.selNode),this.selNode.settings.enableOffers=this.enableOffers,this.features[0].enabled=this.enableOffers,this.store.dispatch((0,Rt.jS)({payload:{uiMessage:Ne.m6.UPDATE_SETTING,service:Ne.JX.OFFERS,settings:{enableOffers:this.enableOffers}}})),this.store.dispatch((0,Be.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,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}})),this.store.dispatch((0,ae.Mf)({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,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}})),this.store.dispatch((0,we.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,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}}))}onUpdateFundingPolicy(){this.flgUpdateCalled=!0,this.updateMsg={},this.dataService.getOrUpdateFunderPolicy(this.selPolicyType.id,this.policyMod,1e3*(this.lease_fee_base_sat||0),this.lease_fee_basis,1e3*(this.channelFeeMaxBaseSat||0),this.channelFeeMaxProportional?this.channelFeeMaxProportional/1e3:0).pipe((0,sn.R)(this.unSubs[4])).subscribe({next:z=>{this.logger.info(z),this.fundingPolicy=z,this.updateMsg={data:"Compact Lease: "+z.compact_lease},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)},error:z=>{this.logger.error(z),this.updateMsg={error:this.commonService.extractErrorMessage(z,"Error in updating funder policy")},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)}})}onResetPolicy(){this.flgUpdateCalled=!1,this.updateMsg={},this.selPolicyType=this.fundingPolicy.policy?Ne.gB.find(z=>z.id===this.fundingPolicy.policy)||this.policyTypes[0]:Ne.gB[0],this.policyMod=this.fundingPolicy.policy_mod||0===this.fundingPolicy.policy_mod?this.fundingPolicy.policy_mod:null,this.lease_fee_base_sat=this.fundingPolicy.lease_fee_base_msat?this.fundingPolicy.lease_fee_base_msat/1e3:0===this.fundingPolicy.lease_fee_base_msat?0:null,this.lease_fee_basis=this.fundingPolicy.lease_fee_basis||0===this.fundingPolicy.lease_fee_basis?this.fundingPolicy.lease_fee_basis:null,this.channelFeeMaxBaseSat=this.fundingPolicy.channel_fee_max_base_msat?this.fundingPolicy.channel_fee_max_base_msat/1e3:0===this.fundingPolicy.channel_fee_max_base_msat?0:null,this.channelFeeMaxProportional=this.fundingPolicy.channel_fee_max_proportional_thousandths||0===this.fundingPolicy.channel_fee_max_proportional_thousandths?1e3*this.fundingPolicy.channel_fee_max_proportional_thousandths:null}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return(R=N).\u0275fac=function(z){return new(z||R)(e.Y36(ni.mQ),e.Y36(ki.yh),e.Y36(Sl.D),e.Y36(ut.v))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-experimental-settings"]],decls:13,vars:3,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],[1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1"],["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"],[4,"ngIf"],["fxLayout","column",4,"ngIf"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn"],["href","https://medium.com/blockstream/setting-up-liquidity-ads-in-c-lightning-54e4c59c091d","target","_blank"],["fxLayout","column"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn","mb-2"],["fxLayout","column","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start end"],["autofocus","","tabindex","1","name","policy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","49"],["matInput","","type","number","tabindex","2","required","","name","plcMod",3,"step","min","max","ngModel","ngModelChange"],["plcMod","ngModel"],["matInput","","type","number","step","100","min","0","tabindex","3","required","","name","lease_fee_base_sat",3,"ngModel","ngModelChange"],["matInput","","type","number","step","1","min","0","tabindex","4","required","","name","lease_fee_basis",3,"ngModel","ngModelChange"],["matInput","","type","number","step","100","min","0","tabindex","5","required","","name","channelFeeMaxBaseSat",3,"ngModel","ngModelChange"],["matInput","","type","number","step","1000","min","0","tabindex","6","required","","name","channelFeeMaxProportional",3,"ngModel","ngModelChange"],["fxLayoutAlign","start stretch","class","font-bold-500 mt-2",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","7",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","8",3,"click"],[3,"value"],["fxLayoutAlign","start stretch",1,"font-bold-500","mt-2"],["fxFlex","100",1,"alert",3,"ngClass"]],template:function(z,U){1&z&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._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."),e.qZA()(),e.TgZ(5,"form",3,4)(7,"div",5),e._UZ(8,"fa-icon",6),e.TgZ(9,"span",7),e._uU(10,"Features"),e.qZA()(),e.TgZ(11,"mat-accordion"),e.YNc(12,vh,12,7,"mat-expansion-panel",8),e.qZA()()()),2&z&&(e.xp6(2),e.Q6J("icon",U.faInfoCircle),e.xp6(6),e.Q6J("icon",U.faCode),e.xp6(4),e.Q6J("ngForOf",U.features))},dependencies:[Wi.mk,Wi.sg,Wi.O5,ti._Y,ti.Fj,ti.wV,ti.JJ,ti.JL,ti.Q7,ti.qQ,ti.Fd,ti.On,ti.F,La.BN,ji.xw,ji.Wh,ji.yH,Lt.oO,bi.lW,Ht.pp,Ht.ib,Ht.yz,Ht.yK,hr.Nt,Si.KE,Si.hX,Si.bx,Si.TO,Jr.d,Pi.gD,qi.ey,Di.Rr,tn.$V,hn.h,V2.F,B2.q,Wi.rS],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),N})();const wd=[{path:"",pathMatch:"full",redirectTo:"login"},{path:"lnd",loadChildren:()=>Promise.all([m.e(267),m.e(636)]).then(m.bind(m,1636)).then(R=>R.LNDModule),canActivate:[(0,Vr.a1)()]},{path:"cln",loadChildren:()=>Promise.all([m.e(267),m.e(315)]).then(m.bind(m,6315)).then(R=>R.CLNModule),canActivate:[(0,Vr.a1)()]},{path:"ecl",loadChildren:()=>Promise.all([m.e(267),m.e(167)]).then(m.bind(m,9676)).then(R=>R.ECLModule),canActivate:[(0,Vr.a1)()]},{path:"settings",component:tt,canActivate:[(0,Vr.a1)()],children:[{path:"",pathMatch:"full",redirectTo:"app"},{path:"app",component:ka,canActivate:[(0,Vr.a1)()]},{path:"auth",component:ts,canActivate:[(0,Vr.a1)()]},{path:"bconfig",component:Xr,canActivate:[(0,Vr.a1)()]}]},{path:"config",component:fo,canActivate:[(0,Vr.a1)()],children:[{path:"",pathMatch:"full",redirectTo:"nodesettings"},{path:"nodesettings",component:Ko,canActivate:[(0,Vr.a1)()]},{path:"pglayout",component:Y1,canActivate:[(0,Vr.a1)()]},{path:"services",component:Mu,canActivate:[(0,Vr.a1)()],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",component:Q1,canActivate:[(0,Vr.a1)()]},{path:"boltz",component:Eu,canActivate:[(0,Vr.a1)()]}]},{path:"experimental",component:tl,canActivate:[(0,Vr.a1)()]},{path:"lnconfig",component:ve,canActivate:[(0,Vr.a1)()]}]},{path:"services",component:B3,canActivate:[(0,Vr.a1)()],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",pathMatch:"full",redirectTo:"loop/loopout"},{path:"loop/:selTab",component:ql},{path:"boltz",pathMatch:"full",redirectTo:"boltz/swapout"},{path:"boltz/:selTab",component:vd}]},{path:"help",component:u1},{path:"login",component:xd},{path:"error",component:m1},{path:"**",component:U3.w}],W2=Wn.Bz.forRoot(wd,{onSameUrlNavigation:"reload",scrollPositionRestoration:"enabled"});var Tl=m(9470),Mc=m(8878),Md=m(1572),Sd=m(3267),Al=m(3683),Ed=m(7851),Br=m(5423);const xs={LNDChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:Xi.HLz,link:"/lnd/home",userPersona:Ne.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:Xi.nNP,link:"/lnd/onchain",userPersona:Ne.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:Xi.BDt,link:"/lnd/connections",userPersona:Ne.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:Xi.FVb,link:"/lnd/connections",userPersona:Ne.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:Xi.Ssp,link:"/lnd/transactions",userPersona:Ne.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:Xi.SuH,link:"/lnd/routing",userPersona:Ne.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:Xi.koM,link:"/lnd/reports",userPersona:Ne.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:Xi.wn1,link:"/lnd/graph",userPersona:Ne.ol.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:Xi.hkK,link:"/lnd/messages",userPersona:Ne.ol.ALL},{id:37,parentId:3,name:"Backup",iconType:"FA",icon:Xi.q7m,link:"/lnd/channelbackup",userPersona:Ne.ol.ALL},{id:38,parentId:3,name:"Network",iconType:"FA",icon:Xi.TmZ,link:"/lnd/network",userPersona:Ne.ol.OPERATOR},{id:39,parentId:3,name:"Node/Network",iconType:"FA",icon:Xi.xf3,link:"/lnd/network",userPersona:Ne.ol.MERCHANT}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:Xi.Krp,link:"/services/loop",userPersona:Ne.ol.ALL,children:[{id:41,parentId:4,name:"Loop",iconType:"FA",icon:Xi.vqe,link:"/services/loop",userPersona:Ne.ol.ALL},{id:42,parentId:4,name:"Boltz",iconType:"SVG",icon:"boltzIconBlock",link:"/services/boltz",userPersona:Ne.ol.ALL}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:Xi.CgH,link:"/config",userPersona:Ne.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:Xi.Psp,link:"/help",userPersona:Ne.ol.ALL}],CLNChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:Xi.HLz,link:"/cln/home",userPersona:Ne.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:Xi.nNP,link:"/cln/onchain",userPersona:Ne.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:Xi.BDt,link:"/cln/connections",userPersona:Ne.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:Xi.FVb,link:"/cln/connections",userPersona:Ne.ol.ALL},{id:32,parentId:3,name:"Liquidity Ads",iconType:"FA",icon:Xi.Acd,link:"/cln/liquidityads",userPersona:Ne.ol.ALL},{id:33,parentId:3,name:"Transactions",iconType:"FA",icon:Xi.Ssp,link:"/cln/transactions",userPersona:Ne.ol.ALL},{id:34,parentId:3,name:"Routing",iconType:"FA",icon:Xi.SuH,link:"/cln/routing",userPersona:Ne.ol.ALL},{id:35,parentId:3,name:"Reports",iconType:"FA",icon:Xi.koM,link:"/cln/reports",userPersona:Ne.ol.ALL},{id:36,parentId:3,name:"Graph Lookup",iconType:"FA",icon:Xi.wn1,link:"/cln/graph",userPersona:Ne.ol.ALL},{id:37,parentId:3,name:"Sign/Verify",iconType:"FA",icon:Xi.hkK,link:"/cln/messages",userPersona:Ne.ol.ALL},{id:38,parentId:3,name:"Fee Rates",iconType:"FA",icon:Xi.USL,link:"/cln/rates",userPersona:Ne.ol.OPERATOR},{id:39,parentId:3,name:"Node/Fee Rates",iconType:"FA",icon:Xi.xf3,link:"/cln/rates",userPersona:Ne.ol.MERCHANT}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:Xi.CgH,link:"/config",userPersona:Ne.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:Xi.Psp,link:"/help",userPersona:Ne.ol.ALL}],ECLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:Xi.HLz,link:"/ecl/home",userPersona:Ne.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:Xi.nNP,link:"/ecl/onchain",userPersona:Ne.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:Xi.BDt,link:"/ecl/connections",userPersona:Ne.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:Xi.FVb,link:"/ecl/connections",userPersona:Ne.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:Xi.Ssp,link:"/ecl/transactions",userPersona:Ne.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:Xi.SuH,link:"/ecl/routing",userPersona:Ne.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:Xi.koM,link:"/ecl/reports",userPersona:Ne.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:Xi.wn1,link:"/ecl/graph",userPersona:Ne.ol.ALL}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:Xi.CgH,link:"/config",userPersona:Ne.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:Xi.Psp,link:"/help",userPersona:Ne.ol.ALL}]};function Z2(R,N){if(1&R&&(e.TgZ(0,"mat-option",11),e._uU(1),e.qZA()),2&R){const S=N.$implicit;e.Q6J("value",S.index),e.xp6(1),e.AsE(" ",S.lnNode," (",S.lnImplementation,") ")}}function Y2(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"mat-select",9),e.NdJ("selectionChange",function(U){e.CHM(S);const Ee=e.oxw();return e.KtG(Ee.onNodeSelectionChange(U.value))}),e.TgZ(1,"perfect-scrollbar"),e.YNc(2,Z2,2,3,"mat-option",10),e.qZA()()}if(2&R){const S=e.oxw();e.Q6J("value",S.selConfigNodeIndex),e.xp6(2),e.Q6J("ngForOf",S.appConfig.nodes)}}function Td(R,N){if(1&R&&(e.TgZ(0,"span",21),e.GkF(1,22),e.qZA()),2&R){const S=e.oxw().$implicit;e.oxw(2);const z=e.MAs(11);e.xp6(1),e.Q6J("ngTemplateOutlet","boltzIconBlock"===S.icon?z:null)}}function j2(R,N){if(1&R&&e._UZ(0,"fa-icon",23),2&R){const S=e.oxw().$implicit;e.Q6J("icon",S.icon)}}function v1(R,N){if(1&R&&(e.TgZ(0,"mat-icon",24),e._uU(1),e.qZA()),2&R){const S=e.oxw().$implicit;e.xp6(1),e.Oqu(S.icon)}}function Ll(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"mat-tree-node",15)(1,"div",16),e.NdJ("click",function(){const Ee=e.CHM(S).$implicit,Mt=e.oxw(2);return e.KtG(Mt.onChildNavClicked(Ee))}),e.TgZ(2,"div",17),e.YNc(3,Td,2,1,"span",18),e.YNc(4,j2,1,1,"fa-icon",19),e.YNc(5,v1,2,1,"mat-icon",20),e.TgZ(6,"span"),e._uU(7),e.qZA()()()()}if(2&R){const S=N.$implicit;e.s9C("routerLink",S.link),e.xp6(3),e.Q6J("ngIf","SVG"===S.iconType),e.xp6(1),e.Q6J("ngIf","FA"===S.iconType),e.xp6(1),e.Q6J("ngIf",!S.iconType),e.xp6(2),e.Oqu(S.name)}}function b1(R,N){if(1&R&&(e.TgZ(0,"span",32),e.GkF(1,22),e.qZA()),2&R){const S=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",S.icon)}}function yh(R,N){if(1&R&&e._UZ(0,"fa-icon",23),2&R){const S=e.oxw().$implicit;e.Q6J("icon",S.icon)}}function Ad(R,N){if(1&R&&(e.TgZ(0,"mat-icon",24),e._uU(1),e.qZA()),2&R){const S=e.oxw().$implicit;e.xp6(1),e.Oqu(S.icon)}}function il(R,N){if(1&R&&(e.TgZ(0,"mat-nested-tree-node",25)(1,"div",26)(2,"div",27),e.YNc(3,b1,2,1,"span",28),e.YNc(4,yh,1,1,"fa-icon",19),e.YNc(5,Ad,2,1,"mat-icon",20),e.TgZ(6,"span"),e._uU(7),e.qZA()(),e.TgZ(8,"button",29)(9,"mat-icon"),e._uU(10),e.qZA()()(),e.TgZ(11,"div",30),e.GkF(12,31),e.qZA()()),2&R){const S=N.$implicit,z=e.oxw(2);e.xp6(3),e.Q6J("ngIf","SVG"===S.iconType),e.xp6(1),e.Q6J("ngIf","FA"===S.iconType),e.xp6(1),e.Q6J("ngIf",!S.iconType),e.xp6(2),e.Oqu(S.name),e.xp6(1),e.uIk("aria-label","toggle "+S.name),e.xp6(2),e.Oqu(z.treeControlNested.isExpanded(S)?"arrow_drop_up":"arrow_drop_down"),e.xp6(1),e.ekj("tree-children-invisible",!z.treeControlNested.isExpanded(S))}}function xh(R,N){if(1&R&&(e.TgZ(0,"mat-tree",5,12),e.YNc(2,Ll,8,5,"mat-tree-node",13),e.YNc(3,il,13,8,"mat-nested-tree-node",14),e.qZA()),2&R){const S=e.oxw();e.Q6J("dataSource",S.navMenus)("treeControl",S.treeControlNested),e.xp6(3),e.Q6J("matTreeNodeDefWhen",S.hasChild)}}function Ch(R,N){if(1&R&&(e.TgZ(0,"span",21),e.GkF(1,22),e.qZA()),2&R){const S=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",S.icon)}}function tc(R,N){if(1&R&&e._UZ(0,"fa-icon",35),2&R){const S=e.oxw().$implicit;e.s9C("matTooltip",S.name),e.Q6J("icon",S.icon)}}function K2(R,N){if(1&R&&(e.TgZ(0,"mat-icon",36),e._uU(1),e.qZA()),2&R){const S=e.oxw().$implicit;e.s9C("matTooltip",S.name),e.xp6(1),e.Oqu(S.icon)}}function Ld(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"mat-tree-node",16),e.NdJ("click",function(){const Ee=e.CHM(S).$implicit,Mt=e.oxw();return e.KtG(Mt.onShowData(Ee))}),e.YNc(1,Ch,2,1,"span",18),e.YNc(2,tc,1,2,"fa-icon",33),e.YNc(3,K2,2,2,"mat-icon",34),e.TgZ(4,"span"),e._uU(5),e.qZA()()}if(2&R){const S=N.$implicit;e.xp6(1),e.Q6J("ngIf","SVG"===S.iconType),e.xp6(1),e.Q6J("ngIf","FA"===S.iconType),e.xp6(1),e.Q6J("ngIf",!S.iconType),e.xp6(2),e.Oqu(S.name)}}function qu(R,N){if(1&R&&(e.TgZ(0,"span",32),e.GkF(1,22),e.qZA()),2&R){const S=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",S.icon)}}function Dl(R,N){if(1&R&&e._UZ(0,"fa-icon",35),2&R){const S=e.oxw().$implicit;e.s9C("matTooltip",S.name),e.Q6J("icon",S.icon)}}function Sc(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"mat-tree-node",16),e.NdJ("click",function(){const Ee=e.CHM(S).$implicit,Mt=e.oxw(2);return e.KtG(Mt.onClick(Ee))}),e.YNc(1,qu,2,1,"span",28),e.YNc(2,Dl,1,2,"fa-icon",33),e.TgZ(3,"span"),e._uU(4),e.qZA()()}if(2&R){const S=N.$implicit;e.xp6(1),e.Q6J("ngIf","SVG"===S.iconType),e.xp6(1),e.Q6J("ngIf","FA"===S.iconType),e.xp6(2),e.Oqu(S.name)}}function Cs(R,N){if(1&R&&(e.TgZ(0,"mat-tree",5),e.YNc(1,Sc,5,3,"mat-tree-node",6),e.qZA()),2&R){const S=e.oxw();e.Q6J("dataSource",S.navMenusLogout)("treeControl",S.treeControlLogout)}}function Q2(R,N){1&R&&(e.O4$(),e.TgZ(0,"svg",37)(1,"g",38)(2,"g",39),e._UZ(3,"circle",40)(4,"path",41)(5,"path",42),e.qZA()()())}let Dd=(()=>{var R;class N{constructor(z,U,Ee,Mt,Xt,oi){this.logger=z,this.commonService=U,this.sessionService=Ee,this.store=Mt,this.actions=Xt,this.rtlEffects=oi,this.ChildNavClicked=new e.vpe,this.faEject=Xi.KOR,this.faEye=Xi.Mdf,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.logoutNode=[{id:200,parentId:0,name:"Logout",iconType:"FA",icon:Xi.KOR}],this.showDataNodes=[{id:1e3,parentId:0,name:"Public Key",iconType:"FA",icon:Xi.Mdf}],this.showLogout=!1,this.numPendingChannels=0,this.smallScreen=!1,this.childRootRoute="",this.userPersonaEnum=Ne.ol,this.unSubs=[new Fi.x,new Fi.x,new Fi.x,new Fi.x,new Fi.x,new Fi.x],this.treeControlNested=new Ed.VY(Ci=>Ci.children),this.treeControlLogout=new Ed.VY(Ci=>Ci.children),this.treeControlShowData=new Ed.VY(Ci=>Ci.children),this.navMenus=new Br.WX,this.navMenusLogout=new Br.WX,this.navMenusShowData=new Br.WX,this.hasChild=(Ci,Zi)=>!!Zi.children&&Zi.children.length>0,this.version=Ne.q4,xs.LNDChildren&&200===xs.LNDChildren[xs.LNDChildren.length-1].id&&xs.LNDChildren.pop(),this.navMenus.data=xs.LNDChildren||[],this.navMenusLogout.data=this.logoutNode,this.navMenusShowData.data=this.showDataNodes}ngOnInit(){const z=this.sessionService.getItem("token");this.showLogout=!!z,this.flgLoading=!!z,this.store.select(xa.Yj).pipe((0,sn.R)(this.unSubs[0])).subscribe(U=>{this.appConfig=U}),this.store.select(xa.gW).pipe((0,sn.R)(this.unSubs[1])).subscribe(U=>{if(this.information=U.nodeDate,this.information.identity_pubkey){if(this.information.chains&&"string"==typeof this.information.chains[0])this.informationChain.chain=this.information.chains[0].toString(),this.informationChain.network=this.information.testnet?"Testnet":"Mainnet";else if(this.information&&this.information.chains&&this.information.chains.length&&this.information.chains.length>0&&"object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const Ee=this.information.chains[0];this.informationChain.chain=Ee.chain,this.informationChain.network=Ee.network}}else this.informationChain.chain="",this.informationChain.network="";this.flgLoading=!this.information.identity_pubkey,window.innerWidth<=414&&(this.smallScreen=!0),this.selNode=U.selNode,this.settings=this.selNode?.settings||null,this.selConfigNodeIndex=+(U.selNode?.index||0),this.selNode&&this.selNode.lnImplementation&&this.filterSideMenuNodes(),this.logger.info(U)}),this.sessionService.watchSession().pipe((0,sn.R)(this.unSubs[2])).subscribe(U=>{this.showLogout=!!U.token,this.flgLoading=!!U.token}),this.actions.pipe((0,sn.R)(this.unSubs[3]),(0,Ya.h)(U=>U.type===Ne.pg.LOGOUT)).subscribe(U=>{this.showLogout=!1})}onClick(z){"Logout"===z.name&&(this.store.dispatch((0,Rt.c1)({payload:{data:{type:Ne.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,sn.R)(this.unSubs[4])).subscribe(U=>{U&&(this.showLogout=!1,this.store.dispatch((0,Rt.kS)()))})),this.ChildNavClicked.emit(z)}onChildNavClicked(z){this.ChildNavClicked.emit(z)}filterSideMenuNodes(){switch(this.selNode?.lnImplementation?.toUpperCase()){case"CLN":this.loadCLNMenu();break;case"ECL":this.loadECLMenu();break;default:this.loadLNDMenu()}}loadLNDMenu(){let z=[];z=JSON.parse(JSON.stringify(xs.LNDChildren)),this.navMenus.data=z?.filter(U=>U.children&&U.children.length?(U.children=U.children?.filter(Ee=>(Ee.userPersona===Ne.ol.ALL||Ee.userPersona===this.settings?.userPersona)&&"/services/loop"!==Ee.link&&"/services/boltz"!==Ee.link||"/services/loop"===Ee.link&&this.settings?.swapServerUrl&&""!==this.settings.swapServerUrl.trim()||"/services/boltz"===Ee.link&&this.settings?.boltzServerUrl&&""!==this.settings.boltzServerUrl.trim()),U.children.length>0):U.userPersona===Ne.ol.ALL||U.userPersona===this.settings?.userPersona)}loadCLNMenu(){let z=[];z=JSON.parse(JSON.stringify(xs.CLNChildren)),this.navMenus.data=z?.filter(U=>U.children&&U.children.length?(U.children=U.children?.filter(Ee=>(Ee.userPersona===Ne.ol.ALL||Ee.userPersona===this.settings?.userPersona)&&"/services/peerswap"!==Ee.link||"/services/peerswap"===Ee.link&&this.settings?.enablePeerswap),U.children.length>0):U.userPersona===Ne.ol.ALL||U.userPersona===this.settings?.userPersona)}loadECLMenu(){this.navMenus.data=JSON.parse(JSON.stringify(xs.ECLChildren))}onShowData(z){this.store.dispatch((0,Rt.tj)()),this.ChildNavClicked.emit("showData")}onNodeSelectionChange(z){const U=this.selConfigNodeIndex;this.selConfigNodeIndex=z;const Ee=this.appConfig.nodes.find(Mt=>+Mt.index===z);this.store.dispatch((0,Rt.fk)({payload:{uiMessage:Ne.m6.UPDATE_SELECTED_NODE,prevLnNodeIndex:+U,currentLnNode:Ee||null,isInitialSetup:!1}})),this.ChildNavClicked.emit("selectNode")}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return(R=N).\u0275fac=function(z){return new(z||R)(e.Y36(ni.mQ),e.Y36(ut.v),e.Y36(Ga.m),e.Y36(ki.yh),e.Y36(Ua.eX),e.Y36(Ma.V))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-side-navigation"]],viewQuery:function(z,U){if(1&z&&e.Gf(Br.gi,5),2&z){let Ee;e.iGM(Ee=e.CRH())&&(U.tree=Ee.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","80","fxLayoutAlign","start center"],["class","mr-2",4,"ngIf"],["fxFlex","20","mat-icon-button","","fxLayoutAlign","end center",1,"btn-icon-small"],[1,"mat-nested-tree-node-child"],["matTreeNodeOutlet",""],[1,"mr-2"],["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(z,U){1&z&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,Y2,3,2,"mat-select",2),e._UZ(3,"mat-divider",3),e.YNc(4,xh,4,3,"mat-tree",4),e._UZ(5,"mat-divider",3),e.TgZ(6,"mat-tree",5),e.YNc(7,Ld,6,4,"mat-tree-node",6),e.qZA()(),e.TgZ(8,"div",7),e.YNc(9,Cs,2,2,"mat-tree",4),e.qZA()(),e.YNc(10,Q2,6,0,"ng-template",null,8,e.W1O)),2&z&&(e.xp6(2),e.Q6J("ngIf",U.appConfig.nodes.length>1),e.xp6(2),e.Q6J("ngIf",null==U.settings?null:U.settings.lnServerUrl),e.xp6(2),e.Q6J("dataSource",U.navMenusShowData)("treeControl",U.treeControlShowData),e.xp6(3),e.Q6J("ngIf",U.showLogout))},dependencies:[Wi.sg,Wi.O5,Wi.tP,La.BN,ji.xw,ji.Wh,ji.yH,bi.RK,ur.Hw,Jr.d,Br.GZ,Br.fQ,Br.eu,Br.gi,Br.uo,Br.Ar,Pi.gD,qi.ey,To.gM,Wn.rH,Wn.Od,tn.Vv,tn.$V],styles:[".tree-children-invisible[_ngcontent-%COMP%]{display:none}"]}),N})();var y1=m(8255);function nl(R,N){if(1&R&&(e.TgZ(0,"p",2),e._UZ(1,"fa-icon",3),e.TgZ(2,"span"),e._uU(3),e.qZA()()),2&R){const S=e.oxw();e.xp6(1),e.Q6J("icon",S.faCode),e.xp6(2),e.hij("API Version: ",null==S.information?null:S.information.api_version,"")}}function Id(R,N){if(1&R&&(e.TgZ(0,"p",11),e._UZ(1,"fa-icon",3),e.TgZ(2,"span",12),e._uU(3,"Settings"),e.qZA()()),2&R){const S=e.oxw();e.xp6(1),e.Q6J("icon",S.faUserCog)}}function wh(R,N){if(1&R&&(e.TgZ(0,"p",13),e._UZ(1,"fa-icon",3),e.TgZ(2,"span",14),e._uU(3,"Help"),e.qZA()()),2&R){const S=e.oxw();e.xp6(1),e.Q6J("icon",S.faQuestion)}}function Mh(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"p",15),e.NdJ("click",function(){e.CHM(S);const U=e.oxw();return e.KtG(U.onClick())}),e._UZ(1,"fa-icon",3),e.TgZ(2,"span"),e._uU(3,"Logout"),e.qZA()()}if(2&R){const S=e.oxw();e.xp6(1),e.Q6J("icon",S.faEject)}}let q2=(()=>{var R;class N{constructor(z,U,Ee,Mt,Xt){this.logger=z,this.sessionService=U,this.store=Ee,this.rtlEffects=Mt,this.actions=Xt,this.faUserCog=Xi.gNZ,this.faCodeBranch=Xi.mh3,this.faCode=Xi.dT$,this.faCog=Xi.b7W,this.faQuestion=Xi.Psp,this.faEject=Xi.KOR,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.showLogout=!1,this.unSubs=[new Fi.x,new Fi.x,new Fi.x,new Fi.x],this.version=Ne.q4}ngOnInit(){this.store.select(xa.R4).pipe((0,sn.R)(this.unSubs[0])).subscribe(z=>{if(this.information=z,this.flgLoading=!this.information.identity_pubkey,this.information.identity_pubkey){if(this.information.chains&&"string"==typeof this.information.chains[0])this.informationChain.chain=this.information.chains[0].toString(),this.informationChain.network=this.information.testnet?"Testnet":"Mainnet";else if(this.information&&this.information.chains&&this.information.chains.length&&this.information.chains.length>0&&"object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const U=this.information.chains[0];this.informationChain.chain=U.chain,this.informationChain.network=U.network}}else this.informationChain.chain="",this.informationChain.network="";this.logger.info(z)}),this.sessionService.watchSession().pipe((0,sn.R)(this.unSubs[1])).subscribe(z=>{this.showLogout=!!z.token,this.flgLoading=!!z.token}),this.actions.pipe((0,sn.R)(this.unSubs[2]),(0,Ya.h)(z=>z.type===Ne.pg.LOGOUT)).subscribe(()=>{this.showLogout=!1})}onClick(){this.store.dispatch((0,Rt.c1)({payload:{data:{type:Ne.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,sn.R)(this.unSubs[3])).subscribe(z=>{z&&(this.showLogout=!1,this.store.dispatch((0,Rt.kS)()))})}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return(R=N).\u0275fac=function(z){return new(z||R)(e.Y36(ni.mQ),e.Y36(Ga.m),e.Y36(ki.yh),e.Y36(Ma.V),e.Y36(Ua.eX))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-top-menu"]],decls:14,vars:8,consts:[[1,"top-menu",3,"overlapTrigger"],["topMenu","matMenu"],["mat-menu-item","",1,"cursor-default"],[1,"fa-icon-small","mr-1",3,"icon"],["mat-menu-item","","class","cursor-default",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","",3,"matMenuTriggerFor"],["src","assets/images/RTL-Horse-BY.svg","alt","RTL Logo",1,"rtl-log-top"],[1,"rtl-logo-dropdown","color-white"],["mat-menu-item","","routerLink","/settings"],["routerLink","/settings"],["mat-menu-item","","routerLink","/help"],["routerLink","/help"],["mat-menu-item","",3,"click"]],template:function(z,U){if(1&z&&(e.TgZ(0,"mat-menu",0,1)(2,"p",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span"),e._uU(5),e.qZA()(),e.YNc(6,nl,4,2,"p",4),e.YNc(7,Id,4,1,"p",5),e.YNc(8,wh,4,1,"p",6),e.YNc(9,Mh,4,1,"p",7),e.qZA(),e.TgZ(10,"button",8),e._UZ(11,"img",9),e.TgZ(12,"mat-icon",10),e._uU(13,"arrow_drop_down"),e.qZA()()),2&z){const Ee=e.MAs(1);e.Q6J("overlapTrigger",!1),e.xp6(3),e.Q6J("icon",U.faCodeBranch),e.xp6(2),e.hij("Version: ",U.version,""),e.xp6(1),e.Q6J("ngIf",null==U.information?null:U.information.api_version),e.xp6(1),e.Q6J("ngIf",U.showLogout),e.xp6(1),e.Q6J("ngIf",U.showLogout),e.xp6(1),e.Q6J("ngIf",U.showLogout),e.xp6(1),e.Q6J("matMenuTriggerFor",Ee)}},dependencies:[Wi.O5,La.BN,bi.RK,ur.Hw,y1.VK,y1.OP,y1.p6,Wn.rH],styles:[".mat-mdc-icon-button img.rtl-log-top{width:2rem;height:2rem}.mat-icon.material-icons.mat-icon-no-color.rtl-logo-dropdown{height:2rem}\n"],encapsulation:2}),N})();const Ju=["sideNavigation"],kd=["sideNavContent"];function Sh(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(){e.CHM(S);const U=e.oxw();return e.KtG(U.sideNavToggle())}),e.TgZ(1,"mat-icon",15),e._uU(2,"menu"),e.qZA()()}if(2&R){const S=e.oxw();e.Q6J("matTooltip",S.flgSideNavOpened?"Hide Navigation Menu":"Show Navigation Menu")("matTooltipDisabled",S.smallScreen)}}function Eh(R,N){1&R&&(e.O4$(),e._UZ(0,"path",20))}function ns(R,N){1&R&&(e.O4$(),e._UZ(0,"path",21))}function J2(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"button",16),e.NdJ("click",function(){e.CHM(S);const U=e.oxw();return e.KtG(U.flgSidenavPinned=!U.flgSidenavPinned)}),e.O4$(),e.TgZ(1,"svg",17),e.YNc(2,Eh,1,0,"path",18),e.YNc(3,ns,1,0,"path",19),e.qZA()()}if(2&R){const S=e.oxw();e.Q6J("matTooltip",S.flgSidenavPinned?"Unpin Navigation Menu":"Pin Navigation Menu"),e.xp6(2),e.Q6J("ngIf",!S.flgSidenavPinned),e.xp6(1),e.Q6J("ngIf",S.flgSidenavPinned)}}function X2(R,N){if(1&R&&(e.TgZ(0,"span",22),e._uU(1),e.qZA()),2&R){const S=e.oxw();e.xp6(1),e.Oqu(S.information.alias?"RTL - "+S.information.alias:"RTL")}}function Th(R,N){if(1&R&&(e.TgZ(0,"span",23),e._uU(1),e.qZA()),2&R){const S=e.oxw();e.xp6(1),e.Oqu(S.information.alias?"Ride The Lightning - "+S.information.alias:"Ride The Lightning")}}function Ah(R,N){1&R&&(e.TgZ(0,"div",24),e._UZ(1,"mat-spinner",25),e.TgZ(2,"h4"),e._uU(3,"Loading RTL..."),e.qZA()())}const $2=function(R,N){return[R,N]};let Lh=(()=>{var R;class N{constructor(z,U,Ee,Mt,Xt,oi,Ci,Zi,Vi){this.logger=z,this.commonService=U,this.store=Ee,this.actions=Mt,this.userIdle=Xt,this.router=oi,this.sessionService=Ci,this.breakpointObserver=Zi,this.renderer=Vi,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 Fi.x,new Fi.x,new Fi.x,new Fi.x,new Fi.x,new Fi.x,new Fi.x,new Fi.x]}ngOnInit(){this.router.events.subscribe(z=>{z instanceof Wn.m2&&document.getElementsByTagName("mat-sidenav-content")[0].scrollTo(0,0)}),this.breakpointObserver.observe([qn.u3.XSmall,qn.u3.TabletPortrait,qn.u3.Small,qn.u3.Medium,qn.u3.Large,qn.u3.XLarge]).pipe((0,sn.R)(this.unSubs[0])).subscribe(z=>{z.breakpoints[qn.u3.XSmall]?(this.commonService.setScreenSize(Ne.cu.XS),this.smallScreen=!0):z.breakpoints[qn.u3.TabletPortrait]?(this.commonService.setScreenSize(Ne.cu.SM),this.smallScreen=!0):z.breakpoints[qn.u3.Small]||z.breakpoints[qn.u3.Medium]?(this.commonService.setScreenSize(Ne.cu.MD),this.smallScreen=!1):z.breakpoints[qn.u3.Large]?(this.commonService.setScreenSize(Ne.cu.LG),this.smallScreen=!1):(this.commonService.setScreenSize(Ne.cu.XL),this.smallScreen=!1)}),this.store.dispatch((0,Rt.ey)()),this.accessKey=this.readAccessKey()||"",this.store.select(xa.dT).pipe((0,sn.R)(this.unSubs[1])).subscribe(z=>{this.settings=z.settings,this.sessionService.getItem("token")?(this.flgLoggedIn=!0,this.userIdle.startWatching()):(this.flgLoggedIn=!1,this.flgLoading[0]=!1)}),this.store.select(xa.Yj).pipe((0,sn.R)(this.unSubs[2])).subscribe(z=>{this.appConfig=z}),this.store.select(xa.R4).pipe((0,sn.R)(this.unSubs[3])).subscribe(z=>{this.information=z,this.flgLoading[0]=!this.information.identity_pubkey,this.logger.info(this.information)}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1),this.actions.pipe((0,sn.R)(this.unSubs[4]),(0,Ya.h)(z=>z.type===Ne.pg.SET_RTL_CONFIG||z.type===Ne.pg.LOGIN||z.type===Ne.pg.LOGOUT)).subscribe(z=>{z.type===Ne.pg.SET_RTL_CONFIG&&(this.sessionService.getItem("token")||(+z.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,Rt.x4)({payload:{password:ha(this.accessKey).toString(),defaultPassword:!1}})):this.router.navigate(["./login"]))),z.type===Ne.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)),z.type===Ne.pg.LOGOUT&&(this.flgLoggedIn=!1,this.userIdle.stopWatching(),this.userIdle.stopTimer())}),this.userIdle.onTimerStart().pipe((0,sn.R)(this.unSubs[5])).subscribe(z=>{this.logger.info("Counting Down: "+(11-z))}),this.userIdle.onTimeout().pipe((0,sn.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,Rt.ts)()),this.store.dispatch((0,Rt.qR)({payload:{data:{type:Ne.n_.WARNING,alertTitle:"Logging out",titleMessage:"Time limit exceeded for session inactivity."}}})),this.store.dispatch((0,Rt.kS)()))}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1)}readAccessKey(){const z=window.location.href;return z.includes("access-key=")?z.substring(z.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(z){this.smallScreen&&this.sideNavigation.close()}copiedText(z){this.flgCopied=!0,setTimeout(()=>{this.flgCopied=!1},5e3),this.logger.info("Copied Text: "+z)}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(),z.complete()})}}return(R=N).\u0275fac=function(z){return new(z||R)(e.Y36(ni.mQ),e.Y36(ut.v),e.Y36(ki.yh),e.Y36(Ua.eX),e.Y36(Rc),e.Y36(Wn.F0),e.Y36(Ga.m),e.Y36(qn.Yg),e.Y36(e.Qsj))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-app"]],viewQuery:function(z,U){if(1&z&&(e.Gf(Ju,5),e.Gf(kd,5)),2&z){let Ee;e.iGM(Ee=e.CRH())&&(U.sideNavigation=Ee.first),e.iGM(Ee=e.CRH())&&(U.sideNavContent=Ee.first)}},decls:23,vars:15,consts:[["fxLayout","column","id","rtl-container",1,"rtl-container","medium",3,"ngClass"],["fxLayout","row","fxLayoutAlign","space-between center",1,"bg-primary","rtl-top-toolbar"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","matTooltipDisabled","click",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click",4,"ngIf"],["class","font-weight-500",4,"ngIf"],["class","font-size-120 font-weight-500",4,"ngIf"],[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",3,"matTooltip","matTooltipDisabled","click"],[1,"color-white"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click"],["width","20","height","20","viewBox","0 0 24 24",1,"icon-pinned"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z",4,"ngIf"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z",4,"ngIf"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z"],[1,"font-weight-500"],[1,"font-size-120","font-weight-500"],[1,"rtl-spinner"],["color","accent"]],template:function(z,U){1&z&&(e.TgZ(0,"div",0),e.ALo(1,"lowercase"),e.ALo(2,"lowercase"),e.TgZ(3,"mat-toolbar",1)(4,"div"),e.YNc(5,Sh,3,2,"button",2),e.YNc(6,J2,4,3,"button",3),e.qZA(),e.TgZ(7,"div"),e.YNc(8,X2,2,1,"span",4),e.YNc(9,Th,2,1,"span",5),e.qZA(),e.TgZ(10,"div"),e._UZ(11,"rtl-top-menu"),e.qZA()(),e.TgZ(12,"mat-sidenav-container")(13,"mat-sidenav",6,7)(15,"rtl-side-navigation",8),e.NdJ("ChildNavClicked",function(Mt){return U.onNavigationClicked(Mt)}),e.qZA()(),e.TgZ(16,"mat-sidenav-content",9,10)(18,"div",11),e._UZ(19,"router-outlet",null,12),e.qZA()(),e._uU(21,"> "),e.qZA(),e.YNc(22,Ah,4,0,"div",13),e.qZA()),2&z&&(e.Q6J("ngClass",e.WLB(12,$2,e.lcZ(1,8,U.settings.themeColor),e.lcZ(2,10,U.settings.themeMode))),e.xp6(5),e.Q6J("ngIf",U.flgLoggedIn),e.xp6(1),e.Q6J("ngIf",!U.smallScreen&&U.flgLoggedIn),e.xp6(2),e.Q6J("ngIf",U.smallScreen),e.xp6(1),e.Q6J("ngIf",!U.smallScreen),e.xp6(4),e.Q6J("opened",U.flgSideNavOpened&&U.flgLoggedIn)("mode",U.flgSidenavPinned&&!U.smallScreen?"side":"over"),e.xp6(9),e.Q6J("ngIf",!U.settings.themeColor))},dependencies:[Wi.mk,Wi.O5,ji.xw,ji.Wh,ji.yH,Lt.oO,bi.RK,ur.Hw,Md.Ou,Sd.JX,Sd.TM,Sd.Rh,Al.Ye,To.gM,tn.$V,Dd,q2,Wn.lC,Wi.i8],styles:[".inline-spinner[_ngcontent-%COMP%]{display:inline-flex!important;top:0!important}"],data:{animation:[Mc.g]}}),N})(),e0=(()=>{var R;class N{constructor(z){this.sessionService=z}intercept(z,U){if(this.sessionService.getItem("token")){const Ee=z.clone({headers:z.headers.set("Authorization","Bearer "+this.sessionService.getItem("token")),withCredentials:!0});return U.handle(Ee)}return U.handle(z)}}return(R=N).\u0275fac=function(z){return new(z||R)(e.LFG(Ga.m))},R.\u0275prov=e.Yz7({token:R,factory:R.\u0275fac}),N})();var t0=m(7998),Dh=m(711),x1=m(4947),Nn=m(3289);const Od={userPersona:"OPERATOR",themeMode:"DAY",themeColor:"PURPLE",channelBackupPath:"",selCurrencyUnit:"USD",unannouncedChannels:!1,fiatConversion:!1,currencyUnits:["Sats","BTC","USD"],bitcoindConfigPath:"",enableOffers:!1,enablePeerswap:!1},Pd={configPath:"",swapMacaroonPath:"",boltzMacaroonPath:""},Rd={apiURL:"",apisCallStatus:{Login:{status:Ne.Bn.UN_INITIATED},IsAuthorized:{status:Ne.Bn.UN_INITIATED}},selNode:{index:1,lnNode:"Node 1",settings:Od,authentication:Pd,lnImplementation:"LND"},appConfig:{defaultNodeIndex:-1,selectedNodeIndex:-1,sso:{rtlSSO:0,logoutRedirectLink:""},enable2FA:!1,allowPasswordUpdate:!0,nodes:[{settings:Od,authentication:Pd}]},nodeData:{}},Ih=(0,ki.Lq)(Rd,(0,ki.on)(Rt.qi,(R,{payload:N})=>{const S=JSON.parse(JSON.stringify(R.apisCallStatus));return N.action&&(S[N.action]={status:N.status,statusCode:N.statusCode,message:N.message,URL:N.URL,filePath:N.filePath}),{...R,apisCallStatus:S}}),(0,ki.on)(Rt.vI,(R,{payload:N})=>({...Rd,apisCallStatus:R.apisCallStatus,appConfig:R.appConfig,selNode:N})),(0,ki.on)(Rt.fk,(R,{payload:N})=>({...R,selNode:N.currentLnNode})),(0,ki.on)(Rt.Tm,(R,{payload:N})=>{const S=JSON.parse(JSON.stringify(R.selNode));switch(N.service){case Ne.JX.BOLTZ:S.settings.boltzServerUrl=N.settings.boltzServerUrl;break;case Ne.JX.LOOP:S.settings.swapServerUrl=N.settings.swapServerUrl;break;case Ne.JX.OFFERS:S.settings.enableOffers=N.settings.enableOffers;break;case Ne.JX.PEERSWAP:S.settings.enablePeerswap=N.settings.enablePeerswap}return{...R,selNode:S}}),(0,ki.on)(Rt._V,(R,{payload:N})=>({...R,nodeData:N})),(0,ki.on)(Rt.XT,(R,{payload:N})=>({...R,appConfig:N}))),Nd={apisCallStatus:{FetchPageSettings:{status:Ne.Bn.UN_INITIATED},FetchInfo:{status:Ne.Bn.UN_INITIATED},FetchFees:{status:Ne.Bn.UN_INITIATED},FetchPeers:{status:Ne.Bn.UN_INITIATED},FetchClosedChannels:{status:Ne.Bn.UN_INITIATED},FetchPendingChannels:{status:Ne.Bn.UN_INITIATED},FetchAllChannels:{status:Ne.Bn.UN_INITIATED},FetchBalanceBlockchain:{status:Ne.Bn.UN_INITIATED},FetchInvoices:{status:Ne.Bn.UN_INITIATED},FetchPayments:{status:Ne.Bn.UN_INITIATED},FetchForwardingHistory:{status:Ne.Bn.UN_INITIATED},FetchUTXOs:{status:Ne.Bn.UN_INITIATED},FetchTransactions:{status:Ne.Bn.UN_INITIATED},FetchLightningTransactions:{status:Ne.Bn.UN_INITIATED},FetchNetwork:{status:Ne.Bn.UN_INITIATED}},nodeSettings:{userPersona:Ne.ol.OPERATOR,unannouncedChannels:!1,fiatConversion:!1,channelBackupPath:"",currencyUnits:[],selCurrencyUnit:"",lnImplementation:"",swapServerUrl:""},pageSettings:Ne.gK,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 Fd=!1,n0=!1;const a0=(0,ki.Lq)(Nd,(0,ki.on)(Be.PC,(R,{payload:N})=>{const S=JSON.parse(JSON.stringify(R.apisCallStatus));return N.action&&(S[N.action]={status:N.status,statusCode:N.statusCode,message:N.message,URL:N.URL,filePath:N.filePath}),{...R,apisCallStatus:S}}),(0,ki.on)(Be.JT,(R,{payload:N})=>({...R,nodeSettings:N})),(0,ki.on)(Be.Ll,(R,{payload:N})=>({...Nd,nodeSettings:N})),(0,ki.on)(Be.CX,(R,{payload:N})=>({...R,information:N})),(0,ki.on)(Be.Z8,(R,{payload:N})=>({...R,peers:N})),(0,ki.on)(Be.EK,(R,{payload:N})=>{const S=[...R.peers],z=R.peers.findIndex(U=>U.pub_key===N.pubkey);return z>-1&&S.splice(z,1),{...R,peers:S}}),(0,ki.on)(Be.YP,(R,{payload:N})=>{const S=R.listInvoices;return S.invoices?.unshift(N),{...R,listInvoices:S}}),(0,ki.on)(Be.aL,(R,{payload:N})=>{const S=R.listInvoices;return S.invoices=S.invoices?.map(z=>z.payment_request===N.payment_request?N:z),{...R,listInvoices:S}}),(0,ki.on)(Be.qY,(R,{payload:N})=>{const S=R.listPayments;return S.payments=S.payments?.map(z=>z.payment_hash===N.payment_hash?N:z),{...R,listPayments:S}}),(0,ki.on)(Be.RX,(R,{payload:N})=>({...R,fees:N})),(0,ki.on)(Be._L,(R,{payload:N})=>({...R,closedChannels:N})),(0,ki.on)(Be.TW,(R,{payload:N})=>({...R,pendingChannels:N.pendingChannels,pendingChannelsSummary:N.pendingChannelsSummary})),(0,ki.on)(Be.as,(R,{payload:N})=>{let S=0,z=0,U=0,Ee=0,Mt=0,Xt=0;return N&&N.forEach(oi=>{oi.local_balance||(oi.local_balance=0),!0===oi.active?(Mt+=+oi.local_balance,U+=1,oi.local_balance?S=+S+ +oi.local_balance:oi.local_balance=0,oi.remote_balance?z=+z+ +oi.remote_balance:oi.remote_balance=0):(Xt+=+oi.local_balance,Ee+=1)}),{...R,channels:N,channelsSummary:{active:{num_channels:U,capacity:Mt},inactive:{num_channels:Ee,capacity:Xt}},lightningBalance:{local:S,remote:z}}}),(0,ki.on)(Be.OG,(R,{payload:N})=>{const S=[...R.channels],z=R.channels.findIndex(U=>U.channel_point===N.channelPoint);return z>-1&&S.splice(z,1),{...R,channels:S}}),(0,ki.on)(Be.Jl,(R,{payload:N})=>({...R,blockchainBalance:N})),(0,ki.on)(Be.ks,(R,{payload:N})=>({...R,networkInfo:N})),(0,ki.on)(Be.Nr,(R,{payload:N})=>(N.total_invoices||(N.total_invoices=R.listInvoices.total_invoices),{...R,listInvoices:N})),(0,ki.on)(Be.Lf,(R,{payload:N})=>{if(Fd=!0,N.length&&n0){const S=[...R.utxos];return S.forEach(z=>{const U=N.find(Ee=>Ee.tx_hash===z.outpoint?.txid_str);z.label=U&&U.label?U.label:""}),{...R,utxos:S,transactions:N}}return{...R,transactions:N}}),(0,ki.on)(Be.UH,(R,{payload:N})=>{if(n0=!0,N.length&&Fd){const S=[...R.transactions];N.forEach(z=>{const U=S.find(Ee=>Ee.tx_hash===z.outpoint?.txid_str);z.label=U&&U.label?U.label:""})}return{...R,utxos:N}}),(0,ki.on)(Be.HI,(R,{payload:N})=>{const S={listInvoicesAll:R.allLightningTransactions.listInvoicesAll,listPaymentsAll:N};return{...R,listPayments:N,allLightningTransactions:S}}),(0,ki.on)(Be.Fr,(R,{payload:N})=>{const S={listInvoicesAll:N.listInvoicesAll,listPaymentsAll:R.listPayments};return{...R,allLightningTransactions:S}}),(0,ki.on)(Be.QJ,(R,{payload:N})=>{const S=[...R.channels,...R.closedChannels];let z=N.forwarding_events?JSON.parse(JSON.stringify(N)):{};return z.forwarding_events&&(z=r0(z,S)),{...R,forwardingHistory:z}}),(0,ki.on)(Be.pd,(R,{payload:N})=>{const S=[];return Ne.gK.forEach(z=>{const U=N&&N.length&&N.length>0?N.find(Ee=>Ee.pageId===z.pageId):null;if(U){const Ee=JSON.parse(JSON.stringify(U.tables));U.tables=[],z.tables.forEach(Mt=>{const Xt=Ee.find(oi=>oi.tableId===Mt.tableId)||null;U.tables.push(Xt||JSON.parse(JSON.stringify(Mt)))}),S.push(U)}else S.push(JSON.parse(JSON.stringify(z)))}),{...R,pageSettings:S}})),r0=(R,N)=>(R.forwarding_events.forEach(S=>{if(N&&N.length>0)for(let z=0;z{const S=JSON.parse(JSON.stringify(R.apisCallStatus));return N.action&&(S[N.action]={status:N.status,statusCode:N.statusCode,message:N.message,URL:N.URL,filePath:N.filePath}),{...R,apisCallStatus:S}}),(0,ki.on)(ae.Mf,(R,{payload:N})=>({...R,nodeSettings:N})),(0,ki.on)(ae.mI,(R,{payload:N})=>({...o0,nodeSettings:N})),(0,ki.on)(ae.CX,(R,{payload:N})=>({...R,information:N})),(0,ki.on)(ae.RX,(R,{payload:N})=>({...R,fees:N})),(0,ki.on)(ae.I8,(R,{payload:N})=>N.perkb?{...R,feeRatesPerKB:N}:N.perkw?{...R,feeRatesPerKW:N}:{...R}),(0,ki.on)(ae.Lu,(R,{payload:N})=>({...R,balance:N})),(0,ki.on)(ae.xS,(R,{payload:N})=>({...R,localRemoteBalance:N})),(0,ki.on)(ae.Z8,(R,{payload:N})=>({...R,peers:N})),(0,ki.on)(ae.X3,(R,{payload:N})=>({...R,peers:[...R.peers,N]})),(0,ki.on)(ae.EK,(R,{payload:N})=>{const S=[...R.peers],z=R.peers.findIndex(U=>U.id===N.id);return z>-1&&S.splice(z,1),{...R,peers:S}}),(0,ki.on)(ae.as,(R,{payload:N})=>({...R,activeChannels:N.activeChannels,pendingChannels:N.pendingChannels,inactiveChannels:N.inactiveChannels})),(0,ki.on)(ae.OG,(R,{payload:N})=>{const S=[...R.peers];return S.forEach(z=>{z.id===N.id&&(z.connected=!1,delete z.netaddr)}),{...R,peers:S}}),(0,ki.on)(ae.HI,(R,{payload:N})=>({...R,payments:N})),(0,ki.on)(ae.QJ,(R,{payload:N})=>{const S=[...R.activeChannels,...R.pendingChannels,...R.inactiveChannels],z=Hd(N.listForwards,S);switch(N.listForwards=z,N.status){case Ne.OO.SETTLED:const U=R.fees;return U.totalTxCount=N.totalForwards||0,{...R,fees:U,forwardingHistory:N};case Ne.OO.FAILED:return{...R,failedForwardingHistory:N};case Ne.OO.LOCAL_FAILED:return{...R,localFailedForwardingHistory:N};default:return{...R}}}),(0,ki.on)(ae.YP,(R,{payload:N})=>{const S=R.invoices;return S.invoices?.unshift(N),{...R,invoices:S}}),(0,ki.on)(ae.Nr,(R,{payload:N})=>({...R,invoices:N})),(0,ki.on)(ae.aL,(R,{payload:N})=>{const S=R.invoices;return S.invoices=S.invoices?.map(z=>z.label===N.label?N:z),{...R,invoices:S}}),(0,ki.on)(ae.UH,(R,{payload:N})=>({...R,utxos:N})),(0,ki.on)(ae.Zu,(R,{payload:N})=>({...R,offers:N})),(0,ki.on)(ae.ZH,(R,{payload:N})=>{const S=R.offers;return S?.unshift(N),{...R,offers:S}}),(0,ki.on)(ae.JK,(R,{payload:N})=>{const S=[...R.offers],z=R.offers.findIndex(U=>U.offer_id===N.offer.offer_id);return z>-1&&S.splice(z,1,N.offer),{...R,offers:S}}),(0,ki.on)(ae.d7,(R,{payload:N})=>({...R,offersBookmarks:N})),(0,ki.on)(ae.e9,(R,{payload:N})=>{const S=[...R.offersBookmarks],z=S.findIndex(U=>U.bolt12===N.bolt12);if(z<0)S?.unshift(N);else{const U={...S[z]};U.title=N.title,U.amountMSat=N.amountMSat,U.lastUpdatedAt=N.lastUpdatedAt,U.description=N.description,U.issuer=N.issuer,S.splice(z,1,U)}return{...R,offersBookmarks:S}}),(0,ki.on)(ae.en,(R,{payload:N})=>{const S=[...R.offersBookmarks],z=R.offersBookmarks.findIndex(U=>U.bolt12===N.bolt12);return z>-1&&S.splice(z,1),{...R,offersBookmarks:S}}),(0,ki.on)(ae.pd,(R,{payload:N})=>{const S=[];return Ne.gG.forEach(z=>{const U=N&&N.length&&N.length>0?N.find(Ee=>Ee.pageId===z.pageId):null;if(U){const Ee=JSON.parse(JSON.stringify(U.tables));U.tables=[],z.tables.forEach(Mt=>{const Xt=Ee.find(oi=>oi.tableId===Mt.tableId)||null;U.tables.push(Xt||JSON.parse(JSON.stringify(Mt)))}),S.push(U)}else S.push(JSON.parse(JSON.stringify(z)))}),{...R,pageSettings:S}})),Hd=(R,N)=>(R&&R.length>0?R.forEach((S,z)=>{if(N&&N.length>0)for(let U=0;U{const S=JSON.parse(JSON.stringify(R.apisCallStatus));return N.action&&(S[N.action]={status:N.status,statusCode:N.statusCode,message:N.message,URL:N.URL,filePath:N.filePath}),{...R,apisCallStatus:S}}),(0,ki.on)(we.Zr,(R,{payload:N})=>({...R,nodeSettings:N})),(0,ki.on)(we.Fd,(R,{payload:N})=>({...zd,nodeSettings:N})),(0,ki.on)(we.CX,(R,{payload:N})=>({...R,information:N})),(0,ki.on)(we.RX,(R,{payload:N})=>({...R,fees:N})),(0,ki.on)(we.eN,(R,{payload:N})=>({...R,activeChannels:N})),(0,ki.on)(we.TW,(R,{payload:N})=>({...R,pendingChannels:N})),(0,ki.on)(we.i,(R,{payload:N})=>({...R,inactiveChannels:N})),(0,ki.on)(we.HG,(R,{payload:N})=>({...R,channelsStatus:N})),(0,ki.on)(we.Bw,(R,{payload:N})=>({...R,onchainBalance:N})),(0,ki.on)(we.On,(R,{payload:N})=>({...R,lightningBalance:N})),(0,ki.on)(we.Z8,(R,{payload:N})=>({...R,peers:N})),(0,ki.on)(we.EK,(R,{payload:N})=>{const S=[...R.peers],z=R.peers.findIndex(U=>U.nodeId===N.nodeId);return z>-1&&S.splice(z,1),{...R,peers:S}}),(0,ki.on)(we.OG,(R,{payload:N})=>{const S=[...R.activeChannels],z=R.activeChannels.findIndex(U=>U.channelId===N.channelId);return z>-1&&S.splice(z,1),{...R,activeChannels:S}}),(0,ki.on)(we.HI,(R,{payload:N})=>{if(N&&N.sent){const S=[...R.activeChannels,...R.pendingChannels,...R.inactiveChannels];N.sent?.map(z=>{const U=R.peers.find(Ee=>Ee.nodeId===z.recipientNodeId);return z.recipientNodeAlias=U?U.alias:z.recipientNodeId,z.parts&&z.parts?.map(Ee=>{const Mt=S.find(Xt=>Xt.channelId===Ee.toChannelId);return Ee.toChannelAlias=Mt?Mt.alias:Ee.toChannelId,z.parts}),N.sent})}if(N&&N.relayed){const S=[...R.activeChannels,...R.pendingChannels,...R.inactiveChannels];N.relayed.forEach(z=>{z=s0(z,S)})}return{...R,payments:N}}),(0,ki.on)(we.Lf,(R,{payload:N})=>({...R,transactions:N})),(0,ki.on)(we.YP,(R,{payload:N})=>{const S=R.invoices;return S?.unshift(N),{...R,invoices:S}}),(0,ki.on)(we.Nr,(R,{payload:N})=>({...R,invoices:N})),(0,ki.on)(we.aL,(R,{payload:N})=>{let S=R.invoices;return S=S?.map(z=>{if(z.paymentHash===N.paymentHash){if(N.hasOwnProperty("type")){const U=JSON.parse(JSON.stringify(z));return U.amountSettled=N.parts&&N.parts.length&&N.parts.length>0&&N.parts[0].amount?(N.parts[0].amount||0)/1e3:0,U.receivedAt=N.parts&&N.parts.length&&N.parts.length>0&&N.parts[0].timestamp?Math.round((N.parts[0].timestamp||0)/1e3):0,U.status="received",U}return N}return z}),{...R,invoices:S}}),(0,ki.on)(we.DJ,(R,{payload:N})=>{let S=R.pendingChannels;return S=S?.map(z=>(z.channelId===N.channelId&&z.nodeId===N.remoteNodeId&&(N.currentState=N.currentState?.replace(/_/g," "),z.state=N.currentState),z)),{...R,pendingChannels:S}}),(0,ki.on)(we.ti,(R,{payload:N})=>{const S=R.payments,z=s0(N,[...R.activeChannels,...R.pendingChannels,...R.inactiveChannels]);S.relayed?.unshift(z);const U=(N.amountIn||0)-(N.amountOut||0),Ee={localBalance:R.lightningBalance.localBalance+U,remoteBalance:R.lightningBalance.remoteBalance-U},Mt=R.channelsStatus;Mt.active&&(Mt.active.capacity=(R.channelsStatus?.active?.capacity||0)+U);const Xt={daily_fee:(R.fees.daily_fee||0)+U,daily_txs:(R.fees.daily_txs||0)+1,weekly_fee:(R.fees.weekly_fee||0)+U,weekly_txs:(R.fees.weekly_txs||0)+1,monthly_fee:(R.fees.monthly_fee||0)+U,monthly_txs:(R.fees.monthly_txs||0)+1},oi=R.activeChannels;let Ci=!1,Zi=!1;for(const Vi of oi){if(Vi.channelId===N.fromChannelId){Ci=!0;const Ln=(Vi.toLocal||0)+(Vi.toRemote||0);Vi.toLocal=(Vi.toLocal||0)+z.amountIn,Vi.toRemote=(Vi.toRemote||0)-z.amountIn,Vi.balancedness=0===Ln?1:+(1-Math.abs((Vi.toLocal-Vi.toRemote)/Ln)).toFixed(3)}if(Vi.channelId===N.toChannelId){Zi=!0;const Ln=(Vi.toLocal||0)+(Vi.toRemote||0);Vi.toLocal=(Vi.toLocal||0)-z.amountOut,Vi.toRemote=(Vi.toRemote||0)+z.amountOut,Vi.balancedness=0===Ln?1:+(1-Math.abs((Vi.toLocal-Vi.toRemote)/Ln)).toFixed(3)}if(Zi&&Ci)break}return{...R,payments:S,lightningBalance:Ee,channelStatus:Mt,fees:Xt,activeChannels:oi}}),(0,ki.on)(we.pd,(R,{payload:N})=>{const S=[];return Ne.c3.forEach(z=>{const U=N&&N.length&&N.length>0?N.find(Ee=>Ee.pageId===z.pageId):null;if(U){const Ee=JSON.parse(JSON.stringify(U.tables));U.tables=[],z.tables.forEach(Mt=>{const Xt=Ee.find(oi=>oi.tableId===Mt.tableId)||null;U.tables.push(Xt||JSON.parse(JSON.stringify(Mt)))}),S.push(U)}else S.push(JSON.parse(JSON.stringify(z)))}),{...R,pageSettings:S}})),s0=(R,N)=>{if("payment-relayed"===R.type)if(N&&N.length>0)for(let S=0;S0)for(let U=0;U{N[U].channelId?.toString()===Ee.channelId&&(Ee.channelAlias=N[U].alias?N[U].alias:Ee.channelId,Ee.shortChannelId=N[U].shortChannelId?N[U].shortChannelId:"")}),R.outgoing?.forEach(Ee=>{N[U].channelId?.toString()===Ee.channelId&&(Ee.channelAlias=N[U].alias?N[U].alias:Ee.channelId,Ee.shortChannelId=N[U].shortChannelId?N[U].shortChannelId:"")}),U===N.length-1&&(R.incoming&&R.incoming.length&&R.incoming.length>0&&!R.incoming[0].channelAlias&&R.incoming?.forEach(Ee=>{Ee.channelAlias=Ee.channelId?.substring(0,17)+"...",Ee.shortChannelId=""}),R.outgoing&&R.outgoing.length&&R.outgoing.length>0&&!R.outgoing[0].channelAlias&&R.outgoing?.forEach(Ee=>{Ee.channelAlias=Ee.channelId?.substring(0,17)+"...",Ee.shortChannelId=""}));else R.incoming?.forEach(U=>{U.channelAlias=U.channelId?.substring(0,17)+"...",U.shortChannelId=""}),R.outgoing?.forEach(U=>{U.channelAlias=U.channelId?.substring(0,17)+"...",U.shortChannelId=""});const S=R.incoming?.reduce((U,Ee)=>U+Ee.amount,0)||0;R.amountIn=Math.round(S/1e3),R.fromChannelId=R.incoming&&R.incoming.length?R.incoming[0].channelId:"",R.fromChannelAlias=R.incoming&&R.incoming.length?R.incoming[0].channelAlias:"",R.fromShortChannelId=R.incoming&&R.incoming.length?R.incoming[0].shortChannelId:"";const z=R.outgoing?.reduce((U,Ee)=>U+Ee.amount,0)||0;R.amountOut=Math.round(z/1e3),R.toChannelId=R.outgoing&&R.outgoing.length?R.outgoing[0].channelId:"",R.toChannelAlias=R.outgoing&&R.outgoing.length?R.outgoing[0].channelAlias:"",R.toShortChannelId=R.outgoing&&R.outgoing.length?R.outgoing[0].shortChannelId:""}return R};let C1=!1;(0,e.X6Q)()&&(C1=!0);let w1=(()=>{var R;class N{}return(R=N).\u0275fac=function(z){return new(z||R)},R.\u0275mod=e.oAB({type:R,bootstrap:[Lh]}),R.\u0275inj=e.cJS({providers:[{provide:$o.TP,useClass:e0,multi:!0},Ga.m,Sl.D,t0.d,h2.W,ut.v,Qc],imports:[Xo,Tl.m,W2,qn.xu,t.t6,hc.forRoot({idle:Ne.k_-10,timeout:10,ping:12e3}),ki.Aw.forRoot({root:Ih,lnd:a0,cln:Xu,ecl:ic},{runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),Ua.sQ.forRoot([Ma.V,Dh.l,x1.J,Nn.o]),C1?co.FT.instrument():[]]}),N})();t.q6().bootstrapModule(w1).catch(R=>console.error(R))},7854:(We,q)=>{"use strict";function m(xe){return Object.keys(xe).map(fe=>xe[fe])}var xe;Object.defineProperty(q,"__esModule",{value:!0}),(xe=q.HashAlgorithms||(q.HashAlgorithms={})).SHA1="sha1",xe.SHA256="sha256",xe.SHA512="sha512";const t=m(q.HashAlgorithms);!function(xe){xe.ASCII="ascii",xe.BASE64="base64",xe.HEX="hex",xe.LATIN1="latin1",xe.UTF8="utf8"}(q.KeyEncodings||(q.KeyEncodings={}));const e=m(q.KeyEncodings);!function(xe){xe.HOTP="hotp",xe.TOTP="totp"}(q.Strategy||(q.Strategy={}));const _=m(q.Strategy),T=()=>{throw new Error("Please provide an options.createDigest implementation.")};function s(xe){return/^(\d+)$/.test(xe)}function y(xe,fe,Oe){return xe.length>=fe?xe:`${Array(fe+1).join(Oe)}${xe}`.slice(-1*fe)}function h(xe){const fe=`otpauth://${xe.type}/{labelPrefix}:{accountName}?secret={secret}{query}`,Oe=[];if(_.indexOf(xe.type)<0)throw new Error(`Expecting options.type to be one of ${_.join(", ")}. Received ${xe.type}.`);if("hotp"===xe.type){if(null==xe.counter||"number"!=typeof xe.counter)throw new Error('Expecting options.counter to be a number when options.type is "hotp".');Oe.push(`&counter=${xe.counter}`)}return"totp"===xe.type&&xe.step&&Oe.push(`&period=${xe.step}`),xe.digits&&Oe.push(`&digits=${xe.digits}`),xe.algorithm&&Oe.push(`&algorithm=${xe.algorithm.toUpperCase()}`),xe.issuer&&Oe.push(`&issuer=${encodeURIComponent(xe.issuer)}`),fe.replace("{labelPrefix}",encodeURIComponent(xe.issuer||xe.accountName)).replace("{accountName}",encodeURIComponent(xe.accountName)).replace("{secret}",xe.secret).replace("{query}",Oe.join(""))}class P{constructor(fe={}){this._defaultOptions=Object.freeze({...fe}),this._options=Object.freeze({})}create(fe={}){return new P(fe)}clone(fe={}){const Oe=this.create({...this._defaultOptions,...fe});return Oe.options=this._options,Oe}get options(){return Object.freeze({...this._defaultOptions,...this._options})}set options(fe){this._options=Object.freeze({...this._options,...fe})}allOptions(){return this.options}resetOptions(){this._options=Object.freeze({})}}function d(xe){if("function"!=typeof xe.createDigest)throw new Error("Expecting options.createDigest to be a function.");if("function"!=typeof xe.createHmacKey)throw new Error("Expecting options.createHmacKey to be a function.");if("number"!=typeof xe.digits)throw new Error("Expecting options.digits to be a number.");if(!xe.algorithm||t.indexOf(xe.algorithm)<0)throw new Error(`Expecting options.algorithm to be one of ${t.join(", ")}. Received ${xe.algorithm}.`);if(!xe.encoding||e.indexOf(xe.encoding)<0)throw new Error(`Expecting options.encoding to be one of ${e.join(", ")}. Received ${xe.encoding}.`)}const w=(xe,fe,Oe)=>Buffer.from(fe,Oe).toString("hex");function C(){return{algorithm:q.HashAlgorithms.SHA1,createHmacKey:w,createDigest:T,digits:6,encoding:q.KeyEncodings.ASCII}}function L(xe){const fe={...C(),...xe};return d(fe),Object.freeze(fe)}function D(xe){return y(xe.toString(16),16,"0")}function H(xe,fe){const Oe=Buffer.from(xe,"hex"),oe=15&Oe[Oe.length-1],De=((127&Oe[oe])<<24|(255&Oe[oe+1])<<16|(255&Oe[oe+2])<<8|255&Oe[oe+3])%Math.pow(10,fe);return y(String(De),fe,"0")}function Y(xe,fe,Oe){const oe=Oe.digest||function V(xe,fe,Oe){const oe=D(fe),Fe=Oe.createHmacKey(Oe.algorithm,xe,Oe.encoding);return Oe.createDigest(Oe.algorithm,Fe,oe)}(xe,fe,Oe);return H(oe,Oe.digits)}function j(xe,fe,Oe,oe){return!!s(xe)&&xe===Y(fe,Oe,oe)}function Q(xe,fe,Oe,oe,Fe){return h({algorithm:Fe.algorithm,digits:Fe.digits,type:q.Strategy.HOTP,accountName:xe,counter:oe,issuer:fe,secret:Oe})}class J extends P{create(fe={}){return new J(fe)}allOptions(){return L(this.options)}generate(fe,Oe){return Y(fe,Oe,this.allOptions())}check(fe,Oe,oe){return j(fe,Oe,oe,this.allOptions())}verify(fe){if("object"!=typeof fe)throw new Error("Expecting argument 0 of verify to be an object");return this.check(fe.token,fe.secret,fe.counter)}keyuri(fe,Oe,oe,Fe){return Q(fe,Oe,oe,Fe,this.allOptions())}}function ee(xe){if("number"==typeof xe)return[Math.abs(xe),Math.abs(xe)];if(Array.isArray(xe)){const[fe,Oe]=xe;if("number"==typeof fe&&"number"==typeof Oe)return[Math.abs(fe),Math.abs(Oe)]}throw new Error("Expecting options.window to be an number or [number, number].")}function me(xe){if(d(xe),ee(xe.window),"number"!=typeof xe.epoch)throw new Error("Expecting options.epoch to be a number.");if("number"!=typeof xe.step)throw new Error("Expecting options.step to be a number.")}const re=(xe,fe,Oe)=>{const oe=xe.length,Fe=Buffer.from(xe,fe).toString("hex");if(oe{switch(xe){case q.HashAlgorithms.SHA1:return re(fe,Oe,20);case q.HashAlgorithms.SHA256:return re(fe,Oe,32);case q.HashAlgorithms.SHA512:return re(fe,Oe,64);default:throw new Error(`Expecting algorithm to be one of ${t.join(", ")}. Received ${xe}.`)}};function se(){return{algorithm:q.HashAlgorithms.SHA1,createDigest:T,createHmacKey:ie,digits:6,encoding:q.KeyEncodings.ASCII,epoch:Date.now(),step:30,window:0}}function ce(xe){const fe={...se(),...xe};return me(fe),Object.freeze(fe)}function Ce(xe,fe){return Math.floor(xe/fe/1e3)}function M(xe,fe){return Y(xe,Ce(fe.epoch,fe.step),fe)}function i(xe,fe,Oe,oe){const Fe=[];if(0===oe)return Fe;for(let De=1;De<=oe;De++)Fe.push(xe+fe*De*Oe);return Fe}function a(xe,fe,Oe){const oe=ee(Oe),Fe=1e3*fe;return{current:xe,past:i(xe,-1,Fe,oe[0]),future:i(xe,1,Fe,oe[1])}}function f(xe,fe,Oe){return!!s(xe)&&xe===M(fe,Oe)}function l(xe,fe,Oe,oe){let Fe=null;return xe.some((De,he)=>!!f(fe,Oe,{...oe,epoch:De})&&(Fe=he+1,!0)),Fe}function v(xe,fe,Oe){if(f(xe,fe,Oe))return 0;const oe=a(Oe.epoch,Oe.step,Oe.window),Fe=l(oe.past,xe,fe,Oe);return null!==Fe?-1*Fe:l(oe.future,xe,fe,Oe)}function I(xe,fe){return Math.floor(xe/1e3)%fe}function k(xe,fe){return fe-I(xe,fe)}function x(xe,fe,Oe,oe){return h({algorithm:oe.algorithm,digits:oe.digits,step:oe.step,type:q.Strategy.TOTP,accountName:xe,issuer:fe,secret:Oe})}class n extends J{create(fe={}){return new n(fe)}allOptions(){return ce(this.options)}generate(fe){return M(fe,this.allOptions())}checkDelta(fe,Oe){return v(fe,Oe,this.allOptions())}check(fe,Oe){return"number"==typeof this.checkDelta(fe,Oe)}verify(fe){if("object"!=typeof fe)throw new Error("Expecting argument 0 of verify to be an object");return this.check(fe.token,fe.secret)}timeRemaining(){const fe=this.allOptions();return k(fe.epoch,fe.step)}timeUsed(){const fe=this.allOptions();return I(fe.epoch,fe.step)}keyuri(fe,Oe,oe){return x(fe,Oe,oe,this.allOptions())}}function g(xe){if(me(xe),"function"!=typeof xe.keyDecoder)throw new Error("Expecting options.keyDecoder to be a function.");if(xe.keyEncoder&&"function"!=typeof xe.keyEncoder)throw new Error("Expecting options.keyEncoder to be a function.")}function W(){return{algorithm:q.HashAlgorithms.SHA1,createDigest:T,createHmacKey:ie,digits:6,encoding:q.KeyEncodings.HEX,epoch:Date.now(),step:30,window:0}}function O(xe){const fe={...W(),...xe};return g(fe),Object.freeze(fe)}function G(xe,fe){return fe.keyEncoder(xe,fe.encoding)}function ge(xe,fe){return fe.keyDecoder(xe,fe.encoding)}function nt(xe,fe){return G(fe.createRandomBytes(xe,fe.encoding),fe)}function Ue(xe,fe){return M(ge(xe,fe),fe)}function at(xe,fe,Oe){return v(xe,ge(fe,Oe),Oe)}class ye extends n{create(fe={}){return new ye(fe)}allOptions(){return O(this.options)}generate(fe){return Ue(fe,this.allOptions())}checkDelta(fe,Oe){return at(fe,Oe,this.allOptions())}encode(fe){return G(fe,this.allOptions())}decode(fe){return ge(fe,this.allOptions())}generateSecret(fe=10){return nt(fe,this.allOptions())}}q.Authenticator=ye,q.HASH_ALGORITHMS=t,q.HOTP=J,q.KEY_ENCODINGS=e,q.OTP=P,q.STRATEGY=_,q.TOTP=n,q.authenticatorCheckWithWindow=at,q.authenticatorDecoder=ge,q.authenticatorDefaultOptions=W,q.authenticatorEncoder=G,q.authenticatorGenerateSecret=nt,q.authenticatorOptionValidator=g,q.authenticatorOptions=O,q.authenticatorToken=Ue,q.createDigestPlaceholder=T,q.hotpCheck=j,q.hotpCounter=D,q.hotpCreateHmacKey=w,q.hotpDefaultOptions=C,q.hotpDigestToToken=H,q.hotpKeyuri=Q,q.hotpOptions=L,q.hotpOptionsValidator=d,q.hotpToken=Y,q.isTokenValid=s,q.keyuri=h,q.objectValues=m,q.padStart=y,q.totpCheck=f,q.totpCheckByEpoch=l,q.totpCheckWithWindow=v,q.totpCounter=Ce,q.totpCreateHmacKey=ie,q.totpDefaultOptions=se,q.totpEpochAvailable=a,q.totpKeyuri=x,q.totpOptions=ce,q.totpOptionsValidator=me,q.totpPadSecret=re,q.totpTimeRemaining=k,q.totpTimeUsed=I,q.totpToken=M},6098:(We,q,m)=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});var e=function t(s){return s&&"object"==typeof s&&"default"in s?s.default:s}(m(1348));q.createDigest=(s,y,h)=>e.createHmac(s,Buffer.from(y,"hex")).update(Buffer.from(h,"hex")).digest().toString("hex"),q.createRandomBytes=(s,y)=>e.randomBytes(s).toString(y)},1415:(We,q,m)=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});var e=function t(s){return s&&"object"==typeof s&&"default"in s?s.default:s}(m(2167));q.keyDecoder=(s,y)=>e.decode(s).toString(y),q.keyEncoder=(s,y)=>e.encode(Buffer.from(s,y).toString("ascii")).toString().replace(/=/g,"")},842:(We,q,m)=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});var t=m(6098),e=m(1415),_=m(7854);const T=new _.HOTP({createDigest:t.createDigest}),s=new _.TOTP({createDigest:t.createDigest}),y=new _.Authenticator({createDigest:t.createDigest,createRandomBytes:t.createRandomBytes,keyDecoder:e.keyDecoder,keyEncoder:e.keyEncoder});q.authenticator=y,q.hotp=T,q.totp=s},7977:(We,q,m)=>{"use strict";const t=q;t.bignum=m(3854),t.define=m(9516).define,t.base=m(7813),t.constants=m(5459),t.decoders=m(196),t.encoders=m(1131)},9516:(We,q,m)=>{"use strict";const t=m(1131),e=m(196),_=m(3894);function s(y,h){this.name=y,this.body=h,this.decoders={},this.encoders={}}q.define=function(h,P){return new s(h,P)},s.prototype._createNamed=function(h){const P=this.name;function d(w){this._initNamed(w,P)}return _(d,h),d.prototype._initNamed=function(C,L){h.call(this,C,L)},new d(this)},s.prototype._getDecoder=function(h){return this.decoders.hasOwnProperty(h=h||"der")||(this.decoders[h]=this._createNamed(e[h])),this.decoders[h]},s.prototype.decode=function(h,P,d){return this._getDecoder(P).decode(h,d)},s.prototype._getEncoder=function(h){return this.encoders.hasOwnProperty(h=h||"der")||(this.encoders[h]=this._createNamed(t[h])),this.encoders[h]},s.prototype.encode=function(h,P,d){return this._getEncoder(P).encode(h,d)}},2769:(We,q,m)=>{"use strict";const t=m(3894),e=m(4919).b,_=m(2038).Buffer;function T(y,h){e.call(this,h),_.isBuffer(y)?(this.base=y,this.offset=0,this.length=y.length):this.error("Input not Buffer")}function s(y,h){if(Array.isArray(y))this.length=0,this.value=y.map(function(P){return s.isEncoderBuffer(P)||(P=new s(P,h)),this.length+=P.length,P},this);else if("number"==typeof y){if(!(0<=y&&y<=255))return h.error("non-byte EncoderBuffer value");this.value=y,this.length=1}else if("string"==typeof y)this.value=y,this.length=_.byteLength(y);else{if(!_.isBuffer(y))return h.error("Unsupported type: "+typeof y);this.value=y,this.length=y.length}}t(T,e),q.C=T,T.isDecoderBuffer=function(h){return h instanceof T||"object"==typeof h&&_.isBuffer(h.base)&&"DecoderBuffer"===h.constructor.name&&"number"==typeof h.offset&&"number"==typeof h.length&&"function"==typeof h.save&&"function"==typeof h.restore&&"function"==typeof h.isEmpty&&"function"==typeof h.readUInt8&&"function"==typeof h.skip&&"function"==typeof h.raw},T.prototype.save=function(){return{offset:this.offset,reporter:e.prototype.save.call(this)}},T.prototype.restore=function(h){const P=new T(this.base);return P.offset=h.offset,P.length=this.offset,this.offset=h.offset,e.prototype.restore.call(this,h.reporter),P},T.prototype.isEmpty=function(){return this.offset===this.length},T.prototype.readUInt8=function(h){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(h||"DecoderBuffer overrun")},T.prototype.skip=function(h,P){if(!(this.offset+h<=this.length))return this.error(P||"DecoderBuffer overrun");const d=new T(this.base);return d._reporterState=this._reporterState,d.offset=this.offset,d.length=this.offset+h,this.offset+=h,d},T.prototype.raw=function(h){return this.base.slice(h?h.offset:this.offset,this.length)},q.R=s,s.isEncoderBuffer=function(h){return h instanceof s||"object"==typeof h&&"EncoderBuffer"===h.constructor.name&&"number"==typeof h.length&&"function"==typeof h.join},s.prototype.join=function(h,P){return h||(h=_.alloc(this.length)),P||(P=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(d){d.join(h,P),P+=d.length}):("number"==typeof this.value?h[P]=this.value:"string"==typeof this.value?h.write(this.value,P):_.isBuffer(this.value)&&this.value.copy(h,P),P+=this.length)),h}},7813:(We,q,m)=>{"use strict";const t=q;t.Reporter=m(4919).b,t.DecoderBuffer=m(2769).C,t.EncoderBuffer=m(2769).R,t.Node=m(1430)},1430:(We,q,m)=>{"use strict";const t=m(4919).b,e=m(2769).R,_=m(2769).C,T=m(2391),s=["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"],y=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function P(w,C,L){const D={};this._baseState=D,D.name=L,D.enc=w,D.parent=C||null,D.children=null,D.tag=null,D.args=null,D.reverseArgs=null,D.choice=null,D.optional=!1,D.any=!1,D.obj=!1,D.use=null,D.useDecoder=null,D.key=null,D.default=null,D.explicit=null,D.implicit=null,D.contains=null,D.parent||(D.children=[],this._wrap())}We.exports=P;const d=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];P.prototype.clone=function(){const C=this._baseState,L={};d.forEach(function(H){L[H]=C[H]});const D=new this.constructor(L.parent);return D._baseState=L,D},P.prototype._wrap=function(){const C=this._baseState;y.forEach(function(L){this[L]=function(){const H=new this.constructor(this);return C.children.push(H),H[L].apply(H,arguments)}},this)},P.prototype._init=function(C){const L=this._baseState;T(null===L.parent),C.call(this),L.children=L.children.filter(function(D){return D._baseState.parent===this},this),T.equal(L.children.length,1,"Root node can have only one child")},P.prototype._useArgs=function(C){const L=this._baseState,D=C.filter(function(H){return H instanceof this.constructor},this);C=C.filter(function(H){return!(H instanceof this.constructor)},this),0!==D.length&&(T(null===L.children),L.children=D,D.forEach(function(H){H._baseState.parent=this},this)),0!==C.length&&(T(null===L.args),L.args=C,L.reverseArgs=C.map(function(H){if("object"!=typeof H||H.constructor!==Object)return H;const V={};return Object.keys(H).forEach(function(Y){Y==(0|Y)&&(Y|=0),V[H[Y]]=Y}),V}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(w){P.prototype[w]=function(){throw new Error(w+" not implemented for encoding: "+this._baseState.enc)}}),s.forEach(function(w){P.prototype[w]=function(){const L=this._baseState,D=Array.prototype.slice.call(arguments);return T(null===L.tag),L.tag=w,this._useArgs(D),this}}),P.prototype.use=function(C){T(C);const L=this._baseState;return T(null===L.use),L.use=C,this},P.prototype.optional=function(){return this._baseState.optional=!0,this},P.prototype.def=function(C){const L=this._baseState;return T(null===L.default),L.default=C,L.optional=!0,this},P.prototype.explicit=function(C){const L=this._baseState;return T(null===L.explicit&&null===L.implicit),L.explicit=C,this},P.prototype.implicit=function(C){const L=this._baseState;return T(null===L.explicit&&null===L.implicit),L.implicit=C,this},P.prototype.obj=function(){const C=this._baseState,L=Array.prototype.slice.call(arguments);return C.obj=!0,0!==L.length&&this._useArgs(L),this},P.prototype.key=function(C){const L=this._baseState;return T(null===L.key),L.key=C,this},P.prototype.any=function(){return this._baseState.any=!0,this},P.prototype.choice=function(C){const L=this._baseState;return T(null===L.choice),L.choice=C,this._useArgs(Object.keys(C).map(function(D){return C[D]})),this},P.prototype.contains=function(C){const L=this._baseState;return T(null===L.use),L.contains=C,this},P.prototype._decode=function(C,L){const D=this._baseState;if(null===D.parent)return C.wrapResult(D.children[0]._decode(C,L));let j,H=D.default,V=!0,Y=null;if(null!==D.key&&(Y=C.enterKey(D.key)),D.optional){let Q=null;if(null!==D.explicit?Q=D.explicit:null!==D.implicit?Q=D.implicit:null!==D.tag&&(Q=D.tag),null!==Q||D.any){if(V=this._peekTag(C,Q,D.any),C.isError(V))return V}else{const J=C.save();try{null===D.choice?this._decodeGeneric(D.tag,C,L):this._decodeChoice(C,L),V=!0}catch{V=!1}C.restore(J)}}if(D.obj&&V&&(j=C.enterObject()),V){if(null!==D.explicit){const J=this._decodeTag(C,D.explicit);if(C.isError(J))return J;C=J}const Q=C.offset;if(null===D.use&&null===D.choice){let J;D.any&&(J=C.save());const ee=this._decodeTag(C,null!==D.implicit?D.implicit:D.tag,D.any);if(C.isError(ee))return ee;D.any?H=C.raw(J):C=ee}if(L&&L.track&&null!==D.tag&&L.track(C.path(),Q,C.length,"tagged"),L&&L.track&&null!==D.tag&&L.track(C.path(),C.offset,C.length,"content"),D.any||(H=null===D.choice?this._decodeGeneric(D.tag,C,L):this._decodeChoice(C,L)),C.isError(H))return H;if(!D.any&&null===D.choice&&null!==D.children&&D.children.forEach(function(ee){ee._decode(C,L)}),D.contains&&("octstr"===D.tag||"bitstr"===D.tag)){const J=new _(H);H=this._getUse(D.contains,C._reporterState.obj)._decode(J,L)}}return D.obj&&V&&(H=C.leaveObject(j)),null===D.key||null===H&&!0!==V?null!==Y&&C.exitKey(Y):C.leaveKey(Y,D.key,H),H},P.prototype._decodeGeneric=function(C,L,D){const H=this._baseState;return"seq"===C||"set"===C?null:"seqof"===C||"setof"===C?this._decodeList(L,C,H.args[0],D):/str$/.test(C)?this._decodeStr(L,C,D):"objid"===C&&H.args?this._decodeObjid(L,H.args[0],H.args[1],D):"objid"===C?this._decodeObjid(L,null,null,D):"gentime"===C||"utctime"===C?this._decodeTime(L,C,D):"null_"===C?this._decodeNull(L,D):"bool"===C?this._decodeBool(L,D):"objDesc"===C?this._decodeStr(L,C,D):"int"===C||"enum"===C?this._decodeInt(L,H.args&&H.args[0],D):null!==H.use?this._getUse(H.use,L._reporterState.obj)._decode(L,D):L.error("unknown tag: "+C)},P.prototype._getUse=function(C,L){const D=this._baseState;return D.useDecoder=this._use(C,L),T(null===D.useDecoder._baseState.parent),D.useDecoder=D.useDecoder._baseState.children[0],D.implicit!==D.useDecoder._baseState.implicit&&(D.useDecoder=D.useDecoder.clone(),D.useDecoder._baseState.implicit=D.implicit),D.useDecoder},P.prototype._decodeChoice=function(C,L){const D=this._baseState;let H=null,V=!1;return Object.keys(D.choice).some(function(Y){const j=C.save(),Q=D.choice[Y];try{const J=Q._decode(C,L);if(C.isError(J))return!1;H={type:Y,value:J},V=!0}catch{return C.restore(j),!1}return!0},this),V?H:C.error("Choice not matched")},P.prototype._createEncoderBuffer=function(C){return new e(C,this.reporter)},P.prototype._encode=function(C,L,D){const H=this._baseState;if(null!==H.default&&H.default===C)return;const V=this._encodeValue(C,L,D);return void 0===V||this._skipDefault(V,L,D)?void 0:V},P.prototype._encodeValue=function(C,L,D){const H=this._baseState;if(null===H.parent)return H.children[0]._encode(C,L||new t);let V=null;if(this.reporter=L,H.optional&&void 0===C){if(null===H.default)return;C=H.default}let Y=null,j=!1;if(H.any)V=this._createEncoderBuffer(C);else if(H.choice)V=this._encodeChoice(C,L);else if(H.contains)Y=this._getUse(H.contains,D)._encode(C,L),j=!0;else if(H.children)Y=H.children.map(function(Q){if("null_"===Q._baseState.tag)return Q._encode(null,L,C);if(null===Q._baseState.key)return L.error("Child should have a key");const J=L.enterKey(Q._baseState.key);if("object"!=typeof C)return L.error("Child expected, but input is not object");const ee=Q._encode(C[Q._baseState.key],L,C);return L.leaveKey(J),ee},this).filter(function(Q){return Q}),Y=this._createEncoderBuffer(Y);else if("seqof"===H.tag||"setof"===H.tag){if(!H.args||1!==H.args.length)return L.error("Too many args for : "+H.tag);if(!Array.isArray(C))return L.error("seqof/setof, but data is not Array");const Q=this.clone();Q._baseState.implicit=null,Y=this._createEncoderBuffer(C.map(function(J){return this._getUse(this._baseState.args[0],C)._encode(J,L)},Q))}else null!==H.use?V=this._getUse(H.use,D)._encode(C,L):(Y=this._encodePrimitive(H.tag,C),j=!0);if(!H.any&&null===H.choice){const Q=null!==H.implicit?H.implicit:H.tag,J=null===H.implicit?"universal":"context";null===Q?null===H.use&&L.error("Tag could be omitted only for .use()"):null===H.use&&(V=this._encodeComposite(Q,j,J,Y))}return null!==H.explicit&&(V=this._encodeComposite(H.explicit,!1,"context",V)),V},P.prototype._encodeChoice=function(C,L){const D=this._baseState,H=D.choice[C.type];return H||T(!1,C.type+" not found in "+JSON.stringify(Object.keys(D.choice))),H._encode(C.value,L)},P.prototype._encodePrimitive=function(C,L){const D=this._baseState;if(/str$/.test(C))return this._encodeStr(L,C);if("objid"===C&&D.args)return this._encodeObjid(L,D.reverseArgs[0],D.args[1]);if("objid"===C)return this._encodeObjid(L,null,null);if("gentime"===C||"utctime"===C)return this._encodeTime(L,C);if("null_"===C)return this._encodeNull();if("int"===C||"enum"===C)return this._encodeInt(L,D.args&&D.reverseArgs[0]);if("bool"===C)return this._encodeBool(L);if("objDesc"===C)return this._encodeStr(L,C);throw new Error("Unsupported tag: "+C)},P.prototype._isNumstr=function(C){return/^[0-9 ]*$/.test(C)},P.prototype._isPrintstr=function(C){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(C)}},4919:(We,q,m)=>{"use strict";const t=m(3894);function e(T){this._reporterState={obj:null,path:[],options:T||{},errors:[]}}function _(T,s){this.path=T,this.rethrow(s)}q.b=e,e.prototype.isError=function(s){return s instanceof _},e.prototype.save=function(){const s=this._reporterState;return{obj:s.obj,pathLen:s.path.length}},e.prototype.restore=function(s){const y=this._reporterState;y.obj=s.obj,y.path=y.path.slice(0,s.pathLen)},e.prototype.enterKey=function(s){return this._reporterState.path.push(s)},e.prototype.exitKey=function(s){const y=this._reporterState;y.path=y.path.slice(0,s-1)},e.prototype.leaveKey=function(s,y,h){const P=this._reporterState;this.exitKey(s),null!==P.obj&&(P.obj[y]=h)},e.prototype.path=function(){return this._reporterState.path.join("/")},e.prototype.enterObject=function(){const s=this._reporterState,y=s.obj;return s.obj={},y},e.prototype.leaveObject=function(s){const y=this._reporterState,h=y.obj;return y.obj=s,h},e.prototype.error=function(s){let y;const h=this._reporterState,P=s instanceof _;if(y=P?s:new _(h.path.map(function(d){return"["+JSON.stringify(d)+"]"}).join(""),s.message||s,s.stack),!h.options.partial)throw y;return P||h.errors.push(y),y},e.prototype.wrapResult=function(s){const y=this._reporterState;return y.options.partial?{result:this.isError(s)?null:s,errors:y.errors}:s},t(_,Error),_.prototype.rethrow=function(s){if(this.message=s+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,_),!this.stack)try{throw new Error(this.message)}catch(y){this.stack=y.stack}return this}},5496:(We,q)=>{"use strict";function m(t){const e={};return Object.keys(t).forEach(function(_){(0|_)==_&&(_|=0),e[t[_]]=_}),e}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:(We,q,m)=>{"use strict";const t=q;t._reverse=function(_){const T={};return Object.keys(_).forEach(function(s){(0|s)==s&&(s|=0),T[_[s]]=s}),T},t.der=m(5496)},7127:(We,q,m)=>{"use strict";const t=m(3894),e=m(3854),_=m(2769).C,T=m(1430),s=m(5496);function y(w){this.enc="der",this.name=w.name,this.entity=w,this.tree=new h,this.tree._init(w.body)}function h(w){T.call(this,"der",w)}function P(w,C){let L=w.readUInt8(C);if(w.isError(L))return L;const D=s.tagClass[L>>6],H=0==(32&L);if(31==(31&L)){let Y=L;for(L=0;128==(128&Y);){if(Y=w.readUInt8(C),w.isError(Y))return Y;L<<=7,L|=127&Y}}else L&=31;return{cls:D,primitive:H,tag:L,tagStr:s.tag[L]}}function d(w,C,L){let D=w.readUInt8(L);if(w.isError(D))return D;if(!C&&128===D)return null;if(!(128&D))return D;const H=127&D;if(H>4)return w.error("length octect is too long");D=0;for(let V=0;V{"use strict";const t=q;t.der=m(7127),t.pem=m(9617)},9617:(We,q,m)=>{"use strict";const t=m(3894),e=m(2038).Buffer,_=m(7127);function T(s){_.call(this,s),this.enc="pem"}t(T,_),We.exports=T,T.prototype.decode=function(y,h){const P=y.toString().split(/[\r\n]+/g),d=h.label.toUpperCase(),w=/^-----(BEGIN|END) ([^-]+)-----$/;let C=-1,L=-1;for(let V=0;V{"use strict";const t=m(3894),e=m(2038).Buffer,_=m(1430),T=m(5496);function s(d){this.enc="der",this.name=d.name,this.entity=d,this.tree=new y,this.tree._init(d.body)}function y(d){_.call(this,"der",d)}function h(d){return d<10?"0"+d:d}We.exports=s,s.prototype.encode=function(w,C){return this.tree._encode(w,C).join()},t(y,_),y.prototype._encodeComposite=function(w,C,L,D){const H=function P(d,w,C,L){let D;if("seqof"===d?d="seq":"setof"===d&&(d="set"),T.tagByName.hasOwnProperty(d))D=T.tagByName[d];else{if("number"!=typeof d||(0|d)!==d)return L.error("Unknown tag: "+d);D=d}return D>=31?L.error("Multi-octet tag encoding unsupported"):(w||(D|=32),D|=T.tagClassByName[C||"universal"]<<6,D)}(w,C,L,this.reporter);if(D.length<128){const j=e.alloc(2);return j[0]=H,j[1]=D.length,this._createEncoderBuffer([j,D])}let V=1;for(let j=D.length;j>=256;j>>=8)V++;const Y=e.alloc(2+V);Y[0]=H,Y[1]=128|V;for(let j=1+V,Q=D.length;Q>0;j--,Q>>=8)Y[j]=255&Q;return this._createEncoderBuffer([Y,D])},y.prototype._encodeStr=function(w,C){if("bitstr"===C)return this._createEncoderBuffer([0|w.unused,w.data]);if("bmpstr"===C){const L=e.alloc(2*w.length);for(let D=0;D=40)return this.reporter.error("Second objid identifier OOB");w.splice(0,2,40*w[0]+w[1])}let D=0;for(let Y=0;Y=128;j>>=7)D++}const H=e.alloc(D);let V=H.length-1;for(let Y=w.length-1;Y>=0;Y--){let j=w[Y];for(H[V--]=127&j;(j>>=7)>0;)H[V--]=128|127&j}return this._createEncoderBuffer(H)},y.prototype._encodeTime=function(w,C){let L;const D=new Date(w);return"gentime"===C?L=[h(D.getUTCFullYear()),h(D.getUTCMonth()+1),h(D.getUTCDate()),h(D.getUTCHours()),h(D.getUTCMinutes()),h(D.getUTCSeconds()),"Z"].join(""):"utctime"===C?L=[h(D.getUTCFullYear()%100),h(D.getUTCMonth()+1),h(D.getUTCDate()),h(D.getUTCHours()),h(D.getUTCMinutes()),h(D.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+C+" time is not supported yet"),this._encodeStr(L,"octstr")},y.prototype._encodeNull=function(){return this._createEncoderBuffer("")},y.prototype._encodeInt=function(w,C){if("string"==typeof w){if(!C)return this.reporter.error("String int or enum given, but no values map");if(!C.hasOwnProperty(w))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(w));w=C[w]}if("number"!=typeof w&&!e.isBuffer(w)){const H=w.toArray();!w.sign&&128&H[0]&&H.unshift(0),w=e.from(H)}if(e.isBuffer(w)){let H=w.length;0===w.length&&H++;const V=e.alloc(H);return w.copy(V),0===w.length&&(V[0]=0),this._createEncoderBuffer(V)}if(w<128)return this._createEncoderBuffer(w);if(w<256)return this._createEncoderBuffer([0,w]);let L=1;for(let H=w;H>=256;H>>=8)L++;const D=new Array(L);for(let H=D.length-1;H>=0;H--)D[H]=255&w,w>>=8;return 128&D[0]&&D.unshift(0),this._createEncoderBuffer(e.from(D))},y.prototype._encodeBool=function(w){return this._createEncoderBuffer(w?255:0)},y.prototype._use=function(w,C){return"function"==typeof w&&(w=w(C)),w._getEncoder("der").tree},y.prototype._skipDefault=function(w,C,L){const D=this._baseState;let H;if(null===D.default)return!1;const V=w.join();if(void 0===D.defaultBuffer&&(D.defaultBuffer=this._encodeValue(D.default,C,L).join()),V.length!==D.defaultBuffer.length)return!1;for(H=0;H{"use strict";const t=q;t.der=m(6374),t.pem=m(3530)},3530:(We,q,m)=>{"use strict";const t=m(3894),e=m(6374);function _(T){e.call(this,T),this.enc="pem"}t(_,e),We.exports=_,_.prototype.encode=function(s,y){const P=e.prototype.encode.call(this,s).toString("base64"),d=["-----BEGIN "+y.label+"-----"];for(let w=0;w=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function P(M,i,a){var f=h(M,a);return a-1>=i&&(f|=h(M,a-1)<<4),f}function d(M,i,a,f){for(var l=0,v=Math.min(M.length,a),I=i;I=49?k-49+10:k>=17?k-17+10:k}return l}s.isBN=function(i){return i instanceof s||null!==i&&"object"==typeof i&&i.constructor.wordSize===s.wordSize&&Array.isArray(i.words)},s.max=function(i,a){return i.cmp(a)>0?i:a},s.min=function(i,a){return i.cmp(a)<0?i:a},s.prototype._init=function(i,a,f){if("number"==typeof i)return this._initNumber(i,a,f);if("object"==typeof i)return this._initArray(i,a,f);"hex"===a&&(a=16),_(a===(0|a)&&a>=2&&a<=36);var l=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(l++,this.negative=1),l=0;l-=3)this.words[v]|=(I=i[l]|i[l-1]<<8|i[l-2]<<16)<>>26-k&67108863,(k+=24)>=26&&(k-=26,v++);else if("le"===f)for(l=0,v=0;l>>26-k&67108863,(k+=24)>=26&&(k-=26,v++);return this.strip()},s.prototype._parseHex=function(i,a,f){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var l=0;l=a;l-=2)k=P(i,a,l)<=18?(v-=18,this.words[I+=1]|=k>>>26):v+=8;else for(l=(i.length-a)%2==0?a+1:a;l=18?(v-=18,this.words[I+=1]|=k>>>26):v+=8;this.strip()},s.prototype._parseBase=function(i,a,f){this.words=[0],this.length=1;for(var l=0,v=1;v<=67108863;v*=a)l++;l--,v=v/a|0;for(var I=i.length-f,k=I%l,x=Math.min(I,I-k)+f,n=0,g=f;g1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var w=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[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],L=[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 H(M,i,a){a.negative=i.negative^M.negative;var f=M.length+i.length|0;a.length=f,f=f-1|0;var l=0|M.words[0],v=0|i.words[0],I=l*v,x=I/67108864|0;a.words[0]=67108863&I;for(var n=1;n>>26,W=67108863&x,O=Math.min(n,i.length-1),G=Math.max(0,n-M.length+1);G<=O;G++)g+=(I=(l=0|M.words[n-G|0])*(v=0|i.words[G])+W)/67108864|0,W=67108863&I;a.words[n]=0|W,x=0|g}return 0!==x?a.words[n]=0|x:a.length--,a.strip()}s.prototype.toString=function(i,a){var f;if(a=0|a||1,16===(i=i||10)||"hex"===i){f="";for(var l=0,v=0,I=0;I>>24-l&16777215)||I!==this.length-1?w[6-x.length]+x+f:x+f,(l+=2)>=26&&(l-=26,I--)}for(0!==v&&(f=v.toString(16)+f);f.length%a!=0;)f="0"+f;return 0!==this.negative&&(f="-"+f),f}if(i===(0|i)&&i>=2&&i<=36){var n=C[i],g=L[i];f="";var W=this.clone();for(W.negative=0;!W.isZero();){var O=W.modn(g).toString(i);f=(W=W.idivn(g)).isZero()?O+f:w[n-O.length]+O+f}for(this.isZero()&&(f="0"+f);f.length%a!=0;)f="0"+f;return 0!==this.negative&&(f="-"+f),f}_(!1,"Base should be between 2 and 36")},s.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&&_(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(i,a){return _(typeof y<"u"),this.toArrayLike(y,i,a)},s.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},s.prototype.toArrayLike=function(i,a,f){var l=this.byteLength(),v=f||Math.max(1,l);_(l<=v,"byte array longer than desired length"),_(v>0,"Requested array length <= 0"),this.strip();var x,n,I="le"===a,k=new i(v),g=this.clone();if(I){for(n=0;!g.isZero();n++)x=g.andln(255),g.iushrn(8),k[n]=x;for(;n=4096&&(f+=13,a>>>=13),a>=64&&(f+=7,a>>>=7),a>=8&&(f+=4,a>>>=4),a>=2&&(f+=2,a>>>=2),f+a},s.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,f=0;return 8191&a||(f+=13,a>>>=13),127&a||(f+=7,a>>>=7),15&a||(f+=4,a>>>=4),3&a||(f+=2,a>>>=2),1&a||f++,f},s.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},s.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},s.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var f=0;fi.length?this.clone().iand(i):i.clone().iand(this)},s.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},s.prototype.iuxor=function(i){var a,f;this.length>i.length?(a=this,f=i):(a=i,f=this);for(var l=0;li.length?this.clone().ixor(i):i.clone().ixor(this)},s.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},s.prototype.inotn=function(i){_("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),f=i%26;this._expand(a),f>0&&a--;for(var l=0;l0&&(this.words[l]=~this.words[l]&67108863>>26-f),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,a){_("number"==typeof i&&i>=0);var f=i/26|0,l=i%26;return this._expand(f+1),this.words[f]=a?this.words[f]|1<i.length?(f=this,l=i):(f=i,l=this);for(var v=0,I=0;I>>26;for(;0!==v&&I>>26;if(this.length=f.length,0!==v)this.words[this.length]=v,this.length++;else if(f!==this)for(;Ii.length?this.clone().iadd(i):i.clone().iadd(this)},s.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 l,v,f=this.cmp(i);if(0===f)return this.negative=0,this.length=1,this.words[0]=0,this;f>0?(l=this,v=i):(l=i,v=this);for(var I=0,k=0;k>26,this.words[k]=67108863&a;for(;0!==I&&k>26,this.words[k]=67108863&a;if(0===I&&k>>13,ge=0|l[1],nt=8191&ge,Ue=ge>>>13,at=0|l[2],ye=8191&at,xe=at>>>13,fe=0|l[3],Oe=8191&fe,oe=fe>>>13,Fe=0|l[4],De=8191&Fe,he=Fe>>>13,Me=0|l[5],pe=8191&Me,Ve=Me>>>13,Qe=0|l[6],Pe=8191&Qe,de=Qe>>>13,rt=0|l[7],Ke=8191&rt,lt=rt>>>13,Ut=0|l[8],ht=8191&Ut,Ge=Ut>>>13,yt=0|l[9],be=8191&yt,qe=yt>>>13,Ie=0|v[0],X=8191&Ie,mt=Ie>>>13,Tt=0|v[1],it=8191&Tt,je=Tt>>>13,zt=0|v[2],xt=8191&zt,Nt=zt>>>13,Gt=0|v[3],ke=8191&Gt,$=Gt>>>13,ue=0|v[4],Le=8191&ue,Je=ue>>>13,$t=0|v[5],Vt=8191&$t,ii=$t>>>13,pt=0|v[6],ot=8191&pt,ft=pt>>>13,St=0|v[7],gt=8191&St,$e=St>>>13,_t=0|v[8],vt=8191&_t,He=_t>>>13,Et=0|v[9],At=8191&Et,Qt=Et>>>13;f.negative=i.negative^a.negative,f.length=19;var zi=(k+(x=Math.imul(O,X))|0)+((8191&(n=(n=Math.imul(O,mt))+Math.imul(G,X)|0))<<13)|0;k=((g=Math.imul(G,mt))+(n>>>13)|0)+(zi>>>26)|0,zi&=67108863,x=Math.imul(nt,X),n=(n=Math.imul(nt,mt))+Math.imul(Ue,X)|0,g=Math.imul(Ue,mt);var Ni=(k+(x=x+Math.imul(O,it)|0)|0)+((8191&(n=(n=n+Math.imul(O,je)|0)+Math.imul(G,it)|0))<<13)|0;k=((g=g+Math.imul(G,je)|0)+(n>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(ye,X),n=(n=Math.imul(ye,mt))+Math.imul(xe,X)|0,g=Math.imul(xe,mt),x=x+Math.imul(nt,it)|0,n=(n=n+Math.imul(nt,je)|0)+Math.imul(Ue,it)|0,g=g+Math.imul(Ue,je)|0;var Mi=(k+(x=x+Math.imul(O,xt)|0)|0)+((8191&(n=(n=n+Math.imul(O,Nt)|0)+Math.imul(G,xt)|0))<<13)|0;k=((g=g+Math.imul(G,Nt)|0)+(n>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,x=Math.imul(Oe,X),n=(n=Math.imul(Oe,mt))+Math.imul(oe,X)|0,g=Math.imul(oe,mt),x=x+Math.imul(ye,it)|0,n=(n=n+Math.imul(ye,je)|0)+Math.imul(xe,it)|0,g=g+Math.imul(xe,je)|0,x=x+Math.imul(nt,xt)|0,n=(n=n+Math.imul(nt,Nt)|0)+Math.imul(Ue,xt)|0,g=g+Math.imul(Ue,Nt)|0;var Gi=(k+(x=x+Math.imul(O,ke)|0)|0)+((8191&(n=(n=n+Math.imul(O,$)|0)+Math.imul(G,ke)|0))<<13)|0;k=((g=g+Math.imul(G,$)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,x=Math.imul(De,X),n=(n=Math.imul(De,mt))+Math.imul(he,X)|0,g=Math.imul(he,mt),x=x+Math.imul(Oe,it)|0,n=(n=n+Math.imul(Oe,je)|0)+Math.imul(oe,it)|0,g=g+Math.imul(oe,je)|0,x=x+Math.imul(ye,xt)|0,n=(n=n+Math.imul(ye,Nt)|0)+Math.imul(xe,xt)|0,g=g+Math.imul(xe,Nt)|0,x=x+Math.imul(nt,ke)|0,n=(n=n+Math.imul(nt,$)|0)+Math.imul(Ue,ke)|0,g=g+Math.imul(Ue,$)|0;var Xe=(k+(x=x+Math.imul(O,Le)|0)|0)+((8191&(n=(n=n+Math.imul(O,Je)|0)+Math.imul(G,Le)|0))<<13)|0;k=((g=g+Math.imul(G,Je)|0)+(n>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,x=Math.imul(pe,X),n=(n=Math.imul(pe,mt))+Math.imul(Ve,X)|0,g=Math.imul(Ve,mt),x=x+Math.imul(De,it)|0,n=(n=n+Math.imul(De,je)|0)+Math.imul(he,it)|0,g=g+Math.imul(he,je)|0,x=x+Math.imul(Oe,xt)|0,n=(n=n+Math.imul(Oe,Nt)|0)+Math.imul(oe,xt)|0,g=g+Math.imul(oe,Nt)|0,x=x+Math.imul(ye,ke)|0,n=(n=n+Math.imul(ye,$)|0)+Math.imul(xe,ke)|0,g=g+Math.imul(xe,$)|0,x=x+Math.imul(nt,Le)|0,n=(n=n+Math.imul(nt,Je)|0)+Math.imul(Ue,Le)|0,g=g+Math.imul(Ue,Je)|0;var It=(k+(x=x+Math.imul(O,Vt)|0)|0)+((8191&(n=(n=n+Math.imul(O,ii)|0)+Math.imul(G,Vt)|0))<<13)|0;k=((g=g+Math.imul(G,ii)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,x=Math.imul(Pe,X),n=(n=Math.imul(Pe,mt))+Math.imul(de,X)|0,g=Math.imul(de,mt),x=x+Math.imul(pe,it)|0,n=(n=n+Math.imul(pe,je)|0)+Math.imul(Ve,it)|0,g=g+Math.imul(Ve,je)|0,x=x+Math.imul(De,xt)|0,n=(n=n+Math.imul(De,Nt)|0)+Math.imul(he,xt)|0,g=g+Math.imul(he,Nt)|0,x=x+Math.imul(Oe,ke)|0,n=(n=n+Math.imul(Oe,$)|0)+Math.imul(oe,ke)|0,g=g+Math.imul(oe,$)|0,x=x+Math.imul(ye,Le)|0,n=(n=n+Math.imul(ye,Je)|0)+Math.imul(xe,Le)|0,g=g+Math.imul(xe,Je)|0,x=x+Math.imul(nt,Vt)|0,n=(n=n+Math.imul(nt,ii)|0)+Math.imul(Ue,Vt)|0,g=g+Math.imul(Ue,ii)|0;var Se=(k+(x=x+Math.imul(O,ot)|0)|0)+((8191&(n=(n=n+Math.imul(O,ft)|0)+Math.imul(G,ot)|0))<<13)|0;k=((g=g+Math.imul(G,ft)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,x=Math.imul(Ke,X),n=(n=Math.imul(Ke,mt))+Math.imul(lt,X)|0,g=Math.imul(lt,mt),x=x+Math.imul(Pe,it)|0,n=(n=n+Math.imul(Pe,je)|0)+Math.imul(de,it)|0,g=g+Math.imul(de,je)|0,x=x+Math.imul(pe,xt)|0,n=(n=n+Math.imul(pe,Nt)|0)+Math.imul(Ve,xt)|0,g=g+Math.imul(Ve,Nt)|0,x=x+Math.imul(De,ke)|0,n=(n=n+Math.imul(De,$)|0)+Math.imul(he,ke)|0,g=g+Math.imul(he,$)|0,x=x+Math.imul(Oe,Le)|0,n=(n=n+Math.imul(Oe,Je)|0)+Math.imul(oe,Le)|0,g=g+Math.imul(oe,Je)|0,x=x+Math.imul(ye,Vt)|0,n=(n=n+Math.imul(ye,ii)|0)+Math.imul(xe,Vt)|0,g=g+Math.imul(xe,ii)|0,x=x+Math.imul(nt,ot)|0,n=(n=n+Math.imul(nt,ft)|0)+Math.imul(Ue,ot)|0,g=g+Math.imul(Ue,ft)|0;var wt=(k+(x=x+Math.imul(O,gt)|0)|0)+((8191&(n=(n=n+Math.imul(O,$e)|0)+Math.imul(G,gt)|0))<<13)|0;k=((g=g+Math.imul(G,$e)|0)+(n>>>13)|0)+(wt>>>26)|0,wt&=67108863,x=Math.imul(ht,X),n=(n=Math.imul(ht,mt))+Math.imul(Ge,X)|0,g=Math.imul(Ge,mt),x=x+Math.imul(Ke,it)|0,n=(n=n+Math.imul(Ke,je)|0)+Math.imul(lt,it)|0,g=g+Math.imul(lt,je)|0,x=x+Math.imul(Pe,xt)|0,n=(n=n+Math.imul(Pe,Nt)|0)+Math.imul(de,xt)|0,g=g+Math.imul(de,Nt)|0,x=x+Math.imul(pe,ke)|0,n=(n=n+Math.imul(pe,$)|0)+Math.imul(Ve,ke)|0,g=g+Math.imul(Ve,$)|0,x=x+Math.imul(De,Le)|0,n=(n=n+Math.imul(De,Je)|0)+Math.imul(he,Le)|0,g=g+Math.imul(he,Je)|0,x=x+Math.imul(Oe,Vt)|0,n=(n=n+Math.imul(Oe,ii)|0)+Math.imul(oe,Vt)|0,g=g+Math.imul(oe,ii)|0,x=x+Math.imul(ye,ot)|0,n=(n=n+Math.imul(ye,ft)|0)+Math.imul(xe,ot)|0,g=g+Math.imul(xe,ft)|0,x=x+Math.imul(nt,gt)|0,n=(n=n+Math.imul(nt,$e)|0)+Math.imul(Ue,gt)|0,g=g+Math.imul(Ue,$e)|0;var Zt=(k+(x=x+Math.imul(O,vt)|0)|0)+((8191&(n=(n=n+Math.imul(O,He)|0)+Math.imul(G,vt)|0))<<13)|0;k=((g=g+Math.imul(G,He)|0)+(n>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,x=Math.imul(be,X),n=(n=Math.imul(be,mt))+Math.imul(qe,X)|0,g=Math.imul(qe,mt),x=x+Math.imul(ht,it)|0,n=(n=n+Math.imul(ht,je)|0)+Math.imul(Ge,it)|0,g=g+Math.imul(Ge,je)|0,x=x+Math.imul(Ke,xt)|0,n=(n=n+Math.imul(Ke,Nt)|0)+Math.imul(lt,xt)|0,g=g+Math.imul(lt,Nt)|0,x=x+Math.imul(Pe,ke)|0,n=(n=n+Math.imul(Pe,$)|0)+Math.imul(de,ke)|0,g=g+Math.imul(de,$)|0,x=x+Math.imul(pe,Le)|0,n=(n=n+Math.imul(pe,Je)|0)+Math.imul(Ve,Le)|0,g=g+Math.imul(Ve,Je)|0,x=x+Math.imul(De,Vt)|0,n=(n=n+Math.imul(De,ii)|0)+Math.imul(he,Vt)|0,g=g+Math.imul(he,ii)|0,x=x+Math.imul(Oe,ot)|0,n=(n=n+Math.imul(Oe,ft)|0)+Math.imul(oe,ot)|0,g=g+Math.imul(oe,ft)|0,x=x+Math.imul(ye,gt)|0,n=(n=n+Math.imul(ye,$e)|0)+Math.imul(xe,gt)|0,g=g+Math.imul(xe,$e)|0,x=x+Math.imul(nt,vt)|0,n=(n=n+Math.imul(nt,He)|0)+Math.imul(Ue,vt)|0,g=g+Math.imul(Ue,He)|0;var si=(k+(x=x+Math.imul(O,At)|0)|0)+((8191&(n=(n=n+Math.imul(O,Qt)|0)+Math.imul(G,At)|0))<<13)|0;k=((g=g+Math.imul(G,Qt)|0)+(n>>>13)|0)+(si>>>26)|0,si&=67108863,x=Math.imul(be,it),n=(n=Math.imul(be,je))+Math.imul(qe,it)|0,g=Math.imul(qe,je),x=x+Math.imul(ht,xt)|0,n=(n=n+Math.imul(ht,Nt)|0)+Math.imul(Ge,xt)|0,g=g+Math.imul(Ge,Nt)|0,x=x+Math.imul(Ke,ke)|0,n=(n=n+Math.imul(Ke,$)|0)+Math.imul(lt,ke)|0,g=g+Math.imul(lt,$)|0,x=x+Math.imul(Pe,Le)|0,n=(n=n+Math.imul(Pe,Je)|0)+Math.imul(de,Le)|0,g=g+Math.imul(de,Je)|0,x=x+Math.imul(pe,Vt)|0,n=(n=n+Math.imul(pe,ii)|0)+Math.imul(Ve,Vt)|0,g=g+Math.imul(Ve,ii)|0,x=x+Math.imul(De,ot)|0,n=(n=n+Math.imul(De,ft)|0)+Math.imul(he,ot)|0,g=g+Math.imul(he,ft)|0,x=x+Math.imul(Oe,gt)|0,n=(n=n+Math.imul(Oe,$e)|0)+Math.imul(oe,gt)|0,g=g+Math.imul(oe,$e)|0,x=x+Math.imul(ye,vt)|0,n=(n=n+Math.imul(ye,He)|0)+Math.imul(xe,vt)|0,g=g+Math.imul(xe,He)|0;var Ai=(k+(x=x+Math.imul(nt,At)|0)|0)+((8191&(n=(n=n+Math.imul(nt,Qt)|0)+Math.imul(Ue,At)|0))<<13)|0;k=((g=g+Math.imul(Ue,Qt)|0)+(n>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,x=Math.imul(be,xt),n=(n=Math.imul(be,Nt))+Math.imul(qe,xt)|0,g=Math.imul(qe,Nt),x=x+Math.imul(ht,ke)|0,n=(n=n+Math.imul(ht,$)|0)+Math.imul(Ge,ke)|0,g=g+Math.imul(Ge,$)|0,x=x+Math.imul(Ke,Le)|0,n=(n=n+Math.imul(Ke,Je)|0)+Math.imul(lt,Le)|0,g=g+Math.imul(lt,Je)|0,x=x+Math.imul(Pe,Vt)|0,n=(n=n+Math.imul(Pe,ii)|0)+Math.imul(de,Vt)|0,g=g+Math.imul(de,ii)|0,x=x+Math.imul(pe,ot)|0,n=(n=n+Math.imul(pe,ft)|0)+Math.imul(Ve,ot)|0,g=g+Math.imul(Ve,ft)|0,x=x+Math.imul(De,gt)|0,n=(n=n+Math.imul(De,$e)|0)+Math.imul(he,gt)|0,g=g+Math.imul(he,$e)|0,x=x+Math.imul(Oe,vt)|0,n=(n=n+Math.imul(Oe,He)|0)+Math.imul(oe,vt)|0,g=g+Math.imul(oe,He)|0;var Oi=(k+(x=x+Math.imul(ye,At)|0)|0)+((8191&(n=(n=n+Math.imul(ye,Qt)|0)+Math.imul(xe,At)|0))<<13)|0;k=((g=g+Math.imul(xe,Qt)|0)+(n>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,x=Math.imul(be,ke),n=(n=Math.imul(be,$))+Math.imul(qe,ke)|0,g=Math.imul(qe,$),x=x+Math.imul(ht,Le)|0,n=(n=n+Math.imul(ht,Je)|0)+Math.imul(Ge,Le)|0,g=g+Math.imul(Ge,Je)|0,x=x+Math.imul(Ke,Vt)|0,n=(n=n+Math.imul(Ke,ii)|0)+Math.imul(lt,Vt)|0,g=g+Math.imul(lt,ii)|0,x=x+Math.imul(Pe,ot)|0,n=(n=n+Math.imul(Pe,ft)|0)+Math.imul(de,ot)|0,g=g+Math.imul(de,ft)|0,x=x+Math.imul(pe,gt)|0,n=(n=n+Math.imul(pe,$e)|0)+Math.imul(Ve,gt)|0,g=g+Math.imul(Ve,$e)|0,x=x+Math.imul(De,vt)|0,n=(n=n+Math.imul(De,He)|0)+Math.imul(he,vt)|0,g=g+Math.imul(he,He)|0;var Qi=(k+(x=x+Math.imul(Oe,At)|0)|0)+((8191&(n=(n=n+Math.imul(Oe,Qt)|0)+Math.imul(oe,At)|0))<<13)|0;k=((g=g+Math.imul(oe,Qt)|0)+(n>>>13)|0)+(Qi>>>26)|0,Qi&=67108863,x=Math.imul(be,Le),n=(n=Math.imul(be,Je))+Math.imul(qe,Le)|0,g=Math.imul(qe,Je),x=x+Math.imul(ht,Vt)|0,n=(n=n+Math.imul(ht,ii)|0)+Math.imul(Ge,Vt)|0,g=g+Math.imul(Ge,ii)|0,x=x+Math.imul(Ke,ot)|0,n=(n=n+Math.imul(Ke,ft)|0)+Math.imul(lt,ot)|0,g=g+Math.imul(lt,ft)|0,x=x+Math.imul(Pe,gt)|0,n=(n=n+Math.imul(Pe,$e)|0)+Math.imul(de,gt)|0,g=g+Math.imul(de,$e)|0,x=x+Math.imul(pe,vt)|0,n=(n=n+Math.imul(pe,He)|0)+Math.imul(Ve,vt)|0,g=g+Math.imul(Ve,He)|0;var en=(k+(x=x+Math.imul(De,At)|0)|0)+((8191&(n=(n=n+Math.imul(De,Qt)|0)+Math.imul(he,At)|0))<<13)|0;k=((g=g+Math.imul(he,Qt)|0)+(n>>>13)|0)+(en>>>26)|0,en&=67108863,x=Math.imul(be,Vt),n=(n=Math.imul(be,ii))+Math.imul(qe,Vt)|0,g=Math.imul(qe,ii),x=x+Math.imul(ht,ot)|0,n=(n=n+Math.imul(ht,ft)|0)+Math.imul(Ge,ot)|0,g=g+Math.imul(Ge,ft)|0,x=x+Math.imul(Ke,gt)|0,n=(n=n+Math.imul(Ke,$e)|0)+Math.imul(lt,gt)|0,g=g+Math.imul(lt,$e)|0,x=x+Math.imul(Pe,vt)|0,n=(n=n+Math.imul(Pe,He)|0)+Math.imul(de,vt)|0,g=g+Math.imul(de,He)|0;var Yi=(k+(x=x+Math.imul(pe,At)|0)|0)+((8191&(n=(n=n+Math.imul(pe,Qt)|0)+Math.imul(Ve,At)|0))<<13)|0;k=((g=g+Math.imul(Ve,Qt)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,x=Math.imul(be,ot),n=(n=Math.imul(be,ft))+Math.imul(qe,ot)|0,g=Math.imul(qe,ft),x=x+Math.imul(ht,gt)|0,n=(n=n+Math.imul(ht,$e)|0)+Math.imul(Ge,gt)|0,g=g+Math.imul(Ge,$e)|0,x=x+Math.imul(Ke,vt)|0,n=(n=n+Math.imul(Ke,He)|0)+Math.imul(lt,vt)|0,g=g+Math.imul(lt,He)|0;var Yt=(k+(x=x+Math.imul(Pe,At)|0)|0)+((8191&(n=(n=n+Math.imul(Pe,Qt)|0)+Math.imul(de,At)|0))<<13)|0;k=((g=g+Math.imul(de,Qt)|0)+(n>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,x=Math.imul(be,gt),n=(n=Math.imul(be,$e))+Math.imul(qe,gt)|0,g=Math.imul(qe,$e),x=x+Math.imul(ht,vt)|0,n=(n=n+Math.imul(ht,He)|0)+Math.imul(Ge,vt)|0,g=g+Math.imul(Ge,He)|0;var qt=(k+(x=x+Math.imul(Ke,At)|0)|0)+((8191&(n=(n=n+Math.imul(Ke,Qt)|0)+Math.imul(lt,At)|0))<<13)|0;k=((g=g+Math.imul(lt,Qt)|0)+(n>>>13)|0)+(qt>>>26)|0,qt&=67108863,x=Math.imul(be,vt),n=(n=Math.imul(be,He))+Math.imul(qe,vt)|0,g=Math.imul(qe,He);var _e=(k+(x=x+Math.imul(ht,At)|0)|0)+((8191&(n=(n=n+Math.imul(ht,Qt)|0)+Math.imul(Ge,At)|0))<<13)|0;k=((g=g+Math.imul(Ge,Qt)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863;var dt=(k+(x=Math.imul(be,At))|0)+((8191&(n=(n=Math.imul(be,Qt))+Math.imul(qe,At)|0))<<13)|0;return k=((g=Math.imul(qe,Qt))+(n>>>13)|0)+(dt>>>26)|0,dt&=67108863,I[0]=zi,I[1]=Ni,I[2]=Mi,I[3]=Gi,I[4]=Xe,I[5]=It,I[6]=Se,I[7]=wt,I[8]=Zt,I[9]=si,I[10]=Ai,I[11]=Oi,I[12]=Qi,I[13]=en,I[14]=Yi,I[15]=Yt,I[16]=qt,I[17]=_e,I[18]=dt,0!==k&&(I[19]=k,f.length++),f};function j(M,i,a){return(new Q).mulp(M,i,a)}function Q(M,i){this.x=M,this.y=i}Math.imul||(V=H),s.prototype.mulTo=function(i,a){var f,l=this.length+i.length;return f=10===this.length&&10===i.length?V(this,i,a):l<63?H(this,i,a):l<1024?function Y(M,i,a){a.negative=i.negative^M.negative,a.length=M.length+i.length;for(var f=0,l=0,v=0;v>>26)|0)>>>26,I&=67108863}a.words[v]=k,f=I,I=l}return 0!==f?a.words[v]=f:a.length--,a.strip()}(this,i,a):j(this,i,a),f},Q.prototype.makeRBT=function(i){for(var a=new Array(i),f=s.prototype._countBits(i)-1,l=0;l>=1;return l},Q.prototype.permute=function(i,a,f,l,v,I){for(var k=0;k>>=1)v++;return 1<>>=13),v>>>=13;for(I=2*a;I>=26,a+=l/67108864|0,a+=v>>>26,this.words[f]=67108863&v}return 0!==a&&(this.words[f]=a,this.length++),this},s.prototype.muln=function(i){return this.clone().imuln(i)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(i){var a=function D(M){for(var i=new Array(M.bitLength()),a=0;a>>l}return i}(i);if(0===a.length)return new s(1);for(var f=this,l=0;l=0);var v,a=i%26,f=(i-a)/26,l=67108863>>>26-a<<26-a;if(0!==a){var I=0;for(v=0;v>>26-a}I&&(this.words[v]=I,this.length++)}if(0!==f){for(v=this.length-1;v>=0;v--)this.words[v+f]=this.words[v];for(v=0;v=0),l=a?(a-a%26)/26:0;var v=i%26,I=Math.min((i-v)/26,this.length),k=67108863^67108863>>>v<I)for(this.length-=I,n=0;n=0&&(0!==g||n>=l);n--){var W=0|this.words[n];this.words[n]=g<<26-v|W>>>v,g=W&k}return x&&0!==g&&(x.words[x.length++]=g),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,a,f){return _(0===this.negative),this.iushrn(i,a,f)},s.prototype.shln=function(i){return this.clone().ishln(i)},s.prototype.ushln=function(i){return this.clone().iushln(i)},s.prototype.shrn=function(i){return this.clone().ishrn(i)},s.prototype.ushrn=function(i){return this.clone().iushrn(i)},s.prototype.testn=function(i){_("number"==typeof i&&i>=0);var a=i%26,f=(i-a)/26;return!(this.length<=f||!(this.words[f]&1<=0);var a=i%26,f=(i-a)/26;return _(0===this.negative,"imaskn works only with positive numbers"),this.length<=f?this:(0!==a&&f++,this.length=Math.min(f,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},s.prototype.isubn=function(i){if(_("number"==typeof i),_(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[v+f]=67108863&I}for(;v>26,this.words[v+f]=67108863&I;if(0===k)return this.strip();for(_(-1===k),k=0,v=0;v>26,this.words[v]=67108863&I;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var f,l=this.clone(),v=i,I=0|v.words[v.length-1];0!=(f=26-this._countBits(I))&&(v=v.ushln(f),l.iushln(f),I=0|v.words[v.length-1]);var n,x=l.length-v.length;if("mod"!==a){(n=new s(null)).length=x+1,n.words=new Array(n.length);for(var g=0;g=0;O--){var G=67108864*(0|l.words[v.length+O])+(0|l.words[v.length+O-1]);for(G=Math.min(G/I|0,67108863),l._ishlnsubmul(v,G,O);0!==l.negative;)G--,l.negative=0,l._ishlnsubmul(v,1,O),l.isZero()||(l.negative^=1);n&&(n.words[O]=G)}return n&&n.strip(),l.strip(),"div"!==a&&0!==f&&l.iushrn(f),{div:n||null,mod:l}},s.prototype.divmod=function(i,a,f){return _(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(I=this.neg().divmod(i,a),"mod"!==a&&(l=I.div.neg()),"div"!==a&&(v=I.mod.neg(),f&&0!==v.negative&&v.iadd(i)),{div:l,mod:v}):0===this.negative&&0!==i.negative?(I=this.divmod(i.neg(),a),"mod"!==a&&(l=I.div.neg()),{div:l,mod:I.mod}):this.negative&i.negative?(I=this.neg().divmod(i.neg(),a),"div"!==a&&(v=I.mod.neg(),f&&0!==v.negative&&v.isub(i)),{div:I.div,mod:v}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new s(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new s(this.modn(i.words[0]))}:this._wordDiv(i,a);var l,v,I},s.prototype.div=function(i){return this.divmod(i,"div",!1).div},s.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},s.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},s.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var f=0!==a.div.negative?a.mod.isub(i):a.mod,l=i.ushrn(1),v=i.andln(1),I=f.cmp(l);return I<0||1===v&&0===I?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},s.prototype.modn=function(i){_(i<=67108863);for(var a=(1<<26)%i,f=0,l=this.length-1;l>=0;l--)f=(a*f+(0|this.words[l]))%i;return f},s.prototype.idivn=function(i){_(i<=67108863);for(var a=0,f=this.length-1;f>=0;f--){var l=(0|this.words[f])+67108864*a;this.words[f]=l/i|0,a=l%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){_(0===i.negative),_(!i.isZero());var a=this,f=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),v=new s(0),I=new s(0),k=new s(1),x=0;a.isEven()&&f.isEven();)a.iushrn(1),f.iushrn(1),++x;for(var n=f.clone(),g=a.clone();!a.isZero();){for(var W=0,O=1;!(a.words[0]&O)&&W<26;++W,O<<=1);if(W>0)for(a.iushrn(W);W-- >0;)(l.isOdd()||v.isOdd())&&(l.iadd(n),v.isub(g)),l.iushrn(1),v.iushrn(1);for(var G=0,ge=1;!(f.words[0]&ge)&&G<26;++G,ge<<=1);if(G>0)for(f.iushrn(G);G-- >0;)(I.isOdd()||k.isOdd())&&(I.iadd(n),k.isub(g)),I.iushrn(1),k.iushrn(1);a.cmp(f)>=0?(a.isub(f),l.isub(I),v.isub(k)):(f.isub(a),I.isub(l),k.isub(v))}return{a:I,b:k,gcd:f.iushln(x)}},s.prototype._invmp=function(i){_(0===i.negative),_(!i.isZero());var W,a=this,f=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),v=new s(0),I=f.clone();a.cmpn(1)>0&&f.cmpn(1)>0;){for(var k=0,x=1;!(a.words[0]&x)&&k<26;++k,x<<=1);if(k>0)for(a.iushrn(k);k-- >0;)l.isOdd()&&l.iadd(I),l.iushrn(1);for(var n=0,g=1;!(f.words[0]&g)&&n<26;++n,g<<=1);if(n>0)for(f.iushrn(n);n-- >0;)v.isOdd()&&v.iadd(I),v.iushrn(1);a.cmp(f)>=0?(a.isub(f),l.isub(v)):(f.isub(a),v.isub(l))}return(W=0===a.cmpn(1)?l:v).cmpn(0)<0&&W.iadd(i),W},s.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),f=i.clone();a.negative=0,f.negative=0;for(var l=0;a.isEven()&&f.isEven();l++)a.iushrn(1),f.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;f.isEven();)f.iushrn(1);var v=a.cmp(f);if(v<0){var I=a;a=f,f=I}else if(0===v||0===f.cmpn(1))break;a.isub(f)}return f.iushln(l)},s.prototype.invm=function(i){return this.egcd(i).a.umod(i)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(i){return this.words[0]&i},s.prototype.bincn=function(i){_("number"==typeof i);var a=i%26,f=(i-a)/26,l=1<>>26,this.words[I]=k&=67108863}return 0!==v&&(this.words[I]=v,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var f,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)f=1;else{a&&(i=-i),_(i<=67108863,"Number is too big");var l=0|this.words[0];f=l===i?0:li.length)return 1;if(this.length=0;f--){var l=0|this.words[f],v=0|i.words[f];if(l!==v){lv&&(a=1);break}}return a},s.prototype.gtn=function(i){return 1===this.cmpn(i)},s.prototype.gt=function(i){return 1===this.cmp(i)},s.prototype.gten=function(i){return this.cmpn(i)>=0},s.prototype.gte=function(i){return this.cmp(i)>=0},s.prototype.ltn=function(i){return-1===this.cmpn(i)},s.prototype.lt=function(i){return-1===this.cmp(i)},s.prototype.lten=function(i){return this.cmpn(i)<=0},s.prototype.lte=function(i){return this.cmp(i)<=0},s.prototype.eqn=function(i){return 0===this.cmpn(i)},s.prototype.eq=function(i){return 0===this.cmp(i)},s.red=function(i){return new ce(i)},s.prototype.toRed=function(i){return _(!this.red,"Already a number in reduction context"),_(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(i){return this.red=i,this},s.prototype.forceRed=function(i){return _(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return _(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var J={k256:null,p224:null,p192:null,p25519:null};function ee(M,i){this.name=M,this.p=new s(i,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function me(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function re(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ce(M){if("string"==typeof M){var i=s._prime(M);this.m=i.p,this.prime=i}else _(M.gtn(1),"modulus must be greater than 1"),this.m=M,this.prime=null}function Ce(M){ce.call(this,M),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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 s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var f,a=i;do{this.split(a,this.tmp),f=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(f>this.n);var l=f0?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)},T(me,ee),me.prototype.split=function(i,a){for(var f=4194303,l=Math.min(i.length,9),v=0;v>>22,I=k}i.words[v-10]=I>>>=22,i.length-=0===I&&i.length>10?10:9},me.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,f=0;f>>=26,i.words[f]=v,a=l}return 0!==a&&(i.words[i.length++]=a),i},s._prime=function(i){if(J[i])return J[i];var a;if("k256"===i)a=new me;else if("p224"===i)a=new re;else if("p192"===i)a=new ie;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new se}return J[i]=a,a},ce.prototype._verify1=function(i){_(0===i.negative,"red works only with positives"),_(i.red,"red works only with red numbers")},ce.prototype._verify2=function(i,a){_(0==(i.negative|a.negative),"red works only with positives"),_(i.red&&i.red===a.red,"red works only with red numbers")},ce.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},ce.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},ce.prototype.add=function(i,a){this._verify2(i,a);var f=i.add(a);return f.cmp(this.m)>=0&&f.isub(this.m),f._forceRed(this)},ce.prototype.iadd=function(i,a){this._verify2(i,a);var f=i.iadd(a);return f.cmp(this.m)>=0&&f.isub(this.m),f},ce.prototype.sub=function(i,a){this._verify2(i,a);var f=i.sub(a);return f.cmpn(0)<0&&f.iadd(this.m),f._forceRed(this)},ce.prototype.isub=function(i,a){this._verify2(i,a);var f=i.isub(a);return f.cmpn(0)<0&&f.iadd(this.m),f},ce.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},ce.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},ce.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},ce.prototype.isqr=function(i){return this.imul(i,i.clone())},ce.prototype.sqr=function(i){return this.mul(i,i)},ce.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(_(a%2==1),3===a){var f=this.m.add(new s(1)).iushrn(2);return this.pow(i,f)}for(var l=this.m.subn(1),v=0;!l.isZero()&&0===l.andln(1);)v++,l.iushrn(1);_(!l.isZero());var I=new s(1).toRed(this),k=I.redNeg(),x=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new s(2*n*n).toRed(this);0!==this.pow(n,x).cmp(k);)n.redIAdd(k);for(var g=this.pow(n,l),W=this.pow(i,l.addn(1).iushrn(1)),O=this.pow(i,l),G=v;0!==O.cmp(I);){for(var ge=O,nt=0;0!==ge.cmp(I);nt++)ge=ge.redSqr();_(nt=0;v--){for(var g=a.words[v],W=n-1;W>=0;W--){var O=g>>W&1;I!==l[0]&&(I=this.sqr(I)),0!==O||0!==k?(k<<=1,k|=O,(4==++x||0===v&&0===W)&&(I=this.mul(I,l[k]),x=0,k=0)):x=0}n=26}return I},ce.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},ce.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new Ce(i)},T(Ce,ce),Ce.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},Ce.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},Ce.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var f=i.imul(a),l=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=f.isub(l).iushrn(this.shift),I=v;return v.cmp(this.m)>=0?I=v.isub(this.m):v.cmpn(0)<0&&(I=v.iadd(this.m)),I._forceRed(this)},Ce.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new s(0)._forceRed(this);var f=i.mul(a),l=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=f.isub(l).iushrn(this.shift),I=v;return v.cmp(this.m)>=0?I=v.isub(this.m):v.cmpn(0)<0&&(I=v.iadd(this.m)),I._forceRed(this)},Ce.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(We=m.nmd(We),this)},5343:(We,q)=>{"use strict";q.byteLength=function h(D){var H=y(D),Y=H[1];return 3*(H[0]+Y)/4-Y},q.toByteArray=function d(D){var H,me,V=y(D),Y=V[0],j=V[1],Q=new e(function P(D,H,V){return 3*(H+V)/4-V}(0,Y,j)),J=0,ee=j>0?Y-4:Y;for(me=0;me>16&255,Q[J++]=H>>8&255,Q[J++]=255&H;return 2===j&&(H=t[D.charCodeAt(me)]<<2|t[D.charCodeAt(me+1)]>>4,Q[J++]=255&H),1===j&&(H=t[D.charCodeAt(me)]<<10|t[D.charCodeAt(me+1)]<<4|t[D.charCodeAt(me+2)]>>2,Q[J++]=H>>8&255,Q[J++]=255&H),Q},q.fromByteArray=function L(D){for(var H,V=D.length,Y=V%3,j=[],Q=16383,J=0,ee=V-Y;Jee?ee:J+Q));return 1===Y?j.push(m[(H=D[V-1])>>2]+m[H<<4&63]+"=="):2===Y&&j.push(m[(H=(D[V-2]<<8)+D[V-1])>>10]+m[H>>4&63]+m[H<<2&63]+"="),j.join("")};for(var m=[],t=[],e=typeof Uint8Array<"u"?Uint8Array:Array,_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",T=0,s=_.length;T0)throw new Error("Invalid string. Length must be a multiple of 4");var V=D.indexOf("=");return-1===V&&(V=H),[V,V===H?0:4-V%4]}function w(D){return m[D>>18&63]+m[D>>12&63]+m[D>>6&63]+m[63&D]}function C(D,H,V){for(var j=[],Q=H;Q=48&&v<=57?v-48:v>=65&&v<=70?v-55:v>=97&&v<=102?v-87:void _(!1,"Invalid character in "+f)}function P(f,l,v){var I=h(f,v);return v-1>=l&&(I|=h(f,v-1)<<4),I}function d(f,l,v,I){for(var k=0,x=0,n=Math.min(f.length,v),g=l;g=49?W-49+10:W>=17?W-17+10:W,_(W>=0&&x0?l:v},s.min=function(l,v){return l.cmp(v)<0?l:v},s.prototype._init=function(l,v,I){if("number"==typeof l)return this._initNumber(l,v,I);if("object"==typeof l)return this._initArray(l,v,I);"hex"===v&&(v=16),_(v===(0|v)&&v>=2&&v<=36);var k=0;"-"===(l=l.toString().replace(/\s+/g,""))[0]&&(k++,this.negative=1),k=0;k-=3)this.words[x]|=(n=l[k]|l[k-1]<<8|l[k-2]<<16)<>>26-g&67108863,(g+=24)>=26&&(g-=26,x++);else if("le"===I)for(k=0,x=0;k>>26-g&67108863,(g+=24)>=26&&(g-=26,x++);return this._strip()},s.prototype._parseHex=function(l,v,I){this.length=Math.ceil((l.length-v)/6),this.words=new Array(this.length);for(var k=0;k=v;k-=2)g=P(l,v,k)<=18?(x-=18,this.words[n+=1]|=g>>>26):x+=8;else for(k=(l.length-v)%2==0?v+1:v;k=18?(x-=18,this.words[n+=1]|=g>>>26):x+=8;this._strip()},s.prototype._parseBase=function(l,v,I){this.words=[0],this.length=1;for(var k=0,x=1;x<=67108863;x*=v)k++;k--,x=x/v|0;for(var n=l.length-I,g=n%k,W=Math.min(n,n-g)+I,O=0,G=I;G1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},typeof Symbol<"u"&&"function"==typeof Symbol.for)try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=C}catch{s.prototype.inspect=C}else s.prototype.inspect=C;function C(){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"],D=[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],H=[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(f,l,v){v.negative=l.negative^f.negative;var I=f.length+l.length|0;v.length=I,I=I-1|0;var k=0|f.words[0],x=0|l.words[0],n=k*x,W=n/67108864|0;v.words[0]=67108863&n;for(var O=1;O>>26,ge=67108863&W,nt=Math.min(O,l.length-1),Ue=Math.max(0,O-f.length+1);Ue<=nt;Ue++)G+=(n=(k=0|f.words[O-Ue|0])*(x=0|l.words[Ue])+ge)/67108864|0,ge=67108863&n;v.words[O]=0|ge,W=0|G}return 0!==W?v.words[O]=0|W:v.length--,v._strip()}s.prototype.toString=function(l,v){var I;if(v=0|v||1,16===(l=l||10)||"hex"===l){I="";for(var k=0,x=0,n=0;n>>24-k&16777215,(k+=2)>=26&&(k-=26,n--),I=0!==x||n!==this.length-1?L[6-W.length]+W+I:W+I}for(0!==x&&(I=x.toString(16)+I);I.length%v!=0;)I="0"+I;return 0!==this.negative&&(I="-"+I),I}if(l===(0|l)&&l>=2&&l<=36){var O=D[l],G=H[l];I="";var ge=this.clone();for(ge.negative=0;!ge.isZero();){var nt=ge.modrn(G).toString(l);I=(ge=ge.idivn(G)).isZero()?nt+I:L[O-nt.length]+nt+I}for(this.isZero()&&(I="0"+I);I.length%v!=0;)I="0"+I;return 0!==this.negative&&(I="-"+I),I}_(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var l=this.words[0];return 2===this.length?l+=67108864*this.words[1]:3===this.length&&1===this.words[2]?l+=4503599627370496+67108864*this.words[1]:this.length>2&&_(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-l:l},s.prototype.toJSON=function(){return this.toString(16,2)},y&&(s.prototype.toBuffer=function(l,v){return this.toArrayLike(y,l,v)}),s.prototype.toArray=function(l,v){return this.toArrayLike(Array,l,v)},s.prototype.toArrayLike=function(l,v,I){this._strip();var k=this.byteLength(),x=I||Math.max(1,k);_(k<=x,"byte array longer than desired length"),_(x>0,"Requested array length <= 0");var n=function(l,v){return l.allocUnsafe?l.allocUnsafe(v):new l(v)}(l,x);return this["_toArrayLike"+("le"===v?"LE":"BE")](n,k),n},s.prototype._toArrayLikeLE=function(l,v){for(var I=0,k=0,x=0,n=0;x>8&255),I>16&255),6===n?(I>24&255),k=0,n=0):(k=g>>>24,n+=2)}if(I=0&&(l[I--]=g>>8&255),I>=0&&(l[I--]=g>>16&255),6===n?(I>=0&&(l[I--]=g>>24&255),k=0,n=0):(k=g>>>24,n+=2)}if(I>=0)for(l[I--]=k;I>=0;)l[I--]=0},s.prototype._countBits=Math.clz32?function(l){return 32-Math.clz32(l)}:function(l){var v=l,I=0;return v>=4096&&(I+=13,v>>>=13),v>=64&&(I+=7,v>>>=7),v>=8&&(I+=4,v>>>=4),v>=2&&(I+=2,v>>>=2),I+v},s.prototype._zeroBits=function(l){if(0===l)return 26;var v=l,I=0;return 8191&v||(I+=13,v>>>=13),127&v||(I+=7,v>>>=7),15&v||(I+=4,v>>>=4),3&v||(I+=2,v>>>=2),1&v||I++,I},s.prototype.bitLength=function(){var v=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+v},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var l=0,v=0;vl.length?this.clone().ior(l):l.clone().ior(this)},s.prototype.uor=function(l){return this.length>l.length?this.clone().iuor(l):l.clone().iuor(this)},s.prototype.iuand=function(l){var v;v=this.length>l.length?l:this;for(var I=0;Il.length?this.clone().iand(l):l.clone().iand(this)},s.prototype.uand=function(l){return this.length>l.length?this.clone().iuand(l):l.clone().iuand(this)},s.prototype.iuxor=function(l){var v,I;this.length>l.length?(v=this,I=l):(v=l,I=this);for(var k=0;kl.length?this.clone().ixor(l):l.clone().ixor(this)},s.prototype.uxor=function(l){return this.length>l.length?this.clone().iuxor(l):l.clone().iuxor(this)},s.prototype.inotn=function(l){_("number"==typeof l&&l>=0);var v=0|Math.ceil(l/26),I=l%26;this._expand(v),I>0&&v--;for(var k=0;k0&&(this.words[k]=~this.words[k]&67108863>>26-I),this._strip()},s.prototype.notn=function(l){return this.clone().inotn(l)},s.prototype.setn=function(l,v){_("number"==typeof l&&l>=0);var I=l/26|0,k=l%26;return this._expand(I+1),this.words[I]=v?this.words[I]|1<l.length?(I=this,k=l):(I=l,k=this);for(var x=0,n=0;n>>26;for(;0!==x&&n>>26;if(this.length=I.length,0!==x)this.words[this.length]=x,this.length++;else if(I!==this)for(;nl.length?this.clone().iadd(l):l.clone().iadd(this)},s.prototype.isub=function(l){if(0!==l.negative){l.negative=0;var v=this.iadd(l);return l.negative=1,v._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(l),this.negative=1,this._normSign();var k,x,I=this.cmp(l);if(0===I)return this.negative=0,this.length=1,this.words[0]=0,this;I>0?(k=this,x=l):(k=l,x=this);for(var n=0,g=0;g>26,this.words[g]=67108863&v;for(;0!==n&&g>26,this.words[g]=67108863&v;if(0===n&&g>>13,at=0|k[1],ye=8191&at,xe=at>>>13,fe=0|k[2],Oe=8191&fe,oe=fe>>>13,Fe=0|k[3],De=8191&Fe,he=Fe>>>13,Me=0|k[4],pe=8191&Me,Ve=Me>>>13,Qe=0|k[5],Pe=8191&Qe,de=Qe>>>13,rt=0|k[6],Ke=8191&rt,lt=rt>>>13,Ut=0|k[7],ht=8191&Ut,Ge=Ut>>>13,yt=0|k[8],be=8191&yt,qe=yt>>>13,Ie=0|k[9],X=8191&Ie,mt=Ie>>>13,Tt=0|x[0],it=8191&Tt,je=Tt>>>13,zt=0|x[1],xt=8191&zt,Nt=zt>>>13,Gt=0|x[2],ke=8191&Gt,$=Gt>>>13,ue=0|x[3],Le=8191&ue,Je=ue>>>13,$t=0|x[4],Vt=8191&$t,ii=$t>>>13,pt=0|x[5],ot=8191&pt,ft=pt>>>13,St=0|x[6],gt=8191&St,$e=St>>>13,_t=0|x[7],vt=8191&_t,He=_t>>>13,Et=0|x[8],At=8191&Et,Qt=Et>>>13,zi=0|x[9],Ni=8191&zi,Mi=zi>>>13;I.negative=l.negative^v.negative,I.length=19;var Gi=(g+(W=Math.imul(nt,it))|0)+((8191&(O=(O=Math.imul(nt,je))+Math.imul(Ue,it)|0))<<13)|0;g=((G=Math.imul(Ue,je))+(O>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,W=Math.imul(ye,it),O=(O=Math.imul(ye,je))+Math.imul(xe,it)|0,G=Math.imul(xe,je);var Xe=(g+(W=W+Math.imul(nt,xt)|0)|0)+((8191&(O=(O=O+Math.imul(nt,Nt)|0)+Math.imul(Ue,xt)|0))<<13)|0;g=((G=G+Math.imul(Ue,Nt)|0)+(O>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,W=Math.imul(Oe,it),O=(O=Math.imul(Oe,je))+Math.imul(oe,it)|0,G=Math.imul(oe,je),W=W+Math.imul(ye,xt)|0,O=(O=O+Math.imul(ye,Nt)|0)+Math.imul(xe,xt)|0,G=G+Math.imul(xe,Nt)|0;var It=(g+(W=W+Math.imul(nt,ke)|0)|0)+((8191&(O=(O=O+Math.imul(nt,$)|0)+Math.imul(Ue,ke)|0))<<13)|0;g=((G=G+Math.imul(Ue,$)|0)+(O>>>13)|0)+(It>>>26)|0,It&=67108863,W=Math.imul(De,it),O=(O=Math.imul(De,je))+Math.imul(he,it)|0,G=Math.imul(he,je),W=W+Math.imul(Oe,xt)|0,O=(O=O+Math.imul(Oe,Nt)|0)+Math.imul(oe,xt)|0,G=G+Math.imul(oe,Nt)|0,W=W+Math.imul(ye,ke)|0,O=(O=O+Math.imul(ye,$)|0)+Math.imul(xe,ke)|0,G=G+Math.imul(xe,$)|0;var Se=(g+(W=W+Math.imul(nt,Le)|0)|0)+((8191&(O=(O=O+Math.imul(nt,Je)|0)+Math.imul(Ue,Le)|0))<<13)|0;g=((G=G+Math.imul(Ue,Je)|0)+(O>>>13)|0)+(Se>>>26)|0,Se&=67108863,W=Math.imul(pe,it),O=(O=Math.imul(pe,je))+Math.imul(Ve,it)|0,G=Math.imul(Ve,je),W=W+Math.imul(De,xt)|0,O=(O=O+Math.imul(De,Nt)|0)+Math.imul(he,xt)|0,G=G+Math.imul(he,Nt)|0,W=W+Math.imul(Oe,ke)|0,O=(O=O+Math.imul(Oe,$)|0)+Math.imul(oe,ke)|0,G=G+Math.imul(oe,$)|0,W=W+Math.imul(ye,Le)|0,O=(O=O+Math.imul(ye,Je)|0)+Math.imul(xe,Le)|0,G=G+Math.imul(xe,Je)|0;var wt=(g+(W=W+Math.imul(nt,Vt)|0)|0)+((8191&(O=(O=O+Math.imul(nt,ii)|0)+Math.imul(Ue,Vt)|0))<<13)|0;g=((G=G+Math.imul(Ue,ii)|0)+(O>>>13)|0)+(wt>>>26)|0,wt&=67108863,W=Math.imul(Pe,it),O=(O=Math.imul(Pe,je))+Math.imul(de,it)|0,G=Math.imul(de,je),W=W+Math.imul(pe,xt)|0,O=(O=O+Math.imul(pe,Nt)|0)+Math.imul(Ve,xt)|0,G=G+Math.imul(Ve,Nt)|0,W=W+Math.imul(De,ke)|0,O=(O=O+Math.imul(De,$)|0)+Math.imul(he,ke)|0,G=G+Math.imul(he,$)|0,W=W+Math.imul(Oe,Le)|0,O=(O=O+Math.imul(Oe,Je)|0)+Math.imul(oe,Le)|0,G=G+Math.imul(oe,Je)|0,W=W+Math.imul(ye,Vt)|0,O=(O=O+Math.imul(ye,ii)|0)+Math.imul(xe,Vt)|0,G=G+Math.imul(xe,ii)|0;var Zt=(g+(W=W+Math.imul(nt,ot)|0)|0)+((8191&(O=(O=O+Math.imul(nt,ft)|0)+Math.imul(Ue,ot)|0))<<13)|0;g=((G=G+Math.imul(Ue,ft)|0)+(O>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,W=Math.imul(Ke,it),O=(O=Math.imul(Ke,je))+Math.imul(lt,it)|0,G=Math.imul(lt,je),W=W+Math.imul(Pe,xt)|0,O=(O=O+Math.imul(Pe,Nt)|0)+Math.imul(de,xt)|0,G=G+Math.imul(de,Nt)|0,W=W+Math.imul(pe,ke)|0,O=(O=O+Math.imul(pe,$)|0)+Math.imul(Ve,ke)|0,G=G+Math.imul(Ve,$)|0,W=W+Math.imul(De,Le)|0,O=(O=O+Math.imul(De,Je)|0)+Math.imul(he,Le)|0,G=G+Math.imul(he,Je)|0,W=W+Math.imul(Oe,Vt)|0,O=(O=O+Math.imul(Oe,ii)|0)+Math.imul(oe,Vt)|0,G=G+Math.imul(oe,ii)|0,W=W+Math.imul(ye,ot)|0,O=(O=O+Math.imul(ye,ft)|0)+Math.imul(xe,ot)|0,G=G+Math.imul(xe,ft)|0;var si=(g+(W=W+Math.imul(nt,gt)|0)|0)+((8191&(O=(O=O+Math.imul(nt,$e)|0)+Math.imul(Ue,gt)|0))<<13)|0;g=((G=G+Math.imul(Ue,$e)|0)+(O>>>13)|0)+(si>>>26)|0,si&=67108863,W=Math.imul(ht,it),O=(O=Math.imul(ht,je))+Math.imul(Ge,it)|0,G=Math.imul(Ge,je),W=W+Math.imul(Ke,xt)|0,O=(O=O+Math.imul(Ke,Nt)|0)+Math.imul(lt,xt)|0,G=G+Math.imul(lt,Nt)|0,W=W+Math.imul(Pe,ke)|0,O=(O=O+Math.imul(Pe,$)|0)+Math.imul(de,ke)|0,G=G+Math.imul(de,$)|0,W=W+Math.imul(pe,Le)|0,O=(O=O+Math.imul(pe,Je)|0)+Math.imul(Ve,Le)|0,G=G+Math.imul(Ve,Je)|0,W=W+Math.imul(De,Vt)|0,O=(O=O+Math.imul(De,ii)|0)+Math.imul(he,Vt)|0,G=G+Math.imul(he,ii)|0,W=W+Math.imul(Oe,ot)|0,O=(O=O+Math.imul(Oe,ft)|0)+Math.imul(oe,ot)|0,G=G+Math.imul(oe,ft)|0,W=W+Math.imul(ye,gt)|0,O=(O=O+Math.imul(ye,$e)|0)+Math.imul(xe,gt)|0,G=G+Math.imul(xe,$e)|0;var Ai=(g+(W=W+Math.imul(nt,vt)|0)|0)+((8191&(O=(O=O+Math.imul(nt,He)|0)+Math.imul(Ue,vt)|0))<<13)|0;g=((G=G+Math.imul(Ue,He)|0)+(O>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,W=Math.imul(be,it),O=(O=Math.imul(be,je))+Math.imul(qe,it)|0,G=Math.imul(qe,je),W=W+Math.imul(ht,xt)|0,O=(O=O+Math.imul(ht,Nt)|0)+Math.imul(Ge,xt)|0,G=G+Math.imul(Ge,Nt)|0,W=W+Math.imul(Ke,ke)|0,O=(O=O+Math.imul(Ke,$)|0)+Math.imul(lt,ke)|0,G=G+Math.imul(lt,$)|0,W=W+Math.imul(Pe,Le)|0,O=(O=O+Math.imul(Pe,Je)|0)+Math.imul(de,Le)|0,G=G+Math.imul(de,Je)|0,W=W+Math.imul(pe,Vt)|0,O=(O=O+Math.imul(pe,ii)|0)+Math.imul(Ve,Vt)|0,G=G+Math.imul(Ve,ii)|0,W=W+Math.imul(De,ot)|0,O=(O=O+Math.imul(De,ft)|0)+Math.imul(he,ot)|0,G=G+Math.imul(he,ft)|0,W=W+Math.imul(Oe,gt)|0,O=(O=O+Math.imul(Oe,$e)|0)+Math.imul(oe,gt)|0,G=G+Math.imul(oe,$e)|0,W=W+Math.imul(ye,vt)|0,O=(O=O+Math.imul(ye,He)|0)+Math.imul(xe,vt)|0,G=G+Math.imul(xe,He)|0;var Oi=(g+(W=W+Math.imul(nt,At)|0)|0)+((8191&(O=(O=O+Math.imul(nt,Qt)|0)+Math.imul(Ue,At)|0))<<13)|0;g=((G=G+Math.imul(Ue,Qt)|0)+(O>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,W=Math.imul(X,it),O=(O=Math.imul(X,je))+Math.imul(mt,it)|0,G=Math.imul(mt,je),W=W+Math.imul(be,xt)|0,O=(O=O+Math.imul(be,Nt)|0)+Math.imul(qe,xt)|0,G=G+Math.imul(qe,Nt)|0,W=W+Math.imul(ht,ke)|0,O=(O=O+Math.imul(ht,$)|0)+Math.imul(Ge,ke)|0,G=G+Math.imul(Ge,$)|0,W=W+Math.imul(Ke,Le)|0,O=(O=O+Math.imul(Ke,Je)|0)+Math.imul(lt,Le)|0,G=G+Math.imul(lt,Je)|0,W=W+Math.imul(Pe,Vt)|0,O=(O=O+Math.imul(Pe,ii)|0)+Math.imul(de,Vt)|0,G=G+Math.imul(de,ii)|0,W=W+Math.imul(pe,ot)|0,O=(O=O+Math.imul(pe,ft)|0)+Math.imul(Ve,ot)|0,G=G+Math.imul(Ve,ft)|0,W=W+Math.imul(De,gt)|0,O=(O=O+Math.imul(De,$e)|0)+Math.imul(he,gt)|0,G=G+Math.imul(he,$e)|0,W=W+Math.imul(Oe,vt)|0,O=(O=O+Math.imul(Oe,He)|0)+Math.imul(oe,vt)|0,G=G+Math.imul(oe,He)|0,W=W+Math.imul(ye,At)|0,O=(O=O+Math.imul(ye,Qt)|0)+Math.imul(xe,At)|0,G=G+Math.imul(xe,Qt)|0;var Qi=(g+(W=W+Math.imul(nt,Ni)|0)|0)+((8191&(O=(O=O+Math.imul(nt,Mi)|0)+Math.imul(Ue,Ni)|0))<<13)|0;g=((G=G+Math.imul(Ue,Mi)|0)+(O>>>13)|0)+(Qi>>>26)|0,Qi&=67108863,W=Math.imul(X,xt),O=(O=Math.imul(X,Nt))+Math.imul(mt,xt)|0,G=Math.imul(mt,Nt),W=W+Math.imul(be,ke)|0,O=(O=O+Math.imul(be,$)|0)+Math.imul(qe,ke)|0,G=G+Math.imul(qe,$)|0,W=W+Math.imul(ht,Le)|0,O=(O=O+Math.imul(ht,Je)|0)+Math.imul(Ge,Le)|0,G=G+Math.imul(Ge,Je)|0,W=W+Math.imul(Ke,Vt)|0,O=(O=O+Math.imul(Ke,ii)|0)+Math.imul(lt,Vt)|0,G=G+Math.imul(lt,ii)|0,W=W+Math.imul(Pe,ot)|0,O=(O=O+Math.imul(Pe,ft)|0)+Math.imul(de,ot)|0,G=G+Math.imul(de,ft)|0,W=W+Math.imul(pe,gt)|0,O=(O=O+Math.imul(pe,$e)|0)+Math.imul(Ve,gt)|0,G=G+Math.imul(Ve,$e)|0,W=W+Math.imul(De,vt)|0,O=(O=O+Math.imul(De,He)|0)+Math.imul(he,vt)|0,G=G+Math.imul(he,He)|0,W=W+Math.imul(Oe,At)|0,O=(O=O+Math.imul(Oe,Qt)|0)+Math.imul(oe,At)|0,G=G+Math.imul(oe,Qt)|0;var en=(g+(W=W+Math.imul(ye,Ni)|0)|0)+((8191&(O=(O=O+Math.imul(ye,Mi)|0)+Math.imul(xe,Ni)|0))<<13)|0;g=((G=G+Math.imul(xe,Mi)|0)+(O>>>13)|0)+(en>>>26)|0,en&=67108863,W=Math.imul(X,ke),O=(O=Math.imul(X,$))+Math.imul(mt,ke)|0,G=Math.imul(mt,$),W=W+Math.imul(be,Le)|0,O=(O=O+Math.imul(be,Je)|0)+Math.imul(qe,Le)|0,G=G+Math.imul(qe,Je)|0,W=W+Math.imul(ht,Vt)|0,O=(O=O+Math.imul(ht,ii)|0)+Math.imul(Ge,Vt)|0,G=G+Math.imul(Ge,ii)|0,W=W+Math.imul(Ke,ot)|0,O=(O=O+Math.imul(Ke,ft)|0)+Math.imul(lt,ot)|0,G=G+Math.imul(lt,ft)|0,W=W+Math.imul(Pe,gt)|0,O=(O=O+Math.imul(Pe,$e)|0)+Math.imul(de,gt)|0,G=G+Math.imul(de,$e)|0,W=W+Math.imul(pe,vt)|0,O=(O=O+Math.imul(pe,He)|0)+Math.imul(Ve,vt)|0,G=G+Math.imul(Ve,He)|0,W=W+Math.imul(De,At)|0,O=(O=O+Math.imul(De,Qt)|0)+Math.imul(he,At)|0,G=G+Math.imul(he,Qt)|0;var Yi=(g+(W=W+Math.imul(Oe,Ni)|0)|0)+((8191&(O=(O=O+Math.imul(Oe,Mi)|0)+Math.imul(oe,Ni)|0))<<13)|0;g=((G=G+Math.imul(oe,Mi)|0)+(O>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,W=Math.imul(X,Le),O=(O=Math.imul(X,Je))+Math.imul(mt,Le)|0,G=Math.imul(mt,Je),W=W+Math.imul(be,Vt)|0,O=(O=O+Math.imul(be,ii)|0)+Math.imul(qe,Vt)|0,G=G+Math.imul(qe,ii)|0,W=W+Math.imul(ht,ot)|0,O=(O=O+Math.imul(ht,ft)|0)+Math.imul(Ge,ot)|0,G=G+Math.imul(Ge,ft)|0,W=W+Math.imul(Ke,gt)|0,O=(O=O+Math.imul(Ke,$e)|0)+Math.imul(lt,gt)|0,G=G+Math.imul(lt,$e)|0,W=W+Math.imul(Pe,vt)|0,O=(O=O+Math.imul(Pe,He)|0)+Math.imul(de,vt)|0,G=G+Math.imul(de,He)|0,W=W+Math.imul(pe,At)|0,O=(O=O+Math.imul(pe,Qt)|0)+Math.imul(Ve,At)|0,G=G+Math.imul(Ve,Qt)|0;var Yt=(g+(W=W+Math.imul(De,Ni)|0)|0)+((8191&(O=(O=O+Math.imul(De,Mi)|0)+Math.imul(he,Ni)|0))<<13)|0;g=((G=G+Math.imul(he,Mi)|0)+(O>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,W=Math.imul(X,Vt),O=(O=Math.imul(X,ii))+Math.imul(mt,Vt)|0,G=Math.imul(mt,ii),W=W+Math.imul(be,ot)|0,O=(O=O+Math.imul(be,ft)|0)+Math.imul(qe,ot)|0,G=G+Math.imul(qe,ft)|0,W=W+Math.imul(ht,gt)|0,O=(O=O+Math.imul(ht,$e)|0)+Math.imul(Ge,gt)|0,G=G+Math.imul(Ge,$e)|0,W=W+Math.imul(Ke,vt)|0,O=(O=O+Math.imul(Ke,He)|0)+Math.imul(lt,vt)|0,G=G+Math.imul(lt,He)|0,W=W+Math.imul(Pe,At)|0,O=(O=O+Math.imul(Pe,Qt)|0)+Math.imul(de,At)|0,G=G+Math.imul(de,Qt)|0;var qt=(g+(W=W+Math.imul(pe,Ni)|0)|0)+((8191&(O=(O=O+Math.imul(pe,Mi)|0)+Math.imul(Ve,Ni)|0))<<13)|0;g=((G=G+Math.imul(Ve,Mi)|0)+(O>>>13)|0)+(qt>>>26)|0,qt&=67108863,W=Math.imul(X,ot),O=(O=Math.imul(X,ft))+Math.imul(mt,ot)|0,G=Math.imul(mt,ft),W=W+Math.imul(be,gt)|0,O=(O=O+Math.imul(be,$e)|0)+Math.imul(qe,gt)|0,G=G+Math.imul(qe,$e)|0,W=W+Math.imul(ht,vt)|0,O=(O=O+Math.imul(ht,He)|0)+Math.imul(Ge,vt)|0,G=G+Math.imul(Ge,He)|0,W=W+Math.imul(Ke,At)|0,O=(O=O+Math.imul(Ke,Qt)|0)+Math.imul(lt,At)|0,G=G+Math.imul(lt,Qt)|0;var _e=(g+(W=W+Math.imul(Pe,Ni)|0)|0)+((8191&(O=(O=O+Math.imul(Pe,Mi)|0)+Math.imul(de,Ni)|0))<<13)|0;g=((G=G+Math.imul(de,Mi)|0)+(O>>>13)|0)+(_e>>>26)|0,_e&=67108863,W=Math.imul(X,gt),O=(O=Math.imul(X,$e))+Math.imul(mt,gt)|0,G=Math.imul(mt,$e),W=W+Math.imul(be,vt)|0,O=(O=O+Math.imul(be,He)|0)+Math.imul(qe,vt)|0,G=G+Math.imul(qe,He)|0,W=W+Math.imul(ht,At)|0,O=(O=O+Math.imul(ht,Qt)|0)+Math.imul(Ge,At)|0,G=G+Math.imul(Ge,Qt)|0;var dt=(g+(W=W+Math.imul(Ke,Ni)|0)|0)+((8191&(O=(O=O+Math.imul(Ke,Mi)|0)+Math.imul(lt,Ni)|0))<<13)|0;g=((G=G+Math.imul(lt,Mi)|0)+(O>>>13)|0)+(dt>>>26)|0,dt&=67108863,W=Math.imul(X,vt),O=(O=Math.imul(X,He))+Math.imul(mt,vt)|0,G=Math.imul(mt,He),W=W+Math.imul(be,At)|0,O=(O=O+Math.imul(be,Qt)|0)+Math.imul(qe,At)|0,G=G+Math.imul(qe,Qt)|0;var Dt=(g+(W=W+Math.imul(ht,Ni)|0)|0)+((8191&(O=(O=O+Math.imul(ht,Mi)|0)+Math.imul(Ge,Ni)|0))<<13)|0;g=((G=G+Math.imul(Ge,Mi)|0)+(O>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,W=Math.imul(X,At),O=(O=Math.imul(X,Qt))+Math.imul(mt,At)|0,G=Math.imul(mt,Qt);var Bt=(g+(W=W+Math.imul(be,Ni)|0)|0)+((8191&(O=(O=O+Math.imul(be,Mi)|0)+Math.imul(qe,Ni)|0))<<13)|0;g=((G=G+Math.imul(qe,Mi)|0)+(O>>>13)|0)+(Bt>>>26)|0,Bt&=67108863;var Ot=(g+(W=Math.imul(X,Ni))|0)+((8191&(O=(O=Math.imul(X,Mi))+Math.imul(mt,Ni)|0))<<13)|0;return g=((G=Math.imul(mt,Mi))+(O>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n[0]=Gi,n[1]=Xe,n[2]=It,n[3]=Se,n[4]=wt,n[5]=Zt,n[6]=si,n[7]=Ai,n[8]=Oi,n[9]=Qi,n[10]=en,n[11]=Yi,n[12]=Yt,n[13]=qt,n[14]=_e,n[15]=dt,n[16]=Dt,n[17]=Bt,n[18]=Ot,0!==g&&(n[19]=g,I.length++),I};function J(f,l,v){v.negative=l.negative^f.negative,v.length=f.length+l.length;for(var I=0,k=0,x=0;x>>26)|0)>>>26,n&=67108863}v.words[x]=g,I=n,n=k}return 0!==I?v.words[x]=I:v.length--,v._strip()}function ee(f,l,v){return J(f,l,v)}function me(f,l){this.x=f,this.y=l}Math.imul||(Q=j),s.prototype.mulTo=function(l,v){var k=this.length+l.length;return 10===this.length&&10===l.length?Q(this,l,v):k<63?j(this,l,v):k<1024?J(this,l,v):ee(this,l,v)},me.prototype.makeRBT=function(l){for(var v=new Array(l),I=s.prototype._countBits(l)-1,k=0;k>=1;return k},me.prototype.permute=function(l,v,I,k,x,n){for(var g=0;g>>=1)x++;return 1<>>=13),x>>>=13;for(n=2*v;n>=26,I+=x/67108864|0,I+=n>>>26,this.words[k]=67108863&n}return 0!==I&&(this.words[k]=I,this.length++),v?this.ineg():this},s.prototype.muln=function(l){return this.clone().imuln(l)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(l){var v=function Y(f){for(var l=new Array(f.bitLength()),v=0;v>>v%26&1;return l}(l);if(0===v.length)return new s(1);for(var I=this,k=0;k=0);var x,v=l%26,I=(l-v)/26,k=67108863>>>26-v<<26-v;if(0!==v){var n=0;for(x=0;x>>26-v}n&&(this.words[x]=n,this.length++)}if(0!==I){for(x=this.length-1;x>=0;x--)this.words[x+I]=this.words[x];for(x=0;x=0),k=v?(v-v%26)/26:0;var x=l%26,n=Math.min((l-x)/26,this.length),g=67108863^67108863>>>x<n)for(this.length-=n,O=0;O=0&&(0!==G||O>=k);O--){var ge=0|this.words[O];this.words[O]=G<<26-x|ge>>>x,G=ge&g}return W&&0!==G&&(W.words[W.length++]=G),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(l,v,I){return _(0===this.negative),this.iushrn(l,v,I)},s.prototype.shln=function(l){return this.clone().ishln(l)},s.prototype.ushln=function(l){return this.clone().iushln(l)},s.prototype.shrn=function(l){return this.clone().ishrn(l)},s.prototype.ushrn=function(l){return this.clone().iushrn(l)},s.prototype.testn=function(l){_("number"==typeof l&&l>=0);var v=l%26,I=(l-v)/26;return!(this.length<=I||!(this.words[I]&1<=0);var v=l%26,I=(l-v)/26;return _(0===this.negative,"imaskn works only with positive numbers"),this.length<=I?this:(0!==v&&I++,this.length=Math.min(I,this.length),0!==v&&(this.words[this.length-1]&=67108863^67108863>>>v<=67108864;v++)this.words[v]-=67108864,v===this.length-1?this.words[v+1]=1:this.words[v+1]++;return this.length=Math.max(this.length,v+1),this},s.prototype.isubn=function(l){if(_("number"==typeof l),_(l<67108864),l<0)return this.iaddn(-l);if(0!==this.negative)return this.negative=0,this.iaddn(l),this.negative=1,this;if(this.words[0]-=l,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var v=0;v>26)-(W/67108864|0),this.words[x+I]=67108863&n}for(;x>26,this.words[x+I]=67108863&n;if(0===g)return this._strip();for(_(-1===g),g=0,x=0;x>26,this.words[x]=67108863&n;return this.negative=1,this._strip()},s.prototype._wordDiv=function(l,v){var I,k=this.clone(),x=l,n=0|x.words[x.length-1];0!=(I=26-this._countBits(n))&&(x=x.ushln(I),k.iushln(I),n=0|x.words[x.length-1]);var O,W=k.length-x.length;if("mod"!==v){(O=new s(null)).length=W+1,O.words=new Array(O.length);for(var G=0;G=0;nt--){var Ue=67108864*(0|k.words[x.length+nt])+(0|k.words[x.length+nt-1]);for(Ue=Math.min(Ue/n|0,67108863),k._ishlnsubmul(x,Ue,nt);0!==k.negative;)Ue--,k.negative=0,k._ishlnsubmul(x,1,nt),k.isZero()||(k.negative^=1);O&&(O.words[nt]=Ue)}return O&&O._strip(),k._strip(),"div"!==v&&0!==I&&k.iushrn(I),{div:O||null,mod:k}},s.prototype.divmod=function(l,v,I){return _(!l.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===l.negative?(n=this.neg().divmod(l,v),"mod"!==v&&(k=n.div.neg()),"div"!==v&&(x=n.mod.neg(),I&&0!==x.negative&&x.iadd(l)),{div:k,mod:x}):0===this.negative&&0!==l.negative?(n=this.divmod(l.neg(),v),"mod"!==v&&(k=n.div.neg()),{div:k,mod:n.mod}):this.negative&l.negative?(n=this.neg().divmod(l.neg(),v),"div"!==v&&(x=n.mod.neg(),I&&0!==x.negative&&x.isub(l)),{div:n.div,mod:x}):l.length>this.length||this.cmp(l)<0?{div:new s(0),mod:this}:1===l.length?"div"===v?{div:this.divn(l.words[0]),mod:null}:"mod"===v?{div:null,mod:new s(this.modrn(l.words[0]))}:{div:this.divn(l.words[0]),mod:new s(this.modrn(l.words[0]))}:this._wordDiv(l,v);var k,x,n},s.prototype.div=function(l){return this.divmod(l,"div",!1).div},s.prototype.mod=function(l){return this.divmod(l,"mod",!1).mod},s.prototype.umod=function(l){return this.divmod(l,"mod",!0).mod},s.prototype.divRound=function(l){var v=this.divmod(l);if(v.mod.isZero())return v.div;var I=0!==v.div.negative?v.mod.isub(l):v.mod,k=l.ushrn(1),x=l.andln(1),n=I.cmp(k);return n<0||1===x&&0===n?v.div:0!==v.div.negative?v.div.isubn(1):v.div.iaddn(1)},s.prototype.modrn=function(l){var v=l<0;v&&(l=-l),_(l<=67108863);for(var I=(1<<26)%l,k=0,x=this.length-1;x>=0;x--)k=(I*k+(0|this.words[x]))%l;return v?-k:k},s.prototype.modn=function(l){return this.modrn(l)},s.prototype.idivn=function(l){var v=l<0;v&&(l=-l),_(l<=67108863);for(var I=0,k=this.length-1;k>=0;k--){var x=(0|this.words[k])+67108864*I;this.words[k]=x/l|0,I=x%l}return this._strip(),v?this.ineg():this},s.prototype.divn=function(l){return this.clone().idivn(l)},s.prototype.egcd=function(l){_(0===l.negative),_(!l.isZero());var v=this,I=l.clone();v=0!==v.negative?v.umod(l):v.clone();for(var k=new s(1),x=new s(0),n=new s(0),g=new s(1),W=0;v.isEven()&&I.isEven();)v.iushrn(1),I.iushrn(1),++W;for(var O=I.clone(),G=v.clone();!v.isZero();){for(var ge=0,nt=1;!(v.words[0]&nt)&&ge<26;++ge,nt<<=1);if(ge>0)for(v.iushrn(ge);ge-- >0;)(k.isOdd()||x.isOdd())&&(k.iadd(O),x.isub(G)),k.iushrn(1),x.iushrn(1);for(var Ue=0,at=1;!(I.words[0]&at)&&Ue<26;++Ue,at<<=1);if(Ue>0)for(I.iushrn(Ue);Ue-- >0;)(n.isOdd()||g.isOdd())&&(n.iadd(O),g.isub(G)),n.iushrn(1),g.iushrn(1);v.cmp(I)>=0?(v.isub(I),k.isub(n),x.isub(g)):(I.isub(v),n.isub(k),g.isub(x))}return{a:n,b:g,gcd:I.iushln(W)}},s.prototype._invmp=function(l){_(0===l.negative),_(!l.isZero());var ge,v=this,I=l.clone();v=0!==v.negative?v.umod(l):v.clone();for(var k=new s(1),x=new s(0),n=I.clone();v.cmpn(1)>0&&I.cmpn(1)>0;){for(var g=0,W=1;!(v.words[0]&W)&&g<26;++g,W<<=1);if(g>0)for(v.iushrn(g);g-- >0;)k.isOdd()&&k.iadd(n),k.iushrn(1);for(var O=0,G=1;!(I.words[0]&G)&&O<26;++O,G<<=1);if(O>0)for(I.iushrn(O);O-- >0;)x.isOdd()&&x.iadd(n),x.iushrn(1);v.cmp(I)>=0?(v.isub(I),k.isub(x)):(I.isub(v),x.isub(k))}return(ge=0===v.cmpn(1)?k:x).cmpn(0)<0&&ge.iadd(l),ge},s.prototype.gcd=function(l){if(this.isZero())return l.abs();if(l.isZero())return this.abs();var v=this.clone(),I=l.clone();v.negative=0,I.negative=0;for(var k=0;v.isEven()&&I.isEven();k++)v.iushrn(1),I.iushrn(1);for(;;){for(;v.isEven();)v.iushrn(1);for(;I.isEven();)I.iushrn(1);var x=v.cmp(I);if(x<0){var n=v;v=I,I=n}else if(0===x||0===I.cmpn(1))break;v.isub(I)}return I.iushln(k)},s.prototype.invm=function(l){return this.egcd(l).a.umod(l)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(l){return this.words[0]&l},s.prototype.bincn=function(l){_("number"==typeof l);var v=l%26,I=(l-v)/26,k=1<>>26,this.words[n]=g&=67108863}return 0!==x&&(this.words[n]=x,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(l){var I,v=l<0;if(0!==this.negative&&!v)return-1;if(0===this.negative&&v)return 1;if(this._strip(),this.length>1)I=1;else{v&&(l=-l),_(l<=67108863,"Number is too big");var k=0|this.words[0];I=k===l?0:kl.length)return 1;if(this.length=0;I--){var k=0|this.words[I],x=0|l.words[I];if(k!==x){kx&&(v=1);break}}return v},s.prototype.gtn=function(l){return 1===this.cmpn(l)},s.prototype.gt=function(l){return 1===this.cmp(l)},s.prototype.gten=function(l){return this.cmpn(l)>=0},s.prototype.gte=function(l){return this.cmp(l)>=0},s.prototype.ltn=function(l){return-1===this.cmpn(l)},s.prototype.lt=function(l){return-1===this.cmp(l)},s.prototype.lten=function(l){return this.cmpn(l)<=0},s.prototype.lte=function(l){return this.cmp(l)<=0},s.prototype.eqn=function(l){return 0===this.cmpn(l)},s.prototype.eq=function(l){return 0===this.cmp(l)},s.red=function(l){return new i(l)},s.prototype.toRed=function(l){return _(!this.red,"Already a number in reduction context"),_(0===this.negative,"red works only with positives"),l.convertTo(this)._forceRed(l)},s.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(l){return this.red=l,this},s.prototype.forceRed=function(l){return _(!this.red,"Already a number in reduction context"),this._forceRed(l)},s.prototype.redAdd=function(l){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,l)},s.prototype.redIAdd=function(l){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,l)},s.prototype.redSub=function(l){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,l)},s.prototype.redISub=function(l){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,l)},s.prototype.redShl=function(l){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,l)},s.prototype.redMul=function(l){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,l),this.red.mul(this,l)},s.prototype.redIMul=function(l){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,l),this.red.imul(this,l)},s.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(l){return _(this.red&&!l.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,l)};var re={k256:null,p224:null,p192:null,p25519:null};function ie(f,l){this.name=f,this.p=new s(l,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function se(){ie.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ce(){ie.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function Ce(){ie.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){ie.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function i(f){if("string"==typeof f){var l=s._prime(f);this.m=l.p,this.prime=l}else _(f.gtn(1),"modulus must be greater than 1"),this.m=f,this.prime=null}function a(f){i.call(this,f),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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)}ie.prototype._tmp=function(){var l=new s(null);return l.words=new Array(Math.ceil(this.n/13)),l},ie.prototype.ireduce=function(l){var I,v=l;do{this.split(v,this.tmp),I=(v=(v=this.imulK(v)).iadd(this.tmp)).bitLength()}while(I>this.n);var k=I0?v.isub(this.p):void 0!==v.strip?v.strip():v._strip(),v},ie.prototype.split=function(l,v){l.iushrn(this.n,0,v)},ie.prototype.imulK=function(l){return l.imul(this.k)},T(se,ie),se.prototype.split=function(l,v){for(var I=4194303,k=Math.min(l.length,9),x=0;x>>22,n=g}l.words[x-10]=n>>>=22,l.length-=0===n&&l.length>10?10:9},se.prototype.imulK=function(l){l.words[l.length]=0,l.words[l.length+1]=0,l.length+=2;for(var v=0,I=0;I>>=26,l.words[I]=x,v=k}return 0!==v&&(l.words[l.length++]=v),l},s._prime=function(l){if(re[l])return re[l];var v;if("k256"===l)v=new se;else if("p224"===l)v=new ce;else if("p192"===l)v=new Ce;else{if("p25519"!==l)throw new Error("Unknown prime "+l);v=new M}return re[l]=v,v},i.prototype._verify1=function(l){_(0===l.negative,"red works only with positives"),_(l.red,"red works only with red numbers")},i.prototype._verify2=function(l,v){_(0==(l.negative|v.negative),"red works only with positives"),_(l.red&&l.red===v.red,"red works only with red numbers")},i.prototype.imod=function(l){return this.prime?this.prime.ireduce(l)._forceRed(this):(w(l,l.umod(this.m)._forceRed(this)),l)},i.prototype.neg=function(l){return l.isZero()?l.clone():this.m.sub(l)._forceRed(this)},i.prototype.add=function(l,v){this._verify2(l,v);var I=l.add(v);return I.cmp(this.m)>=0&&I.isub(this.m),I._forceRed(this)},i.prototype.iadd=function(l,v){this._verify2(l,v);var I=l.iadd(v);return I.cmp(this.m)>=0&&I.isub(this.m),I},i.prototype.sub=function(l,v){this._verify2(l,v);var I=l.sub(v);return I.cmpn(0)<0&&I.iadd(this.m),I._forceRed(this)},i.prototype.isub=function(l,v){this._verify2(l,v);var I=l.isub(v);return I.cmpn(0)<0&&I.iadd(this.m),I},i.prototype.shl=function(l,v){return this._verify1(l),this.imod(l.ushln(v))},i.prototype.imul=function(l,v){return this._verify2(l,v),this.imod(l.imul(v))},i.prototype.mul=function(l,v){return this._verify2(l,v),this.imod(l.mul(v))},i.prototype.isqr=function(l){return this.imul(l,l.clone())},i.prototype.sqr=function(l){return this.mul(l,l)},i.prototype.sqrt=function(l){if(l.isZero())return l.clone();var v=this.m.andln(3);if(_(v%2==1),3===v){var I=this.m.add(new s(1)).iushrn(2);return this.pow(l,I)}for(var k=this.m.subn(1),x=0;!k.isZero()&&0===k.andln(1);)x++,k.iushrn(1);_(!k.isZero());var n=new s(1).toRed(this),g=n.redNeg(),W=this.m.subn(1).iushrn(1),O=this.m.bitLength();for(O=new s(2*O*O).toRed(this);0!==this.pow(O,W).cmp(g);)O.redIAdd(g);for(var G=this.pow(O,k),ge=this.pow(l,k.addn(1).iushrn(1)),nt=this.pow(l,k),Ue=x;0!==nt.cmp(n);){for(var at=nt,ye=0;0!==at.cmp(n);ye++)at=at.redSqr();_(ye=0;x--){for(var G=v.words[x],ge=O-1;ge>=0;ge--){var nt=G>>ge&1;n!==k[0]&&(n=this.sqr(n)),0!==nt||0!==g?(g<<=1,g|=nt,(4==++W||0===x&&0===ge)&&(n=this.mul(n,k[g]),W=0,g=0)):W=0}O=26}return n},i.prototype.convertTo=function(l){var v=l.umod(this.m);return v===l?v.clone():v},i.prototype.convertFrom=function(l){var v=l.clone();return v.red=null,v},s.mont=function(l){return new a(l)},T(a,i),a.prototype.convertTo=function(l){return this.imod(l.ushln(this.shift))},a.prototype.convertFrom=function(l){var v=this.imod(l.mul(this.rinv));return v.red=null,v},a.prototype.imul=function(l,v){if(l.isZero()||v.isZero())return l.words[0]=0,l.length=1,l;var I=l.imul(v),k=I.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=I.isub(k).iushrn(this.shift),n=x;return x.cmp(this.m)>=0?n=x.isub(this.m):x.cmpn(0)<0&&(n=x.iadd(this.m)),n._forceRed(this)},a.prototype.mul=function(l,v){if(l.isZero()||v.isZero())return new s(0)._forceRed(this);var I=l.mul(v),k=I.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=I.isub(k).iushrn(this.shift),n=x;return x.cmp(this.m)>=0?n=x.isub(this.m):x.cmpn(0)<0&&(n=x.iadd(this.m)),n._forceRed(this)},a.prototype.invm=function(l){return this.imod(l._invmp(this.m).mul(this.r2))._forceRed(this)}}(We=m.nmd(We),this)},7950:(We,q,m)=>{var t;function e(T){this.rand=T}if(We.exports=function(s){return t||(t=new e(null)),t.generate(s)},We.exports.Rand=e,e.prototype.generate=function(s){return this._rand(s)},e.prototype._rand=function(s){if(this.rand.getBytes)return this.rand.getBytes(s);for(var y=new Uint8Array(s),h=0;h{var t=m(3502).Buffer;function e(P){t.isBuffer(P)||(P=t.from(P));for(var d=P.length/4|0,w=new Array(d),C=0;C>>24]^H[Q>>>16&255]^V[J>>>8&255]^Y[255&ee]^d[ce++],re=D[Q>>>24]^H[J>>>16&255]^V[ee>>>8&255]^Y[255&j]^d[ce++],ie=D[J>>>24]^H[ee>>>16&255]^V[j>>>8&255]^Y[255&Q]^d[ce++],se=D[ee>>>24]^H[j>>>16&255]^V[Q>>>8&255]^Y[255&J]^d[ce++],j=me,Q=re,J=ie,ee=se;return me=(C[j>>>24]<<24|C[Q>>>16&255]<<16|C[J>>>8&255]<<8|C[255&ee])^d[ce++],re=(C[Q>>>24]<<24|C[J>>>16&255]<<16|C[ee>>>8&255]<<8|C[255&j])^d[ce++],ie=(C[J>>>24]<<24|C[ee>>>16&255]<<16|C[j>>>8&255]<<8|C[255&Q])^d[ce++],se=(C[ee>>>24]<<24|C[j>>>16&255]<<16|C[Q>>>8&255]<<8|C[255&J])^d[ce++],[me>>>=0,re>>>=0,ie>>>=0,se>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],y=function(){for(var P=new Array(256),d=0;d<256;d++)P[d]=d<128?d<<1:d<<1^283;for(var w=[],C=[],L=[[],[],[],[]],D=[[],[],[],[]],H=0,V=0,Y=0;Y<256;++Y){var j=V^V<<1^V<<2^V<<3^V<<4;w[H]=j=j>>>8^255&j^99,C[j]=H;var Q=P[H],J=P[Q],ee=P[J],me=257*P[j]^16843008*j;L[0][H]=me<<24|me>>>8,L[1][H]=me<<16|me>>>16,L[2][H]=me<<8|me>>>24,L[3][H]=me,D[0][j]=(me=16843009*ee^65537*J^257*Q^16843008*H)<<24|me>>>8,D[1][j]=me<<16|me>>>16,D[2][j]=me<<8|me>>>24,D[3][j]=me,0===H?H=V=1:(H=Q^P[P[P[ee^Q]]],V^=P[P[V]])}return{SBOX:w,INV_SBOX:C,SUB_MIX:L,INV_SUB_MIX:D}}();function h(P){this._key=e(P),this._reset()}h.blockSize=16,h.keySize=32,h.prototype.blockSize=h.blockSize,h.prototype.keySize=h.keySize,h.prototype._reset=function(){for(var P=this._key,d=P.length,w=d+6,C=4*(w+1),L=[],D=0;D>>24)>>>24]<<24|y.SBOX[H>>>16&255]<<16|y.SBOX[H>>>8&255]<<8|y.SBOX[255&H],H^=s[D/d|0]<<24):d>6&&D%d==4&&(H=y.SBOX[H>>>24]<<24|y.SBOX[H>>>16&255]<<16|y.SBOX[H>>>8&255]<<8|y.SBOX[255&H]),L[D]=L[D-d]^H}for(var V=[],Y=0;Y>>24]]^y.INV_SUB_MIX[1][y.SBOX[Q>>>16&255]]^y.INV_SUB_MIX[2][y.SBOX[Q>>>8&255]]^y.INV_SUB_MIX[3][y.SBOX[255&Q]]}this._nRounds=w,this._keySchedule=L,this._invKeySchedule=V},h.prototype.encryptBlockRaw=function(P){return T(P=e(P),this._keySchedule,y.SUB_MIX,y.SBOX,this._nRounds)},h.prototype.encryptBlock=function(P){var d=this.encryptBlockRaw(P),w=t.allocUnsafe(16);return w.writeUInt32BE(d[0],0),w.writeUInt32BE(d[1],4),w.writeUInt32BE(d[2],8),w.writeUInt32BE(d[3],12),w},h.prototype.decryptBlock=function(P){var d=(P=e(P))[1];P[1]=P[3],P[3]=d;var w=T(P,this._invKeySchedule,y.INV_SUB_MIX,y.INV_SBOX,this._nRounds),C=t.allocUnsafe(16);return C.writeUInt32BE(w[0],0),C.writeUInt32BE(w[3],4),C.writeUInt32BE(w[2],8),C.writeUInt32BE(w[1],12),C},h.prototype.scrub=function(){_(this._keySchedule),_(this._invKeySchedule),_(this._key)},We.exports.AES=h},9382:(We,q,m)=>{var t=m(1899),e=m(3502).Buffer,_=m(1052),T=m(3894),s=m(8857),y=m(8789),h=m(7968);function w(C,L,D,H){_.call(this);var V=e.alloc(4,0);this._cipher=new t.AES(L);var Y=this._cipher.encryptBlock(V);this._ghash=new s(Y),D=function d(C,L,D){if(12===L.length)return C._finID=e.concat([L,e.from([0,0,0,1])]),e.concat([L,e.from([0,0,0,2])]);var H=new s(D),V=L.length,Y=V%16;H.update(L),Y&&H.update(e.alloc(Y=16-Y,0)),H.update(e.alloc(8,0));var j=8*V,Q=e.alloc(8);Q.writeUIntBE(j,0,8),H.update(Q),C._finID=H.state;var J=e.from(C._finID);return h(J),J}(this,D,Y),this._prev=e.from(D),this._cache=e.allocUnsafe(0),this._secCache=e.allocUnsafe(0),this._decrypt=H,this._alen=0,this._len=0,this._mode=C,this._authTag=null,this._called=!1}T(w,_),w.prototype._update=function(C){if(!this._called&&this._alen){var L=16-this._alen%16;L<16&&(L=e.alloc(L,0),this._ghash.update(L))}this._called=!0;var D=this._mode.encrypt(this,C);return this._ghash.update(this._decrypt?C:D),this._len+=C.length,D},w.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var C=y(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function P(C,L){var D=0;C.length!==L.length&&D++;for(var H=Math.min(C.length,L.length),V=0;V{var t=m(6900),e=m(856),_=m(4946);q.createCipher=q.Cipher=t.createCipher,q.createCipheriv=q.Cipheriv=t.createCipheriv,q.createDecipher=q.Decipher=e.createDecipher,q.createDecipheriv=q.Decipheriv=e.createDecipheriv,q.listCiphers=q.getCiphers=function T(){return Object.keys(_)}},856:(We,q,m)=>{var t=m(9382),e=m(3502).Buffer,_=m(9171),T=m(8441),s=m(1052),y=m(1899),h=m(347);function d(H,V,Y){s.call(this),this._cache=new w,this._last=void 0,this._cipher=new y.AES(V),this._prev=e.from(Y),this._mode=H,this._autopadding=!0}function w(){this.cache=e.allocUnsafe(0)}function L(H,V,Y){var j=_[H.toLowerCase()];if(!j)throw new TypeError("invalid suite type");if("string"==typeof Y&&(Y=e.from(Y)),"GCM"!==j.mode&&Y.length!==j.iv)throw new TypeError("invalid iv length "+Y.length);if("string"==typeof V&&(V=e.from(V)),V.length!==j.key/8)throw new TypeError("invalid key length "+V.length);return"stream"===j.type?new T(j.module,V,Y,!0):"auth"===j.type?new t(j.module,V,Y,!0):new d(j.module,V,Y)}m(3894)(d,s),d.prototype._update=function(H){this._cache.add(H);for(var V,Y,j=[];V=this._cache.get(this._autopadding);)Y=this._mode.decrypt(this,V),j.push(Y);return e.concat(j)},d.prototype._final=function(){var H=this._cache.flush();if(this._autopadding)return function C(H){var V=H[15];if(V<1||V>16)throw new Error("unable to decrypt data");for(var Y=-1;++Y16)return V=this.cache.slice(0,16),this.cache=this.cache.slice(16),V}else if(this.cache.length>=16)return V=this.cache.slice(0,16),this.cache=this.cache.slice(16),V;return null},w.prototype.flush=function(){if(this.cache.length)return this.cache},q.createDecipher=function D(H,V){var Y=_[H.toLowerCase()];if(!Y)throw new TypeError("invalid suite type");var j=h(V,!1,Y.key,Y.iv);return L(H,j.key,j.iv)},q.createDecipheriv=L},6900:(We,q,m)=>{var t=m(9171),e=m(9382),_=m(3502).Buffer,T=m(8441),s=m(1052),y=m(1899),h=m(347);function d(H,V,Y){s.call(this),this._cache=new C,this._cipher=new y.AES(V),this._prev=_.from(Y),this._mode=H,this._autopadding=!0}m(3894)(d,s),d.prototype._update=function(H){this._cache.add(H);for(var V,Y,j=[];V=this._cache.get();)Y=this._mode.encrypt(this,V),j.push(Y);return _.concat(j)};var w=_.alloc(16,16);function C(){this.cache=_.allocUnsafe(0)}function L(H,V,Y){var j=t[H.toLowerCase()];if(!j)throw new TypeError("invalid suite type");if("string"==typeof V&&(V=_.from(V)),V.length!==j.key/8)throw new TypeError("invalid key length "+V.length);if("string"==typeof Y&&(Y=_.from(Y)),"GCM"!==j.mode&&Y.length!==j.iv)throw new TypeError("invalid iv length "+Y.length);return"stream"===j.type?new T(j.module,V,Y):"auth"===j.type?new e(j.module,V,Y):new d(j.module,V,Y)}d.prototype._final=function(){var H=this._cache.flush();if(this._autopadding)return H=this._mode.encrypt(this,H),this._cipher.scrub(),H;if(!H.equals(w))throw this._cipher.scrub(),new Error("data not multiple of block length")},d.prototype.setAutoPadding=function(H){return this._autopadding=!!H,this},C.prototype.add=function(H){this.cache=_.concat([this.cache,H])},C.prototype.get=function(){if(this.cache.length>15){var H=this.cache.slice(0,16);return this.cache=this.cache.slice(16),H}return null},C.prototype.flush=function(){for(var H=16-this.cache.length,V=_.allocUnsafe(H),Y=-1;++Y{var t=m(3502).Buffer,e=t.alloc(16,0);function T(y){var h=t.allocUnsafe(16);return h.writeUInt32BE(y[0]>>>0,0),h.writeUInt32BE(y[1]>>>0,4),h.writeUInt32BE(y[2]>>>0,8),h.writeUInt32BE(y[3]>>>0,12),h}function s(y){this.h=y,this.state=t.alloc(16,0),this.cache=t.allocUnsafe(0)}s.prototype.ghash=function(y){for(var h=-1;++h0;P--)y[P]=y[P]>>>1|(1&y[P-1])<<31;y[0]=y[0]>>>1,w&&(y[0]=y[0]^225<<24)}this.state=T(h)},s.prototype.update=function(y){this.cache=t.concat([this.cache,y]);for(var h;this.cache.length>=16;)h=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(h)},s.prototype.final=function(y,h){return this.cache.length&&this.ghash(t.concat([this.cache,e],16)),this.ghash(T([0,y,0,h])),this.state},We.exports=s},7968:We=>{We.exports=function q(m){for(var e,t=m.length;t--;){if(255!==(e=m.readUInt8(t))){e++,m.writeUInt8(e,t);break}m.writeUInt8(0,t)}}},4903:(We,q,m)=>{var t=m(8789);q.encrypt=function(e,_){var T=t(_,e._prev);return e._prev=e._cipher.encryptBlock(T),e._prev},q.decrypt=function(e,_){var T=e._prev;e._prev=_;var s=e._cipher.decryptBlock(_);return t(s,T)}},9885:(We,q,m)=>{var t=m(3502).Buffer,e=m(8789);function _(T,s,y){var h=s.length,P=e(s,T._cache);return T._cache=T._cache.slice(h),T._prev=t.concat([T._prev,y?s:P]),P}q.encrypt=function(T,s,y){for(var P,h=t.allocUnsafe(0);s.length;){if(0===T._cache.length&&(T._cache=T._cipher.encryptBlock(T._prev),T._prev=t.allocUnsafe(0)),!(T._cache.length<=s.length)){h=t.concat([h,_(T,s,y)]);break}h=t.concat([h,_(T,s.slice(0,P=T._cache.length),y)]),s=s.slice(P)}return h}},6531:(We,q,m)=>{var t=m(3502).Buffer;function e(T,s,y){for(var C,L,P=-1,w=0;++P<8;)w+=(128&(L=T._cipher.encryptBlock(T._prev)[0]^(C=s&1<<7-P?128:0)))>>P%8,T._prev=_(T._prev,y?C:L);return w}function _(T,s){var y=T.length,h=-1,P=t.allocUnsafe(T.length);for(T=t.concat([T,t.from([s])]);++h>7;return P}q.encrypt=function(T,s,y){for(var h=s.length,P=t.allocUnsafe(h),d=-1;++d{var t=m(3502).Buffer;function e(_,T,s){var h=_._cipher.encryptBlock(_._prev)[0]^T;return _._prev=t.concat([_._prev.slice(1),t.from([s?T:h])]),h}q.encrypt=function(_,T,s){for(var y=T.length,h=t.allocUnsafe(y),P=-1;++P{var t=m(8789),e=m(3502).Buffer,_=m(7968);function T(y){var h=y._cipher.encryptBlockRaw(y._prev);return _(y._prev),h}q.encrypt=function(y,h){var P=Math.ceil(h.length/16),d=y._cache.length;y._cache=e.concat([y._cache,e.allocUnsafe(16*P)]);for(var w=0;w{q.encrypt=function(m,t){return m._cipher.encryptBlock(t)},q.decrypt=function(m,t){return m._cipher.decryptBlock(t)}},9171:(We,q,m)=>{var t={ECB:m(1704),CBC:m(4903),CFB:m(9885),CFB8:m(1641),CFB1:m(6531),OFB:m(6816),CTR:m(1150),GCM:m(1150)},e=m(4946);for(var _ in e)e[_].module=t[e[_].mode];We.exports=e},6816:(We,q,m)=>{var t=m(8789);function e(_){return _._prev=_._cipher.encryptBlock(_._prev),_._prev}q.encrypt=function(_,T){for(;_._cache.length{var t=m(1899),e=m(3502).Buffer,_=m(1052);function s(y,h,P,d){_.call(this),this._cipher=new t.AES(h),this._prev=e.from(P),this._cache=e.allocUnsafe(0),this._secCache=e.allocUnsafe(0),this._decrypt=d,this._mode=y}m(3894)(s,_),s.prototype._update=function(y){return this._mode.encrypt(this,y,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},We.exports=s},5255:(We,q,m)=>{var t=m(9004),e=m(4330),_=m(9171),T=m(1115),s=m(347);function P(C,L,D){if(C=C.toLowerCase(),_[C])return e.createCipheriv(C,L,D);if(T[C])return new t({key:L,iv:D,mode:C});throw new TypeError("invalid suite type")}function d(C,L,D){if(C=C.toLowerCase(),_[C])return e.createDecipheriv(C,L,D);if(T[C])return new t({key:L,iv:D,mode:C,decrypt:!0});throw new TypeError("invalid suite type")}q.createCipher=q.Cipher=function y(C,L){var D,H;if(C=C.toLowerCase(),_[C])D=_[C].key,H=_[C].iv;else{if(!T[C])throw new TypeError("invalid suite type");D=8*T[C].key,H=T[C].iv}var V=s(L,!1,D,H);return P(C,V.key,V.iv)},q.createCipheriv=q.Cipheriv=P,q.createDecipher=q.Decipher=function h(C,L){var D,H;if(C=C.toLowerCase(),_[C])D=_[C].key,H=_[C].iv;else{if(!T[C])throw new TypeError("invalid suite type");D=8*T[C].key,H=T[C].iv}var V=s(L,!1,D,H);return d(C,V.key,V.iv)},q.createDecipheriv=q.Decipheriv=d,q.listCiphers=q.getCiphers=function w(){return Object.keys(T).concat(e.getCiphers())}},9004:(We,q,m)=>{var t=m(1052),e=m(3684),_=m(3894),T=m(3502).Buffer,s={"des-ede3-cbc":e.CBC.instantiate(e.EDE),"des-ede3":e.EDE,"des-ede-cbc":e.CBC.instantiate(e.EDE),"des-ede":e.EDE,"des-cbc":e.CBC.instantiate(e.DES),"des-ecb":e.DES};function y(h){t.call(this);var w,P=h.mode.toLowerCase(),d=s[P];w=h.decrypt?"decrypt":"encrypt";var C=h.key;T.isBuffer(C)||(C=T.from(C)),("des-ede"===P||"des-ede-cbc"===P)&&(C=T.concat([C,C.slice(0,8)]));var L=h.iv;T.isBuffer(L)||(L=T.from(L)),this._des=d.create({key:C,iv:L,type:w})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],We.exports=y,_(y,t),y.prototype._update=function(h){return T.from(this._des.update(h))},y.prototype._final=function(){return T.from(this._des.final())}},1115:(We,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:(We,q,m)=>{var t=m(8538),e=m(3753);function T(y){var P,h=y.modulus.byteLength();do{P=new t(e(h))}while(P.cmp(y.modulus)>=0||!P.umod(y.prime1)||!P.umod(y.prime2));return P}function s(y,h){var P=function _(y){var h=T(y);return{blinder:h.toRed(t.mont(y.modulus)).redPow(new t(y.publicExponent)).fromRed(),unblinder:h.invm(y.modulus)}}(h),d=h.modulus.byteLength(),w=new t(y).mul(P.blinder).umod(h.modulus),C=w.toRed(t.mont(h.prime1)),L=w.toRed(t.mont(h.prime2)),D=h.coefficient,H=h.prime1,V=h.prime2,Y=C.redPow(h.exponent1).fromRed(),j=L.redPow(h.exponent2).fromRed(),Q=Y.isub(j).imul(D).umod(H).imul(V);return j.iadd(Q).imul(P.unblinder).umod(h.modulus).toArrayLike(Buffer,"be",d)}s.getr=T,We.exports=s},7793:(We,q,m)=>{We.exports=m(5207)},3923:(We,q,m)=>{var t=m(3502).Buffer,e=m(6386),_=m(5685),T=m(3894),s=m(9947),y=m(3946),h=m(5207);function P(L){_.Writable.call(this);var D=h[L];if(!D)throw new Error("Unknown message digest");this._hashType=D.hash,this._hash=e(D.hash),this._tag=D.id,this._signType=D.sign}function d(L){_.Writable.call(this);var D=h[L];if(!D)throw new Error("Unknown message digest");this._hash=e(D.hash),this._tag=D.id,this._signType=D.sign}function w(L){return new P(L)}function C(L){return new d(L)}Object.keys(h).forEach(function(L){h[L].id=t.from(h[L].id,"hex"),h[L.toLowerCase()]=h[L]}),T(P,_.Writable),P.prototype._write=function(D,H,V){this._hash.update(D),V()},P.prototype.update=function(D,H){return"string"==typeof D&&(D=t.from(D,H)),this._hash.update(D),this},P.prototype.sign=function(D,H){this.end();var V=this._hash.digest(),Y=s(V,D,this._hashType,this._signType,this._tag);return H?Y.toString(H):Y},T(d,_.Writable),d.prototype._write=function(D,H,V){this._hash.update(D),V()},d.prototype.update=function(D,H){return"string"==typeof D&&(D=t.from(D,H)),this._hash.update(D),this},d.prototype.verify=function(D,H,V){"string"==typeof H&&(H=t.from(H,V)),this.end();var Y=this._hash.digest();return y(H,Y,D,this._signType,this._tag)},We.exports={Sign:w,Verify:C,createSign:w,createVerify:C}},9947:(We,q,m)=>{var t=m(3502).Buffer,e=m(4529),_=m(8466),T=m(7715).ec,s=m(8538),y=m(2772),h=m(1308);function L(j,Q,J,ee){if((j=t.from(j.toArray())).length0&&J.ishrn(ee),J}function V(j,Q,J){var ee,me;do{for(ee=t.alloc(0);8*ee.length{var t=m(3502).Buffer,e=m(8538),_=m(7715).ec,T=m(2772),s=m(1308);function d(w,C){if(w.cmpn(0)<=0)throw new Error("invalid sig");if(w.cmp(C)>=C)throw new Error("invalid sig")}We.exports=function y(w,C,L,D,H){var V=T(L);if("ec"===V.type){if("ecdsa"!==D&&"ecdsa/rsa"!==D)throw new Error("wrong public key type");return function h(w,C,L){var D=s[L.data.algorithm.curve.join(".")];if(!D)throw new Error("unknown curve "+L.data.algorithm.curve.join("."));return new _(D).verify(C,w,L.data.subjectPrivateKey.data)}(w,C,V)}if("dsa"===V.type){if("dsa"!==D)throw new Error("wrong public key type");return function P(w,C,L){var D=L.data.p,H=L.data.q,V=L.data.g,Y=L.data.pub_key,j=T.signature.decode(w,"der"),Q=j.s,J=j.r;d(Q,H),d(J,H);var ee=e.mont(D),me=Q.invm(H);return 0===V.toRed(ee).redPow(new e(C).mul(me).mod(H)).fromRed().mul(Y.toRed(ee).redPow(J.mul(me).mod(H)).fromRed()).mod(D).mod(H).cmp(J)}(w,C,V)}if("rsa"!==D&&"ecdsa/rsa"!==D)throw new Error("wrong public key type");C=t.concat([H,C]);for(var Y=V.modulus.byteLength(),j=[1],Q=0;C.length+j.length+2{We.exports=function(m,t){for(var e=Math.min(m.length,t.length),_=new Buffer(e),T=0;T{"use strict";var t=m(5343),e=m(8461),_="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;q.Buffer=h,q.SlowBuffer=function Q(he){return+he!=he&&(he=0),h.alloc(+he)},q.INSPECT_MAX_BYTES=50;var T=2147483647;function y(he){if(he>T)throw new RangeError('The value "'+he+'" is invalid for option "size"');var Me=new Uint8Array(he);return Object.setPrototypeOf(Me,h.prototype),Me}function h(he,Me,pe){if("number"==typeof he){if("string"==typeof Me)throw new TypeError('The "string" argument must be of type string. Received type number');return C(he)}return P(he,Me,pe)}function P(he,Me,pe){if("string"==typeof he)return function L(he,Me){if(("string"!=typeof Me||""===Me)&&(Me="utf8"),!h.isEncoding(Me))throw new TypeError("Unknown encoding: "+Me);var pe=0|J(he,Me),Ve=y(pe),Qe=Ve.write(he,Me);return Qe!==pe&&(Ve=Ve.slice(0,Qe)),Ve}(he,Me);if(ArrayBuffer.isView(he))return function H(he){if(oe(he,Uint8Array)){var Me=new Uint8Array(he);return V(Me.buffer,Me.byteOffset,Me.byteLength)}return D(he)}(he);if(null==he)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof he);if(oe(he,ArrayBuffer)||he&&oe(he.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(oe(he,SharedArrayBuffer)||he&&oe(he.buffer,SharedArrayBuffer)))return V(he,Me,pe);if("number"==typeof he)throw new TypeError('The "value" argument must not be of type number. Received type number');var Ve=he.valueOf&&he.valueOf();if(null!=Ve&&Ve!==he)return h.from(Ve,Me,pe);var Qe=function Y(he){if(h.isBuffer(he)){var Me=0|j(he.length),pe=y(Me);return 0===pe.length||he.copy(pe,0,0,Me),pe}return void 0!==he.length?"number"!=typeof he.length||Fe(he.length)?y(0):D(he):"Buffer"===he.type&&Array.isArray(he.data)?D(he.data):void 0}(he);if(Qe)return Qe;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof he[Symbol.toPrimitive])return h.from(he[Symbol.toPrimitive]("string"),Me,pe);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof he)}function d(he){if("number"!=typeof he)throw new TypeError('"size" argument must be of type number');if(he<0)throw new RangeError('The value "'+he+'" is invalid for option "size"')}function C(he){return d(he),y(he<0?0:0|j(he))}function D(he){for(var Me=he.length<0?0:0|j(he.length),pe=y(Me),Ve=0;Ve=T)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+T.toString(16)+" bytes");return 0|he}function J(he,Me){if(h.isBuffer(he))return he.length;if(ArrayBuffer.isView(he)||oe(he,ArrayBuffer))return he.byteLength;if("string"!=typeof he)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof he);var pe=he.length,Ve=arguments.length>2&&!0===arguments[2];if(!Ve&&0===pe)return 0;for(var Qe=!1;;)switch(Me){case"ascii":case"latin1":case"binary":return pe;case"utf8":case"utf-8":return at(he).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*pe;case"hex":return pe>>>1;case"base64":return fe(he).length;default:if(Qe)return Ve?-1:at(he).length;Me=(""+Me).toLowerCase(),Qe=!0}}function ee(he,Me,pe){var Ve=!1;if((void 0===Me||Me<0)&&(Me=0),Me>this.length||((void 0===pe||pe>this.length)&&(pe=this.length),pe<=0)||(pe>>>=0)<=(Me>>>=0))return"";for(he||(he="utf8");;)switch(he){case"hex":return x(this,Me,pe);case"utf8":case"utf-8":return f(this,Me,pe);case"ascii":return I(this,Me,pe);case"latin1":case"binary":return k(this,Me,pe);case"base64":return a(this,Me,pe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n(this,Me,pe);default:if(Ve)throw new TypeError("Unknown encoding: "+he);he=(he+"").toLowerCase(),Ve=!0}}function me(he,Me,pe){var Ve=he[Me];he[Me]=he[pe],he[pe]=Ve}function re(he,Me,pe,Ve,Qe){if(0===he.length)return-1;if("string"==typeof pe?(Ve=pe,pe=0):pe>2147483647?pe=2147483647:pe<-2147483648&&(pe=-2147483648),Fe(pe=+pe)&&(pe=Qe?0:he.length-1),pe<0&&(pe=he.length+pe),pe>=he.length){if(Qe)return-1;pe=he.length-1}else if(pe<0){if(!Qe)return-1;pe=0}if("string"==typeof Me&&(Me=h.from(Me,Ve)),h.isBuffer(Me))return 0===Me.length?-1:ie(he,Me,pe,Ve,Qe);if("number"==typeof Me)return Me&=255,"function"==typeof Uint8Array.prototype.indexOf?Qe?Uint8Array.prototype.indexOf.call(he,Me,pe):Uint8Array.prototype.lastIndexOf.call(he,Me,pe):ie(he,[Me],pe,Ve,Qe);throw new TypeError("val must be string, number or Buffer")}function ie(he,Me,pe,Ve,Qe){var lt,Pe=1,de=he.length,rt=Me.length;if(void 0!==Ve&&("ucs2"===(Ve=String(Ve).toLowerCase())||"ucs-2"===Ve||"utf16le"===Ve||"utf-16le"===Ve)){if(he.length<2||Me.length<2)return-1;Pe=2,de/=2,rt/=2,pe/=2}function Ke(yt,be){return 1===Pe?yt[be]:yt.readUInt16BE(be*Pe)}if(Qe){var Ut=-1;for(lt=pe;ltde&&(pe=de-rt),lt=pe;lt>=0;lt--){for(var ht=!0,Ge=0;GeQe&&(Ve=Qe):Ve=Qe;var Pe=Me.length;Ve>Pe/2&&(Ve=Pe/2);for(var de=0;de>8,Pe.push(pe%256),Pe.push(Ve);return Pe}(Me,he.length-pe),he,pe,Ve)}function a(he,Me,pe){return t.fromByteArray(0===Me&&pe===he.length?he:he.slice(Me,pe))}function f(he,Me,pe){pe=Math.min(he.length,pe);for(var Ve=[],Qe=Me;Qe239?4:Pe>223?3:Pe>191?2:1;if(Qe+rt<=pe)switch(rt){case 1:Pe<128&&(de=Pe);break;case 2:128==(192&(Ke=he[Qe+1]))&&(ht=(31&Pe)<<6|63&Ke)>127&&(de=ht);break;case 3:lt=he[Qe+2],128==(192&(Ke=he[Qe+1]))&&128==(192<)&&(ht=(15&Pe)<<12|(63&Ke)<<6|63<)>2047&&(ht<55296||ht>57343)&&(de=ht);break;case 4:lt=he[Qe+2],Ut=he[Qe+3],128==(192&(Ke=he[Qe+1]))&&128==(192<)&&128==(192&Ut)&&(ht=(15&Pe)<<18|(63&Ke)<<12|(63<)<<6|63&Ut)>65535&&ht<1114112&&(de=ht)}null===de?(de=65533,rt=1):de>65535&&(Ve.push((de-=65536)>>>10&1023|55296),de=56320|1023&de),Ve.push(de),Qe+=rt}return function v(he){var Me=he.length;if(Me<=l)return String.fromCharCode.apply(String,he);for(var pe="",Ve=0;VeQe.length?h.from(de).copy(Qe,Pe):Uint8Array.prototype.set.call(Qe,de,Pe);else{if(!h.isBuffer(de))throw new TypeError('"list" argument must be an Array of Buffers');de.copy(Qe,Pe)}Pe+=de.length}return Qe},h.byteLength=J,h.prototype._isBuffer=!0,h.prototype.swap16=function(){var Me=this.length;if(Me%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var pe=0;pepe&&(Me+=" ... "),""},_&&(h.prototype[_]=h.prototype.inspect),h.prototype.compare=function(Me,pe,Ve,Qe,Pe){if(oe(Me,Uint8Array)&&(Me=h.from(Me,Me.offset,Me.byteLength)),!h.isBuffer(Me))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Me);if(void 0===pe&&(pe=0),void 0===Ve&&(Ve=Me?Me.length:0),void 0===Qe&&(Qe=0),void 0===Pe&&(Pe=this.length),pe<0||Ve>Me.length||Qe<0||Pe>this.length)throw new RangeError("out of range index");if(Qe>=Pe&&pe>=Ve)return 0;if(Qe>=Pe)return-1;if(pe>=Ve)return 1;if(this===Me)return 0;for(var de=(Pe>>>=0)-(Qe>>>=0),rt=(Ve>>>=0)-(pe>>>=0),Ke=Math.min(de,rt),lt=this.slice(Qe,Pe),Ut=Me.slice(pe,Ve),ht=0;ht>>=0,isFinite(Ve)?(Ve>>>=0,void 0===Qe&&(Qe="utf8")):(Qe=Ve,Ve=void 0)}var Pe=this.length-pe;if((void 0===Ve||Ve>Pe)&&(Ve=Pe),Me.length>0&&(Ve<0||pe<0)||pe>this.length)throw new RangeError("Attempt to write outside buffer bounds");Qe||(Qe="utf8");for(var de=!1;;)switch(Qe){case"hex":return se(this,Me,pe,Ve);case"utf8":case"utf-8":return ce(this,Me,pe,Ve);case"ascii":case"latin1":case"binary":return Ce(this,Me,pe,Ve);case"base64":return M(this,Me,pe,Ve);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i(this,Me,pe,Ve);default:if(de)throw new TypeError("Unknown encoding: "+Qe);Qe=(""+Qe).toLowerCase(),de=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var l=4096;function I(he,Me,pe){var Ve="";pe=Math.min(he.length,pe);for(var Qe=Me;QeVe)&&(pe=Ve);for(var Qe="",Pe=Me;Pepe)throw new RangeError("Trying to access beyond buffer length")}function W(he,Me,pe,Ve,Qe,Pe){if(!h.isBuffer(he))throw new TypeError('"buffer" argument must be a Buffer instance');if(Me>Qe||Mehe.length)throw new RangeError("Index out of range")}function O(he,Me,pe,Ve,Qe,Pe){if(pe+Ve>he.length)throw new RangeError("Index out of range");if(pe<0)throw new RangeError("Index out of range")}function G(he,Me,pe,Ve,Qe){return Me=+Me,pe>>>=0,Qe||O(he,0,pe,4),e.write(he,Me,pe,Ve,23,4),pe+4}function ge(he,Me,pe,Ve,Qe){return Me=+Me,pe>>>=0,Qe||O(he,0,pe,8),e.write(he,Me,pe,Ve,52,8),pe+8}h.prototype.slice=function(Me,pe){var Ve=this.length;(Me=~~Me)<0?(Me+=Ve)<0&&(Me=0):Me>Ve&&(Me=Ve),(pe=void 0===pe?Ve:~~pe)<0?(pe+=Ve)<0&&(pe=0):pe>Ve&&(pe=Ve),pe>>=0,pe>>>=0,Ve||g(Me,pe,this.length);for(var Qe=this[Me],Pe=1,de=0;++de>>=0,pe>>>=0,Ve||g(Me,pe,this.length);for(var Qe=this[Me+--pe],Pe=1;pe>0&&(Pe*=256);)Qe+=this[Me+--pe]*Pe;return Qe},h.prototype.readUint8=h.prototype.readUInt8=function(Me,pe){return Me>>>=0,pe||g(Me,1,this.length),this[Me]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(Me,pe){return Me>>>=0,pe||g(Me,2,this.length),this[Me]|this[Me+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(Me,pe){return Me>>>=0,pe||g(Me,2,this.length),this[Me]<<8|this[Me+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(Me,pe){return Me>>>=0,pe||g(Me,4,this.length),(this[Me]|this[Me+1]<<8|this[Me+2]<<16)+16777216*this[Me+3]},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(Me,pe){return Me>>>=0,pe||g(Me,4,this.length),16777216*this[Me]+(this[Me+1]<<16|this[Me+2]<<8|this[Me+3])},h.prototype.readIntLE=function(Me,pe,Ve){Me>>>=0,pe>>>=0,Ve||g(Me,pe,this.length);for(var Qe=this[Me],Pe=1,de=0;++de=(Pe*=128)&&(Qe-=Math.pow(2,8*pe)),Qe},h.prototype.readIntBE=function(Me,pe,Ve){Me>>>=0,pe>>>=0,Ve||g(Me,pe,this.length);for(var Qe=pe,Pe=1,de=this[Me+--Qe];Qe>0&&(Pe*=256);)de+=this[Me+--Qe]*Pe;return de>=(Pe*=128)&&(de-=Math.pow(2,8*pe)),de},h.prototype.readInt8=function(Me,pe){return Me>>>=0,pe||g(Me,1,this.length),128&this[Me]?-1*(255-this[Me]+1):this[Me]},h.prototype.readInt16LE=function(Me,pe){Me>>>=0,pe||g(Me,2,this.length);var Ve=this[Me]|this[Me+1]<<8;return 32768&Ve?4294901760|Ve:Ve},h.prototype.readInt16BE=function(Me,pe){Me>>>=0,pe||g(Me,2,this.length);var Ve=this[Me+1]|this[Me]<<8;return 32768&Ve?4294901760|Ve:Ve},h.prototype.readInt32LE=function(Me,pe){return Me>>>=0,pe||g(Me,4,this.length),this[Me]|this[Me+1]<<8|this[Me+2]<<16|this[Me+3]<<24},h.prototype.readInt32BE=function(Me,pe){return Me>>>=0,pe||g(Me,4,this.length),this[Me]<<24|this[Me+1]<<16|this[Me+2]<<8|this[Me+3]},h.prototype.readFloatLE=function(Me,pe){return Me>>>=0,pe||g(Me,4,this.length),e.read(this,Me,!0,23,4)},h.prototype.readFloatBE=function(Me,pe){return Me>>>=0,pe||g(Me,4,this.length),e.read(this,Me,!1,23,4)},h.prototype.readDoubleLE=function(Me,pe){return Me>>>=0,pe||g(Me,8,this.length),e.read(this,Me,!0,52,8)},h.prototype.readDoubleBE=function(Me,pe){return Me>>>=0,pe||g(Me,8,this.length),e.read(this,Me,!1,52,8)},h.prototype.writeUintLE=h.prototype.writeUIntLE=function(Me,pe,Ve,Qe){Me=+Me,pe>>>=0,Ve>>>=0,Qe||W(this,Me,pe,Ve,Math.pow(2,8*Ve)-1,0);var de=1,rt=0;for(this[pe]=255&Me;++rt>>=0,Ve>>>=0,Qe||W(this,Me,pe,Ve,Math.pow(2,8*Ve)-1,0);var de=Ve-1,rt=1;for(this[pe+de]=255&Me;--de>=0&&(rt*=256);)this[pe+de]=Me/rt&255;return pe+Ve},h.prototype.writeUint8=h.prototype.writeUInt8=function(Me,pe,Ve){return Me=+Me,pe>>>=0,Ve||W(this,Me,pe,1,255,0),this[pe]=255&Me,pe+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(Me,pe,Ve){return Me=+Me,pe>>>=0,Ve||W(this,Me,pe,2,65535,0),this[pe]=255&Me,this[pe+1]=Me>>>8,pe+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(Me,pe,Ve){return Me=+Me,pe>>>=0,Ve||W(this,Me,pe,2,65535,0),this[pe]=Me>>>8,this[pe+1]=255&Me,pe+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(Me,pe,Ve){return Me=+Me,pe>>>=0,Ve||W(this,Me,pe,4,4294967295,0),this[pe+3]=Me>>>24,this[pe+2]=Me>>>16,this[pe+1]=Me>>>8,this[pe]=255&Me,pe+4},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(Me,pe,Ve){return Me=+Me,pe>>>=0,Ve||W(this,Me,pe,4,4294967295,0),this[pe]=Me>>>24,this[pe+1]=Me>>>16,this[pe+2]=Me>>>8,this[pe+3]=255&Me,pe+4},h.prototype.writeIntLE=function(Me,pe,Ve,Qe){if(Me=+Me,pe>>>=0,!Qe){var Pe=Math.pow(2,8*Ve-1);W(this,Me,pe,Ve,Pe-1,-Pe)}var de=0,rt=1,Ke=0;for(this[pe]=255&Me;++de>0)-Ke&255;return pe+Ve},h.prototype.writeIntBE=function(Me,pe,Ve,Qe){if(Me=+Me,pe>>>=0,!Qe){var Pe=Math.pow(2,8*Ve-1);W(this,Me,pe,Ve,Pe-1,-Pe)}var de=Ve-1,rt=1,Ke=0;for(this[pe+de]=255&Me;--de>=0&&(rt*=256);)Me<0&&0===Ke&&0!==this[pe+de+1]&&(Ke=1),this[pe+de]=(Me/rt>>0)-Ke&255;return pe+Ve},h.prototype.writeInt8=function(Me,pe,Ve){return Me=+Me,pe>>>=0,Ve||W(this,Me,pe,1,127,-128),Me<0&&(Me=255+Me+1),this[pe]=255&Me,pe+1},h.prototype.writeInt16LE=function(Me,pe,Ve){return Me=+Me,pe>>>=0,Ve||W(this,Me,pe,2,32767,-32768),this[pe]=255&Me,this[pe+1]=Me>>>8,pe+2},h.prototype.writeInt16BE=function(Me,pe,Ve){return Me=+Me,pe>>>=0,Ve||W(this,Me,pe,2,32767,-32768),this[pe]=Me>>>8,this[pe+1]=255&Me,pe+2},h.prototype.writeInt32LE=function(Me,pe,Ve){return Me=+Me,pe>>>=0,Ve||W(this,Me,pe,4,2147483647,-2147483648),this[pe]=255&Me,this[pe+1]=Me>>>8,this[pe+2]=Me>>>16,this[pe+3]=Me>>>24,pe+4},h.prototype.writeInt32BE=function(Me,pe,Ve){return Me=+Me,pe>>>=0,Ve||W(this,Me,pe,4,2147483647,-2147483648),Me<0&&(Me=4294967295+Me+1),this[pe]=Me>>>24,this[pe+1]=Me>>>16,this[pe+2]=Me>>>8,this[pe+3]=255&Me,pe+4},h.prototype.writeFloatLE=function(Me,pe,Ve){return G(this,Me,pe,!0,Ve)},h.prototype.writeFloatBE=function(Me,pe,Ve){return G(this,Me,pe,!1,Ve)},h.prototype.writeDoubleLE=function(Me,pe,Ve){return ge(this,Me,pe,!0,Ve)},h.prototype.writeDoubleBE=function(Me,pe,Ve){return ge(this,Me,pe,!1,Ve)},h.prototype.copy=function(Me,pe,Ve,Qe){if(!h.isBuffer(Me))throw new TypeError("argument should be a Buffer");if(Ve||(Ve=0),!Qe&&0!==Qe&&(Qe=this.length),pe>=Me.length&&(pe=Me.length),pe||(pe=0),Qe>0&&Qe=this.length)throw new RangeError("Index out of range");if(Qe<0)throw new RangeError("sourceEnd out of bounds");Qe>this.length&&(Qe=this.length),Me.length-pe>>=0,Ve=void 0===Ve?this.length:Ve>>>0,Me||(Me=0),"number"==typeof Me)for(de=pe;de55295&&pe<57344){if(!Qe){if(pe>56319){(Me-=3)>-1&&Pe.push(239,191,189);continue}if(de+1===Ve){(Me-=3)>-1&&Pe.push(239,191,189);continue}Qe=pe;continue}if(pe<56320){(Me-=3)>-1&&Pe.push(239,191,189),Qe=pe;continue}pe=65536+(Qe-55296<<10|pe-56320)}else Qe&&(Me-=3)>-1&&Pe.push(239,191,189);if(Qe=null,pe<128){if((Me-=1)<0)break;Pe.push(pe)}else if(pe<2048){if((Me-=2)<0)break;Pe.push(pe>>6|192,63&pe|128)}else if(pe<65536){if((Me-=3)<0)break;Pe.push(pe>>12|224,pe>>6&63|128,63&pe|128)}else{if(!(pe<1114112))throw new Error("Invalid code point");if((Me-=4)<0)break;Pe.push(pe>>18|240,pe>>12&63|128,pe>>6&63|128,63&pe|128)}}return Pe}function fe(he){return t.toByteArray(function Ue(he){if((he=(he=he.split("=")[0]).trim().replace(nt,"")).length<2)return"";for(;he.length%4!=0;)he+="=";return he}(he))}function Oe(he,Me,pe,Ve){for(var Qe=0;Qe=Me.length||Qe>=he.length);++Qe)Me[Qe+pe]=he[Qe];return Qe}function oe(he,Me){return he instanceof Me||null!=he&&null!=he.constructor&&null!=he.constructor.name&&he.constructor.name===Me.name}function Fe(he){return he!=he}var De=function(){for(var he="0123456789abcdef",Me=new Array(256),pe=0;pe<16;++pe)for(var Ve=16*pe,Qe=0;Qe<16;++Qe)Me[Ve+Qe]=he[pe]+he[Qe];return Me}()},1052:(We,q,m)=>{var t=m(3502).Buffer,e=m(295).Transform,_=m(3054).s;function s(y){e.call(this),this.hashMode="string"==typeof y,this.hashMode?this[y]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}m(3894)(s,e),s.prototype.update=function(y,h,P){"string"==typeof y&&(y=t.from(y,h));var d=this._update(y);return this.hashMode?this:(P&&(d=this._toString(d,P)),d)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(y,h,P){var d;try{this.hashMode?this._update(y):this.push(this._update(y))}catch(w){d=w}finally{P(d)}},s.prototype._flush=function(y){var h;try{this.push(this.__final())}catch(P){h=P}y(h)},s.prototype._finalOrDigest=function(y){var h=this.__final()||t.alloc(0);return y&&(h=this._toString(h,y,!0)),h},s.prototype._toString=function(y,h,P){if(this._decoder||(this._decoder=new _(h),this._encoding=h),this._encoding!==h)throw new Error("can't switch encodings");var d=this._decoder.write(y);return P&&(d+=this._decoder.end()),d},We.exports=s},6128:function(We){!function(q){"use strict";var m={bytesToHex:function(_){return function t(_){return _.map(function(T){return function e(_,T){return _.length>T?_:Array(T-_.length+1).join("0")+_}(T.toString(16),2)}).join("")}(_)},hexToBytes:function(_){if(_.length%2==1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return 0===_.indexOf("0x")&&(_=_.slice(2)),_.match(/../g).map(function(T){return parseInt(T,16)})}};We.exports?We.exports=m:q.convertHex=m}(this)},5612:function(We){!function(q){"use strict";var m={bytesToString:function(t){return t.map(function(e){return String.fromCharCode(e)}).join("")},stringToBytes:function(t){return t.split("").map(function(e){return e.charCodeAt(0)})}};m.UTF8={bytesToString:function(t){return decodeURIComponent(escape(m.bytesToString(t)))},stringToBytes:function(t){return m.stringToBytes(unescape(encodeURIComponent(t)))}},We.exports?We.exports=m:q.convertString=m}(this)},4746:(We,q,m)=>{var t=m(7715),e=m(6422);We.exports=function(h){return new T(h)};var _={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 T(y){this.curveType=_[y],this.curveType||(this.curveType={name:y}),this.curve=new t.ec(this.curveType.name),this.keys=void 0}function s(y,h,P){Array.isArray(y)||(y=y.toArray());var d=new Buffer(y);if(P&&d.length=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function P(M,i,a){var f=h(M,a);return a-1>=i&&(f|=h(M,a-1)<<4),f}function d(M,i,a,f){for(var l=0,v=Math.min(M.length,a),I=i;I=49?k-49+10:k>=17?k-17+10:k}return l}s.isBN=function(i){return i instanceof s||null!==i&&"object"==typeof i&&i.constructor.wordSize===s.wordSize&&Array.isArray(i.words)},s.max=function(i,a){return i.cmp(a)>0?i:a},s.min=function(i,a){return i.cmp(a)<0?i:a},s.prototype._init=function(i,a,f){if("number"==typeof i)return this._initNumber(i,a,f);if("object"==typeof i)return this._initArray(i,a,f);"hex"===a&&(a=16),_(a===(0|a)&&a>=2&&a<=36);var l=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(l++,this.negative=1),l=0;l-=3)this.words[v]|=(I=i[l]|i[l-1]<<8|i[l-2]<<16)<>>26-k&67108863,(k+=24)>=26&&(k-=26,v++);else if("le"===f)for(l=0,v=0;l>>26-k&67108863,(k+=24)>=26&&(k-=26,v++);return this.strip()},s.prototype._parseHex=function(i,a,f){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var l=0;l=a;l-=2)k=P(i,a,l)<=18?(v-=18,this.words[I+=1]|=k>>>26):v+=8;else for(l=(i.length-a)%2==0?a+1:a;l=18?(v-=18,this.words[I+=1]|=k>>>26):v+=8;this.strip()},s.prototype._parseBase=function(i,a,f){this.words=[0],this.length=1;for(var l=0,v=1;v<=67108863;v*=a)l++;l--,v=v/a|0;for(var I=i.length-f,k=I%l,x=Math.min(I,I-k)+f,n=0,g=f;g1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var w=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[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],L=[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 H(M,i,a){a.negative=i.negative^M.negative;var f=M.length+i.length|0;a.length=f,f=f-1|0;var l=0|M.words[0],v=0|i.words[0],I=l*v,x=I/67108864|0;a.words[0]=67108863&I;for(var n=1;n>>26,W=67108863&x,O=Math.min(n,i.length-1),G=Math.max(0,n-M.length+1);G<=O;G++)g+=(I=(l=0|M.words[n-G|0])*(v=0|i.words[G])+W)/67108864|0,W=67108863&I;a.words[n]=0|W,x=0|g}return 0!==x?a.words[n]=0|x:a.length--,a.strip()}s.prototype.toString=function(i,a){var f;if(a=0|a||1,16===(i=i||10)||"hex"===i){f="";for(var l=0,v=0,I=0;I>>24-l&16777215)||I!==this.length-1?w[6-x.length]+x+f:x+f,(l+=2)>=26&&(l-=26,I--)}for(0!==v&&(f=v.toString(16)+f);f.length%a!=0;)f="0"+f;return 0!==this.negative&&(f="-"+f),f}if(i===(0|i)&&i>=2&&i<=36){var n=C[i],g=L[i];f="";var W=this.clone();for(W.negative=0;!W.isZero();){var O=W.modn(g).toString(i);f=(W=W.idivn(g)).isZero()?O+f:w[n-O.length]+O+f}for(this.isZero()&&(f="0"+f);f.length%a!=0;)f="0"+f;return 0!==this.negative&&(f="-"+f),f}_(!1,"Base should be between 2 and 36")},s.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&&_(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(i,a){return _(typeof y<"u"),this.toArrayLike(y,i,a)},s.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},s.prototype.toArrayLike=function(i,a,f){var l=this.byteLength(),v=f||Math.max(1,l);_(l<=v,"byte array longer than desired length"),_(v>0,"Requested array length <= 0"),this.strip();var x,n,I="le"===a,k=new i(v),g=this.clone();if(I){for(n=0;!g.isZero();n++)x=g.andln(255),g.iushrn(8),k[n]=x;for(;n=4096&&(f+=13,a>>>=13),a>=64&&(f+=7,a>>>=7),a>=8&&(f+=4,a>>>=4),a>=2&&(f+=2,a>>>=2),f+a},s.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,f=0;return 8191&a||(f+=13,a>>>=13),127&a||(f+=7,a>>>=7),15&a||(f+=4,a>>>=4),3&a||(f+=2,a>>>=2),1&a||f++,f},s.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},s.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},s.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var f=0;fi.length?this.clone().iand(i):i.clone().iand(this)},s.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},s.prototype.iuxor=function(i){var a,f;this.length>i.length?(a=this,f=i):(a=i,f=this);for(var l=0;li.length?this.clone().ixor(i):i.clone().ixor(this)},s.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},s.prototype.inotn=function(i){_("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),f=i%26;this._expand(a),f>0&&a--;for(var l=0;l0&&(this.words[l]=~this.words[l]&67108863>>26-f),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,a){_("number"==typeof i&&i>=0);var f=i/26|0,l=i%26;return this._expand(f+1),this.words[f]=a?this.words[f]|1<i.length?(f=this,l=i):(f=i,l=this);for(var v=0,I=0;I>>26;for(;0!==v&&I>>26;if(this.length=f.length,0!==v)this.words[this.length]=v,this.length++;else if(f!==this)for(;Ii.length?this.clone().iadd(i):i.clone().iadd(this)},s.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 l,v,f=this.cmp(i);if(0===f)return this.negative=0,this.length=1,this.words[0]=0,this;f>0?(l=this,v=i):(l=i,v=this);for(var I=0,k=0;k>26,this.words[k]=67108863&a;for(;0!==I&&k>26,this.words[k]=67108863&a;if(0===I&&k>>13,ge=0|l[1],nt=8191&ge,Ue=ge>>>13,at=0|l[2],ye=8191&at,xe=at>>>13,fe=0|l[3],Oe=8191&fe,oe=fe>>>13,Fe=0|l[4],De=8191&Fe,he=Fe>>>13,Me=0|l[5],pe=8191&Me,Ve=Me>>>13,Qe=0|l[6],Pe=8191&Qe,de=Qe>>>13,rt=0|l[7],Ke=8191&rt,lt=rt>>>13,Ut=0|l[8],ht=8191&Ut,Ge=Ut>>>13,yt=0|l[9],be=8191&yt,qe=yt>>>13,Ie=0|v[0],X=8191&Ie,mt=Ie>>>13,Tt=0|v[1],it=8191&Tt,je=Tt>>>13,zt=0|v[2],xt=8191&zt,Nt=zt>>>13,Gt=0|v[3],ke=8191&Gt,$=Gt>>>13,ue=0|v[4],Le=8191&ue,Je=ue>>>13,$t=0|v[5],Vt=8191&$t,ii=$t>>>13,pt=0|v[6],ot=8191&pt,ft=pt>>>13,St=0|v[7],gt=8191&St,$e=St>>>13,_t=0|v[8],vt=8191&_t,He=_t>>>13,Et=0|v[9],At=8191&Et,Qt=Et>>>13;f.negative=i.negative^a.negative,f.length=19;var zi=(k+(x=Math.imul(O,X))|0)+((8191&(n=(n=Math.imul(O,mt))+Math.imul(G,X)|0))<<13)|0;k=((g=Math.imul(G,mt))+(n>>>13)|0)+(zi>>>26)|0,zi&=67108863,x=Math.imul(nt,X),n=(n=Math.imul(nt,mt))+Math.imul(Ue,X)|0,g=Math.imul(Ue,mt);var Ni=(k+(x=x+Math.imul(O,it)|0)|0)+((8191&(n=(n=n+Math.imul(O,je)|0)+Math.imul(G,it)|0))<<13)|0;k=((g=g+Math.imul(G,je)|0)+(n>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(ye,X),n=(n=Math.imul(ye,mt))+Math.imul(xe,X)|0,g=Math.imul(xe,mt),x=x+Math.imul(nt,it)|0,n=(n=n+Math.imul(nt,je)|0)+Math.imul(Ue,it)|0,g=g+Math.imul(Ue,je)|0;var Mi=(k+(x=x+Math.imul(O,xt)|0)|0)+((8191&(n=(n=n+Math.imul(O,Nt)|0)+Math.imul(G,xt)|0))<<13)|0;k=((g=g+Math.imul(G,Nt)|0)+(n>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,x=Math.imul(Oe,X),n=(n=Math.imul(Oe,mt))+Math.imul(oe,X)|0,g=Math.imul(oe,mt),x=x+Math.imul(ye,it)|0,n=(n=n+Math.imul(ye,je)|0)+Math.imul(xe,it)|0,g=g+Math.imul(xe,je)|0,x=x+Math.imul(nt,xt)|0,n=(n=n+Math.imul(nt,Nt)|0)+Math.imul(Ue,xt)|0,g=g+Math.imul(Ue,Nt)|0;var Gi=(k+(x=x+Math.imul(O,ke)|0)|0)+((8191&(n=(n=n+Math.imul(O,$)|0)+Math.imul(G,ke)|0))<<13)|0;k=((g=g+Math.imul(G,$)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,x=Math.imul(De,X),n=(n=Math.imul(De,mt))+Math.imul(he,X)|0,g=Math.imul(he,mt),x=x+Math.imul(Oe,it)|0,n=(n=n+Math.imul(Oe,je)|0)+Math.imul(oe,it)|0,g=g+Math.imul(oe,je)|0,x=x+Math.imul(ye,xt)|0,n=(n=n+Math.imul(ye,Nt)|0)+Math.imul(xe,xt)|0,g=g+Math.imul(xe,Nt)|0,x=x+Math.imul(nt,ke)|0,n=(n=n+Math.imul(nt,$)|0)+Math.imul(Ue,ke)|0,g=g+Math.imul(Ue,$)|0;var Xe=(k+(x=x+Math.imul(O,Le)|0)|0)+((8191&(n=(n=n+Math.imul(O,Je)|0)+Math.imul(G,Le)|0))<<13)|0;k=((g=g+Math.imul(G,Je)|0)+(n>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,x=Math.imul(pe,X),n=(n=Math.imul(pe,mt))+Math.imul(Ve,X)|0,g=Math.imul(Ve,mt),x=x+Math.imul(De,it)|0,n=(n=n+Math.imul(De,je)|0)+Math.imul(he,it)|0,g=g+Math.imul(he,je)|0,x=x+Math.imul(Oe,xt)|0,n=(n=n+Math.imul(Oe,Nt)|0)+Math.imul(oe,xt)|0,g=g+Math.imul(oe,Nt)|0,x=x+Math.imul(ye,ke)|0,n=(n=n+Math.imul(ye,$)|0)+Math.imul(xe,ke)|0,g=g+Math.imul(xe,$)|0,x=x+Math.imul(nt,Le)|0,n=(n=n+Math.imul(nt,Je)|0)+Math.imul(Ue,Le)|0,g=g+Math.imul(Ue,Je)|0;var It=(k+(x=x+Math.imul(O,Vt)|0)|0)+((8191&(n=(n=n+Math.imul(O,ii)|0)+Math.imul(G,Vt)|0))<<13)|0;k=((g=g+Math.imul(G,ii)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,x=Math.imul(Pe,X),n=(n=Math.imul(Pe,mt))+Math.imul(de,X)|0,g=Math.imul(de,mt),x=x+Math.imul(pe,it)|0,n=(n=n+Math.imul(pe,je)|0)+Math.imul(Ve,it)|0,g=g+Math.imul(Ve,je)|0,x=x+Math.imul(De,xt)|0,n=(n=n+Math.imul(De,Nt)|0)+Math.imul(he,xt)|0,g=g+Math.imul(he,Nt)|0,x=x+Math.imul(Oe,ke)|0,n=(n=n+Math.imul(Oe,$)|0)+Math.imul(oe,ke)|0,g=g+Math.imul(oe,$)|0,x=x+Math.imul(ye,Le)|0,n=(n=n+Math.imul(ye,Je)|0)+Math.imul(xe,Le)|0,g=g+Math.imul(xe,Je)|0,x=x+Math.imul(nt,Vt)|0,n=(n=n+Math.imul(nt,ii)|0)+Math.imul(Ue,Vt)|0,g=g+Math.imul(Ue,ii)|0;var Se=(k+(x=x+Math.imul(O,ot)|0)|0)+((8191&(n=(n=n+Math.imul(O,ft)|0)+Math.imul(G,ot)|0))<<13)|0;k=((g=g+Math.imul(G,ft)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,x=Math.imul(Ke,X),n=(n=Math.imul(Ke,mt))+Math.imul(lt,X)|0,g=Math.imul(lt,mt),x=x+Math.imul(Pe,it)|0,n=(n=n+Math.imul(Pe,je)|0)+Math.imul(de,it)|0,g=g+Math.imul(de,je)|0,x=x+Math.imul(pe,xt)|0,n=(n=n+Math.imul(pe,Nt)|0)+Math.imul(Ve,xt)|0,g=g+Math.imul(Ve,Nt)|0,x=x+Math.imul(De,ke)|0,n=(n=n+Math.imul(De,$)|0)+Math.imul(he,ke)|0,g=g+Math.imul(he,$)|0,x=x+Math.imul(Oe,Le)|0,n=(n=n+Math.imul(Oe,Je)|0)+Math.imul(oe,Le)|0,g=g+Math.imul(oe,Je)|0,x=x+Math.imul(ye,Vt)|0,n=(n=n+Math.imul(ye,ii)|0)+Math.imul(xe,Vt)|0,g=g+Math.imul(xe,ii)|0,x=x+Math.imul(nt,ot)|0,n=(n=n+Math.imul(nt,ft)|0)+Math.imul(Ue,ot)|0,g=g+Math.imul(Ue,ft)|0;var wt=(k+(x=x+Math.imul(O,gt)|0)|0)+((8191&(n=(n=n+Math.imul(O,$e)|0)+Math.imul(G,gt)|0))<<13)|0;k=((g=g+Math.imul(G,$e)|0)+(n>>>13)|0)+(wt>>>26)|0,wt&=67108863,x=Math.imul(ht,X),n=(n=Math.imul(ht,mt))+Math.imul(Ge,X)|0,g=Math.imul(Ge,mt),x=x+Math.imul(Ke,it)|0,n=(n=n+Math.imul(Ke,je)|0)+Math.imul(lt,it)|0,g=g+Math.imul(lt,je)|0,x=x+Math.imul(Pe,xt)|0,n=(n=n+Math.imul(Pe,Nt)|0)+Math.imul(de,xt)|0,g=g+Math.imul(de,Nt)|0,x=x+Math.imul(pe,ke)|0,n=(n=n+Math.imul(pe,$)|0)+Math.imul(Ve,ke)|0,g=g+Math.imul(Ve,$)|0,x=x+Math.imul(De,Le)|0,n=(n=n+Math.imul(De,Je)|0)+Math.imul(he,Le)|0,g=g+Math.imul(he,Je)|0,x=x+Math.imul(Oe,Vt)|0,n=(n=n+Math.imul(Oe,ii)|0)+Math.imul(oe,Vt)|0,g=g+Math.imul(oe,ii)|0,x=x+Math.imul(ye,ot)|0,n=(n=n+Math.imul(ye,ft)|0)+Math.imul(xe,ot)|0,g=g+Math.imul(xe,ft)|0,x=x+Math.imul(nt,gt)|0,n=(n=n+Math.imul(nt,$e)|0)+Math.imul(Ue,gt)|0,g=g+Math.imul(Ue,$e)|0;var Zt=(k+(x=x+Math.imul(O,vt)|0)|0)+((8191&(n=(n=n+Math.imul(O,He)|0)+Math.imul(G,vt)|0))<<13)|0;k=((g=g+Math.imul(G,He)|0)+(n>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,x=Math.imul(be,X),n=(n=Math.imul(be,mt))+Math.imul(qe,X)|0,g=Math.imul(qe,mt),x=x+Math.imul(ht,it)|0,n=(n=n+Math.imul(ht,je)|0)+Math.imul(Ge,it)|0,g=g+Math.imul(Ge,je)|0,x=x+Math.imul(Ke,xt)|0,n=(n=n+Math.imul(Ke,Nt)|0)+Math.imul(lt,xt)|0,g=g+Math.imul(lt,Nt)|0,x=x+Math.imul(Pe,ke)|0,n=(n=n+Math.imul(Pe,$)|0)+Math.imul(de,ke)|0,g=g+Math.imul(de,$)|0,x=x+Math.imul(pe,Le)|0,n=(n=n+Math.imul(pe,Je)|0)+Math.imul(Ve,Le)|0,g=g+Math.imul(Ve,Je)|0,x=x+Math.imul(De,Vt)|0,n=(n=n+Math.imul(De,ii)|0)+Math.imul(he,Vt)|0,g=g+Math.imul(he,ii)|0,x=x+Math.imul(Oe,ot)|0,n=(n=n+Math.imul(Oe,ft)|0)+Math.imul(oe,ot)|0,g=g+Math.imul(oe,ft)|0,x=x+Math.imul(ye,gt)|0,n=(n=n+Math.imul(ye,$e)|0)+Math.imul(xe,gt)|0,g=g+Math.imul(xe,$e)|0,x=x+Math.imul(nt,vt)|0,n=(n=n+Math.imul(nt,He)|0)+Math.imul(Ue,vt)|0,g=g+Math.imul(Ue,He)|0;var si=(k+(x=x+Math.imul(O,At)|0)|0)+((8191&(n=(n=n+Math.imul(O,Qt)|0)+Math.imul(G,At)|0))<<13)|0;k=((g=g+Math.imul(G,Qt)|0)+(n>>>13)|0)+(si>>>26)|0,si&=67108863,x=Math.imul(be,it),n=(n=Math.imul(be,je))+Math.imul(qe,it)|0,g=Math.imul(qe,je),x=x+Math.imul(ht,xt)|0,n=(n=n+Math.imul(ht,Nt)|0)+Math.imul(Ge,xt)|0,g=g+Math.imul(Ge,Nt)|0,x=x+Math.imul(Ke,ke)|0,n=(n=n+Math.imul(Ke,$)|0)+Math.imul(lt,ke)|0,g=g+Math.imul(lt,$)|0,x=x+Math.imul(Pe,Le)|0,n=(n=n+Math.imul(Pe,Je)|0)+Math.imul(de,Le)|0,g=g+Math.imul(de,Je)|0,x=x+Math.imul(pe,Vt)|0,n=(n=n+Math.imul(pe,ii)|0)+Math.imul(Ve,Vt)|0,g=g+Math.imul(Ve,ii)|0,x=x+Math.imul(De,ot)|0,n=(n=n+Math.imul(De,ft)|0)+Math.imul(he,ot)|0,g=g+Math.imul(he,ft)|0,x=x+Math.imul(Oe,gt)|0,n=(n=n+Math.imul(Oe,$e)|0)+Math.imul(oe,gt)|0,g=g+Math.imul(oe,$e)|0,x=x+Math.imul(ye,vt)|0,n=(n=n+Math.imul(ye,He)|0)+Math.imul(xe,vt)|0,g=g+Math.imul(xe,He)|0;var Ai=(k+(x=x+Math.imul(nt,At)|0)|0)+((8191&(n=(n=n+Math.imul(nt,Qt)|0)+Math.imul(Ue,At)|0))<<13)|0;k=((g=g+Math.imul(Ue,Qt)|0)+(n>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,x=Math.imul(be,xt),n=(n=Math.imul(be,Nt))+Math.imul(qe,xt)|0,g=Math.imul(qe,Nt),x=x+Math.imul(ht,ke)|0,n=(n=n+Math.imul(ht,$)|0)+Math.imul(Ge,ke)|0,g=g+Math.imul(Ge,$)|0,x=x+Math.imul(Ke,Le)|0,n=(n=n+Math.imul(Ke,Je)|0)+Math.imul(lt,Le)|0,g=g+Math.imul(lt,Je)|0,x=x+Math.imul(Pe,Vt)|0,n=(n=n+Math.imul(Pe,ii)|0)+Math.imul(de,Vt)|0,g=g+Math.imul(de,ii)|0,x=x+Math.imul(pe,ot)|0,n=(n=n+Math.imul(pe,ft)|0)+Math.imul(Ve,ot)|0,g=g+Math.imul(Ve,ft)|0,x=x+Math.imul(De,gt)|0,n=(n=n+Math.imul(De,$e)|0)+Math.imul(he,gt)|0,g=g+Math.imul(he,$e)|0,x=x+Math.imul(Oe,vt)|0,n=(n=n+Math.imul(Oe,He)|0)+Math.imul(oe,vt)|0,g=g+Math.imul(oe,He)|0;var Oi=(k+(x=x+Math.imul(ye,At)|0)|0)+((8191&(n=(n=n+Math.imul(ye,Qt)|0)+Math.imul(xe,At)|0))<<13)|0;k=((g=g+Math.imul(xe,Qt)|0)+(n>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,x=Math.imul(be,ke),n=(n=Math.imul(be,$))+Math.imul(qe,ke)|0,g=Math.imul(qe,$),x=x+Math.imul(ht,Le)|0,n=(n=n+Math.imul(ht,Je)|0)+Math.imul(Ge,Le)|0,g=g+Math.imul(Ge,Je)|0,x=x+Math.imul(Ke,Vt)|0,n=(n=n+Math.imul(Ke,ii)|0)+Math.imul(lt,Vt)|0,g=g+Math.imul(lt,ii)|0,x=x+Math.imul(Pe,ot)|0,n=(n=n+Math.imul(Pe,ft)|0)+Math.imul(de,ot)|0,g=g+Math.imul(de,ft)|0,x=x+Math.imul(pe,gt)|0,n=(n=n+Math.imul(pe,$e)|0)+Math.imul(Ve,gt)|0,g=g+Math.imul(Ve,$e)|0,x=x+Math.imul(De,vt)|0,n=(n=n+Math.imul(De,He)|0)+Math.imul(he,vt)|0,g=g+Math.imul(he,He)|0;var Qi=(k+(x=x+Math.imul(Oe,At)|0)|0)+((8191&(n=(n=n+Math.imul(Oe,Qt)|0)+Math.imul(oe,At)|0))<<13)|0;k=((g=g+Math.imul(oe,Qt)|0)+(n>>>13)|0)+(Qi>>>26)|0,Qi&=67108863,x=Math.imul(be,Le),n=(n=Math.imul(be,Je))+Math.imul(qe,Le)|0,g=Math.imul(qe,Je),x=x+Math.imul(ht,Vt)|0,n=(n=n+Math.imul(ht,ii)|0)+Math.imul(Ge,Vt)|0,g=g+Math.imul(Ge,ii)|0,x=x+Math.imul(Ke,ot)|0,n=(n=n+Math.imul(Ke,ft)|0)+Math.imul(lt,ot)|0,g=g+Math.imul(lt,ft)|0,x=x+Math.imul(Pe,gt)|0,n=(n=n+Math.imul(Pe,$e)|0)+Math.imul(de,gt)|0,g=g+Math.imul(de,$e)|0,x=x+Math.imul(pe,vt)|0,n=(n=n+Math.imul(pe,He)|0)+Math.imul(Ve,vt)|0,g=g+Math.imul(Ve,He)|0;var en=(k+(x=x+Math.imul(De,At)|0)|0)+((8191&(n=(n=n+Math.imul(De,Qt)|0)+Math.imul(he,At)|0))<<13)|0;k=((g=g+Math.imul(he,Qt)|0)+(n>>>13)|0)+(en>>>26)|0,en&=67108863,x=Math.imul(be,Vt),n=(n=Math.imul(be,ii))+Math.imul(qe,Vt)|0,g=Math.imul(qe,ii),x=x+Math.imul(ht,ot)|0,n=(n=n+Math.imul(ht,ft)|0)+Math.imul(Ge,ot)|0,g=g+Math.imul(Ge,ft)|0,x=x+Math.imul(Ke,gt)|0,n=(n=n+Math.imul(Ke,$e)|0)+Math.imul(lt,gt)|0,g=g+Math.imul(lt,$e)|0,x=x+Math.imul(Pe,vt)|0,n=(n=n+Math.imul(Pe,He)|0)+Math.imul(de,vt)|0,g=g+Math.imul(de,He)|0;var Yi=(k+(x=x+Math.imul(pe,At)|0)|0)+((8191&(n=(n=n+Math.imul(pe,Qt)|0)+Math.imul(Ve,At)|0))<<13)|0;k=((g=g+Math.imul(Ve,Qt)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,x=Math.imul(be,ot),n=(n=Math.imul(be,ft))+Math.imul(qe,ot)|0,g=Math.imul(qe,ft),x=x+Math.imul(ht,gt)|0,n=(n=n+Math.imul(ht,$e)|0)+Math.imul(Ge,gt)|0,g=g+Math.imul(Ge,$e)|0,x=x+Math.imul(Ke,vt)|0,n=(n=n+Math.imul(Ke,He)|0)+Math.imul(lt,vt)|0,g=g+Math.imul(lt,He)|0;var Yt=(k+(x=x+Math.imul(Pe,At)|0)|0)+((8191&(n=(n=n+Math.imul(Pe,Qt)|0)+Math.imul(de,At)|0))<<13)|0;k=((g=g+Math.imul(de,Qt)|0)+(n>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,x=Math.imul(be,gt),n=(n=Math.imul(be,$e))+Math.imul(qe,gt)|0,g=Math.imul(qe,$e),x=x+Math.imul(ht,vt)|0,n=(n=n+Math.imul(ht,He)|0)+Math.imul(Ge,vt)|0,g=g+Math.imul(Ge,He)|0;var qt=(k+(x=x+Math.imul(Ke,At)|0)|0)+((8191&(n=(n=n+Math.imul(Ke,Qt)|0)+Math.imul(lt,At)|0))<<13)|0;k=((g=g+Math.imul(lt,Qt)|0)+(n>>>13)|0)+(qt>>>26)|0,qt&=67108863,x=Math.imul(be,vt),n=(n=Math.imul(be,He))+Math.imul(qe,vt)|0,g=Math.imul(qe,He);var _e=(k+(x=x+Math.imul(ht,At)|0)|0)+((8191&(n=(n=n+Math.imul(ht,Qt)|0)+Math.imul(Ge,At)|0))<<13)|0;k=((g=g+Math.imul(Ge,Qt)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863;var dt=(k+(x=Math.imul(be,At))|0)+((8191&(n=(n=Math.imul(be,Qt))+Math.imul(qe,At)|0))<<13)|0;return k=((g=Math.imul(qe,Qt))+(n>>>13)|0)+(dt>>>26)|0,dt&=67108863,I[0]=zi,I[1]=Ni,I[2]=Mi,I[3]=Gi,I[4]=Xe,I[5]=It,I[6]=Se,I[7]=wt,I[8]=Zt,I[9]=si,I[10]=Ai,I[11]=Oi,I[12]=Qi,I[13]=en,I[14]=Yi,I[15]=Yt,I[16]=qt,I[17]=_e,I[18]=dt,0!==k&&(I[19]=k,f.length++),f};function j(M,i,a){return(new Q).mulp(M,i,a)}function Q(M,i){this.x=M,this.y=i}Math.imul||(V=H),s.prototype.mulTo=function(i,a){var f,l=this.length+i.length;return f=10===this.length&&10===i.length?V(this,i,a):l<63?H(this,i,a):l<1024?function Y(M,i,a){a.negative=i.negative^M.negative,a.length=M.length+i.length;for(var f=0,l=0,v=0;v>>26)|0)>>>26,I&=67108863}a.words[v]=k,f=I,I=l}return 0!==f?a.words[v]=f:a.length--,a.strip()}(this,i,a):j(this,i,a),f},Q.prototype.makeRBT=function(i){for(var a=new Array(i),f=s.prototype._countBits(i)-1,l=0;l>=1;return l},Q.prototype.permute=function(i,a,f,l,v,I){for(var k=0;k>>=1)v++;return 1<>>=13),v>>>=13;for(I=2*a;I>=26,a+=l/67108864|0,a+=v>>>26,this.words[f]=67108863&v}return 0!==a&&(this.words[f]=a,this.length++),this},s.prototype.muln=function(i){return this.clone().imuln(i)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(i){var a=function D(M){for(var i=new Array(M.bitLength()),a=0;a>>l}return i}(i);if(0===a.length)return new s(1);for(var f=this,l=0;l=0);var v,a=i%26,f=(i-a)/26,l=67108863>>>26-a<<26-a;if(0!==a){var I=0;for(v=0;v>>26-a}I&&(this.words[v]=I,this.length++)}if(0!==f){for(v=this.length-1;v>=0;v--)this.words[v+f]=this.words[v];for(v=0;v=0),l=a?(a-a%26)/26:0;var v=i%26,I=Math.min((i-v)/26,this.length),k=67108863^67108863>>>v<I)for(this.length-=I,n=0;n=0&&(0!==g||n>=l);n--){var W=0|this.words[n];this.words[n]=g<<26-v|W>>>v,g=W&k}return x&&0!==g&&(x.words[x.length++]=g),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,a,f){return _(0===this.negative),this.iushrn(i,a,f)},s.prototype.shln=function(i){return this.clone().ishln(i)},s.prototype.ushln=function(i){return this.clone().iushln(i)},s.prototype.shrn=function(i){return this.clone().ishrn(i)},s.prototype.ushrn=function(i){return this.clone().iushrn(i)},s.prototype.testn=function(i){_("number"==typeof i&&i>=0);var a=i%26,f=(i-a)/26;return!(this.length<=f||!(this.words[f]&1<=0);var a=i%26,f=(i-a)/26;return _(0===this.negative,"imaskn works only with positive numbers"),this.length<=f?this:(0!==a&&f++,this.length=Math.min(f,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},s.prototype.isubn=function(i){if(_("number"==typeof i),_(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[v+f]=67108863&I}for(;v>26,this.words[v+f]=67108863&I;if(0===k)return this.strip();for(_(-1===k),k=0,v=0;v>26,this.words[v]=67108863&I;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var f,l=this.clone(),v=i,I=0|v.words[v.length-1];0!=(f=26-this._countBits(I))&&(v=v.ushln(f),l.iushln(f),I=0|v.words[v.length-1]);var n,x=l.length-v.length;if("mod"!==a){(n=new s(null)).length=x+1,n.words=new Array(n.length);for(var g=0;g=0;O--){var G=67108864*(0|l.words[v.length+O])+(0|l.words[v.length+O-1]);for(G=Math.min(G/I|0,67108863),l._ishlnsubmul(v,G,O);0!==l.negative;)G--,l.negative=0,l._ishlnsubmul(v,1,O),l.isZero()||(l.negative^=1);n&&(n.words[O]=G)}return n&&n.strip(),l.strip(),"div"!==a&&0!==f&&l.iushrn(f),{div:n||null,mod:l}},s.prototype.divmod=function(i,a,f){return _(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(I=this.neg().divmod(i,a),"mod"!==a&&(l=I.div.neg()),"div"!==a&&(v=I.mod.neg(),f&&0!==v.negative&&v.iadd(i)),{div:l,mod:v}):0===this.negative&&0!==i.negative?(I=this.divmod(i.neg(),a),"mod"!==a&&(l=I.div.neg()),{div:l,mod:I.mod}):this.negative&i.negative?(I=this.neg().divmod(i.neg(),a),"div"!==a&&(v=I.mod.neg(),f&&0!==v.negative&&v.isub(i)),{div:I.div,mod:v}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new s(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new s(this.modn(i.words[0]))}:this._wordDiv(i,a);var l,v,I},s.prototype.div=function(i){return this.divmod(i,"div",!1).div},s.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},s.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},s.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var f=0!==a.div.negative?a.mod.isub(i):a.mod,l=i.ushrn(1),v=i.andln(1),I=f.cmp(l);return I<0||1===v&&0===I?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},s.prototype.modn=function(i){_(i<=67108863);for(var a=(1<<26)%i,f=0,l=this.length-1;l>=0;l--)f=(a*f+(0|this.words[l]))%i;return f},s.prototype.idivn=function(i){_(i<=67108863);for(var a=0,f=this.length-1;f>=0;f--){var l=(0|this.words[f])+67108864*a;this.words[f]=l/i|0,a=l%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){_(0===i.negative),_(!i.isZero());var a=this,f=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),v=new s(0),I=new s(0),k=new s(1),x=0;a.isEven()&&f.isEven();)a.iushrn(1),f.iushrn(1),++x;for(var n=f.clone(),g=a.clone();!a.isZero();){for(var W=0,O=1;!(a.words[0]&O)&&W<26;++W,O<<=1);if(W>0)for(a.iushrn(W);W-- >0;)(l.isOdd()||v.isOdd())&&(l.iadd(n),v.isub(g)),l.iushrn(1),v.iushrn(1);for(var G=0,ge=1;!(f.words[0]&ge)&&G<26;++G,ge<<=1);if(G>0)for(f.iushrn(G);G-- >0;)(I.isOdd()||k.isOdd())&&(I.iadd(n),k.isub(g)),I.iushrn(1),k.iushrn(1);a.cmp(f)>=0?(a.isub(f),l.isub(I),v.isub(k)):(f.isub(a),I.isub(l),k.isub(v))}return{a:I,b:k,gcd:f.iushln(x)}},s.prototype._invmp=function(i){_(0===i.negative),_(!i.isZero());var W,a=this,f=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),v=new s(0),I=f.clone();a.cmpn(1)>0&&f.cmpn(1)>0;){for(var k=0,x=1;!(a.words[0]&x)&&k<26;++k,x<<=1);if(k>0)for(a.iushrn(k);k-- >0;)l.isOdd()&&l.iadd(I),l.iushrn(1);for(var n=0,g=1;!(f.words[0]&g)&&n<26;++n,g<<=1);if(n>0)for(f.iushrn(n);n-- >0;)v.isOdd()&&v.iadd(I),v.iushrn(1);a.cmp(f)>=0?(a.isub(f),l.isub(v)):(f.isub(a),v.isub(l))}return(W=0===a.cmpn(1)?l:v).cmpn(0)<0&&W.iadd(i),W},s.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),f=i.clone();a.negative=0,f.negative=0;for(var l=0;a.isEven()&&f.isEven();l++)a.iushrn(1),f.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;f.isEven();)f.iushrn(1);var v=a.cmp(f);if(v<0){var I=a;a=f,f=I}else if(0===v||0===f.cmpn(1))break;a.isub(f)}return f.iushln(l)},s.prototype.invm=function(i){return this.egcd(i).a.umod(i)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(i){return this.words[0]&i},s.prototype.bincn=function(i){_("number"==typeof i);var a=i%26,f=(i-a)/26,l=1<>>26,this.words[I]=k&=67108863}return 0!==v&&(this.words[I]=v,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var f,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)f=1;else{a&&(i=-i),_(i<=67108863,"Number is too big");var l=0|this.words[0];f=l===i?0:li.length)return 1;if(this.length=0;f--){var l=0|this.words[f],v=0|i.words[f];if(l!==v){lv&&(a=1);break}}return a},s.prototype.gtn=function(i){return 1===this.cmpn(i)},s.prototype.gt=function(i){return 1===this.cmp(i)},s.prototype.gten=function(i){return this.cmpn(i)>=0},s.prototype.gte=function(i){return this.cmp(i)>=0},s.prototype.ltn=function(i){return-1===this.cmpn(i)},s.prototype.lt=function(i){return-1===this.cmp(i)},s.prototype.lten=function(i){return this.cmpn(i)<=0},s.prototype.lte=function(i){return this.cmp(i)<=0},s.prototype.eqn=function(i){return 0===this.cmpn(i)},s.prototype.eq=function(i){return 0===this.cmp(i)},s.red=function(i){return new ce(i)},s.prototype.toRed=function(i){return _(!this.red,"Already a number in reduction context"),_(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(i){return this.red=i,this},s.prototype.forceRed=function(i){return _(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return _(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var J={k256:null,p224:null,p192:null,p25519:null};function ee(M,i){this.name=M,this.p=new s(i,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function me(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function re(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ce(M){if("string"==typeof M){var i=s._prime(M);this.m=i.p,this.prime=i}else _(M.gtn(1),"modulus must be greater than 1"),this.m=M,this.prime=null}function Ce(M){ce.call(this,M),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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 s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var f,a=i;do{this.split(a,this.tmp),f=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(f>this.n);var l=f0?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)},T(me,ee),me.prototype.split=function(i,a){for(var f=4194303,l=Math.min(i.length,9),v=0;v>>22,I=k}i.words[v-10]=I>>>=22,i.length-=0===I&&i.length>10?10:9},me.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,f=0;f>>=26,i.words[f]=v,a=l}return 0!==a&&(i.words[i.length++]=a),i},s._prime=function(i){if(J[i])return J[i];var a;if("k256"===i)a=new me;else if("p224"===i)a=new re;else if("p192"===i)a=new ie;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new se}return J[i]=a,a},ce.prototype._verify1=function(i){_(0===i.negative,"red works only with positives"),_(i.red,"red works only with red numbers")},ce.prototype._verify2=function(i,a){_(0==(i.negative|a.negative),"red works only with positives"),_(i.red&&i.red===a.red,"red works only with red numbers")},ce.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},ce.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},ce.prototype.add=function(i,a){this._verify2(i,a);var f=i.add(a);return f.cmp(this.m)>=0&&f.isub(this.m),f._forceRed(this)},ce.prototype.iadd=function(i,a){this._verify2(i,a);var f=i.iadd(a);return f.cmp(this.m)>=0&&f.isub(this.m),f},ce.prototype.sub=function(i,a){this._verify2(i,a);var f=i.sub(a);return f.cmpn(0)<0&&f.iadd(this.m),f._forceRed(this)},ce.prototype.isub=function(i,a){this._verify2(i,a);var f=i.isub(a);return f.cmpn(0)<0&&f.iadd(this.m),f},ce.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},ce.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},ce.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},ce.prototype.isqr=function(i){return this.imul(i,i.clone())},ce.prototype.sqr=function(i){return this.mul(i,i)},ce.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(_(a%2==1),3===a){var f=this.m.add(new s(1)).iushrn(2);return this.pow(i,f)}for(var l=this.m.subn(1),v=0;!l.isZero()&&0===l.andln(1);)v++,l.iushrn(1);_(!l.isZero());var I=new s(1).toRed(this),k=I.redNeg(),x=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new s(2*n*n).toRed(this);0!==this.pow(n,x).cmp(k);)n.redIAdd(k);for(var g=this.pow(n,l),W=this.pow(i,l.addn(1).iushrn(1)),O=this.pow(i,l),G=v;0!==O.cmp(I);){for(var ge=O,nt=0;0!==ge.cmp(I);nt++)ge=ge.redSqr();_(nt=0;v--){for(var g=a.words[v],W=n-1;W>=0;W--){var O=g>>W&1;I!==l[0]&&(I=this.sqr(I)),0!==O||0!==k?(k<<=1,k|=O,(4==++x||0===v&&0===W)&&(I=this.mul(I,l[k]),x=0,k=0)):x=0}n=26}return I},ce.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},ce.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new Ce(i)},T(Ce,ce),Ce.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},Ce.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},Ce.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var f=i.imul(a),l=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=f.isub(l).iushrn(this.shift),I=v;return v.cmp(this.m)>=0?I=v.isub(this.m):v.cmpn(0)<0&&(I=v.iadd(this.m)),I._forceRed(this)},Ce.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new s(0)._forceRed(this);var f=i.mul(a),l=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=f.isub(l).iushrn(this.shift),I=v;return v.cmp(this.m)>=0?I=v.isub(this.m):v.cmpn(0)<0&&(I=v.iadd(this.m)),I._forceRed(this)},Ce.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(We=m.nmd(We),this)},6386:(We,q,m)=>{"use strict";var t=m(3894),e=m(8095),_=m(5634),T=m(5244),s=m(1052);function y(h){s.call(this,"digest"),this._hash=h}t(y,s),y.prototype._update=function(h){this._hash.update(h)},y.prototype._final=function(){return this._hash.digest()},We.exports=function(P){return"md5"===(P=P.toLowerCase())?new e:"rmd160"===P||"ripemd160"===P?new _:new y(T(P))}},5640:(We,q,m)=>{var t=m(8095);We.exports=function(e){return(new t).update(e).digest()}},4529:(We,q,m)=>{"use strict";var t=m(3894),e=m(7309),_=m(1052),T=m(3502).Buffer,s=m(5640),y=m(5634),h=m(5244),P=T.alloc(128);function d(w,C){_.call(this,"digest"),"string"==typeof C&&(C=T.from(C));var L="sha512"===w||"sha384"===w?128:64;this._alg=w,this._key=C,C.length>L?C=("rmd160"===w?new y:h(w)).update(C).digest():C.length{"use strict";var t=m(3894),e=m(3502).Buffer,_=m(1052),T=e.alloc(128),s=64;function y(h,P){_.call(this,"digest"),"string"==typeof P&&(P=e.from(P)),this._alg=h,this._key=P,P.length>s?P=h(P):P.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 t=m(7793),e=Object.keys(t),_=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(e);q.getHashes=function(){return _};var T=m(9357);q.pbkdf2=T.pbkdf2,q.pbkdf2Sync=T.pbkdf2Sync;var s=m(5255);q.Cipher=s.Cipher,q.createCipher=s.createCipher,q.Cipheriv=s.Cipheriv,q.createCipheriv=s.createCipheriv,q.Decipher=s.Decipher,q.createDecipher=s.createDecipher,q.Decipheriv=s.Decipheriv,q.createDecipheriv=s.createDecipheriv,q.getCiphers=s.getCiphers,q.listCiphers=s.listCiphers;var y=m(8829);q.DiffieHellmanGroup=y.DiffieHellmanGroup,q.createDiffieHellmanGroup=y.createDiffieHellmanGroup,q.getDiffieHellman=y.getDiffieHellman,q.createDiffieHellman=y.createDiffieHellman,q.DiffieHellman=y.DiffieHellman;var h=m(3923);q.createSign=h.createSign,q.Sign=h.Sign,q.createVerify=h.createVerify,q.Verify=h.Verify,q.createECDH=m(4746);var P=m(3701);q.publicEncrypt=P.publicEncrypt,q.privateEncrypt=P.privateEncrypt,q.publicDecrypt=P.publicDecrypt,q.privateDecrypt=P.privateDecrypt;var d=m(4275);q.randomFill=d.randomFill,q.randomFillSync=d.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:(We,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:(We,q,m)=>{"use strict";var t=m(2391),e=m(3894),_={};function T(y){t.equal(y.length,8,"Invalid IV length"),this.iv=new Array(8);for(var h=0;h{"use strict";var t=m(2391);function e(_){this.options=_,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=!1!==_.padding}We.exports=e,e.prototype._init=function(){},e.prototype.update=function(T){return 0===T.length?[]:"decrypt"===this.type?this._updateDecrypt(T):this._updateEncrypt(T)},e.prototype._buffer=function(T,s){for(var y=Math.min(this.buffer.length-this.bufferOff,T.length-s),h=0;h0;h--)s+=this._buffer(T,s),y+=this._flushBuffer(P,y);return s+=this._buffer(T,s),P},e.prototype.final=function(T){var s,y;return T&&(s=this.update(T)),y="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),s?s.concat(y):y},e.prototype._pad=function(T,s){if(0===s)return!1;for(;s{"use strict";var t=m(2391),e=m(3894),_=m(7451),T=m(8170);function s(){this.tmp=new Array(2),this.keys=null}function y(P){T.call(this,P);var d=new s;this._desState=d,this.deriveKeys(d,P.key)}e(y,T),We.exports=y,y.create=function(d){return new y(d)};var h=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];y.prototype.deriveKeys=function(d,w){d.keys=new Array(32),t.equal(w.length,this.blockSize,"Invalid key length");var C=_.readUInt32BE(w,0),L=_.readUInt32BE(w,4);_.pc1(C,L,d.tmp,0),C=d.tmp[0],L=d.tmp[1];for(var D=0;D>>1];C=_.r28shl(C,H),L=_.r28shl(L,H),_.pc2(C,L,d.keys,D)}},y.prototype._update=function(d,w,C,L){var D=this._desState,H=_.readUInt32BE(d,w),V=_.readUInt32BE(d,w+4);_.ip(H,V,D.tmp,0),H=D.tmp[0],V=D.tmp[1],"encrypt"===this.type?this._encrypt(D,H,V,D.tmp,0):this._decrypt(D,H,V,D.tmp,0),V=D.tmp[1],_.writeUInt32BE(C,H=D.tmp[0],L),_.writeUInt32BE(C,V,L+4)},y.prototype._pad=function(d,w){if(!1===this.padding)return!1;for(var C=d.length-w,L=w;L>>0,H=me}_.rip(V,H,L,D)},y.prototype._decrypt=function(d,w,C,L,D){for(var H=C,V=w,Y=d.keys.length-2;Y>=0;Y-=2){var j=d.keys[Y],Q=d.keys[Y+1];_.expand(H,d.tmp,0);var J=_.substitute(j^=d.tmp[0],Q^=d.tmp[1]),me=H;H=(V^_.permute(J))>>>0,V=me}_.rip(H,V,L,D)}},1862:(We,q,m)=>{"use strict";var t=m(2391),e=m(3894),_=m(8170),T=m(4631);function s(h,P){t.equal(P.length,24,"Invalid key length");var d=P.slice(0,8),w=P.slice(8,16),C=P.slice(16,24);this.ciphers="encrypt"===h?[T.create({type:"encrypt",key:d}),T.create({type:"decrypt",key:w}),T.create({type:"encrypt",key:C})]:[T.create({type:"decrypt",key:C}),T.create({type:"encrypt",key:w}),T.create({type:"decrypt",key:d})]}function y(h){_.call(this,h);var P=new s(this.type,this.options.key);this._edeState=P}e(y,_),We.exports=y,y.create=function(P){return new y(P)},y.prototype._update=function(P,d,w,C){var L=this._edeState;L.ciphers[0]._update(P,d,w,C),L.ciphers[1]._update(w,C,w,C),L.ciphers[2]._update(w,C,w,C)},y.prototype._pad=T.prototype._pad,y.prototype._unpad=T.prototype._unpad},7451:(We,q)=>{"use strict";q.readUInt32BE=function(T,s){return(T[0+s]<<24|T[1+s]<<16|T[2+s]<<8|T[3+s])>>>0},q.writeUInt32BE=function(T,s,y){T[0+y]=s>>>24,T[1+y]=s>>>16&255,T[2+y]=s>>>8&255,T[3+y]=255&s},q.ip=function(T,s,y,h){for(var P=0,d=0,w=6;w>=0;w-=2){for(var C=0;C<=24;C+=8)P<<=1,P|=s>>>C+w&1;for(C=0;C<=24;C+=8)P<<=1,P|=T>>>C+w&1}for(w=6;w>=0;w-=2){for(C=1;C<=25;C+=8)d<<=1,d|=s>>>C+w&1;for(C=1;C<=25;C+=8)d<<=1,d|=T>>>C+w&1}y[h+0]=P>>>0,y[h+1]=d>>>0},q.rip=function(T,s,y,h){for(var P=0,d=0,w=0;w<4;w++)for(var C=24;C>=0;C-=8)P<<=1,P|=s>>>C+w&1,P<<=1,P|=T>>>C+w&1;for(w=4;w<8;w++)for(C=24;C>=0;C-=8)d<<=1,d|=s>>>C+w&1,d<<=1,d|=T>>>C+w&1;y[h+0]=P>>>0,y[h+1]=d>>>0},q.pc1=function(T,s,y,h){for(var P=0,d=0,w=7;w>=5;w--){for(var C=0;C<=24;C+=8)P<<=1,P|=s>>C+w&1;for(C=0;C<=24;C+=8)P<<=1,P|=T>>C+w&1}for(C=0;C<=24;C+=8)P<<=1,P|=s>>C+w&1;for(w=1;w<=3;w++){for(C=0;C<=24;C+=8)d<<=1,d|=s>>C+w&1;for(C=0;C<=24;C+=8)d<<=1,d|=T>>C+w&1}for(C=0;C<=24;C+=8)d<<=1,d|=T>>C+w&1;y[h+0]=P>>>0,y[h+1]=d>>>0},q.r28shl=function(T,s){return T<>>28-s};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(T,s,y,h){for(var P=0,d=0,w=m.length>>>1,C=0;C>>m[C]&1;for(C=w;C>>m[C]&1;y[h+0]=P>>>0,y[h+1]=d>>>0},q.expand=function(T,s,y){var h=0,P=0;h=(1&T)<<5|T>>>27;for(var d=23;d>=15;d-=4)h<<=6,h|=T>>>d&63;for(d=11;d>=3;d-=4)P|=T>>>d&63,P<<=6;P|=(31&T)<<1|T>>>31,s[y+0]=h>>>0,s[y+1]=P>>>0};var t=[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(T,s){for(var y=0,h=0;h<4;h++)y<<=4,y|=t[64*h+(T>>>18-6*h&63)];for(h=0;h<4;h++)y<<=4,y|=t[256+64*h+(s>>>18-6*h&63)];return y>>>0};var e=[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(T){for(var s=0,y=0;y>>e[y]&1;return s>>>0},q.padSplit=function(T,s,y){for(var h=T.toString(2);h.length{var t=m(5563),e=m(9799),_=m(1419),s={binary:!0,hex:!0,base64:!0};q.DiffieHellmanGroup=q.createDiffieHellmanGroup=q.getDiffieHellman=function T(h){var P=new Buffer(e[h].prime,"hex"),d=new Buffer(e[h].gen,"hex");return new _(P,d)},q.createDiffieHellman=q.DiffieHellman=function y(h,P,d,w){return Buffer.isBuffer(P)||void 0===s[P]?y(h,"binary",P,d):(P=P||"binary",w=w||"binary",d=d||new Buffer([2]),Buffer.isBuffer(d)||(d=new Buffer(d,w)),"number"==typeof h?new _(t(h,d),d,!0):(Buffer.isBuffer(h)||(h=new Buffer(h,P)),new _(h,d,!0)))}},1419:(We,q,m)=>{var t=m(8313),_=new(m(7079)),T=new t(24),s=new t(11),y=new t(10),h=new t(3),P=new t(7),d=m(5563),w=m(3753);function C(j,Q){return Q=Q||"utf8",Buffer.isBuffer(j)||(j=new Buffer(j,Q)),this._pub=new t(j),this}function L(j,Q){return Q=Q||"utf8",Buffer.isBuffer(j)||(j=new Buffer(j,Q)),this._priv=new t(j),this}We.exports=V;var D={};function V(j,Q,J){this.setGenerator(Q),this.__prime=new t(j),this._prime=t.mont(this.__prime),this._primeLen=j.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,J?(this.setPublicKey=C,this.setPrivateKey=L):this._primeCode=8}function Y(j,Q){var J=new Buffer(j.toArray());return Q?J.toString(Q):J}Object.defineProperty(V.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function H(j,Q){var J=Q.toString("hex"),ee=[J,j.toString(16)].join("_");if(ee in D)return D[ee];var re,me=0;if(j.isEven()||!d.simpleSieve||!d.fermatTest(j)||!_.test(j))return me+=1,D[ee]=me+="02"===J||"05"===J?8:4,me;switch(_.test(j.shrn(1))||(me+=2),J){case"02":j.mod(T).cmp(s)&&(me+=8);break;case"05":(re=j.mod(y)).cmp(h)&&re.cmp(P)&&(me+=8);break;default:me+=4}return D[ee]=me,me}(this.__prime,this.__gen)),this._primeCode}}),V.prototype.generateKeys=function(){return this._priv||(this._priv=new t(w(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},V.prototype.computeSecret=function(j){var Q=(j=(j=new t(j)).toRed(this._prime)).redPow(this._priv).fromRed(),J=new Buffer(Q.toArray()),ee=this.getPrime();if(J.length{var t=m(3753);We.exports=me,me.simpleSieve=J,me.fermatTest=ee;var e=m(8313),_=new e(24),s=new(m(7079)),y=new e(1),h=new e(2),P=new e(5),C=(new e(16),new e(8),new e(10)),L=new e(3),H=(new e(7),new e(11)),V=new e(4),j=(new e(12),null);function J(re){for(var ie=function Q(){if(null!==j)return j;var ie=[];ie[0]=2;for(var se=1,ce=3;ce<1048576;ce+=2){for(var Ce=Math.ceil(Math.sqrt(ce)),M=0;Mre;)se.ishrn(1);if(se.isEven()&&se.iadd(y),se.testn(1)||se.iadd(h),ie.cmp(h)){if(!ie.cmp(P))for(;se.mod(C).cmp(L);)se.iadd(V)}else for(;se.mod(_).cmp(H);)se.iadd(V);if(J(ce=se.shrn(1))&&J(se)&&ee(ce)&&ee(se)&&s.test(ce)&&s.test(se))return se}}},8313:function(We,q,m){!function(t,e){"use strict";function _(M,i){if(!M)throw new Error(i||"Assertion failed")}function T(M,i){M.super_=i;var a=function(){};a.prototype=i.prototype,M.prototype=new a,M.prototype.constructor=M}function s(M,i,a){if(s.isBN(M))return M;this.negative=0,this.words=null,this.length=0,this.red=null,null!==M&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(M||0,i||10,a||"be"))}var y;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{y=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:m(7748).Buffer}catch{}function h(M,i){var a=M.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function P(M,i,a){var f=h(M,a);return a-1>=i&&(f|=h(M,a-1)<<4),f}function d(M,i,a,f){for(var l=0,v=Math.min(M.length,a),I=i;I=49?k-49+10:k>=17?k-17+10:k}return l}s.isBN=function(i){return i instanceof s||null!==i&&"object"==typeof i&&i.constructor.wordSize===s.wordSize&&Array.isArray(i.words)},s.max=function(i,a){return i.cmp(a)>0?i:a},s.min=function(i,a){return i.cmp(a)<0?i:a},s.prototype._init=function(i,a,f){if("number"==typeof i)return this._initNumber(i,a,f);if("object"==typeof i)return this._initArray(i,a,f);"hex"===a&&(a=16),_(a===(0|a)&&a>=2&&a<=36);var l=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(l++,this.negative=1),l=0;l-=3)this.words[v]|=(I=i[l]|i[l-1]<<8|i[l-2]<<16)<>>26-k&67108863,(k+=24)>=26&&(k-=26,v++);else if("le"===f)for(l=0,v=0;l>>26-k&67108863,(k+=24)>=26&&(k-=26,v++);return this.strip()},s.prototype._parseHex=function(i,a,f){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var l=0;l=a;l-=2)k=P(i,a,l)<=18?(v-=18,this.words[I+=1]|=k>>>26):v+=8;else for(l=(i.length-a)%2==0?a+1:a;l=18?(v-=18,this.words[I+=1]|=k>>>26):v+=8;this.strip()},s.prototype._parseBase=function(i,a,f){this.words=[0],this.length=1;for(var l=0,v=1;v<=67108863;v*=a)l++;l--,v=v/a|0;for(var I=i.length-f,k=I%l,x=Math.min(I,I-k)+f,n=0,g=f;g1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var w=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[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],L=[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 H(M,i,a){a.negative=i.negative^M.negative;var f=M.length+i.length|0;a.length=f,f=f-1|0;var l=0|M.words[0],v=0|i.words[0],I=l*v,x=I/67108864|0;a.words[0]=67108863&I;for(var n=1;n>>26,W=67108863&x,O=Math.min(n,i.length-1),G=Math.max(0,n-M.length+1);G<=O;G++)g+=(I=(l=0|M.words[n-G|0])*(v=0|i.words[G])+W)/67108864|0,W=67108863&I;a.words[n]=0|W,x=0|g}return 0!==x?a.words[n]=0|x:a.length--,a.strip()}s.prototype.toString=function(i,a){var f;if(a=0|a||1,16===(i=i||10)||"hex"===i){f="";for(var l=0,v=0,I=0;I>>24-l&16777215)||I!==this.length-1?w[6-x.length]+x+f:x+f,(l+=2)>=26&&(l-=26,I--)}for(0!==v&&(f=v.toString(16)+f);f.length%a!=0;)f="0"+f;return 0!==this.negative&&(f="-"+f),f}if(i===(0|i)&&i>=2&&i<=36){var n=C[i],g=L[i];f="";var W=this.clone();for(W.negative=0;!W.isZero();){var O=W.modn(g).toString(i);f=(W=W.idivn(g)).isZero()?O+f:w[n-O.length]+O+f}for(this.isZero()&&(f="0"+f);f.length%a!=0;)f="0"+f;return 0!==this.negative&&(f="-"+f),f}_(!1,"Base should be between 2 and 36")},s.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&&_(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(i,a){return _(typeof y<"u"),this.toArrayLike(y,i,a)},s.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},s.prototype.toArrayLike=function(i,a,f){var l=this.byteLength(),v=f||Math.max(1,l);_(l<=v,"byte array longer than desired length"),_(v>0,"Requested array length <= 0"),this.strip();var x,n,I="le"===a,k=new i(v),g=this.clone();if(I){for(n=0;!g.isZero();n++)x=g.andln(255),g.iushrn(8),k[n]=x;for(;n=4096&&(f+=13,a>>>=13),a>=64&&(f+=7,a>>>=7),a>=8&&(f+=4,a>>>=4),a>=2&&(f+=2,a>>>=2),f+a},s.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,f=0;return 8191&a||(f+=13,a>>>=13),127&a||(f+=7,a>>>=7),15&a||(f+=4,a>>>=4),3&a||(f+=2,a>>>=2),1&a||f++,f},s.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},s.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},s.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var f=0;fi.length?this.clone().iand(i):i.clone().iand(this)},s.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},s.prototype.iuxor=function(i){var a,f;this.length>i.length?(a=this,f=i):(a=i,f=this);for(var l=0;li.length?this.clone().ixor(i):i.clone().ixor(this)},s.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},s.prototype.inotn=function(i){_("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),f=i%26;this._expand(a),f>0&&a--;for(var l=0;l0&&(this.words[l]=~this.words[l]&67108863>>26-f),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,a){_("number"==typeof i&&i>=0);var f=i/26|0,l=i%26;return this._expand(f+1),this.words[f]=a?this.words[f]|1<i.length?(f=this,l=i):(f=i,l=this);for(var v=0,I=0;I>>26;for(;0!==v&&I>>26;if(this.length=f.length,0!==v)this.words[this.length]=v,this.length++;else if(f!==this)for(;Ii.length?this.clone().iadd(i):i.clone().iadd(this)},s.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 l,v,f=this.cmp(i);if(0===f)return this.negative=0,this.length=1,this.words[0]=0,this;f>0?(l=this,v=i):(l=i,v=this);for(var I=0,k=0;k>26,this.words[k]=67108863&a;for(;0!==I&&k>26,this.words[k]=67108863&a;if(0===I&&k>>13,ge=0|l[1],nt=8191&ge,Ue=ge>>>13,at=0|l[2],ye=8191&at,xe=at>>>13,fe=0|l[3],Oe=8191&fe,oe=fe>>>13,Fe=0|l[4],De=8191&Fe,he=Fe>>>13,Me=0|l[5],pe=8191&Me,Ve=Me>>>13,Qe=0|l[6],Pe=8191&Qe,de=Qe>>>13,rt=0|l[7],Ke=8191&rt,lt=rt>>>13,Ut=0|l[8],ht=8191&Ut,Ge=Ut>>>13,yt=0|l[9],be=8191&yt,qe=yt>>>13,Ie=0|v[0],X=8191&Ie,mt=Ie>>>13,Tt=0|v[1],it=8191&Tt,je=Tt>>>13,zt=0|v[2],xt=8191&zt,Nt=zt>>>13,Gt=0|v[3],ke=8191&Gt,$=Gt>>>13,ue=0|v[4],Le=8191&ue,Je=ue>>>13,$t=0|v[5],Vt=8191&$t,ii=$t>>>13,pt=0|v[6],ot=8191&pt,ft=pt>>>13,St=0|v[7],gt=8191&St,$e=St>>>13,_t=0|v[8],vt=8191&_t,He=_t>>>13,Et=0|v[9],At=8191&Et,Qt=Et>>>13;f.negative=i.negative^a.negative,f.length=19;var zi=(k+(x=Math.imul(O,X))|0)+((8191&(n=(n=Math.imul(O,mt))+Math.imul(G,X)|0))<<13)|0;k=((g=Math.imul(G,mt))+(n>>>13)|0)+(zi>>>26)|0,zi&=67108863,x=Math.imul(nt,X),n=(n=Math.imul(nt,mt))+Math.imul(Ue,X)|0,g=Math.imul(Ue,mt);var Ni=(k+(x=x+Math.imul(O,it)|0)|0)+((8191&(n=(n=n+Math.imul(O,je)|0)+Math.imul(G,it)|0))<<13)|0;k=((g=g+Math.imul(G,je)|0)+(n>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(ye,X),n=(n=Math.imul(ye,mt))+Math.imul(xe,X)|0,g=Math.imul(xe,mt),x=x+Math.imul(nt,it)|0,n=(n=n+Math.imul(nt,je)|0)+Math.imul(Ue,it)|0,g=g+Math.imul(Ue,je)|0;var Mi=(k+(x=x+Math.imul(O,xt)|0)|0)+((8191&(n=(n=n+Math.imul(O,Nt)|0)+Math.imul(G,xt)|0))<<13)|0;k=((g=g+Math.imul(G,Nt)|0)+(n>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,x=Math.imul(Oe,X),n=(n=Math.imul(Oe,mt))+Math.imul(oe,X)|0,g=Math.imul(oe,mt),x=x+Math.imul(ye,it)|0,n=(n=n+Math.imul(ye,je)|0)+Math.imul(xe,it)|0,g=g+Math.imul(xe,je)|0,x=x+Math.imul(nt,xt)|0,n=(n=n+Math.imul(nt,Nt)|0)+Math.imul(Ue,xt)|0,g=g+Math.imul(Ue,Nt)|0;var Gi=(k+(x=x+Math.imul(O,ke)|0)|0)+((8191&(n=(n=n+Math.imul(O,$)|0)+Math.imul(G,ke)|0))<<13)|0;k=((g=g+Math.imul(G,$)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,x=Math.imul(De,X),n=(n=Math.imul(De,mt))+Math.imul(he,X)|0,g=Math.imul(he,mt),x=x+Math.imul(Oe,it)|0,n=(n=n+Math.imul(Oe,je)|0)+Math.imul(oe,it)|0,g=g+Math.imul(oe,je)|0,x=x+Math.imul(ye,xt)|0,n=(n=n+Math.imul(ye,Nt)|0)+Math.imul(xe,xt)|0,g=g+Math.imul(xe,Nt)|0,x=x+Math.imul(nt,ke)|0,n=(n=n+Math.imul(nt,$)|0)+Math.imul(Ue,ke)|0,g=g+Math.imul(Ue,$)|0;var Xe=(k+(x=x+Math.imul(O,Le)|0)|0)+((8191&(n=(n=n+Math.imul(O,Je)|0)+Math.imul(G,Le)|0))<<13)|0;k=((g=g+Math.imul(G,Je)|0)+(n>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,x=Math.imul(pe,X),n=(n=Math.imul(pe,mt))+Math.imul(Ve,X)|0,g=Math.imul(Ve,mt),x=x+Math.imul(De,it)|0,n=(n=n+Math.imul(De,je)|0)+Math.imul(he,it)|0,g=g+Math.imul(he,je)|0,x=x+Math.imul(Oe,xt)|0,n=(n=n+Math.imul(Oe,Nt)|0)+Math.imul(oe,xt)|0,g=g+Math.imul(oe,Nt)|0,x=x+Math.imul(ye,ke)|0,n=(n=n+Math.imul(ye,$)|0)+Math.imul(xe,ke)|0,g=g+Math.imul(xe,$)|0,x=x+Math.imul(nt,Le)|0,n=(n=n+Math.imul(nt,Je)|0)+Math.imul(Ue,Le)|0,g=g+Math.imul(Ue,Je)|0;var It=(k+(x=x+Math.imul(O,Vt)|0)|0)+((8191&(n=(n=n+Math.imul(O,ii)|0)+Math.imul(G,Vt)|0))<<13)|0;k=((g=g+Math.imul(G,ii)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,x=Math.imul(Pe,X),n=(n=Math.imul(Pe,mt))+Math.imul(de,X)|0,g=Math.imul(de,mt),x=x+Math.imul(pe,it)|0,n=(n=n+Math.imul(pe,je)|0)+Math.imul(Ve,it)|0,g=g+Math.imul(Ve,je)|0,x=x+Math.imul(De,xt)|0,n=(n=n+Math.imul(De,Nt)|0)+Math.imul(he,xt)|0,g=g+Math.imul(he,Nt)|0,x=x+Math.imul(Oe,ke)|0,n=(n=n+Math.imul(Oe,$)|0)+Math.imul(oe,ke)|0,g=g+Math.imul(oe,$)|0,x=x+Math.imul(ye,Le)|0,n=(n=n+Math.imul(ye,Je)|0)+Math.imul(xe,Le)|0,g=g+Math.imul(xe,Je)|0,x=x+Math.imul(nt,Vt)|0,n=(n=n+Math.imul(nt,ii)|0)+Math.imul(Ue,Vt)|0,g=g+Math.imul(Ue,ii)|0;var Se=(k+(x=x+Math.imul(O,ot)|0)|0)+((8191&(n=(n=n+Math.imul(O,ft)|0)+Math.imul(G,ot)|0))<<13)|0;k=((g=g+Math.imul(G,ft)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,x=Math.imul(Ke,X),n=(n=Math.imul(Ke,mt))+Math.imul(lt,X)|0,g=Math.imul(lt,mt),x=x+Math.imul(Pe,it)|0,n=(n=n+Math.imul(Pe,je)|0)+Math.imul(de,it)|0,g=g+Math.imul(de,je)|0,x=x+Math.imul(pe,xt)|0,n=(n=n+Math.imul(pe,Nt)|0)+Math.imul(Ve,xt)|0,g=g+Math.imul(Ve,Nt)|0,x=x+Math.imul(De,ke)|0,n=(n=n+Math.imul(De,$)|0)+Math.imul(he,ke)|0,g=g+Math.imul(he,$)|0,x=x+Math.imul(Oe,Le)|0,n=(n=n+Math.imul(Oe,Je)|0)+Math.imul(oe,Le)|0,g=g+Math.imul(oe,Je)|0,x=x+Math.imul(ye,Vt)|0,n=(n=n+Math.imul(ye,ii)|0)+Math.imul(xe,Vt)|0,g=g+Math.imul(xe,ii)|0,x=x+Math.imul(nt,ot)|0,n=(n=n+Math.imul(nt,ft)|0)+Math.imul(Ue,ot)|0,g=g+Math.imul(Ue,ft)|0;var wt=(k+(x=x+Math.imul(O,gt)|0)|0)+((8191&(n=(n=n+Math.imul(O,$e)|0)+Math.imul(G,gt)|0))<<13)|0;k=((g=g+Math.imul(G,$e)|0)+(n>>>13)|0)+(wt>>>26)|0,wt&=67108863,x=Math.imul(ht,X),n=(n=Math.imul(ht,mt))+Math.imul(Ge,X)|0,g=Math.imul(Ge,mt),x=x+Math.imul(Ke,it)|0,n=(n=n+Math.imul(Ke,je)|0)+Math.imul(lt,it)|0,g=g+Math.imul(lt,je)|0,x=x+Math.imul(Pe,xt)|0,n=(n=n+Math.imul(Pe,Nt)|0)+Math.imul(de,xt)|0,g=g+Math.imul(de,Nt)|0,x=x+Math.imul(pe,ke)|0,n=(n=n+Math.imul(pe,$)|0)+Math.imul(Ve,ke)|0,g=g+Math.imul(Ve,$)|0,x=x+Math.imul(De,Le)|0,n=(n=n+Math.imul(De,Je)|0)+Math.imul(he,Le)|0,g=g+Math.imul(he,Je)|0,x=x+Math.imul(Oe,Vt)|0,n=(n=n+Math.imul(Oe,ii)|0)+Math.imul(oe,Vt)|0,g=g+Math.imul(oe,ii)|0,x=x+Math.imul(ye,ot)|0,n=(n=n+Math.imul(ye,ft)|0)+Math.imul(xe,ot)|0,g=g+Math.imul(xe,ft)|0,x=x+Math.imul(nt,gt)|0,n=(n=n+Math.imul(nt,$e)|0)+Math.imul(Ue,gt)|0,g=g+Math.imul(Ue,$e)|0;var Zt=(k+(x=x+Math.imul(O,vt)|0)|0)+((8191&(n=(n=n+Math.imul(O,He)|0)+Math.imul(G,vt)|0))<<13)|0;k=((g=g+Math.imul(G,He)|0)+(n>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,x=Math.imul(be,X),n=(n=Math.imul(be,mt))+Math.imul(qe,X)|0,g=Math.imul(qe,mt),x=x+Math.imul(ht,it)|0,n=(n=n+Math.imul(ht,je)|0)+Math.imul(Ge,it)|0,g=g+Math.imul(Ge,je)|0,x=x+Math.imul(Ke,xt)|0,n=(n=n+Math.imul(Ke,Nt)|0)+Math.imul(lt,xt)|0,g=g+Math.imul(lt,Nt)|0,x=x+Math.imul(Pe,ke)|0,n=(n=n+Math.imul(Pe,$)|0)+Math.imul(de,ke)|0,g=g+Math.imul(de,$)|0,x=x+Math.imul(pe,Le)|0,n=(n=n+Math.imul(pe,Je)|0)+Math.imul(Ve,Le)|0,g=g+Math.imul(Ve,Je)|0,x=x+Math.imul(De,Vt)|0,n=(n=n+Math.imul(De,ii)|0)+Math.imul(he,Vt)|0,g=g+Math.imul(he,ii)|0,x=x+Math.imul(Oe,ot)|0,n=(n=n+Math.imul(Oe,ft)|0)+Math.imul(oe,ot)|0,g=g+Math.imul(oe,ft)|0,x=x+Math.imul(ye,gt)|0,n=(n=n+Math.imul(ye,$e)|0)+Math.imul(xe,gt)|0,g=g+Math.imul(xe,$e)|0,x=x+Math.imul(nt,vt)|0,n=(n=n+Math.imul(nt,He)|0)+Math.imul(Ue,vt)|0,g=g+Math.imul(Ue,He)|0;var si=(k+(x=x+Math.imul(O,At)|0)|0)+((8191&(n=(n=n+Math.imul(O,Qt)|0)+Math.imul(G,At)|0))<<13)|0;k=((g=g+Math.imul(G,Qt)|0)+(n>>>13)|0)+(si>>>26)|0,si&=67108863,x=Math.imul(be,it),n=(n=Math.imul(be,je))+Math.imul(qe,it)|0,g=Math.imul(qe,je),x=x+Math.imul(ht,xt)|0,n=(n=n+Math.imul(ht,Nt)|0)+Math.imul(Ge,xt)|0,g=g+Math.imul(Ge,Nt)|0,x=x+Math.imul(Ke,ke)|0,n=(n=n+Math.imul(Ke,$)|0)+Math.imul(lt,ke)|0,g=g+Math.imul(lt,$)|0,x=x+Math.imul(Pe,Le)|0,n=(n=n+Math.imul(Pe,Je)|0)+Math.imul(de,Le)|0,g=g+Math.imul(de,Je)|0,x=x+Math.imul(pe,Vt)|0,n=(n=n+Math.imul(pe,ii)|0)+Math.imul(Ve,Vt)|0,g=g+Math.imul(Ve,ii)|0,x=x+Math.imul(De,ot)|0,n=(n=n+Math.imul(De,ft)|0)+Math.imul(he,ot)|0,g=g+Math.imul(he,ft)|0,x=x+Math.imul(Oe,gt)|0,n=(n=n+Math.imul(Oe,$e)|0)+Math.imul(oe,gt)|0,g=g+Math.imul(oe,$e)|0,x=x+Math.imul(ye,vt)|0,n=(n=n+Math.imul(ye,He)|0)+Math.imul(xe,vt)|0,g=g+Math.imul(xe,He)|0;var Ai=(k+(x=x+Math.imul(nt,At)|0)|0)+((8191&(n=(n=n+Math.imul(nt,Qt)|0)+Math.imul(Ue,At)|0))<<13)|0;k=((g=g+Math.imul(Ue,Qt)|0)+(n>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,x=Math.imul(be,xt),n=(n=Math.imul(be,Nt))+Math.imul(qe,xt)|0,g=Math.imul(qe,Nt),x=x+Math.imul(ht,ke)|0,n=(n=n+Math.imul(ht,$)|0)+Math.imul(Ge,ke)|0,g=g+Math.imul(Ge,$)|0,x=x+Math.imul(Ke,Le)|0,n=(n=n+Math.imul(Ke,Je)|0)+Math.imul(lt,Le)|0,g=g+Math.imul(lt,Je)|0,x=x+Math.imul(Pe,Vt)|0,n=(n=n+Math.imul(Pe,ii)|0)+Math.imul(de,Vt)|0,g=g+Math.imul(de,ii)|0,x=x+Math.imul(pe,ot)|0,n=(n=n+Math.imul(pe,ft)|0)+Math.imul(Ve,ot)|0,g=g+Math.imul(Ve,ft)|0,x=x+Math.imul(De,gt)|0,n=(n=n+Math.imul(De,$e)|0)+Math.imul(he,gt)|0,g=g+Math.imul(he,$e)|0,x=x+Math.imul(Oe,vt)|0,n=(n=n+Math.imul(Oe,He)|0)+Math.imul(oe,vt)|0,g=g+Math.imul(oe,He)|0;var Oi=(k+(x=x+Math.imul(ye,At)|0)|0)+((8191&(n=(n=n+Math.imul(ye,Qt)|0)+Math.imul(xe,At)|0))<<13)|0;k=((g=g+Math.imul(xe,Qt)|0)+(n>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,x=Math.imul(be,ke),n=(n=Math.imul(be,$))+Math.imul(qe,ke)|0,g=Math.imul(qe,$),x=x+Math.imul(ht,Le)|0,n=(n=n+Math.imul(ht,Je)|0)+Math.imul(Ge,Le)|0,g=g+Math.imul(Ge,Je)|0,x=x+Math.imul(Ke,Vt)|0,n=(n=n+Math.imul(Ke,ii)|0)+Math.imul(lt,Vt)|0,g=g+Math.imul(lt,ii)|0,x=x+Math.imul(Pe,ot)|0,n=(n=n+Math.imul(Pe,ft)|0)+Math.imul(de,ot)|0,g=g+Math.imul(de,ft)|0,x=x+Math.imul(pe,gt)|0,n=(n=n+Math.imul(pe,$e)|0)+Math.imul(Ve,gt)|0,g=g+Math.imul(Ve,$e)|0,x=x+Math.imul(De,vt)|0,n=(n=n+Math.imul(De,He)|0)+Math.imul(he,vt)|0,g=g+Math.imul(he,He)|0;var Qi=(k+(x=x+Math.imul(Oe,At)|0)|0)+((8191&(n=(n=n+Math.imul(Oe,Qt)|0)+Math.imul(oe,At)|0))<<13)|0;k=((g=g+Math.imul(oe,Qt)|0)+(n>>>13)|0)+(Qi>>>26)|0,Qi&=67108863,x=Math.imul(be,Le),n=(n=Math.imul(be,Je))+Math.imul(qe,Le)|0,g=Math.imul(qe,Je),x=x+Math.imul(ht,Vt)|0,n=(n=n+Math.imul(ht,ii)|0)+Math.imul(Ge,Vt)|0,g=g+Math.imul(Ge,ii)|0,x=x+Math.imul(Ke,ot)|0,n=(n=n+Math.imul(Ke,ft)|0)+Math.imul(lt,ot)|0,g=g+Math.imul(lt,ft)|0,x=x+Math.imul(Pe,gt)|0,n=(n=n+Math.imul(Pe,$e)|0)+Math.imul(de,gt)|0,g=g+Math.imul(de,$e)|0,x=x+Math.imul(pe,vt)|0,n=(n=n+Math.imul(pe,He)|0)+Math.imul(Ve,vt)|0,g=g+Math.imul(Ve,He)|0;var en=(k+(x=x+Math.imul(De,At)|0)|0)+((8191&(n=(n=n+Math.imul(De,Qt)|0)+Math.imul(he,At)|0))<<13)|0;k=((g=g+Math.imul(he,Qt)|0)+(n>>>13)|0)+(en>>>26)|0,en&=67108863,x=Math.imul(be,Vt),n=(n=Math.imul(be,ii))+Math.imul(qe,Vt)|0,g=Math.imul(qe,ii),x=x+Math.imul(ht,ot)|0,n=(n=n+Math.imul(ht,ft)|0)+Math.imul(Ge,ot)|0,g=g+Math.imul(Ge,ft)|0,x=x+Math.imul(Ke,gt)|0,n=(n=n+Math.imul(Ke,$e)|0)+Math.imul(lt,gt)|0,g=g+Math.imul(lt,$e)|0,x=x+Math.imul(Pe,vt)|0,n=(n=n+Math.imul(Pe,He)|0)+Math.imul(de,vt)|0,g=g+Math.imul(de,He)|0;var Yi=(k+(x=x+Math.imul(pe,At)|0)|0)+((8191&(n=(n=n+Math.imul(pe,Qt)|0)+Math.imul(Ve,At)|0))<<13)|0;k=((g=g+Math.imul(Ve,Qt)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,x=Math.imul(be,ot),n=(n=Math.imul(be,ft))+Math.imul(qe,ot)|0,g=Math.imul(qe,ft),x=x+Math.imul(ht,gt)|0,n=(n=n+Math.imul(ht,$e)|0)+Math.imul(Ge,gt)|0,g=g+Math.imul(Ge,$e)|0,x=x+Math.imul(Ke,vt)|0,n=(n=n+Math.imul(Ke,He)|0)+Math.imul(lt,vt)|0,g=g+Math.imul(lt,He)|0;var Yt=(k+(x=x+Math.imul(Pe,At)|0)|0)+((8191&(n=(n=n+Math.imul(Pe,Qt)|0)+Math.imul(de,At)|0))<<13)|0;k=((g=g+Math.imul(de,Qt)|0)+(n>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,x=Math.imul(be,gt),n=(n=Math.imul(be,$e))+Math.imul(qe,gt)|0,g=Math.imul(qe,$e),x=x+Math.imul(ht,vt)|0,n=(n=n+Math.imul(ht,He)|0)+Math.imul(Ge,vt)|0,g=g+Math.imul(Ge,He)|0;var qt=(k+(x=x+Math.imul(Ke,At)|0)|0)+((8191&(n=(n=n+Math.imul(Ke,Qt)|0)+Math.imul(lt,At)|0))<<13)|0;k=((g=g+Math.imul(lt,Qt)|0)+(n>>>13)|0)+(qt>>>26)|0,qt&=67108863,x=Math.imul(be,vt),n=(n=Math.imul(be,He))+Math.imul(qe,vt)|0,g=Math.imul(qe,He);var _e=(k+(x=x+Math.imul(ht,At)|0)|0)+((8191&(n=(n=n+Math.imul(ht,Qt)|0)+Math.imul(Ge,At)|0))<<13)|0;k=((g=g+Math.imul(Ge,Qt)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863;var dt=(k+(x=Math.imul(be,At))|0)+((8191&(n=(n=Math.imul(be,Qt))+Math.imul(qe,At)|0))<<13)|0;return k=((g=Math.imul(qe,Qt))+(n>>>13)|0)+(dt>>>26)|0,dt&=67108863,I[0]=zi,I[1]=Ni,I[2]=Mi,I[3]=Gi,I[4]=Xe,I[5]=It,I[6]=Se,I[7]=wt,I[8]=Zt,I[9]=si,I[10]=Ai,I[11]=Oi,I[12]=Qi,I[13]=en,I[14]=Yi,I[15]=Yt,I[16]=qt,I[17]=_e,I[18]=dt,0!==k&&(I[19]=k,f.length++),f};function j(M,i,a){return(new Q).mulp(M,i,a)}function Q(M,i){this.x=M,this.y=i}Math.imul||(V=H),s.prototype.mulTo=function(i,a){var f,l=this.length+i.length;return f=10===this.length&&10===i.length?V(this,i,a):l<63?H(this,i,a):l<1024?function Y(M,i,a){a.negative=i.negative^M.negative,a.length=M.length+i.length;for(var f=0,l=0,v=0;v>>26)|0)>>>26,I&=67108863}a.words[v]=k,f=I,I=l}return 0!==f?a.words[v]=f:a.length--,a.strip()}(this,i,a):j(this,i,a),f},Q.prototype.makeRBT=function(i){for(var a=new Array(i),f=s.prototype._countBits(i)-1,l=0;l>=1;return l},Q.prototype.permute=function(i,a,f,l,v,I){for(var k=0;k>>=1)v++;return 1<>>=13),v>>>=13;for(I=2*a;I>=26,a+=l/67108864|0,a+=v>>>26,this.words[f]=67108863&v}return 0!==a&&(this.words[f]=a,this.length++),this},s.prototype.muln=function(i){return this.clone().imuln(i)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(i){var a=function D(M){for(var i=new Array(M.bitLength()),a=0;a>>l}return i}(i);if(0===a.length)return new s(1);for(var f=this,l=0;l=0);var v,a=i%26,f=(i-a)/26,l=67108863>>>26-a<<26-a;if(0!==a){var I=0;for(v=0;v>>26-a}I&&(this.words[v]=I,this.length++)}if(0!==f){for(v=this.length-1;v>=0;v--)this.words[v+f]=this.words[v];for(v=0;v=0),l=a?(a-a%26)/26:0;var v=i%26,I=Math.min((i-v)/26,this.length),k=67108863^67108863>>>v<I)for(this.length-=I,n=0;n=0&&(0!==g||n>=l);n--){var W=0|this.words[n];this.words[n]=g<<26-v|W>>>v,g=W&k}return x&&0!==g&&(x.words[x.length++]=g),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,a,f){return _(0===this.negative),this.iushrn(i,a,f)},s.prototype.shln=function(i){return this.clone().ishln(i)},s.prototype.ushln=function(i){return this.clone().iushln(i)},s.prototype.shrn=function(i){return this.clone().ishrn(i)},s.prototype.ushrn=function(i){return this.clone().iushrn(i)},s.prototype.testn=function(i){_("number"==typeof i&&i>=0);var a=i%26,f=(i-a)/26;return!(this.length<=f||!(this.words[f]&1<=0);var a=i%26,f=(i-a)/26;return _(0===this.negative,"imaskn works only with positive numbers"),this.length<=f?this:(0!==a&&f++,this.length=Math.min(f,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},s.prototype.isubn=function(i){if(_("number"==typeof i),_(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[v+f]=67108863&I}for(;v>26,this.words[v+f]=67108863&I;if(0===k)return this.strip();for(_(-1===k),k=0,v=0;v>26,this.words[v]=67108863&I;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var f,l=this.clone(),v=i,I=0|v.words[v.length-1];0!=(f=26-this._countBits(I))&&(v=v.ushln(f),l.iushln(f),I=0|v.words[v.length-1]);var n,x=l.length-v.length;if("mod"!==a){(n=new s(null)).length=x+1,n.words=new Array(n.length);for(var g=0;g=0;O--){var G=67108864*(0|l.words[v.length+O])+(0|l.words[v.length+O-1]);for(G=Math.min(G/I|0,67108863),l._ishlnsubmul(v,G,O);0!==l.negative;)G--,l.negative=0,l._ishlnsubmul(v,1,O),l.isZero()||(l.negative^=1);n&&(n.words[O]=G)}return n&&n.strip(),l.strip(),"div"!==a&&0!==f&&l.iushrn(f),{div:n||null,mod:l}},s.prototype.divmod=function(i,a,f){return _(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(I=this.neg().divmod(i,a),"mod"!==a&&(l=I.div.neg()),"div"!==a&&(v=I.mod.neg(),f&&0!==v.negative&&v.iadd(i)),{div:l,mod:v}):0===this.negative&&0!==i.negative?(I=this.divmod(i.neg(),a),"mod"!==a&&(l=I.div.neg()),{div:l,mod:I.mod}):this.negative&i.negative?(I=this.neg().divmod(i.neg(),a),"div"!==a&&(v=I.mod.neg(),f&&0!==v.negative&&v.isub(i)),{div:I.div,mod:v}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new s(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new s(this.modn(i.words[0]))}:this._wordDiv(i,a);var l,v,I},s.prototype.div=function(i){return this.divmod(i,"div",!1).div},s.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},s.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},s.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var f=0!==a.div.negative?a.mod.isub(i):a.mod,l=i.ushrn(1),v=i.andln(1),I=f.cmp(l);return I<0||1===v&&0===I?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},s.prototype.modn=function(i){_(i<=67108863);for(var a=(1<<26)%i,f=0,l=this.length-1;l>=0;l--)f=(a*f+(0|this.words[l]))%i;return f},s.prototype.idivn=function(i){_(i<=67108863);for(var a=0,f=this.length-1;f>=0;f--){var l=(0|this.words[f])+67108864*a;this.words[f]=l/i|0,a=l%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){_(0===i.negative),_(!i.isZero());var a=this,f=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),v=new s(0),I=new s(0),k=new s(1),x=0;a.isEven()&&f.isEven();)a.iushrn(1),f.iushrn(1),++x;for(var n=f.clone(),g=a.clone();!a.isZero();){for(var W=0,O=1;!(a.words[0]&O)&&W<26;++W,O<<=1);if(W>0)for(a.iushrn(W);W-- >0;)(l.isOdd()||v.isOdd())&&(l.iadd(n),v.isub(g)),l.iushrn(1),v.iushrn(1);for(var G=0,ge=1;!(f.words[0]&ge)&&G<26;++G,ge<<=1);if(G>0)for(f.iushrn(G);G-- >0;)(I.isOdd()||k.isOdd())&&(I.iadd(n),k.isub(g)),I.iushrn(1),k.iushrn(1);a.cmp(f)>=0?(a.isub(f),l.isub(I),v.isub(k)):(f.isub(a),I.isub(l),k.isub(v))}return{a:I,b:k,gcd:f.iushln(x)}},s.prototype._invmp=function(i){_(0===i.negative),_(!i.isZero());var W,a=this,f=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),v=new s(0),I=f.clone();a.cmpn(1)>0&&f.cmpn(1)>0;){for(var k=0,x=1;!(a.words[0]&x)&&k<26;++k,x<<=1);if(k>0)for(a.iushrn(k);k-- >0;)l.isOdd()&&l.iadd(I),l.iushrn(1);for(var n=0,g=1;!(f.words[0]&g)&&n<26;++n,g<<=1);if(n>0)for(f.iushrn(n);n-- >0;)v.isOdd()&&v.iadd(I),v.iushrn(1);a.cmp(f)>=0?(a.isub(f),l.isub(v)):(f.isub(a),v.isub(l))}return(W=0===a.cmpn(1)?l:v).cmpn(0)<0&&W.iadd(i),W},s.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),f=i.clone();a.negative=0,f.negative=0;for(var l=0;a.isEven()&&f.isEven();l++)a.iushrn(1),f.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;f.isEven();)f.iushrn(1);var v=a.cmp(f);if(v<0){var I=a;a=f,f=I}else if(0===v||0===f.cmpn(1))break;a.isub(f)}return f.iushln(l)},s.prototype.invm=function(i){return this.egcd(i).a.umod(i)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(i){return this.words[0]&i},s.prototype.bincn=function(i){_("number"==typeof i);var a=i%26,f=(i-a)/26,l=1<>>26,this.words[I]=k&=67108863}return 0!==v&&(this.words[I]=v,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var f,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)f=1;else{a&&(i=-i),_(i<=67108863,"Number is too big");var l=0|this.words[0];f=l===i?0:li.length)return 1;if(this.length=0;f--){var l=0|this.words[f],v=0|i.words[f];if(l!==v){lv&&(a=1);break}}return a},s.prototype.gtn=function(i){return 1===this.cmpn(i)},s.prototype.gt=function(i){return 1===this.cmp(i)},s.prototype.gten=function(i){return this.cmpn(i)>=0},s.prototype.gte=function(i){return this.cmp(i)>=0},s.prototype.ltn=function(i){return-1===this.cmpn(i)},s.prototype.lt=function(i){return-1===this.cmp(i)},s.prototype.lten=function(i){return this.cmpn(i)<=0},s.prototype.lte=function(i){return this.cmp(i)<=0},s.prototype.eqn=function(i){return 0===this.cmpn(i)},s.prototype.eq=function(i){return 0===this.cmp(i)},s.red=function(i){return new ce(i)},s.prototype.toRed=function(i){return _(!this.red,"Already a number in reduction context"),_(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(i){return this.red=i,this},s.prototype.forceRed=function(i){return _(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return _(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var J={k256:null,p224:null,p192:null,p25519:null};function ee(M,i){this.name=M,this.p=new s(i,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function me(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function re(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ce(M){if("string"==typeof M){var i=s._prime(M);this.m=i.p,this.prime=i}else _(M.gtn(1),"modulus must be greater than 1"),this.m=M,this.prime=null}function Ce(M){ce.call(this,M),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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 s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var f,a=i;do{this.split(a,this.tmp),f=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(f>this.n);var l=f0?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)},T(me,ee),me.prototype.split=function(i,a){for(var f=4194303,l=Math.min(i.length,9),v=0;v>>22,I=k}i.words[v-10]=I>>>=22,i.length-=0===I&&i.length>10?10:9},me.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,f=0;f>>=26,i.words[f]=v,a=l}return 0!==a&&(i.words[i.length++]=a),i},s._prime=function(i){if(J[i])return J[i];var a;if("k256"===i)a=new me;else if("p224"===i)a=new re;else if("p192"===i)a=new ie;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new se}return J[i]=a,a},ce.prototype._verify1=function(i){_(0===i.negative,"red works only with positives"),_(i.red,"red works only with red numbers")},ce.prototype._verify2=function(i,a){_(0==(i.negative|a.negative),"red works only with positives"),_(i.red&&i.red===a.red,"red works only with red numbers")},ce.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},ce.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},ce.prototype.add=function(i,a){this._verify2(i,a);var f=i.add(a);return f.cmp(this.m)>=0&&f.isub(this.m),f._forceRed(this)},ce.prototype.iadd=function(i,a){this._verify2(i,a);var f=i.iadd(a);return f.cmp(this.m)>=0&&f.isub(this.m),f},ce.prototype.sub=function(i,a){this._verify2(i,a);var f=i.sub(a);return f.cmpn(0)<0&&f.iadd(this.m),f._forceRed(this)},ce.prototype.isub=function(i,a){this._verify2(i,a);var f=i.isub(a);return f.cmpn(0)<0&&f.iadd(this.m),f},ce.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},ce.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},ce.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},ce.prototype.isqr=function(i){return this.imul(i,i.clone())},ce.prototype.sqr=function(i){return this.mul(i,i)},ce.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(_(a%2==1),3===a){var f=this.m.add(new s(1)).iushrn(2);return this.pow(i,f)}for(var l=this.m.subn(1),v=0;!l.isZero()&&0===l.andln(1);)v++,l.iushrn(1);_(!l.isZero());var I=new s(1).toRed(this),k=I.redNeg(),x=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new s(2*n*n).toRed(this);0!==this.pow(n,x).cmp(k);)n.redIAdd(k);for(var g=this.pow(n,l),W=this.pow(i,l.addn(1).iushrn(1)),O=this.pow(i,l),G=v;0!==O.cmp(I);){for(var ge=O,nt=0;0!==ge.cmp(I);nt++)ge=ge.redSqr();_(nt=0;v--){for(var g=a.words[v],W=n-1;W>=0;W--){var O=g>>W&1;I!==l[0]&&(I=this.sqr(I)),0!==O||0!==k?(k<<=1,k|=O,(4==++x||0===v&&0===W)&&(I=this.mul(I,l[k]),x=0,k=0)):x=0}n=26}return I},ce.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},ce.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new Ce(i)},T(Ce,ce),Ce.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},Ce.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},Ce.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var f=i.imul(a),l=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=f.isub(l).iushrn(this.shift),I=v;return v.cmp(this.m)>=0?I=v.isub(this.m):v.cmpn(0)<0&&(I=v.iadd(this.m)),I._forceRed(this)},Ce.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new s(0)._forceRed(this);var f=i.mul(a),l=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=f.isub(l).iushrn(this.shift),I=v;return v.cmp(this.m)>=0?I=v.isub(this.m):v.cmpn(0)<0&&(I=v.iadd(this.m)),I._forceRed(this)},Ce.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(We=m.nmd(We),this)},4901:We=>{"use strict";var q={single_source_shortest_paths:function(m,t,e){var _={},T={};T[t]=0;var y,h,P,d,w,L,s=q.PriorityQueue.make();for(s.push(t,0);!s.empty();)for(P in d=(y=s.pop()).cost,w=m[h=y.value]||{})w.hasOwnProperty(P)&&(L=d+w[P],(typeof T[P]>"u"||T[P]>L)&&(T[P]=L,s.push(P,L),_[P]=h));if(typeof e<"u"&&typeof T[e]>"u"){var V=["Could not find a path from ",t," to ",e,"."].join("");throw new Error(V)}return _},extract_shortest_path_from_predecessor_list:function(m,t){for(var e=[],_=t;_;)e.push(_),_=m[_];return e.reverse(),e},find_path:function(m,t,e){var _=q.single_source_shortest_paths(m,t,e);return q.extract_shortest_path_from_predecessor_list(_,e)},PriorityQueue:{make:function(m){var _,t=q.PriorityQueue,e={};for(_ in m=m||{},t)t.hasOwnProperty(_)&&(e[_]=t[_]);return e.queue=[],e.sorter=m.sorter||t.default_sorter,e},default_sorter:function(m,t){return m.cost-t.cost},push:function(m,t){this.queue.push({value:m,cost:t}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};We.exports=q},7715:(We,q,m)=>{"use strict";var t=q;t.version=m(8597).i8,t.utils=m(1970),t.rand=m(7950),t.curve=m(6270),t.curves=m(2916),t.ec=m(7626),t.eddsa=m(1885)},7902:(We,q,m)=>{"use strict";var t=m(7433),e=m(1970),_=e.getNAF,T=e.getJSF,s=e.assert;function y(P,d){this.type=P,this.p=new t(d.p,16),this.red=d.prime?t.red(d.prime):t.mont(this.p),this.zero=new t(0).toRed(this.red),this.one=new t(1).toRed(this.red),this.two=new t(2).toRed(this.red),this.n=d.n&&new t(d.n,16),this.g=d.g&&this.pointFromJSON(d.g,d.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var w=this.n&&this.p.div(this.n);!w||w.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function h(P,d){this.curve=P,this.type=d,this.precomputed=null}We.exports=y,y.prototype.point=function(){throw new Error("Not implemented")},y.prototype.validate=function(){throw new Error("Not implemented")},y.prototype._fixedNafMul=function(d,w){s(d.precomputed);var C=d._getDoubles(),L=_(w,1,this._bitLength),D=(1<=V;j--)Y=(Y<<1)+L[j];H.push(Y)}for(var Q=this.jpoint(null,null,null),J=this.jpoint(null,null,null),ee=D;ee>0;ee--){for(V=0;V=0;Y--){for(var j=0;Y>=0&&0===H[Y];Y--)j++;if(Y>=0&&j++,V=V.dblp(j),Y<0)break;var Q=H[Y];s(0!==Q),V="affine"===d.type?V.mixedAdd(Q>0?D[Q-1>>1]:D[-Q-1>>1].neg()):V.add(Q>0?D[Q-1>>1]:D[-Q-1>>1].neg())}return"affine"===d.type?V.toP():V},y.prototype._wnafMulAdd=function(d,w,C,L,D){var Q,J,ee,H=this._wnafT1,V=this._wnafT2,Y=this._wnafT3,j=0;for(Q=0;Q=1;Q-=2){var re=Q-1,ie=Q;if(1===H[re]&&1===H[ie]){var se=[w[re],null,null,w[ie]];0===w[re].y.cmp(w[ie].y)?(se[1]=w[re].add(w[ie]),se[2]=w[re].toJ().mixedAdd(w[ie].neg())):0===w[re].y.cmp(w[ie].y.redNeg())?(se[1]=w[re].toJ().mixedAdd(w[ie]),se[2]=w[re].add(w[ie].neg())):(se[1]=w[re].toJ().mixedAdd(w[ie]),se[2]=w[re].toJ().mixedAdd(w[ie].neg()));var ce=[-3,-1,-5,-7,0,7,5,1,3],Ce=T(C[re],C[ie]);for(j=Math.max(Ce[0].length,j),Y[re]=new Array(j),Y[ie]=new Array(j),J=0;J=0;Q--){for(var l=0;Q>=0;){var v=!0;for(J=0;J=0&&l++,a=a.dblp(l),Q<0)break;for(J=0;J0?ee=V[J][I-1>>1]:I<0&&(ee=V[J][-I-1>>1].neg()),a="affine"===ee.type?a.mixedAdd(ee):a.add(ee))}}for(Q=0;Q=Math.ceil((d.bitLength()+1)/w.step)},h.prototype._getDoubles=function(d,w){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var C=[this],L=this,D=0;D{"use strict";var t=m(1970),e=m(7433),_=m(3894),T=m(7902),s=t.assert;function y(P){this.twisted=1!=(0|P.a),this.mOneA=this.twisted&&-1==(0|P.a),this.extended=this.mOneA,T.call(this,"edwards",P),this.a=new e(P.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new e(P.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new e(P.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|P.c)}function h(P,d,w,C,L){T.BasePoint.call(this,P,"projective"),null===d&&null===w&&null===C?(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 e(d,16),this.y=new e(w,16),this.z=C?new e(C,16):this.curve.one,this.t=L&&new e(L,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,T),We.exports=y,y.prototype._mulA=function(d){return this.mOneA?d.redNeg():this.a.redMul(d)},y.prototype._mulC=function(d){return this.oneC?d:this.c.redMul(d)},y.prototype.jpoint=function(d,w,C,L){return this.point(d,w,C,L)},y.prototype.pointFromX=function(d,w){(d=new e(d,16)).red||(d=d.toRed(this.red));var C=d.redSqr(),L=this.c2.redSub(this.a.redMul(C)),D=this.one.redSub(this.c2.redMul(this.d).redMul(C)),H=L.redMul(D.redInvm()),V=H.redSqrt();if(0!==V.redSqr().redSub(H).cmp(this.zero))throw new Error("invalid point");var Y=V.fromRed().isOdd();return(w&&!Y||!w&&Y)&&(V=V.redNeg()),this.point(d,V)},y.prototype.pointFromY=function(d,w){(d=new e(d,16)).red||(d=d.toRed(this.red));var C=d.redSqr(),L=C.redSub(this.c2),D=C.redMul(this.d).redMul(this.c2).redSub(this.a),H=L.redMul(D.redInvm());if(0===H.cmp(this.zero)){if(w)throw new Error("invalid point");return this.point(this.zero,d)}var V=H.redSqrt();if(0!==V.redSqr().redSub(H).cmp(this.zero))throw new Error("invalid point");return V.fromRed().isOdd()!==w&&(V=V.redNeg()),this.point(V,d)},y.prototype.validate=function(d){if(d.isInfinity())return!0;d.normalize();var w=d.x.redSqr(),C=d.y.redSqr(),L=w.redMul(this.a).redAdd(C),D=this.c2.redMul(this.one.redAdd(this.d.redMul(w).redMul(C)));return 0===L.cmp(D)},_(h,T.BasePoint),y.prototype.pointFromJSON=function(d){return h.fromJSON(this,d)},y.prototype.point=function(d,w,C,L){return new h(this,d,w,C,L)},h.fromJSON=function(d,w){return new h(d,w[0],w[1],w[2])},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},h.prototype._extDbl=function(){var d=this.x.redSqr(),w=this.y.redSqr(),C=this.z.redSqr();C=C.redIAdd(C);var L=this.curve._mulA(d),D=this.x.redAdd(this.y).redSqr().redISub(d).redISub(w),H=L.redAdd(w),V=H.redSub(C),Y=L.redSub(w),j=D.redMul(V),Q=H.redMul(Y),J=D.redMul(Y),ee=V.redMul(H);return this.curve.point(j,Q,ee,J)},h.prototype._projDbl=function(){var L,D,H,V,Y,j,d=this.x.redAdd(this.y).redSqr(),w=this.x.redSqr(),C=this.y.redSqr();if(this.curve.twisted){var Q=(V=this.curve._mulA(w)).redAdd(C);this.zOne?(L=d.redSub(w).redSub(C).redMul(Q.redSub(this.curve.two)),D=Q.redMul(V.redSub(C)),H=Q.redSqr().redSub(Q).redSub(Q)):(Y=this.z.redSqr(),j=Q.redSub(Y).redISub(Y),L=d.redSub(w).redISub(C).redMul(j),D=Q.redMul(V.redSub(C)),H=Q.redMul(j))}else V=w.redAdd(C),Y=this.curve._mulC(this.z).redSqr(),j=V.redSub(Y).redSub(Y),L=this.curve._mulC(d.redISub(V)).redMul(j),D=this.curve._mulC(V).redMul(w.redISub(C)),H=V.redMul(j);return this.curve.point(L,D,H)},h.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},h.prototype._extAdd=function(d){var w=this.y.redSub(this.x).redMul(d.y.redSub(d.x)),C=this.y.redAdd(this.x).redMul(d.y.redAdd(d.x)),L=this.t.redMul(this.curve.dd).redMul(d.t),D=this.z.redMul(d.z.redAdd(d.z)),H=C.redSub(w),V=D.redSub(L),Y=D.redAdd(L),j=C.redAdd(w),Q=H.redMul(V),J=Y.redMul(j),ee=H.redMul(j),me=V.redMul(Y);return this.curve.point(Q,J,me,ee)},h.prototype._projAdd=function(d){var J,ee,w=this.z.redMul(d.z),C=w.redSqr(),L=this.x.redMul(d.x),D=this.y.redMul(d.y),H=this.curve.d.redMul(L).redMul(D),V=C.redSub(H),Y=C.redAdd(H),j=this.x.redAdd(this.y).redMul(d.x.redAdd(d.y)).redISub(L).redISub(D),Q=w.redMul(V).redMul(j);return this.curve.twisted?(J=w.redMul(Y).redMul(D.redSub(this.curve._mulA(L))),ee=V.redMul(Y)):(J=w.redMul(Y).redMul(D.redSub(L)),ee=this.curve._mulC(V).redMul(Y)),this.curve.point(Q,J,ee)},h.prototype.add=function(d){return this.isInfinity()?d:d.isInfinity()?this:this.curve.extended?this._extAdd(d):this._projAdd(d)},h.prototype.mul=function(d){return this._hasDoubles(d)?this.curve._fixedNafMul(this,d):this.curve._wnafMul(this,d)},h.prototype.mulAdd=function(d,w,C){return this.curve._wnafMulAdd(1,[this,w],[d,C],2,!1)},h.prototype.jmulAdd=function(d,w,C){return this.curve._wnafMulAdd(1,[this,w],[d,C],2,!0)},h.prototype.normalize=function(){if(this.zOne)return this;var d=this.z.redInvm();return this.x=this.x.redMul(d),this.y=this.y.redMul(d),this.t&&(this.t=this.t.redMul(d)),this.z=this.curve.one,this.zOne=!0,this},h.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},h.prototype.getX=function(){return this.normalize(),this.x.fromRed()},h.prototype.getY=function(){return this.normalize(),this.y.fromRed()},h.prototype.eq=function(d){return this===d||0===this.getX().cmp(d.getX())&&0===this.getY().cmp(d.getY())},h.prototype.eqXToP=function(d){var w=d.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(w))return!0;for(var C=d.clone(),L=this.curve.redN.redMul(this.z);;){if(C.iadd(this.curve.n),C.cmp(this.curve.p)>=0)return!1;if(w.redIAdd(L),0===this.x.cmp(w))return!0}},h.prototype.toP=h.prototype.normalize,h.prototype.mixedAdd=h.prototype.add},6270:(We,q,m)=>{"use strict";var t=q;t.base=m(7902),t.short=m(1781),t.mont=m(7064),t.edwards=m(3835)},7064:(We,q,m)=>{"use strict";var t=m(7433),e=m(3894),_=m(7902),T=m(1970);function s(h){_.call(this,"mont",h),this.a=new t(h.a,16).toRed(this.red),this.b=new t(h.b,16).toRed(this.red),this.i4=new t(4).toRed(this.red).redInvm(),this.two=new t(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function y(h,P,d){_.BasePoint.call(this,h,"projective"),null===P&&null===d?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new t(P,16),this.z=new t(d,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}e(s,_),We.exports=s,s.prototype.validate=function(P){var d=P.normalize().x,w=d.redSqr(),C=w.redMul(d).redAdd(w.redMul(this.a)).redAdd(d);return 0===C.redSqrt().redSqr().cmp(C)},e(y,_.BasePoint),s.prototype.decodePoint=function(P,d){return this.point(T.toArray(P,d),1)},s.prototype.point=function(P,d){return new y(this,P,d)},s.prototype.pointFromJSON=function(P){return y.fromJSON(this,P)},y.prototype.precompute=function(){},y.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},y.fromJSON=function(P,d){return new y(P,d[0],d[1]||P.one)},y.prototype.inspect=function(){return this.isInfinity()?"":""},y.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},y.prototype.dbl=function(){var d=this.x.redAdd(this.z).redSqr(),C=this.x.redSub(this.z).redSqr(),L=d.redSub(C),D=d.redMul(C),H=L.redMul(C.redAdd(this.curve.a24.redMul(L)));return this.curve.point(D,H)},y.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},y.prototype.diffAdd=function(P,d){var w=this.x.redAdd(this.z),C=this.x.redSub(this.z),L=P.x.redAdd(P.z),H=P.x.redSub(P.z).redMul(w),V=L.redMul(C),Y=d.z.redMul(H.redAdd(V).redSqr()),j=d.x.redMul(H.redISub(V).redSqr());return this.curve.point(Y,j)},y.prototype.mul=function(P){for(var d=P.clone(),w=this,C=this.curve.point(null,null),D=[];0!==d.cmpn(0);d.iushrn(1))D.push(d.andln(1));for(var H=D.length-1;H>=0;H--)0===D[H]?(w=w.diffAdd(C,this),C=C.dbl()):(C=w.diffAdd(C,this),w=w.dbl());return C},y.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},y.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},y.prototype.eq=function(P){return 0===this.getX().cmp(P.getX())},y.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},y.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},1781:(We,q,m)=>{"use strict";var t=m(1970),e=m(7433),_=m(3894),T=m(7902),s=t.assert;function y(d){T.call(this,"short",d),this.a=new e(d.a,16).toRed(this.red),this.b=new e(d.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(d),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function h(d,w,C,L){T.BasePoint.call(this,d,"affine"),null===w&&null===C?(this.x=null,this.y=null,this.inf=!0):(this.x=new e(w,16),this.y=new e(C,16),L&&(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 P(d,w,C,L){T.BasePoint.call(this,d,"jacobian"),null===w&&null===C&&null===L?(this.x=this.curve.one,this.y=this.curve.one,this.z=new e(0)):(this.x=new e(w,16),this.y=new e(C,16),this.z=new e(L,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,T),We.exports=y,y.prototype._getEndomorphism=function(w){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var C,L;if(w.beta)C=new e(w.beta,16).toRed(this.red);else{var D=this._getEndoRoots(this.p);C=(C=D[0].cmp(D[1])<0?D[0]:D[1]).toRed(this.red)}if(w.lambda)L=new e(w.lambda,16);else{var H=this._getEndoRoots(this.n);0===this.g.mul(H[0]).x.cmp(this.g.x.redMul(C))?L=H[0]:s(0===this.g.mul(L=H[1]).x.cmp(this.g.x.redMul(C)))}return{beta:C,lambda:L,basis:w.basis?w.basis.map(function(Y){return{a:new e(Y.a,16),b:new e(Y.b,16)}}):this._getEndoBasis(L)}}},y.prototype._getEndoRoots=function(w){var C=w===this.p?this.red:e.mont(w),L=new e(2).toRed(C).redInvm(),D=L.redNeg(),H=new e(3).toRed(C).redNeg().redSqrt().redMul(L);return[D.redAdd(H).fromRed(),D.redSub(H).fromRed()]},y.prototype._getEndoBasis=function(w){for(var Q,J,ee,me,re,ie,se,Ce,M,C=this.n.ushrn(Math.floor(this.n.bitLength()/2)),L=w,D=this.n.clone(),H=new e(1),V=new e(0),Y=new e(0),j=new e(1),ce=0;0!==L.cmpn(0);){var i=D.div(L);Ce=D.sub(i.mul(L)),M=Y.sub(i.mul(H));var a=j.sub(i.mul(V));if(!ee&&Ce.cmp(C)<0)Q=se.neg(),J=H,ee=Ce.neg(),me=M;else if(ee&&2==++ce)break;se=Ce,D=L,L=Ce,Y=H,H=M,j=V,V=a}re=Ce.neg(),ie=M;var f=ee.sqr().add(me.sqr());return re.sqr().add(ie.sqr()).cmp(f)>=0&&(re=Q,ie=J),ee.negative&&(ee=ee.neg(),me=me.neg()),re.negative&&(re=re.neg(),ie=ie.neg()),[{a:ee,b:me},{a:re,b:ie}]},y.prototype._endoSplit=function(w){var C=this.endo.basis,L=C[0],D=C[1],H=D.b.mul(w).divRound(this.n),V=L.b.neg().mul(w).divRound(this.n),Y=H.mul(L.a),j=V.mul(D.a),Q=H.mul(L.b),J=V.mul(D.b);return{k1:w.sub(Y).sub(j),k2:Q.add(J).neg()}},y.prototype.pointFromX=function(w,C){(w=new e(w,16)).red||(w=w.toRed(this.red));var L=w.redSqr().redMul(w).redIAdd(w.redMul(this.a)).redIAdd(this.b),D=L.redSqrt();if(0!==D.redSqr().redSub(L).cmp(this.zero))throw new Error("invalid point");var H=D.fromRed().isOdd();return(C&&!H||!C&&H)&&(D=D.redNeg()),this.point(w,D)},y.prototype.validate=function(w){if(w.inf)return!0;var C=w.x,L=w.y,D=this.a.redMul(C),H=C.redSqr().redMul(C).redIAdd(D).redIAdd(this.b);return 0===L.redSqr().redISub(H).cmpn(0)},y.prototype._endoWnafMulAdd=function(w,C,L){for(var D=this._endoWnafT1,H=this._endoWnafT2,V=0;V":""},h.prototype.isInfinity=function(){return this.inf},h.prototype.add=function(w){if(this.inf)return w;if(w.inf)return this;if(this.eq(w))return this.dbl();if(this.neg().eq(w))return this.curve.point(null,null);if(0===this.x.cmp(w.x))return this.curve.point(null,null);var C=this.y.redSub(w.y);0!==C.cmpn(0)&&(C=C.redMul(this.x.redSub(w.x).redInvm()));var L=C.redSqr().redISub(this.x).redISub(w.x),D=C.redMul(this.x.redSub(L)).redISub(this.y);return this.curve.point(L,D)},h.prototype.dbl=function(){if(this.inf)return this;var w=this.y.redAdd(this.y);if(0===w.cmpn(0))return this.curve.point(null,null);var C=this.curve.a,L=this.x.redSqr(),D=w.redInvm(),H=L.redAdd(L).redIAdd(L).redIAdd(C).redMul(D),V=H.redSqr().redISub(this.x.redAdd(this.x)),Y=H.redMul(this.x.redSub(V)).redISub(this.y);return this.curve.point(V,Y)},h.prototype.getX=function(){return this.x.fromRed()},h.prototype.getY=function(){return this.y.fromRed()},h.prototype.mul=function(w){return w=new e(w,16),this.isInfinity()?this:this._hasDoubles(w)?this.curve._fixedNafMul(this,w):this.curve.endo?this.curve._endoWnafMulAdd([this],[w]):this.curve._wnafMul(this,w)},h.prototype.mulAdd=function(w,C,L){var D=[this,C],H=[w,L];return this.curve.endo?this.curve._endoWnafMulAdd(D,H):this.curve._wnafMulAdd(1,D,H,2)},h.prototype.jmulAdd=function(w,C,L){var D=[this,C],H=[w,L];return this.curve.endo?this.curve._endoWnafMulAdd(D,H,!0):this.curve._wnafMulAdd(1,D,H,2,!0)},h.prototype.eq=function(w){return this===w||this.inf===w.inf&&(this.inf||0===this.x.cmp(w.x)&&0===this.y.cmp(w.y))},h.prototype.neg=function(w){if(this.inf)return this;var C=this.curve.point(this.x,this.y.redNeg());if(w&&this.precomputed){var L=this.precomputed,D=function(H){return H.neg()};C.precomputed={naf:L.naf&&{wnd:L.naf.wnd,points:L.naf.points.map(D)},doubles:L.doubles&&{step:L.doubles.step,points:L.doubles.points.map(D)}}}return C},h.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},_(P,T.BasePoint),y.prototype.jpoint=function(w,C,L){return new P(this,w,C,L)},P.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var w=this.z.redInvm(),C=w.redSqr(),L=this.x.redMul(C),D=this.y.redMul(C).redMul(w);return this.curve.point(L,D)},P.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},P.prototype.add=function(w){if(this.isInfinity())return w;if(w.isInfinity())return this;var C=w.z.redSqr(),L=this.z.redSqr(),D=this.x.redMul(C),H=w.x.redMul(L),V=this.y.redMul(C.redMul(w.z)),Y=w.y.redMul(L.redMul(this.z)),j=D.redSub(H),Q=V.redSub(Y);if(0===j.cmpn(0))return 0!==Q.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var J=j.redSqr(),ee=J.redMul(j),me=D.redMul(J),re=Q.redSqr().redIAdd(ee).redISub(me).redISub(me),ie=Q.redMul(me.redISub(re)).redISub(V.redMul(ee)),se=this.z.redMul(w.z).redMul(j);return this.curve.jpoint(re,ie,se)},P.prototype.mixedAdd=function(w){if(this.isInfinity())return w.toJ();if(w.isInfinity())return this;var C=this.z.redSqr(),L=this.x,D=w.x.redMul(C),H=this.y,V=w.y.redMul(C).redMul(this.z),Y=L.redSub(D),j=H.redSub(V);if(0===Y.cmpn(0))return 0!==j.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var Q=Y.redSqr(),J=Q.redMul(Y),ee=L.redMul(Q),me=j.redSqr().redIAdd(J).redISub(ee).redISub(ee),re=j.redMul(ee.redISub(me)).redISub(H.redMul(J)),ie=this.z.redMul(Y);return this.curve.jpoint(me,re,ie)},P.prototype.dblp=function(w){if(0===w)return this;if(this.isInfinity())return this;if(!w)return this.dbl();var C;if(this.curve.zeroA||this.curve.threeA){var L=this;for(C=0;C=0)return!1;if(L.redIAdd(H),0===this.x.cmp(L))return!0}},P.prototype.inspect=function(){return this.isInfinity()?"":""},P.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},2916:(We,q,m)=>{"use strict";var P,t=q,e=m(7084),_=m(6270),s=m(1970).assert;function y(d){this.curve="short"===d.type?new _.short(d):"edwards"===d.type?new _.edwards(d):new _.mont(d),this.g=this.curve.g,this.n=this.curve.n,this.hash=d.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function h(d,w){Object.defineProperty(t,d,{configurable:!0,enumerable:!0,get:function(){var C=new y(w);return Object.defineProperty(t,d,{configurable:!0,enumerable:!0,value:C}),C}})}t.PresetCurve=y,h("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:e.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),h("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:e.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),h("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:e.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),h("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:e.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"]}),h("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:e.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"]}),h("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:e.sha256,gRed:!1,g:["9"]}),h("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:e.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{P=m(5150)}catch{P=void 0}h("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:e.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",P]})},7626:(We,q,m)=>{"use strict";var t=m(7433),e=m(2438),_=m(1970),T=m(2916),s=m(7950),y=_.assert,h=m(1259),P=m(5957);function d(w){if(!(this instanceof d))return new d(w);"string"==typeof w&&(y(Object.prototype.hasOwnProperty.call(T,w),"Unknown curve "+w),w=T[w]),w instanceof T.PresetCurve&&(w={curve:w}),this.curve=w.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=w.curve.g,this.g.precompute(w.curve.n.bitLength()+1),this.hash=w.hash||w.curve.hash}We.exports=d,d.prototype.keyPair=function(C){return new h(this,C)},d.prototype.keyFromPrivate=function(C,L){return h.fromPrivate(this,C,L)},d.prototype.keyFromPublic=function(C,L){return h.fromPublic(this,C,L)},d.prototype.genKeyPair=function(C){C||(C={});for(var L=new e({hash:this.hash,pers:C.pers,persEnc:C.persEnc||"utf8",entropy:C.entropy||s(this.hash.hmacStrength),entropyEnc:C.entropy&&C.entropyEnc||"utf8",nonce:this.n.toArray()}),D=this.n.byteLength(),H=this.n.sub(new t(2));;){var V=new t(L.generate(D));if(!(V.cmp(H)>0))return V.iaddn(1),this.keyFromPrivate(V)}},d.prototype._truncateToN=function(C,L){var D=8*C.byteLength()-this.n.bitLength();return D>0&&(C=C.ushrn(D)),!L&&C.cmp(this.n)>=0?C.sub(this.n):C},d.prototype.sign=function(C,L,D,H){"object"==typeof D&&(H=D,D=null),H||(H={}),L=this.keyFromPrivate(L,D),C=this._truncateToN(new t(C,16));for(var V=this.n.byteLength(),Y=L.getPrivate().toArray("be",V),j=C.toArray("be",V),Q=new e({hash:this.hash,entropy:Y,nonce:j,pers:H.pers,persEnc:H.persEnc||"utf8"}),J=this.n.sub(new t(1)),ee=0;;ee++){var me=H.k?H.k(ee):new t(Q.generate(this.n.byteLength()));if(!((me=this._truncateToN(me,!0)).cmpn(1)<=0||me.cmp(J)>=0)){var re=this.g.mul(me);if(!re.isInfinity()){var ie=re.getX(),se=ie.umod(this.n);if(0!==se.cmpn(0)){var ce=me.invm(this.n).mul(se.mul(L.getPrivate()).iadd(C));if(0!==(ce=ce.umod(this.n)).cmpn(0)){var Ce=(re.getY().isOdd()?1:0)|(0!==ie.cmp(se)?2:0);return H.canonical&&ce.cmp(this.nh)>0&&(ce=this.n.sub(ce),Ce^=1),new P({r:se,s:ce,recoveryParam:Ce})}}}}}},d.prototype.verify=function(C,L,D,H){C=this._truncateToN(new t(C,16)),D=this.keyFromPublic(D,H);var V=(L=new P(L,"hex")).r,Y=L.s;if(V.cmpn(1)<0||V.cmp(this.n)>=0||Y.cmpn(1)<0||Y.cmp(this.n)>=0)return!1;var ee,j=Y.invm(this.n),Q=j.mul(C).umod(this.n),J=j.mul(V).umod(this.n);return this.curve._maxwellTrick?!(ee=this.g.jmulAdd(Q,D.getPublic(),J)).isInfinity()&&ee.eqXToP(V):!(ee=this.g.mulAdd(Q,D.getPublic(),J)).isInfinity()&&0===ee.getX().umod(this.n).cmp(V)},d.prototype.recoverPubKey=function(w,C,L,D){y((3&L)===L,"The recovery param is more than two bits"),C=new P(C,D);var H=this.n,V=new t(w),Y=C.r,j=C.s,Q=1&L,J=L>>1;if(Y.cmp(this.curve.p.umod(this.curve.n))>=0&&J)throw new Error("Unable to find sencond key candinate");Y=this.curve.pointFromX(J?Y.add(this.curve.n):Y,Q);var ee=C.r.invm(H),me=H.sub(V).mul(ee).umod(H),re=j.mul(ee).umod(H);return this.g.mulAdd(me,Y,re)},d.prototype.getKeyRecoveryParam=function(w,C,L,D){if(null!==(C=new P(C,D)).recoveryParam)return C.recoveryParam;for(var H=0;H<4;H++){var V;try{V=this.recoverPubKey(w,C,H)}catch{continue}if(V.eq(L))return H}throw new Error("Unable to find valid recovery factor")}},1259:(We,q,m)=>{"use strict";var t=m(7433),_=m(1970).assert;function T(s,y){this.ec=s,this.priv=null,this.pub=null,y.priv&&this._importPrivate(y.priv,y.privEnc),y.pub&&this._importPublic(y.pub,y.pubEnc)}We.exports=T,T.fromPublic=function(y,h,P){return h instanceof T?h:new T(y,{pub:h,pubEnc:P})},T.fromPrivate=function(y,h,P){return h instanceof T?h:new T(y,{priv:h,privEnc:P})},T.prototype.validate=function(){var y=this.getPublic();return y.isInfinity()?{result:!1,reason:"Invalid public key"}:y.validate()?y.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"}},T.prototype.getPublic=function(y,h){return"string"==typeof y&&(h=y,y=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),h?this.pub.encode(h,y):this.pub},T.prototype.getPrivate=function(y){return"hex"===y?this.priv.toString(16,2):this.priv},T.prototype._importPrivate=function(y,h){this.priv=new t(y,h||16),this.priv=this.priv.umod(this.ec.curve.n)},T.prototype._importPublic=function(y,h){if(y.x||y.y)return"mont"===this.ec.curve.type?_(y.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&_(y.x&&y.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(y.x,y.y));this.pub=this.ec.curve.decodePoint(y,h)},T.prototype.derive=function(y){return y.validate()||_(y.validate(),"public point not validated"),y.mul(this.priv).getX()},T.prototype.sign=function(y,h,P){return this.ec.sign(y,this,h,P)},T.prototype.verify=function(y,h){return this.ec.verify(y,h,this)},T.prototype.inspect=function(){return""}},5957:(We,q,m)=>{"use strict";var t=m(7433),e=m(1970),_=e.assert;function T(d,w){if(d instanceof T)return d;this._importDER(d,w)||(_(d.r&&d.s,"Signature without r or s"),this.r=new t(d.r,16),this.s=new t(d.s,16),this.recoveryParam=void 0===d.recoveryParam?null:d.recoveryParam)}function s(){this.place=0}function y(d,w){var C=d[w.place++];if(!(128&C))return C;var L=15&C;if(0===L||L>4)return!1;for(var D=0,H=0,V=w.place;H>>=0;return!(D<=127)&&(w.place=V,D)}function h(d){for(var w=0,C=d.length-1;!d[w]&&!(128&d[w+1])&&w>>3);for(d.push(128|C);--C;)d.push(w>>>(C<<3)&255);d.push(w)}}We.exports=T,T.prototype._importDER=function(w,C){w=e.toArray(w,C);var L=new s;if(48!==w[L.place++])return!1;var D=y(w,L);if(!1===D||D+L.place!==w.length||2!==w[L.place++])return!1;var H=y(w,L);if(!1===H)return!1;var V=w.slice(L.place,H+L.place);if(L.place+=H,2!==w[L.place++])return!1;var Y=y(w,L);if(!1===Y||w.length!==Y+L.place)return!1;var j=w.slice(L.place,Y+L.place);if(0===V[0]){if(!(128&V[1]))return!1;V=V.slice(1)}if(0===j[0]){if(!(128&j[1]))return!1;j=j.slice(1)}return this.r=new t(V),this.s=new t(j),this.recoveryParam=null,!0},T.prototype.toDER=function(w){var C=this.r.toArray(),L=this.s.toArray();for(128&C[0]&&(C=[0].concat(C)),128&L[0]&&(L=[0].concat(L)),C=h(C),L=h(L);!(L[0]||128&L[1]);)L=L.slice(1);var D=[2];P(D,C.length),(D=D.concat(C)).push(2),P(D,L.length);var H=D.concat(L),V=[48];return P(V,H.length),V=V.concat(H),e.encode(V,w)}},1885:(We,q,m)=>{"use strict";var t=m(7084),e=m(2916),_=m(1970),T=_.assert,s=_.parseBytes,y=m(7535),h=m(8241);function P(d){if(T("ed25519"===d,"only tested with ed25519 so far"),!(this instanceof P))return new P(d);this.curve=d=e[d].curve,this.g=d.g,this.g.precompute(d.n.bitLength()+1),this.pointClass=d.point().constructor,this.encodingLength=Math.ceil(d.n.bitLength()/8),this.hash=t.sha512}We.exports=P,P.prototype.sign=function(w,C){w=s(w);var L=this.keyFromSecret(C),D=this.hashInt(L.messagePrefix(),w),H=this.g.mul(D),V=this.encodePoint(H),Y=this.hashInt(V,L.pubBytes(),w).mul(L.priv()),j=D.add(Y).umod(this.curve.n);return this.makeSignature({R:H,S:j,Rencoded:V})},P.prototype.verify=function(w,C,L){w=s(w),C=this.makeSignature(C);var D=this.keyFromPublic(L),H=this.hashInt(C.Rencoded(),D.pubBytes(),w),V=this.g.mul(C.S());return C.R().add(D.pub().mul(H)).eq(V)},P.prototype.hashInt=function(){for(var w=this.hash(),C=0;C{"use strict";var t=m(1970),e=t.assert,_=t.parseBytes,T=t.cachedProperty;function s(y,h){this.eddsa=y,this._secret=_(h.secret),y.isPoint(h.pub)?this._pub=h.pub:this._pubBytes=_(h.pub)}s.fromPublic=function(h,P){return P instanceof s?P:new s(h,{pub:P})},s.fromSecret=function(h,P){return P instanceof s?P:new s(h,{secret:P})},s.prototype.secret=function(){return this._secret},T(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),T(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),T(s,"privBytes",function(){var h=this.eddsa,P=this.hash(),d=h.encodingLength-1,w=P.slice(0,h.encodingLength);return w[0]&=248,w[d]&=127,w[d]|=64,w}),T(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),T(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),T(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(h){return e(this._secret,"KeyPair can only verify"),this.eddsa.sign(h,this)},s.prototype.verify=function(h,P){return this.eddsa.verify(h,P,this)},s.prototype.getSecret=function(h){return e(this._secret,"KeyPair is public only"),t.encode(this.secret(),h)},s.prototype.getPublic=function(h){return t.encode(this.pubBytes(),h)},We.exports=s},8241:(We,q,m)=>{"use strict";var t=m(7433),e=m(1970),_=e.assert,T=e.cachedProperty,s=e.parseBytes;function y(h,P){this.eddsa=h,"object"!=typeof P&&(P=s(P)),Array.isArray(P)&&(P={R:P.slice(0,h.encodingLength),S:P.slice(h.encodingLength)}),_(P.R&&P.S,"Signature without R or S"),h.isPoint(P.R)&&(this._R=P.R),P.S instanceof t&&(this._S=P.S),this._Rencoded=Array.isArray(P.R)?P.R:P.Rencoded,this._Sencoded=Array.isArray(P.S)?P.S:P.Sencoded}T(y,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),T(y,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),T(y,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),T(y,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),y.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},y.prototype.toHex=function(){return e.encode(this.toBytes(),"hex").toUpperCase()},We.exports=y},5150:We=>{We.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:(We,q,m)=>{"use strict";var t=q,e=m(7433),_=m(2391),T=m(8195);t.assert=_,t.toArray=T.toArray,t.zero2=T.zero2,t.toHex=T.toHex,t.encode=T.encode,t.getNAF=function s(w,C,L){var D=new Array(Math.max(w.bitLength(),L)+1);D.fill(0);for(var H=1<(H>>1)-1?(H>>1)-Q:Q):j=0,D[Y]=j,V.iushrn(1)}return D},t.getJSF=function y(w,C){var L=[[],[]];w=w.clone(),C=C.clone();for(var V,D=0,H=0;w.cmpn(-D)>0||C.cmpn(-H)>0;){var Q,J,Y=w.andln(3)+D&3,j=C.andln(3)+H&3;3===Y&&(Y=-1),3===j&&(j=-1),Q=1&Y?3!=(V=w.andln(7)+D&7)&&5!==V||2!==j?Y:-Y:0,L[0].push(Q),J=1&j?3!=(V=C.andln(7)+H&7)&&5!==V||2!==Y?j:-j:0,L[1].push(J),2*D===Q+1&&(D=1-D),2*H===J+1&&(H=1-H),w.iushrn(1),C.iushrn(1)}return L},t.cachedProperty=function h(w,C,L){var D="_"+C;w.prototype[C]=function(){return void 0!==this[D]?this[D]:this[D]=L.call(this)}},t.parseBytes=function P(w){return"string"==typeof w?t.toArray(w,"hex"):w},t.intFromLE=function d(w){return new e(w,"hex","le")}},7433:function(We,q,m){!function(t,e){"use strict";function _(M,i){if(!M)throw new Error(i||"Assertion failed")}function T(M,i){M.super_=i;var a=function(){};a.prototype=i.prototype,M.prototype=new a,M.prototype.constructor=M}function s(M,i,a){if(s.isBN(M))return M;this.negative=0,this.words=null,this.length=0,this.red=null,null!==M&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(M||0,i||10,a||"be"))}var y;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{y=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:m(5568).Buffer}catch{}function h(M,i){var a=M.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function P(M,i,a){var f=h(M,a);return a-1>=i&&(f|=h(M,a-1)<<4),f}function d(M,i,a,f){for(var l=0,v=Math.min(M.length,a),I=i;I=49?k-49+10:k>=17?k-17+10:k}return l}s.isBN=function(i){return i instanceof s||null!==i&&"object"==typeof i&&i.constructor.wordSize===s.wordSize&&Array.isArray(i.words)},s.max=function(i,a){return i.cmp(a)>0?i:a},s.min=function(i,a){return i.cmp(a)<0?i:a},s.prototype._init=function(i,a,f){if("number"==typeof i)return this._initNumber(i,a,f);if("object"==typeof i)return this._initArray(i,a,f);"hex"===a&&(a=16),_(a===(0|a)&&a>=2&&a<=36);var l=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(l++,this.negative=1),l=0;l-=3)this.words[v]|=(I=i[l]|i[l-1]<<8|i[l-2]<<16)<>>26-k&67108863,(k+=24)>=26&&(k-=26,v++);else if("le"===f)for(l=0,v=0;l>>26-k&67108863,(k+=24)>=26&&(k-=26,v++);return this.strip()},s.prototype._parseHex=function(i,a,f){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var l=0;l=a;l-=2)k=P(i,a,l)<=18?(v-=18,this.words[I+=1]|=k>>>26):v+=8;else for(l=(i.length-a)%2==0?a+1:a;l=18?(v-=18,this.words[I+=1]|=k>>>26):v+=8;this.strip()},s.prototype._parseBase=function(i,a,f){this.words=[0],this.length=1;for(var l=0,v=1;v<=67108863;v*=a)l++;l--,v=v/a|0;for(var I=i.length-f,k=I%l,x=Math.min(I,I-k)+f,n=0,g=f;g1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var w=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[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],L=[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 H(M,i,a){a.negative=i.negative^M.negative;var f=M.length+i.length|0;a.length=f,f=f-1|0;var l=0|M.words[0],v=0|i.words[0],I=l*v,x=I/67108864|0;a.words[0]=67108863&I;for(var n=1;n>>26,W=67108863&x,O=Math.min(n,i.length-1),G=Math.max(0,n-M.length+1);G<=O;G++)g+=(I=(l=0|M.words[n-G|0])*(v=0|i.words[G])+W)/67108864|0,W=67108863&I;a.words[n]=0|W,x=0|g}return 0!==x?a.words[n]=0|x:a.length--,a.strip()}s.prototype.toString=function(i,a){var f;if(a=0|a||1,16===(i=i||10)||"hex"===i){f="";for(var l=0,v=0,I=0;I>>24-l&16777215)||I!==this.length-1?w[6-x.length]+x+f:x+f,(l+=2)>=26&&(l-=26,I--)}for(0!==v&&(f=v.toString(16)+f);f.length%a!=0;)f="0"+f;return 0!==this.negative&&(f="-"+f),f}if(i===(0|i)&&i>=2&&i<=36){var n=C[i],g=L[i];f="";var W=this.clone();for(W.negative=0;!W.isZero();){var O=W.modn(g).toString(i);f=(W=W.idivn(g)).isZero()?O+f:w[n-O.length]+O+f}for(this.isZero()&&(f="0"+f);f.length%a!=0;)f="0"+f;return 0!==this.negative&&(f="-"+f),f}_(!1,"Base should be between 2 and 36")},s.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&&_(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(i,a){return _(typeof y<"u"),this.toArrayLike(y,i,a)},s.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},s.prototype.toArrayLike=function(i,a,f){var l=this.byteLength(),v=f||Math.max(1,l);_(l<=v,"byte array longer than desired length"),_(v>0,"Requested array length <= 0"),this.strip();var x,n,I="le"===a,k=new i(v),g=this.clone();if(I){for(n=0;!g.isZero();n++)x=g.andln(255),g.iushrn(8),k[n]=x;for(;n=4096&&(f+=13,a>>>=13),a>=64&&(f+=7,a>>>=7),a>=8&&(f+=4,a>>>=4),a>=2&&(f+=2,a>>>=2),f+a},s.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,f=0;return 8191&a||(f+=13,a>>>=13),127&a||(f+=7,a>>>=7),15&a||(f+=4,a>>>=4),3&a||(f+=2,a>>>=2),1&a||f++,f},s.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},s.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},s.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var f=0;fi.length?this.clone().iand(i):i.clone().iand(this)},s.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},s.prototype.iuxor=function(i){var a,f;this.length>i.length?(a=this,f=i):(a=i,f=this);for(var l=0;li.length?this.clone().ixor(i):i.clone().ixor(this)},s.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},s.prototype.inotn=function(i){_("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),f=i%26;this._expand(a),f>0&&a--;for(var l=0;l0&&(this.words[l]=~this.words[l]&67108863>>26-f),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,a){_("number"==typeof i&&i>=0);var f=i/26|0,l=i%26;return this._expand(f+1),this.words[f]=a?this.words[f]|1<i.length?(f=this,l=i):(f=i,l=this);for(var v=0,I=0;I>>26;for(;0!==v&&I>>26;if(this.length=f.length,0!==v)this.words[this.length]=v,this.length++;else if(f!==this)for(;Ii.length?this.clone().iadd(i):i.clone().iadd(this)},s.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 l,v,f=this.cmp(i);if(0===f)return this.negative=0,this.length=1,this.words[0]=0,this;f>0?(l=this,v=i):(l=i,v=this);for(var I=0,k=0;k>26,this.words[k]=67108863&a;for(;0!==I&&k>26,this.words[k]=67108863&a;if(0===I&&k>>13,ge=0|l[1],nt=8191&ge,Ue=ge>>>13,at=0|l[2],ye=8191&at,xe=at>>>13,fe=0|l[3],Oe=8191&fe,oe=fe>>>13,Fe=0|l[4],De=8191&Fe,he=Fe>>>13,Me=0|l[5],pe=8191&Me,Ve=Me>>>13,Qe=0|l[6],Pe=8191&Qe,de=Qe>>>13,rt=0|l[7],Ke=8191&rt,lt=rt>>>13,Ut=0|l[8],ht=8191&Ut,Ge=Ut>>>13,yt=0|l[9],be=8191&yt,qe=yt>>>13,Ie=0|v[0],X=8191&Ie,mt=Ie>>>13,Tt=0|v[1],it=8191&Tt,je=Tt>>>13,zt=0|v[2],xt=8191&zt,Nt=zt>>>13,Gt=0|v[3],ke=8191&Gt,$=Gt>>>13,ue=0|v[4],Le=8191&ue,Je=ue>>>13,$t=0|v[5],Vt=8191&$t,ii=$t>>>13,pt=0|v[6],ot=8191&pt,ft=pt>>>13,St=0|v[7],gt=8191&St,$e=St>>>13,_t=0|v[8],vt=8191&_t,He=_t>>>13,Et=0|v[9],At=8191&Et,Qt=Et>>>13;f.negative=i.negative^a.negative,f.length=19;var zi=(k+(x=Math.imul(O,X))|0)+((8191&(n=(n=Math.imul(O,mt))+Math.imul(G,X)|0))<<13)|0;k=((g=Math.imul(G,mt))+(n>>>13)|0)+(zi>>>26)|0,zi&=67108863,x=Math.imul(nt,X),n=(n=Math.imul(nt,mt))+Math.imul(Ue,X)|0,g=Math.imul(Ue,mt);var Ni=(k+(x=x+Math.imul(O,it)|0)|0)+((8191&(n=(n=n+Math.imul(O,je)|0)+Math.imul(G,it)|0))<<13)|0;k=((g=g+Math.imul(G,je)|0)+(n>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(ye,X),n=(n=Math.imul(ye,mt))+Math.imul(xe,X)|0,g=Math.imul(xe,mt),x=x+Math.imul(nt,it)|0,n=(n=n+Math.imul(nt,je)|0)+Math.imul(Ue,it)|0,g=g+Math.imul(Ue,je)|0;var Mi=(k+(x=x+Math.imul(O,xt)|0)|0)+((8191&(n=(n=n+Math.imul(O,Nt)|0)+Math.imul(G,xt)|0))<<13)|0;k=((g=g+Math.imul(G,Nt)|0)+(n>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,x=Math.imul(Oe,X),n=(n=Math.imul(Oe,mt))+Math.imul(oe,X)|0,g=Math.imul(oe,mt),x=x+Math.imul(ye,it)|0,n=(n=n+Math.imul(ye,je)|0)+Math.imul(xe,it)|0,g=g+Math.imul(xe,je)|0,x=x+Math.imul(nt,xt)|0,n=(n=n+Math.imul(nt,Nt)|0)+Math.imul(Ue,xt)|0,g=g+Math.imul(Ue,Nt)|0;var Gi=(k+(x=x+Math.imul(O,ke)|0)|0)+((8191&(n=(n=n+Math.imul(O,$)|0)+Math.imul(G,ke)|0))<<13)|0;k=((g=g+Math.imul(G,$)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,x=Math.imul(De,X),n=(n=Math.imul(De,mt))+Math.imul(he,X)|0,g=Math.imul(he,mt),x=x+Math.imul(Oe,it)|0,n=(n=n+Math.imul(Oe,je)|0)+Math.imul(oe,it)|0,g=g+Math.imul(oe,je)|0,x=x+Math.imul(ye,xt)|0,n=(n=n+Math.imul(ye,Nt)|0)+Math.imul(xe,xt)|0,g=g+Math.imul(xe,Nt)|0,x=x+Math.imul(nt,ke)|0,n=(n=n+Math.imul(nt,$)|0)+Math.imul(Ue,ke)|0,g=g+Math.imul(Ue,$)|0;var Xe=(k+(x=x+Math.imul(O,Le)|0)|0)+((8191&(n=(n=n+Math.imul(O,Je)|0)+Math.imul(G,Le)|0))<<13)|0;k=((g=g+Math.imul(G,Je)|0)+(n>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,x=Math.imul(pe,X),n=(n=Math.imul(pe,mt))+Math.imul(Ve,X)|0,g=Math.imul(Ve,mt),x=x+Math.imul(De,it)|0,n=(n=n+Math.imul(De,je)|0)+Math.imul(he,it)|0,g=g+Math.imul(he,je)|0,x=x+Math.imul(Oe,xt)|0,n=(n=n+Math.imul(Oe,Nt)|0)+Math.imul(oe,xt)|0,g=g+Math.imul(oe,Nt)|0,x=x+Math.imul(ye,ke)|0,n=(n=n+Math.imul(ye,$)|0)+Math.imul(xe,ke)|0,g=g+Math.imul(xe,$)|0,x=x+Math.imul(nt,Le)|0,n=(n=n+Math.imul(nt,Je)|0)+Math.imul(Ue,Le)|0,g=g+Math.imul(Ue,Je)|0;var It=(k+(x=x+Math.imul(O,Vt)|0)|0)+((8191&(n=(n=n+Math.imul(O,ii)|0)+Math.imul(G,Vt)|0))<<13)|0;k=((g=g+Math.imul(G,ii)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,x=Math.imul(Pe,X),n=(n=Math.imul(Pe,mt))+Math.imul(de,X)|0,g=Math.imul(de,mt),x=x+Math.imul(pe,it)|0,n=(n=n+Math.imul(pe,je)|0)+Math.imul(Ve,it)|0,g=g+Math.imul(Ve,je)|0,x=x+Math.imul(De,xt)|0,n=(n=n+Math.imul(De,Nt)|0)+Math.imul(he,xt)|0,g=g+Math.imul(he,Nt)|0,x=x+Math.imul(Oe,ke)|0,n=(n=n+Math.imul(Oe,$)|0)+Math.imul(oe,ke)|0,g=g+Math.imul(oe,$)|0,x=x+Math.imul(ye,Le)|0,n=(n=n+Math.imul(ye,Je)|0)+Math.imul(xe,Le)|0,g=g+Math.imul(xe,Je)|0,x=x+Math.imul(nt,Vt)|0,n=(n=n+Math.imul(nt,ii)|0)+Math.imul(Ue,Vt)|0,g=g+Math.imul(Ue,ii)|0;var Se=(k+(x=x+Math.imul(O,ot)|0)|0)+((8191&(n=(n=n+Math.imul(O,ft)|0)+Math.imul(G,ot)|0))<<13)|0;k=((g=g+Math.imul(G,ft)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,x=Math.imul(Ke,X),n=(n=Math.imul(Ke,mt))+Math.imul(lt,X)|0,g=Math.imul(lt,mt),x=x+Math.imul(Pe,it)|0,n=(n=n+Math.imul(Pe,je)|0)+Math.imul(de,it)|0,g=g+Math.imul(de,je)|0,x=x+Math.imul(pe,xt)|0,n=(n=n+Math.imul(pe,Nt)|0)+Math.imul(Ve,xt)|0,g=g+Math.imul(Ve,Nt)|0,x=x+Math.imul(De,ke)|0,n=(n=n+Math.imul(De,$)|0)+Math.imul(he,ke)|0,g=g+Math.imul(he,$)|0,x=x+Math.imul(Oe,Le)|0,n=(n=n+Math.imul(Oe,Je)|0)+Math.imul(oe,Le)|0,g=g+Math.imul(oe,Je)|0,x=x+Math.imul(ye,Vt)|0,n=(n=n+Math.imul(ye,ii)|0)+Math.imul(xe,Vt)|0,g=g+Math.imul(xe,ii)|0,x=x+Math.imul(nt,ot)|0,n=(n=n+Math.imul(nt,ft)|0)+Math.imul(Ue,ot)|0,g=g+Math.imul(Ue,ft)|0;var wt=(k+(x=x+Math.imul(O,gt)|0)|0)+((8191&(n=(n=n+Math.imul(O,$e)|0)+Math.imul(G,gt)|0))<<13)|0;k=((g=g+Math.imul(G,$e)|0)+(n>>>13)|0)+(wt>>>26)|0,wt&=67108863,x=Math.imul(ht,X),n=(n=Math.imul(ht,mt))+Math.imul(Ge,X)|0,g=Math.imul(Ge,mt),x=x+Math.imul(Ke,it)|0,n=(n=n+Math.imul(Ke,je)|0)+Math.imul(lt,it)|0,g=g+Math.imul(lt,je)|0,x=x+Math.imul(Pe,xt)|0,n=(n=n+Math.imul(Pe,Nt)|0)+Math.imul(de,xt)|0,g=g+Math.imul(de,Nt)|0,x=x+Math.imul(pe,ke)|0,n=(n=n+Math.imul(pe,$)|0)+Math.imul(Ve,ke)|0,g=g+Math.imul(Ve,$)|0,x=x+Math.imul(De,Le)|0,n=(n=n+Math.imul(De,Je)|0)+Math.imul(he,Le)|0,g=g+Math.imul(he,Je)|0,x=x+Math.imul(Oe,Vt)|0,n=(n=n+Math.imul(Oe,ii)|0)+Math.imul(oe,Vt)|0,g=g+Math.imul(oe,ii)|0,x=x+Math.imul(ye,ot)|0,n=(n=n+Math.imul(ye,ft)|0)+Math.imul(xe,ot)|0,g=g+Math.imul(xe,ft)|0,x=x+Math.imul(nt,gt)|0,n=(n=n+Math.imul(nt,$e)|0)+Math.imul(Ue,gt)|0,g=g+Math.imul(Ue,$e)|0;var Zt=(k+(x=x+Math.imul(O,vt)|0)|0)+((8191&(n=(n=n+Math.imul(O,He)|0)+Math.imul(G,vt)|0))<<13)|0;k=((g=g+Math.imul(G,He)|0)+(n>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,x=Math.imul(be,X),n=(n=Math.imul(be,mt))+Math.imul(qe,X)|0,g=Math.imul(qe,mt),x=x+Math.imul(ht,it)|0,n=(n=n+Math.imul(ht,je)|0)+Math.imul(Ge,it)|0,g=g+Math.imul(Ge,je)|0,x=x+Math.imul(Ke,xt)|0,n=(n=n+Math.imul(Ke,Nt)|0)+Math.imul(lt,xt)|0,g=g+Math.imul(lt,Nt)|0,x=x+Math.imul(Pe,ke)|0,n=(n=n+Math.imul(Pe,$)|0)+Math.imul(de,ke)|0,g=g+Math.imul(de,$)|0,x=x+Math.imul(pe,Le)|0,n=(n=n+Math.imul(pe,Je)|0)+Math.imul(Ve,Le)|0,g=g+Math.imul(Ve,Je)|0,x=x+Math.imul(De,Vt)|0,n=(n=n+Math.imul(De,ii)|0)+Math.imul(he,Vt)|0,g=g+Math.imul(he,ii)|0,x=x+Math.imul(Oe,ot)|0,n=(n=n+Math.imul(Oe,ft)|0)+Math.imul(oe,ot)|0,g=g+Math.imul(oe,ft)|0,x=x+Math.imul(ye,gt)|0,n=(n=n+Math.imul(ye,$e)|0)+Math.imul(xe,gt)|0,g=g+Math.imul(xe,$e)|0,x=x+Math.imul(nt,vt)|0,n=(n=n+Math.imul(nt,He)|0)+Math.imul(Ue,vt)|0,g=g+Math.imul(Ue,He)|0;var si=(k+(x=x+Math.imul(O,At)|0)|0)+((8191&(n=(n=n+Math.imul(O,Qt)|0)+Math.imul(G,At)|0))<<13)|0;k=((g=g+Math.imul(G,Qt)|0)+(n>>>13)|0)+(si>>>26)|0,si&=67108863,x=Math.imul(be,it),n=(n=Math.imul(be,je))+Math.imul(qe,it)|0,g=Math.imul(qe,je),x=x+Math.imul(ht,xt)|0,n=(n=n+Math.imul(ht,Nt)|0)+Math.imul(Ge,xt)|0,g=g+Math.imul(Ge,Nt)|0,x=x+Math.imul(Ke,ke)|0,n=(n=n+Math.imul(Ke,$)|0)+Math.imul(lt,ke)|0,g=g+Math.imul(lt,$)|0,x=x+Math.imul(Pe,Le)|0,n=(n=n+Math.imul(Pe,Je)|0)+Math.imul(de,Le)|0,g=g+Math.imul(de,Je)|0,x=x+Math.imul(pe,Vt)|0,n=(n=n+Math.imul(pe,ii)|0)+Math.imul(Ve,Vt)|0,g=g+Math.imul(Ve,ii)|0,x=x+Math.imul(De,ot)|0,n=(n=n+Math.imul(De,ft)|0)+Math.imul(he,ot)|0,g=g+Math.imul(he,ft)|0,x=x+Math.imul(Oe,gt)|0,n=(n=n+Math.imul(Oe,$e)|0)+Math.imul(oe,gt)|0,g=g+Math.imul(oe,$e)|0,x=x+Math.imul(ye,vt)|0,n=(n=n+Math.imul(ye,He)|0)+Math.imul(xe,vt)|0,g=g+Math.imul(xe,He)|0;var Ai=(k+(x=x+Math.imul(nt,At)|0)|0)+((8191&(n=(n=n+Math.imul(nt,Qt)|0)+Math.imul(Ue,At)|0))<<13)|0;k=((g=g+Math.imul(Ue,Qt)|0)+(n>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,x=Math.imul(be,xt),n=(n=Math.imul(be,Nt))+Math.imul(qe,xt)|0,g=Math.imul(qe,Nt),x=x+Math.imul(ht,ke)|0,n=(n=n+Math.imul(ht,$)|0)+Math.imul(Ge,ke)|0,g=g+Math.imul(Ge,$)|0,x=x+Math.imul(Ke,Le)|0,n=(n=n+Math.imul(Ke,Je)|0)+Math.imul(lt,Le)|0,g=g+Math.imul(lt,Je)|0,x=x+Math.imul(Pe,Vt)|0,n=(n=n+Math.imul(Pe,ii)|0)+Math.imul(de,Vt)|0,g=g+Math.imul(de,ii)|0,x=x+Math.imul(pe,ot)|0,n=(n=n+Math.imul(pe,ft)|0)+Math.imul(Ve,ot)|0,g=g+Math.imul(Ve,ft)|0,x=x+Math.imul(De,gt)|0,n=(n=n+Math.imul(De,$e)|0)+Math.imul(he,gt)|0,g=g+Math.imul(he,$e)|0,x=x+Math.imul(Oe,vt)|0,n=(n=n+Math.imul(Oe,He)|0)+Math.imul(oe,vt)|0,g=g+Math.imul(oe,He)|0;var Oi=(k+(x=x+Math.imul(ye,At)|0)|0)+((8191&(n=(n=n+Math.imul(ye,Qt)|0)+Math.imul(xe,At)|0))<<13)|0;k=((g=g+Math.imul(xe,Qt)|0)+(n>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,x=Math.imul(be,ke),n=(n=Math.imul(be,$))+Math.imul(qe,ke)|0,g=Math.imul(qe,$),x=x+Math.imul(ht,Le)|0,n=(n=n+Math.imul(ht,Je)|0)+Math.imul(Ge,Le)|0,g=g+Math.imul(Ge,Je)|0,x=x+Math.imul(Ke,Vt)|0,n=(n=n+Math.imul(Ke,ii)|0)+Math.imul(lt,Vt)|0,g=g+Math.imul(lt,ii)|0,x=x+Math.imul(Pe,ot)|0,n=(n=n+Math.imul(Pe,ft)|0)+Math.imul(de,ot)|0,g=g+Math.imul(de,ft)|0,x=x+Math.imul(pe,gt)|0,n=(n=n+Math.imul(pe,$e)|0)+Math.imul(Ve,gt)|0,g=g+Math.imul(Ve,$e)|0,x=x+Math.imul(De,vt)|0,n=(n=n+Math.imul(De,He)|0)+Math.imul(he,vt)|0,g=g+Math.imul(he,He)|0;var Qi=(k+(x=x+Math.imul(Oe,At)|0)|0)+((8191&(n=(n=n+Math.imul(Oe,Qt)|0)+Math.imul(oe,At)|0))<<13)|0;k=((g=g+Math.imul(oe,Qt)|0)+(n>>>13)|0)+(Qi>>>26)|0,Qi&=67108863,x=Math.imul(be,Le),n=(n=Math.imul(be,Je))+Math.imul(qe,Le)|0,g=Math.imul(qe,Je),x=x+Math.imul(ht,Vt)|0,n=(n=n+Math.imul(ht,ii)|0)+Math.imul(Ge,Vt)|0,g=g+Math.imul(Ge,ii)|0,x=x+Math.imul(Ke,ot)|0,n=(n=n+Math.imul(Ke,ft)|0)+Math.imul(lt,ot)|0,g=g+Math.imul(lt,ft)|0,x=x+Math.imul(Pe,gt)|0,n=(n=n+Math.imul(Pe,$e)|0)+Math.imul(de,gt)|0,g=g+Math.imul(de,$e)|0,x=x+Math.imul(pe,vt)|0,n=(n=n+Math.imul(pe,He)|0)+Math.imul(Ve,vt)|0,g=g+Math.imul(Ve,He)|0;var en=(k+(x=x+Math.imul(De,At)|0)|0)+((8191&(n=(n=n+Math.imul(De,Qt)|0)+Math.imul(he,At)|0))<<13)|0;k=((g=g+Math.imul(he,Qt)|0)+(n>>>13)|0)+(en>>>26)|0,en&=67108863,x=Math.imul(be,Vt),n=(n=Math.imul(be,ii))+Math.imul(qe,Vt)|0,g=Math.imul(qe,ii),x=x+Math.imul(ht,ot)|0,n=(n=n+Math.imul(ht,ft)|0)+Math.imul(Ge,ot)|0,g=g+Math.imul(Ge,ft)|0,x=x+Math.imul(Ke,gt)|0,n=(n=n+Math.imul(Ke,$e)|0)+Math.imul(lt,gt)|0,g=g+Math.imul(lt,$e)|0,x=x+Math.imul(Pe,vt)|0,n=(n=n+Math.imul(Pe,He)|0)+Math.imul(de,vt)|0,g=g+Math.imul(de,He)|0;var Yi=(k+(x=x+Math.imul(pe,At)|0)|0)+((8191&(n=(n=n+Math.imul(pe,Qt)|0)+Math.imul(Ve,At)|0))<<13)|0;k=((g=g+Math.imul(Ve,Qt)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,x=Math.imul(be,ot),n=(n=Math.imul(be,ft))+Math.imul(qe,ot)|0,g=Math.imul(qe,ft),x=x+Math.imul(ht,gt)|0,n=(n=n+Math.imul(ht,$e)|0)+Math.imul(Ge,gt)|0,g=g+Math.imul(Ge,$e)|0,x=x+Math.imul(Ke,vt)|0,n=(n=n+Math.imul(Ke,He)|0)+Math.imul(lt,vt)|0,g=g+Math.imul(lt,He)|0;var Yt=(k+(x=x+Math.imul(Pe,At)|0)|0)+((8191&(n=(n=n+Math.imul(Pe,Qt)|0)+Math.imul(de,At)|0))<<13)|0;k=((g=g+Math.imul(de,Qt)|0)+(n>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,x=Math.imul(be,gt),n=(n=Math.imul(be,$e))+Math.imul(qe,gt)|0,g=Math.imul(qe,$e),x=x+Math.imul(ht,vt)|0,n=(n=n+Math.imul(ht,He)|0)+Math.imul(Ge,vt)|0,g=g+Math.imul(Ge,He)|0;var qt=(k+(x=x+Math.imul(Ke,At)|0)|0)+((8191&(n=(n=n+Math.imul(Ke,Qt)|0)+Math.imul(lt,At)|0))<<13)|0;k=((g=g+Math.imul(lt,Qt)|0)+(n>>>13)|0)+(qt>>>26)|0,qt&=67108863,x=Math.imul(be,vt),n=(n=Math.imul(be,He))+Math.imul(qe,vt)|0,g=Math.imul(qe,He);var _e=(k+(x=x+Math.imul(ht,At)|0)|0)+((8191&(n=(n=n+Math.imul(ht,Qt)|0)+Math.imul(Ge,At)|0))<<13)|0;k=((g=g+Math.imul(Ge,Qt)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863;var dt=(k+(x=Math.imul(be,At))|0)+((8191&(n=(n=Math.imul(be,Qt))+Math.imul(qe,At)|0))<<13)|0;return k=((g=Math.imul(qe,Qt))+(n>>>13)|0)+(dt>>>26)|0,dt&=67108863,I[0]=zi,I[1]=Ni,I[2]=Mi,I[3]=Gi,I[4]=Xe,I[5]=It,I[6]=Se,I[7]=wt,I[8]=Zt,I[9]=si,I[10]=Ai,I[11]=Oi,I[12]=Qi,I[13]=en,I[14]=Yi,I[15]=Yt,I[16]=qt,I[17]=_e,I[18]=dt,0!==k&&(I[19]=k,f.length++),f};function j(M,i,a){return(new Q).mulp(M,i,a)}function Q(M,i){this.x=M,this.y=i}Math.imul||(V=H),s.prototype.mulTo=function(i,a){var f,l=this.length+i.length;return f=10===this.length&&10===i.length?V(this,i,a):l<63?H(this,i,a):l<1024?function Y(M,i,a){a.negative=i.negative^M.negative,a.length=M.length+i.length;for(var f=0,l=0,v=0;v>>26)|0)>>>26,I&=67108863}a.words[v]=k,f=I,I=l}return 0!==f?a.words[v]=f:a.length--,a.strip()}(this,i,a):j(this,i,a),f},Q.prototype.makeRBT=function(i){for(var a=new Array(i),f=s.prototype._countBits(i)-1,l=0;l>=1;return l},Q.prototype.permute=function(i,a,f,l,v,I){for(var k=0;k>>=1)v++;return 1<>>=13),v>>>=13;for(I=2*a;I>=26,a+=l/67108864|0,a+=v>>>26,this.words[f]=67108863&v}return 0!==a&&(this.words[f]=a,this.length++),this},s.prototype.muln=function(i){return this.clone().imuln(i)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(i){var a=function D(M){for(var i=new Array(M.bitLength()),a=0;a>>l}return i}(i);if(0===a.length)return new s(1);for(var f=this,l=0;l=0);var v,a=i%26,f=(i-a)/26,l=67108863>>>26-a<<26-a;if(0!==a){var I=0;for(v=0;v>>26-a}I&&(this.words[v]=I,this.length++)}if(0!==f){for(v=this.length-1;v>=0;v--)this.words[v+f]=this.words[v];for(v=0;v=0),l=a?(a-a%26)/26:0;var v=i%26,I=Math.min((i-v)/26,this.length),k=67108863^67108863>>>v<I)for(this.length-=I,n=0;n=0&&(0!==g||n>=l);n--){var W=0|this.words[n];this.words[n]=g<<26-v|W>>>v,g=W&k}return x&&0!==g&&(x.words[x.length++]=g),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,a,f){return _(0===this.negative),this.iushrn(i,a,f)},s.prototype.shln=function(i){return this.clone().ishln(i)},s.prototype.ushln=function(i){return this.clone().iushln(i)},s.prototype.shrn=function(i){return this.clone().ishrn(i)},s.prototype.ushrn=function(i){return this.clone().iushrn(i)},s.prototype.testn=function(i){_("number"==typeof i&&i>=0);var a=i%26,f=(i-a)/26;return!(this.length<=f||!(this.words[f]&1<=0);var a=i%26,f=(i-a)/26;return _(0===this.negative,"imaskn works only with positive numbers"),this.length<=f?this:(0!==a&&f++,this.length=Math.min(f,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},s.prototype.isubn=function(i){if(_("number"==typeof i),_(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[v+f]=67108863&I}for(;v>26,this.words[v+f]=67108863&I;if(0===k)return this.strip();for(_(-1===k),k=0,v=0;v>26,this.words[v]=67108863&I;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var f,l=this.clone(),v=i,I=0|v.words[v.length-1];0!=(f=26-this._countBits(I))&&(v=v.ushln(f),l.iushln(f),I=0|v.words[v.length-1]);var n,x=l.length-v.length;if("mod"!==a){(n=new s(null)).length=x+1,n.words=new Array(n.length);for(var g=0;g=0;O--){var G=67108864*(0|l.words[v.length+O])+(0|l.words[v.length+O-1]);for(G=Math.min(G/I|0,67108863),l._ishlnsubmul(v,G,O);0!==l.negative;)G--,l.negative=0,l._ishlnsubmul(v,1,O),l.isZero()||(l.negative^=1);n&&(n.words[O]=G)}return n&&n.strip(),l.strip(),"div"!==a&&0!==f&&l.iushrn(f),{div:n||null,mod:l}},s.prototype.divmod=function(i,a,f){return _(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(I=this.neg().divmod(i,a),"mod"!==a&&(l=I.div.neg()),"div"!==a&&(v=I.mod.neg(),f&&0!==v.negative&&v.iadd(i)),{div:l,mod:v}):0===this.negative&&0!==i.negative?(I=this.divmod(i.neg(),a),"mod"!==a&&(l=I.div.neg()),{div:l,mod:I.mod}):this.negative&i.negative?(I=this.neg().divmod(i.neg(),a),"div"!==a&&(v=I.mod.neg(),f&&0!==v.negative&&v.isub(i)),{div:I.div,mod:v}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new s(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new s(this.modn(i.words[0]))}:this._wordDiv(i,a);var l,v,I},s.prototype.div=function(i){return this.divmod(i,"div",!1).div},s.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},s.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},s.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var f=0!==a.div.negative?a.mod.isub(i):a.mod,l=i.ushrn(1),v=i.andln(1),I=f.cmp(l);return I<0||1===v&&0===I?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},s.prototype.modn=function(i){_(i<=67108863);for(var a=(1<<26)%i,f=0,l=this.length-1;l>=0;l--)f=(a*f+(0|this.words[l]))%i;return f},s.prototype.idivn=function(i){_(i<=67108863);for(var a=0,f=this.length-1;f>=0;f--){var l=(0|this.words[f])+67108864*a;this.words[f]=l/i|0,a=l%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){_(0===i.negative),_(!i.isZero());var a=this,f=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),v=new s(0),I=new s(0),k=new s(1),x=0;a.isEven()&&f.isEven();)a.iushrn(1),f.iushrn(1),++x;for(var n=f.clone(),g=a.clone();!a.isZero();){for(var W=0,O=1;!(a.words[0]&O)&&W<26;++W,O<<=1);if(W>0)for(a.iushrn(W);W-- >0;)(l.isOdd()||v.isOdd())&&(l.iadd(n),v.isub(g)),l.iushrn(1),v.iushrn(1);for(var G=0,ge=1;!(f.words[0]&ge)&&G<26;++G,ge<<=1);if(G>0)for(f.iushrn(G);G-- >0;)(I.isOdd()||k.isOdd())&&(I.iadd(n),k.isub(g)),I.iushrn(1),k.iushrn(1);a.cmp(f)>=0?(a.isub(f),l.isub(I),v.isub(k)):(f.isub(a),I.isub(l),k.isub(v))}return{a:I,b:k,gcd:f.iushln(x)}},s.prototype._invmp=function(i){_(0===i.negative),_(!i.isZero());var W,a=this,f=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),v=new s(0),I=f.clone();a.cmpn(1)>0&&f.cmpn(1)>0;){for(var k=0,x=1;!(a.words[0]&x)&&k<26;++k,x<<=1);if(k>0)for(a.iushrn(k);k-- >0;)l.isOdd()&&l.iadd(I),l.iushrn(1);for(var n=0,g=1;!(f.words[0]&g)&&n<26;++n,g<<=1);if(n>0)for(f.iushrn(n);n-- >0;)v.isOdd()&&v.iadd(I),v.iushrn(1);a.cmp(f)>=0?(a.isub(f),l.isub(v)):(f.isub(a),v.isub(l))}return(W=0===a.cmpn(1)?l:v).cmpn(0)<0&&W.iadd(i),W},s.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),f=i.clone();a.negative=0,f.negative=0;for(var l=0;a.isEven()&&f.isEven();l++)a.iushrn(1),f.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;f.isEven();)f.iushrn(1);var v=a.cmp(f);if(v<0){var I=a;a=f,f=I}else if(0===v||0===f.cmpn(1))break;a.isub(f)}return f.iushln(l)},s.prototype.invm=function(i){return this.egcd(i).a.umod(i)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(i){return this.words[0]&i},s.prototype.bincn=function(i){_("number"==typeof i);var a=i%26,f=(i-a)/26,l=1<>>26,this.words[I]=k&=67108863}return 0!==v&&(this.words[I]=v,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var f,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)f=1;else{a&&(i=-i),_(i<=67108863,"Number is too big");var l=0|this.words[0];f=l===i?0:li.length)return 1;if(this.length=0;f--){var l=0|this.words[f],v=0|i.words[f];if(l!==v){lv&&(a=1);break}}return a},s.prototype.gtn=function(i){return 1===this.cmpn(i)},s.prototype.gt=function(i){return 1===this.cmp(i)},s.prototype.gten=function(i){return this.cmpn(i)>=0},s.prototype.gte=function(i){return this.cmp(i)>=0},s.prototype.ltn=function(i){return-1===this.cmpn(i)},s.prototype.lt=function(i){return-1===this.cmp(i)},s.prototype.lten=function(i){return this.cmpn(i)<=0},s.prototype.lte=function(i){return this.cmp(i)<=0},s.prototype.eqn=function(i){return 0===this.cmpn(i)},s.prototype.eq=function(i){return 0===this.cmp(i)},s.red=function(i){return new ce(i)},s.prototype.toRed=function(i){return _(!this.red,"Already a number in reduction context"),_(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(i){return this.red=i,this},s.prototype.forceRed=function(i){return _(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return _(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var J={k256:null,p224:null,p192:null,p25519:null};function ee(M,i){this.name=M,this.p=new s(i,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function me(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function re(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ce(M){if("string"==typeof M){var i=s._prime(M);this.m=i.p,this.prime=i}else _(M.gtn(1),"modulus must be greater than 1"),this.m=M,this.prime=null}function Ce(M){ce.call(this,M),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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 s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var f,a=i;do{this.split(a,this.tmp),f=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(f>this.n);var l=f0?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)},T(me,ee),me.prototype.split=function(i,a){for(var f=4194303,l=Math.min(i.length,9),v=0;v>>22,I=k}i.words[v-10]=I>>>=22,i.length-=0===I&&i.length>10?10:9},me.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,f=0;f>>=26,i.words[f]=v,a=l}return 0!==a&&(i.words[i.length++]=a),i},s._prime=function(i){if(J[i])return J[i];var a;if("k256"===i)a=new me;else if("p224"===i)a=new re;else if("p192"===i)a=new ie;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new se}return J[i]=a,a},ce.prototype._verify1=function(i){_(0===i.negative,"red works only with positives"),_(i.red,"red works only with red numbers")},ce.prototype._verify2=function(i,a){_(0==(i.negative|a.negative),"red works only with positives"),_(i.red&&i.red===a.red,"red works only with red numbers")},ce.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},ce.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},ce.prototype.add=function(i,a){this._verify2(i,a);var f=i.add(a);return f.cmp(this.m)>=0&&f.isub(this.m),f._forceRed(this)},ce.prototype.iadd=function(i,a){this._verify2(i,a);var f=i.iadd(a);return f.cmp(this.m)>=0&&f.isub(this.m),f},ce.prototype.sub=function(i,a){this._verify2(i,a);var f=i.sub(a);return f.cmpn(0)<0&&f.iadd(this.m),f._forceRed(this)},ce.prototype.isub=function(i,a){this._verify2(i,a);var f=i.isub(a);return f.cmpn(0)<0&&f.iadd(this.m),f},ce.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},ce.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},ce.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},ce.prototype.isqr=function(i){return this.imul(i,i.clone())},ce.prototype.sqr=function(i){return this.mul(i,i)},ce.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(_(a%2==1),3===a){var f=this.m.add(new s(1)).iushrn(2);return this.pow(i,f)}for(var l=this.m.subn(1),v=0;!l.isZero()&&0===l.andln(1);)v++,l.iushrn(1);_(!l.isZero());var I=new s(1).toRed(this),k=I.redNeg(),x=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new s(2*n*n).toRed(this);0!==this.pow(n,x).cmp(k);)n.redIAdd(k);for(var g=this.pow(n,l),W=this.pow(i,l.addn(1).iushrn(1)),O=this.pow(i,l),G=v;0!==O.cmp(I);){for(var ge=O,nt=0;0!==ge.cmp(I);nt++)ge=ge.redSqr();_(nt=0;v--){for(var g=a.words[v],W=n-1;W>=0;W--){var O=g>>W&1;I!==l[0]&&(I=this.sqr(I)),0!==O||0!==k?(k<<=1,k|=O,(4==++x||0===v&&0===W)&&(I=this.mul(I,l[k]),x=0,k=0)):x=0}n=26}return I},ce.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},ce.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new Ce(i)},T(Ce,ce),Ce.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},Ce.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},Ce.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var f=i.imul(a),l=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=f.isub(l).iushrn(this.shift),I=v;return v.cmp(this.m)>=0?I=v.isub(this.m):v.cmpn(0)<0&&(I=v.iadd(this.m)),I._forceRed(this)},Ce.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new s(0)._forceRed(this);var f=i.mul(a),l=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=f.isub(l).iushrn(this.shift),I=v;return v.cmp(this.m)>=0?I=v.isub(this.m):v.cmpn(0)<0&&(I=v.iadd(this.m)),I._forceRed(this)},Ce.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(We=m.nmd(We),this)},8419:We=>{"use strict";We.exports=function(m){for(var t=[],e=m.length,_=0;_=55296&&T<=56319&&e>_+1){var s=m.charCodeAt(_+1);s>=56320&&s<=57343&&(T=1024*(T-55296)+s-56320+65536,_+=1)}T<128?t.push(T):T<2048?(t.push(T>>6|192),t.push(63&T|128)):T<55296||T>=57344&&T<65536?(t.push(T>>12|224),t.push(T>>6&63|128),t.push(63&T|128)):T>=65536&&T<=1114111?(t.push(T>>18|240),t.push(T>>12&63|128),t.push(T>>6&63|128),t.push(63&T|128)):t.push(239,191,189)}return new Uint8Array(t).buffer}},9069:We=>{"use strict";var t,q="object"==typeof Reflect?Reflect:null,m=q&&"function"==typeof q.apply?q.apply:function(ee,me,re){return Function.prototype.apply.call(ee,me,re)};t=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 _=Number.isNaN||function(ee){return ee!=ee};function T(){T.init.call(this)}We.exports=T,We.exports.once=function Y(J,ee){return new Promise(function(me,re){function ie(ce){J.removeListener(ee,se),re(ce)}function se(){"function"==typeof J.removeListener&&J.removeListener("error",ie),me([].slice.call(arguments))}Q(J,ee,se,{once:!0}),"error"!==ee&&function j(J,ee,me){"function"==typeof J.on&&Q(J,"error",ee,me)}(J,ie,{once:!0})})},T.EventEmitter=T,T.prototype._events=void 0,T.prototype._eventsCount=0,T.prototype._maxListeners=void 0;var s=10;function y(J){if("function"!=typeof J)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof J)}function h(J){return void 0===J._maxListeners?T.defaultMaxListeners:J._maxListeners}function P(J,ee,me,re){var ie,se,ce;if(y(me),void 0===(se=J._events)?(se=J._events=Object.create(null),J._eventsCount=0):(void 0!==se.newListener&&(J.emit("newListener",ee,me.listener?me.listener:me),se=J._events),ce=se[ee]),void 0===ce)ce=se[ee]=me,++J._eventsCount;else if("function"==typeof ce?ce=se[ee]=re?[me,ce]:[ce,me]:re?ce.unshift(me):ce.push(me),(ie=h(J))>0&&ce.length>ie&&!ce.warned){ce.warned=!0;var Ce=new Error("Possible EventEmitter memory leak detected. "+ce.length+" "+String(ee)+" listeners added. Use emitter.setMaxListeners() to increase limit");Ce.name="MaxListenersExceededWarning",Ce.emitter=J,Ce.type=ee,Ce.count=ce.length,function e(J){console&&console.warn&&console.warn(J)}(Ce)}return J}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function w(J,ee,me){var re={fired:!1,wrapFn:void 0,target:J,type:ee,listener:me},ie=d.bind(re);return ie.listener=me,re.wrapFn=ie,ie}function C(J,ee,me){var re=J._events;if(void 0===re)return[];var ie=re[ee];return void 0===ie?[]:"function"==typeof ie?me?[ie.listener||ie]:[ie]:me?function V(J){for(var ee=new Array(J.length),me=0;me0&&(ce=me[0]),ce instanceof Error)throw ce;var Ce=new Error("Unhandled error."+(ce?" ("+ce.message+")":""));throw Ce.context=ce,Ce}var M=se[ee];if(void 0===M)return!1;if("function"==typeof M)m(M,this,me);else{var i=M.length,a=D(M,i);for(re=0;re=0;ce--)if(re[ce]===me||re[ce].listener===me){Ce=re[ce].listener,se=ce;break}if(se<0)return this;0===se?re.shift():function H(J,ee){for(;ee+1=0;ie--)this.removeListener(ee,me[ie]);return this},T.prototype.listeners=function(ee){return C(this,ee,!0)},T.prototype.rawListeners=function(ee){return C(this,ee,!1)},T.listenerCount=function(J,ee){return"function"==typeof J.listenerCount?J.listenerCount(ee):L.call(J,ee)},T.prototype.listenerCount=L,T.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},347:(We,q,m)=>{var t=m(3502).Buffer,e=m(8095);We.exports=function _(T,s,y,h){if(t.isBuffer(T)||(T=t.from(T,"binary")),s&&(t.isBuffer(s)||(s=t.from(s,"binary")),8!==s.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var P=y/8,d=t.alloc(P),w=t.alloc(h||0),C=t.alloc(0);P>0||h>0;){var L=new e;L.update(C),L.update(T),s&&L.update(s),C=L.digest();var D=0;if(P>0){var H=d.length-P;D=Math.min(P,C.length),C.copy(d,H,0,D),P-=D}if(D0){var V=w.length-h,Y=Math.min(h,C.length-D);C.copy(w,V,D,D+Y),h-=Y}}return C.fill(0),{key:d,iv:w}}},9650:(We,q,m)=>{"use strict";var t=m(3502).Buffer,e=m(5685).Transform;function s(y){e.call(this),this._block=t.allocUnsafe(y),this._blockSize=y,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}m(3894)(s,e),s.prototype._transform=function(y,h,P){var d=null;try{this.update(y,h)}catch(w){d=w}P(d)},s.prototype._flush=function(y){var h=null;try{this.push(this.digest())}catch(P){h=P}y(h)},s.prototype.update=function(y,h){if(function T(y,h){if(!t.isBuffer(y)&&"string"!=typeof y)throw new TypeError(h+" must be a string or a buffer")}(y,"Data"),this._finalized)throw new Error("Digest already called");t.isBuffer(y)||(y=t.from(y,h));for(var P=this._block,d=0;this._blockOffset+y.length-d>=this._blockSize;){for(var w=this._blockOffset;w0;++C)this._length[C]+=L,(L=this._length[C]/4294967296|0)>0&&(this._length[C]-=4294967296*L);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.prototype.digest=function(y){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var h=this._digest();void 0!==y&&(h=h.toString(y)),this._block.fill(0),this._blockOffset=0;for(var P=0;P<4;++P)this._length[P]=0;return h},s.prototype._digest=function(){throw new Error("_digest is not implemented")},We.exports=s},7084:(We,q,m)=>{var t=q;t.utils=m(9299),t.common=m(3800),t.sha=m(4962),t.ripemd=m(9458),t.hmac=m(2194),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160},3800:(We,q,m)=>{"use strict";var t=m(9299),e=m(2391);function _(){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=_,_.prototype.update=function(s,y){if(s=t.toArray(s,y),this.pending=this.pending?this.pending.concat(s):s,this.pendingTotal+=s.length,this.pending.length>=this._delta8){var h=(s=this.pending).length%this._delta8;this.pending=s.slice(s.length-h,s.length),0===this.pending.length&&(this.pending=null),s=t.join32(s,0,s.length-h,this.endian);for(var P=0;P>>24&255,P[d++]=s>>>16&255,P[d++]=s>>>8&255,P[d++]=255&s}else for(P[d++]=255&s,P[d++]=s>>>8&255,P[d++]=s>>>16&255,P[d++]=s>>>24&255,P[d++]=0,P[d++]=0,P[d++]=0,P[d++]=0,w=8;w{"use strict";var t=m(9299),e=m(2391);function _(T,s,y){if(!(this instanceof _))return new _(T,s,y);this.Hash=T,this.blockSize=T.blockSize/8,this.outSize=T.outSize/8,this.inner=null,this.outer=null,this._init(t.toArray(s,y))}We.exports=_,_.prototype._init=function(s){s.length>this.blockSize&&(s=(new this.Hash).update(s).digest()),e(s.length<=this.blockSize);for(var y=s.length;y{"use strict";var t=m(9299),e=m(3800),_=t.rotl32,T=t.sum32,s=t.sum32_3,y=t.sum32_4,h=e.BlockHash;function P(){if(!(this instanceof P))return new P;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function d(Y,j,Q,J){return Y<=15?j^Q^J:Y<=31?j&Q|~j&J:Y<=47?(j|~Q)^J:Y<=63?j&J|Q&~J:j^(Q|~J)}function C(Y){return Y<=15?1352829926:Y<=31?1548603684:Y<=47?1836072691:Y<=63?2053994217:0}t.inherits(P,h),q.ripemd160=P,P.blockSize=512,P.outSize=160,P.hmacStrength=192,P.padLength=64,P.prototype._update=function(j,Q){for(var J=this.h[0],ee=this.h[1],me=this.h[2],re=this.h[3],ie=this.h[4],se=J,ce=ee,Ce=me,M=re,i=ie,a=0;a<80;a++){var f=T(_(y(J,d(a,ee,me,re),j[L[a]+Q],(Y=a)<=15?0:Y<=31?1518500249:Y<=47?1859775393:Y<=63?2400959708:2840853838),H[a]),ie);J=ie,ie=re,re=_(me,10),me=ee,ee=f,f=T(_(y(se,d(79-a,ce,Ce,M),j[D[a]+Q],C(a)),V[a]),i),se=i,i=M,M=_(Ce,10),Ce=ce,ce=f}var Y;f=s(this.h[1],me,M),this.h[1]=s(this.h[2],re,i),this.h[2]=s(this.h[3],ie,se),this.h[3]=s(this.h[4],J,ce),this.h[4]=s(this.h[0],ee,Ce),this.h[0]=f},P.prototype._digest=function(j){return"hex"===j?t.toHex32(this.h,"little"):t.split32(this.h,"little")};var L=[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],D=[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],H=[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],V=[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:(We,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:(We,q,m)=>{"use strict";var t=m(9299),e=m(3800),_=m(3113),T=t.rotl32,s=t.sum32,y=t.sum32_5,h=_.ft_1,P=e.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function w(){if(!(this instanceof w))return new w;P.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}t.inherits(w,P),We.exports=w,w.blockSize=512,w.outSize=160,w.hmacStrength=80,w.padLength=64,w.prototype._update=function(L,D){for(var H=this.W,V=0;V<16;V++)H[V]=L[D+V];for(;V{"use strict";var t=m(9299),e=m(9342);function _(){if(!(this instanceof _))return new _;e.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}t.inherits(_,e),We.exports=_,_.blockSize=512,_.outSize=224,_.hmacStrength=192,_.padLength=64,_.prototype._digest=function(s){return"hex"===s?t.toHex32(this.h.slice(0,7),"big"):t.split32(this.h.slice(0,7),"big")}},9342:(We,q,m)=>{"use strict";var t=m(9299),e=m(3800),_=m(3113),T=m(2391),s=t.sum32,y=t.sum32_4,h=t.sum32_5,P=_.ch32,d=_.maj32,w=_.s0_256,C=_.s1_256,L=_.g0_256,D=_.g1_256,H=e.BlockHash,V=[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 Y(){if(!(this instanceof Y))return new Y;H.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=V,this.W=new Array(64)}t.inherits(Y,H),We.exports=Y,Y.blockSize=512,Y.outSize=256,Y.hmacStrength=192,Y.padLength=64,Y.prototype._update=function(Q,J){for(var ee=this.W,me=0;me<16;me++)ee[me]=Q[J+me];for(;me{"use strict";var t=m(9299),e=m(39);function _(){if(!(this instanceof _))return new _;e.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}t.inherits(_,e),We.exports=_,_.blockSize=1024,_.outSize=384,_.hmacStrength=192,_.padLength=128,_.prototype._digest=function(s){return"hex"===s?t.toHex32(this.h.slice(0,12),"big"):t.split32(this.h.slice(0,12),"big")}},39:(We,q,m)=>{"use strict";var t=m(9299),e=m(3800),_=m(2391),T=t.rotr64_hi,s=t.rotr64_lo,y=t.shr64_hi,h=t.shr64_lo,P=t.sum64,d=t.sum64_hi,w=t.sum64_lo,C=t.sum64_4_hi,L=t.sum64_4_lo,D=t.sum64_5_hi,H=t.sum64_5_lo,V=e.BlockHash,Y=[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;V.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=Y,this.W=new Array(160)}function Q(f,l,v,I,k){var x=f&v^~f&k;return x<0&&(x+=4294967296),x}function J(f,l,v,I,k,x){var n=l&I^~l&x;return n<0&&(n+=4294967296),n}function ee(f,l,v,I,k){var x=f&v^f&k^v&k;return x<0&&(x+=4294967296),x}function me(f,l,v,I,k,x){var n=l&I^l&x^I&x;return n<0&&(n+=4294967296),n}function re(f,l){var x=T(f,l,28)^T(l,f,2)^T(l,f,7);return x<0&&(x+=4294967296),x}function ie(f,l){var x=s(f,l,28)^s(l,f,2)^s(l,f,7);return x<0&&(x+=4294967296),x}function se(f,l){var x=T(f,l,14)^T(f,l,18)^T(l,f,9);return x<0&&(x+=4294967296),x}function ce(f,l){var x=s(f,l,14)^s(f,l,18)^s(l,f,9);return x<0&&(x+=4294967296),x}function Ce(f,l){var x=T(f,l,1)^T(f,l,8)^y(f,l,7);return x<0&&(x+=4294967296),x}function M(f,l){var x=s(f,l,1)^s(f,l,8)^h(f,l,7);return x<0&&(x+=4294967296),x}function i(f,l){var x=T(f,l,19)^T(l,f,29)^y(f,l,6);return x<0&&(x+=4294967296),x}function a(f,l){var x=s(f,l,19)^s(l,f,29)^h(f,l,6);return x<0&&(x+=4294967296),x}t.inherits(j,V),We.exports=j,j.blockSize=1024,j.outSize=512,j.hmacStrength=192,j.padLength=128,j.prototype._prepareBlock=function(l,v){for(var I=this.W,k=0;k<32;k++)I[k]=l[v+k];for(;k{"use strict";var e=m(9299).rotr32;function T(C,L,D){return C&L^~C&D}function s(C,L,D){return C&L^C&D^L&D}function y(C,L,D){return C^L^D}q.ft_1=function _(C,L,D,H){return 0===C?T(L,D,H):1===C||3===C?y(L,D,H):2===C?s(L,D,H):void 0},q.ch32=T,q.maj32=s,q.p32=y,q.s0_256=function h(C){return e(C,2)^e(C,13)^e(C,22)},q.s1_256=function P(C){return e(C,6)^e(C,11)^e(C,25)},q.g0_256=function d(C){return e(C,7)^e(C,18)^C>>>3},q.g1_256=function w(C){return e(C,17)^e(C,19)^C>>>10}},9299:(We,q,m)=>{"use strict";var t=m(2391),e=m(3894);function _(a,f){return!(55296!=(64512&a.charCodeAt(f))||f<0||f+1>=a.length)&&56320==(64512&a.charCodeAt(f+1))}function y(a){return(a>>>24|a>>>8&65280|a<<8&16711680|(255&a)<<24)>>>0}function P(a){return 1===a.length?"0"+a:a}function d(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=e,q.toArray=function T(a,f){if(Array.isArray(a))return a.slice();if(!a)return[];var l=[];if("string"==typeof a)if(f){if("hex"===f)for((a=a.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(a="0"+a),I=0;I>6|192,l[v++]=63&k|128):_(a,I)?(k=65536+((1023&k)<<10)+(1023&a.charCodeAt(++I)),l[v++]=k>>18|240,l[v++]=k>>12&63|128,l[v++]=k>>6&63|128,l[v++]=63&k|128):(l[v++]=k>>12|224,l[v++]=k>>6&63|128,l[v++]=63&k|128)}else for(I=0;I>>0;return k},q.split32=function C(a,f){for(var l=new Array(4*a.length),v=0,I=0;v>>24,l[I+1]=k>>>16&255,l[I+2]=k>>>8&255,l[I+3]=255&k):(l[I+3]=k>>>24,l[I+2]=k>>>16&255,l[I+1]=k>>>8&255,l[I]=255&k)}return l},q.rotr32=function L(a,f){return a>>>f|a<<32-f},q.rotl32=function D(a,f){return a<>>32-f},q.sum32=function H(a,f){return a+f>>>0},q.sum32_3=function V(a,f,l){return a+f+l>>>0},q.sum32_4=function Y(a,f,l,v){return a+f+l+v>>>0},q.sum32_5=function j(a,f,l,v,I){return a+f+l+v+I>>>0},q.sum64=function Q(a,f,l,v){var x=v+a[f+1]>>>0;a[f]=(x>>0,a[f+1]=x},q.sum64_hi=function J(a,f,l,v){return(f+v>>>0>>0},q.sum64_lo=function ee(a,f,l,v){return f+v>>>0},q.sum64_4_hi=function me(a,f,l,v,I,k,x,n){var g=0,W=f;return g+=(W=W+v>>>0)>>0)>>0)>>0},q.sum64_4_lo=function re(a,f,l,v,I,k,x,n){return f+v+k+n>>>0},q.sum64_5_hi=function ie(a,f,l,v,I,k,x,n,g,W){var O=0,G=f;return O+=(G=G+v>>>0)>>0)>>0)>>0)>>0},q.sum64_5_lo=function se(a,f,l,v,I,k,x,n,g,W){return f+v+k+n+W>>>0},q.rotr64_hi=function ce(a,f,l){return(f<<32-l|a>>>l)>>>0},q.rotr64_lo=function Ce(a,f,l){return(a<<32-l|f>>>l)>>>0},q.shr64_hi=function M(a,f,l){return a>>>l},q.shr64_lo=function i(a,f,l){return(a<<32-l|f>>>l)>>>0}},2438:(We,q,m)=>{"use strict";var t=m(7084),e=m(8195),_=m(2391);function T(s){if(!(this instanceof T))return new T(s);this.hash=s.hash,this.predResist=!!s.predResist,this.outLen=this.hash.outSize,this.minEntropy=s.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var y=e.toArray(s.entropy,s.entropyEnc||"hex"),h=e.toArray(s.nonce,s.nonceEnc||"hex"),P=e.toArray(s.pers,s.persEnc||"hex");_(y.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(y,h,P)}We.exports=T,T.prototype._init=function(y,h,P){var d=y.concat(h).concat(P);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var w=0;w=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(y.concat(P||[])),this._reseed=1},T.prototype.generate=function(y,h,P,d){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof h&&(d=P,P=h,h=null),P&&(P=e.toArray(P,d||"hex"),this._update(P));for(var w=[];w.length{q.read=function(m,t,e,_,T){var s,y,h=8*T-_-1,P=(1<>1,w=-7,C=e?T-1:0,L=e?-1:1,D=m[t+C];for(C+=L,s=D&(1<<-w)-1,D>>=-w,w+=h;w>0;s=256*s+m[t+C],C+=L,w-=8);for(y=s&(1<<-w)-1,s>>=-w,w+=_;w>0;y=256*y+m[t+C],C+=L,w-=8);if(0===s)s=1-d;else{if(s===P)return y?NaN:1/0*(D?-1:1);y+=Math.pow(2,_),s-=d}return(D?-1:1)*y*Math.pow(2,s-_)},q.write=function(m,t,e,_,T,s){var y,h,P,d=8*s-T-1,w=(1<>1,L=23===T?Math.pow(2,-24)-Math.pow(2,-77):0,D=_?0:s-1,H=_?1:-1,V=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(h=isNaN(t)?1:0,y=w):(y=Math.floor(Math.log(t)/Math.LN2),t*(P=Math.pow(2,-y))<1&&(y--,P*=2),(t+=y+C>=1?L/P:L*Math.pow(2,1-C))*P>=2&&(y++,P/=2),y+C>=w?(h=0,y=w):y+C>=1?(h=(t*P-1)*Math.pow(2,T),y+=C):(h=t*Math.pow(2,C-1)*Math.pow(2,T),y=0));T>=8;m[e+D]=255&h,D+=H,h/=256,T-=8);for(y=y<0;m[e+D]=255&y,D+=H,y/=256,d-=8);m[e+D-H]|=128*V}},3894:We=>{We.exports="function"==typeof Object.create?function(m,t){t&&(m.super_=t,m.prototype=Object.create(t.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}))}:function(m,t){if(t){m.super_=t;var e=function(){};e.prototype=t.prototype,m.prototype=new e,m.prototype.constructor=m}}},8095:(We,q,m)=>{"use strict";var t=m(3894),e=m(9650),_=m(3502).Buffer,T=new Array(16);function s(){e.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function y(C,L){return C<>>32-L}function h(C,L,D,H,V,Y,j){return y(C+(L&D|~L&H)+V+Y|0,j)+L|0}function P(C,L,D,H,V,Y,j){return y(C+(L&H|D&~H)+V+Y|0,j)+L|0}function d(C,L,D,H,V,Y,j){return y(C+(L^D^H)+V+Y|0,j)+L|0}function w(C,L,D,H,V,Y,j){return y(C+(D^(L|~H))+V+Y|0,j)+L|0}t(s,e),s.prototype._update=function(){for(var C=T,L=0;L<16;++L)C[L]=this._block.readInt32LE(4*L);var D=this._a,H=this._b,V=this._c,Y=this._d;D=h(D,H,V,Y,C[0],3614090360,7),Y=h(Y,D,H,V,C[1],3905402710,12),V=h(V,Y,D,H,C[2],606105819,17),H=h(H,V,Y,D,C[3],3250441966,22),D=h(D,H,V,Y,C[4],4118548399,7),Y=h(Y,D,H,V,C[5],1200080426,12),V=h(V,Y,D,H,C[6],2821735955,17),H=h(H,V,Y,D,C[7],4249261313,22),D=h(D,H,V,Y,C[8],1770035416,7),Y=h(Y,D,H,V,C[9],2336552879,12),V=h(V,Y,D,H,C[10],4294925233,17),H=h(H,V,Y,D,C[11],2304563134,22),D=h(D,H,V,Y,C[12],1804603682,7),Y=h(Y,D,H,V,C[13],4254626195,12),V=h(V,Y,D,H,C[14],2792965006,17),D=P(D,H=h(H,V,Y,D,C[15],1236535329,22),V,Y,C[1],4129170786,5),Y=P(Y,D,H,V,C[6],3225465664,9),V=P(V,Y,D,H,C[11],643717713,14),H=P(H,V,Y,D,C[0],3921069994,20),D=P(D,H,V,Y,C[5],3593408605,5),Y=P(Y,D,H,V,C[10],38016083,9),V=P(V,Y,D,H,C[15],3634488961,14),H=P(H,V,Y,D,C[4],3889429448,20),D=P(D,H,V,Y,C[9],568446438,5),Y=P(Y,D,H,V,C[14],3275163606,9),V=P(V,Y,D,H,C[3],4107603335,14),H=P(H,V,Y,D,C[8],1163531501,20),D=P(D,H,V,Y,C[13],2850285829,5),Y=P(Y,D,H,V,C[2],4243563512,9),V=P(V,Y,D,H,C[7],1735328473,14),D=d(D,H=P(H,V,Y,D,C[12],2368359562,20),V,Y,C[5],4294588738,4),Y=d(Y,D,H,V,C[8],2272392833,11),V=d(V,Y,D,H,C[11],1839030562,16),H=d(H,V,Y,D,C[14],4259657740,23),D=d(D,H,V,Y,C[1],2763975236,4),Y=d(Y,D,H,V,C[4],1272893353,11),V=d(V,Y,D,H,C[7],4139469664,16),H=d(H,V,Y,D,C[10],3200236656,23),D=d(D,H,V,Y,C[13],681279174,4),Y=d(Y,D,H,V,C[0],3936430074,11),V=d(V,Y,D,H,C[3],3572445317,16),H=d(H,V,Y,D,C[6],76029189,23),D=d(D,H,V,Y,C[9],3654602809,4),Y=d(Y,D,H,V,C[12],3873151461,11),V=d(V,Y,D,H,C[15],530742520,16),D=w(D,H=d(H,V,Y,D,C[2],3299628645,23),V,Y,C[0],4096336452,6),Y=w(Y,D,H,V,C[7],1126891415,10),V=w(V,Y,D,H,C[14],2878612391,15),H=w(H,V,Y,D,C[5],4237533241,21),D=w(D,H,V,Y,C[12],1700485571,6),Y=w(Y,D,H,V,C[3],2399980690,10),V=w(V,Y,D,H,C[10],4293915773,15),H=w(H,V,Y,D,C[1],2240044497,21),D=w(D,H,V,Y,C[8],1873313359,6),Y=w(Y,D,H,V,C[15],4264355552,10),V=w(V,Y,D,H,C[6],2734768916,15),H=w(H,V,Y,D,C[13],1309151649,21),D=w(D,H,V,Y,C[4],4149444226,6),Y=w(Y,D,H,V,C[11],3174756917,10),V=w(V,Y,D,H,C[2],718787259,15),H=w(H,V,Y,D,C[9],3951481745,21),this._a=this._a+D|0,this._b=this._b+H|0,this._c=this._c+V|0,this._d=this._d+Y|0},s.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 C=_.allocUnsafe(16);return C.writeInt32LE(this._a,0),C.writeInt32LE(this._b,4),C.writeInt32LE(this._c,8),C.writeInt32LE(this._d,12),C},We.exports=s},7079:(We,q,m)=>{var t=m(1378),e=m(7950);function _(T){this.rand=T||new e.Rand}We.exports=_,_.create=function(s){return new _(s)},_.prototype._randbelow=function(s){var y=s.bitLength(),h=Math.ceil(y/8);do{var P=new t(this.rand.generate(h))}while(P.cmp(s)>=0);return P},_.prototype._randrange=function(s,y){var h=y.sub(s);return s.add(this._randbelow(h))},_.prototype.test=function(s,y,h){var P=s.bitLength(),d=t.mont(s),w=new t(1).toRed(d);y||(y=Math.max(1,P/48|0));for(var C=s.subn(1),L=0;!C.testn(L);L++);for(var D=s.shrn(L),H=C.toRed(d);y>0;y--){var Y=this._randrange(new t(2),C);h&&h(Y);var j=Y.toRed(d).redPow(D);if(0!==j.cmp(w)&&0!==j.cmp(H)){for(var Q=1;Q0;y--){var H=this._randrange(new t(2),w),V=s.gcd(H);if(0!==V.cmpn(1))return V;var Y=H.toRed(P).redPow(L);if(0!==Y.cmp(d)&&0!==Y.cmp(D)){for(var j=1;j=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function P(M,i,a){var f=h(M,a);return a-1>=i&&(f|=h(M,a-1)<<4),f}function d(M,i,a,f){for(var l=0,v=Math.min(M.length,a),I=i;I=49?k-49+10:k>=17?k-17+10:k}return l}s.isBN=function(i){return i instanceof s||null!==i&&"object"==typeof i&&i.constructor.wordSize===s.wordSize&&Array.isArray(i.words)},s.max=function(i,a){return i.cmp(a)>0?i:a},s.min=function(i,a){return i.cmp(a)<0?i:a},s.prototype._init=function(i,a,f){if("number"==typeof i)return this._initNumber(i,a,f);if("object"==typeof i)return this._initArray(i,a,f);"hex"===a&&(a=16),_(a===(0|a)&&a>=2&&a<=36);var l=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(l++,this.negative=1),l=0;l-=3)this.words[v]|=(I=i[l]|i[l-1]<<8|i[l-2]<<16)<>>26-k&67108863,(k+=24)>=26&&(k-=26,v++);else if("le"===f)for(l=0,v=0;l>>26-k&67108863,(k+=24)>=26&&(k-=26,v++);return this.strip()},s.prototype._parseHex=function(i,a,f){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var l=0;l=a;l-=2)k=P(i,a,l)<=18?(v-=18,this.words[I+=1]|=k>>>26):v+=8;else for(l=(i.length-a)%2==0?a+1:a;l=18?(v-=18,this.words[I+=1]|=k>>>26):v+=8;this.strip()},s.prototype._parseBase=function(i,a,f){this.words=[0],this.length=1;for(var l=0,v=1;v<=67108863;v*=a)l++;l--,v=v/a|0;for(var I=i.length-f,k=I%l,x=Math.min(I,I-k)+f,n=0,g=f;g1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var w=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[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],L=[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 H(M,i,a){a.negative=i.negative^M.negative;var f=M.length+i.length|0;a.length=f,f=f-1|0;var l=0|M.words[0],v=0|i.words[0],I=l*v,x=I/67108864|0;a.words[0]=67108863&I;for(var n=1;n>>26,W=67108863&x,O=Math.min(n,i.length-1),G=Math.max(0,n-M.length+1);G<=O;G++)g+=(I=(l=0|M.words[n-G|0])*(v=0|i.words[G])+W)/67108864|0,W=67108863&I;a.words[n]=0|W,x=0|g}return 0!==x?a.words[n]=0|x:a.length--,a.strip()}s.prototype.toString=function(i,a){var f;if(a=0|a||1,16===(i=i||10)||"hex"===i){f="";for(var l=0,v=0,I=0;I>>24-l&16777215)||I!==this.length-1?w[6-x.length]+x+f:x+f,(l+=2)>=26&&(l-=26,I--)}for(0!==v&&(f=v.toString(16)+f);f.length%a!=0;)f="0"+f;return 0!==this.negative&&(f="-"+f),f}if(i===(0|i)&&i>=2&&i<=36){var n=C[i],g=L[i];f="";var W=this.clone();for(W.negative=0;!W.isZero();){var O=W.modn(g).toString(i);f=(W=W.idivn(g)).isZero()?O+f:w[n-O.length]+O+f}for(this.isZero()&&(f="0"+f);f.length%a!=0;)f="0"+f;return 0!==this.negative&&(f="-"+f),f}_(!1,"Base should be between 2 and 36")},s.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&&_(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(i,a){return _(typeof y<"u"),this.toArrayLike(y,i,a)},s.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},s.prototype.toArrayLike=function(i,a,f){var l=this.byteLength(),v=f||Math.max(1,l);_(l<=v,"byte array longer than desired length"),_(v>0,"Requested array length <= 0"),this.strip();var x,n,I="le"===a,k=new i(v),g=this.clone();if(I){for(n=0;!g.isZero();n++)x=g.andln(255),g.iushrn(8),k[n]=x;for(;n=4096&&(f+=13,a>>>=13),a>=64&&(f+=7,a>>>=7),a>=8&&(f+=4,a>>>=4),a>=2&&(f+=2,a>>>=2),f+a},s.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,f=0;return 8191&a||(f+=13,a>>>=13),127&a||(f+=7,a>>>=7),15&a||(f+=4,a>>>=4),3&a||(f+=2,a>>>=2),1&a||f++,f},s.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},s.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},s.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var f=0;fi.length?this.clone().iand(i):i.clone().iand(this)},s.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},s.prototype.iuxor=function(i){var a,f;this.length>i.length?(a=this,f=i):(a=i,f=this);for(var l=0;li.length?this.clone().ixor(i):i.clone().ixor(this)},s.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},s.prototype.inotn=function(i){_("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),f=i%26;this._expand(a),f>0&&a--;for(var l=0;l0&&(this.words[l]=~this.words[l]&67108863>>26-f),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,a){_("number"==typeof i&&i>=0);var f=i/26|0,l=i%26;return this._expand(f+1),this.words[f]=a?this.words[f]|1<i.length?(f=this,l=i):(f=i,l=this);for(var v=0,I=0;I>>26;for(;0!==v&&I>>26;if(this.length=f.length,0!==v)this.words[this.length]=v,this.length++;else if(f!==this)for(;Ii.length?this.clone().iadd(i):i.clone().iadd(this)},s.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 l,v,f=this.cmp(i);if(0===f)return this.negative=0,this.length=1,this.words[0]=0,this;f>0?(l=this,v=i):(l=i,v=this);for(var I=0,k=0;k>26,this.words[k]=67108863&a;for(;0!==I&&k>26,this.words[k]=67108863&a;if(0===I&&k>>13,ge=0|l[1],nt=8191&ge,Ue=ge>>>13,at=0|l[2],ye=8191&at,xe=at>>>13,fe=0|l[3],Oe=8191&fe,oe=fe>>>13,Fe=0|l[4],De=8191&Fe,he=Fe>>>13,Me=0|l[5],pe=8191&Me,Ve=Me>>>13,Qe=0|l[6],Pe=8191&Qe,de=Qe>>>13,rt=0|l[7],Ke=8191&rt,lt=rt>>>13,Ut=0|l[8],ht=8191&Ut,Ge=Ut>>>13,yt=0|l[9],be=8191&yt,qe=yt>>>13,Ie=0|v[0],X=8191&Ie,mt=Ie>>>13,Tt=0|v[1],it=8191&Tt,je=Tt>>>13,zt=0|v[2],xt=8191&zt,Nt=zt>>>13,Gt=0|v[3],ke=8191&Gt,$=Gt>>>13,ue=0|v[4],Le=8191&ue,Je=ue>>>13,$t=0|v[5],Vt=8191&$t,ii=$t>>>13,pt=0|v[6],ot=8191&pt,ft=pt>>>13,St=0|v[7],gt=8191&St,$e=St>>>13,_t=0|v[8],vt=8191&_t,He=_t>>>13,Et=0|v[9],At=8191&Et,Qt=Et>>>13;f.negative=i.negative^a.negative,f.length=19;var zi=(k+(x=Math.imul(O,X))|0)+((8191&(n=(n=Math.imul(O,mt))+Math.imul(G,X)|0))<<13)|0;k=((g=Math.imul(G,mt))+(n>>>13)|0)+(zi>>>26)|0,zi&=67108863,x=Math.imul(nt,X),n=(n=Math.imul(nt,mt))+Math.imul(Ue,X)|0,g=Math.imul(Ue,mt);var Ni=(k+(x=x+Math.imul(O,it)|0)|0)+((8191&(n=(n=n+Math.imul(O,je)|0)+Math.imul(G,it)|0))<<13)|0;k=((g=g+Math.imul(G,je)|0)+(n>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(ye,X),n=(n=Math.imul(ye,mt))+Math.imul(xe,X)|0,g=Math.imul(xe,mt),x=x+Math.imul(nt,it)|0,n=(n=n+Math.imul(nt,je)|0)+Math.imul(Ue,it)|0,g=g+Math.imul(Ue,je)|0;var Mi=(k+(x=x+Math.imul(O,xt)|0)|0)+((8191&(n=(n=n+Math.imul(O,Nt)|0)+Math.imul(G,xt)|0))<<13)|0;k=((g=g+Math.imul(G,Nt)|0)+(n>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,x=Math.imul(Oe,X),n=(n=Math.imul(Oe,mt))+Math.imul(oe,X)|0,g=Math.imul(oe,mt),x=x+Math.imul(ye,it)|0,n=(n=n+Math.imul(ye,je)|0)+Math.imul(xe,it)|0,g=g+Math.imul(xe,je)|0,x=x+Math.imul(nt,xt)|0,n=(n=n+Math.imul(nt,Nt)|0)+Math.imul(Ue,xt)|0,g=g+Math.imul(Ue,Nt)|0;var Gi=(k+(x=x+Math.imul(O,ke)|0)|0)+((8191&(n=(n=n+Math.imul(O,$)|0)+Math.imul(G,ke)|0))<<13)|0;k=((g=g+Math.imul(G,$)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,x=Math.imul(De,X),n=(n=Math.imul(De,mt))+Math.imul(he,X)|0,g=Math.imul(he,mt),x=x+Math.imul(Oe,it)|0,n=(n=n+Math.imul(Oe,je)|0)+Math.imul(oe,it)|0,g=g+Math.imul(oe,je)|0,x=x+Math.imul(ye,xt)|0,n=(n=n+Math.imul(ye,Nt)|0)+Math.imul(xe,xt)|0,g=g+Math.imul(xe,Nt)|0,x=x+Math.imul(nt,ke)|0,n=(n=n+Math.imul(nt,$)|0)+Math.imul(Ue,ke)|0,g=g+Math.imul(Ue,$)|0;var Xe=(k+(x=x+Math.imul(O,Le)|0)|0)+((8191&(n=(n=n+Math.imul(O,Je)|0)+Math.imul(G,Le)|0))<<13)|0;k=((g=g+Math.imul(G,Je)|0)+(n>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,x=Math.imul(pe,X),n=(n=Math.imul(pe,mt))+Math.imul(Ve,X)|0,g=Math.imul(Ve,mt),x=x+Math.imul(De,it)|0,n=(n=n+Math.imul(De,je)|0)+Math.imul(he,it)|0,g=g+Math.imul(he,je)|0,x=x+Math.imul(Oe,xt)|0,n=(n=n+Math.imul(Oe,Nt)|0)+Math.imul(oe,xt)|0,g=g+Math.imul(oe,Nt)|0,x=x+Math.imul(ye,ke)|0,n=(n=n+Math.imul(ye,$)|0)+Math.imul(xe,ke)|0,g=g+Math.imul(xe,$)|0,x=x+Math.imul(nt,Le)|0,n=(n=n+Math.imul(nt,Je)|0)+Math.imul(Ue,Le)|0,g=g+Math.imul(Ue,Je)|0;var It=(k+(x=x+Math.imul(O,Vt)|0)|0)+((8191&(n=(n=n+Math.imul(O,ii)|0)+Math.imul(G,Vt)|0))<<13)|0;k=((g=g+Math.imul(G,ii)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,x=Math.imul(Pe,X),n=(n=Math.imul(Pe,mt))+Math.imul(de,X)|0,g=Math.imul(de,mt),x=x+Math.imul(pe,it)|0,n=(n=n+Math.imul(pe,je)|0)+Math.imul(Ve,it)|0,g=g+Math.imul(Ve,je)|0,x=x+Math.imul(De,xt)|0,n=(n=n+Math.imul(De,Nt)|0)+Math.imul(he,xt)|0,g=g+Math.imul(he,Nt)|0,x=x+Math.imul(Oe,ke)|0,n=(n=n+Math.imul(Oe,$)|0)+Math.imul(oe,ke)|0,g=g+Math.imul(oe,$)|0,x=x+Math.imul(ye,Le)|0,n=(n=n+Math.imul(ye,Je)|0)+Math.imul(xe,Le)|0,g=g+Math.imul(xe,Je)|0,x=x+Math.imul(nt,Vt)|0,n=(n=n+Math.imul(nt,ii)|0)+Math.imul(Ue,Vt)|0,g=g+Math.imul(Ue,ii)|0;var Se=(k+(x=x+Math.imul(O,ot)|0)|0)+((8191&(n=(n=n+Math.imul(O,ft)|0)+Math.imul(G,ot)|0))<<13)|0;k=((g=g+Math.imul(G,ft)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,x=Math.imul(Ke,X),n=(n=Math.imul(Ke,mt))+Math.imul(lt,X)|0,g=Math.imul(lt,mt),x=x+Math.imul(Pe,it)|0,n=(n=n+Math.imul(Pe,je)|0)+Math.imul(de,it)|0,g=g+Math.imul(de,je)|0,x=x+Math.imul(pe,xt)|0,n=(n=n+Math.imul(pe,Nt)|0)+Math.imul(Ve,xt)|0,g=g+Math.imul(Ve,Nt)|0,x=x+Math.imul(De,ke)|0,n=(n=n+Math.imul(De,$)|0)+Math.imul(he,ke)|0,g=g+Math.imul(he,$)|0,x=x+Math.imul(Oe,Le)|0,n=(n=n+Math.imul(Oe,Je)|0)+Math.imul(oe,Le)|0,g=g+Math.imul(oe,Je)|0,x=x+Math.imul(ye,Vt)|0,n=(n=n+Math.imul(ye,ii)|0)+Math.imul(xe,Vt)|0,g=g+Math.imul(xe,ii)|0,x=x+Math.imul(nt,ot)|0,n=(n=n+Math.imul(nt,ft)|0)+Math.imul(Ue,ot)|0,g=g+Math.imul(Ue,ft)|0;var wt=(k+(x=x+Math.imul(O,gt)|0)|0)+((8191&(n=(n=n+Math.imul(O,$e)|0)+Math.imul(G,gt)|0))<<13)|0;k=((g=g+Math.imul(G,$e)|0)+(n>>>13)|0)+(wt>>>26)|0,wt&=67108863,x=Math.imul(ht,X),n=(n=Math.imul(ht,mt))+Math.imul(Ge,X)|0,g=Math.imul(Ge,mt),x=x+Math.imul(Ke,it)|0,n=(n=n+Math.imul(Ke,je)|0)+Math.imul(lt,it)|0,g=g+Math.imul(lt,je)|0,x=x+Math.imul(Pe,xt)|0,n=(n=n+Math.imul(Pe,Nt)|0)+Math.imul(de,xt)|0,g=g+Math.imul(de,Nt)|0,x=x+Math.imul(pe,ke)|0,n=(n=n+Math.imul(pe,$)|0)+Math.imul(Ve,ke)|0,g=g+Math.imul(Ve,$)|0,x=x+Math.imul(De,Le)|0,n=(n=n+Math.imul(De,Je)|0)+Math.imul(he,Le)|0,g=g+Math.imul(he,Je)|0,x=x+Math.imul(Oe,Vt)|0,n=(n=n+Math.imul(Oe,ii)|0)+Math.imul(oe,Vt)|0,g=g+Math.imul(oe,ii)|0,x=x+Math.imul(ye,ot)|0,n=(n=n+Math.imul(ye,ft)|0)+Math.imul(xe,ot)|0,g=g+Math.imul(xe,ft)|0,x=x+Math.imul(nt,gt)|0,n=(n=n+Math.imul(nt,$e)|0)+Math.imul(Ue,gt)|0,g=g+Math.imul(Ue,$e)|0;var Zt=(k+(x=x+Math.imul(O,vt)|0)|0)+((8191&(n=(n=n+Math.imul(O,He)|0)+Math.imul(G,vt)|0))<<13)|0;k=((g=g+Math.imul(G,He)|0)+(n>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,x=Math.imul(be,X),n=(n=Math.imul(be,mt))+Math.imul(qe,X)|0,g=Math.imul(qe,mt),x=x+Math.imul(ht,it)|0,n=(n=n+Math.imul(ht,je)|0)+Math.imul(Ge,it)|0,g=g+Math.imul(Ge,je)|0,x=x+Math.imul(Ke,xt)|0,n=(n=n+Math.imul(Ke,Nt)|0)+Math.imul(lt,xt)|0,g=g+Math.imul(lt,Nt)|0,x=x+Math.imul(Pe,ke)|0,n=(n=n+Math.imul(Pe,$)|0)+Math.imul(de,ke)|0,g=g+Math.imul(de,$)|0,x=x+Math.imul(pe,Le)|0,n=(n=n+Math.imul(pe,Je)|0)+Math.imul(Ve,Le)|0,g=g+Math.imul(Ve,Je)|0,x=x+Math.imul(De,Vt)|0,n=(n=n+Math.imul(De,ii)|0)+Math.imul(he,Vt)|0,g=g+Math.imul(he,ii)|0,x=x+Math.imul(Oe,ot)|0,n=(n=n+Math.imul(Oe,ft)|0)+Math.imul(oe,ot)|0,g=g+Math.imul(oe,ft)|0,x=x+Math.imul(ye,gt)|0,n=(n=n+Math.imul(ye,$e)|0)+Math.imul(xe,gt)|0,g=g+Math.imul(xe,$e)|0,x=x+Math.imul(nt,vt)|0,n=(n=n+Math.imul(nt,He)|0)+Math.imul(Ue,vt)|0,g=g+Math.imul(Ue,He)|0;var si=(k+(x=x+Math.imul(O,At)|0)|0)+((8191&(n=(n=n+Math.imul(O,Qt)|0)+Math.imul(G,At)|0))<<13)|0;k=((g=g+Math.imul(G,Qt)|0)+(n>>>13)|0)+(si>>>26)|0,si&=67108863,x=Math.imul(be,it),n=(n=Math.imul(be,je))+Math.imul(qe,it)|0,g=Math.imul(qe,je),x=x+Math.imul(ht,xt)|0,n=(n=n+Math.imul(ht,Nt)|0)+Math.imul(Ge,xt)|0,g=g+Math.imul(Ge,Nt)|0,x=x+Math.imul(Ke,ke)|0,n=(n=n+Math.imul(Ke,$)|0)+Math.imul(lt,ke)|0,g=g+Math.imul(lt,$)|0,x=x+Math.imul(Pe,Le)|0,n=(n=n+Math.imul(Pe,Je)|0)+Math.imul(de,Le)|0,g=g+Math.imul(de,Je)|0,x=x+Math.imul(pe,Vt)|0,n=(n=n+Math.imul(pe,ii)|0)+Math.imul(Ve,Vt)|0,g=g+Math.imul(Ve,ii)|0,x=x+Math.imul(De,ot)|0,n=(n=n+Math.imul(De,ft)|0)+Math.imul(he,ot)|0,g=g+Math.imul(he,ft)|0,x=x+Math.imul(Oe,gt)|0,n=(n=n+Math.imul(Oe,$e)|0)+Math.imul(oe,gt)|0,g=g+Math.imul(oe,$e)|0,x=x+Math.imul(ye,vt)|0,n=(n=n+Math.imul(ye,He)|0)+Math.imul(xe,vt)|0,g=g+Math.imul(xe,He)|0;var Ai=(k+(x=x+Math.imul(nt,At)|0)|0)+((8191&(n=(n=n+Math.imul(nt,Qt)|0)+Math.imul(Ue,At)|0))<<13)|0;k=((g=g+Math.imul(Ue,Qt)|0)+(n>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,x=Math.imul(be,xt),n=(n=Math.imul(be,Nt))+Math.imul(qe,xt)|0,g=Math.imul(qe,Nt),x=x+Math.imul(ht,ke)|0,n=(n=n+Math.imul(ht,$)|0)+Math.imul(Ge,ke)|0,g=g+Math.imul(Ge,$)|0,x=x+Math.imul(Ke,Le)|0,n=(n=n+Math.imul(Ke,Je)|0)+Math.imul(lt,Le)|0,g=g+Math.imul(lt,Je)|0,x=x+Math.imul(Pe,Vt)|0,n=(n=n+Math.imul(Pe,ii)|0)+Math.imul(de,Vt)|0,g=g+Math.imul(de,ii)|0,x=x+Math.imul(pe,ot)|0,n=(n=n+Math.imul(pe,ft)|0)+Math.imul(Ve,ot)|0,g=g+Math.imul(Ve,ft)|0,x=x+Math.imul(De,gt)|0,n=(n=n+Math.imul(De,$e)|0)+Math.imul(he,gt)|0,g=g+Math.imul(he,$e)|0,x=x+Math.imul(Oe,vt)|0,n=(n=n+Math.imul(Oe,He)|0)+Math.imul(oe,vt)|0,g=g+Math.imul(oe,He)|0;var Oi=(k+(x=x+Math.imul(ye,At)|0)|0)+((8191&(n=(n=n+Math.imul(ye,Qt)|0)+Math.imul(xe,At)|0))<<13)|0;k=((g=g+Math.imul(xe,Qt)|0)+(n>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,x=Math.imul(be,ke),n=(n=Math.imul(be,$))+Math.imul(qe,ke)|0,g=Math.imul(qe,$),x=x+Math.imul(ht,Le)|0,n=(n=n+Math.imul(ht,Je)|0)+Math.imul(Ge,Le)|0,g=g+Math.imul(Ge,Je)|0,x=x+Math.imul(Ke,Vt)|0,n=(n=n+Math.imul(Ke,ii)|0)+Math.imul(lt,Vt)|0,g=g+Math.imul(lt,ii)|0,x=x+Math.imul(Pe,ot)|0,n=(n=n+Math.imul(Pe,ft)|0)+Math.imul(de,ot)|0,g=g+Math.imul(de,ft)|0,x=x+Math.imul(pe,gt)|0,n=(n=n+Math.imul(pe,$e)|0)+Math.imul(Ve,gt)|0,g=g+Math.imul(Ve,$e)|0,x=x+Math.imul(De,vt)|0,n=(n=n+Math.imul(De,He)|0)+Math.imul(he,vt)|0,g=g+Math.imul(he,He)|0;var Qi=(k+(x=x+Math.imul(Oe,At)|0)|0)+((8191&(n=(n=n+Math.imul(Oe,Qt)|0)+Math.imul(oe,At)|0))<<13)|0;k=((g=g+Math.imul(oe,Qt)|0)+(n>>>13)|0)+(Qi>>>26)|0,Qi&=67108863,x=Math.imul(be,Le),n=(n=Math.imul(be,Je))+Math.imul(qe,Le)|0,g=Math.imul(qe,Je),x=x+Math.imul(ht,Vt)|0,n=(n=n+Math.imul(ht,ii)|0)+Math.imul(Ge,Vt)|0,g=g+Math.imul(Ge,ii)|0,x=x+Math.imul(Ke,ot)|0,n=(n=n+Math.imul(Ke,ft)|0)+Math.imul(lt,ot)|0,g=g+Math.imul(lt,ft)|0,x=x+Math.imul(Pe,gt)|0,n=(n=n+Math.imul(Pe,$e)|0)+Math.imul(de,gt)|0,g=g+Math.imul(de,$e)|0,x=x+Math.imul(pe,vt)|0,n=(n=n+Math.imul(pe,He)|0)+Math.imul(Ve,vt)|0,g=g+Math.imul(Ve,He)|0;var en=(k+(x=x+Math.imul(De,At)|0)|0)+((8191&(n=(n=n+Math.imul(De,Qt)|0)+Math.imul(he,At)|0))<<13)|0;k=((g=g+Math.imul(he,Qt)|0)+(n>>>13)|0)+(en>>>26)|0,en&=67108863,x=Math.imul(be,Vt),n=(n=Math.imul(be,ii))+Math.imul(qe,Vt)|0,g=Math.imul(qe,ii),x=x+Math.imul(ht,ot)|0,n=(n=n+Math.imul(ht,ft)|0)+Math.imul(Ge,ot)|0,g=g+Math.imul(Ge,ft)|0,x=x+Math.imul(Ke,gt)|0,n=(n=n+Math.imul(Ke,$e)|0)+Math.imul(lt,gt)|0,g=g+Math.imul(lt,$e)|0,x=x+Math.imul(Pe,vt)|0,n=(n=n+Math.imul(Pe,He)|0)+Math.imul(de,vt)|0,g=g+Math.imul(de,He)|0;var Yi=(k+(x=x+Math.imul(pe,At)|0)|0)+((8191&(n=(n=n+Math.imul(pe,Qt)|0)+Math.imul(Ve,At)|0))<<13)|0;k=((g=g+Math.imul(Ve,Qt)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,x=Math.imul(be,ot),n=(n=Math.imul(be,ft))+Math.imul(qe,ot)|0,g=Math.imul(qe,ft),x=x+Math.imul(ht,gt)|0,n=(n=n+Math.imul(ht,$e)|0)+Math.imul(Ge,gt)|0,g=g+Math.imul(Ge,$e)|0,x=x+Math.imul(Ke,vt)|0,n=(n=n+Math.imul(Ke,He)|0)+Math.imul(lt,vt)|0,g=g+Math.imul(lt,He)|0;var Yt=(k+(x=x+Math.imul(Pe,At)|0)|0)+((8191&(n=(n=n+Math.imul(Pe,Qt)|0)+Math.imul(de,At)|0))<<13)|0;k=((g=g+Math.imul(de,Qt)|0)+(n>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,x=Math.imul(be,gt),n=(n=Math.imul(be,$e))+Math.imul(qe,gt)|0,g=Math.imul(qe,$e),x=x+Math.imul(ht,vt)|0,n=(n=n+Math.imul(ht,He)|0)+Math.imul(Ge,vt)|0,g=g+Math.imul(Ge,He)|0;var qt=(k+(x=x+Math.imul(Ke,At)|0)|0)+((8191&(n=(n=n+Math.imul(Ke,Qt)|0)+Math.imul(lt,At)|0))<<13)|0;k=((g=g+Math.imul(lt,Qt)|0)+(n>>>13)|0)+(qt>>>26)|0,qt&=67108863,x=Math.imul(be,vt),n=(n=Math.imul(be,He))+Math.imul(qe,vt)|0,g=Math.imul(qe,He);var _e=(k+(x=x+Math.imul(ht,At)|0)|0)+((8191&(n=(n=n+Math.imul(ht,Qt)|0)+Math.imul(Ge,At)|0))<<13)|0;k=((g=g+Math.imul(Ge,Qt)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863;var dt=(k+(x=Math.imul(be,At))|0)+((8191&(n=(n=Math.imul(be,Qt))+Math.imul(qe,At)|0))<<13)|0;return k=((g=Math.imul(qe,Qt))+(n>>>13)|0)+(dt>>>26)|0,dt&=67108863,I[0]=zi,I[1]=Ni,I[2]=Mi,I[3]=Gi,I[4]=Xe,I[5]=It,I[6]=Se,I[7]=wt,I[8]=Zt,I[9]=si,I[10]=Ai,I[11]=Oi,I[12]=Qi,I[13]=en,I[14]=Yi,I[15]=Yt,I[16]=qt,I[17]=_e,I[18]=dt,0!==k&&(I[19]=k,f.length++),f};function j(M,i,a){return(new Q).mulp(M,i,a)}function Q(M,i){this.x=M,this.y=i}Math.imul||(V=H),s.prototype.mulTo=function(i,a){var f,l=this.length+i.length;return f=10===this.length&&10===i.length?V(this,i,a):l<63?H(this,i,a):l<1024?function Y(M,i,a){a.negative=i.negative^M.negative,a.length=M.length+i.length;for(var f=0,l=0,v=0;v>>26)|0)>>>26,I&=67108863}a.words[v]=k,f=I,I=l}return 0!==f?a.words[v]=f:a.length--,a.strip()}(this,i,a):j(this,i,a),f},Q.prototype.makeRBT=function(i){for(var a=new Array(i),f=s.prototype._countBits(i)-1,l=0;l>=1;return l},Q.prototype.permute=function(i,a,f,l,v,I){for(var k=0;k>>=1)v++;return 1<>>=13),v>>>=13;for(I=2*a;I>=26,a+=l/67108864|0,a+=v>>>26,this.words[f]=67108863&v}return 0!==a&&(this.words[f]=a,this.length++),this},s.prototype.muln=function(i){return this.clone().imuln(i)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(i){var a=function D(M){for(var i=new Array(M.bitLength()),a=0;a>>l}return i}(i);if(0===a.length)return new s(1);for(var f=this,l=0;l=0);var v,a=i%26,f=(i-a)/26,l=67108863>>>26-a<<26-a;if(0!==a){var I=0;for(v=0;v>>26-a}I&&(this.words[v]=I,this.length++)}if(0!==f){for(v=this.length-1;v>=0;v--)this.words[v+f]=this.words[v];for(v=0;v=0),l=a?(a-a%26)/26:0;var v=i%26,I=Math.min((i-v)/26,this.length),k=67108863^67108863>>>v<I)for(this.length-=I,n=0;n=0&&(0!==g||n>=l);n--){var W=0|this.words[n];this.words[n]=g<<26-v|W>>>v,g=W&k}return x&&0!==g&&(x.words[x.length++]=g),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,a,f){return _(0===this.negative),this.iushrn(i,a,f)},s.prototype.shln=function(i){return this.clone().ishln(i)},s.prototype.ushln=function(i){return this.clone().iushln(i)},s.prototype.shrn=function(i){return this.clone().ishrn(i)},s.prototype.ushrn=function(i){return this.clone().iushrn(i)},s.prototype.testn=function(i){_("number"==typeof i&&i>=0);var a=i%26,f=(i-a)/26;return!(this.length<=f||!(this.words[f]&1<=0);var a=i%26,f=(i-a)/26;return _(0===this.negative,"imaskn works only with positive numbers"),this.length<=f?this:(0!==a&&f++,this.length=Math.min(f,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},s.prototype.isubn=function(i){if(_("number"==typeof i),_(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[v+f]=67108863&I}for(;v>26,this.words[v+f]=67108863&I;if(0===k)return this.strip();for(_(-1===k),k=0,v=0;v>26,this.words[v]=67108863&I;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var f,l=this.clone(),v=i,I=0|v.words[v.length-1];0!=(f=26-this._countBits(I))&&(v=v.ushln(f),l.iushln(f),I=0|v.words[v.length-1]);var n,x=l.length-v.length;if("mod"!==a){(n=new s(null)).length=x+1,n.words=new Array(n.length);for(var g=0;g=0;O--){var G=67108864*(0|l.words[v.length+O])+(0|l.words[v.length+O-1]);for(G=Math.min(G/I|0,67108863),l._ishlnsubmul(v,G,O);0!==l.negative;)G--,l.negative=0,l._ishlnsubmul(v,1,O),l.isZero()||(l.negative^=1);n&&(n.words[O]=G)}return n&&n.strip(),l.strip(),"div"!==a&&0!==f&&l.iushrn(f),{div:n||null,mod:l}},s.prototype.divmod=function(i,a,f){return _(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(I=this.neg().divmod(i,a),"mod"!==a&&(l=I.div.neg()),"div"!==a&&(v=I.mod.neg(),f&&0!==v.negative&&v.iadd(i)),{div:l,mod:v}):0===this.negative&&0!==i.negative?(I=this.divmod(i.neg(),a),"mod"!==a&&(l=I.div.neg()),{div:l,mod:I.mod}):this.negative&i.negative?(I=this.neg().divmod(i.neg(),a),"div"!==a&&(v=I.mod.neg(),f&&0!==v.negative&&v.isub(i)),{div:I.div,mod:v}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new s(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new s(this.modn(i.words[0]))}:this._wordDiv(i,a);var l,v,I},s.prototype.div=function(i){return this.divmod(i,"div",!1).div},s.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},s.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},s.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var f=0!==a.div.negative?a.mod.isub(i):a.mod,l=i.ushrn(1),v=i.andln(1),I=f.cmp(l);return I<0||1===v&&0===I?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},s.prototype.modn=function(i){_(i<=67108863);for(var a=(1<<26)%i,f=0,l=this.length-1;l>=0;l--)f=(a*f+(0|this.words[l]))%i;return f},s.prototype.idivn=function(i){_(i<=67108863);for(var a=0,f=this.length-1;f>=0;f--){var l=(0|this.words[f])+67108864*a;this.words[f]=l/i|0,a=l%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){_(0===i.negative),_(!i.isZero());var a=this,f=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),v=new s(0),I=new s(0),k=new s(1),x=0;a.isEven()&&f.isEven();)a.iushrn(1),f.iushrn(1),++x;for(var n=f.clone(),g=a.clone();!a.isZero();){for(var W=0,O=1;!(a.words[0]&O)&&W<26;++W,O<<=1);if(W>0)for(a.iushrn(W);W-- >0;)(l.isOdd()||v.isOdd())&&(l.iadd(n),v.isub(g)),l.iushrn(1),v.iushrn(1);for(var G=0,ge=1;!(f.words[0]&ge)&&G<26;++G,ge<<=1);if(G>0)for(f.iushrn(G);G-- >0;)(I.isOdd()||k.isOdd())&&(I.iadd(n),k.isub(g)),I.iushrn(1),k.iushrn(1);a.cmp(f)>=0?(a.isub(f),l.isub(I),v.isub(k)):(f.isub(a),I.isub(l),k.isub(v))}return{a:I,b:k,gcd:f.iushln(x)}},s.prototype._invmp=function(i){_(0===i.negative),_(!i.isZero());var W,a=this,f=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),v=new s(0),I=f.clone();a.cmpn(1)>0&&f.cmpn(1)>0;){for(var k=0,x=1;!(a.words[0]&x)&&k<26;++k,x<<=1);if(k>0)for(a.iushrn(k);k-- >0;)l.isOdd()&&l.iadd(I),l.iushrn(1);for(var n=0,g=1;!(f.words[0]&g)&&n<26;++n,g<<=1);if(n>0)for(f.iushrn(n);n-- >0;)v.isOdd()&&v.iadd(I),v.iushrn(1);a.cmp(f)>=0?(a.isub(f),l.isub(v)):(f.isub(a),v.isub(l))}return(W=0===a.cmpn(1)?l:v).cmpn(0)<0&&W.iadd(i),W},s.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),f=i.clone();a.negative=0,f.negative=0;for(var l=0;a.isEven()&&f.isEven();l++)a.iushrn(1),f.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;f.isEven();)f.iushrn(1);var v=a.cmp(f);if(v<0){var I=a;a=f,f=I}else if(0===v||0===f.cmpn(1))break;a.isub(f)}return f.iushln(l)},s.prototype.invm=function(i){return this.egcd(i).a.umod(i)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(i){return this.words[0]&i},s.prototype.bincn=function(i){_("number"==typeof i);var a=i%26,f=(i-a)/26,l=1<>>26,this.words[I]=k&=67108863}return 0!==v&&(this.words[I]=v,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var f,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)f=1;else{a&&(i=-i),_(i<=67108863,"Number is too big");var l=0|this.words[0];f=l===i?0:li.length)return 1;if(this.length=0;f--){var l=0|this.words[f],v=0|i.words[f];if(l!==v){lv&&(a=1);break}}return a},s.prototype.gtn=function(i){return 1===this.cmpn(i)},s.prototype.gt=function(i){return 1===this.cmp(i)},s.prototype.gten=function(i){return this.cmpn(i)>=0},s.prototype.gte=function(i){return this.cmp(i)>=0},s.prototype.ltn=function(i){return-1===this.cmpn(i)},s.prototype.lt=function(i){return-1===this.cmp(i)},s.prototype.lten=function(i){return this.cmpn(i)<=0},s.prototype.lte=function(i){return this.cmp(i)<=0},s.prototype.eqn=function(i){return 0===this.cmpn(i)},s.prototype.eq=function(i){return 0===this.cmp(i)},s.red=function(i){return new ce(i)},s.prototype.toRed=function(i){return _(!this.red,"Already a number in reduction context"),_(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(i){return this.red=i,this},s.prototype.forceRed=function(i){return _(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return _(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var J={k256:null,p224:null,p192:null,p25519:null};function ee(M,i){this.name=M,this.p=new s(i,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function me(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function re(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ce(M){if("string"==typeof M){var i=s._prime(M);this.m=i.p,this.prime=i}else _(M.gtn(1),"modulus must be greater than 1"),this.m=M,this.prime=null}function Ce(M){ce.call(this,M),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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 s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var f,a=i;do{this.split(a,this.tmp),f=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(f>this.n);var l=f0?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)},T(me,ee),me.prototype.split=function(i,a){for(var f=4194303,l=Math.min(i.length,9),v=0;v>>22,I=k}i.words[v-10]=I>>>=22,i.length-=0===I&&i.length>10?10:9},me.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,f=0;f>>=26,i.words[f]=v,a=l}return 0!==a&&(i.words[i.length++]=a),i},s._prime=function(i){if(J[i])return J[i];var a;if("k256"===i)a=new me;else if("p224"===i)a=new re;else if("p192"===i)a=new ie;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new se}return J[i]=a,a},ce.prototype._verify1=function(i){_(0===i.negative,"red works only with positives"),_(i.red,"red works only with red numbers")},ce.prototype._verify2=function(i,a){_(0==(i.negative|a.negative),"red works only with positives"),_(i.red&&i.red===a.red,"red works only with red numbers")},ce.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},ce.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},ce.prototype.add=function(i,a){this._verify2(i,a);var f=i.add(a);return f.cmp(this.m)>=0&&f.isub(this.m),f._forceRed(this)},ce.prototype.iadd=function(i,a){this._verify2(i,a);var f=i.iadd(a);return f.cmp(this.m)>=0&&f.isub(this.m),f},ce.prototype.sub=function(i,a){this._verify2(i,a);var f=i.sub(a);return f.cmpn(0)<0&&f.iadd(this.m),f._forceRed(this)},ce.prototype.isub=function(i,a){this._verify2(i,a);var f=i.isub(a);return f.cmpn(0)<0&&f.iadd(this.m),f},ce.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},ce.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},ce.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},ce.prototype.isqr=function(i){return this.imul(i,i.clone())},ce.prototype.sqr=function(i){return this.mul(i,i)},ce.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(_(a%2==1),3===a){var f=this.m.add(new s(1)).iushrn(2);return this.pow(i,f)}for(var l=this.m.subn(1),v=0;!l.isZero()&&0===l.andln(1);)v++,l.iushrn(1);_(!l.isZero());var I=new s(1).toRed(this),k=I.redNeg(),x=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new s(2*n*n).toRed(this);0!==this.pow(n,x).cmp(k);)n.redIAdd(k);for(var g=this.pow(n,l),W=this.pow(i,l.addn(1).iushrn(1)),O=this.pow(i,l),G=v;0!==O.cmp(I);){for(var ge=O,nt=0;0!==ge.cmp(I);nt++)ge=ge.redSqr();_(nt=0;v--){for(var g=a.words[v],W=n-1;W>=0;W--){var O=g>>W&1;I!==l[0]&&(I=this.sqr(I)),0!==O||0!==k?(k<<=1,k|=O,(4==++x||0===v&&0===W)&&(I=this.mul(I,l[k]),x=0,k=0)):x=0}n=26}return I},ce.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},ce.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new Ce(i)},T(Ce,ce),Ce.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},Ce.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},Ce.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var f=i.imul(a),l=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=f.isub(l).iushrn(this.shift),I=v;return v.cmp(this.m)>=0?I=v.isub(this.m):v.cmpn(0)<0&&(I=v.iadd(this.m)),I._forceRed(this)},Ce.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new s(0)._forceRed(this);var f=i.mul(a),l=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=f.isub(l).iushrn(this.shift),I=v;return v.cmp(this.m)>=0?I=v.isub(this.m):v.cmpn(0)<0&&(I=v.iadd(this.m)),I._forceRed(this)},Ce.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(We=m.nmd(We),this)},2391:We=>{function q(m,t){if(!m)throw new Error(t||"Assertion failed")}We.exports=q,q.equal=function(t,e,_){if(t!=e)throw new Error(_||"Assertion failed: "+t+" != "+e)}},8195:(We,q)=>{"use strict";var m=q;function e(T){return 1===T.length?"0"+T:T}function _(T){for(var s="",y=0;y>8,w=255&P;d?y.push(d,w):y.push(w)}return y},m.zero2=e,m.toHex=_,m.encode=function(s,y){return"hex"===y?_(s):s}},5768:(We,q,m)=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});var t=m(842);Object.keys(t).forEach(function(e){"default"!==e&&Object.defineProperty(q,e,{enumerable:!0,get:function(){return t[e]}})})},2999:(We,q,m)=>{"use strict";var t=m(7977);q.certificate=m(2390);var e=t.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=e;var _=t.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});q.RSAPublicKey=_;var T=t.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});q.PublicKey=T;var s=t.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())}),y=t.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});q.PrivateKey=y;var h=t.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=h;var P=t.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=P,q.DSAparam=t.define("DSAparam",function(){this.int()});var d=t.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(w),this.key("publicKey").optional().explicit(1).bitstr())});q.ECPrivateKey=d;var w=t.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});q.signature=t.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},2390:(We,q,m)=>{"use strict";var t=m(7977),e=t.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),_=t.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),T=t.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),s=t.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(T),this.key("subjectPublicKey").bitstr())}),y=t.define("RelativeDistinguishedName",function(){this.setof(_)}),h=t.define("RDNSequence",function(){this.seqof(y)}),P=t.define("Name",function(){this.choice({rdnSequence:this.use(h)})}),d=t.define("Validity",function(){this.seq().obj(this.key("notBefore").use(e),this.key("notAfter").use(e))}),w=t.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),C=t.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(T),this.key("issuer").use(P),this.key("validity").use(d),this.key("subject").use(P),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(w).optional())}),L=t.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(C),this.key("signatureAlgorithm").use(T),this.key("signatureValue").bitstr())});We.exports=L},5269:(We,q,m)=>{var t=/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,e=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,_=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,T=m(347),s=m(4330),y=m(3502).Buffer;We.exports=function(h,P){var C,d=h.toString(),w=d.match(t);if(w){var D="aes"+w[1],H=y.from(w[2],"hex"),V=y.from(w[3].replace(/[\r\n]/g,""),"base64"),Y=T(P,H.slice(0,8),parseInt(w[1],10)).key,j=[],Q=s.createDecipheriv(D,Y,H);j.push(Q.update(V)),j.push(Q.final()),C=y.concat(j)}else{var L=d.match(_);C=y.from(L[2].replace(/[\r\n]/g,""),"base64")}return{tag:d.match(e)[1],data:C}}},2772:(We,q,m)=>{var t=m(2999),e=m(2562),_=m(5269),T=m(4330),s=m(9357),y=m(3502).Buffer;function h(d){var w;"object"==typeof d&&!y.isBuffer(d)&&(w=d.passphrase,d=d.key),"string"==typeof d&&(d=y.from(d));var H,V,C=_(d,w),L=C.tag,D=C.data;switch(L){case"CERTIFICATE":V=t.certificate.decode(D,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(V||(V=t.PublicKey.decode(D,"der")),H=V.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return t.RSAPublicKey.decode(V.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return V.subjectPrivateKey=V.subjectPublicKey,{type:"ec",data:V};case"1.2.840.10040.4.1":return V.algorithm.params.pub_key=t.DSAparam.decode(V.subjectPublicKey.data,"der"),{type:"dsa",data:V.algorithm.params};default:throw new Error("unknown key id "+H)}case"ENCRYPTED PRIVATE KEY":D=function P(d,w){var C=d.algorithm.decrypt.kde.kdeparams.salt,L=parseInt(d.algorithm.decrypt.kde.kdeparams.iters.toString(),10),D=e[d.algorithm.decrypt.cipher.algo.join(".")],H=d.algorithm.decrypt.cipher.iv,V=d.subjectPrivateKey,Y=parseInt(D.split("-")[1],10)/8,j=s.pbkdf2Sync(w,C,L,Y,"sha1"),Q=T.createDecipheriv(D,j,H),J=[];return J.push(Q.update(V)),J.push(Q.final()),y.concat(J)}(D=t.EncryptedPrivateKey.decode(D,"der"),w);case"PRIVATE KEY":switch(H=(V=t.PrivateKey.decode(D,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return t.RSAPrivateKey.decode(V.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:V.algorithm.curve,privateKey:t.ECPrivateKey.decode(V.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return V.algorithm.params.priv_key=t.DSAparam.decode(V.subjectPrivateKey,"der"),{type:"dsa",params:V.algorithm.params};default:throw new Error("unknown key id "+H)}case"RSA PUBLIC KEY":return t.RSAPublicKey.decode(D,"der");case"RSA PRIVATE KEY":return t.RSAPrivateKey.decode(D,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:t.DSAPrivateKey.decode(D,"der")};case"EC PRIVATE KEY":return{curve:(D=t.ECPrivateKey.decode(D,"der")).parameters.value,privateKey:D.privateKey};default:throw new Error("unknown key type "+L)}}We.exports=h,h.signature=t.signature},9357:(We,q,m)=>{q.pbkdf2=m(415),q.pbkdf2Sync=m(7472)},415:(We,q,m)=>{var y,C,t=m(3502).Buffer,e=m(2697),_=m(8867),T=m(7472),s=m(4566),h=global.crypto&&global.crypto.subtle,P={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function L(){return C||(C=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function D(V,Y,j,Q,J){return h.importKey("raw",V,{name:"PBKDF2"},!1,["deriveBits"]).then(function(ee){return h.deriveBits({name:"PBKDF2",salt:Y,iterations:j,hash:{name:J}},ee,Q<<3)}).then(function(ee){return t.from(ee)})}We.exports=function(V,Y,j,Q,J,ee){"function"==typeof J&&(ee=J,J=void 0);var me=P[(J=J||"sha1").toLowerCase()];if(me&&"function"==typeof global.Promise){if(e(j,Q),V=s(V,_,"Password"),Y=s(Y,_,"Salt"),"function"!=typeof ee)throw new Error("No callback provided to pbkdf2");!function H(V,Y){V.then(function(j){L()(function(){Y(null,j)})},function(j){L()(function(){Y(j)})})}(function w(V){if(global.process&&!global.process.browser||!h||!h.importKey||!h.deriveBits)return Promise.resolve(!1);if(void 0!==d[V])return d[V];var Y=D(y=y||t.alloc(8),y,10,128,V).then(function(){return!0}).catch(function(){return!1});return d[V]=Y,Y}(me).then(function(re){return re?D(V,Y,j,Q,me):T(V,Y,j,Q,J)}),ee)}else L()(function(){var re;try{re=T(V,Y,j,Q,J)}catch(ie){return ee(ie)}ee(null,re)})}},8867:We=>{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",We.exports=q},2697:We=>{var q=Math.pow(2,30)-1;We.exports=function(m,t){if("number"!=typeof m)throw new TypeError("Iterations not a number");if(m<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>q||t!=t)throw new TypeError("Bad key length")}},7472:(We,q,m)=>{var t=m(5640),e=m(5634),_=m(5244),T=m(3502).Buffer,s=m(2697),y=m(8867),h=m(4566),P=T.alloc(128),d={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function w(D,H,V){var Y=function C(D){return"rmd160"===D||"ripemd160"===D?function V(Y){return(new e).update(Y).digest()}:"md5"===D?t:function H(Y){return _(D).update(Y).digest()}}(D),j="sha512"===D||"sha384"===D?128:64;H.length>j?H=Y(H):H.length{var t=m(3502).Buffer;We.exports=function(e,_,T){if(t.isBuffer(e))return e;if("string"==typeof e)return t.from(e,_);if(ArrayBuffer.isView(e))return t.from(e.buffer);throw new TypeError(T+" must be a string, a Buffer, a typed array or a DataView")}},3701:(We,q,m)=>{q.publicEncrypt=m(6562),q.privateDecrypt=m(6705),q.privateEncrypt=function(e,_){return q.publicEncrypt(e,_,!0)},q.publicDecrypt=function(e,_){return q.privateDecrypt(e,_,!0)}},6945:(We,q,m)=>{var t=m(6386),e=m(3502).Buffer;function _(T){var s=e.allocUnsafe(4);return s.writeUInt32BE(T,0),s}We.exports=function(T,s){for(var P,y=e.alloc(0),h=0;y.length=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function P(M,i,a){var f=h(M,a);return a-1>=i&&(f|=h(M,a-1)<<4),f}function d(M,i,a,f){for(var l=0,v=Math.min(M.length,a),I=i;I=49?k-49+10:k>=17?k-17+10:k}return l}s.isBN=function(i){return i instanceof s||null!==i&&"object"==typeof i&&i.constructor.wordSize===s.wordSize&&Array.isArray(i.words)},s.max=function(i,a){return i.cmp(a)>0?i:a},s.min=function(i,a){return i.cmp(a)<0?i:a},s.prototype._init=function(i,a,f){if("number"==typeof i)return this._initNumber(i,a,f);if("object"==typeof i)return this._initArray(i,a,f);"hex"===a&&(a=16),_(a===(0|a)&&a>=2&&a<=36);var l=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(l++,this.negative=1),l=0;l-=3)this.words[v]|=(I=i[l]|i[l-1]<<8|i[l-2]<<16)<>>26-k&67108863,(k+=24)>=26&&(k-=26,v++);else if("le"===f)for(l=0,v=0;l>>26-k&67108863,(k+=24)>=26&&(k-=26,v++);return this.strip()},s.prototype._parseHex=function(i,a,f){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var l=0;l=a;l-=2)k=P(i,a,l)<=18?(v-=18,this.words[I+=1]|=k>>>26):v+=8;else for(l=(i.length-a)%2==0?a+1:a;l=18?(v-=18,this.words[I+=1]|=k>>>26):v+=8;this.strip()},s.prototype._parseBase=function(i,a,f){this.words=[0],this.length=1;for(var l=0,v=1;v<=67108863;v*=a)l++;l--,v=v/a|0;for(var I=i.length-f,k=I%l,x=Math.min(I,I-k)+f,n=0,g=f;g1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var w=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[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],L=[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 H(M,i,a){a.negative=i.negative^M.negative;var f=M.length+i.length|0;a.length=f,f=f-1|0;var l=0|M.words[0],v=0|i.words[0],I=l*v,x=I/67108864|0;a.words[0]=67108863&I;for(var n=1;n>>26,W=67108863&x,O=Math.min(n,i.length-1),G=Math.max(0,n-M.length+1);G<=O;G++)g+=(I=(l=0|M.words[n-G|0])*(v=0|i.words[G])+W)/67108864|0,W=67108863&I;a.words[n]=0|W,x=0|g}return 0!==x?a.words[n]=0|x:a.length--,a.strip()}s.prototype.toString=function(i,a){var f;if(a=0|a||1,16===(i=i||10)||"hex"===i){f="";for(var l=0,v=0,I=0;I>>24-l&16777215)||I!==this.length-1?w[6-x.length]+x+f:x+f,(l+=2)>=26&&(l-=26,I--)}for(0!==v&&(f=v.toString(16)+f);f.length%a!=0;)f="0"+f;return 0!==this.negative&&(f="-"+f),f}if(i===(0|i)&&i>=2&&i<=36){var n=C[i],g=L[i];f="";var W=this.clone();for(W.negative=0;!W.isZero();){var O=W.modn(g).toString(i);f=(W=W.idivn(g)).isZero()?O+f:w[n-O.length]+O+f}for(this.isZero()&&(f="0"+f);f.length%a!=0;)f="0"+f;return 0!==this.negative&&(f="-"+f),f}_(!1,"Base should be between 2 and 36")},s.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&&_(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(i,a){return _(typeof y<"u"),this.toArrayLike(y,i,a)},s.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},s.prototype.toArrayLike=function(i,a,f){var l=this.byteLength(),v=f||Math.max(1,l);_(l<=v,"byte array longer than desired length"),_(v>0,"Requested array length <= 0"),this.strip();var x,n,I="le"===a,k=new i(v),g=this.clone();if(I){for(n=0;!g.isZero();n++)x=g.andln(255),g.iushrn(8),k[n]=x;for(;n=4096&&(f+=13,a>>>=13),a>=64&&(f+=7,a>>>=7),a>=8&&(f+=4,a>>>=4),a>=2&&(f+=2,a>>>=2),f+a},s.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,f=0;return 8191&a||(f+=13,a>>>=13),127&a||(f+=7,a>>>=7),15&a||(f+=4,a>>>=4),3&a||(f+=2,a>>>=2),1&a||f++,f},s.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},s.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},s.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var f=0;fi.length?this.clone().iand(i):i.clone().iand(this)},s.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},s.prototype.iuxor=function(i){var a,f;this.length>i.length?(a=this,f=i):(a=i,f=this);for(var l=0;li.length?this.clone().ixor(i):i.clone().ixor(this)},s.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},s.prototype.inotn=function(i){_("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),f=i%26;this._expand(a),f>0&&a--;for(var l=0;l0&&(this.words[l]=~this.words[l]&67108863>>26-f),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,a){_("number"==typeof i&&i>=0);var f=i/26|0,l=i%26;return this._expand(f+1),this.words[f]=a?this.words[f]|1<i.length?(f=this,l=i):(f=i,l=this);for(var v=0,I=0;I>>26;for(;0!==v&&I>>26;if(this.length=f.length,0!==v)this.words[this.length]=v,this.length++;else if(f!==this)for(;Ii.length?this.clone().iadd(i):i.clone().iadd(this)},s.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 l,v,f=this.cmp(i);if(0===f)return this.negative=0,this.length=1,this.words[0]=0,this;f>0?(l=this,v=i):(l=i,v=this);for(var I=0,k=0;k>26,this.words[k]=67108863&a;for(;0!==I&&k>26,this.words[k]=67108863&a;if(0===I&&k>>13,ge=0|l[1],nt=8191&ge,Ue=ge>>>13,at=0|l[2],ye=8191&at,xe=at>>>13,fe=0|l[3],Oe=8191&fe,oe=fe>>>13,Fe=0|l[4],De=8191&Fe,he=Fe>>>13,Me=0|l[5],pe=8191&Me,Ve=Me>>>13,Qe=0|l[6],Pe=8191&Qe,de=Qe>>>13,rt=0|l[7],Ke=8191&rt,lt=rt>>>13,Ut=0|l[8],ht=8191&Ut,Ge=Ut>>>13,yt=0|l[9],be=8191&yt,qe=yt>>>13,Ie=0|v[0],X=8191&Ie,mt=Ie>>>13,Tt=0|v[1],it=8191&Tt,je=Tt>>>13,zt=0|v[2],xt=8191&zt,Nt=zt>>>13,Gt=0|v[3],ke=8191&Gt,$=Gt>>>13,ue=0|v[4],Le=8191&ue,Je=ue>>>13,$t=0|v[5],Vt=8191&$t,ii=$t>>>13,pt=0|v[6],ot=8191&pt,ft=pt>>>13,St=0|v[7],gt=8191&St,$e=St>>>13,_t=0|v[8],vt=8191&_t,He=_t>>>13,Et=0|v[9],At=8191&Et,Qt=Et>>>13;f.negative=i.negative^a.negative,f.length=19;var zi=(k+(x=Math.imul(O,X))|0)+((8191&(n=(n=Math.imul(O,mt))+Math.imul(G,X)|0))<<13)|0;k=((g=Math.imul(G,mt))+(n>>>13)|0)+(zi>>>26)|0,zi&=67108863,x=Math.imul(nt,X),n=(n=Math.imul(nt,mt))+Math.imul(Ue,X)|0,g=Math.imul(Ue,mt);var Ni=(k+(x=x+Math.imul(O,it)|0)|0)+((8191&(n=(n=n+Math.imul(O,je)|0)+Math.imul(G,it)|0))<<13)|0;k=((g=g+Math.imul(G,je)|0)+(n>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(ye,X),n=(n=Math.imul(ye,mt))+Math.imul(xe,X)|0,g=Math.imul(xe,mt),x=x+Math.imul(nt,it)|0,n=(n=n+Math.imul(nt,je)|0)+Math.imul(Ue,it)|0,g=g+Math.imul(Ue,je)|0;var Mi=(k+(x=x+Math.imul(O,xt)|0)|0)+((8191&(n=(n=n+Math.imul(O,Nt)|0)+Math.imul(G,xt)|0))<<13)|0;k=((g=g+Math.imul(G,Nt)|0)+(n>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,x=Math.imul(Oe,X),n=(n=Math.imul(Oe,mt))+Math.imul(oe,X)|0,g=Math.imul(oe,mt),x=x+Math.imul(ye,it)|0,n=(n=n+Math.imul(ye,je)|0)+Math.imul(xe,it)|0,g=g+Math.imul(xe,je)|0,x=x+Math.imul(nt,xt)|0,n=(n=n+Math.imul(nt,Nt)|0)+Math.imul(Ue,xt)|0,g=g+Math.imul(Ue,Nt)|0;var Gi=(k+(x=x+Math.imul(O,ke)|0)|0)+((8191&(n=(n=n+Math.imul(O,$)|0)+Math.imul(G,ke)|0))<<13)|0;k=((g=g+Math.imul(G,$)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,x=Math.imul(De,X),n=(n=Math.imul(De,mt))+Math.imul(he,X)|0,g=Math.imul(he,mt),x=x+Math.imul(Oe,it)|0,n=(n=n+Math.imul(Oe,je)|0)+Math.imul(oe,it)|0,g=g+Math.imul(oe,je)|0,x=x+Math.imul(ye,xt)|0,n=(n=n+Math.imul(ye,Nt)|0)+Math.imul(xe,xt)|0,g=g+Math.imul(xe,Nt)|0,x=x+Math.imul(nt,ke)|0,n=(n=n+Math.imul(nt,$)|0)+Math.imul(Ue,ke)|0,g=g+Math.imul(Ue,$)|0;var Xe=(k+(x=x+Math.imul(O,Le)|0)|0)+((8191&(n=(n=n+Math.imul(O,Je)|0)+Math.imul(G,Le)|0))<<13)|0;k=((g=g+Math.imul(G,Je)|0)+(n>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,x=Math.imul(pe,X),n=(n=Math.imul(pe,mt))+Math.imul(Ve,X)|0,g=Math.imul(Ve,mt),x=x+Math.imul(De,it)|0,n=(n=n+Math.imul(De,je)|0)+Math.imul(he,it)|0,g=g+Math.imul(he,je)|0,x=x+Math.imul(Oe,xt)|0,n=(n=n+Math.imul(Oe,Nt)|0)+Math.imul(oe,xt)|0,g=g+Math.imul(oe,Nt)|0,x=x+Math.imul(ye,ke)|0,n=(n=n+Math.imul(ye,$)|0)+Math.imul(xe,ke)|0,g=g+Math.imul(xe,$)|0,x=x+Math.imul(nt,Le)|0,n=(n=n+Math.imul(nt,Je)|0)+Math.imul(Ue,Le)|0,g=g+Math.imul(Ue,Je)|0;var It=(k+(x=x+Math.imul(O,Vt)|0)|0)+((8191&(n=(n=n+Math.imul(O,ii)|0)+Math.imul(G,Vt)|0))<<13)|0;k=((g=g+Math.imul(G,ii)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,x=Math.imul(Pe,X),n=(n=Math.imul(Pe,mt))+Math.imul(de,X)|0,g=Math.imul(de,mt),x=x+Math.imul(pe,it)|0,n=(n=n+Math.imul(pe,je)|0)+Math.imul(Ve,it)|0,g=g+Math.imul(Ve,je)|0,x=x+Math.imul(De,xt)|0,n=(n=n+Math.imul(De,Nt)|0)+Math.imul(he,xt)|0,g=g+Math.imul(he,Nt)|0,x=x+Math.imul(Oe,ke)|0,n=(n=n+Math.imul(Oe,$)|0)+Math.imul(oe,ke)|0,g=g+Math.imul(oe,$)|0,x=x+Math.imul(ye,Le)|0,n=(n=n+Math.imul(ye,Je)|0)+Math.imul(xe,Le)|0,g=g+Math.imul(xe,Je)|0,x=x+Math.imul(nt,Vt)|0,n=(n=n+Math.imul(nt,ii)|0)+Math.imul(Ue,Vt)|0,g=g+Math.imul(Ue,ii)|0;var Se=(k+(x=x+Math.imul(O,ot)|0)|0)+((8191&(n=(n=n+Math.imul(O,ft)|0)+Math.imul(G,ot)|0))<<13)|0;k=((g=g+Math.imul(G,ft)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,x=Math.imul(Ke,X),n=(n=Math.imul(Ke,mt))+Math.imul(lt,X)|0,g=Math.imul(lt,mt),x=x+Math.imul(Pe,it)|0,n=(n=n+Math.imul(Pe,je)|0)+Math.imul(de,it)|0,g=g+Math.imul(de,je)|0,x=x+Math.imul(pe,xt)|0,n=(n=n+Math.imul(pe,Nt)|0)+Math.imul(Ve,xt)|0,g=g+Math.imul(Ve,Nt)|0,x=x+Math.imul(De,ke)|0,n=(n=n+Math.imul(De,$)|0)+Math.imul(he,ke)|0,g=g+Math.imul(he,$)|0,x=x+Math.imul(Oe,Le)|0,n=(n=n+Math.imul(Oe,Je)|0)+Math.imul(oe,Le)|0,g=g+Math.imul(oe,Je)|0,x=x+Math.imul(ye,Vt)|0,n=(n=n+Math.imul(ye,ii)|0)+Math.imul(xe,Vt)|0,g=g+Math.imul(xe,ii)|0,x=x+Math.imul(nt,ot)|0,n=(n=n+Math.imul(nt,ft)|0)+Math.imul(Ue,ot)|0,g=g+Math.imul(Ue,ft)|0;var wt=(k+(x=x+Math.imul(O,gt)|0)|0)+((8191&(n=(n=n+Math.imul(O,$e)|0)+Math.imul(G,gt)|0))<<13)|0;k=((g=g+Math.imul(G,$e)|0)+(n>>>13)|0)+(wt>>>26)|0,wt&=67108863,x=Math.imul(ht,X),n=(n=Math.imul(ht,mt))+Math.imul(Ge,X)|0,g=Math.imul(Ge,mt),x=x+Math.imul(Ke,it)|0,n=(n=n+Math.imul(Ke,je)|0)+Math.imul(lt,it)|0,g=g+Math.imul(lt,je)|0,x=x+Math.imul(Pe,xt)|0,n=(n=n+Math.imul(Pe,Nt)|0)+Math.imul(de,xt)|0,g=g+Math.imul(de,Nt)|0,x=x+Math.imul(pe,ke)|0,n=(n=n+Math.imul(pe,$)|0)+Math.imul(Ve,ke)|0,g=g+Math.imul(Ve,$)|0,x=x+Math.imul(De,Le)|0,n=(n=n+Math.imul(De,Je)|0)+Math.imul(he,Le)|0,g=g+Math.imul(he,Je)|0,x=x+Math.imul(Oe,Vt)|0,n=(n=n+Math.imul(Oe,ii)|0)+Math.imul(oe,Vt)|0,g=g+Math.imul(oe,ii)|0,x=x+Math.imul(ye,ot)|0,n=(n=n+Math.imul(ye,ft)|0)+Math.imul(xe,ot)|0,g=g+Math.imul(xe,ft)|0,x=x+Math.imul(nt,gt)|0,n=(n=n+Math.imul(nt,$e)|0)+Math.imul(Ue,gt)|0,g=g+Math.imul(Ue,$e)|0;var Zt=(k+(x=x+Math.imul(O,vt)|0)|0)+((8191&(n=(n=n+Math.imul(O,He)|0)+Math.imul(G,vt)|0))<<13)|0;k=((g=g+Math.imul(G,He)|0)+(n>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,x=Math.imul(be,X),n=(n=Math.imul(be,mt))+Math.imul(qe,X)|0,g=Math.imul(qe,mt),x=x+Math.imul(ht,it)|0,n=(n=n+Math.imul(ht,je)|0)+Math.imul(Ge,it)|0,g=g+Math.imul(Ge,je)|0,x=x+Math.imul(Ke,xt)|0,n=(n=n+Math.imul(Ke,Nt)|0)+Math.imul(lt,xt)|0,g=g+Math.imul(lt,Nt)|0,x=x+Math.imul(Pe,ke)|0,n=(n=n+Math.imul(Pe,$)|0)+Math.imul(de,ke)|0,g=g+Math.imul(de,$)|0,x=x+Math.imul(pe,Le)|0,n=(n=n+Math.imul(pe,Je)|0)+Math.imul(Ve,Le)|0,g=g+Math.imul(Ve,Je)|0,x=x+Math.imul(De,Vt)|0,n=(n=n+Math.imul(De,ii)|0)+Math.imul(he,Vt)|0,g=g+Math.imul(he,ii)|0,x=x+Math.imul(Oe,ot)|0,n=(n=n+Math.imul(Oe,ft)|0)+Math.imul(oe,ot)|0,g=g+Math.imul(oe,ft)|0,x=x+Math.imul(ye,gt)|0,n=(n=n+Math.imul(ye,$e)|0)+Math.imul(xe,gt)|0,g=g+Math.imul(xe,$e)|0,x=x+Math.imul(nt,vt)|0,n=(n=n+Math.imul(nt,He)|0)+Math.imul(Ue,vt)|0,g=g+Math.imul(Ue,He)|0;var si=(k+(x=x+Math.imul(O,At)|0)|0)+((8191&(n=(n=n+Math.imul(O,Qt)|0)+Math.imul(G,At)|0))<<13)|0;k=((g=g+Math.imul(G,Qt)|0)+(n>>>13)|0)+(si>>>26)|0,si&=67108863,x=Math.imul(be,it),n=(n=Math.imul(be,je))+Math.imul(qe,it)|0,g=Math.imul(qe,je),x=x+Math.imul(ht,xt)|0,n=(n=n+Math.imul(ht,Nt)|0)+Math.imul(Ge,xt)|0,g=g+Math.imul(Ge,Nt)|0,x=x+Math.imul(Ke,ke)|0,n=(n=n+Math.imul(Ke,$)|0)+Math.imul(lt,ke)|0,g=g+Math.imul(lt,$)|0,x=x+Math.imul(Pe,Le)|0,n=(n=n+Math.imul(Pe,Je)|0)+Math.imul(de,Le)|0,g=g+Math.imul(de,Je)|0,x=x+Math.imul(pe,Vt)|0,n=(n=n+Math.imul(pe,ii)|0)+Math.imul(Ve,Vt)|0,g=g+Math.imul(Ve,ii)|0,x=x+Math.imul(De,ot)|0,n=(n=n+Math.imul(De,ft)|0)+Math.imul(he,ot)|0,g=g+Math.imul(he,ft)|0,x=x+Math.imul(Oe,gt)|0,n=(n=n+Math.imul(Oe,$e)|0)+Math.imul(oe,gt)|0,g=g+Math.imul(oe,$e)|0,x=x+Math.imul(ye,vt)|0,n=(n=n+Math.imul(ye,He)|0)+Math.imul(xe,vt)|0,g=g+Math.imul(xe,He)|0;var Ai=(k+(x=x+Math.imul(nt,At)|0)|0)+((8191&(n=(n=n+Math.imul(nt,Qt)|0)+Math.imul(Ue,At)|0))<<13)|0;k=((g=g+Math.imul(Ue,Qt)|0)+(n>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,x=Math.imul(be,xt),n=(n=Math.imul(be,Nt))+Math.imul(qe,xt)|0,g=Math.imul(qe,Nt),x=x+Math.imul(ht,ke)|0,n=(n=n+Math.imul(ht,$)|0)+Math.imul(Ge,ke)|0,g=g+Math.imul(Ge,$)|0,x=x+Math.imul(Ke,Le)|0,n=(n=n+Math.imul(Ke,Je)|0)+Math.imul(lt,Le)|0,g=g+Math.imul(lt,Je)|0,x=x+Math.imul(Pe,Vt)|0,n=(n=n+Math.imul(Pe,ii)|0)+Math.imul(de,Vt)|0,g=g+Math.imul(de,ii)|0,x=x+Math.imul(pe,ot)|0,n=(n=n+Math.imul(pe,ft)|0)+Math.imul(Ve,ot)|0,g=g+Math.imul(Ve,ft)|0,x=x+Math.imul(De,gt)|0,n=(n=n+Math.imul(De,$e)|0)+Math.imul(he,gt)|0,g=g+Math.imul(he,$e)|0,x=x+Math.imul(Oe,vt)|0,n=(n=n+Math.imul(Oe,He)|0)+Math.imul(oe,vt)|0,g=g+Math.imul(oe,He)|0;var Oi=(k+(x=x+Math.imul(ye,At)|0)|0)+((8191&(n=(n=n+Math.imul(ye,Qt)|0)+Math.imul(xe,At)|0))<<13)|0;k=((g=g+Math.imul(xe,Qt)|0)+(n>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,x=Math.imul(be,ke),n=(n=Math.imul(be,$))+Math.imul(qe,ke)|0,g=Math.imul(qe,$),x=x+Math.imul(ht,Le)|0,n=(n=n+Math.imul(ht,Je)|0)+Math.imul(Ge,Le)|0,g=g+Math.imul(Ge,Je)|0,x=x+Math.imul(Ke,Vt)|0,n=(n=n+Math.imul(Ke,ii)|0)+Math.imul(lt,Vt)|0,g=g+Math.imul(lt,ii)|0,x=x+Math.imul(Pe,ot)|0,n=(n=n+Math.imul(Pe,ft)|0)+Math.imul(de,ot)|0,g=g+Math.imul(de,ft)|0,x=x+Math.imul(pe,gt)|0,n=(n=n+Math.imul(pe,$e)|0)+Math.imul(Ve,gt)|0,g=g+Math.imul(Ve,$e)|0,x=x+Math.imul(De,vt)|0,n=(n=n+Math.imul(De,He)|0)+Math.imul(he,vt)|0,g=g+Math.imul(he,He)|0;var Qi=(k+(x=x+Math.imul(Oe,At)|0)|0)+((8191&(n=(n=n+Math.imul(Oe,Qt)|0)+Math.imul(oe,At)|0))<<13)|0;k=((g=g+Math.imul(oe,Qt)|0)+(n>>>13)|0)+(Qi>>>26)|0,Qi&=67108863,x=Math.imul(be,Le),n=(n=Math.imul(be,Je))+Math.imul(qe,Le)|0,g=Math.imul(qe,Je),x=x+Math.imul(ht,Vt)|0,n=(n=n+Math.imul(ht,ii)|0)+Math.imul(Ge,Vt)|0,g=g+Math.imul(Ge,ii)|0,x=x+Math.imul(Ke,ot)|0,n=(n=n+Math.imul(Ke,ft)|0)+Math.imul(lt,ot)|0,g=g+Math.imul(lt,ft)|0,x=x+Math.imul(Pe,gt)|0,n=(n=n+Math.imul(Pe,$e)|0)+Math.imul(de,gt)|0,g=g+Math.imul(de,$e)|0,x=x+Math.imul(pe,vt)|0,n=(n=n+Math.imul(pe,He)|0)+Math.imul(Ve,vt)|0,g=g+Math.imul(Ve,He)|0;var en=(k+(x=x+Math.imul(De,At)|0)|0)+((8191&(n=(n=n+Math.imul(De,Qt)|0)+Math.imul(he,At)|0))<<13)|0;k=((g=g+Math.imul(he,Qt)|0)+(n>>>13)|0)+(en>>>26)|0,en&=67108863,x=Math.imul(be,Vt),n=(n=Math.imul(be,ii))+Math.imul(qe,Vt)|0,g=Math.imul(qe,ii),x=x+Math.imul(ht,ot)|0,n=(n=n+Math.imul(ht,ft)|0)+Math.imul(Ge,ot)|0,g=g+Math.imul(Ge,ft)|0,x=x+Math.imul(Ke,gt)|0,n=(n=n+Math.imul(Ke,$e)|0)+Math.imul(lt,gt)|0,g=g+Math.imul(lt,$e)|0,x=x+Math.imul(Pe,vt)|0,n=(n=n+Math.imul(Pe,He)|0)+Math.imul(de,vt)|0,g=g+Math.imul(de,He)|0;var Yi=(k+(x=x+Math.imul(pe,At)|0)|0)+((8191&(n=(n=n+Math.imul(pe,Qt)|0)+Math.imul(Ve,At)|0))<<13)|0;k=((g=g+Math.imul(Ve,Qt)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,x=Math.imul(be,ot),n=(n=Math.imul(be,ft))+Math.imul(qe,ot)|0,g=Math.imul(qe,ft),x=x+Math.imul(ht,gt)|0,n=(n=n+Math.imul(ht,$e)|0)+Math.imul(Ge,gt)|0,g=g+Math.imul(Ge,$e)|0,x=x+Math.imul(Ke,vt)|0,n=(n=n+Math.imul(Ke,He)|0)+Math.imul(lt,vt)|0,g=g+Math.imul(lt,He)|0;var Yt=(k+(x=x+Math.imul(Pe,At)|0)|0)+((8191&(n=(n=n+Math.imul(Pe,Qt)|0)+Math.imul(de,At)|0))<<13)|0;k=((g=g+Math.imul(de,Qt)|0)+(n>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,x=Math.imul(be,gt),n=(n=Math.imul(be,$e))+Math.imul(qe,gt)|0,g=Math.imul(qe,$e),x=x+Math.imul(ht,vt)|0,n=(n=n+Math.imul(ht,He)|0)+Math.imul(Ge,vt)|0,g=g+Math.imul(Ge,He)|0;var qt=(k+(x=x+Math.imul(Ke,At)|0)|0)+((8191&(n=(n=n+Math.imul(Ke,Qt)|0)+Math.imul(lt,At)|0))<<13)|0;k=((g=g+Math.imul(lt,Qt)|0)+(n>>>13)|0)+(qt>>>26)|0,qt&=67108863,x=Math.imul(be,vt),n=(n=Math.imul(be,He))+Math.imul(qe,vt)|0,g=Math.imul(qe,He);var _e=(k+(x=x+Math.imul(ht,At)|0)|0)+((8191&(n=(n=n+Math.imul(ht,Qt)|0)+Math.imul(Ge,At)|0))<<13)|0;k=((g=g+Math.imul(Ge,Qt)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863;var dt=(k+(x=Math.imul(be,At))|0)+((8191&(n=(n=Math.imul(be,Qt))+Math.imul(qe,At)|0))<<13)|0;return k=((g=Math.imul(qe,Qt))+(n>>>13)|0)+(dt>>>26)|0,dt&=67108863,I[0]=zi,I[1]=Ni,I[2]=Mi,I[3]=Gi,I[4]=Xe,I[5]=It,I[6]=Se,I[7]=wt,I[8]=Zt,I[9]=si,I[10]=Ai,I[11]=Oi,I[12]=Qi,I[13]=en,I[14]=Yi,I[15]=Yt,I[16]=qt,I[17]=_e,I[18]=dt,0!==k&&(I[19]=k,f.length++),f};function j(M,i,a){return(new Q).mulp(M,i,a)}function Q(M,i){this.x=M,this.y=i}Math.imul||(V=H),s.prototype.mulTo=function(i,a){var f,l=this.length+i.length;return f=10===this.length&&10===i.length?V(this,i,a):l<63?H(this,i,a):l<1024?function Y(M,i,a){a.negative=i.negative^M.negative,a.length=M.length+i.length;for(var f=0,l=0,v=0;v>>26)|0)>>>26,I&=67108863}a.words[v]=k,f=I,I=l}return 0!==f?a.words[v]=f:a.length--,a.strip()}(this,i,a):j(this,i,a),f},Q.prototype.makeRBT=function(i){for(var a=new Array(i),f=s.prototype._countBits(i)-1,l=0;l>=1;return l},Q.prototype.permute=function(i,a,f,l,v,I){for(var k=0;k>>=1)v++;return 1<>>=13),v>>>=13;for(I=2*a;I>=26,a+=l/67108864|0,a+=v>>>26,this.words[f]=67108863&v}return 0!==a&&(this.words[f]=a,this.length++),this},s.prototype.muln=function(i){return this.clone().imuln(i)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(i){var a=function D(M){for(var i=new Array(M.bitLength()),a=0;a>>l}return i}(i);if(0===a.length)return new s(1);for(var f=this,l=0;l=0);var v,a=i%26,f=(i-a)/26,l=67108863>>>26-a<<26-a;if(0!==a){var I=0;for(v=0;v>>26-a}I&&(this.words[v]=I,this.length++)}if(0!==f){for(v=this.length-1;v>=0;v--)this.words[v+f]=this.words[v];for(v=0;v=0),l=a?(a-a%26)/26:0;var v=i%26,I=Math.min((i-v)/26,this.length),k=67108863^67108863>>>v<I)for(this.length-=I,n=0;n=0&&(0!==g||n>=l);n--){var W=0|this.words[n];this.words[n]=g<<26-v|W>>>v,g=W&k}return x&&0!==g&&(x.words[x.length++]=g),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,a,f){return _(0===this.negative),this.iushrn(i,a,f)},s.prototype.shln=function(i){return this.clone().ishln(i)},s.prototype.ushln=function(i){return this.clone().iushln(i)},s.prototype.shrn=function(i){return this.clone().ishrn(i)},s.prototype.ushrn=function(i){return this.clone().iushrn(i)},s.prototype.testn=function(i){_("number"==typeof i&&i>=0);var a=i%26,f=(i-a)/26;return!(this.length<=f||!(this.words[f]&1<=0);var a=i%26,f=(i-a)/26;return _(0===this.negative,"imaskn works only with positive numbers"),this.length<=f?this:(0!==a&&f++,this.length=Math.min(f,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},s.prototype.isubn=function(i){if(_("number"==typeof i),_(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[v+f]=67108863&I}for(;v>26,this.words[v+f]=67108863&I;if(0===k)return this.strip();for(_(-1===k),k=0,v=0;v>26,this.words[v]=67108863&I;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var f,l=this.clone(),v=i,I=0|v.words[v.length-1];0!=(f=26-this._countBits(I))&&(v=v.ushln(f),l.iushln(f),I=0|v.words[v.length-1]);var n,x=l.length-v.length;if("mod"!==a){(n=new s(null)).length=x+1,n.words=new Array(n.length);for(var g=0;g=0;O--){var G=67108864*(0|l.words[v.length+O])+(0|l.words[v.length+O-1]);for(G=Math.min(G/I|0,67108863),l._ishlnsubmul(v,G,O);0!==l.negative;)G--,l.negative=0,l._ishlnsubmul(v,1,O),l.isZero()||(l.negative^=1);n&&(n.words[O]=G)}return n&&n.strip(),l.strip(),"div"!==a&&0!==f&&l.iushrn(f),{div:n||null,mod:l}},s.prototype.divmod=function(i,a,f){return _(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(I=this.neg().divmod(i,a),"mod"!==a&&(l=I.div.neg()),"div"!==a&&(v=I.mod.neg(),f&&0!==v.negative&&v.iadd(i)),{div:l,mod:v}):0===this.negative&&0!==i.negative?(I=this.divmod(i.neg(),a),"mod"!==a&&(l=I.div.neg()),{div:l,mod:I.mod}):this.negative&i.negative?(I=this.neg().divmod(i.neg(),a),"div"!==a&&(v=I.mod.neg(),f&&0!==v.negative&&v.isub(i)),{div:I.div,mod:v}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new s(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new s(this.modn(i.words[0]))}:this._wordDiv(i,a);var l,v,I},s.prototype.div=function(i){return this.divmod(i,"div",!1).div},s.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},s.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},s.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var f=0!==a.div.negative?a.mod.isub(i):a.mod,l=i.ushrn(1),v=i.andln(1),I=f.cmp(l);return I<0||1===v&&0===I?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},s.prototype.modn=function(i){_(i<=67108863);for(var a=(1<<26)%i,f=0,l=this.length-1;l>=0;l--)f=(a*f+(0|this.words[l]))%i;return f},s.prototype.idivn=function(i){_(i<=67108863);for(var a=0,f=this.length-1;f>=0;f--){var l=(0|this.words[f])+67108864*a;this.words[f]=l/i|0,a=l%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){_(0===i.negative),_(!i.isZero());var a=this,f=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),v=new s(0),I=new s(0),k=new s(1),x=0;a.isEven()&&f.isEven();)a.iushrn(1),f.iushrn(1),++x;for(var n=f.clone(),g=a.clone();!a.isZero();){for(var W=0,O=1;!(a.words[0]&O)&&W<26;++W,O<<=1);if(W>0)for(a.iushrn(W);W-- >0;)(l.isOdd()||v.isOdd())&&(l.iadd(n),v.isub(g)),l.iushrn(1),v.iushrn(1);for(var G=0,ge=1;!(f.words[0]&ge)&&G<26;++G,ge<<=1);if(G>0)for(f.iushrn(G);G-- >0;)(I.isOdd()||k.isOdd())&&(I.iadd(n),k.isub(g)),I.iushrn(1),k.iushrn(1);a.cmp(f)>=0?(a.isub(f),l.isub(I),v.isub(k)):(f.isub(a),I.isub(l),k.isub(v))}return{a:I,b:k,gcd:f.iushln(x)}},s.prototype._invmp=function(i){_(0===i.negative),_(!i.isZero());var W,a=this,f=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),v=new s(0),I=f.clone();a.cmpn(1)>0&&f.cmpn(1)>0;){for(var k=0,x=1;!(a.words[0]&x)&&k<26;++k,x<<=1);if(k>0)for(a.iushrn(k);k-- >0;)l.isOdd()&&l.iadd(I),l.iushrn(1);for(var n=0,g=1;!(f.words[0]&g)&&n<26;++n,g<<=1);if(n>0)for(f.iushrn(n);n-- >0;)v.isOdd()&&v.iadd(I),v.iushrn(1);a.cmp(f)>=0?(a.isub(f),l.isub(v)):(f.isub(a),v.isub(l))}return(W=0===a.cmpn(1)?l:v).cmpn(0)<0&&W.iadd(i),W},s.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),f=i.clone();a.negative=0,f.negative=0;for(var l=0;a.isEven()&&f.isEven();l++)a.iushrn(1),f.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;f.isEven();)f.iushrn(1);var v=a.cmp(f);if(v<0){var I=a;a=f,f=I}else if(0===v||0===f.cmpn(1))break;a.isub(f)}return f.iushln(l)},s.prototype.invm=function(i){return this.egcd(i).a.umod(i)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(i){return this.words[0]&i},s.prototype.bincn=function(i){_("number"==typeof i);var a=i%26,f=(i-a)/26,l=1<>>26,this.words[I]=k&=67108863}return 0!==v&&(this.words[I]=v,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var f,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)f=1;else{a&&(i=-i),_(i<=67108863,"Number is too big");var l=0|this.words[0];f=l===i?0:li.length)return 1;if(this.length=0;f--){var l=0|this.words[f],v=0|i.words[f];if(l!==v){lv&&(a=1);break}}return a},s.prototype.gtn=function(i){return 1===this.cmpn(i)},s.prototype.gt=function(i){return 1===this.cmp(i)},s.prototype.gten=function(i){return this.cmpn(i)>=0},s.prototype.gte=function(i){return this.cmp(i)>=0},s.prototype.ltn=function(i){return-1===this.cmpn(i)},s.prototype.lt=function(i){return-1===this.cmp(i)},s.prototype.lten=function(i){return this.cmpn(i)<=0},s.prototype.lte=function(i){return this.cmp(i)<=0},s.prototype.eqn=function(i){return 0===this.cmpn(i)},s.prototype.eq=function(i){return 0===this.cmp(i)},s.red=function(i){return new ce(i)},s.prototype.toRed=function(i){return _(!this.red,"Already a number in reduction context"),_(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(i){return this.red=i,this},s.prototype.forceRed=function(i){return _(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return _(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var J={k256:null,p224:null,p192:null,p25519:null};function ee(M,i){this.name=M,this.p=new s(i,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function me(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function re(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ce(M){if("string"==typeof M){var i=s._prime(M);this.m=i.p,this.prime=i}else _(M.gtn(1),"modulus must be greater than 1"),this.m=M,this.prime=null}function Ce(M){ce.call(this,M),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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 s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var f,a=i;do{this.split(a,this.tmp),f=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(f>this.n);var l=f0?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)},T(me,ee),me.prototype.split=function(i,a){for(var f=4194303,l=Math.min(i.length,9),v=0;v>>22,I=k}i.words[v-10]=I>>>=22,i.length-=0===I&&i.length>10?10:9},me.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,f=0;f>>=26,i.words[f]=v,a=l}return 0!==a&&(i.words[i.length++]=a),i},s._prime=function(i){if(J[i])return J[i];var a;if("k256"===i)a=new me;else if("p224"===i)a=new re;else if("p192"===i)a=new ie;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new se}return J[i]=a,a},ce.prototype._verify1=function(i){_(0===i.negative,"red works only with positives"),_(i.red,"red works only with red numbers")},ce.prototype._verify2=function(i,a){_(0==(i.negative|a.negative),"red works only with positives"),_(i.red&&i.red===a.red,"red works only with red numbers")},ce.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},ce.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},ce.prototype.add=function(i,a){this._verify2(i,a);var f=i.add(a);return f.cmp(this.m)>=0&&f.isub(this.m),f._forceRed(this)},ce.prototype.iadd=function(i,a){this._verify2(i,a);var f=i.iadd(a);return f.cmp(this.m)>=0&&f.isub(this.m),f},ce.prototype.sub=function(i,a){this._verify2(i,a);var f=i.sub(a);return f.cmpn(0)<0&&f.iadd(this.m),f._forceRed(this)},ce.prototype.isub=function(i,a){this._verify2(i,a);var f=i.isub(a);return f.cmpn(0)<0&&f.iadd(this.m),f},ce.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},ce.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},ce.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},ce.prototype.isqr=function(i){return this.imul(i,i.clone())},ce.prototype.sqr=function(i){return this.mul(i,i)},ce.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(_(a%2==1),3===a){var f=this.m.add(new s(1)).iushrn(2);return this.pow(i,f)}for(var l=this.m.subn(1),v=0;!l.isZero()&&0===l.andln(1);)v++,l.iushrn(1);_(!l.isZero());var I=new s(1).toRed(this),k=I.redNeg(),x=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new s(2*n*n).toRed(this);0!==this.pow(n,x).cmp(k);)n.redIAdd(k);for(var g=this.pow(n,l),W=this.pow(i,l.addn(1).iushrn(1)),O=this.pow(i,l),G=v;0!==O.cmp(I);){for(var ge=O,nt=0;0!==ge.cmp(I);nt++)ge=ge.redSqr();_(nt=0;v--){for(var g=a.words[v],W=n-1;W>=0;W--){var O=g>>W&1;I!==l[0]&&(I=this.sqr(I)),0!==O||0!==k?(k<<=1,k|=O,(4==++x||0===v&&0===W)&&(I=this.mul(I,l[k]),x=0,k=0)):x=0}n=26}return I},ce.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},ce.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new Ce(i)},T(Ce,ce),Ce.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},Ce.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},Ce.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var f=i.imul(a),l=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=f.isub(l).iushrn(this.shift),I=v;return v.cmp(this.m)>=0?I=v.isub(this.m):v.cmpn(0)<0&&(I=v.iadd(this.m)),I._forceRed(this)},Ce.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new s(0)._forceRed(this);var f=i.mul(a),l=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=f.isub(l).iushrn(this.shift),I=v;return v.cmp(this.m)>=0?I=v.isub(this.m):v.cmpn(0)<0&&(I=v.iadd(this.m)),I._forceRed(this)},Ce.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(We=m.nmd(We),this)},6705:(We,q,m)=>{var t=m(2772),e=m(6945),_=m(9401),T=m(2057),s=m(8466),y=m(6386),h=m(8651),P=m(3502).Buffer;We.exports=function(D,H,V){var Y;Y=D.padding?D.padding:V?1:4;var J,j=t(D),Q=j.modulus.byteLength();if(H.length>Q||new T(H).cmp(j.modulus)>=0)throw new Error("decryption error");J=V?h(new T(H),j):s(H,j);var ee=P.alloc(Q-J.length);if(J=P.concat([ee,J],Q),4===Y)return function d(L,D){var H=L.modulus.byteLength(),V=y("sha1").update(P.alloc(0)).digest(),Y=V.length;if(0!==D[0])throw new Error("decryption error");var j=D.slice(1,Y+1),Q=D.slice(Y+1),J=_(j,e(Q,Y)),ee=_(Q,e(J,H-Y-1));if(function C(L,D){L=P.from(L),D=P.from(D);var H=0,V=L.length;L.length!==D.length&&(H++,V=Math.min(L.length,D.length));for(var Y=-1;++Y=D.length){j++;break}var Q=D.slice(2,Y-1);if(("0002"!==V.toString("hex")&&!H||"0001"!==V.toString("hex")&&H)&&j++,Q.length<8&&j++,j)throw new Error("decryption error");return D.slice(Y)}(0,J,V);if(3===Y)return J;throw new Error("unknown padding")}},6562:(We,q,m)=>{var t=m(2772),e=m(3753),_=m(6386),T=m(6945),s=m(9401),y=m(2057),h=m(8651),P=m(8466),d=m(3502).Buffer;We.exports=function(H,V,Y){var j;j=H.padding?H.padding:Y?1:4;var J,Q=t(H);if(4===j)J=function w(D,H){var V=D.modulus.byteLength(),Y=H.length,j=_("sha1").update(d.alloc(0)).digest(),Q=j.length,J=2*Q;if(Y>V-J-2)throw new Error("message too long");var ee=d.alloc(V-Y-J-2),me=V-Q-1,re=e(Q),ie=s(d.concat([j,ee,d.alloc(1,1),H],me),T(re,me)),se=s(re,T(ie,Q));return new y(d.concat([d.alloc(1),se,ie],V))}(Q,V);else if(1===j)J=function C(D,H,V){var Q,Y=H.length,j=D.modulus.byteLength();if(Y>j-11)throw new Error("message too long");return Q=V?d.alloc(j-Y-3,255):function L(D){for(var Q,H=d.allocUnsafe(D),V=0,Y=e(2*D),j=0;V=0)throw new Error("data too long for modulus")}return Y?P(J,Q):h(J,Q)}},8651:(We,q,m)=>{var t=m(2057),e=m(3502).Buffer;We.exports=function _(T,s){return e.from(T.toRed(t.mont(s.modulus)).redPow(new t(s.publicExponent)).fromRed().toArray())}},9401:We=>{We.exports=function(m,t){for(var e=m.length,_=-1;++_{const t=m(8695),e=m(1465),_=m(3210),T=m(2334);function s(y,h,P,d,w){const C=[].slice.call(arguments,1),L=C.length,D="function"==typeof C[L-1];if(!D&&!t())throw new Error("Callback required as last argument");if(!D){if(L<1)throw new Error("Too few arguments provided");return 1===L?(P=h,h=d=void 0):2===L&&!h.getContext&&(d=P,P=h,h=void 0),new Promise(function(H,V){try{const Y=e.create(P,d);H(y(Y,h,d))}catch(Y){V(Y)}})}if(L<2)throw new Error("Too few arguments provided");2===L?(w=P,P=h,h=d=void 0):3===L&&(h.getContext&&typeof w>"u"?(w=d,d=void 0):(w=d,d=P,P=h,h=void 0));try{const H=e.create(P,d);w(null,y(H,h,d))}catch(H){w(H)}}q.create=e.create,q.toCanvas=s.bind(null,_.render),q.toDataURL=s.bind(null,_.renderToDataURL),q.toString=s.bind(null,function(y,h,P){return T.render(y,P)})},8695:We=>{We.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6221:(We,q,m)=>{const t=m(4792).getSymbolSize;q.getRowColCoords=function(_){if(1===_)return[];const T=Math.floor(_/7)+2,s=t(_),y=145===s?26:2*Math.ceil((s-13)/(2*T-2)),h=[s-7];for(let P=1;P{const t=m(4016),e=["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 _(T){this.mode=t.ALPHANUMERIC,this.data=T}_.getBitsLength=function(s){return 11*Math.floor(s/2)+s%2*6},_.prototype.getLength=function(){return this.data.length},_.prototype.getBitsLength=function(){return _.getBitsLength(this.data.length)},_.prototype.write=function(s){let y;for(y=0;y+2<=this.data.length;y+=2){let h=45*e.indexOf(this.data[y]);h+=e.indexOf(this.data[y+1]),s.put(h,11)}this.data.length%2&&s.put(e.indexOf(this.data[y]),6)},We.exports=_},2118:We=>{function q(){this.buffer=[],this.length=0}q.prototype={get:function(m){const t=Math.floor(m/8);return 1==(this.buffer[t]>>>7-m%8&1)},put:function(m,t){for(let e=0;e>>t-e-1&1))},getLengthInBits:function(){return this.length},putBit:function(m){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),m&&(this.buffer[t]|=128>>>this.length%8),this.length++}},We.exports=q},4425:We=>{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,t,e,_){const T=m*this.size+t;this.data[T]=e,_&&(this.reservedBit[T]=!0)},q.prototype.get=function(m,t){return this.data[m*this.size+t]},q.prototype.xor=function(m,t,e){this.data[m*this.size+t]^=e},q.prototype.isReserved=function(m,t){return this.reservedBit[m*this.size+t]},We.exports=q},5663:(We,q,m)=>{const t=m(8419),e=m(4016);function _(T){this.mode=e.BYTE,"string"==typeof T&&(T=t(T)),this.data=new Uint8Array(T)}_.getBitsLength=function(s){return 8*s},_.prototype.getLength=function(){return this.data.length},_.prototype.getBitsLength=function(){return _.getBitsLength(this.data.length)},_.prototype.write=function(T){for(let s=0,y=this.data.length;s{const t=m(2259),e=[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],_=[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(s,y){switch(y){case t.L:return e[4*(s-1)+0];case t.M:return e[4*(s-1)+1];case t.Q:return e[4*(s-1)+2];case t.H:return e[4*(s-1)+3];default:return}},q.getTotalCodewordsCount=function(s,y){switch(y){case t.L:return _[4*(s-1)+0];case t.M:return _[4*(s-1)+1];case t.Q:return _[4*(s-1)+2];case t.H:return _[4*(s-1)+3];default:return}}},2259:(We,q)=>{q.L={bit:1},q.M={bit:0},q.Q={bit:3},q.H={bit:2},q.isValid=function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4},q.from=function(e,_){if(q.isValid(e))return e;try{return function m(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.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: "+t)}}(e)}catch{return _}}},3114:(We,q,m)=>{const t=m(4792).getSymbolSize;q.getPositions=function(T){const s=t(T);return[[0,0],[s-7,0],[0,s-7]]}},7078:(We,q,m)=>{const t=m(4792),T=t.getBCHDigit(1335);q.getEncodedBits=function(y,h){const P=y.bit<<3|h;let d=P<<10;for(;t.getBCHDigit(d)-T>=0;)d^=1335<{const m=new Uint8Array(512),t=new Uint8Array(256);(function(){let _=1;for(let T=0;T<255;T++)m[T]=_,t[_]=T,_<<=1,256&_&&(_^=285);for(let T=255;T<512;T++)m[T]=m[T-255]})(),q.log=function(_){if(_<1)throw new Error("log("+_+")");return t[_]},q.exp=function(_){return m[_]},q.mul=function(_,T){return 0===_||0===T?0:m[t[_]+t[T]]}},449:(We,q,m)=>{const t=m(4016),e=m(4792);function _(T){this.mode=t.KANJI,this.data=T}_.getBitsLength=function(s){return 13*s},_.prototype.getLength=function(){return this.data.length},_.prototype.getBitsLength=function(){return _.getBitsLength(this.data.length)},_.prototype.write=function(T){let s;for(s=0;s=33088&&y<=40956)y-=33088;else{if(!(y>=57408&&y<=60351))throw new Error("Invalid SJIS character: "+this.data[s]+"\nMake sure your charset is UTF-8");y-=49472}y=192*(y>>>8&255)+(255&y),T.put(y,13)}},We.exports=_},3667:(We,q)=>{q.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function t(e,_,T){switch(e){case q.Patterns.PATTERN000:return(_+T)%2==0;case q.Patterns.PATTERN001:return _%2==0;case q.Patterns.PATTERN010:return T%3==0;case q.Patterns.PATTERN011:return(_+T)%3==0;case q.Patterns.PATTERN100:return(Math.floor(_/2)+Math.floor(T/3))%2==0;case q.Patterns.PATTERN101:return _*T%2+_*T%3==0;case q.Patterns.PATTERN110:return(_*T%2+_*T%3)%2==0;case q.Patterns.PATTERN111:return(_*T%3+(_+T)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}q.isValid=function(_){return null!=_&&""!==_&&!isNaN(_)&&_>=0&&_<=7},q.from=function(_){return q.isValid(_)?parseInt(_,10):void 0},q.getPenaltyN1=function(_){const T=_.size;let s=0,y=0,h=0,P=null,d=null;for(let w=0;w=5&&(s+=y-5+3),P=L,y=1),L=_.get(C,w),L===d?h++:(h>=5&&(s+=h-5+3),d=L,h=1)}y>=5&&(s+=y-5+3),h>=5&&(s+=h-5+3)}return s},q.getPenaltyN2=function(_){const T=_.size;let s=0;for(let y=0;y=10&&(1488===y||93===y)&&s++,h=h<<1&2047|_.get(d,P),d>=10&&(1488===h||93===h)&&s++}return 40*s},q.getPenaltyN4=function(_){let T=0;const s=_.data.length;for(let h=0;h{const t=m(4406),e=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(s,y){if(!s.ccBits)throw new Error("Invalid mode: "+s);if(!t.isValid(y))throw new Error("Invalid version: "+y);return y>=1&&y<10?s.ccBits[0]:y<27?s.ccBits[1]:s.ccBits[2]},q.getBestModeForData=function(s){return e.testNumeric(s)?q.NUMERIC:e.testAlphanumeric(s)?q.ALPHANUMERIC:e.testKanji(s)?q.KANJI:q.BYTE},q.toString=function(s){if(s&&s.id)return s.id;throw new Error("Invalid mode")},q.isValid=function(s){return s&&s.bit&&s.ccBits},q.from=function(s,y){if(q.isValid(s))return s;try{return function _(T){if("string"!=typeof T)throw new Error("Param is not a string");switch(T.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: "+T)}}(s)}catch{return y}}},7783:(We,q,m)=>{const t=m(4016);function e(_){this.mode=t.NUMERIC,this.data=_.toString()}e.getBitsLength=function(T){return 10*Math.floor(T/3)+(T%3?T%3*3+1:0)},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(T){let s,y,h;for(s=0;s+3<=this.data.length;s+=3)y=this.data.substr(s,3),h=parseInt(y,10),T.put(h,10);const P=this.data.length-s;P>0&&(y=this.data.substr(s),h=parseInt(y,10),T.put(h,3*P+1))},We.exports=e},1106:(We,q,m)=>{const t=m(5339);q.mul=function(_,T){const s=new Uint8Array(_.length+T.length-1);for(let y=0;y<_.length;y++)for(let h=0;h=0;){const y=s[0];for(let P=0;P{const t=m(4792),e=m(2259),_=m(2118),T=m(4425),s=m(6221),y=m(3114),h=m(3667),P=m(4655),d=m(2636),w=m(2088),C=m(7078),L=m(4016),D=m(2033);function Q(ie,se,ce){const Ce=ie.size,M=C.getEncodedBits(se,ce);let i,a;for(i=0;i<15;i++)a=1==(M>>i&1),ie.set(i<6?i:i<8?i+1:Ce-15+i,8,a,!0),ie.set(8,i<8?Ce-i-1:i<9?15-i-1+1:15-i-1,a,!0);ie.set(Ce-8,8,1,!0)}function re(ie,se,ce,Ce){let M;if(Array.isArray(ie))M=D.fromArray(ie);else{if("string"!=typeof ie)throw new Error("Invalid data");{let v=se;if(!v){const I=D.rawSplit(ie);v=w.getBestVersionForData(I,ce)}M=D.fromString(ie,v||40)}}const i=w.getBestVersionForData(M,ce);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(se){if(se=0&&f<=6&&(0===l||6===l)||l>=0&&l<=6&&(0===f||6===f)||f>=2&&f<=4&&l>=2&&l<=4,!0)}}(l,se),function V(ie){const se=ie.size;for(let ce=8;ce=7&&function j(ie,se){const ce=ie.size,Ce=w.getEncodedBits(se);let M,i,a;for(let f=0;f<18;f++)M=Math.floor(f/3),i=f%3+ce-8-3,a=1==(Ce>>f&1),ie.set(M,i,a,!0),ie.set(i,M,a,!0)}(l,se),function J(ie,se){const ce=ie.size;let Ce=-1,M=ce-1,i=7,a=0;for(let f=ce-1;f>0;f-=2)for(6===f&&f--;;){for(let l=0;l<2;l++)if(!ie.isReserved(M,f-l)){let v=!1;a>>i&1)),ie.set(M,f-l,v),i--,-1===i&&(a++,i=7)}if(M+=Ce,M<0||ce<=M){M-=Ce,Ce=-Ce;break}}}(l,a),isNaN(Ce)&&(Ce=h.getBestMask(l,Q.bind(null,l,ce))),h.applyMask(Ce,l),Q(l,ce,Ce),{modules:l,version:se,errorCorrectionLevel:ce,maskPattern:Ce,segments:M}}q.create=function(se,ce){if(typeof se>"u"||""===se)throw new Error("No input text");let M,i,Ce=e.M;return typeof ce<"u"&&(Ce=e.from(ce.errorCorrectionLevel,e.M),M=w.from(ce.version),i=h.from(ce.maskPattern),ce.toSJISFunc&&t.setToSJISFunction(ce.toSJISFunc)),re(se,M,Ce,i)}},2636:(We,q,m)=>{const t=m(1106);function e(_){this.genPoly=void 0,this.degree=_,this.degree&&this.initialize(this.degree)}e.prototype.initialize=function(T){this.degree=T,this.genPoly=t.generateECPolynomial(this.degree)},e.prototype.encode=function(T){if(!this.genPoly)throw new Error("Encoder not initialized");const s=new Uint8Array(T.length+this.degree);s.set(T);const y=t.mod(s,this.genPoly),h=this.degree-y.length;if(h>0){const P=new Uint8Array(this.degree);return P.set(y,h),P}return y},We.exports=e},2699:(We,q)=>{const m="[0-9]+";let e="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";e=e.replace(/u/g,"\\u");const _="(?:(?![A-Z0-9 $%*+\\-./:]|"+e+")(?:.|[\r\n]))+";q.KANJI=new RegExp(e,"g"),q.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),q.BYTE=new RegExp(_,"g"),q.NUMERIC=new RegExp(m,"g"),q.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const T=new RegExp("^"+e+"$"),s=new RegExp("^"+m+"$"),y=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");q.testKanji=function(P){return T.test(P)},q.testNumeric=function(P){return s.test(P)},q.testAlphanumeric=function(P){return y.test(P)}},2033:(We,q,m)=>{const t=m(4016),e=m(7783),_=m(2424),T=m(5663),s=m(449),y=m(2699),h=m(4792),P=m(4901);function d(j){return unescape(encodeURIComponent(j)).length}function w(j,Q,J){const ee=[];let me;for(;null!==(me=j.exec(J));)ee.push({data:me[0],index:me.index,mode:Q,length:me[0].length});return ee}function C(j){const Q=w(y.NUMERIC,t.NUMERIC,j),J=w(y.ALPHANUMERIC,t.ALPHANUMERIC,j);let ee,me;return h.isKanjiModeEnabled()?(ee=w(y.BYTE,t.BYTE,j),me=w(y.KANJI,t.KANJI,j)):(ee=w(y.BYTE_KANJI,t.BYTE,j),me=[]),Q.concat(J,ee,me).sort(function(ie,se){return ie.index-se.index}).map(function(ie){return{data:ie.data,mode:ie.mode,length:ie.length}})}function L(j,Q){switch(Q){case t.NUMERIC:return e.getBitsLength(j);case t.ALPHANUMERIC:return _.getBitsLength(j);case t.KANJI:return s.getBitsLength(j);case t.BYTE:return T.getBitsLength(j)}}function Y(j,Q){let J;const ee=t.getBestModeForData(j);if(J=t.from(Q,ee),J!==t.BYTE&&J.bit=0?Q[Q.length-1]:null;return ee&&ee.mode===J.mode?(Q[Q.length-1].data+=J.data,Q):(Q.push(J),Q)},[])}(se))},q.rawSplit=function(Q){return q.fromArray(C(Q,h.isKanjiModeEnabled()))}},4792:(We,q)=>{let m;const t=[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(_){if(!_)throw new Error('"version" cannot be null or undefined');if(_<1||_>40)throw new Error('"version" should be in range from 1 to 40');return 4*_+17},q.getSymbolTotalCodewords=function(_){return t[_]},q.getBCHDigit=function(e){let _=0;for(;0!==e;)_++,e>>>=1;return _},q.setToSJISFunction=function(_){if("function"!=typeof _)throw new Error('"toSJISFunc" is not a valid function.');m=_},q.isKanjiModeEnabled=function(){return typeof m<"u"},q.toSJIS=function(_){return m(_)}},4406:(We,q)=>{q.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},2088:(We,q,m)=>{const t=m(4792),e=m(4655),_=m(2259),T=m(4016),s=m(4406),h=t.getBCHDigit(7973);function d(L,D){return T.getCharCountIndicator(L,D)+4}function w(L,D){let H=0;return L.forEach(function(V){const Y=d(V.mode,D);H+=Y+V.getBitsLength()}),H}q.from=function(D,H){return s.isValid(D)?parseInt(D,10):H},q.getCapacity=function(D,H,V){if(!s.isValid(D))throw new Error("Invalid QR Code version");typeof V>"u"&&(V=T.BYTE);const Q=8*(t.getSymbolTotalCodewords(D)-e.getTotalCodewordsCount(D,H));if(V===T.MIXED)return Q;const J=Q-d(V,D);switch(V){case T.NUMERIC:return Math.floor(J/10*3);case T.ALPHANUMERIC:return Math.floor(J/11*2);case T.KANJI:return Math.floor(J/13);default:return Math.floor(J/8)}},q.getBestVersionForData=function(D,H){let V;const Y=_.from(H,_.M);if(Array.isArray(D)){if(D.length>1)return function C(L,D){for(let H=1;H<=40;H++)if(w(L,H)<=q.getCapacity(H,D,T.MIXED))return H}(D,Y);if(0===D.length)return 1;V=D[0]}else V=D;return function P(L,D,H){for(let V=1;V<=40;V++)if(D<=q.getCapacity(V,H,L))return V}(V.mode,V.getLength(),Y)},q.getEncodedBits=function(D){if(!s.isValid(D)||D<7)throw new Error("Invalid QR Code version");let H=D<<12;for(;t.getBCHDigit(H)-h>=0;)H^=7973<{const t=m(6355);q.render=function(s,y,h){let P=h,d=y;typeof P>"u"&&(!y||!y.getContext)&&(P=y,y=void 0),y||(d=function _(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),P=t.getOptions(P);const w=t.getImageWidth(s.modules.size,P),C=d.getContext("2d"),L=C.createImageData(w,w);return t.qrToImageData(L.data,s,P),function e(T,s,y){T.clearRect(0,0,s.width,s.height),s.style||(s.style={}),s.height=y,s.width=y,s.style.height=y+"px",s.style.width=y+"px"}(C,d,w),C.putImageData(L,0,0),d},q.renderToDataURL=function(s,y,h){let P=h;return typeof P>"u"&&(!y||!y.getContext)&&(P=y,y=void 0),P||(P={}),q.render(s,y,P).toDataURL(P.type||"image/png",(P.rendererOpts||{}).quality)}},2334:(We,q,m)=>{const t=m(6355);function e(s,y){const h=s.a/255,P=y+'="'+s.hex+'"';return h<1?P+" "+y+'-opacity="'+h.toFixed(2).slice(1)+'"':P}function _(s,y,h){let P=s+y;return typeof h<"u"&&(P+=" "+h),P}q.render=function(y,h,P){const d=t.getOptions(h),w=y.modules.size,C=y.modules.data,L=w+2*d.margin,D=d.color.light.a?"':"",H="0&&D>0&&s[L-1]||(P+=w?_("M",D+h,.5+H+h):_("m",d,0),d=0,w=!1),D+1',j=''+D+H+"\n";return"function"==typeof P&&P(null,j),j}},6355:(We,q)=>{function m(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);(3===e.length||4===e.length)&&(e=Array.prototype.concat.apply([],e.map(function(T){return[T,T]}))),6===e.length&&e.push("F","F");const _=parseInt(e.join(""),16);return{r:_>>24&255,g:_>>16&255,b:_>>8&255,a:255&_,hex:"#"+e.slice(0,6).join("")}}q.getOptions=function(e){e||(e={}),e.color||(e.color={});const T=e.width&&e.width>=21?e.width:void 0;return{width:T,scale:T?4:e.scale||4,margin:typeof e.margin>"u"||null===e.margin||e.margin<0?4:e.margin,color:{dark:m(e.color.dark||"#000000ff"),light:m(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},q.getScale=function(e,_){return _.width&&_.width>=e+2*_.margin?_.width/(e+2*_.margin):_.scale},q.getImageWidth=function(e,_){const T=q.getScale(e,_);return Math.floor((e+2*_.margin)*T)},q.qrToImageData=function(e,_,T){const s=_.modules.size,y=_.modules.data,h=q.getScale(s,T),P=Math.floor((s+2*T.margin)*h),d=T.margin*h,w=[T.color.light,T.color.dark];for(let C=0;C=d&&L>=d&&C{"use strict";var t=65536,T=m(3502).Buffer,s=global.crypto||global.msCrypto;We.exports=s&&s.getRandomValues?function y(h,P){if(h>4294967295)throw new RangeError("requested too many random bytes");var d=T.allocUnsafe(h);if(h>0)if(h>t)for(var w=0;w{"use strict";function t(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var e=m(3502),_=m(3753),T=e.Buffer,s=e.kMaxLength,y=global.crypto||global.msCrypto,h=Math.pow(2,32)-1;function P(D,H){if("number"!=typeof D||D!=D)throw new TypeError("offset must be a number");if(D>h||D<0)throw new TypeError("offset must be a uint32");if(D>s||D>H)throw new RangeError("offset out of range")}function d(D,H,V){if("number"!=typeof D||D!=D)throw new TypeError("size must be a number");if(D>h||D<0)throw new TypeError("size must be a uint32");if(D+H>V||D>s)throw new RangeError("buffer too small")}function C(D,H,V,Y){if(process.browser){var Q=new Uint8Array(D.buffer,H,V);return y.getRandomValues(Q),Y?void process.nextTick(function(){Y(null,D)}):D}if(!Y)return _(V).copy(D,H),D;_(V,function(ee,me){if(ee)return Y(ee);me.copy(D,H),Y(null,D)})}y&&y.getRandomValues||!process.browser?(q.randomFill=function w(D,H,V,Y){if(!(T.isBuffer(D)||D instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof H)Y=H,H=0,V=D.length;else if("function"==typeof V)Y=V,V=D.length-H;else if("function"!=typeof Y)throw new TypeError('"cb" argument must be a function');return P(H,D.length),d(V,H,D.length),C(D,H,V,Y)},q.randomFillSync=function L(D,H,V){if(typeof H>"u"&&(H=0),!(T.isBuffer(D)||D instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return P(H,D.length),void 0===V&&(V=D.length-H),d(V,H,D.length),C(D,H,V)}):(q.randomFill=t,q.randomFillSync=t)},891:We=>{"use strict";var m={};function t(y,h,P){P||(P=Error);var w=function(C){function L(D,H,V){return C.call(this,function d(C,L,D){return"string"==typeof h?h:h(C,L,D)}(D,H,V))||this}return function q(y,h){y.prototype=Object.create(h.prototype),y.prototype.constructor=y,y.__proto__=h}(L,C),L}(P);w.prototype.name=P.name,w.prototype.code=y,m[y]=w}function e(y,h){if(Array.isArray(y)){var P=y.length;return y=y.map(function(d){return String(d)}),P>2?"one of ".concat(h," ").concat(y.slice(0,P-1).join(", "),", or ")+y[P-1]:2===P?"one of ".concat(h," ").concat(y[0]," or ").concat(y[1]):"of ".concat(h," ").concat(y[0])}return"of ".concat(h," ").concat(String(y))}t("ERR_INVALID_OPT_VALUE",function(y,h){return'The value "'+h+'" is invalid for option "'+y+'"'},TypeError),t("ERR_INVALID_ARG_TYPE",function(y,h,P){var d,w;if("string"==typeof h&&function _(y,h,P){return y.substr(!P||P<0?0:+P,h.length)===h}(h,"not ")?(d="must not be",h=h.replace(/^not /,"")):d="must be",function T(y,h,P){return(void 0===P||P>y.length)&&(P=y.length),y.substring(P-h.length,P)===h}(y," argument"))w="The ".concat(y," ").concat(d," ").concat(e(h,"type"));else{var C=function s(y,h,P){return"number"!=typeof P&&(P=0),!(P+h.length>y.length)&&-1!==y.indexOf(h,P)}(y,".")?"property":"argument";w='The "'.concat(y,'" ').concat(C," ").concat(d," ").concat(e(h,"type"))}return w+". Received type ".concat(typeof P)},TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",function(y){return"The "+y+" method is not implemented"}),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",function(y){return"Cannot call "+y+" after a stream was destroyed"}),t("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),t("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),t("ERR_STREAM_WRITE_AFTER_END","write after end"),t("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),t("ERR_UNKNOWN_ENCODING",function(y){return"Unknown encoding: "+y},TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),We.exports.q=m},1339:(We,q,m)=>{"use strict";var t=Object.keys||function(w){var C=[];for(var L in w)C.push(L);return C};We.exports=h;var e=m(3154),_=m(520);m(3894)(h,e);for(var T=t(_.prototype),s=0;s{"use strict";We.exports=e;var t=m(6025);function e(_){if(!(this instanceof e))return new e(_);t.call(this,_)}m(3894)(e,t),e.prototype._transform=function(_,T,s){s(null,_)}},3154:(We,q,m)=>{"use strict";var t;We.exports=M,M.ReadableState=Ce,m(9069);var w,_=function(Fe,De){return Fe.listeners(De).length},T=m(4970),s=m(3172).Buffer,y=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},d=m(4616);w=d&&d.debuglog?d.debuglog("stream"):function(){};var ee,me,re,C=m(5019),L=m(1920),H=m(7102).getHighWaterMark,V=m(891).q,Y=V.ERR_INVALID_ARG_TYPE,j=V.ERR_STREAM_PUSH_AFTER_EOF,Q=V.ERR_METHOD_NOT_IMPLEMENTED,J=V.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;m(3894)(M,T);var ie=L.errorOrDestroy,se=["error","close","destroy","pause","resume"];function Ce(oe,Fe,De){t=t||m(1339),"boolean"!=typeof De&&(De=Fe instanceof t),this.objectMode=!!(oe=oe||{}).objectMode,De&&(this.objectMode=this.objectMode||!!oe.readableObjectMode),this.highWaterMark=H(this,oe,"readableHighWaterMark",De),this.buffer=new C,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!==oe.emitClose,this.autoDestroy=!!oe.autoDestroy,this.destroyed=!1,this.defaultEncoding=oe.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,oe.encoding&&(ee||(ee=m(3054).s),this.decoder=new ee(oe.encoding),this.encoding=oe.encoding)}function M(oe){if(t=t||m(1339),!(this instanceof M))return new M(oe);this._readableState=new Ce(oe,this,this instanceof t),this.readable=!0,oe&&("function"==typeof oe.read&&(this._read=oe.read),"function"==typeof oe.destroy&&(this._destroy=oe.destroy)),T.call(this)}function i(oe,Fe,De,he,Me){w("readableAddChunk",Fe);var Ve,pe=oe._readableState;if(null===Fe)pe.reading=!1,function k(oe,Fe){if(w("onEofChunk"),!Fe.ended){if(Fe.decoder){var De=Fe.decoder.end();De&&De.length&&(Fe.buffer.push(De),Fe.length+=Fe.objectMode?1:De.length)}Fe.ended=!0,Fe.sync?x(oe):(Fe.needReadable=!1,Fe.emittedReadable||(Fe.emittedReadable=!0,n(oe)))}}(oe,pe);else if(Me||(Ve=function f(oe,Fe){var De;return!function P(oe){return s.isBuffer(oe)||oe instanceof y}(Fe)&&"string"!=typeof Fe&&void 0!==Fe&&!oe.objectMode&&(De=new Y("chunk",["string","Buffer","Uint8Array"],Fe)),De}(pe,Fe)),Ve)ie(oe,Ve);else if(pe.objectMode||Fe&&Fe.length>0)if("string"!=typeof Fe&&!pe.objectMode&&Object.getPrototypeOf(Fe)!==s.prototype&&(Fe=function h(oe){return s.from(oe)}(Fe)),he)pe.endEmitted?ie(oe,new J):a(oe,pe,Fe,!0);else if(pe.ended)ie(oe,new j);else{if(pe.destroyed)return!1;pe.reading=!1,pe.decoder&&!De?(Fe=pe.decoder.write(Fe),pe.objectMode||0!==Fe.length?a(oe,pe,Fe,!1):g(oe,pe)):a(oe,pe,Fe,!1)}else he||(pe.reading=!1,g(oe,pe));return!pe.ended&&(pe.lengthFe.highWaterMark&&(Fe.highWaterMark=function v(oe){return oe>=l?oe=l:(oe--,oe|=oe>>>1,oe|=oe>>>2,oe|=oe>>>4,oe|=oe>>>8,oe|=oe>>>16,oe++),oe}(oe)),oe<=Fe.length?oe:Fe.ended?Fe.length:(Fe.needReadable=!0,0))}function x(oe){var Fe=oe._readableState;w("emitReadable",Fe.needReadable,Fe.emittedReadable),Fe.needReadable=!1,Fe.emittedReadable||(w("emitReadable",Fe.flowing),Fe.emittedReadable=!0,process.nextTick(n,oe))}function n(oe){var Fe=oe._readableState;w("emitReadable_",Fe.destroyed,Fe.length,Fe.ended),!Fe.destroyed&&(Fe.length||Fe.ended)&&(oe.emit("readable"),Fe.emittedReadable=!1),Fe.needReadable=!Fe.flowing&&!Fe.ended&&Fe.length<=Fe.highWaterMark,at(oe)}function g(oe,Fe){Fe.readingMore||(Fe.readingMore=!0,process.nextTick(W,oe,Fe))}function W(oe,Fe){for(;!Fe.reading&&!Fe.ended&&(Fe.length0,Fe.resumeScheduled&&!Fe.paused?Fe.flowing=!0:oe.listenerCount("data")>0&&oe.resume()}function ge(oe){w("readable nexttick read 0"),oe.read(0)}function Ue(oe,Fe){w("resume",Fe.reading),Fe.reading||oe.read(0),Fe.resumeScheduled=!1,oe.emit("resume"),at(oe),Fe.flowing&&!Fe.reading&&oe.read(0)}function at(oe){var Fe=oe._readableState;for(w("flow",Fe.flowing);Fe.flowing&&null!==oe.read(););}function ye(oe,Fe){return 0===Fe.length?null:(Fe.objectMode?De=Fe.buffer.shift():!oe||oe>=Fe.length?(De=Fe.decoder?Fe.buffer.join(""):1===Fe.buffer.length?Fe.buffer.first():Fe.buffer.concat(Fe.length),Fe.buffer.clear()):De=Fe.buffer.consume(oe,Fe.decoder),De);var De}function xe(oe){var Fe=oe._readableState;w("endReadable",Fe.endEmitted),Fe.endEmitted||(Fe.ended=!0,process.nextTick(fe,Fe,oe))}function fe(oe,Fe){if(w("endReadableNT",oe.endEmitted,oe.length),!oe.endEmitted&&0===oe.length&&(oe.endEmitted=!0,Fe.readable=!1,Fe.emit("end"),oe.autoDestroy)){var De=Fe._writableState;(!De||De.autoDestroy&&De.finished)&&Fe.destroy()}}function Oe(oe,Fe){for(var De=0,he=oe.length;De=Fe.highWaterMark:Fe.length>0)||Fe.ended))return w("read: emitReadable",Fe.length,Fe.ended),0===Fe.length&&Fe.ended?xe(this):x(this),null;if(0===(oe=I(oe,Fe))&&Fe.ended)return 0===Fe.length&&xe(this),null;var Me,he=Fe.needReadable;return w("need readable",he),(0===Fe.length||Fe.length-oe0?ye(oe,Fe):null)?(Fe.needReadable=Fe.length<=Fe.highWaterMark,oe=0):(Fe.length-=oe,Fe.awaitDrain=0),0===Fe.length&&(Fe.ended||(Fe.needReadable=!0),De!==oe&&Fe.ended&&xe(this)),null!==Me&&this.emit("data",Me),Me},M.prototype._read=function(oe){ie(this,new Q("_read()"))},M.prototype.pipe=function(oe,Fe){var De=this,he=this._readableState;switch(he.pipesCount){case 0:he.pipes=oe;break;case 1:he.pipes=[he.pipes,oe];break;default:he.pipes.push(oe)}he.pipesCount+=1,w("pipe count=%d opts=%j",he.pipesCount,Fe);var pe=Fe&&!1===Fe.end||oe===process.stdout||oe===process.stderr?Ge:Qe;function Qe(){w("onend"),oe.end()}he.endEmitted?process.nextTick(pe):De.once("end",pe),oe.on("unpipe",function Ve(yt,be){w("onunpipe"),yt===De&&be&&!1===be.hasUnpiped&&(be.hasUnpiped=!0,function rt(){w("cleanup"),oe.removeListener("close",Ut),oe.removeListener("finish",ht),oe.removeListener("drain",Pe),oe.removeListener("error",lt),oe.removeListener("unpipe",Ve),De.removeListener("end",Qe),De.removeListener("end",Ge),De.removeListener("data",Ke),de=!0,he.awaitDrain&&(!oe._writableState||oe._writableState.needDrain)&&Pe()}())});var Pe=function O(oe){return function(){var De=oe._readableState;w("pipeOnDrain",De.awaitDrain),De.awaitDrain&&De.awaitDrain--,0===De.awaitDrain&&_(oe,"data")&&(De.flowing=!0,at(oe))}}(De);oe.on("drain",Pe);var de=!1;function Ke(yt){w("ondata");var be=oe.write(yt);w("dest.write",be),!1===be&&((1===he.pipesCount&&he.pipes===oe||he.pipesCount>1&&-1!==Oe(he.pipes,oe))&&!de&&(w("false write response, pause",he.awaitDrain),he.awaitDrain++),De.pause())}function lt(yt){w("onerror",yt),Ge(),oe.removeListener("error",lt),0===_(oe,"error")&&ie(oe,yt)}function Ut(){oe.removeListener("finish",ht),Ge()}function ht(){w("onfinish"),oe.removeListener("close",Ut),Ge()}function Ge(){w("unpipe"),De.unpipe(oe)}return De.on("data",Ke),function ce(oe,Fe,De){if("function"==typeof oe.prependListener)return oe.prependListener(Fe,De);oe._events&&oe._events[Fe]?Array.isArray(oe._events[Fe])?oe._events[Fe].unshift(De):oe._events[Fe]=[De,oe._events[Fe]]:oe.on(Fe,De)}(oe,"error",lt),oe.once("close",Ut),oe.once("finish",ht),oe.emit("pipe",De),he.flowing||(w("pipe resume"),De.resume()),oe},M.prototype.unpipe=function(oe){var Fe=this._readableState,De={hasUnpiped:!1};if(0===Fe.pipesCount)return this;if(1===Fe.pipesCount)return oe&&oe!==Fe.pipes||(oe||(oe=Fe.pipes),Fe.pipes=null,Fe.pipesCount=0,Fe.flowing=!1,oe&&oe.emit("unpipe",this,De)),this;if(!oe){var he=Fe.pipes,Me=Fe.pipesCount;Fe.pipes=null,Fe.pipesCount=0,Fe.flowing=!1;for(var pe=0;pe0,!1!==he.flowing&&this.resume()):"readable"===oe&&!he.endEmitted&&!he.readableListening&&(he.readableListening=he.needReadable=!0,he.flowing=!1,he.emittedReadable=!1,w("on readable",he.length,he.reading),he.length?x(this):he.reading||process.nextTick(ge,this)),De},M.prototype.removeListener=function(oe,Fe){var De=T.prototype.removeListener.call(this,oe,Fe);return"readable"===oe&&process.nextTick(G,this),De},M.prototype.removeAllListeners=function(oe){var Fe=T.prototype.removeAllListeners.apply(this,arguments);return("readable"===oe||void 0===oe)&&process.nextTick(G,this),Fe},M.prototype.resume=function(){var oe=this._readableState;return oe.flowing||(w("resume"),oe.flowing=!oe.readableListening,function nt(oe,Fe){Fe.resumeScheduled||(Fe.resumeScheduled=!0,process.nextTick(Ue,oe,Fe))}(this,oe)),oe.paused=!1,this},M.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},M.prototype.wrap=function(oe){var Fe=this,De=this._readableState,he=!1;for(var Me in oe.on("end",function(){if(w("wrapped end"),De.decoder&&!De.ended){var Ve=De.decoder.end();Ve&&Ve.length&&Fe.push(Ve)}Fe.push(null)}),oe.on("data",function(Ve){w("wrapped data"),De.decoder&&(Ve=De.decoder.write(Ve)),De.objectMode&&null==Ve||!(De.objectMode||Ve&&Ve.length)||Fe.push(Ve)||(he=!0,oe.pause())}),oe)void 0===this[Me]&&"function"==typeof oe[Me]&&(this[Me]=function(Qe){return function(){return oe[Qe].apply(oe,arguments)}}(Me));for(var pe=0;pe{"use strict";We.exports=P;var t=m(891).q,e=t.ERR_METHOD_NOT_IMPLEMENTED,_=t.ERR_MULTIPLE_CALLBACK,T=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=t.ERR_TRANSFORM_WITH_LENGTH_0,y=m(1339);function h(C,L){var D=this._transformState;D.transforming=!1;var H=D.writecb;if(null===H)return this.emit("error",new _);D.writechunk=null,D.writecb=null,null!=L&&this.push(L),H(C);var V=this._readableState;V.reading=!1,(V.needReadable||V.length{"use strict";function e(at){var ye=this;this.next=null,this.entry=null,this.finish=function(){!function Ue(at,ye,xe){var fe=at.entry;for(at.entry=null;fe;){var Oe=fe.callback;ye.pendingcb--,Oe(xe),fe=fe.next}ye.corkedRequestsFree.next=at}(ye,at)}}var _;We.exports=Ce,Ce.WritableState=se;var ce,T={deprecate:m(4364)},s=m(4970),y=m(3172).Buffer,h=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},w=m(1920),L=m(7102).getHighWaterMark,D=m(891).q,H=D.ERR_INVALID_ARG_TYPE,V=D.ERR_METHOD_NOT_IMPLEMENTED,Y=D.ERR_MULTIPLE_CALLBACK,j=D.ERR_STREAM_CANNOT_PIPE,Q=D.ERR_STREAM_DESTROYED,J=D.ERR_STREAM_NULL_VALUES,ee=D.ERR_STREAM_WRITE_AFTER_END,me=D.ERR_UNKNOWN_ENCODING,re=w.errorOrDestroy;function ie(){}function se(at,ye,xe){_=_||m(1339),"boolean"!=typeof xe&&(xe=ye instanceof _),this.objectMode=!!(at=at||{}).objectMode,xe&&(this.objectMode=this.objectMode||!!at.writableObjectMode),this.highWaterMark=L(this,at,"writableHighWaterMark",xe),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===at.decodeStrings),this.defaultEncoding=at.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Oe){!function k(at,ye){var xe=at._writableState,fe=xe.sync,Oe=xe.writecb;if("function"!=typeof Oe)throw new Y;if(function I(at){at.writing=!1,at.writecb=null,at.length-=at.writelen,at.writelen=0}(xe),ye)!function v(at,ye,xe,fe,Oe){--ye.pendingcb,xe?(process.nextTick(Oe,fe),process.nextTick(ge,at,ye),at._writableState.errorEmitted=!0,re(at,fe)):(Oe(fe),at._writableState.errorEmitted=!0,re(at,fe),ge(at,ye))}(at,xe,fe,ye,Oe);else{var oe=W(xe)||at.destroyed;!oe&&!xe.corked&&!xe.bufferProcessing&&xe.bufferedRequest&&g(at,xe),fe?process.nextTick(x,at,xe,oe,Oe):x(at,xe,oe,Oe)}}(ye,Oe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==at.emitClose,this.autoDestroy=!!at.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function Ce(at){var ye=this instanceof(_=_||m(1339));if(!ye&&!ce.call(Ce,this))return new Ce(at);this._writableState=new se(at,this,ye),this.writable=!0,at&&("function"==typeof at.write&&(this._write=at.write),"function"==typeof at.writev&&(this._writev=at.writev),"function"==typeof at.destroy&&(this._destroy=at.destroy),"function"==typeof at.final&&(this._final=at.final)),s.call(this)}function l(at,ye,xe,fe,Oe,oe,Fe){ye.writelen=fe,ye.writecb=Fe,ye.writing=!0,ye.sync=!0,ye.destroyed?ye.onwrite(new Q("write")):xe?at._writev(Oe,ye.onwrite):at._write(Oe,oe,ye.onwrite),ye.sync=!1}function x(at,ye,xe,fe){xe||function n(at,ye){0===ye.length&&ye.needDrain&&(ye.needDrain=!1,at.emit("drain"))}(at,ye),ye.pendingcb--,fe(),ge(at,ye)}function g(at,ye){ye.bufferProcessing=!0;var xe=ye.bufferedRequest;if(at._writev&&xe&&xe.next){var Oe=new Array(ye.bufferedRequestCount),oe=ye.corkedRequestsFree;oe.entry=xe;for(var Fe=0,De=!0;xe;)Oe[Fe]=xe,xe.isBuf||(De=!1),xe=xe.next,Fe+=1;Oe.allBuffers=De,l(at,ye,!0,ye.length,Oe,"",oe.finish),ye.pendingcb++,ye.lastBufferedRequest=null,oe.next?(ye.corkedRequestsFree=oe.next,oe.next=null):ye.corkedRequestsFree=new e(ye),ye.bufferedRequestCount=0}else{for(;xe;){var he=xe.chunk;if(l(at,ye,!1,ye.objectMode?1:he.length,he,xe.encoding,xe.callback),xe=xe.next,ye.bufferedRequestCount--,ye.writing)break}null===xe&&(ye.lastBufferedRequest=null)}ye.bufferedRequest=xe,ye.bufferProcessing=!1}function W(at){return at.ending&&0===at.length&&null===at.bufferedRequest&&!at.finished&&!at.writing}function O(at,ye){at._final(function(xe){ye.pendingcb--,xe&&re(at,xe),ye.prefinished=!0,at.emit("prefinish"),ge(at,ye)})}function ge(at,ye){var xe=W(ye);if(xe&&(function G(at,ye){!ye.prefinished&&!ye.finalCalled&&("function"!=typeof at._final||ye.destroyed?(ye.prefinished=!0,at.emit("prefinish")):(ye.pendingcb++,ye.finalCalled=!0,process.nextTick(O,at,ye)))}(at,ye),0===ye.pendingcb&&(ye.finished=!0,at.emit("finish"),ye.autoDestroy))){var fe=at._readableState;(!fe||fe.autoDestroy&&fe.endEmitted)&&at.destroy()}return xe}m(3894)(Ce,s),se.prototype.getBuffer=function(){for(var ye=this.bufferedRequest,xe=[];ye;)xe.push(ye),ye=ye.next;return xe},function(){try{Object.defineProperty(se.prototype,"buffer",{get:T.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(ce=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ce,Symbol.hasInstance,{value:function(ye){return!!ce.call(this,ye)||this===Ce&&ye&&ye._writableState instanceof se}})):ce=function(ye){return ye instanceof this},Ce.prototype.pipe=function(){re(this,new j)},Ce.prototype.write=function(at,ye,xe){var fe=this._writableState,Oe=!1,oe=!fe.objectMode&&function d(at){return y.isBuffer(at)||at instanceof h}(at);return oe&&!y.isBuffer(at)&&(at=function P(at){return y.from(at)}(at)),"function"==typeof ye&&(xe=ye,ye=null),oe?ye="buffer":ye||(ye=fe.defaultEncoding),"function"!=typeof xe&&(xe=ie),fe.ending?function M(at,ye){var xe=new ee;re(at,xe),process.nextTick(ye,xe)}(this,xe):(oe||function i(at,ye,xe,fe){var Oe;return null===xe?Oe=new J:"string"!=typeof xe&&!ye.objectMode&&(Oe=new H("chunk",["string","Buffer"],xe)),!Oe||(re(at,Oe),process.nextTick(fe,Oe),!1)}(this,fe,at,xe))&&(fe.pendingcb++,Oe=function f(at,ye,xe,fe,Oe,oe){if(!xe){var Fe=function a(at,ye,xe){return!at.objectMode&&!1!==at.decodeStrings&&"string"==typeof ye&&(ye=y.from(ye,xe)),ye}(ye,fe,Oe);fe!==Fe&&(xe=!0,Oe="buffer",fe=Fe)}var De=ye.objectMode?1:fe.length;ye.length+=De;var he=ye.length-1))throw new me(ye);return this._writableState.defaultEncoding=ye,this},Object.defineProperty(Ce.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(Ce.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Ce.prototype._write=function(at,ye,xe){xe(new V("_write()"))},Ce.prototype._writev=null,Ce.prototype.end=function(at,ye,xe){var fe=this._writableState;return"function"==typeof at?(xe=at,at=null,ye=null):"function"==typeof ye&&(xe=ye,ye=null),null!=at&&this.write(at,ye),fe.corked&&(fe.corked=1,this.uncork()),fe.ending||function nt(at,ye,xe){ye.ending=!0,ge(at,ye),xe&&(ye.finished?process.nextTick(xe):at.once("finish",xe)),ye.ended=!0,at.writable=!1}(this,fe,xe),this},Object.defineProperty(Ce.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(Ce.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(ye){this._writableState&&(this._writableState.destroyed=ye)}}),Ce.prototype.destroy=w.destroy,Ce.prototype._undestroy=w.undestroy,Ce.prototype._destroy=function(at,ye){ye(at)}},3872:(We,q,m)=>{"use strict";var t;function e(ee,me,re){return me=function _(ee){var me=function T(ee,me){if("object"!=typeof ee||null===ee)return ee;var re=ee[Symbol.toPrimitive];if(void 0!==re){var ie=re.call(ee,me||"default");if("object"!=typeof ie)return ie;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===me?String:Number)(ee)}(ee,"string");return"symbol"==typeof me?me:String(me)}(me),me in ee?Object.defineProperty(ee,me,{value:re,enumerable:!0,configurable:!0,writable:!0}):ee[me]=re,ee}var s=m(7542),y=Symbol("lastResolve"),h=Symbol("lastReject"),P=Symbol("error"),d=Symbol("ended"),w=Symbol("lastPromise"),C=Symbol("handlePromise"),L=Symbol("stream");function D(ee,me){return{value:ee,done:me}}function H(ee){var me=ee[y];if(null!==me){var re=ee[L].read();null!==re&&(ee[w]=null,ee[y]=null,ee[h]=null,me(D(re,!1)))}}function V(ee){process.nextTick(H,ee)}var j=Object.getPrototypeOf(function(){}),Q=Object.setPrototypeOf((e(t={get stream(){return this[L]},next:function(){var me=this,re=this[P];if(null!==re)return Promise.reject(re);if(this[d])return Promise.resolve(D(void 0,!0));if(this[L].destroyed)return new Promise(function(Ce,M){process.nextTick(function(){me[P]?M(me[P]):Ce(D(void 0,!0))})});var se,ie=this[w];if(ie)se=new Promise(function Y(ee,me){return function(re,ie){ee.then(function(){me[d]?re(D(void 0,!0)):me[C](re,ie)},ie)}}(ie,this));else{var ce=this[L].read();if(null!==ce)return Promise.resolve(D(ce,!1));se=new Promise(this[C])}return this[w]=se,se}},Symbol.asyncIterator,function(){return this}),e(t,"return",function(){var me=this;return new Promise(function(re,ie){me[L].destroy(null,function(se){se?ie(se):re(D(void 0,!0))})})}),t),j);We.exports=function(me){var re,ie=Object.create(Q,(e(re={},L,{value:me,writable:!0}),e(re,y,{value:null,writable:!0}),e(re,h,{value:null,writable:!0}),e(re,P,{value:null,writable:!0}),e(re,d,{value:me._readableState.endEmitted,writable:!0}),e(re,C,{value:function(ce,Ce){var M=ie[L].read();M?(ie[w]=null,ie[y]=null,ie[h]=null,ce(D(M,!1))):(ie[y]=ce,ie[h]=Ce)},writable:!0}),re));return ie[w]=null,s(me,function(se){if(se&&"ERR_STREAM_PREMATURE_CLOSE"!==se.code){var ce=ie[h];return null!==ce&&(ie[w]=null,ie[y]=null,ie[h]=null,ce(se)),void(ie[P]=se)}var Ce=ie[y];null!==Ce&&(ie[w]=null,ie[y]=null,ie[h]=null,Ce(D(void 0,!0))),ie[d]=!0}),me.on("readable",V.bind(null,ie)),ie}},5019:(We,q,m)=>{"use strict";function t(V,Y){var j=Object.keys(V);if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(V);Y&&(Q=Q.filter(function(J){return Object.getOwnPropertyDescriptor(V,J).enumerable})),j.push.apply(j,Q)}return j}function e(V){for(var Y=1;Y0?this.tail.next=Q:this.head=Q,this.tail=Q,++this.length}},{key:"unshift",value:function(j){var Q={data:j,next:this.head};0===this.length&&(this.tail=Q),this.head=Q,++this.length}},{key:"shift",value:function(){if(0!==this.length){var j=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,j}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(j){if(0===this.length)return"";for(var Q=this.head,J=""+Q.data;Q=Q.next;)J+=j+Q.data;return J}},{key:"concat",value:function(j){if(0===this.length)return w.alloc(0);for(var Q=w.allocUnsafe(j>>>0),J=this.head,ee=0;J;)H(J.data,Q,ee),ee+=J.data.length,J=J.next;return Q}},{key:"consume",value:function(j,Q){var J;return jme.length?me.length:j;if(ee+=re===me.length?me:me.slice(0,j),0==(j-=re)){re===me.length?(++J,this.head=Q.next?Q.next:this.tail=null):(this.head=Q,Q.data=me.slice(re));break}++J}return this.length-=J,ee}},{key:"_getBuffer",value:function(j){var Q=w.allocUnsafe(j),J=this.head,ee=1;for(J.data.copy(Q),j-=J.data.length;J=J.next;){var me=J.data,re=j>me.length?me.length:j;if(me.copy(Q,Q.length-j,0,re),0==(j-=re)){re===me.length?(++ee,this.head=J.next?J.next:this.tail=null):(this.head=J,J.data=me.slice(re));break}++ee}return this.length-=ee,Q}},{key:D,value:function(j,Q){return L(this,e(e({},Q),{},{depth:0,customInspect:!1}))}}]),V}()},1920:We=>{"use strict";function m(s,y){_(s,y),t(s)}function t(s){s._writableState&&!s._writableState.emitClose||s._readableState&&!s._readableState.emitClose||s.emit("close")}function _(s,y){s.emit("error",y)}We.exports={destroy:function q(s,y){var h=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(y?y(s):s&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(_,this,s)):process.nextTick(_,this,s)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(s||null,function(w){!y&&w?h._writableState?h._writableState.errorEmitted?process.nextTick(t,h):(h._writableState.errorEmitted=!0,process.nextTick(m,h,w)):process.nextTick(m,h,w):y?(process.nextTick(t,h),y(w)):process.nextTick(t,h)}),this)},undestroy:function e(){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 T(s,y){var h=s._readableState,P=s._writableState;h&&h.autoDestroy||P&&P.autoDestroy?s.destroy(y):s.emit("error",y)}}},7542:(We,q,m)=>{"use strict";var t=m(891).q.ERR_STREAM_PREMATURE_CLOSE;function _(){}We.exports=function s(y,h,P){if("function"==typeof h)return s(y,null,h);h||(h={}),P=function e(y){var h=!1;return function(){if(!h){h=!0;for(var P=arguments.length,d=new Array(P),w=0;w{We.exports=function(){throw new Error("Readable.from is not available in the browser")}},954:(We,q,m)=>{"use strict";var t,_=m(891).q,T=_.ERR_MISSING_ARGS,s=_.ERR_STREAM_DESTROYED;function y(D){if(D)throw D}function d(D){D()}function w(D,H){return D.pipe(H)}We.exports=function L(){for(var D=arguments.length,H=new Array(D),V=0;V0,function(ie){j||(j=ie),ie&&Q.forEach(d),!me&&(Q.forEach(d),Y(j))})});return H.reduce(w)}},7102:(We,q,m)=>{"use strict";var t=m(891).q.ERR_INVALID_OPT_VALUE;We.exports={getHighWaterMark:function _(T,s,y,h){var P=function e(T,s,y){return null!=T.highWaterMark?T.highWaterMark:s?T[y]:null}(s,h,y);if(null!=P){if(!isFinite(P)||Math.floor(P)!==P||P<0)throw new t(h?y:"highWaterMark",P);return Math.floor(P)}return T.objectMode?16:16384}}},4970:(We,q,m)=>{We.exports=m(9069).EventEmitter},5685:(We,q,m)=>{(q=We.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)},5126:We=>{"use strict";function q(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}We.exports=function m(e){return(e=e||{}).circles?function t(e){var _=[],T=[];return e.proto?function h(P){if("object"!=typeof P||null===P)return P;if(P instanceof Date)return new Date(P);if(Array.isArray(P))return s(P,h);if(P instanceof Map)return new Map(s(Array.from(P),h));if(P instanceof Set)return new Set(s(Array.from(P),h));var d={};for(var w in _.push(P),T.push(d),P){var C=P[w];if("object"!=typeof C||null===C)d[w]=C;else if(C instanceof Date)d[w]=new Date(C);else if(C instanceof Map)d[w]=new Map(s(Array.from(C),h));else if(C instanceof Set)d[w]=new Set(s(Array.from(C),h));else if(ArrayBuffer.isView(C))d[w]=q(C);else{var L=_.indexOf(C);d[w]=-1!==L?T[L]:h(C)}}return _.pop(),T.pop(),d}:function y(P){if("object"!=typeof P||null===P)return P;if(P instanceof Date)return new Date(P);if(Array.isArray(P))return s(P,y);if(P instanceof Map)return new Map(s(Array.from(P),y));if(P instanceof Set)return new Set(s(Array.from(P),y));var d={};for(var w in _.push(P),T.push(d),P)if(!1!==Object.hasOwnProperty.call(P,w)){var C=P[w];if("object"!=typeof C||null===C)d[w]=C;else if(C instanceof Date)d[w]=new Date(C);else if(C instanceof Map)d[w]=new Map(s(Array.from(C),y));else if(C instanceof Set)d[w]=new Set(s(Array.from(C),y));else if(ArrayBuffer.isView(C))d[w]=q(C);else{var L=_.indexOf(C);d[w]=-1!==L?T[L]:y(C)}}return _.pop(),T.pop(),d};function s(P,d){for(var w=Object.keys(P),C=new Array(w.length),L=0;L{"use strict";var t=m(3172).Buffer,e=m(3894),_=m(9650),T=new Array(16),s=[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],y=[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],h=[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],P=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],d=[0,1518500249,1859775393,2400959708,2840853838],w=[1352829926,1548603684,1836072691,2053994217,0];function C(){_.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function L(Q,J){return Q<>>32-J}function D(Q,J,ee,me,re,ie,se,ce){return L(Q+(J^ee^me)+ie+se|0,ce)+re|0}function H(Q,J,ee,me,re,ie,se,ce){return L(Q+(J&ee|~J&me)+ie+se|0,ce)+re|0}function V(Q,J,ee,me,re,ie,se,ce){return L(Q+((J|~ee)^me)+ie+se|0,ce)+re|0}function Y(Q,J,ee,me,re,ie,se,ce){return L(Q+(J&me|ee&~me)+ie+se|0,ce)+re|0}function j(Q,J,ee,me,re,ie,se,ce){return L(Q+(J^(ee|~me))+ie+se|0,ce)+re|0}e(C,_),C.prototype._update=function(){for(var Q=T,J=0;J<16;++J)Q[J]=this._block.readInt32LE(4*J);for(var ee=0|this._a,me=0|this._b,re=0|this._c,ie=0|this._d,se=0|this._e,ce=0|this._a,Ce=0|this._b,M=0|this._c,i=0|this._d,a=0|this._e,f=0;f<80;f+=1){var l,v;f<16?(l=D(ee,me,re,ie,se,Q[s[f]],d[0],h[f]),v=j(ce,Ce,M,i,a,Q[y[f]],w[0],P[f])):f<32?(l=H(ee,me,re,ie,se,Q[s[f]],d[1],h[f]),v=Y(ce,Ce,M,i,a,Q[y[f]],w[1],P[f])):f<48?(l=V(ee,me,re,ie,se,Q[s[f]],d[2],h[f]),v=V(ce,Ce,M,i,a,Q[y[f]],w[2],P[f])):f<64?(l=Y(ee,me,re,ie,se,Q[s[f]],d[3],h[f]),v=H(ce,Ce,M,i,a,Q[y[f]],w[3],P[f])):(l=j(ee,me,re,ie,se,Q[s[f]],d[4],h[f]),v=D(ce,Ce,M,i,a,Q[y[f]],w[4],P[f])),ee=se,se=ie,ie=L(re,10),re=me,me=l,ce=a,a=i,i=L(M,10),M=Ce,Ce=v}var I=this._b+re+i|0;this._b=this._c+ie+a|0,this._c=this._d+se+ce|0,this._d=this._e+ee+Ce|0,this._e=this._a+me+M|0,this._a=I},C.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 Q=t.alloc?t.alloc(20):new t(20);return Q.writeInt32LE(this._a,0),Q.writeInt32LE(this._b,4),Q.writeInt32LE(this._c,8),Q.writeInt32LE(this._d,12),Q.writeInt32LE(this._e,16),Q},We.exports=C},1135:(We,q,m)=>{"use strict";m.d(q,{X:()=>e});var t=m(7579);class e extends t.x{constructor(T){super(),this._value=T}get value(){return this.getValue()}_subscribe(T){const s=super._subscribe(T);return!s.closed&&T.next(this._value),s}getValue(){const{hasError:T,thrownError:s,_value:y}=this;if(T)throw s;return this._throwIfClosed(),y}next(T){super.next(this._value=T)}}},9751:(We,q,m)=>{"use strict";m.d(q,{y:()=>P});var t=m(930),e=m(727),_=m(8822),T=m(9635),s=m(2416),y=m(576),h=m(2806);let P=(()=>{class L{constructor(H){H&&(this._subscribe=H)}lift(H){const V=new L;return V.source=this,V.operator=H,V}subscribe(H,V,Y){const j=function C(L){return L&&L instanceof t.Lv||function w(L){return L&&(0,y.m)(L.next)&&(0,y.m)(L.error)&&(0,y.m)(L.complete)}(L)&&(0,e.Nn)(L)}(H)?H:new t.Hp(H,V,Y);return(0,h.x)(()=>{const{operator:Q,source:J}=this;j.add(Q?Q.call(j,J):J?this._subscribe(j):this._trySubscribe(j))}),j}_trySubscribe(H){try{return this._subscribe(H)}catch(V){H.error(V)}}forEach(H,V){return new(V=d(V))((Y,j)=>{const Q=new t.Hp({next:J=>{try{H(J)}catch(ee){j(ee),Q.unsubscribe()}},error:j,complete:Y});this.subscribe(Q)})}_subscribe(H){var V;return null===(V=this.source)||void 0===V?void 0:V.subscribe(H)}[_.L](){return this}pipe(...H){return(0,T.U)(H)(this)}toPromise(H){return new(H=d(H))((V,Y)=>{let j;this.subscribe(Q=>j=Q,Q=>Y(Q),()=>V(j))})}}return L.create=D=>new L(D),L})();function d(L){var D;return null!==(D=L??s.v.Promise)&&void 0!==D?D:Promise}},4707:(We,q,m)=>{"use strict";m.d(q,{t:()=>_});var t=m(7579),e=m(6063);class _ extends t.x{constructor(s=1/0,y=1/0,h=e.l){super(),this._bufferSize=s,this._windowTime=y,this._timestampProvider=h,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=y===1/0,this._bufferSize=Math.max(1,s),this._windowTime=Math.max(1,y)}next(s){const{isStopped:y,_buffer:h,_infiniteTimeWindow:P,_timestampProvider:d,_windowTime:w}=this;y||(h.push(s),!P&&h.push(d.now()+w)),this._trimBuffer(),super.next(s)}_subscribe(s){this._throwIfClosed(),this._trimBuffer();const y=this._innerSubscribe(s),{_infiniteTimeWindow:h,_buffer:P}=this,d=P.slice();for(let w=0;w{"use strict";m.d(q,{u:()=>P,x:()=>h});var t=m(9751),e=m(727);const T=(0,m(3888).d)(d=>function(){d(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var s=m(8737),y=m(2806);let h=(()=>{class d extends t.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(C){const L=new P(this,this);return L.operator=C,L}_throwIfClosed(){if(this.closed)throw new T}next(C){(0,y.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const L of this.currentObservers)L.next(C)}})}error(C){(0,y.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=C;const{observers:L}=this;for(;L.length;)L.shift().error(C)}})}complete(){(0,y.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:C}=this;for(;C.length;)C.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var C;return(null===(C=this.observers)||void 0===C?void 0:C.length)>0}_trySubscribe(C){return this._throwIfClosed(),super._trySubscribe(C)}_subscribe(C){return this._throwIfClosed(),this._checkFinalizedStatuses(C),this._innerSubscribe(C)}_innerSubscribe(C){const{hasError:L,isStopped:D,observers:H}=this;return L||D?e.Lc:(this.currentObservers=null,H.push(C),new e.w0(()=>{this.currentObservers=null,(0,s.P)(H,C)}))}_checkFinalizedStatuses(C){const{hasError:L,thrownError:D,isStopped:H}=this;L?C.error(D):H&&C.complete()}asObservable(){const C=new t.y;return C.source=this,C}}return d.create=(w,C)=>new P(w,C),d})();class P extends h{constructor(w,C){super(),this.destination=w,this.source=C}next(w){var C,L;null===(L=null===(C=this.destination)||void 0===C?void 0:C.next)||void 0===L||L.call(C,w)}error(w){var C,L;null===(L=null===(C=this.destination)||void 0===C?void 0:C.error)||void 0===L||L.call(C,w)}complete(){var w,C;null===(C=null===(w=this.destination)||void 0===w?void 0:w.complete)||void 0===C||C.call(w)}_subscribe(w){var C,L;return null!==(L=null===(C=this.source)||void 0===C?void 0:C.subscribe(w))&&void 0!==L?L:e.Lc}}},930:(We,q,m)=>{"use strict";m.d(q,{Hp:()=>Y,Lv:()=>L});var t=m(576),e=m(727),_=m(2416),T=m(7849),s=m(5032);const y=d("C",void 0,void 0);function d(me,re,ie){return{kind:me,value:re,error:ie}}var w=m(3410),C=m(2806);class L extends e.w0{constructor(re){super(),this.isStopped=!1,re?(this.destination=re,(0,e.Nn)(re)&&re.add(this)):this.destination=ee}static create(re,ie,se){return new Y(re,ie,se)}next(re){this.isStopped?J(function P(me){return d("N",me,void 0)}(re),this):this._next(re)}error(re){this.isStopped?J(function h(me){return d("E",void 0,me)}(re),this):(this.isStopped=!0,this._error(re))}complete(){this.isStopped?J(y,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(re){this.destination.next(re)}_error(re){try{this.destination.error(re)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const D=Function.prototype.bind;function H(me,re){return D.call(me,re)}class V{constructor(re){this.partialObserver=re}next(re){const{partialObserver:ie}=this;if(ie.next)try{ie.next(re)}catch(se){j(se)}}error(re){const{partialObserver:ie}=this;if(ie.error)try{ie.error(re)}catch(se){j(se)}else j(re)}complete(){const{partialObserver:re}=this;if(re.complete)try{re.complete()}catch(ie){j(ie)}}}class Y extends L{constructor(re,ie,se){let ce;if(super(),(0,t.m)(re)||!re)ce={next:re??void 0,error:ie??void 0,complete:se??void 0};else{let Ce;this&&_.v.useDeprecatedNextContext?(Ce=Object.create(re),Ce.unsubscribe=()=>this.unsubscribe(),ce={next:re.next&&H(re.next,Ce),error:re.error&&H(re.error,Ce),complete:re.complete&&H(re.complete,Ce)}):ce=re}this.destination=new V(ce)}}function j(me){_.v.useDeprecatedSynchronousErrorHandling?(0,C.O)(me):(0,T.h)(me)}function J(me,re){const{onStoppedNotification:ie}=_.v;ie&&w.z.setTimeout(()=>ie(me,re))}const ee={closed:!0,next:s.Z,error:function Q(me){throw me},complete:s.Z}},727:(We,q,m)=>{"use strict";m.d(q,{Lc:()=>y,w0:()=>s,Nn:()=>h});var t=m(576);const _=(0,m(3888).d)(d=>function(C){d(this),this.message=C?`${C.length} errors occurred during unsubscription:\n${C.map((L,D)=>`${D+1}) ${L.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=C});var T=m(8737);class s{constructor(w){this.initialTeardown=w,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let w;if(!this.closed){this.closed=!0;const{_parentage:C}=this;if(C)if(this._parentage=null,Array.isArray(C))for(const H of C)H.remove(this);else C.remove(this);const{initialTeardown:L}=this;if((0,t.m)(L))try{L()}catch(H){w=H instanceof _?H.errors:[H]}const{_finalizers:D}=this;if(D){this._finalizers=null;for(const H of D)try{P(H)}catch(V){w=w??[],V instanceof _?w=[...w,...V.errors]:w.push(V)}}if(w)throw new _(w)}}add(w){var C;if(w&&w!==this)if(this.closed)P(w);else{if(w instanceof s){if(w.closed||w._hasParent(this))return;w._addParent(this)}(this._finalizers=null!==(C=this._finalizers)&&void 0!==C?C:[]).push(w)}}_hasParent(w){const{_parentage:C}=this;return C===w||Array.isArray(C)&&C.includes(w)}_addParent(w){const{_parentage:C}=this;this._parentage=Array.isArray(C)?(C.push(w),C):C?[C,w]:w}_removeParent(w){const{_parentage:C}=this;C===w?this._parentage=null:Array.isArray(C)&&(0,T.P)(C,w)}remove(w){const{_finalizers:C}=this;C&&(0,T.P)(C,w),w instanceof s&&w._removeParent(this)}}s.EMPTY=(()=>{const d=new s;return d.closed=!0,d})();const y=s.EMPTY;function h(d){return d instanceof s||d&&"closed"in d&&(0,t.m)(d.remove)&&(0,t.m)(d.add)&&(0,t.m)(d.unsubscribe)}function P(d){(0,t.m)(d)?d():d.unsubscribe()}},2416:(We,q,m)=>{"use strict";m.d(q,{v:()=>t});const t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4033:(We,q,m)=>{"use strict";m.d(q,{c:()=>y});var t=m(9751),e=m(727),_=m(8343),T=m(5403),s=m(4482);class y extends t.y{constructor(P,d){super(),this.source=P,this.subjectFactory=d,this._subject=null,this._refCount=0,this._connection=null,(0,s.A)(P)&&(this.lift=P.lift)}_subscribe(P){return this.getSubject().subscribe(P)}getSubject(){const P=this._subject;return(!P||P.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:P}=this;this._subject=this._connection=null,P?.unsubscribe()}connect(){let P=this._connection;if(!P){P=this._connection=new e.w0;const d=this.getSubject();P.add(this.source.subscribe((0,T.x)(d,void 0,()=>{this._teardown(),d.complete()},w=>{this._teardown(),d.error(w)},()=>this._teardown()))),P.closed&&(this._connection=null,P=e.w0.EMPTY)}return P}refCount(){return(0,_.x)()(this)}}},9841:(We,q,m)=>{"use strict";m.d(q,{a:()=>w});var t=m(9751),e=m(4742),_=m(457),T=m(4671),s=m(3268),y=m(3269),h=m(1810),P=m(5403),d=m(9672);function w(...D){const H=(0,y.yG)(D),V=(0,y.jO)(D),{args:Y,keys:j}=(0,e.D)(D);if(0===Y.length)return(0,_.D)([],H);const Q=new t.y(function C(D,H,V=T.y){return Y=>{L(H,()=>{const{length:j}=D,Q=new Array(j);let J=j,ee=j;for(let me=0;me{const re=(0,_.D)(D[me],H);let ie=!1;re.subscribe((0,P.x)(Y,se=>{Q[me]=se,ie||(ie=!0,ee--),ee||Y.next(V(Q.slice()))},()=>{--J||Y.complete()}))},Y)},Y)}}(Y,H,j?J=>(0,h.n)(j,J):T.y));return V?Q.pipe((0,s.Z)(V)):Q}function L(D,H,V){D?(0,d.f)(V,D,H):H()}},7272:(We,q,m)=>{"use strict";m.d(q,{z:()=>s});var t=m(8189),_=m(3269),T=m(457);function s(...y){return function e(){return(0,t.J)(1)}()((0,T.D)(y,(0,_.yG)(y)))}},9770:(We,q,m)=>{"use strict";m.d(q,{P:()=>_});var t=m(9751),e=m(8421);function _(T){return new t.y(s=>{(0,e.Xf)(T()).subscribe(s)})}},515:(We,q,m)=>{"use strict";m.d(q,{E:()=>e});const e=new(m(9751).y)(s=>s.complete())},4128:(We,q,m)=>{"use strict";m.d(q,{D:()=>P});var t=m(9751),e=m(4742),_=m(8421),T=m(3269),s=m(5403),y=m(3268),h=m(1810);function P(...d){const w=(0,T.jO)(d),{args:C,keys:L}=(0,e.D)(d),D=new t.y(H=>{const{length:V}=C;if(!V)return void H.complete();const Y=new Array(V);let j=V,Q=V;for(let J=0;J{ee||(ee=!0,Q--),Y[J]=me},()=>j--,void 0,()=>{(!j||!ee)&&(Q||H.next(L?(0,h.n)(L,Y):Y),H.complete())}))}});return w?D.pipe((0,y.Z)(w)):D}},457:(We,q,m)=>{"use strict";m.d(q,{D:()=>ie});var t=m(8421),e=m(5363),_=m(4482);function T(se,ce=0){return(0,_.e)((Ce,M)=>{M.add(se.schedule(()=>Ce.subscribe(M),ce))})}var h=m(9751),d=m(2202),w=m(576),C=m(9672);function D(se,ce){if(!se)throw new Error("Iterable cannot be null");return new h.y(Ce=>{(0,C.f)(Ce,ce,()=>{const M=se[Symbol.asyncIterator]();(0,C.f)(Ce,ce,()=>{M.next().then(i=>{i.done?Ce.complete():Ce.next(i.value)})},0,!0)})})}var H=m(3670),V=m(8239),Y=m(1144),j=m(6495),Q=m(2206),J=m(4532),ee=m(3260);function ie(se,ce){return ce?function re(se,ce){if(null!=se){if((0,H.c)(se))return function s(se,ce){return(0,t.Xf)(se).pipe(T(ce),(0,e.Q)(ce))}(se,ce);if((0,Y.z)(se))return function P(se,ce){return new h.y(Ce=>{let M=0;return ce.schedule(function(){M===se.length?Ce.complete():(Ce.next(se[M++]),Ce.closed||this.schedule())})})}(se,ce);if((0,V.t)(se))return function y(se,ce){return(0,t.Xf)(se).pipe(T(ce),(0,e.Q)(ce))}(se,ce);if((0,Q.D)(se))return D(se,ce);if((0,j.T)(se))return function L(se,ce){return new h.y(Ce=>{let M;return(0,C.f)(Ce,ce,()=>{M=se[d.h](),(0,C.f)(Ce,ce,()=>{let i,a;try{({value:i,done:a}=M.next())}catch(f){return void Ce.error(f)}a?Ce.complete():Ce.next(i)},0,!0)}),()=>(0,w.m)(M?.return)&&M.return()})}(se,ce);if((0,ee.L)(se))return function me(se,ce){return D((0,ee.Q)(se),ce)}(se,ce)}throw(0,J.z)(se)}(se,ce):(0,t.Xf)(se)}},4968:(We,q,m)=>{"use strict";m.d(q,{R:()=>w});var t=m(8421),e=m(9751),_=m(5577),T=m(1144),s=m(576),y=m(3268);const h=["addListener","removeListener"],P=["addEventListener","removeEventListener"],d=["on","off"];function w(V,Y,j,Q){if((0,s.m)(j)&&(Q=j,j=void 0),Q)return w(V,Y,j).pipe((0,y.Z)(Q));const[J,ee]=function H(V){return(0,s.m)(V.addEventListener)&&(0,s.m)(V.removeEventListener)}(V)?P.map(me=>re=>V[me](Y,re,j)):function L(V){return(0,s.m)(V.addListener)&&(0,s.m)(V.removeListener)}(V)?h.map(C(V,Y)):function D(V){return(0,s.m)(V.on)&&(0,s.m)(V.off)}(V)?d.map(C(V,Y)):[];if(!J&&(0,T.z)(V))return(0,_.z)(me=>w(me,Y,j))((0,t.Xf)(V));if(!J)throw new TypeError("Invalid event target");return new e.y(me=>{const re=(...ie)=>me.next(1ee(re)})}function C(V,Y){return j=>Q=>V[j](Y,Q)}},8421:(We,q,m)=>{"use strict";m.d(q,{Xf:()=>D});var t=m(7582),e=m(1144),_=m(8239),T=m(9751),s=m(3670),y=m(2206),h=m(4532),P=m(6495),d=m(3260),w=m(576),C=m(7849),L=m(8822);function D(me){if(me instanceof T.y)return me;if(null!=me){if((0,s.c)(me))return function H(me){return new T.y(re=>{const ie=me[L.L]();if((0,w.m)(ie.subscribe))return ie.subscribe(re);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(me);if((0,e.z)(me))return function V(me){return new T.y(re=>{for(let ie=0;ie{me.then(ie=>{re.closed||(re.next(ie),re.complete())},ie=>re.error(ie)).then(null,C.h)})}(me);if((0,y.D)(me))return Q(me);if((0,P.T)(me))return function j(me){return new T.y(re=>{for(const ie of me)if(re.next(ie),re.closed)return;re.complete()})}(me);if((0,d.L)(me))return function J(me){return Q((0,d.Q)(me))}(me)}throw(0,h.z)(me)}function Q(me){return new T.y(re=>{(function ee(me,re){var ie,se,ce,Ce;return(0,t.mG)(this,void 0,void 0,function*(){try{for(ie=(0,t.KL)(me);!(se=yield ie.next()).done;)if(re.next(se.value),re.closed)return}catch(M){ce={error:M}}finally{try{se&&!se.done&&(Ce=ie.return)&&(yield Ce.call(ie))}finally{if(ce)throw ce.error}}re.complete()})})(me,re).catch(ie=>re.error(ie))})}},6451:(We,q,m)=>{"use strict";m.d(q,{T:()=>y});var t=m(8189),e=m(8421),_=m(515),T=m(3269),s=m(457);function y(...h){const P=(0,T.yG)(h),d=(0,T._6)(h,1/0),w=h;return w.length?1===w.length?(0,e.Xf)(w[0]):(0,t.J)(d)((0,s.D)(w,P)):_.E}},9646:(We,q,m)=>{"use strict";m.d(q,{of:()=>_});var t=m(3269),e=m(457);function _(...T){const s=(0,t.yG)(T);return(0,e.D)(T,s)}},2843:(We,q,m)=>{"use strict";m.d(q,{_:()=>_});var t=m(9751),e=m(576);function _(T,s){const y=(0,e.m)(T)?T:()=>T,h=P=>P.error(y());return new t.y(s?P=>s.schedule(h,0,P):h)}},2805:(We,q,m)=>{"use strict";m.d(q,{H:()=>s});var t=m(9751),e=m(4986),_=m(3532),T=m(1165);function s(y=0,h,P=e.P){let d=-1;return null!=h&&((0,_.K)(h)?P=h:d=h),new t.y(w=>{let C=(0,T.q)(y)?+y-P.now():y;C<0&&(C=0);let L=0;return P.schedule(function(){w.closed||(w.next(L++),0<=d?this.schedule(void 0,d):w.complete())},C)})}},5403:(We,q,m)=>{"use strict";m.d(q,{Q:()=>_,x:()=>e});var t=m(930);function e(T,s,y,h,P){return new _(T,s,y,h,P)}class _ extends t.Lv{constructor(s,y,h,P,d,w){super(s),this.onFinalize=d,this.shouldUnsubscribe=w,this._next=y?function(C){try{y(C)}catch(L){s.error(L)}}:super._next,this._error=P?function(C){try{P(C)}catch(L){s.error(L)}finally{this.unsubscribe()}}:super._error,this._complete=h?function(){try{h()}catch(C){s.error(C)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var s;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:y}=this;super.unsubscribe(),!y&&(null===(s=this.onFinalize)||void 0===s||s.call(this))}}}},3601:(We,q,m)=>{"use strict";m.d(q,{e:()=>h});var t=m(4986),e=m(4482),_=m(8421),T=m(5403),y=m(2805);function h(P,d=t.z){return function s(P){return(0,e.e)((d,w)=>{let C=!1,L=null,D=null,H=!1;const V=()=>{if(D?.unsubscribe(),D=null,C){C=!1;const j=L;L=null,w.next(j)}H&&w.complete()},Y=()=>{D=null,H&&w.complete()};d.subscribe((0,T.x)(w,j=>{C=!0,L=j,D||(0,_.Xf)(P(j)).subscribe(D=(0,T.x)(w,V,Y))},()=>{H=!0,(!C||!D||D.closed)&&w.complete()}))})}(()=>(0,y.H)(P,d))}},262:(We,q,m)=>{"use strict";m.d(q,{K:()=>T});var t=m(8421),e=m(5403),_=m(4482);function T(s){return(0,_.e)((y,h)=>{let w,P=null,d=!1;P=y.subscribe((0,e.x)(h,void 0,void 0,C=>{w=(0,t.Xf)(s(C,T(s)(y))),P?(P.unsubscribe(),P=null,w.subscribe(h)):d=!0})),d&&(P.unsubscribe(),P=null,w.subscribe(h))})}},4351:(We,q,m)=>{"use strict";m.d(q,{b:()=>_});var t=m(5577),e=m(576);function _(T,s){return(0,e.m)(s)?(0,t.z)(T,s,1):(0,t.z)(T,1)}},8372:(We,q,m)=>{"use strict";m.d(q,{b:()=>T});var t=m(4986),e=m(4482),_=m(5403);function T(s,y=t.z){return(0,e.e)((h,P)=>{let d=null,w=null,C=null;const L=()=>{if(d){d.unsubscribe(),d=null;const H=w;w=null,P.next(H)}};function D(){const H=C+s,V=y.now();if(V{w=H,C=y.now(),d||(d=y.schedule(D,s),P.add(d))},()=>{L(),P.complete()},void 0,()=>{w=d=null}))})}},6590:(We,q,m)=>{"use strict";m.d(q,{d:()=>_});var t=m(4482),e=m(5403);function _(T){return(0,t.e)((s,y)=>{let h=!1;s.subscribe((0,e.x)(y,P=>{h=!0,y.next(P)},()=>{h||y.next(T),y.complete()}))})}},4086:(We,q,m)=>{"use strict";m.d(q,{g:()=>d});var t=m(4986),e=m(7272),_=m(5698),T=m(8502),s=m(9718),y=m(5577);function h(w,C){return C?L=>(0,e.z)(C.pipe((0,_.q)(1),(0,T.l)()),L.pipe(h(w))):(0,y.z)((L,D)=>w(L,D).pipe((0,_.q)(1),(0,s.h)(L)))}var P=m(2805);function d(w,C=t.z){const L=(0,P.H)(w,C);return h(()=>L)}},1884:(We,q,m)=>{"use strict";m.d(q,{x:()=>T});var t=m(4671),e=m(4482),_=m(5403);function T(y,h=t.y){return y=y??s,(0,e.e)((P,d)=>{let w,C=!0;P.subscribe((0,_.x)(d,L=>{const D=h(L);(C||!y(w,D))&&(C=!1,w=D,d.next(L))}))})}function s(y,h){return y===h}},9300:(We,q,m)=>{"use strict";m.d(q,{h:()=>_});var t=m(4482),e=m(5403);function _(T,s){return(0,t.e)((y,h)=>{let P=0;y.subscribe((0,e.x)(h,d=>T.call(s,d,P++)&&h.next(d)))})}},8746:(We,q,m)=>{"use strict";m.d(q,{x:()=>e});var t=m(4482);function e(_){return(0,t.e)((T,s)=>{try{T.subscribe(s)}finally{s.add(_)}})}},590:(We,q,m)=>{"use strict";m.d(q,{P:()=>h});var t=m(6805),e=m(9300),_=m(5698),T=m(6590),s=m(8068),y=m(4671);function h(P,d){const w=arguments.length>=2;return C=>C.pipe(P?(0,e.h)((L,D)=>P(L,D,C)):y.y,(0,_.q)(1),w?(0,T.d)(d):(0,s.T)(()=>new t.K))}},8502:(We,q,m)=>{"use strict";m.d(q,{l:()=>T});var t=m(4482),e=m(5403),_=m(5032);function T(){return(0,t.e)((s,y)=>{s.subscribe((0,e.x)(y,_.Z))})}},4004:(We,q,m)=>{"use strict";m.d(q,{U:()=>_});var t=m(4482),e=m(5403);function _(T,s){return(0,t.e)((y,h)=>{let P=0;y.subscribe((0,e.x)(h,d=>{h.next(T.call(s,d,P++))}))})}},9718:(We,q,m)=>{"use strict";m.d(q,{h:()=>e});var t=m(4004);function e(_){return(0,t.U)(()=>_)}},8189:(We,q,m)=>{"use strict";m.d(q,{J:()=>_});var t=m(5577),e=m(4671);function _(T=1/0){return(0,t.z)(e.y,T)}},5577:(We,q,m)=>{"use strict";m.d(q,{z:()=>P});var t=m(4004),e=m(8421),_=m(4482),T=m(9672),s=m(5403),h=m(576);function P(d,w,C=1/0){return(0,h.m)(w)?P((L,D)=>(0,t.U)((H,V)=>w(L,H,D,V))((0,e.Xf)(d(L,D))),C):("number"==typeof w&&(C=w),(0,_.e)((L,D)=>function y(d,w,C,L,D,H,V,Y){const j=[];let Q=0,J=0,ee=!1;const me=()=>{ee&&!j.length&&!Q&&w.complete()},re=se=>Q{H&&w.next(se),Q++;let ce=!1;(0,e.Xf)(C(se,J++)).subscribe((0,s.x)(w,Ce=>{D?.(Ce),H?re(Ce):w.next(Ce)},()=>{ce=!0},void 0,()=>{if(ce)try{for(Q--;j.length&&Qie(Ce)):ie(Ce)}me()}catch(Ce){w.error(Ce)}}))};return d.subscribe((0,s.x)(w,re,()=>{ee=!0,me()})),()=>{Y?.()}}(L,D,d,C)))}},5363:(We,q,m)=>{"use strict";m.d(q,{Q:()=>T});var t=m(9672),e=m(4482),_=m(5403);function T(s,y=0){return(0,e.e)((h,P)=>{h.subscribe((0,_.x)(P,d=>(0,t.f)(P,s,()=>P.next(d),y),()=>(0,t.f)(P,s,()=>P.complete(),y),d=>(0,t.f)(P,s,()=>P.error(d),y)))})}},8343:(We,q,m)=>{"use strict";m.d(q,{x:()=>_});var t=m(4482),e=m(5403);function _(){return(0,t.e)((T,s)=>{let y=null;T._refCount++;const h=(0,e.x)(s,void 0,void 0,void 0,()=>{if(!T||T._refCount<=0||0<--T._refCount)return void(y=null);const P=T._connection,d=y;y=null,P&&(!d||P===d)&&P.unsubscribe(),s.unsubscribe()});T.subscribe(h),h.closed||(y=T.connect())})}},5026:(We,q,m)=>{"use strict";m.d(q,{R:()=>T});var t=m(4482),e=m(5403);function T(s,y){return(0,t.e)(function _(s,y,h,P,d){return(w,C)=>{let L=h,D=y,H=0;w.subscribe((0,e.x)(C,V=>{const Y=H++;D=L?s(D,V,Y):(L=!0,V),P&&C.next(D)},d&&(()=>{L&&C.next(D),C.complete()})))}}(s,y,arguments.length>=2,!0))}},3099:(We,q,m)=>{"use strict";m.d(q,{B:()=>s});var t=m(8421),e=m(7579),_=m(930),T=m(4482);function s(h={}){const{connector:P=(()=>new e.x),resetOnError:d=!0,resetOnComplete:w=!0,resetOnRefCountZero:C=!0}=h;return L=>{let D,H,V,Y=0,j=!1,Q=!1;const J=()=>{H?.unsubscribe(),H=void 0},ee=()=>{J(),D=V=void 0,j=Q=!1},me=()=>{const re=D;ee(),re?.unsubscribe()};return(0,T.e)((re,ie)=>{Y++,!Q&&!j&&J();const se=V=V??P();ie.add(()=>{Y--,0===Y&&!Q&&!j&&(H=y(me,C))}),se.subscribe(ie),!D&&Y>0&&(D=new _.Hp({next:ce=>se.next(ce),error:ce=>{Q=!0,J(),H=y(ee,d,ce),se.error(ce)},complete:()=>{j=!0,J(),H=y(ee,w),se.complete()}}),(0,t.Xf)(re).subscribe(D))})(L)}}function y(h,P,...d){if(!0===P)return void h();if(!1===P)return;const w=new _.Hp({next:()=>{w.unsubscribe(),h()}});return P(...d).subscribe(w)}},5684:(We,q,m)=>{"use strict";m.d(q,{T:()=>e});var t=m(9300);function e(_){return(0,t.h)((T,s)=>_<=s)}},8675:(We,q,m)=>{"use strict";m.d(q,{O:()=>T});var t=m(7272),e=m(3269),_=m(4482);function T(...s){const y=(0,e.yG)(s);return(0,_.e)((h,P)=>{(y?(0,t.z)(s,h,y):(0,t.z)(s,h)).subscribe(P)})}},3900:(We,q,m)=>{"use strict";m.d(q,{w:()=>T});var t=m(8421),e=m(4482),_=m(5403);function T(s,y){return(0,e.e)((h,P)=>{let d=null,w=0,C=!1;const L=()=>C&&!d&&P.complete();h.subscribe((0,_.x)(P,D=>{d?.unsubscribe();let H=0;const V=w++;(0,t.Xf)(s(D,V)).subscribe(d=(0,_.x)(P,Y=>P.next(y?y(D,Y,V,H++):Y),()=>{d=null,L()}))},()=>{C=!0,L()}))})}},5698:(We,q,m)=>{"use strict";m.d(q,{q:()=>T});var t=m(515),e=m(4482),_=m(5403);function T(s){return s<=0?()=>t.E:(0,e.e)((y,h)=>{let P=0;y.subscribe((0,_.x)(h,d=>{++P<=s&&(h.next(d),s<=P&&h.complete())}))})}},2722:(We,q,m)=>{"use strict";m.d(q,{R:()=>s});var t=m(4482),e=m(5403),_=m(8421),T=m(5032);function s(y){return(0,t.e)((h,P)=>{(0,_.Xf)(y).subscribe((0,e.x)(P,()=>P.complete(),T.Z)),!P.closed&&h.subscribe(P)})}},2529:(We,q,m)=>{"use strict";m.d(q,{o:()=>_});var t=m(4482),e=m(5403);function _(T,s=!1){return(0,t.e)((y,h)=>{let P=0;y.subscribe((0,e.x)(h,d=>{const w=T(d,P++);(w||s)&&h.next(d),!w&&h.complete()}))})}},8505:(We,q,m)=>{"use strict";m.d(q,{b:()=>s});var t=m(576),e=m(4482),_=m(5403),T=m(4671);function s(y,h,P){const d=(0,t.m)(y)||h||P?{next:y,error:h,complete:P}:y;return d?(0,e.e)((w,C)=>{var L;null===(L=d.subscribe)||void 0===L||L.call(d);let D=!0;w.subscribe((0,_.x)(C,H=>{var V;null===(V=d.next)||void 0===V||V.call(d,H),C.next(H)},()=>{var H;D=!1,null===(H=d.complete)||void 0===H||H.call(d),C.complete()},H=>{var V;D=!1,null===(V=d.error)||void 0===V||V.call(d,H),C.error(H)},()=>{var H,V;D&&(null===(H=d.unsubscribe)||void 0===H||H.call(d)),null===(V=d.finalize)||void 0===V||V.call(d)}))}):T.y}},8068:(We,q,m)=>{"use strict";m.d(q,{T:()=>T});var t=m(6805),e=m(4482),_=m(5403);function T(y=s){return(0,e.e)((h,P)=>{let d=!1;h.subscribe((0,_.x)(P,w=>{d=!0,P.next(w)},()=>d?P.complete():P.error(y())))})}function s(){return new t.K}},7414:(We,q,m)=>{"use strict";m.d(q,{V:()=>d});var t=m(4986),e=m(1165),_=m(4482),T=m(8421),s=m(3888),y=m(5403),h=m(9672);const P=(0,s.d)(C=>function(D=null){C(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=D});function d(C,L){const{first:D,each:H,with:V=w,scheduler:Y=L??t.z,meta:j=null}=(0,e.q)(C)?{first:C}:"number"==typeof C?{each:C}:C;if(null==D&&null==H)throw new TypeError("No timeout provided.");return(0,_.e)((Q,J)=>{let ee,me,re=null,ie=0;const se=ce=>{me=(0,h.f)(J,Y,()=>{try{ee.unsubscribe(),(0,T.Xf)(V({meta:j,lastValue:re,seen:ie})).subscribe(J)}catch(Ce){J.error(Ce)}},ce)};ee=Q.subscribe((0,y.x)(J,ce=>{me?.unsubscribe(),ie++,J.next(re=ce),H>0&&se(H)},void 0,void 0,()=>{me?.closed||me?.unsubscribe(),re=null})),!ie&&se(null!=D?"number"==typeof D?D:+D-Y.now():H)})}function w(C){throw new P(C)}},1365:(We,q,m)=>{"use strict";m.d(q,{M:()=>h});var t=m(4482),e=m(5403),_=m(8421),T=m(4671),s=m(5032),y=m(3269);function h(...P){const d=(0,y.jO)(P);return(0,t.e)((w,C)=>{const L=P.length,D=new Array(L);let H=P.map(()=>!1),V=!1;for(let Y=0;Y{D[Y]=j,!V&&!H[Y]&&(H[Y]=!0,(V=H.every(T.y))&&(H=null))},s.Z));w.subscribe((0,e.x)(C,Y=>{if(V){const j=[Y,...D];C.next(d?d(...j):j)}}))})}},4408:(We,q,m)=>{"use strict";m.d(q,{o:()=>s});var t=m(727);class e extends t.w0{constructor(h,P){super()}schedule(h,P=0){return this}}const _={setInterval(y,h,...P){const{delegate:d}=_;return d?.setInterval?d.setInterval(y,h,...P):setInterval(y,h,...P)},clearInterval(y){const{delegate:h}=_;return(h?.clearInterval||clearInterval)(y)},delegate:void 0};var T=m(8737);class s extends e{constructor(h,P){super(h,P),this.scheduler=h,this.work=P,this.pending=!1}schedule(h,P=0){var d;if(this.closed)return this;this.state=h;const w=this.id,C=this.scheduler;return null!=w&&(this.id=this.recycleAsyncId(C,w,P)),this.pending=!0,this.delay=P,this.id=null!==(d=this.id)&&void 0!==d?d:this.requestAsyncId(C,this.id,P),this}requestAsyncId(h,P,d=0){return _.setInterval(h.flush.bind(h,this),d)}recycleAsyncId(h,P,d=0){if(null!=d&&this.delay===d&&!1===this.pending)return P;null!=P&&_.clearInterval(P)}execute(h,P){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const d=this._execute(h,P);if(d)return d;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(h,P){let w,d=!1;try{this.work(h)}catch(C){d=!0,w=C||new Error("Scheduled action threw falsy error")}if(d)return this.unsubscribe(),w}unsubscribe(){if(!this.closed){const{id:h,scheduler:P}=this,{actions:d}=P;this.work=this.state=this.scheduler=null,this.pending=!1,(0,T.P)(d,this),null!=h&&(this.id=this.recycleAsyncId(P,h,null)),this.delay=null,super.unsubscribe()}}}},7565:(We,q,m)=>{"use strict";m.d(q,{v:()=>_});var t=m(6063);class e{constructor(s,y=e.now){this.schedulerActionCtor=s,this.now=y}schedule(s,y=0,h){return new this.schedulerActionCtor(this,s).schedule(h,y)}}e.now=t.l.now;class _ extends e{constructor(s,y=e.now){super(s,y),this.actions=[],this._active=!1}flush(s){const{actions:y}=this;if(this._active)return void y.push(s);let h;this._active=!0;do{if(h=s.execute(s.state,s.delay))break}while(s=y.shift());if(this._active=!1,h){for(;s=y.shift();)s.unsubscribe();throw h}}}},3101:(We,q,m)=>{"use strict";m.d(q,{E:()=>H});var t=m(4408);let _,e=1;const T={};function s(Y){return Y in T&&(delete T[Y],!0)}const y={setImmediate(Y){const j=e++;return T[j]=!0,_||(_=Promise.resolve()),_.then(()=>s(j)&&Y()),j},clearImmediate(Y){s(Y)}},{setImmediate:P,clearImmediate:d}=y,w={setImmediate(...Y){const{delegate:j}=w;return(j?.setImmediate||P)(...Y)},clearImmediate(Y){const{delegate:j}=w;return(j?.clearImmediate||d)(Y)},delegate:void 0};var L=m(7565);const H=new class D extends L.v{flush(j){this._active=!0;const Q=this._scheduled;this._scheduled=void 0;const{actions:J}=this;let ee;j=j||J.shift();do{if(ee=j.execute(j.state,j.delay))break}while((j=J[0])&&j.id===Q&&J.shift());if(this._active=!1,ee){for(;(j=J[0])&&j.id===Q&&J.shift();)j.unsubscribe();throw ee}}}(class C extends t.o{constructor(j,Q){super(j,Q),this.scheduler=j,this.work=Q}requestAsyncId(j,Q,J=0){return null!==J&&J>0?super.requestAsyncId(j,Q,J):(j.actions.push(this),j._scheduled||(j._scheduled=w.setImmediate(j.flush.bind(j,void 0))))}recycleAsyncId(j,Q,J=0){var ee;if(null!=J?J>0:this.delay>0)return super.recycleAsyncId(j,Q,J);const{actions:me}=j;null!=Q&&(null===(ee=me[me.length-1])||void 0===ee?void 0:ee.id)!==Q&&(w.clearImmediate(Q),j._scheduled=void 0)}})},4986:(We,q,m)=>{"use strict";m.d(q,{P:()=>T,z:()=>_});var t=m(4408);const _=new(m(7565).v)(t.o),T=_},6063:(We,q,m)=>{"use strict";m.d(q,{l:()=>t});const t={now:()=>(t.delegate||Date).now(),delegate:void 0}},233:(We,q,m)=>{"use strict";m.d(q,{N:()=>s});var t=m(4408),_=m(7565);const s=new class T extends _.v{}(class e extends t.o{constructor(P,d){super(P,d),this.scheduler=P,this.work=d}schedule(P,d=0){return d>0?super.schedule(P,d):(this.delay=d,this.state=P,this.scheduler.flush(this),this)}execute(P,d){return d>0||this.closed?super.execute(P,d):this._execute(P,d)}requestAsyncId(P,d,w=0){return null!=w&&w>0||null==w&&this.delay>0?super.requestAsyncId(P,d,w):(P.flush(this),0)}})},3410:(We,q,m)=>{"use strict";m.d(q,{z:()=>t});const t={setTimeout(e,_,...T){const{delegate:s}=t;return s?.setTimeout?s.setTimeout(e,_,...T):setTimeout(e,_,...T)},clearTimeout(e){const{delegate:_}=t;return(_?.clearTimeout||clearTimeout)(e)},delegate:void 0}},2202:(We,q,m)=>{"use strict";m.d(q,{h:()=>e});const e=function t(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(We,q,m)=>{"use strict";m.d(q,{L:()=>t});const t="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(We,q,m)=>{"use strict";m.d(q,{K:()=>e});const e=(0,m(3888).d)(_=>function(){_(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(We,q,m)=>{"use strict";m.d(q,{_6:()=>y,jO:()=>T,yG:()=>s});var t=m(576),e=m(3532);function _(h){return h[h.length-1]}function T(h){return(0,t.m)(_(h))?h.pop():void 0}function s(h){return(0,e.K)(_(h))?h.pop():void 0}function y(h,P){return"number"==typeof _(h)?h.pop():P}},4742:(We,q,m)=>{"use strict";m.d(q,{D:()=>s});const{isArray:t}=Array,{getPrototypeOf:e,prototype:_,keys:T}=Object;function s(h){if(1===h.length){const P=h[0];if(t(P))return{args:P,keys:null};if(function y(h){return h&&"object"==typeof h&&e(h)===_}(P)){const d=T(P);return{args:d.map(w=>P[w]),keys:d}}}return{args:h,keys:null}}},8737:(We,q,m)=>{"use strict";function t(e,_){if(e){const T=e.indexOf(_);0<=T&&e.splice(T,1)}}m.d(q,{P:()=>t})},3888:(We,q,m)=>{"use strict";function t(e){const T=e(s=>{Error.call(s),s.stack=(new Error).stack});return T.prototype=Object.create(Error.prototype),T.prototype.constructor=T,T}m.d(q,{d:()=>t})},1810:(We,q,m)=>{"use strict";function t(e,_){return e.reduce((T,s,y)=>(T[s]=_[y],T),{})}m.d(q,{n:()=>t})},2806:(We,q,m)=>{"use strict";m.d(q,{O:()=>T,x:()=>_});var t=m(2416);let e=null;function _(s){if(t.v.useDeprecatedSynchronousErrorHandling){const y=!e;if(y&&(e={errorThrown:!1,error:null}),s(),y){const{errorThrown:h,error:P}=e;if(e=null,h)throw P}}else s()}function T(s){t.v.useDeprecatedSynchronousErrorHandling&&e&&(e.errorThrown=!0,e.error=s)}},9672:(We,q,m)=>{"use strict";function t(e,_,T,s=0,y=!1){const h=_.schedule(function(){T(),y?e.add(this.schedule(null,s)):this.unsubscribe()},s);if(e.add(h),!y)return h}m.d(q,{f:()=>t})},4671:(We,q,m)=>{"use strict";function t(e){return e}m.d(q,{y:()=>t})},1144:(We,q,m)=>{"use strict";m.d(q,{z:()=>t});const t=e=>e&&"number"==typeof e.length&&"function"!=typeof e},2206:(We,q,m)=>{"use strict";m.d(q,{D:()=>e});var t=m(576);function e(_){return Symbol.asyncIterator&&(0,t.m)(_?.[Symbol.asyncIterator])}},1165:(We,q,m)=>{"use strict";function t(e){return e instanceof Date&&!isNaN(e)}m.d(q,{q:()=>t})},576:(We,q,m)=>{"use strict";function t(e){return"function"==typeof e}m.d(q,{m:()=>t})},3670:(We,q,m)=>{"use strict";m.d(q,{c:()=>_});var t=m(8822),e=m(576);function _(T){return(0,e.m)(T[t.L])}},6495:(We,q,m)=>{"use strict";m.d(q,{T:()=>_});var t=m(2202),e=m(576);function _(T){return(0,e.m)(T?.[t.h])}},5191:(We,q,m)=>{"use strict";m.d(q,{b:()=>_});var t=m(9751),e=m(576);function _(T){return!!T&&(T instanceof t.y||(0,e.m)(T.lift)&&(0,e.m)(T.subscribe))}},8239:(We,q,m)=>{"use strict";m.d(q,{t:()=>e});var t=m(576);function e(_){return(0,t.m)(_?.then)}},3260:(We,q,m)=>{"use strict";m.d(q,{L:()=>T,Q:()=>_});var t=m(7582),e=m(576);function _(s){return(0,t.FC)(this,arguments,function*(){const h=s.getReader();try{for(;;){const{value:P,done:d}=yield(0,t.qq)(h.read());if(d)return yield(0,t.qq)(void 0);yield yield(0,t.qq)(P)}}finally{h.releaseLock()}})}function T(s){return(0,e.m)(s?.getReader)}},3532:(We,q,m)=>{"use strict";m.d(q,{K:()=>e});var t=m(576);function e(_){return _&&(0,t.m)(_.schedule)}},4482:(We,q,m)=>{"use strict";m.d(q,{A:()=>e,e:()=>_});var t=m(576);function e(T){return(0,t.m)(T?.lift)}function _(T){return s=>{if(e(s))return s.lift(function(y){try{return T(y,this)}catch(h){this.error(h)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(We,q,m)=>{"use strict";m.d(q,{Z:()=>T});var t=m(4004);const{isArray:e}=Array;function T(s){return(0,t.U)(y=>function _(s,y){return e(y)?s(...y):s(y)}(s,y))}},5032:(We,q,m)=>{"use strict";function t(){}m.d(q,{Z:()=>t})},9635:(We,q,m)=>{"use strict";m.d(q,{U:()=>_,z:()=>e});var t=m(4671);function e(...T){return _(T)}function _(T){return 0===T.length?t.y:1===T.length?T[0]:function(y){return T.reduce((h,P)=>P(h),y)}}},7849:(We,q,m)=>{"use strict";m.d(q,{h:()=>_});var t=m(2416),e=m(3410);function _(T){e.z.setTimeout(()=>{const{onUnhandledError:s}=t.v;if(!s)throw T;s(T)})}},4532:(We,q,m)=>{"use strict";function t(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}m.d(q,{z:()=>t})},3502:(We,q,m)=>{var t=m(3172),e=t.Buffer;function _(s,y){for(var h in s)y[h]=s[h]}function T(s,y,h){return e(s,y,h)}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?We.exports=t:(_(t,q),q.Buffer=T),T.prototype=Object.create(e.prototype),_(e,T),T.from=function(s,y,h){if("number"==typeof s)throw new TypeError("Argument must not be a number");return e(s,y,h)},T.alloc=function(s,y,h){if("number"!=typeof s)throw new TypeError("Argument must be a number");var P=e(s);return void 0!==y?"string"==typeof h?P.fill(y,h):P.fill(y):P.fill(0),P},T.allocUnsafe=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return e(s)},T.allocUnsafeSlow=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return t.SlowBuffer(s)}},2038:(We,q,m)=>{"use strict";var T,t=m(3172),e=t.Buffer,_={};for(T in t)t.hasOwnProperty(T)&&("SlowBuffer"===T||"Buffer"===T||(_[T]=t[T]));var s=_.Buffer={};for(T in e)e.hasOwnProperty(T)&&("allocUnsafe"===T||"allocUnsafeSlow"===T||(s[T]=e[T]));if(_.Buffer.prototype=e.prototype,(!s.from||s.from===Uint8Array.from)&&(s.from=function(y,h,P){if("number"==typeof y)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof y);if(y&&typeof y.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof y);return e(y,h,P)}),s.alloc||(s.alloc=function(y,h,P){if("number"!=typeof y)throw new TypeError('The "size" argument must be of type number. Received type '+typeof y);if(y<0||y>=2*(1<<30))throw new RangeError('The value "'+y+'" is invalid for option "size"');var d=e(y);return h&&0!==h.length?"string"==typeof P?d.fill(h,P):d.fill(h):d.fill(0),d}),!_.kStringMaxLength)try{_.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}_.constants||(_.constants={MAX_LENGTH:_.kMaxLength},_.kStringMaxLength&&(_.constants.MAX_STRING_LENGTH=_.kStringMaxLength)),We.exports=_},6692:(We,q,m)=>{var t=m(3502).Buffer;function e(_,T){this._block=t.alloc(_),this._finalSize=T,this._blockSize=_,this._len=0}e.prototype.update=function(_,T){"string"==typeof _&&(_=t.from(_,T=T||"utf8"));for(var s=this._block,y=this._blockSize,h=_.length,P=this._len,d=0;d=this._finalSize&&(this._update(this._block),this._block.fill(0));var s=8*this._len;if(s<=4294967295)this._block.writeUInt32BE(s,this._blockSize-4);else{var y=(4294967295&s)>>>0;this._block.writeUInt32BE((s-y)/4294967296,this._blockSize-8),this._block.writeUInt32BE(y,this._blockSize-4)}this._update(this._block);var P=this._hash();return _?P.toString(_):P},e.prototype._update=function(){throw new Error("_update must be implemented by subclass")},We.exports=e},5244:(We,q,m)=>{var t=We.exports=function(_){_=_.toLowerCase();var T=t[_];if(!T)throw new Error(_+" is not supported (we accept pull requests)");return new T};t.sha=m(8932),t.sha1=m(7736),t.sha224=m(5044),t.sha256=m(5014),t.sha384=m(6540),t.sha512=m(117)},8932:(We,q,m)=>{var t=m(3894),e=m(6692),_=m(3502).Buffer,T=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function y(){this.init(),this._w=s,e.call(this,64,56)}function h(w){return w<<5|w>>>27}function P(w){return w<<30|w>>>2}function d(w,C,L,D){return 0===w?C&L|~C&D:2===w?C&L|C&D|L&D:C^L^D}t(y,e),y.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},y.prototype._update=function(w){for(var C=this._w,L=0|this._a,D=0|this._b,H=0|this._c,V=0|this._d,Y=0|this._e,j=0;j<16;++j)C[j]=w.readInt32BE(4*j);for(;j<80;++j)C[j]=C[j-3]^C[j-8]^C[j-14]^C[j-16];for(var Q=0;Q<80;++Q){var J=~~(Q/20),ee=h(L)+d(J,D,H,V)+Y+C[Q]+T[J]|0;Y=V,V=H,H=P(D),D=L,L=ee}this._a=L+this._a|0,this._b=D+this._b|0,this._c=H+this._c|0,this._d=V+this._d|0,this._e=Y+this._e|0},y.prototype._hash=function(){var w=_.allocUnsafe(20);return w.writeInt32BE(0|this._a,0),w.writeInt32BE(0|this._b,4),w.writeInt32BE(0|this._c,8),w.writeInt32BE(0|this._d,12),w.writeInt32BE(0|this._e,16),w},We.exports=y},7736:(We,q,m)=>{var t=m(3894),e=m(6692),_=m(3502).Buffer,T=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function y(){this.init(),this._w=s,e.call(this,64,56)}function h(C){return C<<1|C>>>31}function P(C){return C<<5|C>>>27}function d(C){return C<<30|C>>>2}function w(C,L,D,H){return 0===C?L&D|~L&H:2===C?L&D|L&H|D&H:L^D^H}t(y,e),y.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},y.prototype._update=function(C){for(var L=this._w,D=0|this._a,H=0|this._b,V=0|this._c,Y=0|this._d,j=0|this._e,Q=0;Q<16;++Q)L[Q]=C.readInt32BE(4*Q);for(;Q<80;++Q)L[Q]=h(L[Q-3]^L[Q-8]^L[Q-14]^L[Q-16]);for(var J=0;J<80;++J){var ee=~~(J/20),me=P(D)+w(ee,H,V,Y)+j+L[J]+T[ee]|0;j=Y,Y=V,V=d(H),H=D,D=me}this._a=D+this._a|0,this._b=H+this._b|0,this._c=V+this._c|0,this._d=Y+this._d|0,this._e=j+this._e|0},y.prototype._hash=function(){var C=_.allocUnsafe(20);return C.writeInt32BE(0|this._a,0),C.writeInt32BE(0|this._b,4),C.writeInt32BE(0|this._c,8),C.writeInt32BE(0|this._d,12),C.writeInt32BE(0|this._e,16),C},We.exports=y},5044:(We,q,m)=>{var t=m(3894),e=m(5014),_=m(6692),T=m(3502).Buffer,s=new Array(64);function y(){this.init(),this._w=s,_.call(this,64,56)}t(y,e),y.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},y.prototype._hash=function(){var h=T.allocUnsafe(28);return h.writeInt32BE(this._a,0),h.writeInt32BE(this._b,4),h.writeInt32BE(this._c,8),h.writeInt32BE(this._d,12),h.writeInt32BE(this._e,16),h.writeInt32BE(this._f,20),h.writeInt32BE(this._g,24),h},We.exports=y},5014:(We,q,m)=>{var t=m(3894),e=m(6692),_=m(3502).Buffer,T=[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],s=new Array(64);function y(){this.init(),this._w=s,e.call(this,64,56)}function h(D,H,V){return V^D&(H^V)}function P(D,H,V){return D&H|V&(D|H)}function d(D){return(D>>>2|D<<30)^(D>>>13|D<<19)^(D>>>22|D<<10)}function w(D){return(D>>>6|D<<26)^(D>>>11|D<<21)^(D>>>25|D<<7)}function C(D){return(D>>>7|D<<25)^(D>>>18|D<<14)^D>>>3}function L(D){return(D>>>17|D<<15)^(D>>>19|D<<13)^D>>>10}t(y,e),y.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},y.prototype._update=function(D){for(var H=this._w,V=0|this._a,Y=0|this._b,j=0|this._c,Q=0|this._d,J=0|this._e,ee=0|this._f,me=0|this._g,re=0|this._h,ie=0;ie<16;++ie)H[ie]=D.readInt32BE(4*ie);for(;ie<64;++ie)H[ie]=L(H[ie-2])+H[ie-7]+C(H[ie-15])+H[ie-16]|0;for(var se=0;se<64;++se){var ce=re+w(J)+h(J,ee,me)+T[se]+H[se]|0,Ce=d(V)+P(V,Y,j)|0;re=me,me=ee,ee=J,J=Q+ce|0,Q=j,j=Y,Y=V,V=ce+Ce|0}this._a=V+this._a|0,this._b=Y+this._b|0,this._c=j+this._c|0,this._d=Q+this._d|0,this._e=J+this._e|0,this._f=ee+this._f|0,this._g=me+this._g|0,this._h=re+this._h|0},y.prototype._hash=function(){var D=_.allocUnsafe(32);return D.writeInt32BE(this._a,0),D.writeInt32BE(this._b,4),D.writeInt32BE(this._c,8),D.writeInt32BE(this._d,12),D.writeInt32BE(this._e,16),D.writeInt32BE(this._f,20),D.writeInt32BE(this._g,24),D.writeInt32BE(this._h,28),D},We.exports=y},6540:(We,q,m)=>{var t=m(3894),e=m(117),_=m(6692),T=m(3502).Buffer,s=new Array(160);function y(){this.init(),this._w=s,_.call(this,128,112)}t(y,e),y.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},y.prototype._hash=function(){var h=T.allocUnsafe(48);function P(d,w,C){h.writeInt32BE(d,C),h.writeInt32BE(w,C+4)}return P(this._ah,this._al,0),P(this._bh,this._bl,8),P(this._ch,this._cl,16),P(this._dh,this._dl,24),P(this._eh,this._el,32),P(this._fh,this._fl,40),h},We.exports=y},117:(We,q,m)=>{var t=m(3894),e=m(6692),_=m(3502).Buffer,T=[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],s=new Array(160);function y(){this.init(),this._w=s,e.call(this,128,112)}function h(Y,j,Q){return Q^Y&(j^Q)}function P(Y,j,Q){return Y&j|Q&(Y|j)}function d(Y,j){return(Y>>>28|j<<4)^(j>>>2|Y<<30)^(j>>>7|Y<<25)}function w(Y,j){return(Y>>>14|j<<18)^(Y>>>18|j<<14)^(j>>>9|Y<<23)}function C(Y,j){return(Y>>>1|j<<31)^(Y>>>8|j<<24)^Y>>>7}function L(Y,j){return(Y>>>1|j<<31)^(Y>>>8|j<<24)^(Y>>>7|j<<25)}function D(Y,j){return(Y>>>19|j<<13)^(j>>>29|Y<<3)^Y>>>6}function H(Y,j){return(Y>>>19|j<<13)^(j>>>29|Y<<3)^(Y>>>6|j<<26)}function V(Y,j){return Y>>>0>>0?1:0}t(y,e),y.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},y.prototype._update=function(Y){for(var j=this._w,Q=0|this._ah,J=0|this._bh,ee=0|this._ch,me=0|this._dh,re=0|this._eh,ie=0|this._fh,se=0|this._gh,ce=0|this._hh,Ce=0|this._al,M=0|this._bl,i=0|this._cl,a=0|this._dl,f=0|this._el,l=0|this._fl,v=0|this._gl,I=0|this._hl,k=0;k<32;k+=2)j[k]=Y.readInt32BE(4*k),j[k+1]=Y.readInt32BE(4*k+4);for(;k<160;k+=2){var x=j[k-30],n=j[k-30+1],g=C(x,n),W=L(n,x),O=D(x=j[k-4],n=j[k-4+1]),G=H(n,x),Ue=j[k-32],at=j[k-32+1],ye=W+j[k-14+1]|0,xe=g+j[k-14]+V(ye,W)|0;xe=(xe=xe+O+V(ye=ye+G|0,G)|0)+Ue+V(ye=ye+at|0,at)|0,j[k]=xe,j[k+1]=ye}for(var fe=0;fe<160;fe+=2){xe=j[fe],ye=j[fe+1];var Oe=P(Q,J,ee),oe=P(Ce,M,i),Fe=d(Q,Ce),De=d(Ce,Q),he=w(re,f),Me=w(f,re),pe=T[fe],Ve=T[fe+1],Qe=h(re,ie,se),Pe=h(f,l,v),de=I+Me|0,rt=ce+he+V(de,I)|0;rt=(rt=(rt=rt+Qe+V(de=de+Pe|0,Pe)|0)+pe+V(de=de+Ve|0,Ve)|0)+xe+V(de=de+ye|0,ye)|0;var Ke=De+oe|0,lt=Fe+Oe+V(Ke,De)|0;ce=se,I=v,se=ie,v=l,ie=re,l=f,re=me+rt+V(f=a+de|0,a)|0,me=ee,a=i,ee=J,i=M,J=Q,M=Ce,Q=rt+lt+V(Ce=de+Ke|0,de)|0}this._al=this._al+Ce|0,this._bl=this._bl+M|0,this._cl=this._cl+i|0,this._dl=this._dl+a|0,this._el=this._el+f|0,this._fl=this._fl+l|0,this._gl=this._gl+v|0,this._hl=this._hl+I|0,this._ah=this._ah+Q+V(this._al,Ce)|0,this._bh=this._bh+J+V(this._bl,M)|0,this._ch=this._ch+ee+V(this._cl,i)|0,this._dh=this._dh+me+V(this._dl,a)|0,this._eh=this._eh+re+V(this._el,f)|0,this._fh=this._fh+ie+V(this._fl,l)|0,this._gh=this._gh+se+V(this._gl,v)|0,this._hh=this._hh+ce+V(this._hl,I)|0},y.prototype._hash=function(){var Y=_.allocUnsafe(64);function j(Q,J,ee){Y.writeInt32BE(Q,ee),Y.writeInt32BE(J,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),Y},We.exports=y},8012:function(We,q,m){!function(t){"use strict";var e={};We.exports?(e.bytesToHex=m(6128).bytesToHex,e.convertString=m(5612),We.exports=P):(e.bytesToHex=t.convertHex.bytesToHex,e.convertString=t.convertString,t.sha256=P);var _=[];!function(){function d(D){for(var H=Math.sqrt(D),V=2;V<=H;V++)if(!(D%V))return!1;return!0}for(var C=2,L=0;L<64;)d(C)&&(_[L]=4294967296*((D=Math.pow(C,1/3))-(0|D))|0,L++),C++;var D}();var T=function(d){for(var w=[],C=0,L=0;C>>5]|=d[C]<<24-L%32;return w},s=function(d){for(var w=[],C=0;C<32*d.length;C+=8)w.push(d[C>>>5]>>>24-C%32&255);return w},y=[],h=function(d,w,C){for(var L=d[0],D=d[1],H=d[2],V=d[3],Y=d[4],j=d[5],Q=d[6],J=d[7],ee=0;ee<64;ee++){if(ee<16)y[ee]=0|w[C+ee];else{var me=y[ee-15],ie=y[ee-2];y[ee]=((me<<25|me>>>7)^(me<<14|me>>>18)^me>>>3)+y[ee-7]+((ie<<15|ie>>>17)^(ie<<13|ie>>>19)^ie>>>10)+y[ee-16]}var Ce=L&D^L&H^D&H,a=J+((Y<<26|Y>>>6)^(Y<<21|Y>>>11)^(Y<<7|Y>>>25))+(Y&j^~Y&Q)+_[ee]+y[ee];J=Q,Q=j,j=Y,Y=V+a|0,V=H,H=D,D=L,L=a+(((L<<30|L>>>2)^(L<<19|L>>>13)^(L<<10|L>>>22))+Ce)|0}d[0]=d[0]+L|0,d[1]=d[1]+D|0,d[2]=d[2]+H|0,d[3]=d[3]+V|0,d[4]=d[4]+Y|0,d[5]=d[5]+j|0,d[6]=d[6]+Q|0,d[7]=d[7]+J|0};function P(d,w){d.constructor===String&&(d=e.convertString.UTF8.stringToBytes(d));var C=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],L=T(d),D=8*d.length;L[D>>5]|=128<<24-D%32,L[15+(D+64>>9<<4)]=D;for(var H=0;H{We.exports=_;var t=m(9069).EventEmitter;function _(){t.call(this)}m(3894)(_,t),_.Readable=m(3154),_.Writable=m(520),_.Duplex=m(1339),_.Transform=m(6025),_.PassThrough=m(6071),_.finished=m(7542),_.pipeline=m(954),_.Stream=_,_.prototype.pipe=function(T,s){var y=this;function h(H){T.writable&&!1===T.write(H)&&y.pause&&y.pause()}function P(){y.readable&&y.resume&&y.resume()}y.on("data",h),T.on("drain",P),!T._isStdio&&(!s||!1!==s.end)&&(y.on("end",w),y.on("close",C));var d=!1;function w(){d||(d=!0,T.end())}function C(){d||(d=!0,"function"==typeof T.destroy&&T.destroy())}function L(H){if(D(),0===t.listenerCount(this,"error"))throw H}function D(){y.removeListener("data",h),T.removeListener("drain",P),y.removeListener("end",w),y.removeListener("close",C),y.removeListener("error",L),T.removeListener("error",L),y.removeListener("end",D),y.removeListener("close",D),T.removeListener("close",D)}return y.on("error",L),T.on("error",L),y.on("end",D),y.on("close",D),T.on("close",D),T.emit("pipe",y),T}},3054:(We,q,m)=>{"use strict";var t=m(3502).Buffer,e=t.isEncoding||function(Q){switch((Q=""+Q)&&Q.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 s(Q){var J;switch(this.encoding=function T(Q){var J=function _(Q){if(!Q)return"utf8";for(var J;;)switch(Q){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 Q;default:if(J)return;Q=(""+Q).toLowerCase(),J=!0}}(Q);if("string"!=typeof J&&(t.isEncoding===e||!e(Q)))throw new Error("Unknown encoding: "+Q);return J||Q}(Q),this.encoding){case"utf16le":this.text=L,this.end=D,J=4;break;case"utf8":this.fillLast=d,J=4;break;case"base64":this.text=H,this.end=V,J=3;break;default:return this.write=Y,void(this.end=j)}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(J)}function y(Q){return Q<=127?0:Q>>5==6?2:Q>>4==14?3:Q>>3==30?4:Q>>6==2?-1:-2}function d(Q){var J=this.lastTotal-this.lastNeed,ee=function P(Q,J,ee){if(128!=(192&J[0]))return Q.lastNeed=0,"\ufffd";if(Q.lastNeed>1&&J.length>1){if(128!=(192&J[1]))return Q.lastNeed=1,"\ufffd";if(Q.lastNeed>2&&J.length>2&&128!=(192&J[2]))return Q.lastNeed=2,"\ufffd"}}(this,Q);return void 0!==ee?ee:this.lastNeed<=Q.length?(Q.copy(this.lastChar,J,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(Q.copy(this.lastChar,J,0,Q.length),void(this.lastNeed-=Q.length))}function L(Q,J){if((Q.length-J)%2==0){var ee=Q.toString("utf16le",J);if(ee){var me=ee.charCodeAt(ee.length-1);if(me>=55296&&me<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Q[Q.length-2],this.lastChar[1]=Q[Q.length-1],ee.slice(0,-1)}return ee}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Q[Q.length-1],Q.toString("utf16le",J,Q.length-1)}function D(Q){var J=Q&&Q.length?this.write(Q):"";return this.lastNeed?J+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):J}function H(Q,J){var ee=(Q.length-J)%3;return 0===ee?Q.toString("base64",J):(this.lastNeed=3-ee,this.lastTotal=3,1===ee?this.lastChar[0]=Q[Q.length-1]:(this.lastChar[0]=Q[Q.length-2],this.lastChar[1]=Q[Q.length-1]),Q.toString("base64",J,Q.length-ee))}function V(Q){var J=Q&&Q.length?this.write(Q):"";return this.lastNeed?J+this.lastChar.toString("base64",0,3-this.lastNeed):J}function Y(Q){return Q.toString(this.encoding)}function j(Q){return Q&&Q.length?this.write(Q):""}q.s=s,s.prototype.write=function(Q){if(0===Q.length)return"";var J,ee;if(this.lastNeed){if(void 0===(J=this.fillLast(Q)))return"";ee=this.lastNeed,this.lastNeed=0}else ee=0;return ee=0?(re>0&&(Q.lastNeed=re-1),re):--me=0?(re>0&&(Q.lastNeed=re-2),re):--me=0?(re>0&&(2===re?re=0:Q.lastNeed=re-3),re):0}(this,Q,J);if(!this.lastNeed)return Q.toString("utf8",J);this.lastTotal=ee;var me=Q.length-(ee-this.lastNeed);return Q.copy(this.lastChar,0,me),Q.toString("utf8",J,me)},s.prototype.fillLast=function(Q){if(this.lastNeed<=Q.length)return Q.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Q.copy(this.lastChar,this.lastTotal-this.lastNeed,0,Q.length),this.lastNeed-=Q.length}},2167:(We,q,m)=>{var t=m(4606);q.encode=t.encode,q.decode=t.decode},4606:(We,q)=>{"use strict";var t=[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(_){Buffer.isBuffer(_)||(_=new Buffer(_));for(var T=0,s=0,y=0,h=0,P=new Buffer(8*function e(_){var T=Math.floor(_.length/5);return _.length%5==0?T:T+1}(_));T<_.length;){var d=_[T];y>3?(h=(h=d&255>>y)<<(y=(y+5)%8)|(T+1<_.length?_[T+1]:0)>>8-y,T++):(h=d>>8-(y+5)&31,0==(y=(y+5)%8)&&T++),P[s]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(h),s++}for(T=s;T>>(T=(T+5)%8),h++,y=255&s<<8-T)}return P.slice(0,h)}},4364:We=>{function m(t){try{if(!global.localStorage)return!1}catch{return!1}var e=global.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}We.exports=function q(t,e){if(m("noDeprecation"))return t;var _=!1;return function T(){if(!_){if(m("throwDeprecation"))throw new Error(e);m("traceDeprecation")?console.trace(e):console.warn(e),_=!0}return t.apply(this,arguments)}}},950:()=>{},6601:()=>{},8623:()=>{},7748:()=>{},5568:()=>{},6619:()=>{},7108:()=>{},2361:()=>{},4616:()=>{},7340:(We,q,m)=>{"use strict";m.d(q,{F4:()=>w,IO:()=>V,LC:()=>e,SB:()=>d,X$:()=>T,ZE:()=>J,ZN:()=>Q,_j:()=>t,eR:()=>C,jt:()=>s,k1:()=>ee,l3:()=>_,oB:()=>P,pV:()=>D,ru:()=>y,vP:()=>h});class t{}class e{}const _="*";function T(me,re){return{type:7,name:me,definitions:re,options:{}}}function s(me,re=null){return{type:4,styles:re,timings:me}}function y(me,re=null){return{type:3,steps:me,options:re}}function h(me,re=null){return{type:2,steps:me,options:re}}function P(me){return{type:6,styles:me,offset:null}}function d(me,re,ie){return{type:0,name:me,styles:re,options:ie}}function w(me){return{type:5,steps:me}}function C(me,re,ie=null){return{type:1,expr:me,animation:re,options:ie}}function D(me=null){return{type:9,options:me}}function V(me,re,ie=null){return{type:11,selector:me,animation:re,options:ie}}function j(me){Promise.resolve().then(me)}class Q{constructor(re=0,ie=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=re+ie}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(re=>re()),this._onDoneFns=[])}onStart(re){this._originalOnStartFns.push(re),this._onStartFns.push(re)}onDone(re){this._originalOnDoneFns.push(re),this._onDoneFns.push(re)}onDestroy(re){this._onDestroyFns.push(re)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){j(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(re=>re()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(re=>re()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(re){this._position=this.totalTime?re*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(re){const ie="start"==re?this._onStartFns:this._onDoneFns;ie.forEach(se=>se()),ie.length=0}}class J{constructor(re){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=re;let ie=0,se=0,ce=0;const Ce=this.players.length;0==Ce?j(()=>this._onFinish()):this.players.forEach(M=>{M.onDone(()=>{++ie==Ce&&this._onFinish()}),M.onDestroy(()=>{++se==Ce&&this._onDestroy()}),M.onStart(()=>{++ce==Ce&&this._onStart()})}),this.totalTime=this.players.reduce((M,i)=>Math.max(M,i.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(re=>re()),this._onDoneFns=[])}init(){this.players.forEach(re=>re.init())}onStart(re){this._onStartFns.push(re)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(re=>re()),this._onStartFns=[])}onDone(re){this._onDoneFns.push(re)}onDestroy(re){this._onDestroyFns.push(re)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(re=>re.play())}pause(){this.players.forEach(re=>re.pause())}restart(){this.players.forEach(re=>re.restart())}finish(){this._onFinish(),this.players.forEach(re=>re.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(re=>re.destroy()),this._onDestroyFns.forEach(re=>re()),this._onDestroyFns=[])}reset(){this.players.forEach(re=>re.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(re){const ie=re*this.totalTime;this.players.forEach(se=>{const ce=se.totalTime?Math.min(1,ie/se.totalTime):1;se.setPosition(ce)})}getPosition(){const re=this.players.reduce((ie,se)=>null===ie||se.totalTime>ie.totalTime?se:ie,null);return null!=re?re.getPosition():0}beforeDestroy(){this.players.forEach(re=>{re.beforeDestroy&&re.beforeDestroy()})}triggerCallback(re){const ie="start"==re?this._onStartFns:this._onDoneFns;ie.forEach(se=>se()),ie.length=0}}const ee="!"},4761:(We,q,m)=>{"use strict";m.d(q,{$s:()=>i,Em:()=>I,Kd:()=>qe,X6:()=>Qe,ic:()=>x,kH:()=>it,mK:()=>Fe,qV:()=>oe,qm:()=>Nt,rt:()=>Gt,s1:()=>v,tE:()=>Tt,yG:()=>Pe});var t=m(6895),e=m(4650),_=m(3353),T=m(7579),s=m(727),y=m(1135),h=m(9646),P=m(9521),d=m(8505),w=m(8372),C=m(9300),L=m(4004),D=m(5698),H=m(5684),V=m(1884),Y=m(2722),j=m(1281),Q=m(9643),J=m(2289);function ie(ke,$){return(ke.getAttribute($)||"").match(/\S+/g)||[]}const ce="cdk-describedby-message",Ce="cdk-describedby-host";let M=0,i=(()=>{class ke{constructor(ue,Le){this._platform=Le,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+M++,this._document=ue,this._id=(0,e.f3M)(e.AFp)+"-"+M++}describe(ue,Le,Je){if(!this._canBeDescribed(ue,Le))return;const $t=a(Le,Je);"string"!=typeof Le?(f(Le,this._id),this._messageRegistry.set($t,{messageElement:Le,referenceCount:0})):this._messageRegistry.has($t)||this._createMessageElement(Le,Je),this._isElementDescribedByMessage(ue,$t)||this._addMessageReference(ue,$t)}removeDescription(ue,Le,Je){if(!Le||!this._isElementNode(ue))return;const $t=a(Le,Je);if(this._isElementDescribedByMessage(ue,$t)&&this._removeMessageReference(ue,$t),"string"==typeof Le){const Vt=this._messageRegistry.get($t);Vt&&0===Vt.referenceCount&&this._deleteMessageElement($t)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const ue=this._document.querySelectorAll(`[${Ce}="${this._id}"]`);for(let Le=0;Le0!=Je.indexOf(ce));ue.setAttribute("aria-describedby",Le.join(" "))}_addMessageReference(ue,Le){const Je=this._messageRegistry.get(Le);(function me(ke,$,ue){const Le=ie(ke,$);Le.some(Je=>Je.trim()==ue.trim())||(Le.push(ue.trim()),ke.setAttribute($,Le.join(" ")))})(ue,"aria-describedby",Je.messageElement.id),ue.setAttribute(Ce,this._id),Je.referenceCount++}_removeMessageReference(ue,Le){const Je=this._messageRegistry.get(Le);Je.referenceCount--,function re(ke,$,ue){const Je=ie(ke,$).filter($t=>$t!=ue.trim());Je.length?ke.setAttribute($,Je.join(" ")):ke.removeAttribute($)}(ue,"aria-describedby",Je.messageElement.id),ue.removeAttribute(Ce)}_isElementDescribedByMessage(ue,Le){const Je=ie(ue,"aria-describedby"),$t=this._messageRegistry.get(Le),Vt=$t&&$t.messageElement.id;return!!Vt&&-1!=Je.indexOf(Vt)}_canBeDescribed(ue,Le){if(!this._isElementNode(ue))return!1;if(Le&&"object"==typeof Le)return!0;const Je=null==Le?"":`${Le}`.trim(),$t=ue.getAttribute("aria-label");return!(!Je||$t&&$t.trim()===Je)}_isElementNode(ue){return ue.nodeType===this._document.ELEMENT_NODE}}return ke.\u0275fac=function(ue){return new(ue||ke)(e.LFG(t.K0),e.LFG(_.t4))},ke.\u0275prov=e.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})();function a(ke,$){return"string"==typeof ke?`${$||""}/${ke}`:ke}function f(ke,$){ke.id||(ke.id=`${ce}-${$}-${M++}`)}class l{constructor($){this._items=$,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new T.x,this._typeaheadSubscription=s.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=ue=>ue.disabled,this._pressedLetters=[],this.tabOut=new T.x,this.change=new T.x,$ instanceof e.n_E&&(this._itemChangesSubscription=$.changes.subscribe(ue=>{if(this._activeItem){const Je=ue.toArray().indexOf(this._activeItem);Je>-1&&Je!==this._activeItemIndex&&(this._activeItemIndex=Je)}}))}skipPredicate($){return this._skipPredicateFn=$,this}withWrap($=!0){return this._wrap=$,this}withVerticalOrientation($=!0){return this._vertical=$,this}withHorizontalOrientation($){return this._horizontal=$,this}withAllowedModifierKeys($){return this._allowedModifierKeys=$,this}withTypeAhead($=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,d.b)(ue=>this._pressedLetters.push(ue)),(0,w.b)($),(0,C.h)(()=>this._pressedLetters.length>0),(0,L.U)(()=>this._pressedLetters.join(""))).subscribe(ue=>{const Le=this._getItemsArray();for(let Je=1;Je!$[$t]||this._allowedModifierKeys.indexOf($t)>-1);switch(ue){case P.Mf:return void this.tabOut.next();case P.JH:if(this._vertical&&Je){this.setNextItemActive();break}return;case P.LH:if(this._vertical&&Je){this.setPreviousItemActive();break}return;case P.SV:if(this._horizontal&&Je){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case P.oh:if(this._horizontal&&Je){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case P.Sd:if(this._homeAndEnd&&Je){this.setFirstItemActive();break}return;case P.uR:if(this._homeAndEnd&&Je){this.setLastItemActive();break}return;case P.Ku:if(this._pageUpAndDown.enabled&&Je){const $t=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex($t>0?$t:0,1);break}return;case P.VM:if(this._pageUpAndDown.enabled&&Je){const $t=this._activeItemIndex+this._pageUpAndDown.delta,Vt=this._getItemsArray().length;this._setActiveItemByIndex($t=P.A&&ue<=P.Z||ue>=P.xE&&ue<=P.aO)&&this._letterKeyStream.next(String.fromCharCode(ue))))}this._pressedLetters=[],$.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($){const ue=this._getItemsArray(),Le="number"==typeof $?$:ue.indexOf($);this._activeItem=ue[Le]??null,this._activeItemIndex=Le}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta($){this._wrap?this._setActiveInWrapMode($):this._setActiveInDefaultMode($)}_setActiveInWrapMode($){const ue=this._getItemsArray();for(let Le=1;Le<=ue.length;Le++){const Je=(this._activeItemIndex+$*Le+ue.length)%ue.length;if(!this._skipPredicateFn(ue[Je]))return void this.setActiveItem(Je)}}_setActiveInDefaultMode($){this._setActiveItemByIndex(this._activeItemIndex+$,$)}_setActiveItemByIndex($,ue){const Le=this._getItemsArray();if(Le[$]){for(;this._skipPredicateFn(Le[$]);)if(!Le[$+=ue])return;this.setActiveItem($)}}_getItemsArray(){return this._items instanceof e.n_E?this._items.toArray():this._items}}class v extends l{setActiveItem($){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem($),this.activeItem&&this.activeItem.setActiveStyles()}}class I extends l{constructor(){super(...arguments),this._origin="program"}setFocusOrigin($){return this._origin=$,this}setActiveItem($){super.setActiveItem($),this.activeItem&&this.activeItem.focus(this._origin)}}let x=(()=>{class ke{constructor(ue){this._platform=ue}isDisabled(ue){return ue.hasAttribute("disabled")}isVisible(ue){return function g(ke){return!!(ke.offsetWidth||ke.offsetHeight||"function"==typeof ke.getClientRects&&ke.getClientRects().length)}(ue)&&"visible"===getComputedStyle(ue).visibility}isTabbable(ue){if(!this._platform.isBrowser)return!1;const Le=function n(ke){try{return ke.frameElement}catch{return null}}(function fe(ke){return ke.ownerDocument&&ke.ownerDocument.defaultView||window}(ue));if(Le&&(-1===at(Le)||!this.isVisible(Le)))return!1;let Je=ue.nodeName.toLowerCase(),$t=at(ue);return ue.hasAttribute("contenteditable")?-1!==$t:!("iframe"===Je||"object"===Je||this._platform.WEBKIT&&this._platform.IOS&&!function ye(ke){let $=ke.nodeName.toLowerCase(),ue="input"===$&&ke.type;return"text"===ue||"password"===ue||"select"===$||"textarea"===$}(ue))&&("audio"===Je?!!ue.hasAttribute("controls")&&-1!==$t:"video"===Je?-1!==$t&&(null!==$t||this._platform.FIREFOX||ue.hasAttribute("controls")):ue.tabIndex>=0)}isFocusable(ue,Le){return function xe(ke){return!function O(ke){return function ge(ke){return"input"==ke.nodeName.toLowerCase()}(ke)&&"hidden"==ke.type}(ke)&&(function W(ke){let $=ke.nodeName.toLowerCase();return"input"===$||"select"===$||"button"===$||"textarea"===$}(ke)||function G(ke){return function nt(ke){return"a"==ke.nodeName.toLowerCase()}(ke)&&ke.hasAttribute("href")}(ke)||ke.hasAttribute("contenteditable")||Ue(ke))}(ue)&&!this.isDisabled(ue)&&(Le?.ignoreVisibility||this.isVisible(ue))}}return ke.\u0275fac=function(ue){return new(ue||ke)(e.LFG(_.t4))},ke.\u0275prov=e.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})();function Ue(ke){if(!ke.hasAttribute("tabindex")||void 0===ke.tabIndex)return!1;let $=ke.getAttribute("tabindex");return!(!$||isNaN(parseInt($,10)))}function at(ke){if(!Ue(ke))return null;const $=parseInt(ke.getAttribute("tabindex")||"",10);return isNaN($)?-1:$}class Oe{get enabled(){return this._enabled}set enabled($){this._enabled=$,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex($,this._startAnchor),this._toggleAnchorTabIndex($,this._endAnchor))}constructor($,ue,Le,Je,$t=!1){this._element=$,this._checker=ue,this._ngZone=Le,this._document=Je,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,$t||this.attachAnchors()}destroy(){const $=this._startAnchor,ue=this._endAnchor;$&&($.removeEventListener("focus",this.startAnchorListener),$.remove()),ue&&(ue.removeEventListener("focus",this.endAnchorListener),ue.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($){return new Promise(ue=>{this._executeOnStable(()=>ue(this.focusInitialElement($)))})}focusFirstTabbableElementWhenReady($){return new Promise(ue=>{this._executeOnStable(()=>ue(this.focusFirstTabbableElement($)))})}focusLastTabbableElementWhenReady($){return new Promise(ue=>{this._executeOnStable(()=>ue(this.focusLastTabbableElement($)))})}_getRegionBoundary($){const ue=this._element.querySelectorAll(`[cdk-focus-region-${$}], [cdkFocusRegion${$}], [cdk-focus-${$}]`);return"start"==$?ue.length?ue[0]:this._getFirstTabbableElement(this._element):ue.length?ue[ue.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement($){const ue=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(ue){if(!this._checker.isFocusable(ue)){const Le=this._getFirstTabbableElement(ue);return Le?.focus($),!!Le}return ue.focus($),!0}return this.focusFirstTabbableElement($)}focusFirstTabbableElement($){const ue=this._getRegionBoundary("start");return ue&&ue.focus($),!!ue}focusLastTabbableElement($){const ue=this._getRegionBoundary("end");return ue&&ue.focus($),!!ue}hasAttached(){return this._hasAttached}_getFirstTabbableElement($){if(this._checker.isFocusable($)&&this._checker.isTabbable($))return $;const ue=$.children;for(let Le=0;Le=0;Le--){const Je=ue[Le].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(ue[Le]):null;if(Je)return Je}return null}_createAnchor(){const $=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,$),$.classList.add("cdk-visually-hidden"),$.classList.add("cdk-focus-trap-anchor"),$.setAttribute("aria-hidden","true"),$}_toggleAnchorTabIndex($,ue){$?ue.setAttribute("tabindex","0"):ue.removeAttribute("tabindex")}toggleAnchors($){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex($,this._startAnchor),this._toggleAnchorTabIndex($,this._endAnchor))}_executeOnStable($){this._ngZone.isStable?$():this._ngZone.onStable.pipe((0,D.q)(1)).subscribe($)}}let oe=(()=>{class ke{constructor(ue,Le,Je){this._checker=ue,this._ngZone=Le,this._document=Je}create(ue,Le=!1){return new Oe(ue,this._checker,this._ngZone,this._document,Le)}}return ke.\u0275fac=function(ue){return new(ue||ke)(e.LFG(x),e.LFG(e.R0b),e.LFG(t.K0))},ke.\u0275prov=e.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),Fe=(()=>{class ke{get enabled(){return this.focusTrap.enabled}set enabled(ue){this.focusTrap.enabled=(0,j.Ig)(ue)}get autoCapture(){return this._autoCapture}set autoCapture(ue){this._autoCapture=(0,j.Ig)(ue)}constructor(ue,Le,Je){this._elementRef=ue,this._focusTrapFactory=Le,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(ue){const Le=ue.autoCapture;Le&&!Le.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,_.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return ke.\u0275fac=function(ue){return new(ue||ke)(e.Y36(e.SBq),e.Y36(oe),e.Y36(t.K0))},ke.\u0275dir=e.lG2({type:ke,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[e.TTD]}),ke})();function Qe(ke){return 0===ke.buttons||0===ke.offsetX&&0===ke.offsetY}function Pe(ke){const $=ke.touches&&ke.touches[0]||ke.changedTouches&&ke.changedTouches[0];return!(!$||-1!==$.identifier||null!=$.radiusX&&1!==$.radiusX||null!=$.radiusY&&1!==$.radiusY)}const de=new e.OlP("cdk-input-modality-detector-options"),rt={ignoreKeys:[P.zL,P.jx,P.b2,P.MW,P.JU]},lt=(0,_.i$)({passive:!0,capture:!0});let Ut=(()=>{class ke{get mostRecentModality(){return this._modality.value}constructor(ue,Le,Je,$t){this._platform=ue,this._mostRecentTarget=null,this._modality=new y.X(null),this._lastTouchMs=0,this._onKeydown=Vt=>{this._options?.ignoreKeys?.some(ii=>ii===Vt.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,_.sA)(Vt))},this._onMousedown=Vt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Qe(Vt)?"keyboard":"mouse"),this._mostRecentTarget=(0,_.sA)(Vt))},this._onTouchstart=Vt=>{Pe(Vt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,_.sA)(Vt))},this._options={...rt,...$t},this.modalityDetected=this._modality.pipe((0,H.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,V.x)()),ue.isBrowser&&Le.runOutsideAngular(()=>{Je.addEventListener("keydown",this._onKeydown,lt),Je.addEventListener("mousedown",this._onMousedown,lt),Je.addEventListener("touchstart",this._onTouchstart,lt)})}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 ke.\u0275fac=function(ue){return new(ue||ke)(e.LFG(_.t4),e.LFG(e.R0b),e.LFG(t.K0),e.LFG(de,8))},ke.\u0275prov=e.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})();const ht=new e.OlP("liveAnnouncerElement",{providedIn:"root",factory:function Ge(){return null}}),yt=new e.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let be=0,qe=(()=>{class ke{constructor(ue,Le,Je,$t){this._ngZone=Le,this._defaultOptions=$t,this._document=Je,this._liveElement=ue||this._createLiveElement()}announce(ue,...Le){const Je=this._defaultOptions;let $t,Vt;return 1===Le.length&&"number"==typeof Le[0]?Vt=Le[0]:[$t,Vt]=Le,this.clear(),clearTimeout(this._previousTimeout),$t||($t=Je&&Je.politeness?Je.politeness:"polite"),null==Vt&&Je&&(Vt=Je.duration),this._liveElement.setAttribute("aria-live",$t),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(ii=>this._currentResolve=ii)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=ue,"number"==typeof Vt&&(this._previousTimeout=setTimeout(()=>this.clear(),Vt)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const ue="cdk-live-announcer-element",Le=this._document.getElementsByClassName(ue),Je=this._document.createElement("div");for(let $t=0;$t .cdk-overlay-container [aria-modal="true"]');for(let Je=0;Je{class ke{constructor(ue,Le,Je,$t,Vt){this._ngZone=ue,this._platform=Le,this._inputModalityDetector=Je,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=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new T.x,this._rootNodeFocusAndBlurListener=ii=>{for(let ot=(0,_.sA)(ii);ot;ot=ot.parentElement)"focus"===ii.type?this._onFocus(ii,ot):this._onBlur(ii,ot)},this._document=$t,this._detectionMode=Vt?.detectionMode||0}monitor(ue,Le=!1){const Je=(0,j.fI)(ue);if(!this._platform.isBrowser||1!==Je.nodeType)return(0,h.of)(null);const $t=(0,_.kV)(Je)||this._getDocument(),Vt=this._elementInfo.get(Je);if(Vt)return Le&&(Vt.checkChildren=!0),Vt.subject;const ii={checkChildren:Le,subject:new T.x,rootNode:$t};return this._elementInfo.set(Je,ii),this._registerGlobalListeners(ii),ii.subject}stopMonitoring(ue){const Le=(0,j.fI)(ue),Je=this._elementInfo.get(Le);Je&&(Je.subject.complete(),this._setClasses(Le),this._elementInfo.delete(Le),this._removeGlobalListeners(Je))}focusVia(ue,Le,Je){const $t=(0,j.fI)(ue);$t===this._getDocument().activeElement?this._getClosestElementsInfo($t).forEach(([ii,pt])=>this._originChanged(ii,Le,pt)):(this._setOrigin(Le),"function"==typeof $t.focus&&$t.focus(Je))}ngOnDestroy(){this._elementInfo.forEach((ue,Le)=>this.stopMonitoring(Le))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(ue){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(ue)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:ue&&this._isLastInteractionFromInputLabel(ue)?"mouse":"program"}_shouldBeAttributedToTouch(ue){return 1===this._detectionMode||!!ue?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(ue,Le){ue.classList.toggle("cdk-focused",!!Le),ue.classList.toggle("cdk-touch-focused","touch"===Le),ue.classList.toggle("cdk-keyboard-focused","keyboard"===Le),ue.classList.toggle("cdk-mouse-focused","mouse"===Le),ue.classList.toggle("cdk-program-focused","program"===Le)}_setOrigin(ue,Le=!1){this._ngZone.runOutsideAngular(()=>{this._origin=ue,this._originFromTouchInteraction="touch"===ue&&Le,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(ue,Le){const Je=this._elementInfo.get(Le),$t=(0,_.sA)(ue);!Je||!Je.checkChildren&&Le!==$t||this._originChanged(Le,this._getFocusOrigin($t),Je)}_onBlur(ue,Le){const Je=this._elementInfo.get(Le);!Je||Je.checkChildren&&ue.relatedTarget instanceof Node&&Le.contains(ue.relatedTarget)||(this._setClasses(Le),this._emitOrigin(Je,null))}_emitOrigin(ue,Le){ue.subject.observers.length&&this._ngZone.run(()=>ue.subject.next(Le))}_registerGlobalListeners(ue){if(!this._platform.isBrowser)return;const Le=ue.rootNode,Je=this._rootNodeFocusListenerCount.get(Le)||0;Je||this._ngZone.runOutsideAngular(()=>{Le.addEventListener("focus",this._rootNodeFocusAndBlurListener,mt),Le.addEventListener("blur",this._rootNodeFocusAndBlurListener,mt)}),this._rootNodeFocusListenerCount.set(Le,Je+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,Y.R)(this._stopInputModalityDetector)).subscribe($t=>{this._setOrigin($t,!0)}))}_removeGlobalListeners(ue){const Le=ue.rootNode;if(this._rootNodeFocusListenerCount.has(Le)){const Je=this._rootNodeFocusListenerCount.get(Le);Je>1?this._rootNodeFocusListenerCount.set(Le,Je-1):(Le.removeEventListener("focus",this._rootNodeFocusAndBlurListener,mt),Le.removeEventListener("blur",this._rootNodeFocusAndBlurListener,mt),this._rootNodeFocusListenerCount.delete(Le))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(ue,Le,Je){this._setClasses(ue,Le),this._emitOrigin(Je,Le),this._lastFocusOrigin=Le}_getClosestElementsInfo(ue){const Le=[];return this._elementInfo.forEach((Je,$t)=>{($t===ue||Je.checkChildren&&$t.contains(ue))&&Le.push([$t,Je])}),Le}_isLastInteractionFromInputLabel(ue){const{_mostRecentTarget:Le,mostRecentModality:Je}=this._inputModalityDetector;if("mouse"!==Je||!Le||Le===ue||"INPUT"!==ue.nodeName&&"TEXTAREA"!==ue.nodeName||ue.disabled)return!1;const $t=ue.labels;if($t)for(let Vt=0;Vt<$t.length;Vt++)if($t[Vt].contains(Le))return!0;return!1}}return ke.\u0275fac=function(ue){return new(ue||ke)(e.LFG(e.R0b),e.LFG(_.t4),e.LFG(Ut),e.LFG(t.K0,8),e.LFG(X,8))},ke.\u0275prov=e.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),it=(()=>{class ke{constructor(ue,Le){this._elementRef=ue,this._focusMonitor=Le,this._focusOrigin=null,this.cdkFocusChange=new e.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const ue=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(ue,1===ue.nodeType&&ue.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(Le=>{this._focusOrigin=Le,this.cdkFocusChange.emit(Le)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return ke.\u0275fac=function(ue){return new(ue||ke)(e.Y36(e.SBq),e.Y36(Tt))},ke.\u0275dir=e.lG2({type:ke,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),ke})();const je="cdk-high-contrast-black-on-white",zt="cdk-high-contrast-white-on-black",xt="cdk-high-contrast-active";let Nt=(()=>{class ke{constructor(ue,Le){this._platform=ue,this._document=Le,this._breakpointSubscription=(0,e.f3M)(J.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const ue=this._document.createElement("div");ue.style.backgroundColor="rgb(1,2,3)",ue.style.position="absolute",this._document.body.appendChild(ue);const Le=this._document.defaultView||window,Je=Le&&Le.getComputedStyle?Le.getComputedStyle(ue):null,$t=(Je&&Je.backgroundColor||"").replace(/ /g,"");switch(ue.remove(),$t){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const ue=this._document.body.classList;ue.remove(xt,je,zt),this._hasCheckedHighContrastMode=!0;const Le=this.getHighContrastMode();1===Le?ue.add(xt,je):2===Le&&ue.add(xt,zt)}}}return ke.\u0275fac=function(ue){return new(ue||ke)(e.LFG(_.t4),e.LFG(t.K0))},ke.\u0275prov=e.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),Gt=(()=>{class ke{constructor(ue){ue._applyBodyHighContrastModeCssClasses()}}return ke.\u0275fac=function(ue){return new(ue||ke)(e.LFG(Nt))},ke.\u0275mod=e.oAB({type:ke}),ke.\u0275inj=e.cJS({imports:[Q.Q8]}),ke})()},445:(We,q,m)=>{"use strict";m.d(q,{Is:()=>h,vT:()=>d});var t=m(4650),e=m(6895);const _=new t.OlP("cdk-dir-doc",{providedIn:"root",factory:function T(){return(0,t.f3M)(e.K0)}}),s=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let h=(()=>{class w{constructor(L){this.value="ltr",this.change=new t.vpe,L&&(this.value=function y(w){const C=w?.toLowerCase()||"";return"auto"===C&&typeof navigator<"u"&&navigator?.language?s.test(navigator.language)?"rtl":"ltr":"rtl"===C?"rtl":"ltr"}((L.body?L.body.dir:null)||(L.documentElement?L.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return w.\u0275fac=function(L){return new(L||w)(t.LFG(_,8))},w.\u0275prov=t.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})(),d=(()=>{class w{}return w.\u0275fac=function(L){return new(L||w)},w.\u0275mod=t.oAB({type:w}),w.\u0275inj=t.cJS({}),w})()},1281:(We,q,m)=>{"use strict";m.d(q,{Eq:()=>s,HM:()=>y,Ig:()=>e,du:()=>P,fI:()=>h,su:()=>_,t6:()=>T});var t=m(4650);function e(d){return null!=d&&"false"!=`${d}`}function _(d,w=0){return T(d)?Number(d):w}function T(d){return!isNaN(parseFloat(d))&&!isNaN(Number(d))}function s(d){return Array.isArray(d)?d:[d]}function y(d){return null==d?"":"string"==typeof d?d:`${d}px`}function h(d){return d instanceof t.SBq?d.nativeElement:d}function P(d,w=/\s+/){const C=[];if(null!=d){const L=Array.isArray(d)?d:`${d}`.split(w);for(const D of L){const H=`${D}`.trim();H&&C.push(H)}}return C}},5017:(We,q,m)=>{"use strict";m.d(q,{A8:()=>C,Ov:()=>d,Z9:()=>s,eX:()=>P,k:()=>L,o2:()=>T,yy:()=>h});var t=m(4033),e=m(7579),_=m(4650);class T{}function s(D){return D&&"function"==typeof D.connect&&!(D instanceof t.c)}class h{applyChanges(H,V,Y,j,Q){H.forEachOperation((J,ee,me)=>{let re,ie;if(null==J.previousIndex){const se=Y(J,ee,me);re=V.createEmbeddedView(se.templateRef,se.context,se.index),ie=1}else null==me?(V.remove(ee),ie=3):(re=V.get(ee),V.move(re,me),ie=2);Q&&Q({context:re?.context,operation:ie,record:J})})}detach(){}}class P{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(H,V,Y,j,Q){H.forEachOperation((J,ee,me)=>{let re,ie;null==J.previousIndex?(re=this._insertView(()=>Y(J,ee,me),me,V,j(J)),ie=re?1:0):null==me?(this._detachAndCacheView(ee,V),ie=3):(re=this._moveView(ee,me,V,j(J)),ie=2),Q&&Q({context:re?.context,operation:ie,record:J})})}detach(){for(const H of this._viewCache)H.destroy();this._viewCache=[]}_insertView(H,V,Y,j){const Q=this._insertViewFromCache(V,Y);if(Q)return void(Q.context.$implicit=j);const J=H();return Y.createEmbeddedView(J.templateRef,J.context,J.index)}_detachAndCacheView(H,V){const Y=V.detach(H);this._maybeCacheView(Y,V)}_moveView(H,V,Y,j){const Q=Y.get(H);return Y.move(Q,V),Q.context.$implicit=j,Q}_maybeCacheView(H,V){if(this._viewCache.lengththis._markSelected(Q)):this._markSelected(V[0]),this._selectedToEmit.length=0)}select(...H){this._verifyValueAssignment(H),H.forEach(Y=>this._markSelected(Y));const V=this._hasQueuedChanges();return this._emitChangeEvent(),V}deselect(...H){this._verifyValueAssignment(H),H.forEach(Y=>this._unmarkSelected(Y));const V=this._hasQueuedChanges();return this._emitChangeEvent(),V}setSelection(...H){this._verifyValueAssignment(H);const V=this.selected,Y=new Set(H);H.forEach(Q=>this._markSelected(Q)),V.filter(Q=>!Y.has(Q)).forEach(Q=>this._unmarkSelected(Q));const j=this._hasQueuedChanges();return this._emitChangeEvent(),j}toggle(H){return this.isSelected(H)?this.deselect(H):this.select(H)}clear(H=!0){this._unmarkAll();const V=this._hasQueuedChanges();return H&&this._emitChangeEvent(),V}isSelected(H){return this._selection.has(this._getConcreteValue(H))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(H){this._multiple&&this.selected&&this._selected.sort(H)}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(H){H=this._getConcreteValue(H),this.isSelected(H)||(this._multiple||this._unmarkAll(),this.isSelected(H)||this._selection.add(H),this._emitChanges&&this._selectedToEmit.push(H))}_unmarkSelected(H){H=this._getConcreteValue(H),this.isSelected(H)&&(this._selection.delete(H),this._emitChanges&&this._deselectedToEmit.push(H))}_unmarkAll(){this.isEmpty()||this._selection.forEach(H=>this._unmarkSelected(H))}_verifyValueAssignment(H){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(H){if(this.compareWith){for(let V of this._selection)if(this.compareWith(H,V))return V;return H}return H}}let C=(()=>{class D{constructor(){this._listeners=[]}notify(V,Y){for(let j of this._listeners)j(V,Y)}listen(V){return this._listeners.push(V),()=>{this._listeners=this._listeners.filter(Y=>V!==Y)}}ngOnDestroy(){this._listeners=[]}}return D.\u0275fac=function(V){return new(V||D)},D.\u0275prov=_.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})();const L=new _.OlP("_ViewRepeater")},9521:(We,q,m)=>{"use strict";m.d(q,{A:()=>O,JH:()=>ee,JU:()=>y,K5:()=>s,Ku:()=>D,LH:()=>Q,L_:()=>L,MW:()=>yt,Mf:()=>_,SV:()=>J,Sd:()=>Y,VM:()=>H,Vb:()=>vi,Z:()=>Ge,ZH:()=>e,aO:()=>k,b2:()=>Ot,hY:()=>C,jx:()=>h,oh:()=>j,uR:()=>V,xE:()=>ce,yY:()=>se,zL:()=>P});const e=8,_=9,s=13,y=16,h=17,P=18,C=27,L=32,D=33,H=34,V=35,Y=36,j=37,Q=38,J=39,ee=40,se=46,ce=48,k=57,O=65,Ge=90,yt=91,Ot=224;function vi(li,...mi){return mi.length?mi.some(gi=>li[gi]):li.altKey||li.shiftKey||li.ctrlKey||li.metaKey}},2289:(We,q,m)=>{"use strict";m.d(q,{Yg:()=>ee,u3:()=>re,xu:()=>H});var t=m(4650),e=m(1281),_=m(7579),T=m(9841),s=m(7272),y=m(9751),h=m(5698),P=m(5684),d=m(8372),w=m(4004),C=m(8675),L=m(2722),D=m(3353);let H=(()=>{class ie{}return ie.\u0275fac=function(ce){return new(ce||ie)},ie.\u0275mod=t.oAB({type:ie}),ie.\u0275inj=t.cJS({}),ie})();const V=new Set;let Y,j=(()=>{class ie{constructor(ce){this._platform=ce,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):J}matchMedia(ce){return(this._platform.WEBKIT||this._platform.BLINK)&&function Q(ie){if(!V.has(ie))try{Y||(Y=document.createElement("style"),Y.setAttribute("type","text/css"),document.head.appendChild(Y)),Y.sheet&&(Y.sheet.insertRule(`@media ${ie} {body{ }}`,0),V.add(ie))}catch(se){console.error(se)}}(ce),this._matchMedia(ce)}}return ie.\u0275fac=function(ce){return new(ce||ie)(t.LFG(D.t4))},ie.\u0275prov=t.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})();function J(ie){return{matches:"all"===ie||""===ie,media:ie,addListener:()=>{},removeListener:()=>{}}}let ee=(()=>{class ie{constructor(ce,Ce){this._mediaMatcher=ce,this._zone=Ce,this._queries=new Map,this._destroySubject=new _.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(ce){return me((0,e.Eq)(ce)).some(M=>this._registerQuery(M).mql.matches)}observe(ce){const M=me((0,e.Eq)(ce)).map(a=>this._registerQuery(a).observable);let i=(0,T.a)(M);return i=(0,s.z)(i.pipe((0,h.q)(1)),i.pipe((0,P.T)(1),(0,d.b)(0))),i.pipe((0,w.U)(a=>{const f={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:v})=>{f.matches=f.matches||l,f.breakpoints[v]=l}),f}))}_registerQuery(ce){if(this._queries.has(ce))return this._queries.get(ce);const Ce=this._mediaMatcher.matchMedia(ce),i={observable:new y.y(a=>{const f=l=>this._zone.run(()=>a.next(l));return Ce.addListener(f),()=>{Ce.removeListener(f)}}).pipe((0,C.O)(Ce),(0,w.U)(({matches:a})=>({query:ce,matches:a})),(0,L.R)(this._destroySubject)),mql:Ce};return this._queries.set(ce,i),i}}return ie.\u0275fac=function(ce){return new(ce||ie)(t.LFG(j),t.LFG(t.R0b))},ie.\u0275prov=t.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})();function me(ie){return ie.map(se=>se.split(",")).reduce((se,ce)=>se.concat(ce)).map(se=>se.trim())}const re={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)"}},9643:(We,q,m)=>{"use strict";m.d(q,{Q8:()=>d,wD:()=>P});var t=m(1281),e=m(4650),_=m(9751),T=m(7579),s=m(8372);let y=(()=>{class w{create(L){return typeof MutationObserver>"u"?null:new MutationObserver(L)}}return w.\u0275fac=function(L){return new(L||w)},w.\u0275prov=e.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})(),h=(()=>{class w{constructor(L){this._mutationObserverFactory=L,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((L,D)=>this._cleanupObserver(D))}observe(L){const D=(0,t.fI)(L);return new _.y(H=>{const Y=this._observeElement(D).subscribe(H);return()=>{Y.unsubscribe(),this._unobserveElement(D)}})}_observeElement(L){if(this._observedElements.has(L))this._observedElements.get(L).count++;else{const D=new T.x,H=this._mutationObserverFactory.create(V=>D.next(V));H&&H.observe(L,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(L,{observer:H,stream:D,count:1})}return this._observedElements.get(L).stream}_unobserveElement(L){this._observedElements.has(L)&&(this._observedElements.get(L).count--,this._observedElements.get(L).count||this._cleanupObserver(L))}_cleanupObserver(L){if(this._observedElements.has(L)){const{observer:D,stream:H}=this._observedElements.get(L);D&&D.disconnect(),H.complete(),this._observedElements.delete(L)}}}return w.\u0275fac=function(L){return new(L||w)(e.LFG(y))},w.\u0275prov=e.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})(),P=(()=>{class w{get disabled(){return this._disabled}set disabled(L){this._disabled=(0,t.Ig)(L),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(L){this._debounce=(0,t.su)(L),this._subscribe()}constructor(L,D,H){this._contentObserver=L,this._elementRef=D,this._ngZone=H,this.event=new e.vpe,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const L=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?L.pipe((0,s.b)(this.debounce)):L).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return w.\u0275fac=function(L){return new(L||w)(e.Y36(h),e.Y36(e.SBq),e.Y36(e.R0b))},w.\u0275dir=e.lG2({type:w,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),w})(),d=(()=>{class w{}return w.\u0275fac=function(L){return new(L||w)},w.\u0275mod=e.oAB({type:w}),w.\u0275inj=e.cJS({providers:[y]}),w})()},8184:(We,q,m)=>{"use strict";m.d(q,{Iu:()=>x,U8:()=>Ve,X_:()=>ce,Xj:()=>k,_G:()=>W,aV:()=>Oe,pI:()=>he,xu:()=>De});var t=m(531),e=m(6895),_=m(4650),T=m(1281),s=m(3353),y=m(9300),h=m(5698),P=m(2722),d=m(2529),w=m(445),C=m(4080),L=m(7579),D=m(727),H=m(6451),V=m(9521);const Y=(0,s.Mq)();class j{constructor(de,rt){this._viewportRuler=de,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=rt}attach(){}enable(){if(this._canBeEnabled()){const de=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=de.style.left||"",this._previousHTMLStyles.top=de.style.top||"",de.style.left=(0,T.HM)(-this._previousScrollPosition.left),de.style.top=(0,T.HM)(-this._previousScrollPosition.top),de.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const de=this._document.documentElement,Ke=de.style,lt=this._document.body.style,Ut=Ke.scrollBehavior||"",ht=lt.scrollBehavior||"";this._isEnabled=!1,Ke.left=this._previousHTMLStyles.left,Ke.top=this._previousHTMLStyles.top,de.classList.remove("cdk-global-scrollblock"),Y&&(Ke.scrollBehavior=lt.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Y&&(Ke.scrollBehavior=Ut,lt.scrollBehavior=ht)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const rt=this._document.body,Ke=this._viewportRuler.getViewportSize();return rt.scrollHeight>Ke.height||rt.scrollWidth>Ke.width}}class J{constructor(de,rt,Ke,lt){this._scrollDispatcher=de,this._ngZone=rt,this._viewportRuler=Ke,this._config=lt,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(de){this._overlayRef=de}enable(){if(this._scrollSubscription)return;const de=this._scrollDispatcher.scrolled(0).pipe((0,y.h)(rt=>!rt||!this._overlayRef.overlayElement.contains(rt.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=de.subscribe(()=>{const rt=this._viewportRuler.getViewportScrollPosition().top;Math.abs(rt-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=de.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ee{enable(){}disable(){}attach(){}}function me(Pe,de){return de.some(rt=>Pe.bottomrt.bottom||Pe.rightrt.right)}function re(Pe,de){return de.some(rt=>Pe.toprt.bottom||Pe.leftrt.right)}class ie{constructor(de,rt,Ke,lt){this._scrollDispatcher=de,this._viewportRuler=rt,this._ngZone=Ke,this._config=lt,this._scrollSubscription=null}attach(de){this._overlayRef=de}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 rt=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Ke,height:lt}=this._viewportRuler.getViewportSize();me(rt,[{width:Ke,height:lt,bottom:lt,right:Ke,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 se=(()=>{class Pe{constructor(rt,Ke,lt,Ut){this._scrollDispatcher=rt,this._viewportRuler=Ke,this._ngZone=lt,this.noop=()=>new ee,this.close=ht=>new J(this._scrollDispatcher,this._ngZone,this._viewportRuler,ht),this.block=()=>new j(this._viewportRuler,this._document),this.reposition=ht=>new ie(this._scrollDispatcher,this._viewportRuler,this._ngZone,ht),this._document=Ut}}return Pe.\u0275fac=function(rt){return new(rt||Pe)(_.LFG(t.mF),_.LFG(t.rL),_.LFG(_.R0b),_.LFG(e.K0))},Pe.\u0275prov=_.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();class ce{constructor(de){if(this.scrollStrategy=new ee,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,de){const rt=Object.keys(de);for(const Ke of rt)void 0!==de[Ke]&&(this[Ke]=de[Ke])}}}class i{constructor(de,rt){this.connectionPair=de,this.scrollableViewProperties=rt}}let l=(()=>{class Pe{constructor(rt){this._attachedOverlays=[],this._document=rt}ngOnDestroy(){this.detach()}add(rt){this.remove(rt),this._attachedOverlays.push(rt)}remove(rt){const Ke=this._attachedOverlays.indexOf(rt);Ke>-1&&this._attachedOverlays.splice(Ke,1),0===this._attachedOverlays.length&&this.detach()}}return Pe.\u0275fac=function(rt){return new(rt||Pe)(_.LFG(e.K0))},Pe.\u0275prov=_.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),v=(()=>{class Pe extends l{constructor(rt,Ke){super(rt),this._ngZone=Ke,this._keydownListener=lt=>{const Ut=this._attachedOverlays;for(let ht=Ut.length-1;ht>-1;ht--)if(Ut[ht]._keydownEvents.observers.length>0){const Ge=Ut[ht]._keydownEvents;this._ngZone?this._ngZone.run(()=>Ge.next(lt)):Ge.next(lt);break}}}add(rt){super.add(rt),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):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(rt){return new(rt||Pe)(_.LFG(e.K0),_.LFG(_.R0b,8))},Pe.\u0275prov=_.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),I=(()=>{class Pe extends l{constructor(rt,Ke,lt){super(rt),this._platform=Ke,this._ngZone=lt,this._cursorStyleIsSet=!1,this._pointerDownListener=Ut=>{this._pointerDownEventTarget=(0,s.sA)(Ut)},this._clickListener=Ut=>{const ht=(0,s.sA)(Ut),Ge="click"===Ut.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:ht;this._pointerDownEventTarget=null;const yt=this._attachedOverlays.slice();for(let be=yt.length-1;be>-1;be--){const qe=yt[be];if(qe._outsidePointerEvents.observers.length<1||!qe.hasAttached())continue;if(qe.overlayElement.contains(ht)||qe.overlayElement.contains(Ge))break;const Ie=qe._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Ie.next(Ut)):Ie.next(Ut)}}}add(rt){if(super.add(rt),!this._isAttached){const Ke=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(Ke)):this._addEventListeners(Ke),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Ke.style.cursor,Ke.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const rt=this._document.body;rt.removeEventListener("pointerdown",this._pointerDownListener,!0),rt.removeEventListener("click",this._clickListener,!0),rt.removeEventListener("auxclick",this._clickListener,!0),rt.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(rt.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(rt){rt.addEventListener("pointerdown",this._pointerDownListener,!0),rt.addEventListener("click",this._clickListener,!0),rt.addEventListener("auxclick",this._clickListener,!0),rt.addEventListener("contextmenu",this._clickListener,!0)}}return Pe.\u0275fac=function(rt){return new(rt||Pe)(_.LFG(e.K0),_.LFG(s.t4),_.LFG(_.R0b,8))},Pe.\u0275prov=_.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),k=(()=>{class Pe{constructor(rt,Ke){this._platform=Ke,this._document=rt}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const rt="cdk-overlay-container";if(this._platform.isBrowser||(0,s.Oy)()){const lt=this._document.querySelectorAll(`.${rt}[platform="server"], .${rt}[platform="test"]`);for(let Ut=0;Utthis._backdropClick.next(Ie),this._backdropTransitionendHandler=Ie=>{this._disposeBackdrop(Ie.target)},this._keydownEvents=new L.x,this._outsidePointerEvents=new L.x,lt.scrollStrategy&&(this._scrollStrategy=lt.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=lt.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(de){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const rt=this._portalOutlet.attach(de);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,h.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),"function"==typeof rt?.onDestroy&&rt.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),rt}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const de=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),de}dispose(){const de=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),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,de&&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(de){de!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=de,this.hasAttached()&&(de.attach(this),this.updatePosition()))}updateSize(de){this._config={...this._config,...de},this._updateElementSize()}setDirection(de){this._config={...this._config,direction:de},this._updateElementDirection()}addPanelClass(de){this._pane&&this._toggleClasses(this._pane,de,!0)}removePanelClass(de){this._pane&&this._toggleClasses(this._pane,de,!1)}getDirection(){const de=this._config.direction;return de?"string"==typeof de?de:de.value:"ltr"}updateScrollStrategy(de){de!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=de,this.hasAttached()&&(de.attach(this),de.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const de=this._pane.style;de.width=(0,T.HM)(this._config.width),de.height=(0,T.HM)(this._config.height),de.minWidth=(0,T.HM)(this._config.minWidth),de.minHeight=(0,T.HM)(this._config.minHeight),de.maxWidth=(0,T.HM)(this._config.maxWidth),de.maxHeight=(0,T.HM)(this._config.maxHeight)}_togglePointerEvents(de){this._pane.style.pointerEvents=de?"":"none"}_attachBackdrop(){const de="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(de)})}):this._backdropElement.classList.add(de)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const de=this._backdropElement;if(de){if(this._animationsDisabled)return void this._disposeBackdrop(de);de.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{de.addEventListener("transitionend",this._backdropTransitionendHandler)}),de.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(de)},500))}}_toggleClasses(de,rt,Ke){const lt=(0,T.Eq)(rt||[]).filter(Ut=>!!Ut);lt.length&&(Ke?de.classList.add(...lt):de.classList.remove(...lt))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const de=this._ngZone.onStable.pipe((0,P.R)((0,H.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()),de.unsubscribe())})})}_disposeScrollStrategy(){const de=this._scrollStrategy;de&&(de.disable(),de.detach&&de.detach())}_disposeBackdrop(de){de&&(de.removeEventListener("click",this._backdropClickHandler),de.removeEventListener("transitionend",this._backdropTransitionendHandler),de.remove(),this._backdropElement===de&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const n="cdk-overlay-connected-position-bounding-box",g=/([A-Za-z%]+)$/;class W{get positions(){return this._preferredPositions}constructor(de,rt,Ke,lt,Ut){this._viewportRuler=rt,this._document=Ke,this._platform=lt,this._overlayContainer=Ut,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new L.x,this._resizeSubscription=D.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(de)}attach(de){this._validatePositions(),de.hostElement.classList.add(n),this._overlayRef=de,this._boundingBox=de.hostElement,this._pane=de.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const de=this._originRect,rt=this._overlayRect,Ke=this._viewportRect,lt=this._containerRect,Ut=[];let ht;for(let Ge of this._preferredPositions){let yt=this._getOriginPoint(de,lt,Ge),be=this._getOverlayPoint(yt,rt,Ge),qe=this._getOverlayFit(be,rt,Ke,Ge);if(qe.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Ge,yt);this._canFitWithFlexibleDimensions(qe,be,Ke)?Ut.push({position:Ge,origin:yt,overlayRect:rt,boundingBoxRect:this._calculateBoundingBoxRect(yt,Ge)}):(!ht||ht.overlayFit.visibleAreayt&&(yt=qe,Ge=be)}return this._isPushed=!1,void this._applyPosition(Ge.position,Ge.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(ht.position,ht.originPoint);this._applyPosition(ht.position,ht.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&O(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(n),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const de=this._lastPosition;if(de){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const rt=this._getOriginPoint(this._originRect,this._containerRect,de);this._applyPosition(de,rt)}else this.apply()}withScrollableContainers(de){return this._scrollables=de,this}withPositions(de){return this._preferredPositions=de,-1===de.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(de){return this._viewportMargin=de,this}withFlexibleDimensions(de=!0){return this._hasFlexibleDimensions=de,this}withGrowAfterOpen(de=!0){return this._growAfterOpen=de,this}withPush(de=!0){return this._canPush=de,this}withLockedPosition(de=!0){return this._positionLocked=de,this}setOrigin(de){return this._origin=de,this}withDefaultOffsetX(de){return this._offsetX=de,this}withDefaultOffsetY(de){return this._offsetY=de,this}withTransformOriginOn(de){return this._transformOriginSelector=de,this}_getOriginPoint(de,rt,Ke){let lt,Ut;if("center"==Ke.originX)lt=de.left+de.width/2;else{const ht=this._isRtl()?de.right:de.left,Ge=this._isRtl()?de.left:de.right;lt="start"==Ke.originX?ht:Ge}return rt.left<0&&(lt-=rt.left),Ut="center"==Ke.originY?de.top+de.height/2:"top"==Ke.originY?de.top:de.bottom,rt.top<0&&(Ut-=rt.top),{x:lt,y:Ut}}_getOverlayPoint(de,rt,Ke){let lt,Ut;return lt="center"==Ke.overlayX?-rt.width/2:"start"===Ke.overlayX?this._isRtl()?-rt.width:0:this._isRtl()?0:-rt.width,Ut="center"==Ke.overlayY?-rt.height/2:"top"==Ke.overlayY?0:-rt.height,{x:de.x+lt,y:de.y+Ut}}_getOverlayFit(de,rt,Ke,lt){const Ut=ge(rt);let{x:ht,y:Ge}=de,yt=this._getOffset(lt,"x"),be=this._getOffset(lt,"y");yt&&(ht+=yt),be&&(Ge+=be);let X=0-Ge,mt=Ge+Ut.height-Ke.height,Tt=this._subtractOverflows(Ut.width,0-ht,ht+Ut.width-Ke.width),it=this._subtractOverflows(Ut.height,X,mt),je=Tt*it;return{visibleArea:je,isCompletelyWithinViewport:Ut.width*Ut.height===je,fitsInViewportVertically:it===Ut.height,fitsInViewportHorizontally:Tt==Ut.width}}_canFitWithFlexibleDimensions(de,rt,Ke){if(this._hasFlexibleDimensions){const lt=Ke.bottom-rt.y,Ut=Ke.right-rt.x,ht=G(this._overlayRef.getConfig().minHeight),Ge=G(this._overlayRef.getConfig().minWidth);return(de.fitsInViewportVertically||null!=ht&&ht<=lt)&&(de.fitsInViewportHorizontally||null!=Ge&&Ge<=Ut)}return!1}_pushOverlayOnScreen(de,rt,Ke){if(this._previousPushAmount&&this._positionLocked)return{x:de.x+this._previousPushAmount.x,y:de.y+this._previousPushAmount.y};const lt=ge(rt),Ut=this._viewportRect,ht=Math.max(de.x+lt.width-Ut.width,0),Ge=Math.max(de.y+lt.height-Ut.height,0),yt=Math.max(Ut.top-Ke.top-de.y,0),be=Math.max(Ut.left-Ke.left-de.x,0);let qe=0,Ie=0;return qe=lt.width<=Ut.width?be||-ht:de.xTt&&!this._isInitialRender&&!this._growAfterOpen&&(ht=de.y-Tt/2)}if("end"===rt.overlayX&&!lt||"start"===rt.overlayX&<)X=Ke.width-de.x+this._viewportMargin,qe=de.x-this._viewportMargin;else if("start"===rt.overlayX&&!lt||"end"===rt.overlayX&<)Ie=de.x,qe=Ke.right-de.x;else{const mt=Math.min(Ke.right-de.x+Ke.left,de.x),Tt=this._lastBoundingBoxSize.width;qe=2*mt,Ie=de.x-mt,qe>Tt&&!this._isInitialRender&&!this._growAfterOpen&&(Ie=de.x-Tt/2)}return{top:ht,left:Ie,bottom:Ge,right:X,width:qe,height:Ut}}_setBoundingBoxStyles(de,rt){const Ke=this._calculateBoundingBoxRect(de,rt);!this._isInitialRender&&!this._growAfterOpen&&(Ke.height=Math.min(Ke.height,this._lastBoundingBoxSize.height),Ke.width=Math.min(Ke.width,this._lastBoundingBoxSize.width));const lt={};if(this._hasExactPosition())lt.top=lt.left="0",lt.bottom=lt.right=lt.maxHeight=lt.maxWidth="",lt.width=lt.height="100%";else{const Ut=this._overlayRef.getConfig().maxHeight,ht=this._overlayRef.getConfig().maxWidth;lt.height=(0,T.HM)(Ke.height),lt.top=(0,T.HM)(Ke.top),lt.bottom=(0,T.HM)(Ke.bottom),lt.width=(0,T.HM)(Ke.width),lt.left=(0,T.HM)(Ke.left),lt.right=(0,T.HM)(Ke.right),lt.alignItems="center"===rt.overlayX?"center":"end"===rt.overlayX?"flex-end":"flex-start",lt.justifyContent="center"===rt.overlayY?"center":"bottom"===rt.overlayY?"flex-end":"flex-start",Ut&&(lt.maxHeight=(0,T.HM)(Ut)),ht&&(lt.maxWidth=(0,T.HM)(ht))}this._lastBoundingBoxSize=Ke,O(this._boundingBox.style,lt)}_resetBoundingBoxStyles(){O(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){O(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(de,rt){const Ke={},lt=this._hasExactPosition(),Ut=this._hasFlexibleDimensions,ht=this._overlayRef.getConfig();if(lt){const qe=this._viewportRuler.getViewportScrollPosition();O(Ke,this._getExactOverlayY(rt,de,qe)),O(Ke,this._getExactOverlayX(rt,de,qe))}else Ke.position="static";let Ge="",yt=this._getOffset(rt,"x"),be=this._getOffset(rt,"y");yt&&(Ge+=`translateX(${yt}px) `),be&&(Ge+=`translateY(${be}px)`),Ke.transform=Ge.trim(),ht.maxHeight&&(lt?Ke.maxHeight=(0,T.HM)(ht.maxHeight):Ut&&(Ke.maxHeight="")),ht.maxWidth&&(lt?Ke.maxWidth=(0,T.HM)(ht.maxWidth):Ut&&(Ke.maxWidth="")),O(this._pane.style,Ke)}_getExactOverlayY(de,rt,Ke){let lt={top:"",bottom:""},Ut=this._getOverlayPoint(rt,this._overlayRect,de);return this._isPushed&&(Ut=this._pushOverlayOnScreen(Ut,this._overlayRect,Ke)),"bottom"===de.overlayY?lt.bottom=this._document.documentElement.clientHeight-(Ut.y+this._overlayRect.height)+"px":lt.top=(0,T.HM)(Ut.y),lt}_getExactOverlayX(de,rt,Ke){let ht,lt={left:"",right:""},Ut=this._getOverlayPoint(rt,this._overlayRect,de);return this._isPushed&&(Ut=this._pushOverlayOnScreen(Ut,this._overlayRect,Ke)),ht=this._isRtl()?"end"===de.overlayX?"left":"right":"end"===de.overlayX?"right":"left","right"===ht?lt.right=this._document.documentElement.clientWidth-(Ut.x+this._overlayRect.width)+"px":lt.left=(0,T.HM)(Ut.x),lt}_getScrollVisibility(){const de=this._getOriginRect(),rt=this._pane.getBoundingClientRect(),Ke=this._scrollables.map(lt=>lt.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:re(de,Ke),isOriginOutsideView:me(de,Ke),isOverlayClipped:re(rt,Ke),isOverlayOutsideView:me(rt,Ke)}}_subtractOverflows(de,...rt){return rt.reduce((Ke,lt)=>Ke-Math.max(lt,0),de)}_getNarrowedViewportRect(){const de=this._document.documentElement.clientWidth,rt=this._document.documentElement.clientHeight,Ke=this._viewportRuler.getViewportScrollPosition();return{top:Ke.top+this._viewportMargin,left:Ke.left+this._viewportMargin,right:Ke.left+de-this._viewportMargin,bottom:Ke.top+rt-this._viewportMargin,width:de-2*this._viewportMargin,height:rt-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(de,rt){return"x"===rt?null==de.offsetX?this._offsetX:de.offsetX:null==de.offsetY?this._offsetY:de.offsetY}_validatePositions(){}_addPanelClasses(de){this._pane&&(0,T.Eq)(de).forEach(rt=>{""!==rt&&-1===this._appliedPanelClasses.indexOf(rt)&&(this._appliedPanelClasses.push(rt),this._pane.classList.add(rt))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(de=>{this._pane.classList.remove(de)}),this._appliedPanelClasses=[])}_getOriginRect(){const de=this._origin;if(de instanceof _.SBq)return de.nativeElement.getBoundingClientRect();if(de instanceof Element)return de.getBoundingClientRect();const rt=de.width||0,Ke=de.height||0;return{top:de.y,bottom:de.y+Ke,left:de.x,right:de.x+rt,height:Ke,width:rt}}}function O(Pe,de){for(let rt in de)de.hasOwnProperty(rt)&&(Pe[rt]=de[rt]);return Pe}function G(Pe){if("number"!=typeof Pe&&null!=Pe){const[de,rt]=Pe.split(g);return rt&&"px"!==rt?null:parseFloat(de)}return Pe||null}function ge(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 at="cdk-global-overlay-wrapper";class ye{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(de){const rt=de.getConfig();this._overlayRef=de,this._width&&!rt.width&&de.updateSize({width:this._width}),this._height&&!rt.height&&de.updateSize({height:this._height}),de.hostElement.classList.add(at),this._isDisposed=!1}top(de=""){return this._bottomOffset="",this._topOffset=de,this._alignItems="flex-start",this}left(de=""){return this._xOffset=de,this._xPosition="left",this}bottom(de=""){return this._topOffset="",this._bottomOffset=de,this._alignItems="flex-end",this}right(de=""){return this._xOffset=de,this._xPosition="right",this}start(de=""){return this._xOffset=de,this._xPosition="start",this}end(de=""){return this._xOffset=de,this._xPosition="end",this}width(de=""){return this._overlayRef?this._overlayRef.updateSize({width:de}):this._width=de,this}height(de=""){return this._overlayRef?this._overlayRef.updateSize({height:de}):this._height=de,this}centerHorizontally(de=""){return this.left(de),this._xPosition="center",this}centerVertically(de=""){return this.top(de),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const de=this._overlayRef.overlayElement.style,rt=this._overlayRef.hostElement.style,Ke=this._overlayRef.getConfig(),{width:lt,height:Ut,maxWidth:ht,maxHeight:Ge}=Ke,yt=!("100%"!==lt&&"100vw"!==lt||ht&&"100%"!==ht&&"100vw"!==ht),be=!("100%"!==Ut&&"100vh"!==Ut||Ge&&"100%"!==Ge&&"100vh"!==Ge),qe=this._xPosition,Ie=this._xOffset,X="rtl"===this._overlayRef.getConfig().direction;let mt="",Tt="",it="";yt?it="flex-start":"center"===qe?(it="center",X?Tt=Ie:mt=Ie):X?"left"===qe||"end"===qe?(it="flex-end",mt=Ie):("right"===qe||"start"===qe)&&(it="flex-start",Tt=Ie):"left"===qe||"start"===qe?(it="flex-start",mt=Ie):("right"===qe||"end"===qe)&&(it="flex-end",Tt=Ie),de.position=this._cssPosition,de.marginLeft=yt?"0":mt,de.marginTop=be?"0":this._topOffset,de.marginBottom=this._bottomOffset,de.marginRight=yt?"0":Tt,rt.justifyContent=it,rt.alignItems=be?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const de=this._overlayRef.overlayElement.style,rt=this._overlayRef.hostElement,Ke=rt.style;rt.classList.remove(at),Ke.justifyContent=Ke.alignItems=de.marginTop=de.marginBottom=de.marginLeft=de.marginRight=de.position="",this._overlayRef=null,this._isDisposed=!0}}let xe=(()=>{class Pe{constructor(rt,Ke,lt,Ut){this._viewportRuler=rt,this._document=Ke,this._platform=lt,this._overlayContainer=Ut}global(){return new ye}flexibleConnectedTo(rt){return new W(rt,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Pe.\u0275fac=function(rt){return new(rt||Pe)(_.LFG(t.rL),_.LFG(e.K0),_.LFG(s.t4),_.LFG(k))},Pe.\u0275prov=_.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),fe=0,Oe=(()=>{class Pe{constructor(rt,Ke,lt,Ut,ht,Ge,yt,be,qe,Ie,X,mt){this.scrollStrategies=rt,this._overlayContainer=Ke,this._componentFactoryResolver=lt,this._positionBuilder=Ut,this._keyboardDispatcher=ht,this._injector=Ge,this._ngZone=yt,this._document=be,this._directionality=qe,this._location=Ie,this._outsideClickDispatcher=X,this._animationsModuleType=mt}create(rt){const Ke=this._createHostElement(),lt=this._createPaneElement(Ke),Ut=this._createPortalOutlet(lt),ht=new ce(rt);return ht.direction=ht.direction||this._directionality.value,new x(Ut,Ke,lt,ht,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(rt){const Ke=this._document.createElement("div");return Ke.id="cdk-overlay-"+fe++,Ke.classList.add("cdk-overlay-pane"),rt.appendChild(Ke),Ke}_createHostElement(){const rt=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(rt),rt}_createPortalOutlet(rt){return this._appRef||(this._appRef=this._injector.get(_.z2F)),new C.u0(rt,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Pe.\u0275fac=function(rt){return new(rt||Pe)(_.LFG(se),_.LFG(k),_.LFG(_._Vd),_.LFG(xe),_.LFG(v),_.LFG(_.zs3),_.LFG(_.R0b),_.LFG(e.K0),_.LFG(w.Is),_.LFG(e.Ye),_.LFG(I),_.LFG(_.QbO,8))},Pe.\u0275prov=_.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();const oe=[{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"}],Fe=new _.OlP("cdk-connected-overlay-scroll-strategy");let De=(()=>{class Pe{constructor(rt){this.elementRef=rt}}return Pe.\u0275fac=function(rt){return new(rt||Pe)(_.Y36(_.SBq))},Pe.\u0275dir=_.lG2({type:Pe,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),Pe})(),he=(()=>{class Pe{get offsetX(){return this._offsetX}set offsetX(rt){this._offsetX=rt,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(rt){this._offsetY=rt,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(rt){this._hasBackdrop=(0,T.Ig)(rt)}get lockPosition(){return this._lockPosition}set lockPosition(rt){this._lockPosition=(0,T.Ig)(rt)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(rt){this._flexibleDimensions=(0,T.Ig)(rt)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(rt){this._growAfterOpen=(0,T.Ig)(rt)}get push(){return this._push}set push(rt){this._push=(0,T.Ig)(rt)}constructor(rt,Ke,lt,Ut,ht){this._overlay=rt,this._dir=ht,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=D.w0.EMPTY,this._attachSubscription=D.w0.EMPTY,this._detachSubscription=D.w0.EMPTY,this._positionSubscription=D.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new _.vpe,this.positionChange=new _.vpe,this.attach=new _.vpe,this.detach=new _.vpe,this.overlayKeydown=new _.vpe,this.overlayOutsideClick=new _.vpe,this._templatePortal=new C.UE(Ke,lt),this._scrollStrategyFactory=Ut,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(rt){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),rt.origin&&this.open&&this._position.apply()),rt.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=oe);const rt=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=rt.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=rt.detachments().subscribe(()=>this.detach.emit()),rt.keydownEvents().subscribe(Ke=>{this.overlayKeydown.next(Ke),Ke.keyCode===V.hY&&!this.disableClose&&!(0,V.Vb)(Ke)&&(Ke.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(Ke=>{this.overlayOutsideClick.next(Ke)})}_buildConfig(){const rt=this._position=this.positionStrategy||this._createPositionStrategy(),Ke=new ce({direction:this._dir,positionStrategy:rt,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(Ke.width=this.width),(this.height||0===this.height)&&(Ke.height=this.height),(this.minWidth||0===this.minWidth)&&(Ke.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Ke.minHeight=this.minHeight),this.backdropClass&&(Ke.backdropClass=this.backdropClass),this.panelClass&&(Ke.panelClass=this.panelClass),Ke}_updatePositionStrategy(rt){const Ke=this.positions.map(lt=>({originX:lt.originX,originY:lt.originY,overlayX:lt.overlayX,overlayY:lt.overlayY,offsetX:lt.offsetX||this.offsetX,offsetY:lt.offsetY||this.offsetY,panelClass:lt.panelClass||void 0}));return rt.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(Ke).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const rt=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(rt),rt}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof De?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(rt=>{this.backdropClick.emit(rt)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,d.o)(()=>this.positionChange.observers.length>0)).subscribe(rt=>{this.positionChange.emit(rt),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return Pe.\u0275fac=function(rt){return new(rt||Pe)(_.Y36(Oe),_.Y36(_.Rgc),_.Y36(_.s_b),_.Y36(Fe),_.Y36(w.Is,8))},Pe.\u0275dir=_.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"],standalone:!0,features:[_.TTD]}),Pe})();const pe={provide:Fe,deps:[Oe],useFactory:function Me(Pe){return()=>Pe.scrollStrategies.reposition()}};let Ve=(()=>{class Pe{}return Pe.\u0275fac=function(rt){return new(rt||Pe)},Pe.\u0275mod=_.oAB({type:Pe}),Pe.\u0275inj=_.cJS({providers:[Oe,pe],imports:[w.vT,C.eL,t.Cl,t.Cl]}),Pe})()},3353:(We,q,m)=>{"use strict";m.d(q,{Mq:()=>H,Oy:()=>me,_i:()=>V,ht:()=>J,i$:()=>C,kV:()=>Q,qK:()=>P,sA:()=>ee,t4:()=>T});var t=m(4650),e=m(6895);let _;try{_=typeof Intl<"u"&&Intl.v8BreakIterator}catch{_=!1}let y,T=(()=>{class re{constructor(se){this._platformId=se,this.isBrowser=this._platformId?(0,e.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&&!_)&&typeof CSS<"u"&&!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 re.\u0275fac=function(se){return new(se||re)(t.LFG(t.Lbi))},re.\u0275prov=t.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})();const h=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function P(){if(y)return y;if("object"!=typeof document||!document)return y=new Set(h),y;let re=document.createElement("input");return y=new Set(h.filter(ie=>(re.setAttribute("type",ie),re.type===ie))),y}let d,L,D,Y;function C(re){return function w(){if(null==d&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>d=!0}))}finally{d=d||!1}return d}()?re:!!re.capture}function H(){if(null==D){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return D=!1,D;if("scrollBehavior"in document.documentElement.style)D=!0;else{const re=Element.prototype.scrollTo;D=!!re&&!/\{\s*\[native code\]\s*\}/.test(re.toString())}}return D}function V(){if("object"!=typeof document||!document)return 0;if(null==L){const re=document.createElement("div"),ie=re.style;re.dir="rtl",ie.width="1px",ie.overflow="auto",ie.visibility="hidden",ie.pointerEvents="none",ie.position="absolute";const se=document.createElement("div"),ce=se.style;ce.width="2px",ce.height="1px",re.appendChild(se),document.body.appendChild(re),L=0,0===re.scrollLeft&&(re.scrollLeft=1,L=0===re.scrollLeft?1:2),re.remove()}return L}function Q(re){if(function j(){if(null==Y){const re=typeof document<"u"?document.head:null;Y=!(!re||!re.createShadowRoot&&!re.attachShadow)}return Y}()){const ie=re.getRootNode?re.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&ie instanceof ShadowRoot)return ie}return null}function J(){let re=typeof document<"u"&&document?document.activeElement:null;for(;re&&re.shadowRoot;){const ie=re.shadowRoot.activeElement;if(ie===re)break;re=ie}return re}function ee(re){return re.composedPath?re.composedPath()[0]:re.target}function me(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},4080:(We,q,m)=>{"use strict";m.d(q,{C5:()=>w,Pl:()=>J,UE:()=>C,eL:()=>me,en:()=>D,ig:()=>j,u0:()=>V});var t=m(4650),e=m(6895);class d{attach(se){return this._attachedHost=se,se.attach(this)}detach(){let se=this._attachedHost;null!=se&&(this._attachedHost=null,se.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(se){this._attachedHost=se}}class w extends d{constructor(se,ce,Ce,M,i){super(),this.component=se,this.viewContainerRef=ce,this.injector=Ce,this.componentFactoryResolver=M,this.projectableNodes=i}}class C extends d{constructor(se,ce,Ce,M){super(),this.templateRef=se,this.viewContainerRef=ce,this.context=Ce,this.injector=M}get origin(){return this.templateRef.elementRef}attach(se,ce=this.context){return this.context=ce,super.attach(se)}detach(){return this.context=void 0,super.detach()}}class L extends d{constructor(se){super(),this.element=se instanceof t.SBq?se.nativeElement:se}}class D{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(se){return se instanceof w?(this._attachedPortal=se,this.attachComponentPortal(se)):se instanceof C?(this._attachedPortal=se,this.attachTemplatePortal(se)):this.attachDomPortal&&se instanceof L?(this._attachedPortal=se,this.attachDomPortal(se)):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(se){this._disposeFn=se}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class V extends D{constructor(se,ce,Ce,M,i){super(),this.outletElement=se,this._componentFactoryResolver=ce,this._appRef=Ce,this._defaultInjector=M,this.attachDomPortal=a=>{const f=a.element,l=this._document.createComment("dom-portal");f.parentNode.insertBefore(l,f),this.outletElement.appendChild(f),this._attachedPortal=a,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(f,l)})},this._document=i}attachComponentPortal(se){const Ce=(se.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(se.component);let M;return se.viewContainerRef?(M=se.viewContainerRef.createComponent(Ce,se.viewContainerRef.length,se.injector||se.viewContainerRef.injector,se.projectableNodes||void 0),this.setDisposeFn(()=>M.destroy())):(M=Ce.create(se.injector||this._defaultInjector||t.zs3.NULL),this._appRef.attachView(M.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(M.hostView),M.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(M)),this._attachedPortal=se,M}attachTemplatePortal(se){let ce=se.viewContainerRef,Ce=ce.createEmbeddedView(se.templateRef,se.context,{injector:se.injector});return Ce.rootNodes.forEach(M=>this.outletElement.appendChild(M)),Ce.detectChanges(),this.setDisposeFn(()=>{let M=ce.indexOf(Ce);-1!==M&&ce.remove(M)}),this._attachedPortal=se,Ce}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(se){return se.hostView.rootNodes[0]}}let j=(()=>{class ie extends C{constructor(ce,Ce){super(ce,Ce)}}return ie.\u0275fac=function(ce){return new(ce||ie)(t.Y36(t.Rgc),t.Y36(t.s_b))},ie.\u0275dir=t.lG2({type:ie,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[t.qOj]}),ie})(),J=(()=>{class ie extends D{constructor(ce,Ce,M){super(),this._componentFactoryResolver=ce,this._viewContainerRef=Ce,this._isInitialized=!1,this.attached=new t.vpe,this.attachDomPortal=i=>{const a=i.element,f=this._document.createComment("dom-portal");i.setAttachedHost(this),a.parentNode.insertBefore(f,a),this._getRootNode().appendChild(a),this._attachedPortal=i,super.setDisposeFn(()=>{f.parentNode&&f.parentNode.replaceChild(a,f)})},this._document=M}get portal(){return this._attachedPortal}set portal(ce){this.hasAttached()&&!ce&&!this._isInitialized||(this.hasAttached()&&super.detach(),ce&&super.attach(ce),this._attachedPortal=ce||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(ce){ce.setAttachedHost(this);const Ce=null!=ce.viewContainerRef?ce.viewContainerRef:this._viewContainerRef,i=(ce.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ce.component),a=Ce.createComponent(i,Ce.length,ce.injector||Ce.injector,ce.projectableNodes||void 0);return Ce!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=ce,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(ce){ce.setAttachedHost(this);const Ce=this._viewContainerRef.createEmbeddedView(ce.templateRef,ce.context,{injector:ce.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=ce,this._attachedRef=Ce,this.attached.emit(Ce),Ce}_getRootNode(){const ce=this._viewContainerRef.element.nativeElement;return ce.nodeType===ce.ELEMENT_NODE?ce:ce.parentNode}}return ie.\u0275fac=function(ce){return new(ce||ie)(t.Y36(t._Vd),t.Y36(t.s_b),t.Y36(e.K0))},ie.\u0275dir=t.lG2({type:ie,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[t.qOj]}),ie})(),me=(()=>{class ie{}return ie.\u0275fac=function(ce){return new(ce||ie)},ie.\u0275mod=t.oAB({type:ie}),ie.\u0275inj=t.cJS({}),ie})()},531:(We,q,m)=>{"use strict";m.d(q,{PQ:()=>l,ZD:()=>Ue,mF:()=>f,Cl:()=>at,rL:()=>I});var t=m(1281),e=m(4650),_=m(7579),T=m(9646),s=m(9751),y=m(4968),h=m(4408),P=m(727);const d={schedule(ye){let xe=requestAnimationFrame,fe=cancelAnimationFrame;const{delegate:Oe}=d;Oe&&(xe=Oe.requestAnimationFrame,fe=Oe.cancelAnimationFrame);const oe=xe(Fe=>{fe=void 0,ye(Fe)});return new P.w0(()=>fe?.(oe))},requestAnimationFrame(...ye){const{delegate:xe}=d;return(xe?.requestAnimationFrame||requestAnimationFrame)(...ye)},cancelAnimationFrame(...ye){const{delegate:xe}=d;return(xe?.cancelAnimationFrame||cancelAnimationFrame)(...ye)},delegate:void 0};var C=m(7565);const D=new class L extends C.v{flush(xe){this._active=!0;const fe=this._scheduled;this._scheduled=void 0;const{actions:Oe}=this;let oe;xe=xe||Oe.shift();do{if(oe=xe.execute(xe.state,xe.delay))break}while((xe=Oe[0])&&xe.id===fe&&Oe.shift());if(this._active=!1,oe){for(;(xe=Oe[0])&&xe.id===fe&&Oe.shift();)xe.unsubscribe();throw oe}}}(class w extends h.o{constructor(xe,fe){super(xe,fe),this.scheduler=xe,this.work=fe}requestAsyncId(xe,fe,Oe=0){return null!==Oe&&Oe>0?super.requestAsyncId(xe,fe,Oe):(xe.actions.push(this),xe._scheduled||(xe._scheduled=d.requestAnimationFrame(()=>xe.flush(void 0))))}recycleAsyncId(xe,fe,Oe=0){var oe;if(null!=Oe?Oe>0:this.delay>0)return super.recycleAsyncId(xe,fe,Oe);const{actions:Fe}=xe;null!=fe&&(null===(oe=Fe[Fe.length-1])||void 0===oe?void 0:oe.id)!==fe&&(d.cancelAnimationFrame(fe),xe._scheduled=void 0)}});var V=m(3101),Y=m(3601),j=m(9300),Q=m(2722),J=m(8675),ee=m(3353),me=m(6895),re=m(445);const ie=["contentWrapper"],se=["*"],ce=new e.OlP("VIRTUAL_SCROLL_STRATEGY");let f=(()=>{class ye{constructor(fe,Oe,oe){this._ngZone=fe,this._platform=Oe,this._scrolled=new _.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=oe}register(fe){this.scrollContainers.has(fe)||this.scrollContainers.set(fe,fe.elementScrolled().subscribe(()=>this._scrolled.next(fe)))}deregister(fe){const Oe=this.scrollContainers.get(fe);Oe&&(Oe.unsubscribe(),this.scrollContainers.delete(fe))}scrolled(fe=20){return this._platform.isBrowser?new s.y(Oe=>{this._globalSubscription||this._addGlobalListener();const oe=fe>0?this._scrolled.pipe((0,Y.e)(fe)).subscribe(Oe):this._scrolled.subscribe(Oe);return this._scrolledCount++,()=>{oe.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,T.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((fe,Oe)=>this.deregister(Oe)),this._scrolled.complete()}ancestorScrolled(fe,Oe){const oe=this.getAncestorScrollContainers(fe);return this.scrolled(Oe).pipe((0,j.h)(Fe=>!Fe||oe.indexOf(Fe)>-1))}getAncestorScrollContainers(fe){const Oe=[];return this.scrollContainers.forEach((oe,Fe)=>{this._scrollableContainsElement(Fe,fe)&&Oe.push(Fe)}),Oe}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(fe,Oe){let oe=(0,t.fI)(Oe),Fe=fe.getElementRef().nativeElement;do{if(oe==Fe)return!0}while(oe=oe.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const fe=this._getWindow();return(0,y.R)(fe.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return ye.\u0275fac=function(fe){return new(fe||ye)(e.LFG(e.R0b),e.LFG(ee.t4),e.LFG(me.K0,8))},ye.\u0275prov=e.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),l=(()=>{class ye{constructor(fe,Oe,oe,Fe){this.elementRef=fe,this.scrollDispatcher=Oe,this.ngZone=oe,this.dir=Fe,this._destroyed=new _.x,this._elementScrolled=new s.y(De=>this.ngZone.runOutsideAngular(()=>(0,y.R)(this.elementRef.nativeElement,"scroll").pipe((0,Q.R)(this._destroyed)).subscribe(De)))}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(fe){const Oe=this.elementRef.nativeElement,oe=this.dir&&"rtl"==this.dir.value;null==fe.left&&(fe.left=oe?fe.end:fe.start),null==fe.right&&(fe.right=oe?fe.start:fe.end),null!=fe.bottom&&(fe.top=Oe.scrollHeight-Oe.clientHeight-fe.bottom),oe&&0!=(0,ee._i)()?(null!=fe.left&&(fe.right=Oe.scrollWidth-Oe.clientWidth-fe.left),2==(0,ee._i)()?fe.left=fe.right:1==(0,ee._i)()&&(fe.left=fe.right?-fe.right:fe.right)):null!=fe.right&&(fe.left=Oe.scrollWidth-Oe.clientWidth-fe.right),this._applyScrollToOptions(fe)}_applyScrollToOptions(fe){const Oe=this.elementRef.nativeElement;(0,ee.Mq)()?Oe.scrollTo(fe):(null!=fe.top&&(Oe.scrollTop=fe.top),null!=fe.left&&(Oe.scrollLeft=fe.left))}measureScrollOffset(fe){const Oe="left",Fe=this.elementRef.nativeElement;if("top"==fe)return Fe.scrollTop;if("bottom"==fe)return Fe.scrollHeight-Fe.clientHeight-Fe.scrollTop;const De=this.dir&&"rtl"==this.dir.value;return"start"==fe?fe=De?"right":Oe:"end"==fe&&(fe=De?Oe:"right"),De&&2==(0,ee._i)()?fe==Oe?Fe.scrollWidth-Fe.clientWidth-Fe.scrollLeft:Fe.scrollLeft:De&&1==(0,ee._i)()?fe==Oe?Fe.scrollLeft+Fe.scrollWidth-Fe.clientWidth:-Fe.scrollLeft:fe==Oe?Fe.scrollLeft:Fe.scrollWidth-Fe.clientWidth-Fe.scrollLeft}}return ye.\u0275fac=function(fe){return new(fe||ye)(e.Y36(e.SBq),e.Y36(f),e.Y36(e.R0b),e.Y36(re.Is,8))},ye.\u0275dir=e.lG2({type:ye,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),ye})(),I=(()=>{class ye{constructor(fe,Oe,oe){this._platform=fe,this._change=new _.x,this._changeListener=Fe=>{this._change.next(Fe)},this._document=oe,Oe.runOutsideAngular(()=>{if(fe.isBrowser){const Fe=this._getWindow();Fe.addEventListener("resize",this._changeListener),Fe.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const fe=this._getWindow();fe.removeEventListener("resize",this._changeListener),fe.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const fe={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),fe}getViewportRect(){const fe=this.getViewportScrollPosition(),{width:Oe,height:oe}=this.getViewportSize();return{top:fe.top,left:fe.left,bottom:fe.top+oe,right:fe.left+Oe,height:oe,width:Oe}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const fe=this._document,Oe=this._getWindow(),oe=fe.documentElement,Fe=oe.getBoundingClientRect();return{top:-Fe.top||fe.body.scrollTop||Oe.scrollY||oe.scrollTop||0,left:-Fe.left||fe.body.scrollLeft||Oe.scrollX||oe.scrollLeft||0}}change(fe=20){return fe>0?this._change.pipe((0,Y.e)(fe)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const fe=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:fe.innerWidth,height:fe.innerHeight}:{width:0,height:0}}}return ye.\u0275fac=function(fe){return new(fe||ye)(e.LFG(ee.t4),e.LFG(e.R0b),e.LFG(me.K0,8))},ye.\u0275prov=e.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})();const k=new e.OlP("VIRTUAL_SCROLLABLE");let x=(()=>{class ye extends l{constructor(fe,Oe,oe,Fe){super(fe,Oe,oe,Fe)}measureViewportSize(fe){const Oe=this.elementRef.nativeElement;return"horizontal"===fe?Oe.clientWidth:Oe.clientHeight}}return ye.\u0275fac=function(fe){return new(fe||ye)(e.Y36(e.SBq),e.Y36(f),e.Y36(e.R0b),e.Y36(re.Is,8))},ye.\u0275dir=e.lG2({type:ye,features:[e.qOj]}),ye})();const g=typeof requestAnimationFrame<"u"?D:V.E;let W=(()=>{class ye extends x{get orientation(){return this._orientation}set orientation(fe){this._orientation!==fe&&(this._orientation=fe,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(fe){this._appendOnly=(0,t.Ig)(fe)}constructor(fe,Oe,oe,Fe,De,he,Me,pe){super(fe,he,oe,De),this.elementRef=fe,this._changeDetectorRef=Oe,this._scrollStrategy=Fe,this.scrollable=pe,this._platform=(0,e.f3M)(ee.t4),this._detachedSubject=new _.x,this._renderedRangeSubject=new _.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new s.y(Ve=>this._scrollStrategy.scrolledIndexChange.subscribe(Qe=>Promise.resolve().then(()=>this.ngZone.run(()=>Ve.next(Qe))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=P.w0.EMPTY,this._viewportChanges=Me.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe((0,J.O)(null),(0,Y.e)(0,g)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(fe){this.ngZone.runOutsideAngular(()=>{this._forOf=fe,this._forOf.dataStream.pipe((0,Q.R)(this._detachedSubject)).subscribe(Oe=>{const oe=Oe.length;oe!==this._dataLength&&(this._dataLength=oe,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(fe){return this.getElementRef().nativeElement.getBoundingClientRect()[fe]}setTotalContentSize(fe){this._totalContentSize!==fe&&(this._totalContentSize=fe,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(fe){(function n(ye,xe){return ye.start==xe.start&&ye.end==xe.end})(this._renderedRange,fe)||(this.appendOnly&&(fe={start:0,end:Math.max(this._renderedRange.end,fe.end)}),this._renderedRangeSubject.next(this._renderedRange=fe),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(fe,Oe="to-start"){fe=this.appendOnly&&"to-start"===Oe?0:fe;const Fe="horizontal"==this.orientation,De=Fe?"X":"Y";let Me=`translate${De}(${Number((Fe&&this.dir&&"rtl"==this.dir.value?-1:1)*fe)}px)`;this._renderedContentOffset=fe,"to-end"===Oe&&(Me+=` translate${De}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=Me&&(this._renderedContentTransform=Me,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(fe,Oe="auto"){const oe={behavior:Oe};"horizontal"===this.orientation?oe.start=fe:oe.top=fe,this.scrollable.scrollTo(oe)}scrollToIndex(fe,Oe="auto"){this._scrollStrategy.scrollToIndex(fe,Oe)}measureScrollOffset(fe){let Oe;return Oe=this.scrollable==this?oe=>super.measureScrollOffset(oe):oe=>this.scrollable.measureScrollOffset(oe),Math.max(0,Oe(fe??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(fe){let Oe;const De="rtl"==this.dir?.value;Oe="start"==fe?De?"right":"left":"end"==fe?De?"left":"right":fe||("horizontal"===this.orientation?"left":"top");const he=this.scrollable.measureBoundingClientRectWithScrollOffset(Oe);return this.elementRef.nativeElement.getBoundingClientRect()[Oe]-he}measureRenderedContentSize(){const fe=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?fe.offsetWidth:fe.offsetHeight}measureRangeSize(fe){return this._forOf?this._forOf.measureRangeSize(fe,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(fe){fe&&this._runAfterChangeDetection.push(fe),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const fe=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const Oe of fe)Oe()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return ye.\u0275fac=function(fe){return new(fe||ye)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(ce,8),e.Y36(re.Is,8),e.Y36(f),e.Y36(I),e.Y36(k,8))},ye.\u0275cmp=e.Xpm({type:ye,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(fe,Oe){if(1&fe&&e.Gf(ie,7),2&fe){let oe;e.iGM(oe=e.CRH())&&(Oe._contentWrapper=oe.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(fe,Oe){2&fe&&e.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===Oe.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==Oe.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[e._Bn([{provide:l,useFactory:(xe,fe)=>xe||fe,deps:[[new e.FiY,new e.tBr(k)],ye]}]),e.qOj,e.jDz],ngContentSelectors:se,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(fe,Oe){1&fe&&(e.F$t(),e.TgZ(0,"div",0,1),e.Hsn(2),e.qZA(),e._UZ(3,"div",2)),2&fe&&(e.xp6(3),e.Udp("width",Oe._totalContentWidth)("height",Oe._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),ye})(),Ue=(()=>{class ye{}return ye.\u0275fac=function(fe){return new(fe||ye)},ye.\u0275mod=e.oAB({type:ye}),ye.\u0275inj=e.cJS({}),ye})(),at=(()=>{class ye{}return ye.\u0275fac=function(fe){return new(fe||ye)},ye.\u0275mod=e.oAB({type:ye}),ye.\u0275inj=e.cJS({imports:[re.vT,Ue,W,re.vT,Ue]}),ye})()},2138:(We,q,m)=>{"use strict";m.d(q,{B8:()=>ee,KL:()=>D,U5:()=>ie,be:()=>J,gx:()=>Q,po:()=>re,st:()=>me,u6:()=>H});var t=m(4761),e=m(445),_=m(1281),T=m(9521),s=m(4650),y=m(3353),h=m(7579),P=m(9646),d=m(8675),w=m(2722);function C(se,ce){1&se&&s.Hsn(0)}const L=["*"];let D=(()=>{class se{constructor(Ce){this._elementRef=Ce}focus(){this._elementRef.nativeElement.focus()}}return se.\u0275fac=function(Ce){return new(Ce||se)(s.Y36(s.SBq))},se.\u0275dir=s.lG2({type:se,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),se})(),H=(()=>{class se{constructor(Ce){this.template=Ce}}return se.\u0275fac=function(Ce){return new(Ce||se)(s.Y36(s.Rgc))},se.\u0275dir=s.lG2({type:se,selectors:[["","cdkStepLabel",""]]}),se})(),V=0;const Q=new s.OlP("STEPPER_GLOBAL_OPTIONS");let J=(()=>{class se{get editable(){return this._editable}set editable(Ce){this._editable=(0,_.Ig)(Ce)}get optional(){return this._optional}set optional(Ce){this._optional=(0,_.Ig)(Ce)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(Ce){this._completedOverride=(0,_.Ig)(Ce)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(Ce){this._customError=(0,_.Ig)(Ce)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(Ce,M){this._stepper=Ce,this.interacted=!1,this.interactedStream=new s.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=M||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}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(){return this._stepperOptions.showError??null!=this._customError}}return se.\u0275fac=function(Ce){return new(Ce||se)(s.Y36((0,s.Gpc)(()=>ee)),s.Y36(Q,8))},se.\u0275cmp=s.Xpm({type:se,selectors:[["cdk-step"]],contentQueries:function(Ce,M,i){if(1&Ce&&s.Suo(i,H,5),2&Ce){let a;s.iGM(a=s.CRH())&&(M.stepLabel=a.first)}},viewQuery:function(Ce,M){if(1&Ce&&s.Gf(s.Rgc,7),2&Ce){let i;s.iGM(i=s.CRH())&&(M.content=i.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:[s.TTD],ngContentSelectors:L,decls:1,vars:0,template:function(Ce,M){1&Ce&&(s.F$t(),s.YNc(0,C,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),se})(),ee=(()=>{class se{get linear(){return this._linear}set linear(Ce){this._linear=(0,_.Ig)(Ce)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Ce){const M=(0,_.su)(Ce);this.steps&&this._steps?(this._isValidIndex(M),this.selected?._markAsInteracted(),this._selectedIndex!==M&&!this._anyControlsInvalidOrPending(M)&&(M>=this._selectedIndex||this.steps.toArray()[M].editable)&&this._updateSelectedItemIndex(M)):this._selectedIndex=M}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(Ce){this.selectedIndex=Ce&&this.steps?this.steps.toArray().indexOf(Ce):-1}get orientation(){return this._orientation}set orientation(Ce){this._orientation=Ce,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===Ce)}constructor(Ce,M,i){this._dir=Ce,this._changeDetectorRef=M,this._elementRef=i,this._destroyed=new h.x,this.steps=new s.n_E,this._sortedHeaders=new s.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new s.vpe,this._orientation="horizontal",this._groupId=V++}ngAfterContentInit(){this._steps.changes.pipe((0,d.O)(this._steps),(0,w.R)(this._destroyed)).subscribe(Ce=>{this.steps.reset(Ce.filter(M=>M._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,d.O)(this._stepHeader),(0,w.R)(this._destroyed)).subscribe(Ce=>{this._sortedHeaders.reset(Ce.toArray().sort((M,i)=>M._elementRef.nativeElement.compareDocumentPosition(i._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new t.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,P.of)()).pipe((0,d.O)(this._layoutDirection()),(0,w.R)(this._destroyed)).subscribe(Ce=>this._keyManager.withHorizontalOrientation(Ce)),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._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(Ce=>Ce.reset()),this._stateChanged()}_getStepLabelId(Ce){return`cdk-step-label-${this._groupId}-${Ce}`}_getStepContentId(Ce){return`cdk-step-content-${this._groupId}-${Ce}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(Ce){const M=Ce-this._selectedIndex;return M<0?"rtl"===this._layoutDirection()?"next":"previous":M>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(Ce,M="number"){const i=this.steps.toArray()[Ce],a=this._isCurrentStep(Ce);return i._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(i,a):this._getGuidelineLogic(i,a,M)}_getDefaultIndicatorLogic(Ce,M){return Ce._showError()&&Ce.hasError&&!M?"error":!Ce.completed||M?"number":Ce.editable?"edit":"done"}_getGuidelineLogic(Ce,M,i="number"){return Ce._showError()&&Ce.hasError&&!M?"error":Ce.completed&&!M?"done":Ce.completed&&M?i:Ce.editable&&M?"edit":i}_isCurrentStep(Ce){return this._selectedIndex===Ce}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(Ce){const M=this.steps.toArray();this.selectionChange.emit({selectedIndex:Ce,previouslySelectedIndex:this._selectedIndex,selectedStep:M[Ce],previouslySelectedStep:M[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(Ce):this._keyManager.updateActiveItem(Ce),this._selectedIndex=Ce,this._stateChanged()}_onKeydown(Ce){const M=(0,T.Vb)(Ce),i=Ce.keyCode,a=this._keyManager;null==a.activeItemIndex||M||i!==T.L_&&i!==T.K5?a.setFocusOrigin("keyboard").onKeydown(Ce):(this.selectedIndex=a.activeItemIndex,Ce.preventDefault())}_anyControlsInvalidOrPending(Ce){return!!(this._linear&&Ce>=0)&&this.steps.toArray().slice(0,Ce).some(M=>{const i=M.stepControl;return(i?i.invalid||i.pending||!M.interacted:!M.completed)&&!M.optional&&!M._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const Ce=this._elementRef.nativeElement,M=(0,y.ht)();return Ce===M||Ce.contains(M)}_isValidIndex(Ce){return Ce>-1&&(!this.steps||Ce{class se{constructor(Ce){this._stepper=Ce,this.type="submit"}}return se.\u0275fac=function(Ce){return new(Ce||se)(s.Y36(ee))},se.\u0275dir=s.lG2({type:se,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(Ce,M){1&Ce&&s.NdJ("click",function(){return M._stepper.next()}),2&Ce&&s.Ikx("type",M.type)},inputs:{type:"type"}}),se})(),re=(()=>{class se{constructor(Ce){this._stepper=Ce,this.type="button"}}return se.\u0275fac=function(Ce){return new(Ce||se)(s.Y36(ee))},se.\u0275dir=s.lG2({type:se,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(Ce,M){1&Ce&&s.NdJ("click",function(){return M._stepper.previous()}),2&Ce&&s.Ikx("type",M.type)},inputs:{type:"type"}}),se})(),ie=(()=>{class se{}return se.\u0275fac=function(Ce){return new(Ce||se)},se.\u0275mod=s.oAB({type:se}),se.\u0275inj=s.cJS({imports:[e.vT]}),se})()},7851:(We,q,m)=>{"use strict";m.d(q,{HI:()=>V,Hs:()=>ce,Ud:()=>l,VY:()=>H,XJ:()=>f,Xx:()=>i,_0:()=>se,cu:()=>Y,nZ:()=>I,rO:()=>Q});var t=m(5017),e=m(5191),_=m(7579),T=m(1135),s=m(9646),y=m(5698),h=m(9300),P=m(2722),d=m(4650),w=m(1281),C=m(445);class L{constructor(){this.expansionModel=new t.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 n=[x];n.push(...this.getDescendants(x)),this.expansionModel.select(...n.map(g=>this._trackByValue(g)))}collapseDescendants(x){let n=[x];n.push(...this.getDescendants(x)),this.expansionModel.deselect(...n.map(g=>this._trackByValue(g)))}_trackByValue(x){return this.trackBy?this.trackBy(x):x}}class H extends L{constructor(x,n){super(),this.getChildren=x,this.options=n,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const x=this.dataNodes.reduce((n,g)=>[...n,...this.getDescendants(g),g],[]);this.expansionModel.select(...x.map(n=>this._trackByValue(n)))}getDescendants(x){const n=[];return this._getDescendants(n,x),n.splice(1)}_getDescendants(x,n){x.push(n);const g=this.getChildren(n);Array.isArray(g)?g.forEach(W=>this._getDescendants(x,W)):(0,e.b)(g)&&g.pipe((0,y.q)(1),(0,h.h)(Boolean)).subscribe(W=>{for(const O of W)this._getDescendants(x,O)})}}const V=new d.OlP("CDK_TREE_NODE_OUTLET_NODE");let Y=(()=>{class k{constructor(n,g){this.viewContainer=n,this._node=g}}return k.\u0275fac=function(n){return new(n||k)(d.Y36(d.s_b),d.Y36(V,8))},k.\u0275dir=d.lG2({type:k,selectors:[["","cdkTreeNodeOutlet",""]]}),k})();class j{constructor(x){this.$implicit=x}}let Q=(()=>{class k{constructor(n){this.template=n}}return k.\u0275fac=function(n){return new(n||k)(d.Y36(d.Rgc))},k.\u0275dir=d.lG2({type:k,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),k})(),se=(()=>{class k{get dataSource(){return this._dataSource}set dataSource(n){this._dataSource!==n&&this._switchDataSource(n)}constructor(n,g){this._differs=n,this._changeDetectorRef=g,this._onDestroy=new _.x,this._levels=new Map,this.viewChange=new T.X({start:0,end:Number.MAX_VALUE})}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 n=this._nodeDefs.filter(g=>!g.when);this._defaultNodeDef=n[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(n){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),n||this._nodeOutlet.viewContainer.clear(),this._dataSource=n,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let n;(0,t.Z9)(this._dataSource)?n=this._dataSource.connect(this):(0,e.b)(this._dataSource)?n=this._dataSource:Array.isArray(this._dataSource)&&(n=(0,s.of)(this._dataSource)),n&&(this._dataSubscription=n.pipe((0,P.R)(this._onDestroy)).subscribe(g=>this.renderNodeChanges(g)))}renderNodeChanges(n,g=this._dataDiffer,W=this._nodeOutlet.viewContainer,O){const G=g.diff(n);G&&(G.forEachOperation((ge,nt,Ue)=>{if(null==ge.previousIndex)this.insertNode(n[Ue],Ue,W,O);else if(null==Ue)W.remove(nt),this._levels.delete(ge.item);else{const at=W.get(nt);W.move(at,Ue)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(n,g){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(O=>O.when&&O.when(g,n))||this._defaultNodeDef}insertNode(n,g,W,O){const G=this._getNodeDef(n,g),ge=new j(n);ge.level=this.treeControl.getLevel?this.treeControl.getLevel(n):typeof O<"u"&&this._levels.has(O)?this._levels.get(O)+1:0,this._levels.set(n,ge.level),(W||this._nodeOutlet.viewContainer).createEmbeddedView(G.template,ge,g),ce.mostRecentTreeNode&&(ce.mostRecentTreeNode.data=n)}}return k.\u0275fac=function(n){return new(n||k)(d.Y36(d.ZZ4),d.Y36(d.sBO))},k.\u0275cmp=d.Xpm({type:k,selectors:[["cdk-tree"]],contentQueries:function(n,g,W){if(1&n&&d.Suo(W,Q,5),2&n){let O;d.iGM(O=d.CRH())&&(g._nodeDefs=O)}},viewQuery:function(n,g){if(1&n&&d.Gf(Y,7),2&n){let W;d.iGM(W=d.CRH())&&(g._nodeOutlet=W.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(n,g){1&n&&d.GkF(0,0)},dependencies:[Y],encapsulation:2}),k})(),ce=(()=>{class k{get role(){return"treeitem"}set role(n){this._elementRef.nativeElement.setAttribute("role",n)}get data(){return this._data}set data(n){n!==this._data&&(this._data=n,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}constructor(n,g){this._elementRef=n,this._tree=g,this._destroyed=new _.x,this._dataChanges=new _.x,k.mostRecentTreeNode=this,this.role="treeitem"}ngOnInit(){this._parentNodeAriaLevel=function Ce(k){let x=k.parentElement;for(;x&&!M(x);)x=x.parentElement;return x?x.classList.contains("cdk-nested-tree-node")?(0,w.su)(x.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){k.mostRecentTreeNode===this&&(k.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return k.mostRecentTreeNode=null,k.\u0275fac=function(n){return new(n||k)(d.Y36(d.SBq),d.Y36(se))},k.\u0275dir=d.lG2({type:k,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(n,g){2&n&&d.uIk("aria-expanded",g.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),k})();function M(k){const x=k.classList;return!(!x?.contains("cdk-nested-tree-node")&&!x?.contains("cdk-tree"))}let i=(()=>{class k extends ce{constructor(n,g,W){super(n,g),this._differs=W}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const n=this._tree.treeControl.getChildren(this.data);Array.isArray(n)?this.updateChildrenNodes(n):(0,e.b)(n)&&n.pipe((0,P.R)(this._destroyed)).subscribe(g=>this.updateChildrenNodes(g)),this.nodeOutlet.changes.pipe((0,P.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(n){const g=this._getNodeOutlet();n&&(this._children=n),g&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,g.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const n=this._getNodeOutlet();n&&(n.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const n=this.nodeOutlet;return n&&n.find(g=>!g._node||g._node===this)}}return k.\u0275fac=function(n){return new(n||k)(d.Y36(d.SBq),d.Y36(se),d.Y36(d.ZZ4))},k.\u0275dir=d.lG2({type:k,selectors:[["cdk-nested-tree-node"]],contentQueries:function(n,g,W){if(1&n&&d.Suo(W,Y,5),2&n){let O;d.iGM(O=d.CRH())&&(g.nodeOutlet=O)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[d._Bn([{provide:ce,useExisting:k},{provide:V,useExisting:k}]),d.qOj]}),k})();const a=/([A-Za-z%]+)$/;let f=(()=>{class k{get level(){return this._level}set level(n){this._setLevelInput(n)}get indent(){return this._indent}set indent(n){this._setIndentInput(n)}constructor(n,g,W,O){this._treeNode=n,this._tree=g,this._element=W,this._dir=O,this._destroyed=new _.x,this.indentUnits="px",this._indent=40,this._setPadding(),O&&O.change.pipe((0,P.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),n._dataChanges.subscribe(()=>this._setPadding())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const n=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,g=null==this._level?n:this._level;return"number"==typeof g?`${g*this._indent}${this.indentUnits}`:null}_setPadding(n=!1){const g=this._paddingIndent();if(g!==this._currentPadding||n){const W=this._element.nativeElement,O=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",G="paddingLeft"===O?"paddingRight":"paddingLeft";W.style[O]=g||"",W.style[G]="",this._currentPadding=g}}_setLevelInput(n){this._level=(0,w.su)(n,null),this._setPadding()}_setIndentInput(n){let g=n,W="px";if("string"==typeof n){const O=n.split(a);g=O[0],W=O[1]||W}this.indentUnits=W,this._indent=(0,w.su)(g),this._setPadding()}}return k.\u0275fac=function(n){return new(n||k)(d.Y36(ce),d.Y36(se),d.Y36(d.SBq),d.Y36(C.Is,8))},k.\u0275dir=d.lG2({type:k,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),k})(),l=(()=>{class k{get recursive(){return this._recursive}set recursive(n){this._recursive=(0,w.Ig)(n)}constructor(n,g){this._tree=n,this._treeNode=g,this._recursive=!1}_toggle(n){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),n.stopPropagation()}}return k.\u0275fac=function(n){return new(n||k)(d.Y36(se),d.Y36(ce))},k.\u0275dir=d.lG2({type:k,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(n,g){1&n&&d.NdJ("click",function(O){return g._toggle(O)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),k})(),I=(()=>{class k{}return k.\u0275fac=function(n){return new(n||k)},k.\u0275mod=d.oAB({type:k}),k.\u0275inj=d.cJS({}),k})()},6895:(We,q,m)=>{"use strict";m.d(q,{Do:()=>J,ED:()=>ta,EM:()=>Cr,HT:()=>T,JF:()=>cr,JJ:()=>Io,K0:()=>y,Mx:()=>Yi,NF:()=>Hr,Nd:()=>Ia,O5:()=>gi,OU:()=>ao,Ov:()=>Tn,PC:()=>Kt,PM:()=>sa,RF:()=>oa,S$:()=>Y,Ts:()=>Nr,V_:()=>d,Ye:()=>ee,b0:()=>Q,bD:()=>Aa,ez:()=>ko,gd:()=>ia,i8:()=>Vn,mk:()=>_e,n9:()=>Ea,q:()=>_,rS:()=>zn,sg:()=>vi,tP:()=>ri,uU:()=>jn,w_:()=>s});var t=m(4650);let e=null;function _(){return e}function T(ze){e||(e=ze)}class s{}const y=new t.OlP("DocumentToken");let h=(()=>{class ze{historyGo(te){throw new Error("Not implemented")}}return ze.\u0275fac=function(te){return new(te||ze)},ze.\u0275prov=t.Yz7({token:ze,factory:function(){return function P(){return(0,t.LFG)(w)}()},providedIn:"platform"}),ze})();const d=new t.OlP("Location Initialized");let w=(()=>{class ze extends h{constructor(te){super(),this._doc=te,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return _().getBaseHref(this._doc)}onPopState(te){const Te=_().getGlobalEventTarget(this._doc,"window");return Te.addEventListener("popstate",te,!1),()=>Te.removeEventListener("popstate",te)}onHashChange(te){const Te=_().getGlobalEventTarget(this._doc,"window");return Te.addEventListener("hashchange",te,!1),()=>Te.removeEventListener("hashchange",te)}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(te){this._location.pathname=te}pushState(te,Te,tt){C()?this._history.pushState(te,Te,tt):this._location.hash=tt}replaceState(te,Te,tt){C()?this._history.replaceState(te,Te,tt):this._location.hash=tt}forward(){this._history.forward()}back(){this._history.back()}historyGo(te=0){this._history.go(te)}getState(){return this._history.state}}return ze.\u0275fac=function(te){return new(te||ze)(t.LFG(y))},ze.\u0275prov=t.Yz7({token:ze,factory:function(){return function L(){return new w((0,t.LFG)(y))}()},providedIn:"platform"}),ze})();function C(){return!!window.history.pushState}function D(ze,ne){if(0==ze.length)return ne;if(0==ne.length)return ze;let te=0;return ze.endsWith("/")&&te++,ne.startsWith("/")&&te++,2==te?ze+ne.substring(1):1==te?ze+ne:ze+"/"+ne}function H(ze){const ne=ze.match(/#|\?|$/),te=ne&&ne.index||ze.length;return ze.slice(0,te-("/"===ze[te-1]?1:0))+ze.slice(te)}function V(ze){return ze&&"?"!==ze[0]?"?"+ze:ze}let Y=(()=>{class ze{historyGo(te){throw new Error("Not implemented")}}return ze.\u0275fac=function(te){return new(te||ze)},ze.\u0275prov=t.Yz7({token:ze,factory:function(){return(0,t.f3M)(Q)},providedIn:"root"}),ze})();const j=new t.OlP("appBaseHref");let Q=(()=>{class ze extends Y{constructor(te,Te){super(),this._platformLocation=te,this._removeListenerFns=[],this._baseHref=Te??this._platformLocation.getBaseHrefFromDOM()??(0,t.f3M)(y).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(te){this._removeListenerFns.push(this._platformLocation.onPopState(te),this._platformLocation.onHashChange(te))}getBaseHref(){return this._baseHref}prepareExternalUrl(te){return D(this._baseHref,te)}path(te=!1){const Te=this._platformLocation.pathname+V(this._platformLocation.search),tt=this._platformLocation.hash;return tt&&te?`${Te}${tt}`:Te}pushState(te,Te,tt,Ne){const Rt=this.prepareExternalUrl(tt+V(Ne));this._platformLocation.pushState(te,Te,Rt)}replaceState(te,Te,tt,Ne){const Rt=this.prepareExternalUrl(tt+V(Ne));this._platformLocation.replaceState(te,Te,Rt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(te=0){this._platformLocation.historyGo?.(te)}}return ze.\u0275fac=function(te){return new(te||ze)(t.LFG(h),t.LFG(j,8))},ze.\u0275prov=t.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})(),J=(()=>{class ze extends Y{constructor(te,Te){super(),this._platformLocation=te,this._baseHref="",this._removeListenerFns=[],null!=Te&&(this._baseHref=Te)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(te){this._removeListenerFns.push(this._platformLocation.onPopState(te),this._platformLocation.onHashChange(te))}getBaseHref(){return this._baseHref}path(te=!1){let Te=this._platformLocation.hash;return null==Te&&(Te="#"),Te.length>0?Te.substring(1):Te}prepareExternalUrl(te){const Te=D(this._baseHref,te);return Te.length>0?"#"+Te:Te}pushState(te,Te,tt,Ne){let Rt=this.prepareExternalUrl(tt+V(Ne));0==Rt.length&&(Rt=this._platformLocation.pathname),this._platformLocation.pushState(te,Te,Rt)}replaceState(te,Te,tt,Ne){let Rt=this.prepareExternalUrl(tt+V(Ne));0==Rt.length&&(Rt=this._platformLocation.pathname),this._platformLocation.replaceState(te,Te,Rt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(te=0){this._platformLocation.historyGo?.(te)}}return ze.\u0275fac=function(te){return new(te||ze)(t.LFG(h),t.LFG(j,8))},ze.\u0275prov=t.Yz7({token:ze,factory:ze.\u0275fac}),ze})(),ee=(()=>{class ze{constructor(te){this._subject=new t.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=te;const Te=this._locationStrategy.getBaseHref();this._basePath=function se(ze){if(new RegExp("^(https?:)?//").test(ze)){const[,te]=ze.split(/\/\/[^\/]+/);return te}return ze}(H(ie(Te))),this._locationStrategy.onPopState(tt=>{this._subject.emit({url:this.path(!0),pop:!0,state:tt.state,type:tt.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(te=!1){return this.normalize(this._locationStrategy.path(te))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(te,Te=""){return this.path()==this.normalize(te+V(Te))}normalize(te){return ze.stripTrailingSlash(function re(ze,ne){if(!ze||!ne.startsWith(ze))return ne;const te=ne.substring(ze.length);return""===te||["/",";","?","#"].includes(te[0])?te:ne}(this._basePath,ie(te)))}prepareExternalUrl(te){return te&&"/"!==te[0]&&(te="/"+te),this._locationStrategy.prepareExternalUrl(te)}go(te,Te="",tt=null){this._locationStrategy.pushState(tt,"",te,Te),this._notifyUrlChangeListeners(this.prepareExternalUrl(te+V(Te)),tt)}replaceState(te,Te="",tt=null){this._locationStrategy.replaceState(tt,"",te,Te),this._notifyUrlChangeListeners(this.prepareExternalUrl(te+V(Te)),tt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(te=0){this._locationStrategy.historyGo?.(te)}onUrlChange(te){return this._urlChangeListeners.push(te),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Te=>{this._notifyUrlChangeListeners(Te.url,Te.state)})),()=>{const Te=this._urlChangeListeners.indexOf(te);this._urlChangeListeners.splice(Te,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(te="",Te){this._urlChangeListeners.forEach(tt=>tt(te,Te))}subscribe(te,Te,tt){return this._subject.subscribe({next:te,error:Te,complete:tt})}}return ze.normalizeQueryParams=V,ze.joinWithSlash=D,ze.stripTrailingSlash=H,ze.\u0275fac=function(te){return new(te||ze)(t.LFG(Y))},ze.\u0275prov=t.Yz7({token:ze,factory:function(){return function me(){return new ee((0,t.LFG)(Y))}()},providedIn:"root"}),ze})();function ie(ze){return ze.replace(/\/index.html$/,"")}var Ce=(()=>((Ce=Ce||{})[Ce.Decimal=0]="Decimal",Ce[Ce.Percent=1]="Percent",Ce[Ce.Currency=2]="Currency",Ce[Ce.Scientific=3]="Scientific",Ce))(),i=(()=>((i=i||{})[i.Format=0]="Format",i[i.Standalone=1]="Standalone",i))(),a=(()=>((a=a||{})[a.Narrow=0]="Narrow",a[a.Abbreviated=1]="Abbreviated",a[a.Wide=2]="Wide",a[a.Short=3]="Short",a))(),f=(()=>((f=f||{})[f.Short=0]="Short",f[f.Medium=1]="Medium",f[f.Long=2]="Long",f[f.Full=3]="Full",f))(),l=(()=>((l=l||{})[l.Decimal=0]="Decimal",l[l.Group=1]="Group",l[l.List=2]="List",l[l.PercentSign=3]="PercentSign",l[l.PlusSign=4]="PlusSign",l[l.MinusSign=5]="MinusSign",l[l.Exponential=6]="Exponential",l[l.SuperscriptingExponent=7]="SuperscriptingExponent",l[l.PerMille=8]="PerMille",l[l.Infinity=9]="Infinity",l[l.NaN=10]="NaN",l[l.TimeSeparator=11]="TimeSeparator",l[l.CurrencyDecimal=12]="CurrencyDecimal",l[l.CurrencyGroup=13]="CurrencyGroup",l))();function G(ze,ne){return pe((0,t.cg1)(ze)[t.wAp.DateFormat],ne)}function ge(ze,ne){return pe((0,t.cg1)(ze)[t.wAp.TimeFormat],ne)}function nt(ze,ne){return pe((0,t.cg1)(ze)[t.wAp.DateTimeFormat],ne)}function Ue(ze,ne){const te=(0,t.cg1)(ze),Te=te[t.wAp.NumberSymbols][ne];if(typeof Te>"u"){if(ne===l.CurrencyDecimal)return te[t.wAp.NumberSymbols][l.Decimal];if(ne===l.CurrencyGroup)return te[t.wAp.NumberSymbols][l.Group]}return Te}function Fe(ze){if(!ze[t.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${ze[t.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function pe(ze,ne){for(let te=ne;te>-1;te--)if(typeof ze[te]<"u")return ze[te];throw new Error("Locale data API: locale data undefined")}function Ve(ze){const[ne,te]=ze.split(":");return{hours:+ne,minutes:+te}}const rt=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ke={},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 Ut=(()=>((Ut=Ut||{})[Ut.Short=0]="Short",Ut[Ut.ShortGMT=1]="ShortGMT",Ut[Ut.Long=2]="Long",Ut[Ut.Extended=3]="Extended",Ut))(),ht=(()=>((ht=ht||{})[ht.FullYear=0]="FullYear",ht[ht.Month=1]="Month",ht[ht.Date=2]="Date",ht[ht.Hours=3]="Hours",ht[ht.Minutes=4]="Minutes",ht[ht.Seconds=5]="Seconds",ht[ht.FractionalSeconds=6]="FractionalSeconds",ht[ht.Day=7]="Day",ht))(),Ge=(()=>((Ge=Ge||{})[Ge.DayPeriods=0]="DayPeriods",Ge[Ge.Days=1]="Days",Ge[Ge.Months=2]="Months",Ge[Ge.Eras=3]="Eras",Ge))();function yt(ze,ne,te,Te){let tt=function ot(ze){if(St(ze))return ze;if("number"==typeof ze&&!isNaN(ze))return new Date(ze);if("string"==typeof ze){if(ze=ze.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(ze)){const[tt,Ne=1,Rt=1]=ze.split("-").map(ni=>+ni);return be(tt,Ne-1,Rt)}const te=parseFloat(ze);if(!isNaN(ze-te))return new Date(te);let Te;if(Te=ze.match(rt))return function ft(ze){const ne=new Date(0);let te=0,Te=0;const tt=ze[8]?ne.setUTCFullYear:ne.setFullYear,Ne=ze[8]?ne.setUTCHours:ne.setHours;ze[9]&&(te=Number(ze[9]+ze[10]),Te=Number(ze[9]+ze[11])),tt.call(ne,Number(ze[1]),Number(ze[2])-1,Number(ze[3]));const Rt=Number(ze[4]||0)-te,ni=Number(ze[5]||0)-Te,ti=Number(ze[6]||0),bi=Math.floor(1e3*parseFloat("0."+(ze[7]||0)));return Ne.call(ne,Rt,ni,ti,bi),ne}(Te)}const ne=new Date(ze);if(!St(ne))throw new Error(`Unable to convert "${ze}" into a date`);return ne}(ze);ne=qe(te,ne)||ne;let ni,Rt=[];for(;ne;){if(ni=lt.exec(ne),!ni){Rt.push(ne);break}{Rt=Rt.concat(ni.slice(1));const Si=Rt.pop();if(!Si)break;ne=Si}}let ti=tt.getTimezoneOffset();Te&&(ti=Vt(Te,ti),tt=function pt(ze,ne,te){const Te=te?-1:1,tt=ze.getTimezoneOffset();return function ii(ze,ne){return(ze=new Date(ze.getTime())).setMinutes(ze.getMinutes()+ne),ze}(ze,Te*(Vt(ne,tt)-tt))}(tt,Te,!0));let bi="";return Rt.forEach(Si=>{const Pi=function $t(ze){if(Je[ze])return Je[ze];let ne;switch(ze){case"G":case"GG":case"GGG":ne=je(Ge.Eras,a.Abbreviated);break;case"GGGG":ne=je(Ge.Eras,a.Wide);break;case"GGGGG":ne=je(Ge.Eras,a.Narrow);break;case"y":ne=Tt(ht.FullYear,1,0,!1,!0);break;case"yy":ne=Tt(ht.FullYear,2,0,!0,!0);break;case"yyy":ne=Tt(ht.FullYear,3,0,!1,!0);break;case"yyyy":ne=Tt(ht.FullYear,4,0,!1,!0);break;case"Y":ne=Le(1);break;case"YY":ne=Le(2,!0);break;case"YYY":ne=Le(3);break;case"YYYY":ne=Le(4);break;case"M":case"L":ne=Tt(ht.Month,1,1);break;case"MM":case"LL":ne=Tt(ht.Month,2,1);break;case"MMM":ne=je(Ge.Months,a.Abbreviated);break;case"MMMM":ne=je(Ge.Months,a.Wide);break;case"MMMMM":ne=je(Ge.Months,a.Narrow);break;case"LLL":ne=je(Ge.Months,a.Abbreviated,i.Standalone);break;case"LLLL":ne=je(Ge.Months,a.Wide,i.Standalone);break;case"LLLLL":ne=je(Ge.Months,a.Narrow,i.Standalone);break;case"w":ne=ue(1);break;case"ww":ne=ue(2);break;case"W":ne=ue(1,!0);break;case"d":ne=Tt(ht.Date,1);break;case"dd":ne=Tt(ht.Date,2);break;case"c":case"cc":ne=Tt(ht.Day,1);break;case"ccc":ne=je(Ge.Days,a.Abbreviated,i.Standalone);break;case"cccc":ne=je(Ge.Days,a.Wide,i.Standalone);break;case"ccccc":ne=je(Ge.Days,a.Narrow,i.Standalone);break;case"cccccc":ne=je(Ge.Days,a.Short,i.Standalone);break;case"E":case"EE":case"EEE":ne=je(Ge.Days,a.Abbreviated);break;case"EEEE":ne=je(Ge.Days,a.Wide);break;case"EEEEE":ne=je(Ge.Days,a.Narrow);break;case"EEEEEE":ne=je(Ge.Days,a.Short);break;case"a":case"aa":case"aaa":ne=je(Ge.DayPeriods,a.Abbreviated);break;case"aaaa":ne=je(Ge.DayPeriods,a.Wide);break;case"aaaaa":ne=je(Ge.DayPeriods,a.Narrow);break;case"b":case"bb":case"bbb":ne=je(Ge.DayPeriods,a.Abbreviated,i.Standalone,!0);break;case"bbbb":ne=je(Ge.DayPeriods,a.Wide,i.Standalone,!0);break;case"bbbbb":ne=je(Ge.DayPeriods,a.Narrow,i.Standalone,!0);break;case"B":case"BB":case"BBB":ne=je(Ge.DayPeriods,a.Abbreviated,i.Format,!0);break;case"BBBB":ne=je(Ge.DayPeriods,a.Wide,i.Format,!0);break;case"BBBBB":ne=je(Ge.DayPeriods,a.Narrow,i.Format,!0);break;case"h":ne=Tt(ht.Hours,1,-12);break;case"hh":ne=Tt(ht.Hours,2,-12);break;case"H":ne=Tt(ht.Hours,1);break;case"HH":ne=Tt(ht.Hours,2);break;case"m":ne=Tt(ht.Minutes,1);break;case"mm":ne=Tt(ht.Minutes,2);break;case"s":ne=Tt(ht.Seconds,1);break;case"ss":ne=Tt(ht.Seconds,2);break;case"S":ne=Tt(ht.FractionalSeconds,1);break;case"SS":ne=Tt(ht.FractionalSeconds,2);break;case"SSS":ne=Tt(ht.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ne=xt(Ut.Short);break;case"ZZZZZ":ne=xt(Ut.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ne=xt(Ut.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ne=xt(Ut.Long);break;default:return null}return Je[ze]=ne,ne}(Si);bi+=Pi?Pi(tt,te,ti):"''"===Si?"'":Si.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),bi}function be(ze,ne,te){const Te=new Date(0);return Te.setFullYear(ze,ne,te),Te.setHours(0,0,0),Te}function qe(ze,ne){const te=function I(ze){return(0,t.cg1)(ze)[t.wAp.LocaleId]}(ze);if(Ke[te]=Ke[te]||{},Ke[te][ne])return Ke[te][ne];let Te="";switch(ne){case"shortDate":Te=G(ze,f.Short);break;case"mediumDate":Te=G(ze,f.Medium);break;case"longDate":Te=G(ze,f.Long);break;case"fullDate":Te=G(ze,f.Full);break;case"shortTime":Te=ge(ze,f.Short);break;case"mediumTime":Te=ge(ze,f.Medium);break;case"longTime":Te=ge(ze,f.Long);break;case"fullTime":Te=ge(ze,f.Full);break;case"short":const tt=qe(ze,"shortTime"),Ne=qe(ze,"shortDate");Te=Ie(nt(ze,f.Short),[tt,Ne]);break;case"medium":const Rt=qe(ze,"mediumTime"),ni=qe(ze,"mediumDate");Te=Ie(nt(ze,f.Medium),[Rt,ni]);break;case"long":const ti=qe(ze,"longTime"),bi=qe(ze,"longDate");Te=Ie(nt(ze,f.Long),[ti,bi]);break;case"full":const Si=qe(ze,"fullTime"),Pi=qe(ze,"fullDate");Te=Ie(nt(ze,f.Full),[Si,Pi])}return Te&&(Ke[te][ne]=Te),Te}function Ie(ze,ne){return ne&&(ze=ze.replace(/\{([^}]+)}/g,function(te,Te){return null!=ne&&Te in ne?ne[Te]:te})),ze}function X(ze,ne,te="-",Te,tt){let Ne="";(ze<0||tt&&ze<=0)&&(tt?ze=1-ze:(ze=-ze,Ne=te));let Rt=String(ze);for(;Rt.length0||ni>-te)&&(ni+=te),ze===ht.Hours)0===ni&&-12===te&&(ni=12);else if(ze===ht.FractionalSeconds)return function mt(ze,ne){return X(ze,3).substring(0,ne)}(ni,ne);const ti=Ue(Rt,l.MinusSign);return X(ni,ne,ti,Te,tt)}}function je(ze,ne,te=i.Format,Te=!1){return function(tt,Ne){return function zt(ze,ne,te,Te,tt,Ne){switch(te){case Ge.Months:return function n(ze,ne,te){const Te=(0,t.cg1)(ze),Ne=pe([Te[t.wAp.MonthsFormat],Te[t.wAp.MonthsStandalone]],ne);return pe(Ne,te)}(ne,tt,Te)[ze.getMonth()];case Ge.Days:return function x(ze,ne,te){const Te=(0,t.cg1)(ze),Ne=pe([Te[t.wAp.DaysFormat],Te[t.wAp.DaysStandalone]],ne);return pe(Ne,te)}(ne,tt,Te)[ze.getDay()];case Ge.DayPeriods:const Rt=ze.getHours(),ni=ze.getMinutes();if(Ne){const bi=function De(ze){const ne=(0,t.cg1)(ze);return Fe(ne),(ne[t.wAp.ExtraData][2]||[]).map(Te=>"string"==typeof Te?Ve(Te):[Ve(Te[0]),Ve(Te[1])])}(ne),Si=function he(ze,ne,te){const Te=(0,t.cg1)(ze);Fe(Te);const Ne=pe([Te[t.wAp.ExtraData][0],Te[t.wAp.ExtraData][1]],ne)||[];return pe(Ne,te)||[]}(ne,tt,Te),Pi=bi.findIndex(qi=>{if(Array.isArray(qi)){const[tn,hn]=qi,da=Rt>=tn.hours&&ni>=tn.minutes,ma=Rt0?Math.floor(tt/60):Math.ceil(tt/60);switch(ze){case Ut.Short:return(tt>=0?"+":"")+X(Rt,2,Ne)+X(Math.abs(tt%60),2,Ne);case Ut.ShortGMT:return"GMT"+(tt>=0?"+":"")+X(Rt,1,Ne);case Ut.Long:return"GMT"+(tt>=0?"+":"")+X(Rt,2,Ne)+":"+X(Math.abs(tt%60),2,Ne);case Ut.Extended:return 0===Te?"Z":(tt>=0?"+":"")+X(Rt,2,Ne)+":"+X(Math.abs(tt%60),2,Ne);default:throw new Error(`Unknown zone width "${ze}"`)}}}const Nt=0,Gt=4;function $(ze){return be(ze.getFullYear(),ze.getMonth(),ze.getDate()+(Gt-ze.getDay()))}function ue(ze,ne=!1){return function(te,Te){let tt;if(ne){const Ne=new Date(te.getFullYear(),te.getMonth(),1).getDay()-1,Rt=te.getDate();tt=1+Math.floor((Rt+Ne)/7)}else{const Ne=$(te),Rt=function ke(ze){const ne=be(ze,Nt,1).getDay();return be(ze,0,1+(ne<=Gt?Gt:Gt+7)-ne)}(Ne.getFullYear()),ni=Ne.getTime()-Rt.getTime();tt=1+Math.round(ni/6048e5)}return X(tt,ze,Ue(Te,l.MinusSign))}}function Le(ze,ne=!1){return function(te,Te){return X($(te).getFullYear(),ze,Ue(Te,l.MinusSign),ne)}}const Je={};function Vt(ze,ne){ze=ze.replace(/:/g,"");const te=Date.parse("Jan 01, 1970 00:00:00 "+ze)/6e4;return isNaN(te)?ne:te}function St(ze){return ze instanceof Date&&!isNaN(ze.valueOf())}const gt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,$e=22,_t=".",vt="0",He=";",Et=",",At="#";function si(ze){const ne=parseInt(ze);if(isNaN(ne))throw new Error("Invalid integer literal when parsing "+ze);return ne}function Yi(ze,ne){ne=encodeURIComponent(ne);for(const te of ze.split(";")){const Te=te.indexOf("="),[tt,Ne]=-1==Te?[te,""]:[te.slice(0,Te),te.slice(Te+1)];if(tt.trim()===ne)return decodeURIComponent(Ne)}return null}const Yt=/\s+/,qt=[];let _e=(()=>{class ze{constructor(te,Te,tt,Ne){this._iterableDiffers=te,this._keyValueDiffers=Te,this._ngEl=tt,this._renderer=Ne,this.initialClasses=qt,this.stateMap=new Map}set klass(te){this.initialClasses=null!=te?te.trim().split(Yt):qt}set ngClass(te){this.rawClass="string"==typeof te?te.trim().split(Yt):te}ngDoCheck(){for(const Te of this.initialClasses)this._updateState(Te,!0);const te=this.rawClass;if(Array.isArray(te)||te instanceof Set)for(const Te of te)this._updateState(Te,!0);else if(null!=te)for(const Te of Object.keys(te))this._updateState(Te,Boolean(te[Te]));this._applyStateDiff()}_updateState(te,Te){const tt=this.stateMap.get(te);void 0!==tt?(tt.enabled!==Te&&(tt.changed=!0,tt.enabled=Te),tt.touched=!0):this.stateMap.set(te,{enabled:Te,changed:!0,touched:!0})}_applyStateDiff(){for(const te of this.stateMap){const Te=te[0],tt=te[1];tt.changed?(this._toggleClass(Te,tt.enabled),tt.changed=!1):tt.touched||(tt.enabled&&this._toggleClass(Te,!1),this.stateMap.delete(Te)),tt.touched=!1}}_toggleClass(te,Te){(te=te.trim()).length>0&&te.split(Yt).forEach(tt=>{Te?this._renderer.addClass(this._ngEl.nativeElement,tt):this._renderer.removeClass(this._ngEl.nativeElement,tt)})}}return ze.\u0275fac=function(te){return new(te||ze)(t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.SBq),t.Y36(t.Qsj))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),ze})();class Ot{constructor(ne,te,Te,tt){this.$implicit=ne,this.ngForOf=te,this.index=Te,this.count=tt}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 vi=(()=>{class ze{set ngForOf(te){this._ngForOf=te,this._ngForOfDirty=!0}set ngForTrackBy(te){this._trackByFn=te}get ngForTrackBy(){return this._trackByFn}constructor(te,Te,tt){this._viewContainer=te,this._template=Te,this._differs=tt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(te){te&&(this._template=te)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const te=this._ngForOf;!this._differ&&te&&(this._differ=this._differs.find(te).create(this.ngForTrackBy))}if(this._differ){const te=this._differ.diff(this._ngForOf);te&&this._applyChanges(te)}}_applyChanges(te){const Te=this._viewContainer;te.forEachOperation((tt,Ne,Rt)=>{if(null==tt.previousIndex)Te.createEmbeddedView(this._template,new Ot(tt.item,this._ngForOf,-1,-1),null===Rt?void 0:Rt);else if(null==Rt)Te.remove(null===Ne?void 0:Ne);else if(null!==Ne){const ni=Te.get(Ne);Te.move(ni,Rt),li(ni,tt)}});for(let tt=0,Ne=Te.length;tt{li(Te.get(tt.currentIndex),tt)})}static ngTemplateContextGuard(te,Te){return!0}}return ze.\u0275fac=function(te){return new(te||ze)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(t.ZZ4))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),ze})();function li(ze,ne){ze.context.$implicit=ne.item}let gi=(()=>{class ze{constructor(te,Te){this._viewContainer=te,this._context=new Ui,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Te}set ngIf(te){this._context.$implicit=this._context.ngIf=te,this._updateView()}set ngIfThen(te){Un("ngIfThen",te),this._thenTemplateRef=te,this._thenViewRef=null,this._updateView()}set ngIfElse(te){Un("ngIfElse",te),this._elseTemplateRef=te,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(te,Te){return!0}}return ze.\u0275fac=function(te){return new(te||ze)(t.Y36(t.s_b),t.Y36(t.Rgc))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),ze})();class Ui{constructor(){this.$implicit=null,this.ngIf=null}}function Un(ze,ne){if(ne&&!ne.createEmbeddedView)throw new Error(`${ze} must be a TemplateRef, but received '${(0,t.AaK)(ne)}'.`)}class Dn{constructor(ne,te){this._viewContainerRef=ne,this._templateRef=te,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(ne){ne&&!this._created?this.create():!ne&&this._created&&this.destroy()}}let oa=(()=>{class ze{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(te){this._ngSwitch=te,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(te){this._defaultViews.push(te)}_matchCase(te){const Te=te==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Te,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Te}_updateDefaultCases(te){if(this._defaultViews.length>0&&te!==this._defaultUsed){this._defaultUsed=te;for(const Te of this._defaultViews)Te.enforceState(te)}}}return ze.\u0275fac=function(te){return new(te||ze)},ze.\u0275dir=t.lG2({type:ze,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),ze})(),Ea=(()=>{class ze{constructor(te,Te,tt){this.ngSwitch=tt,tt._addCase(),this._view=new Dn(te,Te)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return ze.\u0275fac=function(te){return new(te||ze)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(oa,9))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),ze})(),ta=(()=>{class ze{constructor(te,Te,tt){tt._addDefault(new Dn(te,Te))}}return ze.\u0275fac=function(te){return new(te||ze)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(oa,9))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","ngSwitchDefault",""]],standalone:!0}),ze})(),Kt=(()=>{class ze{constructor(te,Te,tt){this._ngEl=te,this._differs=Te,this._renderer=tt,this._ngStyle=null,this._differ=null}set ngStyle(te){this._ngStyle=te,!this._differ&&te&&(this._differ=this._differs.find(te).create())}ngDoCheck(){if(this._differ){const te=this._differ.diff(this._ngStyle);te&&this._applyChanges(te)}}_setStyle(te,Te){const[tt,Ne]=te.split("."),Rt=-1===tt.indexOf("-")?void 0:t.JOm.DashCase;null!=Te?this._renderer.setStyle(this._ngEl.nativeElement,tt,Ne?`${Te}${Ne}`:Te,Rt):this._renderer.removeStyle(this._ngEl.nativeElement,tt,Rt)}_applyChanges(te){te.forEachRemovedItem(Te=>this._setStyle(Te.key,null)),te.forEachAddedItem(Te=>this._setStyle(Te.key,Te.currentValue)),te.forEachChangedItem(Te=>this._setStyle(Te.key,Te.currentValue))}}return ze.\u0275fac=function(te){return new(te||ze)(t.Y36(t.SBq),t.Y36(t.aQg),t.Y36(t.Qsj))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),ze})(),ri=(()=>{class ze{constructor(te){this._viewContainerRef=te,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(te){if(te.ngTemplateOutlet||te.ngTemplateOutletInjector){const Te=this._viewContainerRef;if(this._viewRef&&Te.remove(Te.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:tt,ngTemplateOutletContext:Ne,ngTemplateOutletInjector:Rt}=this;this._viewRef=Te.createEmbeddedView(tt,Ne,Rt?{injector:Rt}:void 0)}else this._viewRef=null}else this._viewRef&&te.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return ze.\u0275fac=function(te){return new(te||ze)(t.Y36(t.s_b))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[t.TTD]}),ze})();function Hi(ze,ne){return new t.vHH(2100,!1)}class ln{createSubscription(ne,te){return ne.subscribe({next:te,error:Te=>{throw Te}})}dispose(ne){ne.unsubscribe()}}class Gn{createSubscription(ne,te){return ne.then(te,Te=>{throw Te})}dispose(ne){}}const Hn=new Gn,_a=new ln;let Tn=(()=>{class ze{constructor(te){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=te}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(te){return this._obj?te!==this._obj?(this._dispose(),this.transform(te)):this._latestValue:(te&&this._subscribe(te),this._latestValue)}_subscribe(te){this._obj=te,this._strategy=this._selectStrategy(te),this._subscription=this._strategy.createSubscription(te,Te=>this._updateLatestValue(te,Te))}_selectStrategy(te){if((0,t.QGY)(te))return Hn;if((0,t.F4k)(te))return _a;throw Hi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(te,Te){te===this._obj&&(this._latestValue=Te,this._ref.markForCheck())}}return ze.\u0275fac=function(te){return new(te||ze)(t.Y36(t.sBO,16))},ze.\u0275pipe=t.Yjl({name:"async",type:ze,pure:!1,standalone:!0}),ze})(),Vn=(()=>{class ze{transform(te){if(null==te)return null;if("string"!=typeof te)throw Hi();return te.toLowerCase()}}return ze.\u0275fac=function(te){return new(te||ze)},ze.\u0275pipe=t.Yjl({name:"lowercase",type:ze,pure:!0,standalone:!0}),ze})();const xo=/(?:[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 zn=(()=>{class ze{transform(te){if(null==te)return null;if("string"!=typeof te)throw Hi();return te.replace(xo,Te=>Te[0].toUpperCase()+Te.slice(1).toLowerCase())}}return ze.\u0275fac=function(te){return new(te||ze)},ze.\u0275pipe=t.Yjl({name:"titlecase",type:ze,pure:!0,standalone:!0}),ze})(),ia=(()=>{class ze{transform(te){if(null==te)return null;if("string"!=typeof te)throw Hi();return te.toUpperCase()}}return ze.\u0275fac=function(te){return new(te||ze)},ze.\u0275pipe=t.Yjl({name:"uppercase",type:ze,pure:!0,standalone:!0}),ze})();const Pr=new t.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),xr=new t.OlP("DATE_PIPE_DEFAULT_OPTIONS");let jn=(()=>{class ze{constructor(te,Te,tt){this.locale=te,this.defaultTimezone=Te,this.defaultOptions=tt}transform(te,Te,tt,Ne){if(null==te||""===te||te!=te)return null;try{return yt(te,Te??this.defaultOptions?.dateFormat??"mediumDate",Ne||this.locale,tt??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Rt){throw Hi()}}}return ze.\u0275fac=function(te){return new(te||ze)(t.Y36(t.soG,16),t.Y36(Pr,24),t.Y36(xr,24))},ze.\u0275pipe=t.Yjl({name:"date",type:ze,pure:!0,standalone:!0}),ze})(),Nr=(()=>{class ze{transform(te){return JSON.stringify(te,null,2)}}return ze.\u0275fac=function(te){return new(te||ze)},ze.\u0275pipe=t.Yjl({name:"json",type:ze,pure:!1,standalone:!0}),ze})(),Ia=(()=>{class ze{constructor(te){this.differs=te,this.keyValues=[],this.compareFn=wa}transform(te,Te=wa){if(!te||!(te instanceof Map)&&"object"!=typeof te)return null;this.differ||(this.differ=this.differs.find(te).create());const tt=this.differ.diff(te),Ne=Te!==this.compareFn;return tt&&(this.keyValues=[],tt.forEachItem(Rt=>{this.keyValues.push(function Yr(ze,ne){return{key:ze,value:ne}}(Rt.key,Rt.currentValue))})),(tt||Ne)&&(this.keyValues.sort(Te),this.compareFn=Te),this.keyValues}}return ze.\u0275fac=function(te){return new(te||ze)(t.Y36(t.aQg,16))},ze.\u0275pipe=t.Yjl({name:"keyvalue",type:ze,pure:!1,standalone:!0}),ze})();function wa(ze,ne){const te=ze.key,Te=ne.key;if(te===Te)return 0;if(void 0===te)return 1;if(void 0===Te)return-1;if(null===te)return 1;if(null===Te)return-1;if("string"==typeof te&&"string"==typeof Te)return te{class ze{constructor(te){this._locale=te}transform(te,Te,tt){if(!function pr(ze){return!(null==ze||""===ze||ze!=ze)}(te))return null;tt=tt||this._locale;try{return function Xe(ze,ne,te){return function Ni(ze,ne,te,Te,tt,Ne,Rt=!1){let ni="",ti=!1;if(isFinite(ze)){let bi=function wt(ze){let Te,tt,Ne,Rt,ni,ne=Math.abs(ze)+"",te=0;for((tt=ne.indexOf(_t))>-1&&(ne=ne.replace(_t,"")),(Ne=ne.search(/e/i))>0?(tt<0&&(tt=Ne),tt+=+ne.slice(Ne+1),ne=ne.substring(0,Ne)):tt<0&&(tt=ne.length),Ne=0;ne.charAt(Ne)===vt;Ne++);if(Ne===(ni=ne.length))Te=[0],tt=1;else{for(ni--;ne.charAt(ni)===vt;)ni--;for(tt-=Ne,Te=[],Rt=0;Ne<=ni;Ne++,Rt++)Te[Rt]=Number(ne.charAt(Ne))}return tt>$e&&(Te=Te.splice(0,$e-1),te=tt-1,tt=1),{digits:Te,exponent:te,integerLen:tt}}(ze);Rt&&(bi=function Se(ze){if(0===ze.digits[0])return ze;const ne=ze.digits.length-ze.integerLen;return ze.exponent?ze.exponent+=2:(0===ne?ze.digits.push(0,0):1===ne&&ze.digits.push(0),ze.integerLen+=2),ze}(bi));let Si=ne.minInt,Pi=ne.minFrac,qi=ne.maxFrac;if(Ne){const ha=Ne.match(gt);if(null===ha)throw new Error(`${Ne} is not a valid digit info`);const ua=ha[1],ra=ha[3],Da=ha[5];null!=ua&&(Si=si(ua)),null!=ra&&(Pi=si(ra)),null!=Da?qi=si(Da):null!=ra&&Pi>qi&&(qi=Pi)}!function Zt(ze,ne,te){if(ne>te)throw new Error(`The minimum number of digits after fraction (${ne}) is higher than the maximum (${te}).`);let Te=ze.digits,tt=Te.length-ze.integerLen;const Ne=Math.min(Math.max(ne,tt),te);let Rt=Ne+ze.integerLen,ni=Te[Rt];if(Rt>0){Te.splice(Math.max(ze.integerLen,Rt));for(let Pi=Rt;Pi=5)if(Rt-1<0){for(let Pi=0;Pi>Rt;Pi--)Te.unshift(0),ze.integerLen++;Te.unshift(1),ze.integerLen++}else Te[Rt-1]++;for(;tt=bi?hn.pop():ti=!1),qi>=10?1:0},0);Si&&(Te.unshift(Si),ze.integerLen++)}(bi,Pi,qi);let tn=bi.digits,hn=bi.integerLen;const da=bi.exponent;let ma=[];for(ti=tn.every(ha=>!ha);hn0?ma=tn.splice(hn,tn.length):(ma=tn,tn=[0]);const ka=[];for(tn.length>=ne.lgSize&&ka.unshift(tn.splice(-ne.lgSize,tn.length).join(""));tn.length>ne.gSize;)ka.unshift(tn.splice(-ne.gSize,tn.length).join(""));tn.length&&ka.unshift(tn.join("")),ni=ka.join(Ue(te,Te)),ma.length&&(ni+=Ue(te,tt)+ma.join("")),da&&(ni+=Ue(te,l.Exponential)+"+"+da)}else ni=Ue(te,l.Infinity);return ni=ze<0&&!ti?ne.negPre+ni+ne.negSuf:ne.posPre+ni+ne.posSuf,ni}(ze,function It(ze,ne="-"){const te={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Te=ze.split(He),tt=Te[0],Ne=Te[1],Rt=-1!==tt.indexOf(_t)?tt.split(_t):[tt.substring(0,tt.lastIndexOf(vt)+1),tt.substring(tt.lastIndexOf(vt)+1)],ni=Rt[0],ti=Rt[1]||"";te.posPre=ni.substring(0,ni.indexOf(At));for(let Si=0;Si{class ze{transform(te,Te,tt){if(null==te)return null;if(!this.supports(te))throw Hi();return te.slice(Te,tt)}supports(te){return"string"==typeof te||Array.isArray(te)}}return ze.\u0275fac=function(te){return new(te||ze)},ze.\u0275pipe=t.Yjl({name:"slice",type:ze,pure:!1,standalone:!0}),ze})(),ko=(()=>{class ze{}return ze.\u0275fac=function(te){return new(te||ze)},ze.\u0275mod=t.oAB({type:ze}),ze.\u0275inj=t.cJS({}),ze})();const Aa="browser",Kr="server";function Hr(ze){return ze===Aa}function sa(ze){return ze===Kr}let Cr=(()=>{class ze{}return ze.\u0275prov=(0,t.Yz7)({token:ze,providedIn:"root",factory:()=>new Oo((0,t.LFG)(y),window)}),ze})();class Oo{constructor(ne,te){this.document=ne,this.window=te,this.offset=()=>[0,0]}setOffset(ne){this.offset=Array.isArray(ne)?()=>ne:ne}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(ne){this.supportsScrolling()&&this.window.scrollTo(ne[0],ne[1])}scrollToAnchor(ne){if(!this.supportsScrolling())return;const te=function Qr(ze,ne){const te=ze.getElementById(ne)||ze.getElementsByName(ne)[0];if(te)return te;if("function"==typeof ze.createTreeWalker&&ze.body&&(ze.body.createShadowRoot||ze.body.attachShadow)){const Te=ze.createTreeWalker(ze.body,NodeFilter.SHOW_ELEMENT);let tt=Te.currentNode;for(;tt;){const Ne=tt.shadowRoot;if(Ne){const Rt=Ne.getElementById(ne)||Ne.querySelector(`[name="${ne}"]`);if(Rt)return Rt}tt=Te.nextNode()}}return null}(this.document,ne);te&&(this.scrollToElement(te),te.focus())}setHistoryScrollRestoration(ne){if(this.supportScrollRestoration()){const te=this.window.history;te&&te.scrollRestoration&&(te.scrollRestoration=ne)}}scrollToElement(ne){const te=ne.getBoundingClientRect(),Te=te.left+this.window.pageXOffset,tt=te.top+this.window.pageYOffset,Ne=this.offset();this.window.scrollTo(Te-Ne[0],tt-Ne[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const ne=oo(this.window.history)||oo(Object.getPrototypeOf(this.window.history));return!(!ne||!ne.writable&&!ne.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function oo(ze){return Object.getOwnPropertyDescriptor(ze,"scrollRestoration")}class cr{}},529:(We,q,m)=>{"use strict";m.d(q,{JF:()=>xt,LE:()=>Q,TP:()=>g,eN:()=>I});var t=m(6895),e=m(4650),_=m(9646),T=m(9751),s=m(4351),y=m(9300),h=m(4004);class P{}class d{}class w{constructor($){this.normalizedNames=new Map,this.lazyUpdate=null,$?this.lazyInit="string"==typeof $?()=>{this.headers=new Map,$.split("\n").forEach(ue=>{const Le=ue.indexOf(":");if(Le>0){const Je=ue.slice(0,Le),$t=Je.toLowerCase(),Vt=ue.slice(Le+1).trim();this.maybeSetNormalizedName(Je,$t),this.headers.has($t)?this.headers.get($t).push(Vt):this.headers.set($t,[Vt])}})}:()=>{this.headers=new Map,Object.entries($).forEach(([ue,Le])=>{let Je;if(Je="string"==typeof Le?[Le]:"number"==typeof Le?[Le.toString()]:Le.map($t=>$t.toString()),Je.length>0){const $t=ue.toLowerCase();this.headers.set($t,Je),this.maybeSetNormalizedName(ue,$t)}})}:this.headers=new Map}has($){return this.init(),this.headers.has($.toLowerCase())}get($){this.init();const ue=this.headers.get($.toLowerCase());return ue&&ue.length>0?ue[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll($){return this.init(),this.headers.get($.toLowerCase())||null}append($,ue){return this.clone({name:$,value:ue,op:"a"})}set($,ue){return this.clone({name:$,value:ue,op:"s"})}delete($,ue){return this.clone({name:$,value:ue,op:"d"})}maybeSetNormalizedName($,ue){this.normalizedNames.has(ue)||this.normalizedNames.set(ue,$)}init(){this.lazyInit&&(this.lazyInit instanceof w?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach($=>this.applyUpdate($)),this.lazyUpdate=null))}copyFrom($){$.init(),Array.from($.headers.keys()).forEach(ue=>{this.headers.set(ue,$.headers.get(ue)),this.normalizedNames.set(ue,$.normalizedNames.get(ue))})}clone($){const ue=new w;return ue.lazyInit=this.lazyInit&&this.lazyInit instanceof w?this.lazyInit:this,ue.lazyUpdate=(this.lazyUpdate||[]).concat([$]),ue}applyUpdate($){const ue=$.name.toLowerCase();switch($.op){case"a":case"s":let Le=$.value;if("string"==typeof Le&&(Le=[Le]),0===Le.length)return;this.maybeSetNormalizedName($.name,ue);const Je=("a"===$.op?this.headers.get(ue):void 0)||[];Je.push(...Le),this.headers.set(ue,Je);break;case"d":const $t=$.value;if($t){let Vt=this.headers.get(ue);if(!Vt)return;Vt=Vt.filter(ii=>-1===$t.indexOf(ii)),0===Vt.length?(this.headers.delete(ue),this.normalizedNames.delete(ue)):this.headers.set(ue,Vt)}else this.headers.delete(ue),this.normalizedNames.delete(ue)}}forEach($){this.init(),Array.from(this.normalizedNames.keys()).forEach(ue=>$(this.normalizedNames.get(ue),this.headers.get(ue)))}}class L{encodeKey($){return Y($)}encodeValue($){return Y($)}decodeKey($){return decodeURIComponent($)}decodeValue($){return decodeURIComponent($)}}const H=/%(\d[a-f0-9])/gi,V={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Y(ke){return encodeURIComponent(ke).replace(H,($,ue)=>V[ue]??$)}function j(ke){return`${ke}`}class Q{constructor($={}){if(this.updates=null,this.cloneFrom=null,this.encoder=$.encoder||new L,$.fromString){if($.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function D(ke,$){const ue=new Map;return ke.length>0&&ke.replace(/^\?/,"").split("&").forEach(Je=>{const $t=Je.indexOf("="),[Vt,ii]=-1==$t?[$.decodeKey(Je),""]:[$.decodeKey(Je.slice(0,$t)),$.decodeValue(Je.slice($t+1))],pt=ue.get(Vt)||[];pt.push(ii),ue.set(Vt,pt)}),ue}($.fromString,this.encoder)}else $.fromObject?(this.map=new Map,Object.keys($.fromObject).forEach(ue=>{const Le=$.fromObject[ue],Je=Array.isArray(Le)?Le.map(j):[j(Le)];this.map.set(ue,Je)})):this.map=null}has($){return this.init(),this.map.has($)}get($){this.init();const ue=this.map.get($);return ue?ue[0]:null}getAll($){return this.init(),this.map.get($)||null}keys(){return this.init(),Array.from(this.map.keys())}append($,ue){return this.clone({param:$,value:ue,op:"a"})}appendAll($){const ue=[];return Object.keys($).forEach(Le=>{const Je=$[Le];Array.isArray(Je)?Je.forEach($t=>{ue.push({param:Le,value:$t,op:"a"})}):ue.push({param:Le,value:Je,op:"a"})}),this.clone(ue)}set($,ue){return this.clone({param:$,value:ue,op:"s"})}delete($,ue){return this.clone({param:$,value:ue,op:"d"})}toString(){return this.init(),this.keys().map($=>{const ue=this.encoder.encodeKey($);return this.map.get($).map(Le=>ue+"="+this.encoder.encodeValue(Le)).join("&")}).filter($=>""!==$).join("&")}clone($){const ue=new Q({encoder:this.encoder});return ue.cloneFrom=this.cloneFrom||this,ue.updates=(this.updates||[]).concat($),ue}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach($=>this.map.set($,this.cloneFrom.map.get($))),this.updates.forEach($=>{switch($.op){case"a":case"s":const ue=("a"===$.op?this.map.get($.param):void 0)||[];ue.push(j($.value)),this.map.set($.param,ue);break;case"d":if(void 0===$.value){this.map.delete($.param);break}{let Le=this.map.get($.param)||[];const Je=Le.indexOf(j($.value));-1!==Je&&Le.splice(Je,1),Le.length>0?this.map.set($.param,Le):this.map.delete($.param)}}}),this.cloneFrom=this.updates=null)}}class ee{constructor(){this.map=new Map}set($,ue){return this.map.set($,ue),this}get($){return this.map.has($)||this.map.set($,$.defaultValue()),this.map.get($)}delete($){return this.map.delete($),this}has($){return this.map.has($)}keys(){return this.map.keys()}}function re(ke){return typeof ArrayBuffer<"u"&&ke instanceof ArrayBuffer}function ie(ke){return typeof Blob<"u"&&ke instanceof Blob}function se(ke){return typeof FormData<"u"&&ke instanceof FormData}class Ce{constructor($,ue,Le,Je){let $t;if(this.url=ue,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=$.toUpperCase(),function me(ke){switch(ke){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Je?(this.body=void 0!==Le?Le:null,$t=Je):$t=Le,$t&&(this.reportProgress=!!$t.reportProgress,this.withCredentials=!!$t.withCredentials,$t.responseType&&(this.responseType=$t.responseType),$t.headers&&(this.headers=$t.headers),$t.context&&(this.context=$t.context),$t.params&&(this.params=$t.params)),this.headers||(this.headers=new w),this.context||(this.context=new ee),this.params){const Vt=this.params.toString();if(0===Vt.length)this.urlWithParams=ue;else{const ii=ue.indexOf("?");this.urlWithParams=ue+(-1===ii?"?":iiSt.set(gt,$.setHeaders[gt]),pt)),$.setParams&&(ot=Object.keys($.setParams).reduce((St,gt)=>St.set(gt,$.setParams[gt]),ot)),new Ce(ue,Le,$t,{params:ot,headers:pt,context:ft,reportProgress:ii,responseType:Je,withCredentials:Vt})}}var M=(()=>((M=M||{})[M.Sent=0]="Sent",M[M.UploadProgress=1]="UploadProgress",M[M.ResponseHeader=2]="ResponseHeader",M[M.DownloadProgress=3]="DownloadProgress",M[M.Response=4]="Response",M[M.User=5]="User",M))();class i{constructor($,ue=200,Le="OK"){this.headers=$.headers||new w,this.status=void 0!==$.status?$.status:ue,this.statusText=$.statusText||Le,this.url=$.url||null,this.ok=this.status>=200&&this.status<300}}class a extends i{constructor($={}){super($),this.type=M.ResponseHeader}clone($={}){return new a({headers:$.headers||this.headers,status:void 0!==$.status?$.status:this.status,statusText:$.statusText||this.statusText,url:$.url||this.url||void 0})}}class f extends i{constructor($={}){super($),this.type=M.Response,this.body=void 0!==$.body?$.body:null}clone($={}){return new f({body:void 0!==$.body?$.body:this.body,headers:$.headers||this.headers,status:void 0!==$.status?$.status:this.status,statusText:$.statusText||this.statusText,url:$.url||this.url||void 0})}}class l extends i{constructor($){super($,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${$.url||"(unknown url)"}`:`Http failure response for ${$.url||"(unknown url)"}: ${$.status} ${$.statusText}`,this.error=$.error||null}}function v(ke,$){return{body:$,headers:ke.headers,context:ke.context,observe:ke.observe,params:ke.params,reportProgress:ke.reportProgress,responseType:ke.responseType,withCredentials:ke.withCredentials}}let I=(()=>{class ke{constructor(ue){this.handler=ue}request(ue,Le,Je={}){let $t;if(ue instanceof Ce)$t=ue;else{let pt,ot;pt=Je.headers instanceof w?Je.headers:new w(Je.headers),Je.params&&(ot=Je.params instanceof Q?Je.params:new Q({fromObject:Je.params})),$t=new Ce(ue,Le,void 0!==Je.body?Je.body:null,{headers:pt,context:Je.context,params:ot,reportProgress:Je.reportProgress,responseType:Je.responseType||"json",withCredentials:Je.withCredentials})}const Vt=(0,_.of)($t).pipe((0,s.b)(pt=>this.handler.handle(pt)));if(ue instanceof Ce||"events"===Je.observe)return Vt;const ii=Vt.pipe((0,y.h)(pt=>pt instanceof f));switch(Je.observe||"body"){case"body":switch($t.responseType){case"arraybuffer":return ii.pipe((0,h.U)(pt=>{if(null!==pt.body&&!(pt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return pt.body}));case"blob":return ii.pipe((0,h.U)(pt=>{if(null!==pt.body&&!(pt.body instanceof Blob))throw new Error("Response is not a Blob.");return pt.body}));case"text":return ii.pipe((0,h.U)(pt=>{if(null!==pt.body&&"string"!=typeof pt.body)throw new Error("Response is not a string.");return pt.body}));default:return ii.pipe((0,h.U)(pt=>pt.body))}case"response":return ii;default:throw new Error(`Unreachable: unhandled observe type ${Je.observe}}`)}}delete(ue,Le={}){return this.request("DELETE",ue,Le)}get(ue,Le={}){return this.request("GET",ue,Le)}head(ue,Le={}){return this.request("HEAD",ue,Le)}jsonp(ue,Le){return this.request("JSONP",ue,{params:(new Q).append(Le,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(ue,Le={}){return this.request("OPTIONS",ue,Le)}patch(ue,Le,Je={}){return this.request("PATCH",ue,v(Je,Le))}post(ue,Le,Je={}){return this.request("POST",ue,v(Je,Le))}put(ue,Le,Je={}){return this.request("PUT",ue,v(Je,Le))}}return ke.\u0275fac=function(ue){return new(ue||ke)(e.LFG(P))},ke.\u0275prov=e.Yz7({token:ke,factory:ke.\u0275fac}),ke})();function k(ke,$){return $(ke)}function x(ke,$){return(ue,Le)=>$.intercept(ue,{handle:Je=>ke(Je,Le)})}const g=new e.OlP("HTTP_INTERCEPTORS"),W=new e.OlP("HTTP_INTERCEPTOR_FNS");function O(){let ke=null;return($,ue)=>(null===ke&&(ke=((0,e.f3M)(g,{optional:!0})??[]).reduceRight(x,k)),ke($,ue))}let G=(()=>{class ke extends P{constructor(ue,Le){super(),this.backend=ue,this.injector=Le,this.chain=null}handle(ue){if(null===this.chain){const Le=Array.from(new Set(this.injector.get(W)));this.chain=Le.reduceRight((Je,$t)=>function n(ke,$,ue){return(Le,Je)=>ue.runInContext(()=>$(Le,$t=>ke($t,Je)))}(Je,$t,this.injector),k)}return this.chain(ue,Le=>this.backend.handle(Le))}}return ke.\u0275fac=function(ue){return new(ue||ke)(e.LFG(d),e.LFG(e.lqb))},ke.\u0275prov=e.Yz7({token:ke,factory:ke.\u0275fac}),ke})();const he=/^\)\]\}',?\n/;let pe=(()=>{class ke{constructor(ue){this.xhrFactory=ue}handle(ue){if("JSONP"===ue.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new T.y(Le=>{const Je=this.xhrFactory.build();if(Je.open(ue.method,ue.urlWithParams),ue.withCredentials&&(Je.withCredentials=!0),ue.headers.forEach(($e,_t)=>Je.setRequestHeader($e,_t.join(","))),ue.headers.has("Accept")||Je.setRequestHeader("Accept","application/json, text/plain, */*"),!ue.headers.has("Content-Type")){const $e=ue.detectContentTypeHeader();null!==$e&&Je.setRequestHeader("Content-Type",$e)}if(ue.responseType){const $e=ue.responseType.toLowerCase();Je.responseType="json"!==$e?$e:"text"}const $t=ue.serializeBody();let Vt=null;const ii=()=>{if(null!==Vt)return Vt;const $e=Je.statusText||"OK",_t=new w(Je.getAllResponseHeaders()),vt=function Me(ke){return"responseURL"in ke&&ke.responseURL?ke.responseURL:/^X-Request-URL:/m.test(ke.getAllResponseHeaders())?ke.getResponseHeader("X-Request-URL"):null}(Je)||ue.url;return Vt=new a({headers:_t,status:Je.status,statusText:$e,url:vt}),Vt},pt=()=>{let{headers:$e,status:_t,statusText:vt,url:He}=ii(),Et=null;204!==_t&&(Et=typeof Je.response>"u"?Je.responseText:Je.response),0===_t&&(_t=Et?200:0);let At=_t>=200&&_t<300;if("json"===ue.responseType&&"string"==typeof Et){const Qt=Et;Et=Et.replace(he,"");try{Et=""!==Et?JSON.parse(Et):null}catch(zi){Et=Qt,At&&(At=!1,Et={error:zi,text:Et})}}At?(Le.next(new f({body:Et,headers:$e,status:_t,statusText:vt,url:He||void 0})),Le.complete()):Le.error(new l({error:Et,headers:$e,status:_t,statusText:vt,url:He||void 0}))},ot=$e=>{const{url:_t}=ii(),vt=new l({error:$e,status:Je.status||0,statusText:Je.statusText||"Unknown Error",url:_t||void 0});Le.error(vt)};let ft=!1;const St=$e=>{ft||(Le.next(ii()),ft=!0);let _t={type:M.DownloadProgress,loaded:$e.loaded};$e.lengthComputable&&(_t.total=$e.total),"text"===ue.responseType&&Je.responseText&&(_t.partialText=Je.responseText),Le.next(_t)},gt=$e=>{let _t={type:M.UploadProgress,loaded:$e.loaded};$e.lengthComputable&&(_t.total=$e.total),Le.next(_t)};return Je.addEventListener("load",pt),Je.addEventListener("error",ot),Je.addEventListener("timeout",ot),Je.addEventListener("abort",ot),ue.reportProgress&&(Je.addEventListener("progress",St),null!==$t&&Je.upload&&Je.upload.addEventListener("progress",gt)),Je.send($t),Le.next({type:M.Sent}),()=>{Je.removeEventListener("error",ot),Je.removeEventListener("abort",ot),Je.removeEventListener("load",pt),Je.removeEventListener("timeout",ot),ue.reportProgress&&(Je.removeEventListener("progress",St),null!==$t&&Je.upload&&Je.upload.removeEventListener("progress",gt)),Je.readyState!==Je.DONE&&Je.abort()}})}}return ke.\u0275fac=function(ue){return new(ue||ke)(e.LFG(t.JF))},ke.\u0275prov=e.Yz7({token:ke,factory:ke.\u0275fac}),ke})();const Ve=new e.OlP("XSRF_ENABLED"),Pe=new e.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),rt=new e.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Ke{}let lt=(()=>{class ke{constructor(ue,Le,Je){this.doc=ue,this.platform=Le,this.cookieName=Je,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const ue=this.doc.cookie||"";return ue!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,t.Mx)(ue,this.cookieName),this.lastCookieString=ue),this.lastToken}}return ke.\u0275fac=function(ue){return new(ue||ke)(e.LFG(t.K0),e.LFG(e.Lbi),e.LFG(Pe))},ke.\u0275prov=e.Yz7({token:ke,factory:ke.\u0275fac}),ke})();function Ut(ke,$){const ue=ke.url.toLowerCase();if(!(0,e.f3M)(Ve)||"GET"===ke.method||"HEAD"===ke.method||ue.startsWith("http://")||ue.startsWith("https://"))return $(ke);const Le=(0,e.f3M)(Ke).getToken(),Je=(0,e.f3M)(rt);return null!=Le&&!ke.headers.has(Je)&&(ke=ke.clone({headers:ke.headers.set(Je,Le)})),$(ke)}var Ge=(()=>((Ge=Ge||{})[Ge.Interceptors=0]="Interceptors",Ge[Ge.LegacyInterceptors=1]="LegacyInterceptors",Ge[Ge.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Ge[Ge.NoXsrfProtection=3]="NoXsrfProtection",Ge[Ge.JsonpSupport=4]="JsonpSupport",Ge[Ge.RequestsMadeViaParent=5]="RequestsMadeViaParent",Ge))();function yt(ke,$){return{\u0275kind:ke,\u0275providers:$}}function be(...ke){const $=[I,pe,G,{provide:P,useExisting:G},{provide:d,useExisting:pe},{provide:W,useValue:Ut,multi:!0},{provide:Ve,useValue:!0},{provide:Ke,useClass:lt}];for(const ue of ke)$.push(...ue.\u0275providers);return(0,e.MR2)($)}const Ie=new e.OlP("LEGACY_INTERCEPTOR_FN");let xt=(()=>{class ke{}return ke.\u0275fac=function(ue){return new(ue||ke)},ke.\u0275mod=e.oAB({type:ke}),ke.\u0275inj=e.cJS({providers:[be(yt(Ge.LegacyInterceptors,[{provide:Ie,useFactory:O},{provide:W,useExisting:Ie,multi:!0}]))]}),ke})()},4650:(We,q,m)=>{"use strict";m.d(q,{$8M:()=>uc,$WT:()=>Ai,$Z:()=>ac,AFp:()=>U6,ALo:()=>d6,AaK:()=>P,AsE:()=>b0,BQk:()=>jh,CHM:()=>so,CRH:()=>y6,CZH:()=>bu,CqO:()=>w4,D6c:()=>xg,DdM:()=>t6,Dn7:()=>_m,EJc:()=>p8,EiD:()=>P2,EpF:()=>x4,F$t:()=>m0,F4k:()=>C4,FYo:()=>xs,FiY:()=>$r,Gf:()=>v6,GfV:()=>j2,GkF:()=>Kh,Gpc:()=>C,Gre:()=>Ol,HOy:()=>Ja,Hsn:()=>Nf,Ikx:()=>r3,JOm:()=>_s,JVY:()=>S2,JZr:()=>Y,Jf7:()=>Ld,KtG:()=>Ws,L6k:()=>th,LAX:()=>ih,LFG:()=>xt,Lbi:()=>Z6,Lck:()=>Hl,MAs:()=>y4,MGl:()=>p0,MMx:()=>$a,MR2:()=>fh,NdJ:()=>f0,O4$:()=>fs,OlP:()=>Ca,Oqu:()=>$d,P3R:()=>F2,PXZ:()=>A8,Q6J:()=>Af,QGY:()=>If,QbO:()=>f8,Qsj:()=>Z2,R0b:()=>cc,RDi:()=>q0,Rgc:()=>gu,SBq:()=>_1,Sil:()=>v8,Suo:()=>b6,TTD:()=>gr,TgZ:()=>qd,Tol:()=>v0,Udp:()=>Ss,VKq:()=>mm,W1O:()=>S6,WFA:()=>kf,WLB:()=>i6,X6Q:()=>O8,XFs:()=>Ve,Xpm:()=>At,Xts:()=>u1,Y36:()=>rs,YKP:()=>bo,YNc:()=>b4,Yjl:()=>Se,Yz7:()=>Ue,Z0I:()=>fe,ZZ4:()=>H3,_Bn:()=>Fl,_UZ:()=>Lf,_Vd:()=>Al,_c5:()=>j8,_uU:()=>oc,aQg:()=>Xm,c2e:()=>Y6,cJS:()=>ye,cg1:()=>s3,d8E:()=>lu,dDg:()=>eg,dqk:()=>lt,eBb:()=>E2,eFA:()=>rg,eJc:()=>Em,ekj:()=>xn,eoX:()=>tg,f3M:()=>Gt,g9A:()=>W6,h0i:()=>Gs,hGG:()=>K8,hYB:()=>Qh,hij:()=>N1,iGM:()=>_6,ifc:()=>pt,ip1:()=>B6,jDz:()=>Lo,kEZ:()=>pm,kL8:()=>Q4,kcU:()=>hc,lG2:()=>It,lcZ:()=>h6,lnq:()=>rl,lqb:()=>Cc,lri:()=>X6,mCW:()=>l1,n5z:()=>ll,n_E:()=>C3,oAB:()=>Mi,oJD:()=>_d,oxw:()=>Rf,pB0:()=>nh,q3G:()=>Qa,qLn:()=>il,qOj:()=>pf,qZA:()=>Yh,qzn:()=>Xc,rWj:()=>$6,s9C:()=>Ff,sBO:()=>R8,s_b:()=>_u,soG:()=>yu,tBr:()=>To,tb:()=>ng,tp0:()=>Ns,uIk:()=>Gh,vHH:()=>j,vpe:()=>Oc,wAp:()=>Mn,xi3:()=>u6,xp6:()=>Od,ynx:()=>u0,z2F:()=>O3,z3N:()=>po,zSh:()=>El,zs3:()=>ic});var t=m(7579),e=m(727),_=m(9751),T=m(6451),s=m(3099);function y(o){for(let c in o)if(o[c]===y)return c;throw Error("Could not find renamed property on target object.")}function h(o,c){for(const p in c)c.hasOwnProperty(p)&&!o.hasOwnProperty(p)&&(o[p]=c[p])}function P(o){if("string"==typeof o)return o;if(Array.isArray(o))return"["+o.map(P).join(", ")+"]";if(null==o)return""+o;if(o.overriddenName)return`${o.overriddenName}`;if(o.name)return`${o.name}`;const c=o.toString();if(null==c)return""+c;const p=c.indexOf("\n");return-1===p?c:c.substring(0,p)}function d(o,c){return null==o||""===o?null===c?"":c:null==c||""===c?o:o+" "+c}const w=y({__forward_ref__:y});function C(o){return o.__forward_ref__=C,o.toString=function(){return P(this())},o}function L(o){return D(o)?o():o}function D(o){return"function"==typeof o&&o.hasOwnProperty(w)&&o.__forward_ref__===C}function H(o){return o&&!!o.\u0275providers}const Y="https://g.co/ng/security#xss";class j extends Error{constructor(c,p){super(Q(c,p)),this.code=c}}function Q(o,c){return`NG0${Math.abs(o)}${c?": "+c.trim():""}`}function J(o){return"string"==typeof o?o:null==o?"":String(o)}function se(o,c){throw new j(-201,!1)}function W(o,c){null==o&&function O(o,c,p,E){throw new Error(`ASSERTION ERROR: ${o}`+(null==E?"":` [Expected=> ${p} ${E} ${c} <=Actual]`))}(c,o,null,"!=")}function Ue(o){return{token:o.token,providedIn:o.providedIn||null,factory:o.factory,value:void 0}}function ye(o){return{providers:o.providers||[],imports:o.imports||[]}}function xe(o){return Oe(o,De)||Oe(o,Me)}function fe(o){return null!==xe(o)}function Oe(o,c){return o.hasOwnProperty(c)?o[c]:null}function Fe(o){return o&&(o.hasOwnProperty(he)||o.hasOwnProperty(pe))?o[he]:null}const De=y({\u0275prov:y}),he=y({\u0275inj:y}),Me=y({ngInjectableDef:y}),pe=y({ngInjectorDef:y});var Ve=(()=>((Ve=Ve||{})[Ve.Default=0]="Default",Ve[Ve.Host=1]="Host",Ve[Ve.Self=2]="Self",Ve[Ve.SkipSelf=4]="SkipSelf",Ve[Ve.Optional=8]="Optional",Ve))();let Qe;function de(o){const c=Qe;return Qe=o,c}function rt(o,c,p){const E=xe(o);return E&&"root"==E.providedIn?void 0===E.value?E.value=E.factory():E.value:p&Ve.Optional?null:void 0!==c?c:void se(P(o))}const lt=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),yt={},be="__NG_DI_FLAG__",qe="ngTempTokenPath",Ie="ngTokenPath",X=/\n/gm,mt="\u0275",Tt="__source";let it;function je(o){const c=it;return it=o,c}function zt(o,c=Ve.Default){if(void 0===it)throw new j(-203,!1);return null===it?rt(o,void 0,c):it.get(o,c&Ve.Optional?null:void 0,c)}function xt(o,c=Ve.Default){return(function Pe(){return Qe}()||zt)(L(o),c)}function Gt(o,c=Ve.Default){return xt(o,ke(c))}function ke(o){return typeof o>"u"||"number"==typeof o?o:0|(o.optional&&8)|(o.host&&1)|(o.self&&2)|(o.skipSelf&&4)}function $(o){const c=[];for(let p=0;p((ii=ii||{})[ii.OnPush=0]="OnPush",ii[ii.Default=1]="Default",ii))(),pt=(()=>{return(o=pt||(pt={}))[o.Emulated=0]="Emulated",o[o.None=2]="None",o[o.ShadowDom=3]="ShadowDom",pt;var o})();const ot={},ft=[],St=y({\u0275cmp:y}),gt=y({\u0275dir:y}),$e=y({\u0275pipe:y}),_t=y({\u0275mod:y}),vt=y({\u0275fac:y}),He=y({__NG_ELEMENT_ID__:y});let Et=0;function At(o){return Vt(()=>{const c=Qi(o),p={...c,decls:o.decls,vars:o.vars,template:o.template,consts:o.consts||null,ngContentSelectors:o.ngContentSelectors,onPush:o.changeDetection===ii.OnPush,directiveDefs:null,pipeDefs:null,dependencies:c.standalone&&o.dependencies||null,getStandaloneInjector:null,data:o.data||{},encapsulation:o.encapsulation||pt.Emulated,id:"c"+Et++,styles:o.styles||ft,_:null,schemas:o.schemas||null,tView:null};en(p);const E=o.dependencies;return p.directiveDefs=Yi(E,!1),p.pipeDefs=Yi(E,!0),p})}function zi(o){return wt(o)||Zt(o)}function Ni(o){return null!==o}function Mi(o){return Vt(()=>({type:o.type,bootstrap:o.bootstrap||ft,declarations:o.declarations||ft,imports:o.imports||ft,exports:o.exports||ft,transitiveCompileScopes:null,schemas:o.schemas||null,id:o.id||null}))}function Xe(o,c){if(null==o)return ot;const p={};for(const E in o)if(o.hasOwnProperty(E)){let F=o[E],Z=F;Array.isArray(F)&&(Z=F[1],F=F[0]),p[F]=E,c&&(c[F]=Z)}return p}function It(o){return Vt(()=>{const c=Qi(o);return en(c),c})}function Se(o){return{type:o.type,name:o.name,factory:null,pure:!1!==o.pure,standalone:!0===o.standalone,onDestroy:o.type.prototype.ngOnDestroy||null}}function wt(o){return o[St]||null}function Zt(o){return o[gt]||null}function si(o){return o[$e]||null}function Ai(o){const c=wt(o)||Zt(o)||si(o);return null!==c&&c.standalone}function Oi(o,c){const p=o[_t]||null;if(!p&&!0===c)throw new Error(`Type ${P(o)} does not have '\u0275mod' property.`);return p}function Qi(o){const c={};return{type:o.type,providersResolver:null,factory:null,hostBindings:o.hostBindings||null,hostVars:o.hostVars||0,hostAttrs:o.hostAttrs||null,contentQueries:o.contentQueries||null,declaredInputs:c,exportAs:o.exportAs||null,standalone:!0===o.standalone,selectors:o.selectors||ft,viewQuery:o.viewQuery||null,features:o.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Xe(o.inputs,c),outputs:Xe(o.outputs)}}function en(o){o.features?.forEach(c=>c(o))}function Yi(o,c){if(!o)return null;const p=c?si:zi;return()=>("function"==typeof o?o():o).map(E=>p(E)).filter(Ni)}const Yt=0,qt=1,_e=2,dt=3,Dt=4,Bt=5,Ot=6,vi=7,li=8,mi=9,gi=10,Ui=11,Un=12,Dn=13,oa=14,Ea=15,ta=16,er=17,Jt=18,pi=19,Kt=20,ri=21,xi=22,ln=1,Gn=2,Hn=7,_a=8,Tn=9,Vn=10;function zn(o){return Array.isArray(o)&&"object"==typeof o[ln]}function ia(o){return Array.isArray(o)&&!0===o[ln]}function Co(o){return 0!=(4&o.flags)}function Pr(o){return o.componentOffset>-1}function xr(o){return 1==(1&o.flags)}function jn(o){return!!o.template}function Ta(o){return 0!=(256&o[_e])}function za(o,c){return o.hasOwnProperty(vt)?o[vt]:null}class sr{constructor(c,p,E){this.previousValue=c,this.currentValue=p,this.firstChange=E}isFirstChange(){return this.firstChange}}function gr(){return Cr}function Cr(o){return o.type.prototype.ngOnChanges&&(o.setInput=oo),Oo}function Oo(){const o=qr(this),c=o?.current;if(c){const p=o.previous;if(p===ot)o.previous=c;else for(let E in c)p[E]=c[E];o.current=null,this.ngOnChanges(c)}}function oo(o,c,p,E){const F=this.declaredInputs[p],Z=qr(o)||function cr(o,c){return o[Qr]=c}(o,{previous:ot,current:null}),le=Z.current||(Z.current={}),Re=Z.previous,Ye=Re[F];le[F]=new sr(Ye&&Ye.currentValue,c,Re===ot),o[E]=c}gr.ngInherit=!0;const Qr="__ngSimpleChanges__";function qr(o){return o[Qr]||null}const Va=function(o,c,p){},wr="svg";function On(o){for(;Array.isArray(o);)o=o[Yt];return o}function Mr(o,c){return On(c[o])}function ya(o,c){return On(c[o.index])}function Ft(o,c){return o.data[c]}function hi(o,c){return o[c]}function Ct(o,c){const p=c[o];return zn(p)?p:p[Yt]}function Ii(o){return 64==(64&o[_e])}function aa(o,c){return null==c?null:o[c]}function ca(o){o[Jt]=0}function Wi(o,c){o[Bt]+=c;let p=o,E=o[dt];for(;null!==E&&(1===c&&1===p[Bt]||-1===c&&0===p[Bt]);)E[Bt]+=c,p=E,E=E[dt]}const _n={lFrame:dc(null),bindingsEnabled:!0};function wi(){return _n.bindingsEnabled}function Ei(){return _n.lFrame.lView}function An(){return _n.lFrame.tView}function so(o){return _n.lFrame.contextLView=o,o[li]}function Ws(o){return _n.lFrame.contextLView=null,o}function Ba(){let o=ds();for(;null!==o&&64===o.type;)o=o.parent;return o}function ds(){return _n.lFrame.currentTNode}function Sr(o,c){const p=_n.lFrame;p.currentTNode=o,p.isParent=c}function Xo(){return _n.lFrame.isParent}function Ds(){_n.lFrame.isParent=!1}function qn(){const o=_n.lFrame;let c=o.bindingRootIndex;return-1===c&&(c=o.bindingRootIndex=o.tView.bindingStartIndex),c}function ki(){return _n.lFrame.bindingIndex}function co(){return _n.lFrame.bindingIndex++}function Fi(o){const c=_n.lFrame,p=c.bindingIndex;return c.bindingIndex=c.bindingIndex+o,p}function lc(o,c){const p=_n.lFrame;p.bindingIndex=p.bindingRootIndex=o,dr(c)}function dr(o){_n.lFrame.currentDirectiveIndex=o}function Go(o){const c=_n.lFrame.currentDirectiveIndex;return-1===c?null:o[c]}function lo(){return _n.lFrame.currentQueryIndex}function hs(o){_n.lFrame.currentQueryIndex=o}function Ys(o){const c=o[qt];return 2===c.type?c.declTNode:1===c.type?o[Ot]:null}function Fo(o,c,p){if(p&Ve.SkipSelf){let F=c,Z=o;for(;!(F=F.parent,null!==F||p&Ve.Host||(F=Ys(Z),null===F||(Z=Z[Ea],10&F.type))););if(null===F)return!1;c=F,o=Z}const E=_n.lFrame=ks();return E.currentTNode=c,E.lView=o,!0}function Is(o){const c=ks(),p=o[qt];_n.lFrame=c,c.currentTNode=p.firstChild,c.lView=o,c.tView=p,c.contextLView=o,c.bindingIndex=p.bindingStartIndex,c.inI18n=!1}function ks(){const o=_n.lFrame,c=null===o?null:o.child;return null===c?dc(o):c}function dc(o){const c={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:o,child:null,inI18n:!1};return null!==o&&(o.child=c),c}function js(){const o=_n.lFrame;return _n.lFrame=o.parent,o.currentTNode=null,o.lView=null,o}const Ya=js;function es(){const o=js();o.isParent=!0,o.tView=null,o.selectedIndex=-1,o.contextLView=null,o.elementDepthCount=0,o.currentDirectiveIndex=-1,o.currentNamespace=null,o.bindingRootIndex=-1,o.bindingIndex=-1,o.currentQueryIndex=0}function ja(){return _n.lFrame.selectedIndex}function Ho(o){_n.lFrame.selectedIndex=o}function la(){const o=_n.lFrame;return Ft(o.tView,o.selectedIndex)}function fs(){_n.lFrame.currentNamespace=wr}function hc(){!function Wn(){_n.lFrame.currentNamespace=null}()}function La(o,c){for(let p=c.directiveStart,E=c.directiveEnd;p=E)break}else c[Ye]<0&&(o[Jt]+=65536),(Re>11>16&&(3&o[_e])===c){o[_e]+=2048,Va(4,Re,Z);try{Z.call(Re)}finally{Va(5,Re,Z)}}}else{Va(4,Re,Z);try{Z.call(Re)}finally{Va(5,Re,Z)}}}const Te=-1;class tt{constructor(c,p,E){this.factory=c,this.resolving=!1,this.canSeeViewProviders=p,this.injectImpl=E}}function tn(o,c,p){let E=0;for(;Ec){le=Z-1;break}}}for(;Z>16}(o),E=c;for(;p>0;)E=E[Ea],p--;return E}let Ma=!0;function Tr(o){const c=Ma;return Ma=o,c}const ho=255,zr=5;let ol=0;const Wo={};function Nc(o,c){const p=Gl(o,c);if(-1!==p)return p;const E=c[qt];E.firstCreatePass&&(o.injectorIndex=c.length,Ar(E.data,o),Ar(c,null),Ar(E.blueprint,null));const F=Os(o,c),Z=o.injectorIndex;if(ha(F)){const le=ua(F),Re=Da(F,c),Ye=Re[qt].data;for(let bt=0;bt<8;bt++)c[Z+bt]=Re[le+bt]|Ye[le+bt]}return c[Z+8]=F,Z}function Ar(o,c){o.push(0,0,0,0,0,0,0,0,c)}function Gl(o,c){return-1===o.injectorIndex||o.parent&&o.parent.injectorIndex===o.injectorIndex||null===c[o.injectorIndex+8]?-1:o.injectorIndex}function Os(o,c){if(o.parent&&-1!==o.parent.injectorIndex)return o.parent.injectorIndex;let p=0,E=null,F=c;for(;null!==F;){if(E=V1(F),null===E)return Te;if(p++,F=F[Ea],-1!==E.injectorIndex)return E.injectorIndex|p<<16}return Te}function Fc(o,c,p){!function Ul(o,c,p){let E;"string"==typeof p?E=p.charCodeAt(0)||0:p.hasOwnProperty(He)&&(E=p[He]),null==E&&(E=p[He]=ol++);const F=E&ho;c.data[o+(F>>zr)]|=1<=0?c&ho:Jr:c}(p);if("function"==typeof Z){if(!Fo(c,o,E))return E&Ve.Host?cl(F,0,E):H1(c,p,E,F);try{const le=Z(E);if(null!=le||E&Ve.Optional)return le;se()}finally{Ya()}}else if("number"==typeof Z){let le=null,Re=Gl(o,c),Ye=Te,bt=E&Ve.Host?c[ta][Ot]:null;for((-1===Re||E&Ve.SkipSelf)&&(Ye=-1===Re?Os(o,c):c[Re+8],Ye!==Te&&Zl(E,!1)?(le=c[qt],Re=ua(Ye),c=Da(Ye,c)):Re=-1);-1!==Re;){const Pt=c[qt];if(Ps(Z,Re,Pt.data)){const ei=Hc(Re,c,p,le,E,bt);if(ei!==Wo)return ei}Ye=c[Re+8],Ye!==Te&&Zl(E,c[qt].data[Re+8]===bt)&&Ps(Z,Re,c)?(le=Pt,Re=ua(Ye),c=Da(Ye,c)):Re=-1}}return F}function Hc(o,c,p,E,F,Z){const le=c[qt],Re=le.data[o+8],Pt=Ks(Re,le,p,null==E?Pr(Re)&&Ma:E!=le&&0!=(3&Re.type),F&Ve.Host&&Z===Re);return null!==Pt?tr(c,le,Pt,Re):Wo}function Ks(o,c,p,E,F){const Z=o.providerIndexes,le=c.data,Re=1048575&Z,Ye=o.directiveStart,Pt=Z>>20,di=F?Re+Pt:o.directiveEnd;for(let yi=E?Re:Re+Pt;yi=Ye&&Ri.type===p)return yi}if(F){const yi=le[Ye];if(yi&&jn(yi)&&yi.type===p)return Ye}return null}function tr(o,c,p,E){let F=o[p];const Z=c.data;if(function Ne(o){return o instanceof tt}(F)){const le=F;le.resolving&&function me(o,c){const p=c?`. Dependency path: ${c.join(" > ")} > ${o}`:"";throw new j(-200,`Circular dependency in DI detected for ${o}${p}`)}(function ee(o){return"function"==typeof o?o.name||o.toString():"object"==typeof o&&null!=o&&"function"==typeof o.type?o.type.name||o.type.toString():J(o)}(Z[p]));const Re=Tr(le.canSeeViewProviders);le.resolving=!0;const Ye=le.injectImpl?de(le.injectImpl):null;Fo(o,E,Ve.Default);try{F=o[p]=le.factory(void 0,Z,o,E),c.firstCreatePass&&p>=E.directiveStart&&function xa(o,c,p){const{ngOnChanges:E,ngOnInit:F,ngDoCheck:Z}=c.type.prototype;if(E){const le=Cr(c);(p.preOrderHooks??(p.preOrderHooks=[])).push(o,le),(p.preOrderCheckHooks??(p.preOrderCheckHooks=[])).push(o,le)}F&&(p.preOrderHooks??(p.preOrderHooks=[])).push(0-o,F),Z&&((p.preOrderHooks??(p.preOrderHooks=[])).push(o,Z),(p.preOrderCheckHooks??(p.preOrderCheckHooks=[])).push(o,Z))}(p,Z[p],c)}finally{null!==Ye&&de(Ye),Tr(Re),le.resolving=!1,Ya()}}return F}function Ps(o,c,p){return!!(p[c+(o>>zr)]&1<{const c=o.prototype.constructor,p=c[vt]||dl(c),E=Object.prototype;let F=Object.getPrototypeOf(o.prototype).constructor;for(;F&&F!==E;){const Z=F[vt]||dl(F);if(Z&&Z!==p)return Z;F=Object.getPrototypeOf(F)}return Z=>new Z})}function dl(o){return D(o)?()=>{const c=dl(L(o));return c&&c()}:za(o)}function V1(o){const c=o[qt],p=c.type;return 2===p?c.declTNode:1===p?o[Ot]:null}function uc(o){return function sl(o,c){if("class"===c)return o.classes;if("style"===c)return o.styles;const p=o.attrs;if(p){const E=p.length;let F=0;for(;F{const E=function Vc(o){return function(...p){if(o){const E=o(...p);for(const F in E)this[F]=E[F]}}}(c);function F(...Z){if(this instanceof F)return E.apply(this,Z),this;const le=new F(...Z);return Re.annotation=le,Re;function Re(Ye,bt,Pt){const ei=Ye.hasOwnProperty(uo)?Ye[uo]:Object.defineProperty(Ye,uo,{value:[]})[uo];for(;ei.length<=Pt;)ei.push(null);return(ei[Pt]=ei[Pt]||[]).push(le),Ye}}return p&&(F.prototype=Object.create(p.prototype)),F.prototype.ngMetadataName=o,F.annotationCls=F,F})}class Ca{constructor(c,p){this._desc=c,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof p?this.__NG_ELEMENT_ID__=p:void 0!==p&&(this.\u0275prov=Ue({token:this,providedIn:p.providedIn||"root",factory:p.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function ve(o,c){o.forEach(p=>Array.isArray(p)?ve(p,c):c(p))}function we(o,c,p){c>=o.length?o.push(p):o.splice(c,0,p)}function ae(o,c){return c>=o.length-1?o.pop():o.splice(c,1)[0]}function Be(o,c){const p=[];for(let E=0;E=0?o[1|E]=p:(E=~E,function Ht(o,c,p,E){let F=o.length;if(F==c)o.push(p,E);else if(1===F)o.push(E,o[0]),o[0]=p;else{for(F--,o.push(o[F-1],o[F]);F>c;)o[F]=o[F-2],F--;o[c]=p,o[c+1]=E}}(o,E,c,p)),E}function rn(o,c){const p=an(o,c);if(p>=0)return o[1|p]}function an(o,c){return function ar(o,c,p){let E=0,F=o.length>>p;for(;F!==E;){const Z=E+(F-E>>1),le=o[Z<c?F=Z:E=Z+1}return~(F<({token:o})),-1),$r=ue(Yo("Optional"),8),Ns=ue(Yo("SkipSelf"),4);var _s=(()=>((_s=_s||{})[_s.Important=1]="Important",_s[_s.DashCase=2]="DashCase",_s))();const m2=new Map;let z0=0;const qs="__ngContext__";function eo(o,c){zn(c)?(o[qs]=c[Kt],function Lu(o){m2.set(o[Kt],o)}(c)):o[qs]=c}let _l;function _2(o,c){return _l(o,c)}function gc(o){const c=o[dt];return ia(c)?c[dt]:c}function Hs(o){return jc(o[Dn])}function ql(o){return jc(o[Dt])}function jc(o){for(;null!==o&&!ia(o);)o=o[Dt];return o}function Kc(o,c,p,E,F){if(null!=E){let Z,le=!1;ia(E)?Z=E:zn(E)&&(le=!0,E=E[Yt]);const Re=On(E);0===o&&null!==p?null==F?Xs(c,p,Re):bc(c,p,Re,F||null,!0):1===o&&null!==p?bc(c,p,Re,F||null,!0):2===o?function x2(o,c,p){const E=ad(o,c);E&&function Z0(o,c,p,E){o.removeChild(c,p,E)}(o,E,c,p)}(c,Re,le):3===o&&c.destroyNode(Re),null!=Z&&function od(o,c,p,E,F){const Z=p[Hn];Z!==On(p)&&Kc(c,o,E,Z,F);for(let Re=Vn;Re0&&(o[p-1][Dt]=E[Dt]);const Z=ae(o,Vn+c);!function Pu(o,c){zs(o,c,c[Ui],2,null,null),c[Yt]=null,c[Ot]=null}(E[qt],E);const le=Z[pi];null!==le&&le.detachView(Z[qt]),E[dt]=null,E[Dt]=null,E[_e]&=-65}return E}function _c(o,c){if(!(128&c[_e])){const p=c[Ui];p.destroyNode&&zs(o,c,p,3,null,null),function Fu(o){let c=o[Dn];if(!c)return td(o[qt],o);for(;c;){let p=null;if(zn(c))p=c[Dn];else{const E=c[Vn];E&&(p=E)}if(!p){for(;c&&!c[Dt]&&c!==o;)zn(c)&&td(c[qt],c),c=c[dt];null===c&&(c=o),zn(c)&&td(c[qt],c),p=c&&c[Dt]}c=p}}(c)}}function td(o,c){if(!(128&c[_e])){c[_e]&=-65,c[_e]|=128,function id(o,c){let p;if(null!=o&&null!=(p=o.destroyHooks))for(let E=0;E=0?E[F=le]():E[F=-le].unsubscribe(),Z+=2}else{const le=E[F=p[Z+1]];p[Z].call(le)}if(null!==E){for(let Z=F+1;Z-1){const{encapsulation:Z}=o.data[E.directiveStart+F];if(Z===pt.None||Z===pt.Emulated)return null}return ya(E,p)}}(o,c.parent,p)}function bc(o,c,p,E,F){o.insertBefore(c,p,E,F)}function Xs(o,c,p){o.appendChild(c,p)}function qc(o,c,p,E,F){null!==E?bc(o,c,p,E,F):Xs(o,c,p)}function ad(o,c){return o.parentNode(c)}function Y0(o,c,p){return b2(o,c,p)}let y2,a1,s1,wl,b2=function j0(o,c,p){return 40&o.type?ya(o,p):null};function yl(o,c,p,E){const F=bl(o,E,c),Z=c[Ui],Re=Y0(E.parent||c[Ot],E,c);if(null!=F)if(Array.isArray(p))for(let Ye=0;Yeo,createScript:o=>o,createScriptURL:o=>o})}catch{}return a1}()?.createHTML(o)||o}function q0(o){s1=o}function c1(){if(void 0===wl&&(wl=null,lt.trustedTypes))try{wl=lt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:o=>o,createScript:o=>o,createScriptURL:o=>o})}catch{}return wl}function cd(o){return c1()?.createHTML(o)||o}function ld(o){return c1()?.createScriptURL(o)||o}class yc{constructor(c){this.changingThisBreaksApplicationSecurity=c}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Y})`}}class dd extends yc{getTypeName(){return"HTML"}}class J0 extends yc{getTypeName(){return"Style"}}class hd extends yc{getTypeName(){return"Script"}}class X0 extends yc{getTypeName(){return"URL"}}class $0 extends yc{getTypeName(){return"ResourceURL"}}function po(o){return o instanceof yc?o.changingThisBreaksApplicationSecurity:o}function Xc(o,c){const p=function eh(o){return o instanceof yc&&o.getTypeName()||null}(o);if(null!=p&&p!==c){if("ResourceURL"===p&&"URL"===c)return!0;throw new Error(`Required a safe ${c}, got a ${p} (see ${Y})`)}return p===c}function S2(o){return new dd(o)}function th(o){return new J0(o)}function E2(o){return new hd(o)}function ih(o){return new X0(o)}function nh(o){return new $0(o)}class A2{constructor(c){this.inertDocumentHelper=c}getInertBodyElement(c){c=""+c;try{const p=(new window.DOMParser).parseFromString($n(c),"text/html").body;return null===p?this.inertDocumentHelper.getInertBodyElement(c):(p.removeChild(p.firstChild),p)}catch{return null}}}class ah{constructor(c){this.defaultDoc=c,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(c){const p=this.inertDocument.createElement("template");return p.innerHTML=$n(c),p}}const L2=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function l1(o){return(o=String(o)).match(L2)?o:"unsafe:"+o}function bs(o){const c={};for(const p of o.split(","))c[p]=!0;return c}function Ml(...o){const c={};for(const p of o)for(const E in p)p.hasOwnProperty(E)&&(c[E]=!0);return c}const ud=bs("area,br,col,hr,img,wbr"),D2=bs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),fd=bs("rp,rt"),md=Ml(ud,Ml(D2,bs("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ml(fd,bs("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ml(fd,D2)),d1=bs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),pd=Ml(d1,bs("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),bs("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),sh=bs("script,style,template");class ch{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(c){let p=c.firstChild,E=!0;for(;p;)if(p.nodeType===Node.ELEMENT_NODE?E=this.startElement(p):p.nodeType===Node.TEXT_NODE?this.chars(p.nodeValue):this.sanitizedSomething=!0,E&&p.firstChild)p=p.firstChild;else for(;p;){p.nodeType===Node.ELEMENT_NODE&&this.endElement(p);let F=this.checkClobberedElement(p,p.nextSibling);if(F){p=F;break}p=this.checkClobberedElement(p,p.parentNode)}return this.buf.join("")}startElement(c){const p=c.nodeName.toLowerCase();if(!md.hasOwnProperty(p))return this.sanitizedSomething=!0,!sh.hasOwnProperty(p);this.buf.push("<"),this.buf.push(p);const E=c.attributes;for(let F=0;F"),!0}endElement(c){const p=c.nodeName.toLowerCase();md.hasOwnProperty(p)&&!ud.hasOwnProperty(p)&&(this.buf.push(""))}chars(c){this.buf.push(O2(c))}checkClobberedElement(c,p){if(p&&(c.compareDocumentPosition(p)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${c.outerHTML}`);return p}}const k2=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,lh=/([^\#-~ |!])/g;function O2(o){return o.replace(/&/g,"&").replace(k2,function(c){return"&#"+(1024*(c.charCodeAt(0)-55296)+(c.charCodeAt(1)-56320)+65536)+";"}).replace(lh,function(c){return"&#"+c.charCodeAt(0)+";"}).replace(//g,">")}let h1;function P2(o,c){let p=null;try{h1=h1||function T2(o){const c=new ah(o);return function rh(){try{return!!(new window.DOMParser).parseFromString($n(""),"text/html")}catch{return!1}}()?new A2(c):c}(o);let E=c?String(c):"";p=h1.getInertBodyElement(E);let F=5,Z=E;do{if(0===F)throw new Error("Failed to sanitize html because the input is unstable");F--,E=Z,Z=p.innerHTML,p=h1.getInertBodyElement(E)}while(E!==Z);return $n((new ch).sanitizeChildren(gd(p)||p))}finally{if(p){const E=gd(p)||p;for(;E.firstChild;)E.removeChild(E.firstChild)}}}function gd(o){return"content"in o&&function R2(o){return o.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===o.nodeName}(o)?o.content:null}var Qa=(()=>((Qa=Qa||{})[Qa.NONE=0]="NONE",Qa[Qa.HTML=1]="HTML",Qa[Qa.STYLE=2]="STYLE",Qa[Qa.SCRIPT=3]="SCRIPT",Qa[Qa.URL=4]="URL",Qa[Qa.RESOURCE_URL=5]="RESOURCE_URL",Qa))();function _d(o){const c=ys();return c?cd(c.sanitize(Qa.HTML,o)||""):Xc(o,"HTML")?cd(po(o)):P2(function w2(){return void 0!==s1?s1:typeof document<"u"?document:void 0}(),J(o))}function N2(o){const c=ys();return c?c.sanitize(Qa.URL,o)||"":Xc(o,"URL")?po(o):l1(J(o))}function vd(o){const c=ys();if(c)return ld(c.sanitize(Qa.RESOURCE_URL,o)||"");if(Xc(o,"ResourceURL"))return ld(po(o));throw new j(904,!1)}function F2(o,c,p){return function Ku(o,c){return"src"===c&&("embed"===o||"frame"===o||"iframe"===o||"media"===o||"script"===o)||"href"===c&&("base"===o||"link"===o)?vd:N2}(c,p)(o)}function ys(){const o=Ei();return o&&o[Un]}const u1=new Ca("ENVIRONMENT_INITIALIZER"),H2=new Ca("INJECTOR",-1),z2=new Ca("INJECTOR_DEF_TYPES");class bd{get(c,p=yt){if(p===yt){const E=new Error(`NullInjectorError: No provider for ${P(c)}!`);throw E.name="NullInjectorError",E}return p}}function fh(o){return{\u0275providers:o}}function yd(...o){return{\u0275providers:mh(0,o),\u0275fromNgModule:!0}}function mh(o,...c){const p=[],E=new Set;let F;return ve(c,Z=>{const le=Z;xd(le,p,[],E)&&(F||(F=[]),F.push(le))}),void 0!==F&&f1(F,p),p}function f1(o,c){for(let p=0;p{c.push(Z)})}}function xd(o,c,p,E){if(!(o=L(o)))return!1;let F=null,Z=Fe(o);const le=!Z&&wt(o);if(Z||le){if(le&&!le.standalone)return!1;F=o}else{const Ye=o.ngModule;if(Z=Fe(Ye),!Z)return!1;F=Ye}const Re=E.has(F);if(le){if(Re)return!1;if(E.add(F),le.dependencies){const Ye="function"==typeof le.dependencies?le.dependencies():le.dependencies;for(const bt of Ye)xd(bt,c,p,E)}}else{if(!Z)return!1;{if(null!=Z.imports&&!Re){let bt;E.add(F);try{ve(Z.imports,Pt=>{xd(Pt,c,p,E)&&(bt||(bt=[]),bt.push(Pt))})}finally{}void 0!==bt&&f1(bt,c)}if(!Re){const bt=za(F)||(()=>new F);c.push({provide:F,useFactory:bt,deps:ft},{provide:z2,useValue:F,multi:!0},{provide:u1,useValue:()=>xt(F),multi:!0})}const Ye=Z.providers;null==Ye||Re||m1(Ye,Pt=>{c.push(Pt)})}}return F!==o&&void 0!==o.providers}function m1(o,c){for(let p of o)H(p)&&(p=p.\u0275providers),Array.isArray(p)?m1(p,c):c(p)}const Vr=y({provide:String,useValue:y});function Sl(o){return null!==o&&"object"==typeof o&&Vr in o}function ec(o){return"function"==typeof o}const El=new Ca("Set Injector scope."),p1={},ph={};let g1;function $c(){return void 0===g1&&(g1=new bd),g1}class Cc{}class Cd extends Cc{get destroyed(){return this._destroyed}constructor(c,p,E,F){super(),this.parent=p,this.source=E,this.scopes=F,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,tl(c,le=>this.processProvider(le)),this.records.set(H2,el(void 0,this)),F.has("environment")&&this.records.set(Cc,el(void 0,this));const Z=this.records.get(El);null!=Z&&"string"==typeof Z.value&&this.scopes.add(Z.value),this.injectorDefTypes=new Set(this.get(z2.multi,ft,Ve.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const c of this._ngOnDestroyHooks)c.ngOnDestroy();for(const c of this._onDestroyHooks)c()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(c){this._onDestroyHooks.push(c)}runInContext(c){this.assertNotDestroyed();const p=je(this),E=de(void 0);try{return c()}finally{je(p),de(E)}}get(c,p=yt,E=Ve.Default){this.assertNotDestroyed(),E=ke(E);const F=je(this),Z=de(void 0);try{if(!(E&Ve.SkipSelf)){let Re=this.records.get(c);if(void 0===Re){const Ye=function vh(o){return"function"==typeof o||"object"==typeof o&&o instanceof Ca}(c)&&xe(c);Re=Ye&&this.injectableDefInScope(Ye)?el(wc(c),p1):null,this.records.set(c,Re)}if(null!=Re)return this.hydrate(c,Re)}return(E&Ve.Self?$c():this.parent).get(c,p=E&Ve.Optional&&p===yt?null:p)}catch(le){if("NullInjectorError"===le.name){if((le[qe]=le[qe]||[]).unshift(P(c)),F)throw le;return function Je(o,c,p,E){const F=o[qe];throw c[Tt]&&F.unshift(c[Tt]),o.message=function $t(o,c,p,E=null){o=o&&"\n"===o.charAt(0)&&o.charAt(1)==mt?o.slice(2):o;let F=P(c);if(Array.isArray(c))F=c.map(P).join(" -> ");else if("object"==typeof c){let Z=[];for(let le in c)if(c.hasOwnProperty(le)){let Re=c[le];Z.push(le+":"+("string"==typeof Re?JSON.stringify(Re):P(Re)))}F=`{${Z.join(", ")}}`}return`${p}${E?"("+E+")":""}[${F}]: ${o.replace(X,"\n ")}`}("\n"+o.message,F,p,E),o[Ie]=F,o[qe]=null,o}(le,c,"R3InjectorError",this.source)}throw le}finally{de(Z),je(F)}}resolveInjectorInitializers(){const c=je(this),p=de(void 0);try{const E=this.get(u1.multi,ft,Ve.Self);for(const F of E)F()}finally{je(c),de(p)}}toString(){const c=[],p=this.records;for(const E of p.keys())c.push(P(E));return`R3Injector[${c.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new j(205,!1)}processProvider(c){let p=ec(c=L(c))?c:L(c&&c.provide);const E=function gh(o){return Sl(o)?el(void 0,o.useValue):el(U2(o),p1)}(c);if(ec(c)||!0!==c.multi)this.records.get(p);else{let F=this.records.get(p);F||(F=el(void 0,p1,!0),F.factory=()=>$(F.multi),this.records.set(p,F)),p=c,F.multi.push(c)}this.records.set(p,E)}hydrate(c,p){return p.value===p1&&(p.value=ph,p.value=p.factory()),"object"==typeof p.value&&p.value&&function _h(o){return null!==o&&"object"==typeof o&&"function"==typeof o.ngOnDestroy}(p.value)&&this._ngOnDestroyHooks.add(p.value),p.value}injectableDefInScope(c){if(!c.providedIn)return!1;const p=L(c.providedIn);return"string"==typeof p?"any"===p||this.scopes.has(p):this.injectorDefTypes.has(p)}}function wc(o){const c=xe(o),p=null!==c?c.factory:za(o);if(null!==p)return p;if(o instanceof Ca)throw new j(204,!1);if(o instanceof Function)return function Qu(o){const c=o.length;if(c>0)throw Be(c,"?"),new j(204,!1);const p=function oe(o){return o&&(o[De]||o[Me])||null}(o);return null!==p?()=>p.factory(o):()=>new o}(o);throw new j(204,!1)}function U2(o,c,p){let E;if(ec(o)){const F=L(o);return za(F)||wc(F)}if(Sl(o))E=()=>L(o.useValue);else if(function B2(o){return!(!o||!o.useFactory)}(o))E=()=>o.useFactory(...$(o.deps||[]));else if(function V2(o){return!(!o||!o.useExisting)}(o))E=()=>xt(L(o.useExisting));else{const F=L(o&&(o.useClass||o.provide));if(!function G2(o){return!!o.deps}(o))return za(F)||wc(F);E=()=>new F(...$(o.deps))}return E}function el(o,c,p=!1){return{factory:o,value:c,multi:p?[]:void 0}}function tl(o,c){for(const p of o)Array.isArray(p)?tl(p,c):p&&H(p)?tl(p.\u0275providers,c):c(p)}class wd{}class W2{}class Sd{resolveComponentFactory(c){throw function Tl(o){const c=Error(`No component factory found for ${P(o)}. Did you add it to @NgModule.entryComponents?`);return c.ngComponent=o,c}(c)}}let Al=(()=>{class o{}return o.NULL=new Sd,o})();function Ed(){return Br(Ba(),Ei())}function Br(o,c){return new _1(ya(o,c))}let _1=(()=>{class o{constructor(p){this.nativeElement=p}}return o.__NG_ELEMENT_ID__=Ed,o})();function bh(o){return o instanceof _1?o.nativeElement:o}class xs{}let Z2=(()=>{class o{}return o.__NG_ELEMENT_ID__=()=>function Y2(){const o=Ei(),p=Ct(Ba().index,o);return(zn(p)?p:o)[Ui]}(),o})(),Td=(()=>{class o{}return o.\u0275prov=Ue({token:o,providedIn:"root",factory:()=>null}),o})();class j2{constructor(c){this.full=c,this.major=c.split(".")[0],this.minor=c.split(".")[1],this.patch=c.split(".").slice(2).join(".")}}const v1=new j2("15.2.9"),Ll={},b1="ngOriginalError";function Ad(o){return o[b1]}class il{constructor(){this._console=console}handleError(c){const p=this._findOriginalError(c);this._console.error("ERROR",c),p&&this._console.error("ORIGINAL ERROR",p)}_findOriginalError(c){let p=c&&Ad(c);for(;p&&Ad(p);)p=Ad(p);return p||null}}function Ld(o){return o.ownerDocument.defaultView}function Cs(o){return o instanceof Function?o():o}function Mh(o,c,p){let E=o.length;for(;;){const F=o.indexOf(c,p);if(-1===F)return F;if(0===F||o.charCodeAt(F-1)<=32){const Z=c.length;if(F+Z===E||o.charCodeAt(F+Z)<=32)return F}p=F+1}}const q2="ng-template";function Ju(o,c,p){let E=0,F=!0;for(;EZ?"":F[ei+1].toLowerCase();const yi=8&E?di:null;if(yi&&-1!==Mh(yi,bt,0)||2&E&&bt!==di){if(ns(E))return!1;le=!0}}}}else{if(!le&&!ns(E)&&!ns(Ye))return!1;if(le&&ns(Ye))continue;le=!1,E=Ye|1&E}}return ns(E)||le}function ns(o){return 0==(1&o)}function J2(o,c,p,E){if(null===c)return-1;let F=0;if(E||!p){let Z=!1;for(;F-1)for(p++;p0?'="'+Re+'"':"")+"]"}else 8&E?F+="."+le:4&E&&(F+=" "+le);else""!==F&&!ns(le)&&(c+=e0(Z,F),F=""),E=le,Z=Z||!ns(E);p++}return""!==F&&(c+=e0(Z,F)),c}const Nn={};function Od(o){Pd(An(),Ei(),ja()+o,!1)}function Pd(o,c,p,E){if(!E)if(3==(3&c[_e])){const Z=o.preOrderCheckHooks;null!==Z&&ji(c,Z,p)}else{const Z=o.preOrderHooks;null!==Z&&Kn(c,Z,0,p)}Ho(p)}function Hd(o,c=null,p=null,E){const F=zd(o,c,p,E);return F.resolveInjectorInitializers(),F}function zd(o,c=null,p=null,E,F=new Set){const Z=[p||ft,yd(o)];return E=E||("object"==typeof o?void 0:P(o)),new Cd(Z,c||$c(),E||null,F)}let ic=(()=>{class o{static create(p,E){if(Array.isArray(p))return Hd({name:""},E,p,"");{const F=p.name??"";return Hd({name:F},p.parent,p.providers,F)}}}return o.THROW_IF_NOT_FOUND=yt,o.NULL=new bd,o.\u0275prov=Ue({token:o,providedIn:"any",factory:()=>xt(H2)}),o.__NG_ELEMENT_ID__=-1,o})();function rs(o,c=Ve.Default){const p=Ei();return null===p?xt(o,c):z1(Ba(),p,L(o),c)}function ac(){throw new Error("invalid")}function Vd(o,c){const p=o.contentQueries;if(null!==p)for(let E=0;Exi&&Pd(o,c,xi,!1),Va(le?2:0,F),p(E,F)}finally{Ho(Z),Va(le?3:1,F)}}function M1(o,c,p){if(Co(c)){const F=c.directiveEnd;for(let Z=c.directiveStart;Z0;){const p=o[--c];if("number"==typeof p&&p<0)return p}return 0})(le)!=Re&&le.push(Re),le.push(p,E,Z)}}(o,c,E,Ao(o,p,F.hostVars,Nn),F)}function rc(o,c,p,E,F,Z){const le=ya(o,c);!function sf(o,c,p,E,F,Z,le){if(null==Z)o.removeAttribute(c,F,p);else{const Re=null==le?J(Z):le(Z,E||"",F);o.setAttribute(c,F,Re,p)}}(c[Ui],le,Z,o.value,p,E,F)}function cf(o,c,p,E,F,Z){const le=Z[c];if(null!==le){const Re=E.setInput;for(let Ye=0;Ye0&&Rh(p)}}function Rh(o){for(let E=Hs(o);null!==E;E=ql(E))for(let F=Vn;F0&&Rh(Z)}const p=o[qt].components;if(null!==p)for(let E=0;E0&&Rh(F)}}function lf(o,c){const p=Ct(c,o),E=p[qt];(function $3(o,c){for(let p=c.length;p-1&&($l(c,E),ae(p,E))}this._attachedToViewContainer=!1}_c(this._lView[qt],this._lView)}onDestroy(c){G3(this._lView[qt],this._lView,null,c)}markForCheck(){Fh(this._cdRefInjectingView||this._lView)}detach(){this._lView[_e]&=-65}reattach(){this._lView[_e]|=64}detectChanges(){Hh(this._lView[qt],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new j(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Nu(o,c){zs(o,c,c[Ui],2,null,null)}(this._lView[qt],this._lView)}attachToAppRef(c){if(this._attachedToViewContainer)throw new j(902,!1);this._appRef=c}}class i4 extends T1{constructor(c){super(c),this._view=c}detectChanges(){const c=this._view;Hh(c[qt],c,c[li],!1)}checkNoChanges(){}get context(){return null}}class Uh extends Al{constructor(c){super(),this.ngModule=c}resolveComponentFactory(c){const p=wt(c);return new Ud(p,this.ngModule)}}function uf(o){const c=[];for(let p in o)o.hasOwnProperty(p)&&c.push({propName:o[p],templateName:p});return c}class ff{constructor(c,p){this.injector=c,this.parentInjector=p}get(c,p,E){E=ke(E);const F=this.injector.get(c,Ll,E);return F!==Ll||p===Ll?F:this.parentInjector.get(c,p,E)}}class Ud extends W2{get inputs(){return uf(this.componentDef.inputs)}get outputs(){return uf(this.componentDef.outputs)}constructor(c,p){super(),this.componentDef=c,this.ngModule=p,this.componentType=c.type,this.selector=function Dh(o){return o.map(t0).join(",")}(c.selectors),this.ngContentSelectors=c.ngContentSelectors?c.ngContentSelectors:[],this.isBoundToModule=!!p}create(c,p,E,F){let Z=(F=F||this.ngModule)instanceof Cc?F:F?.injector;Z&&null!==this.componentDef.getStandaloneInjector&&(Z=this.componentDef.getStandaloneInjector(Z)||Z);const le=Z?new ff(c,Z):c,Re=le.get(xs,null);if(null===Re)throw new j(407,!1);const Ye=le.get(Td,null),bt=Re.createRenderer(null,this.componentDef),Pt=this.componentDef.selectors[0][0]||"div",ei=E?function l0(o,c,p){return o.selectRootElement(c,p===pt.ShadowDom)}(bt,E,this.componentDef.encapsulation):Qc(bt,Pt,function n4(o){const c=o.toLowerCase();return"svg"===c?wr:"math"===c?"math":null}(Pt)),di=this.componentDef.onPush?288:272,yi=Vo(0,null,null,1,0,null,null,null,null,null),Ri=wn(null,yi,null,di,null,null,Re,bt,Ye,le,null);let $i,cn;Is(Ri);try{const gn=this.componentDef;let Pn,Bi=null;gn.findHostDirectiveDefs?(Pn=[],Bi=new Map,gn.findHostDirectiveDefs(gn,Pn,Bi),Pn.push(gn)):Pn=[gn];const Bn=function r4(o,c){const p=o[qt],E=xi;return o[E]=c,Xn(p,E,2,"#host",null)}(Ri,ei),mr=function o4(o,c,p,E,F,Z,le,Re){const Ye=F[qt];!function s4(o,c,p,E){for(const F of o)c.mergedAttrs=ma(c.mergedAttrs,F.hostAttrs);null!==c.mergedAttrs&&(Bh(c,c.mergedAttrs,!0),null!==p&&fr(E,p,c))}(E,o,c,le);const bt=Z.createRenderer(c,p),Pt=wn(F,Ms(p),null,p.onPush?32:16,F[o.index],o,Z,bt,Re||null,null,null);return Ye.firstCreatePass&&af(Ye,o,E.length-1),Nh(F,Pt),F[o.index]=Pt}(Bn,ei,gn,Pn,Ri,Re,bt);cn=Ft(yi,xi),ei&&function l4(o,c,p,E){if(E)tn(o,p,["ng-version",v1.full]);else{const{attrs:F,classes:Z}=function x1(o){const c=[],p=[];let E=1,F=2;for(;E0&&sd(o,p,Z.join(" "))}}(bt,gn,ei,E),void 0!==p&&function d4(o,c,p){const E=o.projection=[];for(let F=0;F=0;E--){const F=o[E];F.hostVars=c+=F.hostVars,F.hostAttrs=ma(F.hostAttrs,p=ma(p,F.hostAttrs))}}(E)}function _f(o){return o===ot?{}:o===ft?[]:o}function h4(o,c){const p=o.viewQuery;o.viewQuery=p?(E,F)=>{c(E,F),p(E,F)}:c}function pp(o,c){const p=o.contentQueries;o.contentQueries=p?(E,F,Z)=>{c(E,F,Z),p(E,F,Z)}:c}function u4(o,c){const p=o.hostBindings;o.hostBindings=p?(E,F)=>{c(E,F),p(E,F)}:c}function A1(o){return!!yf(o)&&(Array.isArray(o)||!(o instanceof Map)&&Symbol.iterator in o)}function yf(o){return null!==o&&("function"==typeof o||"object"==typeof o)}function Ac(o,c,p){return o[c]=p}function Bo(o,c,p){return!Object.is(o[c],p)&&(o[c]=p,!0)}function L1(o,c,p,E){const F=Bo(o,c,p);return Bo(o,c+1,E)||F}function h0(o,c,p,E,F){const Z=L1(o,c,p,E);return Bo(o,c+2,F)||Z}function Gh(o,c,p,E){const F=Ei();return Bo(F,co(),c)&&(An(),rc(la(),F,o,c,p,E)),Gh}function Wd(o,c,p,E){return Bo(o,co(),p)?c+J(p)+E:Nn}function I1(o,c,p,E,F,Z){const Re=L1(o,ki(),p,F);return Fi(2),Re?c+J(p)+E+J(F)+Z:Nn}function Yd(o,c,p,E,F,Z,le,Re,Ye,bt){const ei=function Vs(o,c,p,E,F,Z){const le=L1(o,c,p,E);return L1(o,c+2,F,Z)||le}(o,ki(),p,F,le,Ye);return Fi(4),ei?c+J(p)+E+J(F)+Z+J(le)+Re+J(Ye)+bt:Nn}function b4(o,c,p,E,F,Z,le,Re){const Ye=Ei(),bt=An(),Pt=o+xi,ei=bt.firstCreatePass?function Cp(o,c,p,E,F,Z,le,Re,Ye){const bt=c.consts,Pt=Xn(c,o,4,le||null,aa(bt,Re));tf(c,p,Pt,aa(bt,Ye)),La(c,Pt);const ei=Pt.tView=Vo(2,Pt,E,F,Z,c.directiveRegistry,c.pipeRegistry,null,c.schemas,bt);return null!==c.queries&&(c.queries.template(c,Pt),ei.queries=c.queries.embeddedTView(Pt)),Pt}(Pt,bt,Ye,c,p,E,F,Z,le):bt.data[Pt];Sr(ei,!1);const di=Ye[Ui].createComment("");yl(bt,Ye,di,ei),eo(di,Ye),Nh(Ye,Ye[Pt]=J3(di,Ye,di,ei)),xr(ei)&&Bd(bt,Ye,ei),null!=le&&Ur(Ye,ei,Re)}function y4(o){return hi(function Pc(){return _n.lFrame.contextLView}(),xi+o)}function Af(o,c,p){const E=Ei();return Bo(E,co(),c)&&qo(An(),la(),E,o,c,E[Ui],p,!1),Af}function Zh(o,c,p,E,F){const le=F?"class":"style";Vh(o,p,c.inputs[le],le,E)}function qd(o,c,p,E){const F=Ei(),Z=An(),le=xi+o,Re=F[Ui],Ye=Z.firstCreatePass?function Mp(o,c,p,E,F,Z){const le=c.consts,Ye=Xn(c,o,2,E,aa(le,F));return tf(c,p,Ye,aa(le,Z)),null!==Ye.attrs&&Bh(Ye,Ye.attrs,!1),null!==Ye.mergedAttrs&&Bh(Ye,Ye.mergedAttrs,!0),null!==c.queries&&c.queries.elementStart(c,Ye),Ye}(le,Z,F,c,p,E):Z.data[le],bt=F[le]=Qc(Re,c,function Xi(){return _n.lFrame.currentNamespace}()),Pt=xr(Ye);return Sr(Ye,!0),fr(Re,bt,Ye),32!=(32&Ye.flags)&&yl(Z,F,bt,Ye),0===function et(){return _n.lFrame.elementDepthCount}()&&eo(bt,F),function Ze(){_n.lFrame.elementDepthCount++}(),Pt&&(Bd(Z,F,Ye),M1(Z,Ye,F)),null!==E&&Ur(F,Ye),qd}function Yh(){let o=Ba();Xo()?Ds():(o=o.parent,Sr(o,!1));const c=o;!function kt(){_n.lFrame.elementDepthCount--}();const p=An();return p.firstCreatePass&&(La(p,o),Co(o)&&p.queries.elementEnd(o)),null!=c.classesWithoutHost&&function bi(o){return 0!=(8&o.flags)}(c)&&Zh(p,c,Ei(),c.classesWithoutHost,!0),null!=c.stylesWithoutHost&&function Si(o){return 0!=(16&o.flags)}(c)&&Zh(p,c,Ei(),c.stylesWithoutHost,!1),Yh}function Lf(o,c,p,E){return qd(o,c,p,E),Yh(),Lf}function u0(o,c,p){const E=Ei(),F=An(),Z=o+xi,le=F.firstCreatePass?function Df(o,c,p,E,F){const Z=c.consts,le=aa(Z,E),Re=Xn(c,o,8,"ng-container",le);return null!==le&&Bh(Re,le,!0),tf(c,p,Re,aa(Z,F)),null!==c.queries&&c.queries.elementStart(c,Re),Re}(Z,F,E,c,p):F.data[Z];Sr(le,!0);const Re=E[Z]=E[Ui].createComment("");return yl(F,E,Re,le),eo(Re,E),xr(le)&&(Bd(F,E,le),M1(F,le,E)),null!=p&&Ur(E,le),u0}function jh(){let o=Ba();const c=An();return Xo()?Ds():(o=o.parent,Sr(o,!1)),c.firstCreatePass&&(La(c,o),Co(o)&&c.queries.elementEnd(o)),jh}function Kh(o,c,p){return u0(o,c,p),jh(),Kh}function x4(){return Ei()}function If(o){return!!o&&"function"==typeof o.then}function C4(o){return!!o&&"function"==typeof o.subscribe}const w4=C4;function f0(o,c,p,E){const F=Ei(),Z=An(),le=Ba();return M4(Z,F,F[Ui],le,o,c,E),f0}function kf(o,c){const p=Ba(),E=Ei(),F=An();return M4(F,E,t4(Go(F.data),p,E),p,o,c),kf}function M4(o,c,p,E,F,Z,le){const Re=xr(E),bt=o.firstCreatePass&&e4(o),Pt=c[li],ei=df(c);let di=!0;if(3&E.type||le){const $i=ya(E,c),cn=le?le($i):$i,gn=ei.length,Pn=le?Bn=>le(On(Bn[E.index])):E.index;let Bi=null;if(!le&&Re&&(Bi=function Sp(o,c,p,E){const F=o.cleanup;if(null!=F)for(let Z=0;ZYe?Re[Ye]:null}"string"==typeof le&&(Z+=2)}return null}(o,c,F,E.index)),null!==Bi)(Bi.__ngLastListenerFn__||Bi).__ngNextListenerFn__=Z,Bi.__ngLastListenerFn__=Z,di=!1;else{Z=Pf(E,c,Pt,Z,!1);const Bn=p.listen(cn,F,Z);ei.push(Z,Bn),bt&&bt.push(F,Pn,gn,gn+1)}}else Z=Pf(E,c,Pt,Z,!1);const yi=E.outputs;let Ri;if(di&&null!==yi&&(Ri=yi[F])){const $i=Ri.length;if($i)for(let cn=0;cn<$i;cn+=2){const mr=c[Ri[cn]][Ri[cn+1]].subscribe(Z),Zr=ei.length;ei.push(Z,mr),bt&&bt.push(F,E.index,Zr,-(Zr+1))}}}function Of(o,c,p,E){try{return Va(6,c,p),!1!==p(E)}catch(F){return hf(o,F),!1}finally{Va(7,c,p)}}function Pf(o,c,p,E,F){return function Z(le){if(le===Function)return E;Fh(o.componentOffset>-1?Ct(o.index,c):c);let Ye=Of(c,p,E,le),bt=Z.__ngNextListenerFn__;for(;bt;)Ye=Of(c,p,bt,le)&&Ye,bt=bt.__ngNextListenerFn__;return F&&!1===Ye&&(le.preventDefault(),le.returnValue=!1),Ye}}function Rf(o=1){return function us(o){return(_n.lFrame.contextLView=function sn(o,c){for(;o>0;)c=c[Ea],o--;return c}(o,_n.lFrame.contextLView))[li]}(o)}function S4(o,c){let p=null;const E=function Th(o){const c=o.attrs;if(null!=c){const p=c.indexOf(5);if(!(1&p))return c[p+1]}return null}(o);for(let F=0;F>17&32767}function Bf(o){return 2|o}function O1(o){return(131068&o)>>2}function Uf(o,c){return-131069&o|c<<2}function qh(o){return 1|o}function k4(o,c,p,E,F){const Z=o[p+1],le=null===c;let Re=E?Il(Z):O1(Z),Ye=!1;for(;0!==Re&&(!1===Ye||le);){const Pt=o[Re+1];O4(o[Re],c)&&(Ye=!0,o[Re+1]=E?qh(Pt):Bf(Pt)),Re=E?Il(Pt):O1(Pt)}Ye&&(o[p+1]=E?Bf(Z):qh(Z))}function O4(o,c){return null===o||null==c||(Array.isArray(o)?o[1]:o)===c||!(!Array.isArray(o)||"string"!=typeof c)&&an(o,c)>=0}const io={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function P4(o){return o.substring(io.key,io.keyEnd)}function Jn(o,c){const p=io.textEnd;return p===c?-1:(c=io.keyEnd=function N4(o,c,p){for(;c32;)c++;return c}(o,io.key=c,p),Gr(o,c,p))}function Gr(o,c,p){for(;c=0;p=Jn(c,p))Di(o,P4(c),!0)}function Es(o,c,p,E){const F=Ei(),Z=An(),le=Fi(2);Z.firstUpdatePass&&eu(Z,o,le,E),c!==Nn&&Bo(F,le,c)&&Ic(Z,Z.data[ja()],F,F[Ui],o,F[le+1]=function Kf(o,c){return null==o||""===o||("string"==typeof c?o+=c:"object"==typeof o&&(o=P(po(o)))),o}(c,p),E,le)}function ss(o,c,p,E){const F=An(),Z=Fi(2);F.firstUpdatePass&&eu(F,null,Z,E);const le=Ei();if(p!==Nn&&Bo(le,Z,p)){const Re=F.data[ja()];if(al(Re,E)&&!Zf(F,Z)){let Ye=E?Re.classesWithoutHost:Re.stylesWithoutHost;null!==Ye&&(p=d(Ye,p||"")),Zh(F,Re,le,p,E)}else!function jf(o,c,p,E,F,Z,le,Re){F===Nn&&(F=ft);let Ye=0,bt=0,Pt=0=o.expandoStartIndex}function eu(o,c,p,E){const F=o.data;if(null===F[p+1]){const Z=F[ja()],le=Zf(o,p);al(Z,E)&&null===c&&!le&&(c=!1),c=function Dp(o,c,p,E){const F=Go(o);let Z=E?c.residualClasses:c.residualStyles;if(null===F)0===(E?c.classBindings:c.styleBindings)&&(p=P1(p=Xd(null,o,c,p,E),c.attrs,E),Z=null);else{const le=c.directiveStylingLast;if(-1===le||o[le]!==F)if(p=Xd(F,o,c,p,E),null===Z){let Ye=function tu(o,c,p){const E=p?c.classBindings:c.styleBindings;if(0!==O1(E))return o[Il(E)]}(o,c,E);void 0!==Ye&&Array.isArray(Ye)&&(Ye=Xd(null,o,c,Ye[1],E),Ye=P1(Ye,c.attrs,E),function Wr(o,c,p,E){o[Il(p?c.classBindings:c.styleBindings)]=E}(o,c,E,Ye))}else Z=function iu(o,c,p){let E;const F=c.directiveEnd;for(let Z=1+c.directiveStylingLast;Z0)&&(bt=!0)):Pt=p,F)if(0!==Ye){const di=Il(o[Re+1]);o[E+1]=g0(di,Re),0!==di&&(o[di+1]=Uf(o[di+1],E)),o[Re+1]=function I4(o,c){return 131071&o|c<<17}(o[Re+1],E)}else o[E+1]=g0(Re,0),0!==Re&&(o[Re+1]=Uf(o[Re+1],E)),Re=E;else o[E+1]=g0(Ye,0),0===Re?Re=E:o[Ye+1]=Uf(o[Ye+1],E),Ye=E;bt&&(o[E+1]=Bf(o[E+1])),k4(o,Pt,E,!0),k4(o,Pt,E,!1),function Lp(o,c,p,E,F){const Z=F?o.residualClasses:o.residualStyles;null!=Z&&"string"==typeof c&&an(Z,c)>=0&&(p[E+1]=qh(p[E+1]))}(c,Pt,o,E,Z),le=g0(Re,Ye),Z?c.classBindings=le:c.styleBindings=le}(F,Z,c,p,le,E)}}function Xd(o,c,p,E,F){let Z=null;const le=p.directiveEnd;let Re=p.directiveStylingLast;for(-1===Re?Re=p.directiveStart:Re++;Re0;){const Ye=o[F],bt=Array.isArray(Ye),Pt=bt?Ye[1]:Ye,ei=null===Pt;let di=p[F+1];di===Nn&&(di=ei?ft:void 0);let yi=ei?rn(di,E):Pt===E?di:void 0;if(bt&&!R1(yi)&&(yi=rn(Ye,E)),R1(yi)&&(Re=yi,le))return Re;const Ri=o[F+1];F=le?Il(Ri):O1(Ri)}if(null!==c){let Ye=Z?c.residualClasses:c.residualStyles;null!=Ye&&(Re=rn(Ye,E))}return Re}function R1(o){return void 0!==o}function al(o,c){return 0!=(o.flags&(c?8:16))}function oc(o,c=""){const p=Ei(),E=An(),F=o+xi,Z=E.firstCreatePass?Xn(E,F,1,c,null):E.data[F],le=p[F]=function Jl(o,c){return o.createText(c)}(p[Ui],c);yl(E,p,le,Z),Sr(Z,!1)}function $d(o){return N1("",o,""),$d}function N1(o,c,p){const E=Ei(),F=Wd(E,o,c,p);return F!==Nn&&Tc(E,ja(),F),N1}function b0(o,c,p,E,F){const Z=Ei(),le=I1(Z,o,c,p,E,F);return le!==Nn&&Tc(Z,ja(),le),b0}function rl(o,c,p,E,F,Z,le){const Re=Ei(),Ye=function Zd(o,c,p,E,F,Z,le,Re){const bt=h0(o,ki(),p,F,le);return Fi(3),bt?c+J(p)+E+J(F)+Z+J(le)+Re:Nn}(Re,o,c,p,E,F,Z,le);return Ye!==Nn&&Tc(Re,ja(),Ye),rl}function Ja(o,c,p,E,F,Z,le,Re,Ye){const bt=Ei(),Pt=Yd(bt,o,c,p,E,F,Z,le,Re,Ye);return Pt!==Nn&&Tc(bt,ja(),Pt),Ja}function Ol(o,c,p){ss(Di,Us,Wd(Ei(),o,c,p),!0)}function r3(o,c,p){const E=Ei();return Bo(E,co(),c)&&qo(An(),la(),E,o,c,E[Ui],p,!0),r3}function lu(o,c,p){const E=Ei();if(Bo(E,co(),c)){const Z=An(),le=la();qo(Z,le,E,o,c,t4(Go(Z.data),le,E),p,!0)}return lu}const Pl=void 0;var sc=["en",[["a","p"],["AM","PM"],Pl],[["AM","PM"],Pl,Pl],[["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"]],Pl,[["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"]],Pl,[["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}",Pl,"{1} 'at' {0}",Pl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function o3(o){const p=Math.floor(Math.abs(o)),E=o.toString().replace(/^[^.]*\.?/,"").length;return 1===p&&0===E?1:5}];let Jo={};function s3(o){const c=function c3(o){return o.toLowerCase().replace(/_/g,"-")}(o);let p=q4(c);if(p)return p;const E=c.split("-")[0];if(p=q4(E),p)return p;if("en"===E)return sc;throw new j(701,!1)}function Q4(o){return s3(o)[Mn.PluralCase]}function q4(o){return o in Jo||(Jo[o]=lt.ng&<.ng.common&<.ng.common.locales&<.ng.common.locales[o]),Jo[o]}var Mn=(()=>((Mn=Mn||{})[Mn.LocaleId=0]="LocaleId",Mn[Mn.DayPeriodsFormat=1]="DayPeriodsFormat",Mn[Mn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Mn[Mn.DaysFormat=3]="DaysFormat",Mn[Mn.DaysStandalone=4]="DaysStandalone",Mn[Mn.MonthsFormat=5]="MonthsFormat",Mn[Mn.MonthsStandalone=6]="MonthsStandalone",Mn[Mn.Eras=7]="Eras",Mn[Mn.FirstDayOfWeek=8]="FirstDayOfWeek",Mn[Mn.WeekendRange=9]="WeekendRange",Mn[Mn.DateFormat=10]="DateFormat",Mn[Mn.TimeFormat=11]="TimeFormat",Mn[Mn.DateTimeFormat=12]="DateTimeFormat",Mn[Mn.NumberSymbols=13]="NumberSymbols",Mn[Mn.NumberFormats=14]="NumberFormats",Mn[Mn.CurrencyCode=15]="CurrencyCode",Mn[Mn.CurrencySymbol=16]="CurrencySymbol",Mn[Mn.CurrencyName=17]="CurrencyName",Mn[Mn.Currencies=18]="Currencies",Mn[Mn.Directionality=19]="Directionality",Mn[Mn.PluralCase=20]="PluralCase",Mn[Mn.ExtraData=21]="ExtraData",Mn))();const t2="en-US";let d3=t2;function Na(o,c,p,E,F){if(o=L(o),Array.isArray(o))for(let Z=0;Z>20;if(ec(o)||!o.multi){const yi=new tt(Ye,F,rs),Ri=vr(Re,c,F?Pt:Pt+di,ei);-1===Ri?(Fc(Nc(bt,le),Z,Re),vo(Z,o,c.length),c.push(Re),bt.directiveStart++,bt.directiveEnd++,F&&(bt.providerIndexes+=1048576),p.push(yi),le.push(yi)):(p[Ri]=yi,le[Ri]=yi)}else{const yi=vr(Re,c,Pt+di,ei),Ri=vr(Re,c,Pt,Pt+di),cn=Ri>=0&&p[Ri];if(F&&!cn||!F&&!(yi>=0&&p[yi])){Fc(Nc(bt,le),Z,Re);const gn=function Nl(o,c,p,E,F){const Z=new tt(o,p,rs);return Z.multi=[],Z.index=c,Z.componentProviders=0,ba(Z,F,E&&!p),Z}(F?yr:br,p.length,F,E,Ye);!F&&cn&&(p[Ri].providerFactory=gn),vo(Z,o,c.length,0),c.push(Re),bt.directiveStart++,bt.directiveEnd++,F&&(bt.providerIndexes+=1048576),p.push(gn),le.push(gn)}else vo(Z,o,yi>-1?yi:Ri,ba(p[F?Ri:yi],Ye,!F&&E));!F&&E&&cn&&p[Ri].componentProviders++}}}function vo(o,c,p,E){const F=ec(c),Z=function xc(o){return!!o.useClass}(c);if(F||Z){const Ye=(Z?L(c.useClass):c).prototype.ngOnDestroy;if(Ye){const bt=o.destroyHooks||(o.destroyHooks=[]);if(!F&&c.multi){const Pt=bt.indexOf(p);-1===Pt?bt.push(p,[E,Ye]):bt[Pt+1].push(E,Ye)}else bt.push(p,Ye)}}}function ba(o,c,p){return p&&o.componentProviders++,o.multi.push(c)-1}function vr(o,c,p,E){for(let F=p;F{p.providersResolver=(E,F)=>function Xa(o,c,p){const E=An();if(E.firstCreatePass){const F=jn(o);Na(p,E.data,E.blueprint,F,!0),Na(c,E.data,E.blueprint,F,!1)}}(E,F?F(o):o,c)}}class Gs{}class bo{}function Hl(o,c){return new Yn(o,c??null)}class Yn extends Gs{constructor(c,p){super(),this._parent=p,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Uh(this);const E=Oi(c);this._bootstrapComponents=Cs(E.bootstrap),this._r3Injector=zd(c,p,[{provide:Gs,useValue:this},{provide:Al,useValue:this.componentFactoryResolver}],P(c),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(c)}get injector(){return this._r3Injector}destroy(){const c=this._r3Injector;!c.destroyed&&c.destroy(),this.destroyCbs.forEach(p=>p()),this.destroyCbs=null}onDestroy(c){this.destroyCbs.push(c)}}class na extends bo{constructor(c){super(),this.moduleType=c}create(c){return new Yn(this.moduleType,c)}}class Ki extends Gs{constructor(c,p,E){super(),this.componentFactoryResolver=new Uh(this),this.instance=null;const F=new Cd([...c,{provide:Gs,useValue:this},{provide:Al,useValue:this.componentFactoryResolver}],p||$c(),E,new Set(["environment"]));this.injector=F,F.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(c){this.injector.onDestroy(c)}}function $a(o,c,p=null){return new Ki(o,c,p).injector}let Sa=(()=>{class o{constructor(p){this._injector=p,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(p){if(!p.standalone)return null;if(!this.cachedInjectors.has(p.id)){const E=mh(0,p.type),F=E.length>0?$a([E],this._injector,`Standalone[${p.type.name}]`):null;this.cachedInjectors.set(p.id,F)}return this.cachedInjectors.get(p.id)}ngOnDestroy(){try{for(const p of this.cachedInjectors.values())null!==p&&p.destroy()}finally{this.cachedInjectors.clear()}}}return o.\u0275prov=Ue({token:o,providedIn:"environment",factory:()=>new o(xt(Cc))}),o})();function Lo(o){o.getStandaloneInjector=c=>c.get(Sa).getOrCreateStandaloneInjector(o)}function t6(o,c,p){const E=qn()+o,F=Ei();return F[E]===Nn?Ac(F,E,p?c.call(p):c()):function Gd(o,c){return o[c]}(F,E)}function mm(o,c,p,E){return r6(Ei(),qn(),o,c,p,E)}function i6(o,c,p,E,F){return o6(Ei(),qn(),o,c,p,E,F)}function pm(o,c,p,E,F,Z){return s6(Ei(),qn(),o,c,p,E,F,Z)}function mu(o,c){const p=o[c];return p===Nn?void 0:p}function r6(o,c,p,E,F,Z){const le=c+p;return Bo(o,le,F)?Ac(o,le+1,Z?E.call(Z,F):E(F)):mu(o,le+1)}function o6(o,c,p,E,F,Z,le){const Re=c+p;return L1(o,Re,F,Z)?Ac(o,Re+2,le?E.call(le,F,Z):E(F,Z)):mu(o,Re+2)}function s6(o,c,p,E,F,Z,le,Re){const Ye=c+p;return h0(o,Ye,F,Z,le)?Ac(o,Ye+3,Re?E.call(Re,F,Z,le):E(F,Z,le)):mu(o,Ye+3)}function d6(o,c){const p=An();let E;const F=o+xi;p.firstCreatePass?(E=function gm(o,c){if(c)for(let p=c.length-1;p>=0;p--){const E=c[p];if(o===E.name)return E}}(c,p.pipeRegistry),p.data[F]=E,E.onDestroy&&(p.destroyHooks??(p.destroyHooks=[])).push(F,E.onDestroy)):E=p.data[F];const Z=E.factory||(E.factory=za(E.type)),le=de(rs);try{const Re=Tr(!1),Ye=Z();return Tr(Re),function wp(o,c,p,E){p>=o.data.length&&(o.data[p]=null,o.blueprint[p]=null),c[p]=E}(p,Ei(),F,Ye),Ye}finally{de(le)}}function h6(o,c,p){const E=o+xi,F=Ei(),Z=hi(F,E);return pu(F,E)?r6(F,qn(),c,Z.transform,p,Z):Z.transform(p)}function u6(o,c,p,E){const F=o+xi,Z=Ei(),le=hi(Z,F);return pu(Z,F)?o6(Z,qn(),c,le.transform,p,E,le):le.transform(p,E)}function _m(o,c,p,E,F){const Z=o+xi,le=Ei(),Re=hi(le,Z);return pu(le,Z)?s6(le,qn(),c,Re.transform,p,E,F,Re):Re.transform(p,E,F)}function pu(o,c){return o[qt].data[c].pure}function vm(o){return c=>{setTimeout(o,void 0,c)}}const Oc=class Vg extends t.x{constructor(c=!1){super(),this.__isAsync=c}emit(c){super.next(c)}subscribe(c,p,E){let F=c,Z=p||(()=>null),le=E;if(c&&"object"==typeof c){const Ye=c;F=Ye.next?.bind(Ye),Z=Ye.error?.bind(Ye),le=Ye.complete?.bind(Ye)}this.__isAsync&&(Z=vm(Z),F&&(F=vm(F)),le&&(le=vm(le)));const Re=super.subscribe({next:F,error:Z,complete:le});return c instanceof e.w0&&c.add(Re),Re}};function Bg(){return this._results[Symbol.iterator]()}class C3{get changes(){return this._changes||(this._changes=new Oc)}constructor(c=!1){this._emitDistinctChangesOnly=c,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const p=C3.prototype;p[Symbol.iterator]||(p[Symbol.iterator]=Bg)}get(c){return this._results[c]}map(c){return this._results.map(c)}filter(c){return this._results.filter(c)}find(c){return this._results.find(c)}reduce(c,p){return this._results.reduce(c,p)}forEach(c){this._results.forEach(c)}some(c){return this._results.some(c)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(c,p){const E=this;E.dirty=!1;const F=function So(o){return o.flat(Number.POSITIVE_INFINITY)}(c);(this._changesDetected=!function G1(o,c,p){if(o.length!==c.length)return!1;for(let E=0;E{class o{}return o.__NG_ELEMENT_ID__=Wg,o})();const Ug=gu,Gg=class extends Ug{constructor(c,p,E){super(),this._declarationLView=c,this._declarationTContainer=p,this.elementRef=E}createEmbeddedView(c,p){const E=this._declarationTContainer.tView,F=wn(this._declarationLView,E,c,16,null,E.declTNode,null,null,null,null,p||null);F[er]=this._declarationLView[this._declarationTContainer.index];const le=this._declarationLView[pi];return null!==le&&(F[pi]=le.createEmbeddedView(E)),go(E,F,c),new T1(F)}};function Wg(){return w3(Ba(),Ei())}function w3(o,c){return 4&o.type?new Gg(c,o,Br(o,c)):null}let _u=(()=>{class o{}return o.__NG_ELEMENT_ID__=Zg,o})();function Zg(){return ym(Ba(),Ei())}const Yg=_u,bm=class extends Yg{constructor(c,p,E){super(),this._lContainer=c,this._hostTNode=p,this._hostLView=E}get element(){return Br(this._hostTNode,this._hostLView)}get injector(){return new Ga(this._hostTNode,this._hostLView)}get parentInjector(){const c=Os(this._hostTNode,this._hostLView);if(ha(c)){const p=Da(c,this._hostLView),E=ua(c);return new Ga(p[qt].data[E+8],p)}return new Ga(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(c){const p=m6(this._lContainer);return null!==p&&p[c]||null}get length(){return this._lContainer.length-Vn}createEmbeddedView(c,p,E){let F,Z;"number"==typeof E?F=E:null!=E&&(F=E.index,Z=E.injector);const le=c.createEmbeddedView(p||{},Z);return this.insert(le,F),le}createComponent(c,p,E,F,Z){const le=c&&!function jo(o){return"function"==typeof o}(c);let Re;if(le)Re=p;else{const ei=p||{};Re=ei.index,E=ei.injector,F=ei.projectableNodes,Z=ei.environmentInjector||ei.ngModuleRef}const Ye=le?c:new Ud(wt(c)),bt=E||this.parentInjector;if(!Z&&null==Ye.ngModule){const di=(le?bt:this.parentInjector).get(Cc,null);di&&(Z=di)}const Pt=Ye.create(bt,F,void 0,Z);return this.insert(Pt.hostView,Re),Pt}insert(c,p){const E=c._lView,F=E[qt];if(function nn(o){return ia(o[dt])}(E)){const Pt=this.indexOf(c);if(-1!==Pt)this.detach(Pt);else{const ei=E[dt],di=new bm(ei,ei[Ot],ei[dt]);di.detach(di.indexOf(c))}}const Z=this._adjustIndex(p),le=this._lContainer;!function Hu(o,c,p,E){const F=Vn+E,Z=p.length;E>0&&(p[F-1][Dt]=c),E0)E.push(le[Re/2]);else{const bt=Z[Re+1],Pt=c[-Ye];for(let ei=Vn;ei{class o{constructor(p){this.appInits=p,this.resolve=D3,this.reject=D3,this.initialized=!1,this.done=!1,this.donePromise=new Promise((E,F)=>{this.resolve=E,this.reject=F})}runInitializers(){if(this.initialized)return;const p=[],E=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let F=0;F{Z.subscribe({complete:Re,error:Ye})});p.push(le)}}Promise.all(p).then(()=>{E()}).catch(F=>{this.reject(F)}),0===p.length&&E(),this.initialized=!0}}return o.\u0275fac=function(p){return new(p||o)(xt(B6,8))},o.\u0275prov=Ue({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const U6=new Ca("AppId",{providedIn:"root",factory:function G6(){return`${Nm()}${Nm()}${Nm()}`}});function Nm(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const W6=new Ca("Platform Initializer"),Z6=new Ca("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),f8=new Ca("AnimationModuleType");let Y6=(()=>{class o{log(p){console.log(p)}warn(p){console.warn(p)}}return o.\u0275fac=function(p){return new(p||o)},o.\u0275prov=Ue({token:o,factory:o.\u0275fac,providedIn:"platform"}),o})();const yu=new Ca("LocaleId",{providedIn:"root",factory:()=>Gt(yu,Ve.Optional|Ve.SkipSelf)||function m8(){return typeof $localize<"u"&&$localize.locale||t2}()}),p8=new Ca("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class _8{constructor(c,p){this.ngModuleFactory=c,this.componentFactories=p}}let v8=(()=>{class o{compileModuleSync(p){return new na(p)}compileModuleAsync(p){return Promise.resolve(this.compileModuleSync(p))}compileModuleAndAllComponentsSync(p){const E=this.compileModuleSync(p),Z=Cs(Oi(p).declarations).reduce((le,Re)=>{const Ye=wt(Re);return Ye&&le.push(new Ud(Ye)),le},[]);return new _8(E,Z)}compileModuleAndAllComponentsAsync(p){return Promise.resolve(this.compileModuleAndAllComponentsSync(p))}clearCache(){}clearCacheFor(p){}getModuleId(p){}}return o.\u0275fac=function(p){return new(p||o)},o.\u0275prov=Ue({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const x8=(()=>Promise.resolve(0))();function Hm(o){typeof Zone>"u"?x8.then(()=>{o&&o.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",o)}class cc{constructor({enableLongStackTrace:c=!1,shouldCoalesceEventChangeDetection:p=!1,shouldCoalesceRunChangeDetection:E=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Oc(!1),this.onMicrotaskEmpty=new Oc(!1),this.onStable=new Oc(!1),this.onError=new Oc(!1),typeof Zone>"u")throw new j(908,!1);Zone.assertZonePatched();const F=this;F._nesting=0,F._outer=F._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(F._inner=F._inner.fork(new Zone.TaskTrackingZoneSpec)),c&&Zone.longStackTraceZoneSpec&&(F._inner=F._inner.fork(Zone.longStackTraceZoneSpec)),F.shouldCoalesceEventChangeDetection=!E&&p,F.shouldCoalesceRunChangeDetection=E,F.lastRequestAnimationFrameId=-1,F.nativeRequestAnimationFrame=function C8(){let o=lt.requestAnimationFrame,c=lt.cancelAnimationFrame;if(typeof Zone<"u"&&o&&c){const p=o[Zone.__symbol__("OriginalDelegate")];p&&(o=p);const E=c[Zone.__symbol__("OriginalDelegate")];E&&(c=E)}return{nativeRequestAnimationFrame:o,nativeCancelAnimationFrame:c}}().nativeRequestAnimationFrame,function S8(o){const c=()=>{!function K6(o){o.isCheckStableRunning||-1!==o.lastRequestAnimationFrameId||(o.lastRequestAnimationFrameId=o.nativeRequestAnimationFrame.call(lt,()=>{o.fakeTopEventTask||(o.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{o.lastRequestAnimationFrameId=-1,Vm(o),o.isCheckStableRunning=!0,zm(o),o.isCheckStableRunning=!1},void 0,()=>{},()=>{})),o.fakeTopEventTask.invoke()}),Vm(o))}(o)};o._inner=o._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(p,E,F,Z,le,Re)=>{try{return Q6(o),p.invokeTask(F,Z,le,Re)}finally{(o.shouldCoalesceEventChangeDetection&&"eventTask"===Z.type||o.shouldCoalesceRunChangeDetection)&&c(),q6(o)}},onInvoke:(p,E,F,Z,le,Re,Ye)=>{try{return Q6(o),p.invoke(F,Z,le,Re,Ye)}finally{o.shouldCoalesceRunChangeDetection&&c(),q6(o)}},onHasTask:(p,E,F,Z)=>{p.hasTask(F,Z),E===F&&("microTask"==Z.change?(o._hasPendingMicrotasks=Z.microTask,Vm(o),zm(o)):"macroTask"==Z.change&&(o.hasPendingMacrotasks=Z.macroTask))},onHandleError:(p,E,F,Z)=>(p.handleError(F,Z),o.runOutsideAngular(()=>o.onError.emit(Z)),!1)})}(F)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!cc.isInAngularZone())throw new j(909,!1)}static assertNotInAngularZone(){if(cc.isInAngularZone())throw new j(909,!1)}run(c,p,E){return this._inner.run(c,p,E)}runTask(c,p,E,F){const Z=this._inner,le=Z.scheduleEventTask("NgZoneEvent: "+F,c,M8,D3,D3);try{return Z.runTask(le,p,E)}finally{Z.cancelTask(le)}}runGuarded(c,p,E){return this._inner.runGuarded(c,p,E)}runOutsideAngular(c){return this._outer.run(c)}}const M8={};function zm(o){if(0==o._nesting&&!o.hasPendingMicrotasks&&!o.isStable)try{o._nesting++,o.onMicrotaskEmpty.emit(null)}finally{if(o._nesting--,!o.hasPendingMicrotasks)try{o.runOutsideAngular(()=>o.onStable.emit(null))}finally{o.isStable=!0}}}function Vm(o){o.hasPendingMicrotasks=!!(o._hasPendingMicrotasks||(o.shouldCoalesceEventChangeDetection||o.shouldCoalesceRunChangeDetection)&&-1!==o.lastRequestAnimationFrameId)}function Q6(o){o._nesting++,o.isStable&&(o.isStable=!1,o.onUnstable.emit(null))}function q6(o){o._nesting--,zm(o)}class J6{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Oc,this.onMicrotaskEmpty=new Oc,this.onStable=new Oc,this.onError=new Oc}run(c,p,E){return c.apply(p,E)}runGuarded(c,p,E){return c.apply(p,E)}runOutsideAngular(c){return c()}runTask(c,p,E,F){return c.apply(p,E)}}const X6=new Ca(""),$6=new Ca("");let Bm,eg=(()=>{class o{constructor(p,E,F){this._ngZone=p,this.registry=E,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Bm||(function E8(o){Bm=o}(F),F.addToWindow(E)),this._watchAngularEvents(),p.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{cc.assertNotInAngularZone(),Hm(()=>{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())Hm(()=>{for(;0!==this._callbacks.length;){let p=this._callbacks.pop();clearTimeout(p.timeoutId),p.doneCb(this._didWork)}this._didWork=!1});else{let p=this.getPendingTasks();this._callbacks=this._callbacks.filter(E=>!E.updateCb||!E.updateCb(p)||(clearTimeout(E.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(p=>({source:p.source,creationLocation:p.creationLocation,data:p.data})):[]}addCallback(p,E,F){let Z=-1;E&&E>0&&(Z=setTimeout(()=>{this._callbacks=this._callbacks.filter(le=>le.timeoutId!==Z),p(this._didWork,this.getPendingTasks())},E)),this._callbacks.push({doneCb:p,timeoutId:Z,updateCb:F})}whenStable(p,E,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(p,E,F),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(p){this.registry.registerApplication(p,this)}unregisterApplication(p){this.registry.unregisterApplication(p)}findProviders(p,E,F){return[]}}return o.\u0275fac=function(p){return new(p||o)(xt(cc),xt(tg),xt($6))},o.\u0275prov=Ue({token:o,factory:o.\u0275fac}),o})(),tg=(()=>{class o{constructor(){this._applications=new Map}registerApplication(p,E){this._applications.set(p,E)}unregisterApplication(p){this._applications.delete(p)}unregisterAllApplications(){this._applications.clear()}getTestability(p){return this._applications.get(p)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(p,E=!0){return Bm?.findTestabilityInTree(this,p,E)??null}}return o.\u0275fac=function(p){return new(p||o)},o.\u0275prov=Ue({token:o,factory:o.\u0275fac,providedIn:"platform"}),o})();const Bl=!1;let F1=null;const ig=new Ca("AllowMultipleToken"),I3=new Ca("PlatformDestroyListeners"),ng=new Ca("appBootstrapListener");class A8{constructor(c,p){this.name=c,this.token=p}}function rg(o,c,p=[]){const E=`Platform: ${c}`,F=new Ca(E);return(Z=[])=>{let le=k3();if(!le||le.injector.get(ig,!1)){const Re=[...p,...Z,{provide:F,useValue:!0}];o?o(Re):function L8(o){if(F1&&!F1.get(ig,!1))throw new j(400,!1);F1=o;const c=o.get(sg);(function Um(o){const c=o.get(W6,null);c&&c.forEach(p=>p())})(o)}(function og(o=[],c){return ic.create({name:c,providers:[{provide:El,useValue:"platform"},{provide:I3,useValue:new Set([()=>F1=null])},...o]})}(Re,E))}return function I8(o){const c=k3();if(!c)throw new j(401,!1);return c}()}}function k3(){return F1?.get(sg)??null}let sg=(()=>{class o{constructor(p){this._injector=p,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(p,E){const F=function lg(o,c){let p;return p="noop"===o?new J6:("zone.js"===o?void 0:o)||new cc(c),p}(E?.ngZone,function cg(o){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!o||!o.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!o||!o.ngZoneRunCoalescing)||!1}}(E)),Z=[{provide:cc,useValue:F}];return F.run(()=>{const le=ic.create({providers:Z,parent:this.injector,name:p.moduleType.name}),Re=p.create(le),Ye=Re.injector.get(il,null);if(!Ye)throw new j(402,!1);return F.runOutsideAngular(()=>{const bt=F.onError.subscribe({next:Pt=>{Ye.handleError(Pt)}});Re.onDestroy(()=>{xu(this._modules,Re),bt.unsubscribe()})}),function dg(o,c,p){try{const E=p();return If(E)?E.catch(F=>{throw c.runOutsideAngular(()=>o.handleError(F)),F}):E}catch(E){throw c.runOutsideAngular(()=>o.handleError(E)),E}}(Ye,F,()=>{const bt=Re.injector.get(bu);return bt.runInitializers(),bt.donePromise.then(()=>(function h3(o){W(o,"Expected localeId to be defined"),"string"==typeof o&&(d3=o.toLowerCase().replace(/_/g,"-"))}(Re.injector.get(yu,t2)||t2),this._moduleDoBootstrap(Re),Re))})})}bootstrapModule(p,E=[]){const F=hg({},E);return function T8(o,c,p){const E=new na(p);return Promise.resolve(E)}(0,0,p).then(Z=>this.bootstrapModuleFactory(Z,F))}_moduleDoBootstrap(p){const E=p.injector.get(O3);if(p._bootstrapComponents.length>0)p._bootstrapComponents.forEach(F=>E.bootstrap(F));else{if(!p.instance.ngDoBootstrap)throw new j(-403,!1);p.instance.ngDoBootstrap(E)}this._modules.push(p)}onDestroy(p){this._destroyListeners.push(p)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new j(404,!1);this._modules.slice().forEach(E=>E.destroy()),this._destroyListeners.forEach(E=>E());const p=this._injector.get(I3,null);p&&(p.forEach(E=>E()),p.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return o.\u0275fac=function(p){return new(p||o)(xt(ic))},o.\u0275prov=Ue({token:o,factory:o.\u0275fac,providedIn:"platform"}),o})();function hg(o,c){return Array.isArray(c)?c.reduce(hg,o):{...o,...c}}let O3=(()=>{class o{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(p,E,F){this._zone=p,this._injector=E,this._exceptionHandler=F,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const Z=new _.y(Re=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{Re.next(this._stable),Re.complete()})}),le=new _.y(Re=>{let Ye;this._zone.runOutsideAngular(()=>{Ye=this._zone.onStable.subscribe(()=>{cc.assertNotInAngularZone(),Hm(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,Re.next(!0))})})});const bt=this._zone.onUnstable.subscribe(()=>{cc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{Re.next(!1)}))});return()=>{Ye.unsubscribe(),bt.unsubscribe()}});this.isStable=(0,T.T)(Z,le.pipe((0,s.B)()))}bootstrap(p,E){const F=p instanceof W2;if(!this._injector.get(bu).done){!F&&Ai(p);throw new j(405,Bl)}let le;le=F?p:this._injector.get(Al).resolveComponentFactory(p),this.componentTypes.push(le.componentType);const Re=function ag(o){return o.isBoundToModule}(le)?void 0:this._injector.get(Gs),bt=le.create(ic.NULL,[],E||le.selector,Re),Pt=bt.location.nativeElement,ei=bt.injector.get(X6,null);return ei?.registerApplication(Pt),bt.onDestroy(()=>{this.detachView(bt.hostView),xu(this.components,bt),ei?.unregisterApplication(Pt)}),this._loadComponent(bt),bt}tick(){if(this._runningTick)throw new j(101,!1);try{this._runningTick=!0;for(let p of this._views)p.detectChanges()}catch(p){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(p))}finally{this._runningTick=!1}}attachView(p){const E=p;this._views.push(E),E.attachToAppRef(this)}detachView(p){const E=p;xu(this._views,E),E.detachFromAppRef()}_loadComponent(p){this.attachView(p.hostView),this.tick(),this.components.push(p);const E=this._injector.get(ng,[]);E.push(...this._bootstrapListeners),E.forEach(F=>F(p))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(p=>p()),this._views.slice().forEach(p=>p.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(p){return this._destroyListeners.push(p),()=>xu(this._destroyListeners,p)}destroy(){if(this._destroyed)throw new j(406,!1);const p=this._injector;p.destroy&&!p.destroyed&&p.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return o.\u0275fac=function(p){return new(p||o)(xt(cc),xt(Cc),xt(il))},o.\u0275prov=Ue({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function xu(o,c){const p=o.indexOf(c);p>-1&&o.splice(p,1)}function O8(){return!1}let R8=(()=>{class o{}return o.__NG_ELEMENT_ID__=fg,o})();function fg(o){return function N8(o,c,p){if(Pr(o)&&!p){const E=Ct(o.index,c);return new T1(E,E)}return 47&o.type?new T1(c[ta],c):null}(Ba(),Ei(),16==(16&o))}class _g{constructor(){}supports(c){return A1(c)}create(c){return new V8(c)}}const z8=(o,c)=>c;class V8{constructor(c){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=c||z8}forEachItem(c){let p;for(p=this._itHead;null!==p;p=p._next)c(p)}forEachOperation(c){let p=this._itHead,E=this._removalsHead,F=0,Z=null;for(;p||E;){const le=!E||p&&p.currentIndex{le=this._trackByFn(F,Re),null!==p&&Object.is(p.trackById,le)?(E&&(p=this._verifyReinsertion(p,Re,le,F)),Object.is(p.item,Re)||this._addIdentityChange(p,Re)):(p=this._mismatch(p,Re,le,F),E=!0),p=p._next,F++}),this.length=F;return this._truncate(p),this.collection=c,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let c;for(c=this._previousItHead=this._itHead;null!==c;c=c._next)c._nextPrevious=c._next;for(c=this._additionsHead;null!==c;c=c._nextAdded)c.previousIndex=c.currentIndex;for(this._additionsHead=this._additionsTail=null,c=this._movesHead;null!==c;c=c._nextMoved)c.previousIndex=c.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(c,p,E,F){let Z;return null===c?Z=this._itTail:(Z=c._prev,this._remove(c)),null!==(c=null===this._unlinkedRecords?null:this._unlinkedRecords.get(E,null))?(Object.is(c.item,p)||this._addIdentityChange(c,p),this._reinsertAfter(c,Z,F)):null!==(c=null===this._linkedRecords?null:this._linkedRecords.get(E,F))?(Object.is(c.item,p)||this._addIdentityChange(c,p),this._moveAfter(c,Z,F)):c=this._addAfter(new B8(p,E),Z,F),c}_verifyReinsertion(c,p,E,F){let Z=null===this._unlinkedRecords?null:this._unlinkedRecords.get(E,null);return null!==Z?c=this._reinsertAfter(Z,c._prev,F):c.currentIndex!=F&&(c.currentIndex=F,this._addToMoves(c,F)),c}_truncate(c){for(;null!==c;){const p=c._next;this._addToRemovals(this._unlink(c)),c=p}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(c,p,E){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(c);const F=c._prevRemoved,Z=c._nextRemoved;return null===F?this._removalsHead=Z:F._nextRemoved=Z,null===Z?this._removalsTail=F:Z._prevRemoved=F,this._insertAfter(c,p,E),this._addToMoves(c,E),c}_moveAfter(c,p,E){return this._unlink(c),this._insertAfter(c,p,E),this._addToMoves(c,E),c}_addAfter(c,p,E){return this._insertAfter(c,p,E),this._additionsTail=null===this._additionsTail?this._additionsHead=c:this._additionsTail._nextAdded=c,c}_insertAfter(c,p,E){const F=null===p?this._itHead:p._next;return c._next=F,c._prev=p,null===F?this._itTail=c:F._prev=c,null===p?this._itHead=c:p._next=c,null===this._linkedRecords&&(this._linkedRecords=new vg),this._linkedRecords.put(c),c.currentIndex=E,c}_remove(c){return this._addToRemovals(this._unlink(c))}_unlink(c){null!==this._linkedRecords&&this._linkedRecords.remove(c);const p=c._prev,E=c._next;return null===p?this._itHead=E:p._next=E,null===E?this._itTail=p:E._prev=p,c}_addToMoves(c,p){return c.previousIndex===p||(this._movesTail=null===this._movesTail?this._movesHead=c:this._movesTail._nextMoved=c),c}_addToRemovals(c){return null===this._unlinkedRecords&&(this._unlinkedRecords=new vg),this._unlinkedRecords.put(c),c.currentIndex=null,c._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=c,c._prevRemoved=null):(c._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=c),c}_addIdentityChange(c,p){return c.item=p,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=c:this._identityChangesTail._nextIdentityChange=c,c}}class B8{constructor(c,p){this.item=c,this.trackById=p,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 U8{constructor(){this._head=null,this._tail=null}add(c){null===this._head?(this._head=this._tail=c,c._nextDup=null,c._prevDup=null):(this._tail._nextDup=c,c._prevDup=this._tail,c._nextDup=null,this._tail=c)}get(c,p){let E;for(E=this._head;null!==E;E=E._nextDup)if((null===p||p<=E.currentIndex)&&Object.is(E.trackById,c))return E;return null}remove(c){const p=c._prevDup,E=c._nextDup;return null===p?this._head=E:p._nextDup=E,null===E?this._tail=p:E._prevDup=p,null===this._head}}class vg{constructor(){this.map=new Map}put(c){const p=c.trackById;let E=this.map.get(p);E||(E=new U8,this.map.set(p,E)),E.add(c)}get(c,p){const F=this.map.get(c);return F?F.get(c,p):null}remove(c){const p=c.trackById;return this.map.get(p).remove(c)&&this.map.delete(p),c}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Qm(o,c,p){const E=o.previousIndex;if(null===E)return E;let F=0;return p&&E{if(p&&p.key===F)this._maybeAddToChanges(p,E),this._appendAfter=p,p=p._next;else{const Z=this._getOrCreateRecordForKey(F,E);p=this._insertBeforeOrAppend(p,Z)}}),p){p._prev&&(p._prev._next=null),this._removalsHead=p;for(let E=p;null!==E;E=E._nextRemoved)E===this._mapHead&&(this._mapHead=null),this._records.delete(E.key),E._nextRemoved=E._next,E.previousValue=E.currentValue,E.currentValue=null,E._prev=null,E._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(c,p){if(c){const E=c._prev;return p._next=c,p._prev=E,c._prev=p,E&&(E._next=p),c===this._mapHead&&(this._mapHead=p),this._appendAfter=c,c}return this._appendAfter?(this._appendAfter._next=p,p._prev=this._appendAfter):this._mapHead=p,this._appendAfter=p,null}_getOrCreateRecordForKey(c,p){if(this._records.has(c)){const F=this._records.get(c);this._maybeAddToChanges(F,p);const Z=F._prev,le=F._next;return Z&&(Z._next=le),le&&(le._prev=Z),F._next=null,F._prev=null,F}const E=new G8(c);return this._records.set(c,E),E.currentValue=p,this._addToAdditions(E),E}_reset(){if(this.isDirty){let c;for(this._previousMapHead=this._mapHead,c=this._previousMapHead;null!==c;c=c._next)c._nextPrevious=c._next;for(c=this._changesHead;null!==c;c=c._nextChanged)c.previousValue=c.currentValue;for(c=this._additionsHead;null!=c;c=c._nextAdded)c.previousValue=c.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(c,p){Object.is(p,c.currentValue)||(c.previousValue=c.currentValue,c.currentValue=p,this._addToChanges(c))}_addToAdditions(c){null===this._additionsHead?this._additionsHead=this._additionsTail=c:(this._additionsTail._nextAdded=c,this._additionsTail=c)}_addToChanges(c){null===this._changesHead?this._changesHead=this._changesTail=c:(this._changesTail._nextChanged=c,this._changesTail=c)}_forEach(c,p){c instanceof Map?c.forEach(p):Object.keys(c).forEach(E=>p(c[E],E))}}class G8{constructor(c){this.key=c,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 yg(){return new H3([new _g])}let H3=(()=>{class o{constructor(p){this.factories=p}static create(p,E){if(null!=E){const F=E.factories.slice();p=p.concat(F)}return new o(p)}static extend(p){return{provide:o,useFactory:E=>o.create(p,E||yg()),deps:[[o,new Ns,new $r]]}}find(p){const E=this.factories.find(F=>F.supports(p));if(null!=E)return E;throw new j(901,!1)}}return o.\u0275prov=Ue({token:o,providedIn:"root",factory:yg}),o})();function Jm(){return new Xm([new bg])}let Xm=(()=>{class o{constructor(p){this.factories=p}static create(p,E){if(E){const F=E.factories.slice();p=p.concat(F)}return new o(p)}static extend(p){return{provide:o,useFactory:E=>o.create(p,E||Jm()),deps:[[o,new Ns,new $r]]}}find(p){const E=this.factories.find(F=>F.supports(p));if(E)return E;throw new j(901,!1)}}return o.\u0275prov=Ue({token:o,providedIn:"root",factory:Jm}),o})();const j8=rg(null,"core",[]);let K8=(()=>{class o{constructor(p){}}return o.\u0275fac=function(p){return new(p||o)(xt(O3))},o.\u0275mod=Mi({type:o}),o.\u0275inj=ye({}),o})();function xg(o){return"boolean"==typeof o?o:null!=o&&"false"!==o}},5863:(We,q,m)=>{"use strict";function t(w){for(let C in w){let L=w[C]??"";switch(C){case"display":w.display="flex"===L?["-webkit-flex","flex"]:"inline-flex"===L?["-webkit-inline-flex","inline-flex"]:L;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":w["-webkit-"+C]=L;break;case"flex-direction":w["-webkit-flex-direction"]=L,w["flex-direction"]=L;break;case"order":w.order=w["-webkit-"+C]=isNaN(+L)?"0":L}}return w}m.d(q,{Ar:()=>T,GK:()=>t,iQ:()=>_,kt:()=>d,tj:()=>y});const e="inline",_=["row","column","row-reverse","column-reverse"];function T(w){let[C,L,D]=s(w);return function P(w,C=null,L=!1){return{display:L?"inline-flex":"flex","box-sizing":"border-box","flex-direction":w,"flex-wrap":C||null}}(C,L,D)}function s(w){w=w?.toLowerCase()??"";let[C,L,D]=w.split(" ");return _.find(H=>H===C)||(C=_[0]),L===e&&(L=D!==e?D:"",D=e),[C,h(L),!!D]}function y(w){let[C]=s(w);return C.indexOf("row")>-1}function h(w){if(w)switch(w.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":w="wrap-reverse";break;case"no":case"none":case"nowrap":w="nowrap";break;default:w="wrap"}return w}function d(w,...C){if(null==w)throw TypeError("Cannot convert undefined or null to object");for(let L of C)if(null!=L)for(let D in L)L.hasOwnProperty(D)&&(w[D]=L[D]);return w}},2233:(We,q,m)=>{"use strict";m.d(q,{Bs:()=>J,FL:()=>X,IR:()=>D,Ot:()=>be,QI:()=>me,RK:()=>re,WU:()=>j,g5:()=>Y,iR:()=>Pe,wY:()=>Q,yB:()=>Ve});var t=m(4650),e=m(6895),_=m(1135),T=m(9751),s=m(6451),y=m(7579),h=m(5863),P=m(9300),d=m(8505);const C={provide:t.tb,useFactory:function w(mt,Tt){return()=>{if((0,e.NF)(Tt)){const it=Array.from(mt.querySelectorAll(`[class*=${L}]`)),je=/\bflex-layout-.+?\b/g;it.forEach(zt=>{zt.classList.contains(`${L}ssr`)&&zt.parentNode?zt.parentNode.removeChild(zt):zt.className.replace(je,"")})}}},deps:[e.K0,t.Lbi],multi:!0},L="flex-layout-";let D=(()=>{class mt{}return mt.\u0275fac=function(it){return new(it||mt)},mt.\u0275mod=t.oAB({type:mt}),mt.\u0275inj=t.cJS({providers:[C]}),mt})();class H{constructor(Tt=!1,it="all",je="",zt="",xt=0){this.matches=Tt,this.mediaQuery=it,this.mqAlias=je,this.suffix=zt,this.priority=xt,this.property=""}clone(){return new H(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let V=(()=>{class mt{constructor(){this.stylesheet=new Map}addStyleToElement(it,je,zt){const xt=this.stylesheet.get(it);xt?xt.set(je,zt):this.stylesheet.set(it,new Map([[je,zt]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(it,je){const zt=this.stylesheet.get(it);let xt="";if(zt){const Nt=zt.get(je);("number"==typeof Nt||"string"==typeof Nt)&&(xt=Nt+"")}return xt}}return mt.\u0275fac=function(it){return new(it||mt)},mt.\u0275prov=t.Yz7({token:mt,factory:mt.\u0275fac,providedIn:"root"}),mt})();const Y={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},j=new t.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>Y}),Q=new t.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),J=new t.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function ee(mt,Tt){return mt=mt?.clone()??new H,Tt&&(mt.mqAlias=Tt.alias,mt.mediaQuery=Tt.mediaQuery,mt.suffix=Tt.suffix,mt.priority=Tt.priority),mt}class me{constructor(){this.shouldCache=!0}sideEffect(Tt,it,je){}}let re=(()=>{class mt{constructor(it,je,zt,xt){this._serverStylesheet=it,this._serverModuleLoaded=je,this._platformId=zt,this.layoutConfig=xt}applyStyleToElement(it,je,zt=null){let xt={};"string"==typeof je&&(xt[je]=zt,je=xt),xt=this.layoutConfig.disableVendorPrefixes?je:(0,h.GK)(je),this._applyMultiValueStyleToElement(xt,it)}applyStyleToElements(it,je=[]){const zt=this.layoutConfig.disableVendorPrefixes?it:(0,h.GK)(it);je.forEach(xt=>{this._applyMultiValueStyleToElement(zt,xt)})}getFlowDirection(it){const je="flex-direction";let zt=this.lookupStyle(it,je);return[zt||"row",this.lookupInlineStyle(it,je)||(0,e.PM)(this._platformId)&&this._serverModuleLoaded?zt:""]}hasWrap(it){return"wrap"===this.lookupStyle(it,"flex-wrap")}lookupAttributeValue(it,je){return it.getAttribute(je)??""}lookupInlineStyle(it,je){return(0,e.NF)(this._platformId)?it.style.getPropertyValue(je):function ie(mt,Tt){return Ce(mt)[Tt]??""}(it,je)}lookupStyle(it,je,zt=!1){let xt="";return it&&((xt=this.lookupInlineStyle(it,je))||((0,e.NF)(this._platformId)?zt||(xt=getComputedStyle(it).getPropertyValue(je)):this._serverModuleLoaded&&(xt=this._serverStylesheet.getStyleForElement(it,je)))),xt?xt.trim():""}_applyMultiValueStyleToElement(it,je){Object.keys(it).sort().forEach(zt=>{const xt=it[zt],Nt=Array.isArray(xt)?xt:[xt];Nt.sort();for(let Gt of Nt)Gt=Gt?Gt+"":"",(0,e.NF)(this._platformId)||!this._serverModuleLoaded?(0,e.NF)(this._platformId)?je.style.setProperty(zt,Gt):se(je,zt,Gt):this._serverStylesheet.addStyleToElement(je,zt,Gt)})}}return mt.\u0275fac=function(it){return new(it||mt)(t.LFG(V),t.LFG(Q),t.LFG(t.Lbi),t.LFG(j))},mt.\u0275prov=t.Yz7({token:mt,factory:mt.\u0275fac,providedIn:"root"}),mt})();function se(mt,Tt,it){Tt=Tt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const je=Ce(mt);je[Tt]=it??"",function ce(mt,Tt){let it="";for(const je in Tt)Tt[je]&&(it+=`${je}:${Tt[je]};`);mt.setAttribute("style",it)}(mt,je)}function Ce(mt){const Tt={},it=mt.getAttribute("style");if(it){const je=it.split(/;+/g);for(let zt=0;zt0){const Nt=xt.indexOf(":");if(-1===Nt)throw new Error(`Invalid CSS style: ${xt}`);Tt[xt.substr(0,Nt).trim()]=xt.substr(Nt+1).trim()}}}return Tt}function M(mt,Tt){return(Tt&&Tt.priority||0)-(mt&&mt.priority||0)}function i(mt,Tt){return(mt.priority||0)-(Tt.priority||0)}let a=(()=>{class mt{constructor(it,je,zt){this._zone=it,this._platformId=je,this._document=zt,this.source=new _.X(new H(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const it=[];return this.registry.forEach((je,zt)=>{je.matches&&it.push(zt)}),it}isActive(it){return this.registry.get(it)?.matches??this.registerQuery(it).some(zt=>zt.matches)}observe(it,je=!1){if(it&&it.length){const zt=this._observable$.pipe((0,P.h)(Nt=>!je||it.indexOf(Nt.mediaQuery)>-1)),xt=new T.y(Nt=>{const Gt=this.registerQuery(it);if(Gt.length){const ke=Gt.pop();Gt.forEach($=>{Nt.next($)}),this.source.next(ke)}Nt.complete()});return(0,s.T)(xt,zt)}return this._observable$}registerQuery(it){const je=Array.isArray(it)?it:[it],zt=[];return function l(mt,Tt){const it=mt.filter(je=>!f[je]);if(it.length>0){const je=it.join(", ");try{const zt=Tt.createElement("style");zt.setAttribute("type","text/css"),zt.styleSheet||zt.appendChild(Tt.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${je} {.fx-query-test{ }}\n`)),Tt.head.appendChild(zt),it.forEach(xt=>f[xt]=zt)}catch(zt){console.error(zt)}}}(je,this._document),je.forEach(xt=>{const Nt=ke=>{this._zone.run(()=>this.source.next(new H(ke.matches,xt)))};let Gt=this.registry.get(xt);Gt||(Gt=this.buildMQL(xt),Gt.addListener(Nt),this.pendingRemoveListenerFns.push(()=>Gt.removeListener(Nt)),this.registry.set(xt,Gt)),Gt.matches&&zt.push(new H(!0,xt))}),zt}ngOnDestroy(){let it;for(;it=this.pendingRemoveListenerFns.pop();)it()}buildMQL(it){return function I(mt,Tt){return Tt&&window.matchMedia("all").addListener?window.matchMedia(mt):function v(mt){const Tt=new EventTarget;return Tt.matches="all"===mt||""===mt,Tt.media=mt,Tt.addListener=()=>{},Tt.removeListener=()=>{},Tt.addEventListener=()=>{},Tt.dispatchEvent=()=>!1,Tt.onchange=null,Tt}(mt)}(it,(0,e.NF)(this._platformId))}}return mt.\u0275fac=function(it){return new(it||mt)(t.LFG(t.R0b),t.LFG(t.Lbi),t.LFG(e.K0))},mt.\u0275prov=t.Yz7({token:mt,factory:mt.\u0275fac,providedIn:"root"}),mt})();const f={},k=[{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}],x="(orientation: portrait) and (max-width: 599.98px)",n="(orientation: landscape) and (max-width: 959.98px)",g="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",W="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",O="(orientation: portrait) and (min-width: 840px)",G="(orientation: landscape) and (min-width: 1280px)",ge={HANDSET:`${x}, ${n}`,TABLET:`${g} , ${W}`,WEB:`${O}, ${G} `,HANDSET_PORTRAIT:`${x}`,TABLET_PORTRAIT:`${g} `,WEB_PORTRAIT:`${O}`,HANDSET_LANDSCAPE:`${n}`,TABLET_LANDSCAPE:`${W}`,WEB_LANDSCAPE:`${G}`},nt=[{alias:"handset",priority:2e3,mediaQuery:ge.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:ge.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:ge.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:ge.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:ge.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:ge.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:ge.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:ge.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:ge.WEB_PORTRAIT,overlapping:!0}],Ue=/(\.|-|_)/g;function at(mt){let Tt=mt.length>0?mt.charAt(0):"",it=mt.length>1?mt.slice(1):"";return Tt.toUpperCase()+it}const Oe=new t.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const mt=(0,t.f3M)(J),Tt=(0,t.f3M)(j),it=[].concat.apply([],(mt||[]).map(zt=>Array.isArray(zt)?zt:[zt]));return function fe(mt,Tt=[]){const it={};return mt.forEach(je=>{it[je.alias]=je}),Tt.forEach(je=>{it[je.alias]?(0,h.kt)(it[je.alias],je):it[je.alias]=je}),function xe(mt){return mt.forEach(Tt=>{Tt.suffix||(Tt.suffix=function ye(mt){return mt.replace(Ue,"|").split("|").map(at).join("")}(Tt.alias),Tt.overlapping=!!Tt.overlapping)}),mt}(Object.keys(it).map(je=>it[je]))}((Tt.disableDefaultBps?[]:k).concat(Tt.addOrientationBps?nt:[]),it)}});let oe=(()=>{class mt{constructor(it){this.findByMap=new Map,this.items=[...it].sort(i)}findByAlias(it){return it?this.findWithPredicate(it,je=>je.alias===it):null}findByQuery(it){return this.findWithPredicate(it,je=>je.mediaQuery===it)}get overlappings(){return this.items.filter(it=>it.overlapping)}get aliases(){return this.items.map(it=>it.alias)}get suffixes(){return this.items.map(it=>it?.suffix??"")}findWithPredicate(it,je){let zt=this.findByMap.get(it);return zt||(zt=this.items.find(je)??null,this.findByMap.set(it,zt)),zt??null}}return mt.\u0275fac=function(it){return new(it||mt)(t.LFG(Oe))},mt.\u0275prov=t.Yz7({token:mt,factory:mt.\u0275fac,providedIn:"root"}),mt})();const Fe="print",De={alias:Fe,mediaQuery:Fe,priority:1e3};let he=(()=>{class mt{constructor(it,je,zt){this.breakpoints=it,this.layoutConfig=je,this._document=zt,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new Me,this.deactivations=[]}withPrintQuery(it){return[...it,Fe]}isPrintEvent(it){return it.mediaQuery.startsWith(Fe)}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 je=this.breakpoints.findByQuery(it);return(je?[...this.printBreakPoints,je]:this.printBreakPoints).sort(M)}updateEvent(it){let je=this.breakpoints.findByQuery(it.mediaQuery);return this.isPrintEvent(it)&&(je=this.getEventBreakpoints(it)[0],it.mediaQuery=je?.mediaQuery??""),ee(it,je)}registerBeforeAfterPrintHooks(it){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const je=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(it,this.getEventBreakpoints(new H(!0,Fe))),it.updateStyles())},zt=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(it),it.updateStyles())};this._document.defaultView.addEventListener("beforeprint",je),this._document.defaultView.addEventListener("afterprint",zt),this.beforePrintEventListeners.push(je),this.afterPrintEventListeners.push(zt)}interceptEvents(it){return je=>{this.isPrintEvent(je)?je.matches&&!this.isPrinting?(this.startPrinting(it,this.getEventBreakpoints(je)),it.updateStyles()):!je.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(it),it.updateStyles()):this.collectActivations(it,je)}}blockPropagation(){return it=>!(this.isPrinting||this.isPrintEvent(it))}startPrinting(it,je){this.isPrinting=!0,this.formerActivations=it.activatedBreakpoints,it.activatedBreakpoints=this.queue.addPrintBreakpoints(je)}stopPrinting(it){it.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(it,je){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!je.matches){const zt=this.breakpoints.findByQuery(je.mediaQuery);if(zt){const xt=this.formerActivations&&this.formerActivations.includes(zt),Nt=!this.formerActivations&&it.activatedBreakpoints.includes(zt);(xt||Nt)&&(this.deactivations.push(zt),this.deactivations.sort(M))}}}}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 mt.\u0275fac=function(it){return new(it||mt)(t.LFG(oe),t.LFG(j),t.LFG(e.K0))},mt.\u0275prov=t.Yz7({token:mt,factory:mt.\u0275fac,providedIn:"root"}),mt})();class Me{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(Tt){return Tt.push(De),Tt.sort(M),Tt.forEach(it=>this.addBreakpoint(it)),this.printBreakpoints}addBreakpoint(Tt){Tt&&void 0===this.printBreakpoints.find(je=>je.mediaQuery===Tt.mediaQuery)&&(this.printBreakpoints=function pe(mt){return mt?.mediaQuery.startsWith(Fe)??!1}(Tt)?[Tt,...this.printBreakpoints]:[...this.printBreakpoints,Tt])}clear(){this.printBreakpoints=[]}}let Ve=(()=>{class mt{constructor(it,je,zt){this.matchMedia=it,this.breakpoints=je,this.hook=zt,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new y.x,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(it){this._activatedBreakpoints=[...it]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(it){this._useFallbacks=it}onMediaChange(it){const je=this.findByQuery(it.mediaQuery);if(je){it=ee(it,je);const zt=this.activatedBreakpoints.indexOf(je);it.matches&&-1===zt?(this._activatedBreakpoints.push(je),this._activatedBreakpoints.sort(M),this.updateStyles()):!it.matches&&-1!==zt&&(this._activatedBreakpoints.splice(zt,1),this._activatedBreakpoints.sort(M),this.updateStyles())}}init(it,je,zt,xt,Nt=[]){Qe(this.updateMap,it,je,zt),Qe(this.clearMap,it,je,xt),this.buildElementKeyMap(it,je),this.watchExtraTriggers(it,je,Nt)}getValue(it,je,zt){const xt=this.elementMap.get(it);if(xt){const Nt=void 0!==zt?xt.get(zt):this.getActivatedValues(xt,je);if(Nt)return Nt.get(je)}}hasValue(it,je){const zt=this.elementMap.get(it);if(zt){const xt=this.getActivatedValues(zt,je);if(xt)return void 0!==xt.get(je)||!1}return!1}setValue(it,je,zt,xt){let Nt=this.elementMap.get(it);if(Nt){const ke=(Nt.get(xt)??new Map).set(je,zt);Nt.set(xt,ke),this.elementMap.set(it,Nt)}else Nt=(new Map).set(xt,(new Map).set(je,zt)),this.elementMap.set(it,Nt);const Gt=this.getValue(it,je);void 0!==Gt&&this.updateElement(it,je,Gt)}trackValue(it,je){return this.subject.asObservable().pipe((0,P.h)(zt=>zt.element===it&&zt.key===je))}updateStyles(){this.elementMap.forEach((it,je)=>{const zt=new Set(this.elementKeyMap.get(je));let xt=this.getActivatedValues(it);xt&&xt.forEach((Nt,Gt)=>{this.updateElement(je,Gt,Nt),zt.delete(Gt)}),zt.forEach(Nt=>{if(xt=this.getActivatedValues(it,Nt),xt){const Gt=xt.get(Nt);this.updateElement(je,Nt,Gt)}else this.clearElement(je,Nt)})})}clearElement(it,je){const zt=this.clearMap.get(it);if(zt){const xt=zt.get(je);xt&&(xt(),this.subject.next({element:it,key:je,value:""}))}}updateElement(it,je,zt){const xt=this.updateMap.get(it);if(xt){const Nt=xt.get(je);Nt&&(Nt(zt),this.subject.next({element:it,key:je,value:zt}))}}releaseElement(it){const je=this.watcherMap.get(it);je&&(je.forEach(xt=>xt.unsubscribe()),this.watcherMap.delete(it));const zt=this.elementMap.get(it);zt&&(zt.forEach((xt,Nt)=>zt.delete(Nt)),this.elementMap.delete(it))}triggerUpdate(it,je){const zt=this.elementMap.get(it);if(zt){const xt=this.getActivatedValues(zt,je);xt&&(je?this.updateElement(it,je,xt.get(je)):xt.forEach((Nt,Gt)=>this.updateElement(it,Gt,Nt)))}}buildElementKeyMap(it,je){let zt=this.elementKeyMap.get(it);zt||(zt=new Set,this.elementKeyMap.set(it,zt)),zt.add(je)}watchExtraTriggers(it,je,zt){if(zt&&zt.length){let xt=this.watcherMap.get(it);if(xt||(xt=new Map,this.watcherMap.set(it,xt)),!xt.get(je)){const Gt=(0,s.T)(...zt).subscribe(()=>{const ke=this.getValue(it,je);this.updateElement(it,je,ke)});xt.set(je,Gt)}}}findByQuery(it){return this.breakpoints.findByQuery(it)}getActivatedValues(it,je){for(let xt=0;xtje.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(it)).pipe((0,d.b)(this.hook.interceptEvents(this)),(0,P.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return mt.\u0275fac=function(it){return new(it||mt)(t.LFG(a),t.LFG(oe),t.LFG(he))},mt.\u0275prov=t.Yz7({token:mt,factory:mt.\u0275fac,providedIn:"root"}),mt})();function Qe(mt,Tt,it,je){if(void 0!==je){const zt=mt.get(Tt)??new Map;zt.set(it,je),mt.set(Tt,zt)}}let Pe=(()=>{class mt{constructor(it,je,zt,xt){this.elementRef=it,this.styleBuilder=je,this.styler=zt,this.marshal=xt,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new y.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(je=>{if(-1!==this.inputs.indexOf(je)){const zt=je.split(".").slice(1).join(".");this.setValue(it[je].currentValue,zt)}})}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,je){const zt=this.styleBuilder,xt=zt.shouldCache;let Nt=this.styleCache.get(it);(!Nt||!xt)&&(Nt=zt.buildStyles(it,je),xt&&this.styleCache.set(it,Nt)),this.mru={...Nt},this.applyStyleToElement(Nt),zt.sideEffect(it,Nt,je)}clearStyles(){Object.keys(this.mru).forEach(it=>{this.mru[it]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(it,je=!1){if(it){const[zt,xt]=this.styler.getFlowDirection(it);if(!xt&&je){const Nt=(0,h.Ar)(zt);this.styler.applyStyleToElements(Nt,[it])}return zt.trim()}return"row"}hasWrap(it){return this.styler.hasWrap(it)}applyStyleToElement(it,je,zt=this.nativeElement){this.styler.applyStyleToElement(zt,it,je)}setValue(it,je){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,it,je)}updateWithValue(it){this.currentValue!==it&&(this.addStyles(it),this.currentValue=it)}}return mt.\u0275fac=function(it){return new(it||mt)(t.Y36(t.SBq),t.Y36(me),t.Y36(re),t.Y36(Ve))},mt.\u0275dir=t.lG2({type:mt,features:[t.TTD]}),mt})();class rt extends EventTarget{constructor(Tt){super(),this._mediaQuery=Tt,this._isActive=!1,this._listeners=[],this.onchange=null}get matches(){return this._isActive}get media(){return this._mediaQuery}destroy(){this.deactivate(),this._listeners=[]}activate(){return this._isActive||(this._isActive=!0,this._listeners.forEach(Tt=>{Tt.call(this,{matches:this.matches,media:this.media})})),this}deactivate(){return this._isActive&&(this._isActive=!1,this._listeners.forEach(Tt=>{Tt.call(this,{matches:this.matches,media:this.media})})),this}addListener(Tt){-1===this._listeners.indexOf(Tt)&&this._listeners.push(Tt),this._isActive&&Tt.call(this,{matches:this.matches,media:this.media})}removeListener(Tt){}dispatchEvent(Tt){return!1}}function be(mt,Tt="1",it="1"){let je=[Tt,it,mt],zt=mt.indexOf("calc");if(zt>0){je[2]=qe(mt.substring(zt).trim());let xt=mt.substr(0,zt).trim().split(" ");2==xt.length&&(je[0]=xt[0],je[1]=xt[1])}else if(0==zt)je[2]=qe(mt.trim());else{let xt=mt.split(" ");je=3===xt.length?xt:[Tt,it,mt]}return je}function qe(mt){return mt.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}const Ie="x";function X(mt,Tt){if(void 0===Tt)return mt;const it=je=>{const zt=+je.slice(0,-Ie.length);return mt.endsWith(Ie)&&!isNaN(zt)?`${zt*Tt.value}${Tt.unit}`:mt};return mt.includes(" ")?mt.split(" ").map(it).join(" "):it(mt)}},5829:(We,q,m)=>{"use strict";m.d(q,{Zl:()=>I,aT:()=>n,oO:()=>Y});var t=m(4650),e=m(2233),_=m(6895),y=(m(1281),m(2722),m(1481));let D=(()=>{class g extends e.iR{constructor(O,G,ge,nt,Ue,at,ye){super(O,null,G,ge),this.ngClassInstance=ye,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new _.mk(nt,Ue,O,at)),this.init(),this.setValue("","")}set klass(O){this.ngClassInstance.klass=O,this.setValue(O,"")}updateWithValue(O){this.ngClassInstance.ngClass=O,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return g.\u0275fac=function(O){return new(O||g)(t.Y36(t.SBq),t.Y36(e.RK),t.Y36(e.yB),t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.Qsj),t.Y36(_.mk,10))},g.\u0275dir=t.lG2({type:g,inputs:{klass:["class","klass"]},features:[t.qOj]}),g})();const H=["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 Y=(()=>{class g extends D{constructor(){super(...arguments),this.inputs=H}}return g.\u0275fac=function(){let W;return function(G){return(W||(W=t.n5z(g)))(G||g)}}(),g.\u0275dir=t.lG2({type:g,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:[t.qOj]}),g})();class ie{constructor(W,O,G=!0){this.key=W,this.value=O,this.key=G?W.replace(/['"]/g,"").trim():W.trim(),this.value=G?O.replace(/['"]/g,"").trim():O.trim(),this.value=this.value.replace(/;/,"")}}function se(g){let W=typeof g;return"object"===W?g.constructor===Array?"array":g.constructor===Set?"set":"object":W}function i(g){const[W,...O]=g.split(":");return new ie(W,O.join(":"))}function a(g,W){return W.key&&(g[W.key]=W.value),g}let f=(()=>{class g extends e.iR{constructor(O,G,ge,nt,Ue,at,ye,xe,fe){super(O,null,G,ge),this.sanitizer=nt,this.ngStyleInstance=ye,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new _.PC(O,Ue,at)),this.init();const Oe=this.nativeElement.getAttribute("style")??"";this.fallbackStyles=this.buildStyleMap(Oe),this.isServer=xe&&(0,_.PM)(fe)}updateWithValue(O){const G=this.buildStyleMap(O);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...G},this.isServer&&this.applyStyleToElement(G),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(O){const G=ge=>this.sanitizer.sanitize(t.q3G.STYLE,ge)??"";if(O)switch(se(O)){case"string":return k(function ce(g,W=";"){return String(g).trim().split(W).map(O=>O.trim()).filter(O=>""!==O)}(O),G);case"array":return k(O,G);default:return function M(g,W){let O=[];return"set"===se(g)?g.forEach(G=>O.push(G)):Object.keys(g).forEach(G=>{O.push(`${G}:${g[G]}`)}),function Ce(g,W){return g.map(i).filter(G=>!!G).map(G=>(W&&(G.value=W(G.value)),G)).reduce(a,{})}(O,W)}(O,G)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return g.\u0275fac=function(O){return new(O||g)(t.Y36(t.SBq),t.Y36(e.RK),t.Y36(e.yB),t.Y36(y.H7),t.Y36(t.aQg),t.Y36(t.Qsj),t.Y36(_.PC,10),t.Y36(e.wY),t.Y36(t.Lbi))},g.\u0275dir=t.lG2({type:g,features:[t.qOj]}),g})();const l=["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 I=(()=>{class g extends f{constructor(){super(...arguments),this.inputs=l}}return g.\u0275fac=function(){let W;return function(G){return(W||(W=t.n5z(g)))(G||g)}}(),g.\u0275dir=t.lG2({type:g,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:[t.qOj]}),g})();function k(g,W){return g.map(i).filter(G=>!!G).map(G=>(W&&(G.value=W(G.value)),G)).reduce(a,{})}let n=(()=>{class g{}return g.\u0275fac=function(O){return new(O||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[e.IR]}),g})()},1576:(We,q,m)=>{"use strict";m.d(q,{Wh:()=>be,ae:()=>Nt,xw:()=>C,yH:()=>v});var t=m(4650),e=m(445),_=m(2233),T=m(5863),y=(m(7579),m(2722));let h=(()=>{class Gt extends _.QI{buildStyles($,{display:ue}){const Le=(0,T.Ar)($);return{...Le,display:"none"===ue?ue:Le.display}}}return Gt.\u0275fac=function(){let ke;return function(ue){return(ke||(ke=t.n5z(Gt)))(ue||Gt)}}(),Gt.\u0275prov=t.Yz7({token:Gt,factory:Gt.\u0275fac,providedIn:"root"}),Gt})();const P=["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 w=(()=>{class Gt extends _.iR{constructor($,ue,Le,Je,$t){super($,Le,ue,Je),this._config=$t,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue($){const Le=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=L.get(Le)??new Map,L.set(Le,this.styleCache),this.currentValue!==$&&(this.addStyles($,{display:Le}),this.currentValue=$)}}return Gt.\u0275fac=function($){return new($||Gt)(t.Y36(t.SBq),t.Y36(_.RK),t.Y36(h),t.Y36(_.yB),t.Y36(_.WU))},Gt.\u0275dir=t.lG2({type:Gt,features:[t.qOj]}),Gt})(),C=(()=>{class Gt extends w{constructor(){super(...arguments),this.inputs=P}}return Gt.\u0275fac=function(){let ke;return function(ue){return(ke||(ke=t.n5z(Gt)))(ue||Gt)}}(),Gt.\u0275dir=t.lG2({type:Gt,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:[t.qOj]}),Gt})();const L=new Map;let i=(()=>{class Gt extends _.QI{constructor($){super(),this.layoutConfig=$}buildStyles($,ue){let[Le,Je,...$t]=$.split(" "),Vt=$t.join(" ");const ii=ue.direction.indexOf("column")>-1?"column":"row",pt=(0,T.tj)(ii)?"max-width":"max-height",ot=(0,T.tj)(ii)?"min-width":"min-height",ft=String(Vt).indexOf("calc")>-1,St=ft||"auto"===Vt,gt=String(Vt).indexOf("%")>-1&&!ft,$e=String(Vt).indexOf("px")>-1||String(Vt).indexOf("rem")>-1||String(Vt).indexOf("em")>-1||String(Vt).indexOf("vw")>-1||String(Vt).indexOf("vh")>-1;let _t=ft||$e;Le="0"==Le?0:Le,Je="0"==Je?0:Je;const vt=!Le&&!Je;let He={};const Et={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(Vt||""){case"":Vt="row"===ii?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":Le=0,Vt="auto";break;case"grow":Vt="100%";break;case"noshrink":Je=0,Vt="auto";break;case"auto":break;case"none":Le=0,Je=0,Vt="auto";break;default:!_t&&!gt&&!isNaN(Vt)&&(Vt+="%"),"0%"===Vt&&(_t=!0),"0px"===Vt&&(Vt="0%"),He=(0,T.kt)(Et,ft?{"flex-grow":Le,"flex-shrink":Je,"flex-basis":_t?Vt:"100%"}:{flex:`${Le} ${Je} ${_t?Vt:"100%"}`})}return He.flex||He["flex-grow"]||(He=(0,T.kt)(Et,ft?{"flex-grow":Le,"flex-shrink":Je,"flex-basis":Vt}:{flex:`${Le} ${Je} ${Vt}`})),"0%"!==Vt&&"0px"!==Vt&&"0.000000001px"!==Vt&&"auto"!==Vt&&(He[ot]=vt||_t&&Le?Vt:null,He[pt]=vt||!St&&Je?Vt:null),He[ot]||He[pt]?ue.hasWrap&&(He[ft?"flex-basis":"flex"]=He[pt]?ft?He[pt]:`${Le} ${Je} ${He[pt]}`:ft?He[ot]:`${Le} ${Je} ${He[ot]}`):He=(0,T.kt)(Et,ft?{"flex-grow":Le,"flex-shrink":Je,"flex-basis":Vt}:{flex:`${Le} ${Je} ${Vt}`}),(0,T.kt)(He,{"box-sizing":"border-box"})}}return Gt.\u0275fac=function($){return new($||Gt)(t.LFG(_.WU))},Gt.\u0275prov=t.Yz7({token:Gt,factory:Gt.\u0275fac,providedIn:"root"}),Gt})();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 l=(()=>{class Gt extends _.iR{constructor($,ue,Le,Je,$t){super($,Je,ue,$t),this.layoutConfig=Le,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($){this.flexShrink=$||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow($){this.flexGrow=$||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,y.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,y.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange($){const Le=$.value.split(" ");this.direction=Le[0],this.wrap=void 0!==Le[1]&&"wrap"===Le[1],this.triggerUpdate()}updateWithValue($){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 Le=this.direction,Je=Le.startsWith("row"),$t=this.wrap;Je&&$t?this.styleCache=x:Je&&!$t?this.styleCache=I:!Je&&$t?this.styleCache=n:!Je&&!$t&&(this.styleCache=k);const Vt=String($).replace(";",""),ii=(0,_.Ot)(Vt,this.flexGrow,this.flexShrink);this.addStyles(ii.join(" "),{direction:Le,hasWrap:$t})}triggerReflow(){const $=this.activatedValue;if(void 0!==$){const ue=(0,_.Ot)($+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,ue.join(" "))}}}return Gt.\u0275fac=function($){return new($||Gt)(t.Y36(t.SBq),t.Y36(_.RK),t.Y36(_.WU),t.Y36(i),t.Y36(_.yB))},Gt.\u0275dir=t.lG2({type:Gt,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[t.qOj]}),Gt})(),v=(()=>{class Gt extends l{constructor(){super(...arguments),this.inputs=a}}return Gt.\u0275fac=function(){let ke;return function(ue){return(ke||(ke=t.n5z(Gt)))(ue||Gt)}}(),Gt.\u0275dir=t.lG2({type:Gt,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:[t.qOj]}),Gt})();const I=new Map,k=new Map,x=new Map,n=new Map;let Ut=(()=>{class Gt extends _.QI{buildStyles($,ue){const Le={},[Je,$t]=$.split(" ");switch(Je){case"center":Le["justify-content"]="center";break;case"space-around":Le["justify-content"]="space-around";break;case"space-between":Le["justify-content"]="space-between";break;case"space-evenly":Le["justify-content"]="space-evenly";break;case"end":case"flex-end":Le["justify-content"]="flex-end";break;default:Le["justify-content"]="flex-start"}switch($t){case"start":case"flex-start":Le["align-items"]=Le["align-content"]="flex-start";break;case"center":Le["align-items"]=Le["align-content"]="center";break;case"end":case"flex-end":Le["align-items"]=Le["align-content"]="flex-end";break;case"space-between":Le["align-content"]="space-between",Le["align-items"]="stretch";break;case"space-around":Le["align-content"]="space-around",Le["align-items"]="stretch";break;case"baseline":Le["align-content"]="stretch",Le["align-items"]="baseline";break;default:Le["align-items"]=Le["align-content"]="stretch"}return(0,T.kt)(Le,{display:ue.inline?"inline-flex":"flex","flex-direction":ue.layout,"box-sizing":"border-box","max-width":"stretch"===$t?(0,T.tj)(ue.layout)?null:"100%":null,"max-height":"stretch"===$t&&(0,T.tj)(ue.layout)?"100%":null})}}return Gt.\u0275fac=function(){let ke;return function(ue){return(ke||(ke=t.n5z(Gt)))(ue||Gt)}}(),Gt.\u0275prov=t.Yz7({token:Gt,factory:Gt.\u0275fac,providedIn:"root"}),Gt})();const ht=["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 yt=(()=>{class Gt extends _.iR{constructor($,ue,Le,Je){super($,Le,ue,Je),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,y.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue($){const ue=this.layout||"row",Le=this.inline;"row"===ue&&Le?this.styleCache=Tt:"row"!==ue||Le?"row-reverse"===ue&&Le?this.styleCache=je:"row-reverse"!==ue||Le?"column"===ue&&Le?this.styleCache=it:"column"!==ue||Le?"column-reverse"===ue&&Le?this.styleCache=zt:"column-reverse"===ue&&!Le&&(this.styleCache=mt):this.styleCache=Ie:this.styleCache=X:this.styleCache=qe,this.addStyles($,{layout:ue,inline:Le})}onLayoutChange($){const ue=$.value.split(" ");this.layout=ue[0],this.inline=$.value.includes("inline"),T.iQ.find(Le=>Le===this.layout)||(this.layout="row"),this.triggerUpdate()}}return Gt.\u0275fac=function($){return new($||Gt)(t.Y36(t.SBq),t.Y36(_.RK),t.Y36(Ut),t.Y36(_.yB))},Gt.\u0275dir=t.lG2({type:Gt,features:[t.qOj]}),Gt})(),be=(()=>{class Gt extends yt{constructor(){super(...arguments),this.inputs=ht}}return Gt.\u0275fac=function(){let ke;return function(ue){return(ke||(ke=t.n5z(Gt)))(ue||Gt)}}(),Gt.\u0275dir=t.lG2({type:Gt,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:[t.qOj]}),Gt})();const qe=new Map,Ie=new Map,X=new Map,mt=new Map,Tt=new Map,it=new Map,je=new Map,zt=new Map;let Nt=(()=>{class Gt{}return Gt.\u0275fac=function($){return new($||Gt)},Gt.\u0275mod=t.oAB({type:Gt}),Gt.\u0275inj=t.cJS({imports:[_.IR,e.vT]}),Gt})()},4006:(We,q,m)=>{"use strict";m.d(q,{Cf:()=>Q,F:()=>Ot,Fd:()=>sr,Fj:()=>H,JJ:()=>pe,JL:()=>Ve,JU:()=>P,On:()=>ri,Q7:()=>Qr,QS:()=>ca,UX:()=>Za,Zs:()=>qr,_Y:()=>xi,a5:()=>Fe,kI:()=>me,oH:()=>Pr,p4:()=>gi,qQ:()=>Cr,qu:()=>nn,sg:()=>jn,u:()=>wa,u5:()=>_n,wV:()=>ln});var t=m(4650),e=m(6895),_=m(457),T=m(4128),s=m(4004);let y=(()=>{class ct{constructor(Ze,kt){this._renderer=Ze,this._elementRef=kt,this.onChange=wi=>{},this.onTouched=()=>{}}setProperty(Ze,kt){this._renderer.setProperty(this._elementRef.nativeElement,Ze,kt)}registerOnTouched(Ze){this.onTouched=Ze}registerOnChange(Ze){this.onChange=Ze}setDisabledState(Ze){this.setProperty("disabled",Ze)}}return ct.\u0275fac=function(Ze){return new(Ze||ct)(t.Y36(t.Qsj),t.Y36(t.SBq))},ct.\u0275dir=t.lG2({type:ct}),ct})(),h=(()=>{class ct extends y{}return ct.\u0275fac=function(){let et;return function(kt){return(et||(et=t.n5z(ct)))(kt||ct)}}(),ct.\u0275dir=t.lG2({type:ct,features:[t.qOj]}),ct})();const P=new t.OlP("NgValueAccessor"),C={provide:P,useExisting:(0,t.Gpc)(()=>H),multi:!0},D=new t.OlP("CompositionEventMode");let H=(()=>{class ct extends y{constructor(Ze,kt,wi){super(Ze,kt),this._compositionMode=wi,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function L(){const ct=(0,e.q)()?(0,e.q)().getUserAgent():"";return/android (\d+)/.test(ct.toLowerCase())}())}writeValue(Ze){this.setProperty("value",Ze??"")}_handleInput(Ze){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Ze)}_compositionStart(){this._composing=!0}_compositionEnd(Ze){this._composing=!1,this._compositionMode&&this.onChange(Ze)}}return ct.\u0275fac=function(Ze){return new(Ze||ct)(t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(D,8))},ct.\u0275dir=t.lG2({type:ct,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(Ze,kt){1&Ze&&t.NdJ("input",function(on){return kt._handleInput(on.target.value)})("blur",function(){return kt.onTouched()})("compositionstart",function(){return kt._compositionStart()})("compositionend",function(on){return kt._compositionEnd(on.target.value)})},features:[t._Bn([C]),t.qOj]}),ct})();const V=!1;function Y(ct){return null==ct||("string"==typeof ct||Array.isArray(ct))&&0===ct.length}function j(ct){return null!=ct&&"number"==typeof ct.length}const Q=new t.OlP("NgValidators"),J=new t.OlP("NgAsyncValidators"),ee=/^(?=.{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 me{static min(et){return re(et)}static max(et){return ie(et)}static required(et){return se(et)}static requiredTrue(et){return ce(et)}static email(et){return function Ce(ct){return Y(ct.value)||ee.test(ct.value)?null:{email:!0}}(et)}static minLength(et){return function M(ct){return et=>Y(et.value)||!j(et.value)?null:et.value.lengthj(et.value)&&et.value.length>ct?{maxlength:{requiredLength:ct,actualLength:et.value.length}}:null}(et)}static pattern(et){return function a(ct){if(!ct)return f;let et,Ze;return"string"==typeof ct?(Ze="","^"!==ct.charAt(0)&&(Ze+="^"),Ze+=ct,"$"!==ct.charAt(ct.length-1)&&(Ze+="$"),et=new RegExp(Ze)):(Ze=ct.toString(),et=ct),kt=>{if(Y(kt.value))return null;const wi=kt.value;return et.test(wi)?null:{pattern:{requiredPattern:Ze,actualValue:wi}}}}(et)}static nullValidator(et){return null}static compose(et){return g(et)}static composeAsync(et){return O(et)}}function re(ct){return et=>{if(Y(et.value)||Y(ct))return null;const Ze=parseFloat(et.value);return!isNaN(Ze)&&Ze{if(Y(et.value)||Y(ct))return null;const Ze=parseFloat(et.value);return!isNaN(Ze)&&Ze>ct?{max:{max:ct,actual:et.value}}:null}}function se(ct){return Y(ct.value)?{required:!0}:null}function ce(ct){return!0===ct.value?null:{required:!0}}function f(ct){return null}function l(ct){return null!=ct}function v(ct){const et=(0,t.QGY)(ct)?(0,_.D)(ct):ct;if(V&&!(0,t.CqO)(et)){let Ze="Expected async validator to return Promise or Observable.";throw"object"==typeof ct&&(Ze+=" Are you using a synchronous validator where an async validator is expected?"),new t.vHH(-1101,Ze)}return et}function I(ct){let et={};return ct.forEach(Ze=>{et=null!=Ze?{...et,...Ze}:et}),0===Object.keys(et).length?null:et}function k(ct,et){return et.map(Ze=>Ze(ct))}function n(ct){return ct.map(et=>function x(ct){return!ct.validate}(et)?et:Ze=>et.validate(Ze))}function g(ct){if(!ct)return null;const et=ct.filter(l);return 0==et.length?null:function(Ze){return I(k(Ze,et))}}function W(ct){return null!=ct?g(n(ct)):null}function O(ct){if(!ct)return null;const et=ct.filter(l);return 0==et.length?null:function(Ze){const kt=k(Ze,et).map(v);return(0,T.D)(kt).pipe((0,s.U)(I))}}function G(ct){return null!=ct?O(n(ct)):null}function ge(ct,et){return null===ct?[et]:Array.isArray(ct)?[...ct,et]:[ct,et]}function nt(ct){return ct._rawValidators}function Ue(ct){return ct._rawAsyncValidators}function at(ct){return ct?Array.isArray(ct)?ct:[ct]:[]}function ye(ct,et){return Array.isArray(ct)?ct.includes(et):ct===et}function xe(ct,et){const Ze=at(et);return at(ct).forEach(wi=>{ye(Ze,wi)||Ze.push(wi)}),Ze}function fe(ct,et){return at(et).filter(Ze=>!ye(ct,Ze))}class Oe{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(et){this._rawValidators=et||[],this._composedValidatorFn=W(this._rawValidators)}_setAsyncValidators(et){this._rawAsyncValidators=et||[],this._composedAsyncValidatorFn=G(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(et){this._onDestroyCallbacks.push(et)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(et=>et()),this._onDestroyCallbacks=[]}reset(et){this.control&&this.control.reset(et)}hasError(et,Ze){return!!this.control&&this.control.hasError(et,Ze)}getError(et,Ze){return this.control?this.control.getError(et,Ze):null}}class oe extends Oe{get formDirective(){return null}get path(){return null}}class Fe extends Oe{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class De{constructor(et){this._cd=et}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let pe=(()=>{class ct extends De{constructor(Ze){super(Ze)}}return ct.\u0275fac=function(Ze){return new(Ze||ct)(t.Y36(Fe,2))},ct.\u0275dir=t.lG2({type:ct,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Ze,kt){2&Ze&&t.ekj("ng-untouched",kt.isUntouched)("ng-touched",kt.isTouched)("ng-pristine",kt.isPristine)("ng-dirty",kt.isDirty)("ng-valid",kt.isValid)("ng-invalid",kt.isInvalid)("ng-pending",kt.isPending)},features:[t.qOj]}),ct})(),Ve=(()=>{class ct extends De{constructor(Ze){super(Ze)}}return ct.\u0275fac=function(Ze){return new(Ze||ct)(t.Y36(oe,10))},ct.\u0275dir=t.lG2({type:ct,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Ze,kt){2&Ze&&t.ekj("ng-untouched",kt.isUntouched)("ng-touched",kt.isTouched)("ng-pristine",kt.isPristine)("ng-dirty",kt.isDirty)("ng-valid",kt.isValid)("ng-invalid",kt.isInvalid)("ng-pending",kt.isPending)("ng-submitted",kt.isSubmitted)},features:[t.qOj]}),ct})();function X(ct,et){return ct?`with name: '${et}'`:`at index: ${et}`}const je=!1,zt="VALID",xt="INVALID",Nt="PENDING",Gt="DISABLED";function ke(ct){return(Je(ct)?ct.validators:ct)||null}function ue(ct,et){return(Je(et)?et.asyncValidators:ct)||null}function Je(ct){return null!=ct&&!Array.isArray(ct)&&"object"==typeof ct}function $t(ct,et,Ze){const kt=ct.controls;if(!(et?Object.keys(kt):kt).length)throw new t.vHH(1e3,je?function mt(ct){return`\n There are no form controls registered with this ${ct?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(et):"");if(!kt[Ze])throw new t.vHH(1001,je?function Tt(ct,et){return`Cannot find form control ${X(ct,et)}`}(et,Ze):"")}function Vt(ct,et,Ze){ct._forEachChild((kt,wi)=>{if(void 0===Ze[wi])throw new t.vHH(1002,je?function it(ct,et){return`Must supply a value for form control ${X(ct,et)}`}(et,wi):"")})}class ii{constructor(et,Ze){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(et),this._assignAsyncValidators(Ze)}get validator(){return this._composedValidatorFn}set validator(et){this._rawValidators=this._composedValidatorFn=et}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(et){this._rawAsyncValidators=this._composedAsyncValidatorFn=et}get parent(){return this._parent}get valid(){return this.status===zt}get invalid(){return this.status===xt}get pending(){return this.status==Nt}get disabled(){return this.status===Gt}get enabled(){return this.status!==Gt}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(et){this._assignValidators(et)}setAsyncValidators(et){this._assignAsyncValidators(et)}addValidators(et){this.setValidators(xe(et,this._rawValidators))}addAsyncValidators(et){this.setAsyncValidators(xe(et,this._rawAsyncValidators))}removeValidators(et){this.setValidators(fe(et,this._rawValidators))}removeAsyncValidators(et){this.setAsyncValidators(fe(et,this._rawAsyncValidators))}hasValidator(et){return ye(this._rawValidators,et)}hasAsyncValidator(et){return ye(this._rawAsyncValidators,et)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(et={}){this.touched=!0,this._parent&&!et.onlySelf&&this._parent.markAsTouched(et)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(et=>et.markAllAsTouched())}markAsUntouched(et={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Ze=>{Ze.markAsUntouched({onlySelf:!0})}),this._parent&&!et.onlySelf&&this._parent._updateTouched(et)}markAsDirty(et={}){this.pristine=!1,this._parent&&!et.onlySelf&&this._parent.markAsDirty(et)}markAsPristine(et={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Ze=>{Ze.markAsPristine({onlySelf:!0})}),this._parent&&!et.onlySelf&&this._parent._updatePristine(et)}markAsPending(et={}){this.status=Nt,!1!==et.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!et.onlySelf&&this._parent.markAsPending(et)}disable(et={}){const Ze=this._parentMarkedDirty(et.onlySelf);this.status=Gt,this.errors=null,this._forEachChild(kt=>{kt.disable({...et,onlySelf:!0})}),this._updateValue(),!1!==et.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...et,skipPristineCheck:Ze}),this._onDisabledChange.forEach(kt=>kt(!0))}enable(et={}){const Ze=this._parentMarkedDirty(et.onlySelf);this.status=zt,this._forEachChild(kt=>{kt.enable({...et,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:et.emitEvent}),this._updateAncestors({...et,skipPristineCheck:Ze}),this._onDisabledChange.forEach(kt=>kt(!1))}_updateAncestors(et){this._parent&&!et.onlySelf&&(this._parent.updateValueAndValidity(et),et.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(et){this._parent=et}getRawValue(){return this.value}updateValueAndValidity(et={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===zt||this.status===Nt)&&this._runAsyncValidator(et.emitEvent)),!1!==et.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!et.onlySelf&&this._parent.updateValueAndValidity(et)}_updateTreeValidity(et={emitEvent:!0}){this._forEachChild(Ze=>Ze._updateTreeValidity(et)),this.updateValueAndValidity({onlySelf:!0,emitEvent:et.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Gt:zt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(et){if(this.asyncValidator){this.status=Nt,this._hasOwnPendingAsyncValidator=!0;const Ze=v(this.asyncValidator(this));this._asyncValidationSubscription=Ze.subscribe(kt=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(kt,{emitEvent:et})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(et,Ze={}){this.errors=et,this._updateControlsErrors(!1!==Ze.emitEvent)}get(et){let Ze=et;return null==Ze||(Array.isArray(Ze)||(Ze=Ze.split(".")),0===Ze.length)?null:Ze.reduce((kt,wi)=>kt&&kt._find(wi),this)}getError(et,Ze){const kt=Ze?this.get(Ze):this;return kt&&kt.errors?kt.errors[et]:null}hasError(et,Ze){return!!this.getError(et,Ze)}get root(){let et=this;for(;et._parent;)et=et._parent;return et}_updateControlsErrors(et){this.status=this._calculateStatus(),et&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(et)}_initObservables(){this.valueChanges=new t.vpe,this.statusChanges=new t.vpe}_calculateStatus(){return this._allControlsDisabled()?Gt:this.errors?xt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Nt)?Nt:this._anyControlsHaveStatus(xt)?xt:zt}_anyControlsHaveStatus(et){return this._anyControls(Ze=>Ze.status===et)}_anyControlsDirty(){return this._anyControls(et=>et.dirty)}_anyControlsTouched(){return this._anyControls(et=>et.touched)}_updatePristine(et={}){this.pristine=!this._anyControlsDirty(),this._parent&&!et.onlySelf&&this._parent._updatePristine(et)}_updateTouched(et={}){this.touched=this._anyControlsTouched(),this._parent&&!et.onlySelf&&this._parent._updateTouched(et)}_registerOnCollectionChange(et){this._onCollectionChange=et}_setUpdateStrategy(et){Je(et)&&null!=et.updateOn&&(this._updateOn=et.updateOn)}_parentMarkedDirty(et){return!et&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(et){return null}_assignValidators(et){this._rawValidators=Array.isArray(et)?et.slice():et,this._composedValidatorFn=function $(ct){return Array.isArray(ct)?W(ct):ct||null}(this._rawValidators)}_assignAsyncValidators(et){this._rawAsyncValidators=Array.isArray(et)?et.slice():et,this._composedAsyncValidatorFn=function Le(ct){return Array.isArray(ct)?G(ct):ct||null}(this._rawAsyncValidators)}}class pt extends ii{constructor(et,Ze,kt){super(ke(Ze),ue(kt,Ze)),this.controls=et,this._initObservables(),this._setUpdateStrategy(Ze),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(et,Ze){return this.controls[et]?this.controls[et]:(this.controls[et]=Ze,Ze.setParent(this),Ze._registerOnCollectionChange(this._onCollectionChange),Ze)}addControl(et,Ze,kt={}){this.registerControl(et,Ze),this.updateValueAndValidity({emitEvent:kt.emitEvent}),this._onCollectionChange()}removeControl(et,Ze={}){this.controls[et]&&this.controls[et]._registerOnCollectionChange(()=>{}),delete this.controls[et],this.updateValueAndValidity({emitEvent:Ze.emitEvent}),this._onCollectionChange()}setControl(et,Ze,kt={}){this.controls[et]&&this.controls[et]._registerOnCollectionChange(()=>{}),delete this.controls[et],Ze&&this.registerControl(et,Ze),this.updateValueAndValidity({emitEvent:kt.emitEvent}),this._onCollectionChange()}contains(et){return this.controls.hasOwnProperty(et)&&this.controls[et].enabled}setValue(et,Ze={}){Vt(this,!0,et),Object.keys(et).forEach(kt=>{$t(this,!0,kt),this.controls[kt].setValue(et[kt],{onlySelf:!0,emitEvent:Ze.emitEvent})}),this.updateValueAndValidity(Ze)}patchValue(et,Ze={}){null!=et&&(Object.keys(et).forEach(kt=>{const wi=this.controls[kt];wi&&wi.patchValue(et[kt],{onlySelf:!0,emitEvent:Ze.emitEvent})}),this.updateValueAndValidity(Ze))}reset(et={},Ze={}){this._forEachChild((kt,wi)=>{kt.reset(et[wi],{onlySelf:!0,emitEvent:Ze.emitEvent})}),this._updatePristine(Ze),this._updateTouched(Ze),this.updateValueAndValidity(Ze)}getRawValue(){return this._reduceChildren({},(et,Ze,kt)=>(et[kt]=Ze.getRawValue(),et))}_syncPendingControls(){let et=this._reduceChildren(!1,(Ze,kt)=>!!kt._syncPendingControls()||Ze);return et&&this.updateValueAndValidity({onlySelf:!0}),et}_forEachChild(et){Object.keys(this.controls).forEach(Ze=>{const kt=this.controls[Ze];kt&&et(kt,Ze)})}_setUpControls(){this._forEachChild(et=>{et.setParent(this),et._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(et){for(const[Ze,kt]of Object.entries(this.controls))if(this.contains(Ze)&&et(kt))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Ze,kt,wi)=>((kt.enabled||this.disabled)&&(Ze[wi]=kt.value),Ze))}_reduceChildren(et,Ze){let kt=et;return this._forEachChild((wi,on)=>{kt=Ze(kt,wi,on)}),kt}_allControlsDisabled(){for(const et of Object.keys(this.controls))if(this.controls[et].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(et){return this.controls.hasOwnProperty(et)?this.controls[et]:null}}class St extends pt{}const $e=new t.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>_t}),_t="always";function vt(ct,et){return[...et.path,ct]}function He(ct,et,Ze=_t){zi(ct,et),et.valueAccessor.writeValue(ct.value),(ct.disabled||"always"===Ze)&&et.valueAccessor.setDisabledState?.(ct.disabled),function Mi(ct,et){et.valueAccessor.registerOnChange(Ze=>{ct._pendingValue=Ze,ct._pendingChange=!0,ct._pendingDirty=!0,"change"===ct.updateOn&&Xe(ct,et)})}(ct,et),function It(ct,et){const Ze=(kt,wi)=>{et.valueAccessor.writeValue(kt),wi&&et.viewToModelUpdate(kt)};ct.registerOnChange(Ze),et._registerOnDestroy(()=>{ct._unregisterOnChange(Ze)})}(ct,et),function Gi(ct,et){et.valueAccessor.registerOnTouched(()=>{ct._pendingTouched=!0,"blur"===ct.updateOn&&ct._pendingChange&&Xe(ct,et),"submit"!==ct.updateOn&&ct.markAsTouched()})}(ct,et),function Qt(ct,et){if(et.valueAccessor.setDisabledState){const Ze=kt=>{et.valueAccessor.setDisabledState(kt)};ct.registerOnDisabledChange(Ze),et._registerOnDestroy(()=>{ct._unregisterOnDisabledChange(Ze)})}}(ct,et)}function Et(ct,et,Ze=!0){const kt=()=>{};et.valueAccessor&&(et.valueAccessor.registerOnChange(kt),et.valueAccessor.registerOnTouched(kt)),Ni(ct,et),ct&&(et._invokeOnDestroyCallbacks(),ct._registerOnCollectionChange(()=>{}))}function At(ct,et){ct.forEach(Ze=>{Ze.registerOnValidatorChange&&Ze.registerOnValidatorChange(et)})}function zi(ct,et){const Ze=nt(ct);null!==et.validator?ct.setValidators(ge(Ze,et.validator)):"function"==typeof Ze&&ct.setValidators([Ze]);const kt=Ue(ct);null!==et.asyncValidator?ct.setAsyncValidators(ge(kt,et.asyncValidator)):"function"==typeof kt&&ct.setAsyncValidators([kt]);const wi=()=>ct.updateValueAndValidity();At(et._rawValidators,wi),At(et._rawAsyncValidators,wi)}function Ni(ct,et){let Ze=!1;if(null!==ct){if(null!==et.validator){const wi=nt(ct);if(Array.isArray(wi)&&wi.length>0){const on=wi.filter(va=>va!==et.validator);on.length!==wi.length&&(Ze=!0,ct.setValidators(on))}}if(null!==et.asyncValidator){const wi=Ue(ct);if(Array.isArray(wi)&&wi.length>0){const on=wi.filter(va=>va!==et.asyncValidator);on.length!==wi.length&&(Ze=!0,ct.setAsyncValidators(on))}}}const kt=()=>{};return At(et._rawValidators,kt),At(et._rawAsyncValidators,kt),Ze}function Xe(ct,et){ct._pendingDirty&&ct.markAsDirty(),ct.setValue(ct._pendingValue,{emitModelToViewChange:!1}),et.viewToModelUpdate(ct._pendingValue),ct._pendingChange=!1}function Se(ct,et){zi(ct,et)}function en(ct,et){if(!ct.hasOwnProperty("model"))return!1;const Ze=ct.model;return!!Ze.isFirstChange()||!Object.is(et,Ze.currentValue)}function Yt(ct,et){ct._syncPendingControls(),et.forEach(Ze=>{const kt=Ze.control;"submit"===kt.updateOn&&kt._pendingChange&&(Ze.viewToModelUpdate(kt._pendingValue),kt._pendingChange=!1)})}function qt(ct,et){if(!et)return null;let Ze,kt,wi;return Array.isArray(et),et.forEach(on=>{on.constructor===H?Ze=on:function Yi(ct){return Object.getPrototypeOf(ct.constructor)===h}(on)?kt=on:wi=on}),wi||kt||Ze||null}const Dt={provide:oe,useExisting:(0,t.Gpc)(()=>Ot)},Bt=(()=>Promise.resolve())();let Ot=(()=>{class ct extends oe{constructor(Ze,kt,wi){super(),this.callSetDisabledState=wi,this.submitted=!1,this._directives=new Set,this.ngSubmit=new t.vpe,this.form=new pt({},W(Ze),G(kt))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Ze){Bt.then(()=>{const kt=this._findContainer(Ze.path);Ze.control=kt.registerControl(Ze.name,Ze.control),He(Ze.control,Ze,this.callSetDisabledState),Ze.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Ze)})}getControl(Ze){return this.form.get(Ze.path)}removeControl(Ze){Bt.then(()=>{const kt=this._findContainer(Ze.path);kt&&kt.removeControl(Ze.name),this._directives.delete(Ze)})}addFormGroup(Ze){Bt.then(()=>{const kt=this._findContainer(Ze.path),wi=new pt({});Se(wi,Ze),kt.registerControl(Ze.name,wi),wi.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Ze){Bt.then(()=>{const kt=this._findContainer(Ze.path);kt&&kt.removeControl(Ze.name)})}getFormGroup(Ze){return this.form.get(Ze.path)}updateModel(Ze,kt){Bt.then(()=>{this.form.get(Ze.path).setValue(kt)})}setValue(Ze){this.control.setValue(Ze)}onSubmit(Ze){return this.submitted=!0,Yt(this.form,this._directives),this.ngSubmit.emit(Ze),"dialog"===Ze?.target?.method}onReset(){this.resetForm()}resetForm(Ze){this.form.reset(Ze),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Ze){return Ze.pop(),Ze.length?this.form.get(Ze):this.form}}return ct.\u0275fac=function(Ze){return new(Ze||ct)(t.Y36(Q,10),t.Y36(J,10),t.Y36($e,8))},ct.\u0275dir=t.lG2({type:ct,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Ze,kt){1&Ze&&t.NdJ("submit",function(on){return kt.onSubmit(on)})("reset",function(){return kt.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([Dt]),t.qOj]}),ct})();function vi(ct,et){const Ze=ct.indexOf(et);Ze>-1&&ct.splice(Ze,1)}function li(ct){return"object"==typeof ct&&null!==ct&&2===Object.keys(ct).length&&"value"in ct&&"disabled"in ct}const mi=class extends ii{constructor(et=null,Ze,kt){super(ke(Ze),ue(kt,Ze)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(et),this._setUpdateStrategy(Ze),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Je(Ze)&&(Ze.nonNullable||Ze.initialValueIsDefault)&&(this.defaultValue=li(et)?et.value:et)}setValue(et,Ze={}){this.value=this._pendingValue=et,this._onChange.length&&!1!==Ze.emitModelToViewChange&&this._onChange.forEach(kt=>kt(this.value,!1!==Ze.emitViewToModelChange)),this.updateValueAndValidity(Ze)}patchValue(et,Ze={}){this.setValue(et,Ze)}reset(et=this.defaultValue,Ze={}){this._applyFormState(et),this.markAsPristine(Ze),this.markAsUntouched(Ze),this.setValue(this.value,Ze),this._pendingChange=!1}_updateValue(){}_anyControls(et){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(et){this._onChange.push(et)}_unregisterOnChange(et){vi(this._onChange,et)}registerOnDisabledChange(et){this._onDisabledChange.push(et)}_unregisterOnDisabledChange(et){vi(this._onDisabledChange,et)}_forEachChild(et){}_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(et){li(et)?(this.value=this._pendingValue=et.value,et.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=et}},gi=mi,pi={provide:Fe,useExisting:(0,t.Gpc)(()=>ri)},Kt=(()=>Promise.resolve())();let ri=(()=>{class ct extends Fe{constructor(Ze,kt,wi,on,va,Ei){super(),this._changeDetectorRef=va,this.callSetDisabledState=Ei,this.control=new mi,this._registered=!1,this.update=new t.vpe,this._parent=Ze,this._setValidators(kt),this._setAsyncValidators(wi),this.valueAccessor=qt(0,on)}ngOnChanges(Ze){if(this._checkForErrors(),!this._registered||"name"in Ze){if(this._registered&&(this._checkName(),this.formDirective)){const kt=Ze.name.previousValue;this.formDirective.removeControl({name:kt,path:this._getPath(kt)})}this._setUpControl()}"isDisabled"in Ze&&this._updateDisabled(Ze),en(Ze,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(Ze){this.viewModel=Ze,this.update.emit(Ze)}_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(){He(this.control,this,this.callSetDisabledState),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(Ze){Kt.then(()=>{this.control.setValue(Ze,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(Ze){const kt=Ze.isDisabled.currentValue,wi=0!==kt&&(0,t.D6c)(kt);Kt.then(()=>{wi&&!this.control.disabled?this.control.disable():!wi&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Ze){return this._parent?vt(Ze,this._parent):[Ze]}}return ct.\u0275fac=function(Ze){return new(Ze||ct)(t.Y36(oe,9),t.Y36(Q,10),t.Y36(J,10),t.Y36(P,10),t.Y36(t.sBO,8),t.Y36($e,8))},ct.\u0275dir=t.lG2({type:ct,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[t._Bn([pi]),t.qOj,t.TTD]}),ct})(),xi=(()=>{class ct{}return ct.\u0275fac=function(Ze){return new(Ze||ct)},ct.\u0275dir=t.lG2({type:ct,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),ct})();const Hi={provide:P,useExisting:(0,t.Gpc)(()=>ln),multi:!0};let ln=(()=>{class ct extends h{writeValue(Ze){this.setProperty("value",Ze??"")}registerOnChange(Ze){this.onChange=kt=>{Ze(""==kt?null:parseFloat(kt))}}}return ct.\u0275fac=function(){let et;return function(kt){return(et||(et=t.n5z(ct)))(kt||ct)}}(),ct.\u0275dir=t.lG2({type:ct,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Ze,kt){1&Ze&&t.NdJ("input",function(on){return kt.onChange(on.target.value)})("blur",function(){return kt.onTouched()})},features:[t._Bn([Hi]),t.qOj]}),ct})(),_a=(()=>{class ct{}return ct.\u0275fac=function(Ze){return new(Ze||ct)},ct.\u0275mod=t.oAB({type:ct}),ct.\u0275inj=t.cJS({}),ct})();const ia=new t.OlP("NgModelWithFormControlWarning"),Co={provide:Fe,useExisting:(0,t.Gpc)(()=>Pr)};let Pr=(()=>{class ct extends Fe{set isDisabled(Ze){}constructor(Ze,kt,wi,on,va){super(),this._ngModelWarningConfig=on,this.callSetDisabledState=va,this.update=new t.vpe,this._ngModelWarningSent=!1,this._setValidators(Ze),this._setAsyncValidators(kt),this.valueAccessor=qt(0,wi)}ngOnChanges(Ze){if(this._isControlChanged(Ze)){const kt=Ze.form.previousValue;kt&&Et(kt,this,!1),He(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}en(Ze,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Et(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Ze){this.viewModel=Ze,this.update.emit(Ze)}_isControlChanged(Ze){return Ze.hasOwnProperty("form")}}return ct._ngModelWarningSentOnce=!1,ct.\u0275fac=function(Ze){return new(Ze||ct)(t.Y36(Q,10),t.Y36(J,10),t.Y36(P,10),t.Y36(ia,8),t.Y36($e,8))},ct.\u0275dir=t.lG2({type:ct,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[t._Bn([Co]),t.qOj,t.TTD]}),ct})();const xr={provide:oe,useExisting:(0,t.Gpc)(()=>jn)};let jn=(()=>{class ct extends oe{constructor(Ze,kt,wi){super(),this.callSetDisabledState=wi,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.vpe,this._setValidators(Ze),this._setAsyncValidators(kt)}ngOnChanges(Ze){this._checkFormPresent(),Ze.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ni(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Ze){const kt=this.form.get(Ze.path);return He(kt,Ze,this.callSetDisabledState),kt.updateValueAndValidity({emitEvent:!1}),this.directives.push(Ze),kt}getControl(Ze){return this.form.get(Ze.path)}removeControl(Ze){Et(Ze.control||null,Ze,!1),function _e(ct,et){const Ze=ct.indexOf(et);Ze>-1&&ct.splice(Ze,1)}(this.directives,Ze)}addFormGroup(Ze){this._setUpFormContainer(Ze)}removeFormGroup(Ze){this._cleanUpFormContainer(Ze)}getFormGroup(Ze){return this.form.get(Ze.path)}addFormArray(Ze){this._setUpFormContainer(Ze)}removeFormArray(Ze){this._cleanUpFormContainer(Ze)}getFormArray(Ze){return this.form.get(Ze.path)}updateModel(Ze,kt){this.form.get(Ze.path).setValue(kt)}onSubmit(Ze){return this.submitted=!0,Yt(this.form,this.directives),this.ngSubmit.emit(Ze),"dialog"===Ze?.target?.method}onReset(){this.resetForm()}resetForm(Ze){this.form.reset(Ze),this.submitted=!1}_updateDomValue(){this.directives.forEach(Ze=>{const kt=Ze.control,wi=this.form.get(Ze.path);kt!==wi&&(Et(kt||null,Ze),(ct=>ct instanceof mi)(wi)&&(He(wi,Ze,this.callSetDisabledState),Ze.control=wi))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Ze){const kt=this.form.get(Ze.path);Se(kt,Ze),kt.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Ze){if(this.form){const kt=this.form.get(Ze.path);kt&&function wt(ct,et){return Ni(ct,et)}(kt,Ze)&&kt.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){zi(this.form,this),this._oldForm&&Ni(this._oldForm,this)}_checkFormPresent(){}}return ct.\u0275fac=function(Ze){return new(Ze||ct)(t.Y36(Q,10),t.Y36(J,10),t.Y36($e,8))},ct.\u0275dir=t.lG2({type:ct,selectors:[["","formGroup",""]],hostBindings:function(Ze,kt){1&Ze&&t.NdJ("submit",function(on){return kt.onSubmit(on)})("reset",function(){return kt.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([xr]),t.qOj,t.TTD]}),ct})();const Ia={provide:Fe,useExisting:(0,t.Gpc)(()=>wa)};let wa=(()=>{class ct extends Fe{set isDisabled(Ze){}constructor(Ze,kt,wi,on,va){super(),this._ngModelWarningConfig=va,this._added=!1,this.update=new t.vpe,this._ngModelWarningSent=!1,this._parent=Ze,this._setValidators(kt),this._setAsyncValidators(wi),this.valueAccessor=qt(0,on)}ngOnChanges(Ze){this._added||this._setUpControl(),en(Ze,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Ze){this.viewModel=Ze,this.update.emit(Ze)}get path(){return vt(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._added=!0}}return ct._ngModelWarningSentOnce=!1,ct.\u0275fac=function(Ze){return new(Ze||ct)(t.Y36(oe,13),t.Y36(Q,10),t.Y36(J,10),t.Y36(P,10),t.Y36(ia,8))},ct.\u0275dir=t.lG2({type:ct,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[t._Bn([Ia]),t.qOj,t.TTD]}),ct})();function Hr(ct){return"number"==typeof ct?ct:parseFloat(ct)}let sa=(()=>{class ct{constructor(){this._validator=f}ngOnChanges(Ze){if(this.inputName in Ze){const kt=this.normalizeInput(Ze[this.inputName].currentValue);this._enabled=this.enabled(kt),this._validator=this._enabled?this.createValidator(kt):f,this._onChange&&this._onChange()}}validate(Ze){return this._validator(Ze)}registerOnValidatorChange(Ze){this._onChange=Ze}enabled(Ze){return null!=Ze}}return ct.\u0275fac=function(Ze){return new(Ze||ct)},ct.\u0275dir=t.lG2({type:ct,features:[t.TTD]}),ct})();const za={provide:Q,useExisting:(0,t.Gpc)(()=>sr),multi:!0};let sr=(()=>{class ct extends sa{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=Ze=>Hr(Ze),this.createValidator=Ze=>ie(Ze)}}return ct.\u0275fac=function(){let et;return function(kt){return(et||(et=t.n5z(ct)))(kt||ct)}}(),ct.\u0275dir=t.lG2({type:ct,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Ze,kt){2&Ze&&t.uIk("max",kt._enabled?kt.max:null)},inputs:{max:"max"},features:[t._Bn([za]),t.qOj]}),ct})();const gr={provide:Q,useExisting:(0,t.Gpc)(()=>Cr),multi:!0};let Cr=(()=>{class ct extends sa{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=Ze=>Hr(Ze),this.createValidator=Ze=>re(Ze)}}return ct.\u0275fac=function(){let et;return function(kt){return(et||(et=t.n5z(ct)))(kt||ct)}}(),ct.\u0275dir=t.lG2({type:ct,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Ze,kt){2&Ze&&t.uIk("min",kt._enabled?kt.min:null)},inputs:{min:"min"},features:[t._Bn([gr]),t.qOj]}),ct})();const Oo={provide:Q,useExisting:(0,t.Gpc)(()=>Qr),multi:!0},oo={provide:Q,useExisting:(0,t.Gpc)(()=>qr),multi:!0};let Qr=(()=>{class ct extends sa{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=t.D6c,this.createValidator=Ze=>se}enabled(Ze){return Ze}}return ct.\u0275fac=function(){let et;return function(kt){return(et||(et=t.n5z(ct)))(kt||ct)}}(),ct.\u0275dir=t.lG2({type:ct,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Ze,kt){2&Ze&&t.uIk("required",kt._enabled?"":null)},inputs:{required:"required"},features:[t._Bn([Oo]),t.qOj]}),ct})(),qr=(()=>{class ct extends Qr{constructor(){super(...arguments),this.createValidator=Ze=>ce}}return ct.\u0275fac=function(){let et;return function(kt){return(et||(et=t.n5z(ct)))(kt||ct)}}(),ct.\u0275dir=t.lG2({type:ct,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Ze,kt){2&Ze&&t.uIk("required",kt._enabled?"":null)},features:[t._Bn([oo]),t.qOj]}),ct})(),Ft=(()=>{class ct{}return ct.\u0275fac=function(Ze){return new(Ze||ct)},ct.\u0275mod=t.oAB({type:ct}),ct.\u0275inj=t.cJS({imports:[_a]}),ct})();class hi extends ii{constructor(et,Ze,kt){super(ke(Ze),ue(kt,Ze)),this.controls=et,this._initObservables(),this._setUpdateStrategy(Ze),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(et){return this.controls[this._adjustIndex(et)]}push(et,Ze={}){this.controls.push(et),this._registerControl(et),this.updateValueAndValidity({emitEvent:Ze.emitEvent}),this._onCollectionChange()}insert(et,Ze,kt={}){this.controls.splice(et,0,Ze),this._registerControl(Ze),this.updateValueAndValidity({emitEvent:kt.emitEvent})}removeAt(et,Ze={}){let kt=this._adjustIndex(et);kt<0&&(kt=0),this.controls[kt]&&this.controls[kt]._registerOnCollectionChange(()=>{}),this.controls.splice(kt,1),this.updateValueAndValidity({emitEvent:Ze.emitEvent})}setControl(et,Ze,kt={}){let wi=this._adjustIndex(et);wi<0&&(wi=0),this.controls[wi]&&this.controls[wi]._registerOnCollectionChange(()=>{}),this.controls.splice(wi,1),Ze&&(this.controls.splice(wi,0,Ze),this._registerControl(Ze)),this.updateValueAndValidity({emitEvent:kt.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(et,Ze={}){Vt(this,!1,et),et.forEach((kt,wi)=>{$t(this,!1,wi),this.at(wi).setValue(kt,{onlySelf:!0,emitEvent:Ze.emitEvent})}),this.updateValueAndValidity(Ze)}patchValue(et,Ze={}){null!=et&&(et.forEach((kt,wi)=>{this.at(wi)&&this.at(wi).patchValue(kt,{onlySelf:!0,emitEvent:Ze.emitEvent})}),this.updateValueAndValidity(Ze))}reset(et=[],Ze={}){this._forEachChild((kt,wi)=>{kt.reset(et[wi],{onlySelf:!0,emitEvent:Ze.emitEvent})}),this._updatePristine(Ze),this._updateTouched(Ze),this.updateValueAndValidity(Ze)}getRawValue(){return this.controls.map(et=>et.getRawValue())}clear(et={}){this.controls.length<1||(this._forEachChild(Ze=>Ze._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:et.emitEvent}))}_adjustIndex(et){return et<0?et+this.length:et}_syncPendingControls(){let et=this.controls.reduce((Ze,kt)=>!!kt._syncPendingControls()||Ze,!1);return et&&this.updateValueAndValidity({onlySelf:!0}),et}_forEachChild(et){this.controls.forEach((Ze,kt)=>{et(Ze,kt)})}_updateValue(){this.value=this.controls.filter(et=>et.enabled||this.disabled).map(et=>et.value)}_anyControls(et){return this.controls.some(Ze=>Ze.enabled&&et(Ze))}_setUpControls(){this._forEachChild(et=>this._registerControl(et))}_allControlsDisabled(){for(const et of this.controls)if(et.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(et){et.setParent(this),et._registerOnCollectionChange(this._onCollectionChange)}_find(et){return this.at(et)??null}}function Ii(ct){return!!ct&&(void 0!==ct.asyncValidators||void 0!==ct.validators||void 0!==ct.updateOn)}let nn=(()=>{class ct{constructor(){this.useNonNullable=!1}get nonNullable(){const Ze=new ct;return Ze.useNonNullable=!0,Ze}group(Ze,kt=null){const wi=this._reduceControls(Ze);let on={};return Ii(kt)?on=kt:null!==kt&&(on.validators=kt.validator,on.asyncValidators=kt.asyncValidator),new pt(wi,on)}record(Ze,kt=null){const wi=this._reduceControls(Ze);return new St(wi,kt)}control(Ze,kt,wi){let on={};return this.useNonNullable?(Ii(kt)?on=kt:(on.validators=kt,on.asyncValidators=wi),new mi(Ze,{...on,nonNullable:!0})):new mi(Ze,kt,wi)}array(Ze,kt,wi){const on=Ze.map(va=>this._createControl(va));return new hi(on,kt,wi)}_reduceControls(Ze){const kt={};return Object.keys(Ze).forEach(wi=>{kt[wi]=this._createControl(Ze[wi])}),kt}_createControl(Ze){return Ze instanceof mi||Ze instanceof ii?Ze:Array.isArray(Ze)?this.control(Ze[0],Ze.length>1?Ze[1]:null,Ze.length>2?Ze[2]:null):this.control(Ze)}}return ct.\u0275fac=function(Ze){return new(Ze||ct)},ct.\u0275prov=t.Yz7({token:ct,factory:ct.\u0275fac,providedIn:"root"}),ct})(),ca=(()=>{class ct extends nn{group(Ze,kt=null){return super.group(Ze,kt)}control(Ze,kt,wi){return super.control(Ze,kt,wi)}array(Ze,kt,wi){return super.array(Ze,kt,wi)}}return ct.\u0275fac=function(){let et;return function(kt){return(et||(et=t.n5z(ct)))(kt||ct)}}(),ct.\u0275prov=t.Yz7({token:ct,factory:ct.\u0275fac,providedIn:"root"}),ct})(),_n=(()=>{class ct{static withConfig(Ze){return{ngModule:ct,providers:[{provide:$e,useValue:Ze.callSetDisabledState??_t}]}}}return ct.\u0275fac=function(Ze){return new(Ze||ct)},ct.\u0275mod=t.oAB({type:ct}),ct.\u0275inj=t.cJS({imports:[Ft]}),ct})(),Za=(()=>{class ct{static withConfig(Ze){return{ngModule:ct,providers:[{provide:ia,useValue:Ze.warnOnNgModelWithFormControl??"always"},{provide:$e,useValue:Ze.callSetDisabledState??_t}]}}}return ct.\u0275fac=function(Ze){return new(Ze||ct)},ct.\u0275mod=t.oAB({type:ct}),ct.\u0275inj=t.cJS({imports:[Ft]}),ct})()},7957:(We,q,m)=>{"use strict";m.d(q,{Bb:()=>Oe,XC:()=>W,ZL:()=>fe});var t=m(4650),e=m(3238),_=m(6895),T=m(531),s=m(8184),y=m(4761),h=m(1281),P=m(3353),d=m(7340),w=m(727),C=m(7579),L=m(9770),D=m(6451),H=m(9646),V=m(4968),Y=m(9521),j=m(4080),Q=m(4006),J=m(9549),ee=m(8675),me=m(3900),re=m(5698),ie=m(9300),se=m(4004),ce=m(8505),Ce=m(4086),M=m(445);const i=["panel"];function a(oe,Fe){if(1&oe&&(t.TgZ(0,"div",0,1),t.Hsn(2),t.qZA()),2&oe){const De=Fe.id,he=t.oxw();t.Q6J("id",he.id)("ngClass",he._classList)("@panelAnimation",he.isOpen?"visible":"hidden"),t.uIk("aria-label",he.ariaLabel||null)("aria-labelledby",he._getPanelAriaLabelledby(De))}}const f=["*"],l=(0,d.X$)("panelAnimation",[(0,d.SB)("void, hidden",(0,d.oB)({opacity:0,transform:"scaleY(0.8)"})),(0,d.eR)(":enter, hidden => visible",[(0,d.ru)([(0,d.jt)("0.03s linear",(0,d.oB)({opacity:1})),(0,d.jt)("0.12s cubic-bezier(0, 0, 0.2, 1)",(0,d.oB)({transform:"scaleY(1)"}))])]),(0,d.eR)(":leave, visible => hidden",[(0,d.jt)("0.075s linear",(0,d.oB)({opacity:0}))])]);let v=0;class I{constructor(Fe,De){this.source=Fe,this.option=De}}const k=(0,e.Kr)(class{}),x=new t.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function n(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1}}});let g=(()=>{class oe extends k{get isOpen(){return this._isOpen&&this.showPanel}_setColor(De){this._color=De,this._setThemeClasses(this._classList)}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(De){this._autoActiveFirstOption=(0,h.Ig)(De)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(De){this._autoSelectActiveOption=(0,h.Ig)(De)}set classList(De){this._classList=De&&De.length?(0,h.du)(De).reduce((he,Me)=>(he[Me]=!0,he),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(De,he,Me,pe){super(),this._changeDetectorRef=De,this._elementRef=he,this._defaults=Me,this._activeOptionChanges=w.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this._autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this._autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.optionSelected=new t.vpe,this.opened=new t.vpe,this.closed=new t.vpe,this.optionActivated=new t.vpe,this._classList={},this.id="mat-autocomplete-"+v++,this.inertGroups=pe?.SAFARI||!1}ngAfterContentInit(){this._keyManager=new y.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(De=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[De]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(De){this.panel&&(this.panel.nativeElement.scrollTop=De)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(De){const he=new I(this,De);this.optionSelected.emit(he)}_getPanelAriaLabelledby(De){return this.ariaLabel?null:this.ariaLabelledby?(De?De+" ":"")+this.ariaLabelledby:De}_setVisibilityClasses(De){De[this._visibleClass]=this.showPanel,De[this._hiddenClass]=!this.showPanel}_setThemeClasses(De){De["mat-primary"]="primary"===this._color,De["mat-warn"]="warn"===this._color,De["mat-accent"]="accent"===this._color}}return oe.\u0275fac=function(De){return new(De||oe)(t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(x),t.Y36(P.t4))},oe.\u0275dir=t.lG2({type:oe,viewQuery:function(De,he){if(1&De&&(t.Gf(t.Rgc,7),t.Gf(i,5)),2&De){let Me;t.iGM(Me=t.CRH())&&(he.template=Me.first),t.iGM(Me=t.CRH())&&(he.panel=Me.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[t.qOj]}),oe})(),W=(()=>{class oe extends g{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(De){this._hideSingleSelectionIndicator=(0,h.Ig)(De),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const De of this.options)De._changeDetectorRef.markForCheck()}}return oe.\u0275fac=function(){let Fe;return function(he){return(Fe||(Fe=t.n5z(oe)))(he||oe)}}(),oe.\u0275cmp=t.Xpm({type:oe,selectors:[["mat-autocomplete"]],contentQueries:function(De,he,Me){if(1&De&&(t.Suo(Me,e.K7,5),t.Suo(Me,e.ey,5)),2&De){let pe;t.iGM(pe=t.CRH())&&(he.optionGroups=pe),t.iGM(pe=t.CRH())&&(he.options=pe)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matAutocomplete"],features:[t._Bn([{provide:e.HF,useExisting:oe}]),t.qOj],ngContentSelectors:f,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(De,he){1&De&&(t.F$t(),t.YNc(0,a,3,5,"ng-template"))},dependencies:[_.mk],styles:[".mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mdc-menu-surface.mat-mdc-autocomplete-panel{width:100%;max-height:256px;position:static;visibility:hidden;transform-origin:center top;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-autocomplete-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) .mdc-menu-surface.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above .mdc-menu-surface.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[l]},changeDetection:0}),oe})();const ge={provide:Q.JU,useExisting:(0,t.Gpc)(()=>fe),multi:!0},Ue=new t.OlP("mat-autocomplete-scroll-strategy"),ye={provide:Ue,deps:[s.aV],useFactory:function at(oe){return()=>oe.scrollStrategies.reposition()}};let xe=(()=>{class oe{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(De){this._autocompleteDisabled=(0,h.Ig)(De)}constructor(De,he,Me,pe,Ve,Qe,Pe,de,rt,Ke,lt){this._element=De,this._overlay=he,this._viewContainerRef=Me,this._zone=pe,this._changeDetectorRef=Ve,this._dir=Pe,this._formField=de,this._document=rt,this._viewportRuler=Ke,this._defaults=lt,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=w.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new C.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)(()=>{const Ut=this.autocomplete?this.autocomplete.options:null;return Ut?Ut.changes.pipe((0,ee.O)(Ut),(0,me.w)(()=>(0,D.T)(...Ut.map(ht=>ht.onSelectionChange)))):this._zone.onStable.pipe((0,re.q)(1),(0,me.w)(()=>this.optionSelections))}),this._scrollStrategy=Qe}ngAfterViewInit(){const De=this._getWindow();typeof De<"u"&&this._zone.runOutsideAngular(()=>De.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(De){De.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const De=this._getWindow();typeof De<"u"&&De.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._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,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,D.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,ie.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,ie.h)(()=>this._overlayAttached)):(0,H.of)()).pipe((0,se.U)(De=>De instanceof e.rN?De:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,D.T)((0,V.R)(this._document,"click"),(0,V.R)(this._document,"auxclick"),(0,V.R)(this._document,"touchend")).pipe((0,ie.h)(De=>{const he=(0,P.sA)(De),Me=this._formField?this._formField._elementRef.nativeElement:null,pe=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&he!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!Me||!Me.contains(he))&&(!pe||!pe.contains(he))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(he)}))}writeValue(De){Promise.resolve(null).then(()=>this._assignOptionValue(De))}registerOnChange(De){this._onChange=De}registerOnTouched(De){this._onTouched=De}setDisabledState(De){this._element.nativeElement.disabled=De}_handleKeydown(De){const he=De.keyCode,Me=(0,Y.Vb)(De);if(he===Y.hY&&!Me&&De.preventDefault(),this.activeOption&&he===Y.K5&&this.panelOpen&&!Me)this.activeOption._selectViaInteraction(),this._resetActiveItem(),De.preventDefault();else if(this.autocomplete){const pe=this.autocomplete._keyManager.activeItem,Ve=he===Y.LH||he===Y.JH;he===Y.Mf||Ve&&!Me&&this.panelOpen?this.autocomplete._keyManager.onKeydown(De):Ve&&this._canOpen()&&this.openPanel(),(Ve||this.autocomplete._keyManager.activeItem!==pe)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(De){let he=De.target,Me=he.value;"number"===he.type&&(Me=""==Me?null:parseFloat(Me)),this._previousValue!==Me&&(this._previousValue=Me,this._pendingAutoselectedOption=null,this._onChange(Me),this._canOpen()&&this._document.activeElement===De.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(De=!1){this._formField&&"auto"===this._formField.floatLabel&&(De?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const De=this._zone.onStable.pipe((0,re.q)(1)),he=this.autocomplete.options.changes.pipe((0,ce.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,Ce.g)(0));return(0,D.T)(De,he).pipe((0,me.w)(()=>(this._zone.run(()=>{const Me=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),Me!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,re.q)(1)).subscribe(Me=>this._setValueAndClose(Me))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(De){const he=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(De):De;this._updateNativeInputValue(he??"")}_updateNativeInputValue(De){this._formField?this._formField._control.value=De:this._element.nativeElement.value=De,this._previousValue=De}_setValueAndClose(De){const he=De?De.source:this._pendingAutoselectedOption;he&&(this._clearPreviousSelectedOption(he),this._assignOptionValue(he.value),this._onChange(he.value),this.autocomplete._emitSelectEvent(he),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(De){this.autocomplete.options.forEach(he=>{he!==De&&he.selected&&he.deselect()})}_attachOverlay(){let De=this._overlayRef;De?(this._positionStrategy.setOrigin(this._getConnectedElement()),De.updateSize({width:this._getPanelWidth()})):(this._portal=new j.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),De=this._overlay.create(this._getOverlayConfig()),this._overlayRef=De,this._handleOverlayEvents(De),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&De&&De.updateSize({width:this._getPanelWidth()})})),De&&!De.hasAttached()&&(De.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const he=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this.panelOpen&&he!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new s.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const De=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(De),this._positionStrategy=De,De}_setStrategyPositions(De){const he=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Me=this._aboveClass,pe=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Me},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Me}];let Ve;Ve="above"===this.position?pe:"below"===this.position?he:[...he,...pe],De.withPositions(Ve)}_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 De=this.autocomplete;De.autoActiveFirstOption?De._keyManager.setFirstItemActive():De._keyManager.setActiveItem(-1)}_canOpen(){const De=this._element.nativeElement;return!De.readOnly&&!De.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(De){const he=this.autocomplete,Me=(0,e.CB)(De,he.options,he.optionGroups);if(0===De&&1===Me)he._setScrollTop(0);else if(he.panel){const pe=he.options.toArray()[De];if(pe){const Ve=pe._getHostElement(),Qe=(0,e.jH)(Ve.offsetTop,Ve.offsetHeight,he._getScrollTop(),he.panel.nativeElement.offsetHeight);he._setScrollTop(Qe)}}}_handleOverlayEvents(De){De.keydownEvents().subscribe(he=>{(he.keyCode===Y.hY&&!(0,Y.Vb)(he)||he.keyCode===Y.LH&&(0,Y.Vb)(he,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),he.stopPropagation(),he.preventDefault())}),De.outsidePointerEvents().subscribe()}}return oe.\u0275fac=function(De){return new(De||oe)(t.Y36(t.SBq),t.Y36(s.aV),t.Y36(t.s_b),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(Ue),t.Y36(M.Is,8),t.Y36(J.G_,9),t.Y36(_.K0,8),t.Y36(T.rL),t.Y36(x,8))},oe.\u0275dir=t.lG2({type:oe,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[t.TTD]}),oe})(),fe=(()=>{class oe extends xe{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}}return oe.\u0275fac=function(){let Fe;return function(he){return(Fe||(Fe=t.n5z(oe)))(he||oe)}}(),oe.\u0275dir=t.lG2({type:oe,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(De,he){1&De&&t.NdJ("focusin",function(){return he._handleFocus()})("blur",function(){return he._onTouched()})("input",function(pe){return he._handleInput(pe)})("keydown",function(pe){return he._handleKeydown(pe)})("click",function(){return he._handleClick()}),2&De&&t.uIk("autocomplete",he.autocompleteAttribute)("role",he.autocompleteDisabled?null:"combobox")("aria-autocomplete",he.autocompleteDisabled?null:"list")("aria-activedescendant",he.panelOpen&&he.activeOption?he.activeOption.id:null)("aria-expanded",he.autocompleteDisabled?null:he.panelOpen.toString())("aria-owns",he.autocompleteDisabled||!he.panelOpen||null==he.autocomplete?null:he.autocomplete.id)("aria-haspopup",he.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[t._Bn([ge]),t.qOj]}),oe})(),Oe=(()=>{class oe{}return oe.\u0275fac=function(De){return new(De||oe)},oe.\u0275mod=t.oAB({type:oe}),oe.\u0275inj=t.cJS({providers:[ye],imports:[s.U8,e.Ng,e.BQ,_.ez,T.ZD,e.Ng,e.BQ]}),oe})()},2673:(We,q,m)=>{"use strict";m.d(q,{g:()=>d,k:()=>P});var t=m(4650),e=m(3238),_=m(4761),T=m(1281);let s=0;const y=(0,e.Id)(class{}),h="mat-badge-content";let P=(()=>{class w extends y{get color(){return this._color}set color(L){this._setColor(L),this._color=L}get overlap(){return this._overlap}set overlap(L){this._overlap=(0,T.Ig)(L)}get content(){return this._content}set content(L){this._updateRenderedContent(L)}get description(){return this._description}set description(L){this._updateHostAriaDescription(L)}get hidden(){return this._hidden}set hidden(L){this._hidden=(0,T.Ig)(L)}constructor(L,D,H,V,Y){super(),this._ngZone=L,this._elementRef=D,this._ariaDescriber=H,this._renderer=V,this._animationMode=Y,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=s++,this._isInitialized=!1}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 L=this._renderer.createElement("span"),D="mat-badge-active";return L.setAttribute("id",`mat-badge-content-${this._id}`),L.setAttribute("aria-hidden","true"),L.classList.add(h),"NoopAnimations"===this._animationMode&&L.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(L),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{L.classList.add(D)})}):L.classList.add(D),L}_updateRenderedContent(L){const D=`${L??""}`.trim();this._isInitialized&&D&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=D),this._content=D}_updateHostAriaDescription(L){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),L&&this._ariaDescriber.describe(this._elementRef.nativeElement,L),this._description=L}_setColor(L){const D=this._elementRef.nativeElement.classList;D.remove(`mat-badge-${this._color}`),L&&D.add(`mat-badge-${L}`)}_clearExistingBadges(){const L=this._elementRef.nativeElement.querySelectorAll(`:scope > .${h}`);for(const D of Array.from(L))D!==this._badgeElement&&D.remove()}}return w.\u0275fac=function(L){return new(L||w)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(_.$s),t.Y36(t.Qsj),t.Y36(t.QbO,8))},w.\u0275dir=t.lG2({type:w,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(L,D){2&L&&t.ekj("mat-badge-overlap",D.overlap)("mat-badge-above",D.isAbove())("mat-badge-below",!D.isAbove())("mat-badge-before",!D.isAfter())("mat-badge-after",D.isAfter())("mat-badge-small","small"===D.size)("mat-badge-medium","medium"===D.size)("mat-badge-large","large"===D.size)("mat-badge-hidden",D.hidden||!D.content)("mat-badge-disabled",D.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:[t.qOj]}),w})(),d=(()=>{class w{}return w.\u0275fac=function(L){return new(L||w)},w.\u0275mod=t.oAB({type:w}),w.\u0275inj=t.cJS({imports:[_.rt,e.BQ,e.BQ]}),w})()},4859:(We,q,m)=>{"use strict";m.d(q,{RK:()=>k,lW:()=>se,nh:()=>l,ot:()=>n});var t=m(3353),e=m(4650),_=m(4761),T=m(3238);const s=["mat-button",""],y=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],h=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],C=["mat-mini-fab",""],D=["mat-icon-button",""],H=["*"],Q=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],J=(0,T.pj)((0,T.Id)((0,T.Kr)(class{constructor(g){this._elementRef=g}})));let ee=(()=>{class g extends J{constructor(O,G,ge,nt){super(O),this._platform=G,this._ngZone=ge,this._animationMode=nt,this._focusMonitor=(0,e.f3M)(_.tE),this._isFab=!1;const Ue=O.nativeElement.classList;for(const at of Q)this._hasHostAttributes(at.selector)&&at.mdcClasses.forEach(ye=>{Ue.add(ye)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(O="program",G){O?this._focusMonitor.focusVia(this._elementRef.nativeElement,O,G):this._elementRef.nativeElement.focus(G)}_hasHostAttributes(...O){return O.some(G=>this._elementRef.nativeElement.hasAttribute(G))}_isRippleDisabled(){return this.disableRipple||this.disabled}}return g.\u0275fac=function(O){e.$Z()},g.\u0275dir=e.lG2({type:g,viewQuery:function(O,G){if(1&O&&e.Gf(T.wG,5),2&O){let ge;e.iGM(ge=e.CRH())&&(G.ripple=ge.first)}},features:[e.qOj]}),g})(),se=(()=>{class g extends ee{constructor(O,G,ge,nt){super(O,G,ge,nt)}}return g.\u0275fac=function(O){return new(O||g)(e.Y36(e.SBq),e.Y36(t.t4),e.Y36(e.R0b),e.Y36(e.QbO,8))},g.\u0275cmp=e.Xpm({type:g,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(O,G){2&O&&(e.uIk("disabled",G.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===G._animationMode)("mat-unthemed",!G.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:s,ngContentSelectors:h,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(O,G){1&O&&(e.F$t(y),e._UZ(0,"span",0),e.Hsn(1),e.TgZ(2,"span",1),e.Hsn(3,1),e.qZA(),e.Hsn(4,2),e._UZ(5,"span",2)(6,"span",3)(7,"span",4)),2&O&&(e.ekj("mdc-button__ripple",!G._isFab)("mdc-fab__ripple",G._isFab),e.xp6(6),e.Q6J("matRippleDisabled",G._isRippleDisabled())("matRippleTrigger",G._elementRef.nativeElement))},dependencies:[T.wG],styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),g})();const Ce=new e.OlP("mat-mdc-fab-default-options",{providedIn:"root",factory:M});function M(){return{color:"accent"}}const i=M();let l=(()=>{class g extends ee{constructor(O,G,ge,nt,Ue){super(O,G,ge,nt),this._options=Ue,this._isFab=!0,this._options=this._options||i,this.color=this.defaultColor=this._options.color||i.color}}return g.\u0275fac=function(O){return new(O||g)(e.Y36(e.SBq),e.Y36(t.t4),e.Y36(e.R0b),e.Y36(e.QbO,8),e.Y36(Ce,8))},g.\u0275cmp=e.Xpm({type:g,selectors:[["button","mat-mini-fab",""]],hostVars:7,hostBindings:function(O,G){2&O&&(e.uIk("disabled",G.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===G._animationMode)("mat-unthemed",!G.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:C,ngContentSelectors:h,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(O,G){1&O&&(e.F$t(y),e._UZ(0,"span",0),e.Hsn(1),e.TgZ(2,"span",1),e.Hsn(3,1),e.qZA(),e.Hsn(4,2),e._UZ(5,"span",2)(6,"span",3)(7,"span",4)),2&O&&(e.ekj("mdc-button__ripple",!G._isFab)("mdc-fab__ripple",G._isFab),e.xp6(6),e.Q6J("matRippleDisabled",G._isRippleDisabled())("matRippleTrigger",G._elementRef.nativeElement))},dependencies:[T.wG],styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n )}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab .mdc-fab__icon{width:24px;height:24px;font-size:24px}.mdc-fab:not(.mdc-fab--extended){border-radius:50%}.mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:50%}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);background-color:var(--mdc-fab-container-color, transparent);box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);color:var(--mat-mdc-fab-color, inherit);flex-shrink:0}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-fab .mat-ripple-element,.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-fab .mat-mdc-button-touch-target,.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:not(:disabled) .mdc-fab__icon,.mat-mdc-mini-fab:not(:disabled) .mdc-fab__icon{color:var(--mdc-fab-icon-color, inherit)}.mat-mdc-fab:not(.mdc-fab--extended),.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape, 50%)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple,.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape, 50%)}.mat-mdc-fab:hover,.mat-mdc-fab:focus,.mat-mdc-mini-fab:hover,.mat-mdc-mini-fab:focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active,.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mat-mdc-fab[disabled],.mat-mdc-mini-fab[disabled]{cursor:default;pointer-events:none;box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-extended-fab{border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mat-mdc-extended-fab .mdc-fab__ripple{border-radius:24px}.mat-mdc-extended-fab .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab .mdc-fab__icon,.mat-mdc-extended-fab .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-fab__label+.mdc-fab__icon,.mat-mdc-extended-fab .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}'],encapsulation:2,changeDetection:0}),g})(),k=(()=>{class g extends ee{constructor(O,G,ge,nt){super(O,G,ge,nt)}}return g.\u0275fac=function(O){return new(O||g)(e.Y36(e.SBq),e.Y36(t.t4),e.Y36(e.R0b),e.Y36(e.QbO,8))},g.\u0275cmp=e.Xpm({type:g,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(O,G){2&O&&(e.uIk("disabled",G.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===G._animationMode)("mat-unthemed",!G.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:D,ngContentSelectors:H,decls:5,vars:3,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(O,G){1&O&&(e.F$t(),e._UZ(0,"span",0),e.Hsn(1),e._UZ(2,"span",1)(3,"span",2)(4,"span",3)),2&O&&(e.xp6(3),e.Q6J("matRippleDisabled",G._isRippleDisabled())("matRippleCentered",!0)("matRippleTrigger",G._elementRef.nativeElement))},dependencies:[T.wG],styles:['.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{max-height:48px;max-width:48px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size, 48px);width:var(--mdc-icon-button-state-layer-size, 48px);color:var(--mdc-icon-button-icon-color, inherit);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity, 0.38)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color, #000)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),g})(),n=(()=>{class g{}return g.\u0275fac=function(O){return new(O||g)},g.\u0275mod=e.oAB({type:g}),g.\u0275inj=e.cJS({imports:[T.BQ,T.si,T.BQ]}),g})()},3546:(We,q,m)=>{"use strict";m.d(q,{$j:()=>H,QW:()=>ce,a8:()=>w,dk:()=>Y,dn:()=>D,n5:()=>C});var t=m(4650),e=m(6895),_=m(3238);const T=["*"],h=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],P=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],d=new t.OlP("MAT_CARD_CONFIG");let w=(()=>{class Ce{constructor(i){this.appearance=i?.appearance||"raised"}}return Ce.\u0275fac=function(i){return new(i||Ce)(t.Y36(d,8))},Ce.\u0275cmp=t.Xpm({type:Ce,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(i,a){2&i&&t.ekj("mat-mdc-card-outlined","outlined"===a.appearance)("mdc-card--outlined","outlined"===a.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:T,decls:1,vars:0,template:function(i,a){1&i&&(t.F$t(),t.Hsn(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mat-mdc-card{position:relative;border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px));background-color:var(--mdc-elevated-card-container-color, transparent);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color, transparent)}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px))}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width, 1px);border-style:solid;border-color:var(--mdc-outlined-card-outline-color, transparent)}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0}),Ce})(),C=(()=>{class Ce{}return Ce.\u0275fac=function(i){return new(i||Ce)},Ce.\u0275dir=t.lG2({type:Ce,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]}),Ce})(),D=(()=>{class Ce{}return Ce.\u0275fac=function(i){return new(i||Ce)},Ce.\u0275dir=t.lG2({type:Ce,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]}),Ce})(),H=(()=>{class Ce{}return Ce.\u0275fac=function(i){return new(i||Ce)},Ce.\u0275dir=t.lG2({type:Ce,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]}),Ce})(),Y=(()=>{class Ce{}return Ce.\u0275fac=function(i){return new(i||Ce)},Ce.\u0275cmp=t.Xpm({type:Ce,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:P,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(i,a){1&i&&(t.F$t(h),t.Hsn(0),t.TgZ(1,"div",0),t.Hsn(2,1),t.qZA(),t.Hsn(3,2))},encapsulation:2,changeDetection:0}),Ce})(),ce=(()=>{class Ce{}return Ce.\u0275fac=function(i){return new(i||Ce)},Ce.\u0275mod=t.oAB({type:Ce}),Ce.\u0275inj=t.cJS({imports:[_.BQ,e.ez,_.BQ]}),Ce})()},6709:(We,q,m)=>{"use strict";m.d(q,{oG:()=>Y,p9:()=>ee});var t=m(4650),e=m(4006),_=m(3238),T=m(1281);const s=["input"],y=["label"],h=["*"],P=new t.OlP("mat-checkbox-default-options",{providedIn:"root",factory:d});function d(){return{color:"accent",clickAction:"check-indeterminate"}}const w={provide:e.JU,useExisting:(0,t.Gpc)(()=>Y),multi:!0};class C{}let L=0;const D=d(),H=(0,_.sb)((0,_.pj)((0,_.Kr)((0,_.Id)(class{constructor(me){this._elementRef=me}}))));let V=(()=>{class me extends H{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(ie){this._required=(0,T.Ig)(ie)}constructor(ie,se,ce,Ce,M,i,a){super(se),this._changeDetectorRef=ce,this._ngZone=Ce,this._animationMode=i,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,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||D,this.color=this.defaultColor=this._options.color||D.color,this.tabIndex=parseInt(M)||0,this.id=this._uniqueId=`${ie}${++L}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(ie){const se=(0,T.Ig)(ie);se!=this.checked&&(this._checked=se,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(ie){const se=(0,T.Ig)(ie);se!==this.disabled&&(this._disabled=se,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(ie){const se=ie!=this._indeterminate;this._indeterminate=(0,T.Ig)(ie),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(ie){this.checked=!!ie}registerOnChange(ie){this._controlValueAccessorChangeFn=ie}registerOnTouched(ie){this._onTouched=ie}setDisabledState(ie){this.disabled=ie}_transitionCheckState(ie){let se=this._currentCheckState,ce=this._getAnimationTargetElement();if(se!==ie&&ce&&(this._currentAnimationClass&&ce.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(se,ie),this._currentCheckState=ie,this._currentAnimationClass.length>0)){ce.classList.add(this._currentAnimationClass);const Ce=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{ce.classList.remove(Ce)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const ie=this._options?.clickAction;this.disabled||"noop"===ie?!this.disabled&&"noop"===ie&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==ie&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(ie){ie.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(ie,se){if("NoopAnimations"===this._animationMode)return"";switch(ie){case 0:if(1===se)return this._animationClasses.uncheckedToChecked;if(3==se)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===se?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===se?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===se?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(ie){const se=this._inputElement;se&&(se.nativeElement.indeterminate=ie)}}return me.\u0275fac=function(ie){t.$Z()},me.\u0275dir=t.lG2({type:me,viewQuery:function(ie,se){if(1&ie&&(t.Gf(s,5),t.Gf(y,5),t.Gf(_.wG,5)),2&ie){let ce;t.iGM(ce=t.CRH())&&(se._inputElement=ce.first),t.iGM(ce=t.CRH())&&(se._labelElement=ce.first),t.iGM(ce=t.CRH())&&(se.ripple=ce.first)}},inputs:{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"},features:[t.qOj]}),me})(),Y=(()=>{class me extends V{constructor(ie,se,ce,Ce,M,i){super("mat-mdc-checkbox-",ie,se,ce,Ce,M,i),this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"}}focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(ie){const se=new C;return se.source=this,se.checked=ie,se}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_onInputClick(){super._handleInputClick()}_onTouchTargetClick(){super._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(ie){ie.target&&this._labelElement.nativeElement.contains(ie.target)&&ie.stopPropagation()}}return me.\u0275fac=function(ie){return new(ie||me)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(t.R0b),t.$8M("tabindex"),t.Y36(t.QbO,8),t.Y36(P,8))},me.\u0275cmp=t.Xpm({type:me,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(ie,se){2&ie&&(t.Ikx("id",se.id),t.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),t.ekj("_mat-animation-noopable","NoopAnimations"===se._animationMode)("mdc-checkbox--disabled",se.disabled)("mat-mdc-checkbox-disabled",se.disabled)("mat-mdc-checkbox-checked",se.checked))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[t._Bn([w]),t.qOj],ngContentSelectors:h,decls:15,vars:19,consts:[[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","indeterminate","disabled","id","required","tabIndex","blur","click","change"],["input",""],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[3,"for"],["label",""]],template:function(ie,se){if(1&ie&&(t.F$t(),t.TgZ(0,"div",0),t.NdJ("click",function(Ce){return se._preventBubblingFromLabel(Ce)}),t.TgZ(1,"div",1,2)(3,"div",3),t.NdJ("click",function(){return se._onTouchTargetClick()}),t.qZA(),t.TgZ(4,"input",4,5),t.NdJ("blur",function(){return se._onBlur()})("click",function(){return se._onInputClick()})("change",function(Ce){return se._onInteractionEvent(Ce)}),t.qZA(),t._UZ(6,"div",6),t.TgZ(7,"div",7),t.O4$(),t.TgZ(8,"svg",8),t._UZ(9,"path",9),t.qZA(),t.kcU(),t._UZ(10,"div",10),t.qZA(),t._UZ(11,"div",11),t.qZA(),t.TgZ(12,"label",12,13),t.Hsn(14),t.qZA()()),2&ie){const ce=t.MAs(2);t.ekj("mdc-form-field--align-end","before"==se.labelPosition),t.xp6(4),t.ekj("mdc-checkbox--selected",se.checked),t.Q6J("checked",se.checked)("indeterminate",se.indeterminate)("disabled",se.disabled)("id",se.inputId)("required",se.required)("tabIndex",se.tabIndex),t.uIk("aria-label",se.ariaLabel||null)("aria-labelledby",se.ariaLabelledby)("aria-describedby",se.ariaDescribedby)("name",se.name)("value",se.value),t.xp6(7),t.Q6J("matRippleTrigger",ce)("matRippleDisabled",se.disableRipple||se.disabled)("matRippleCentered",!0),t.xp6(1),t.Q6J("for",se.inputId)}},dependencies:[_.wG],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size, 48px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);width:var(--mdc-checkbox-state-layer-size, 48px);height:var(--mdc-checkbox-state-layer-size, 48px)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, rgba(0, 0, 0, 0.38));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color, rgba(0, 0, 0, 0.38))}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px)}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:not([disabled])~.mdc-checkbox__ripple{opacity:.04;transform:scale(1);transition:opacity 80ms 0 cubic-bezier(0, 0, 0.2, 1),transform 80ms 0 cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:not([disabled]):focus~.mdc-checkbox__ripple{opacity:.16}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__native-control:focus:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, black)}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),me})(),J=(()=>{class me{}return me.\u0275fac=function(ie){return new(ie||me)},me.\u0275mod=t.oAB({type:me}),me.\u0275inj=t.cJS({}),me})(),ee=(()=>{class me{}return me.\u0275fac=function(ie){return new(ie||me)},me.\u0275mod=t.oAB({type:me}),me.\u0275inj=t.cJS({imports:[_.BQ,_.si,J,_.BQ,J]}),me})()},7331:(We,q,m)=>{"use strict";m.d(q,{HS:()=>fe,Hi:()=>yt});var t=m(1281),e=m(4650),_=m(6895),T=m(3238),s=m(4761),y=m(7579),h=m(6451),P=m(5698),L=(m(2722),m(8675),m(3900),m(9521));function Y(be,qe){1&be&&(e.TgZ(0,"span",8),e.Hsn(1,1),e.qZA())}function j(be,qe){1&be&&(e.TgZ(0,"span",9),e.Hsn(1,2),e.qZA())}m(445),m(4006),m(9549);const Q=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],J=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],k=new e.OlP("mat-chips-default-options"),x=new e.OlP("MatChipAvatar"),n=new e.OlP("MatChipTrailingIcon"),g=new e.OlP("MatChipRemove"),W=new e.OlP("MatChip");class O{}const G=(0,T.sb)(O,-1);let ge=(()=>{class be extends G{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(Ie){this._disabled=(0,t.Ig)(Ie)}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(Ie,X){super(),this._elementRef=Ie,this._parentChip=X,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this._allowFocusWhenDisabled=!1,"BUTTON"===Ie.nativeElement.nodeName&&Ie.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(Ie){!this.disabled&&this.isInteractive&&this._isPrimary&&(Ie.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(Ie){(Ie.keyCode===L.K5||Ie.keyCode===L.L_)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(Ie.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}}return be.\u0275fac=function(Ie){return new(Ie||be)(e.Y36(e.SBq),e.Y36(W))},be.\u0275dir=e.lG2({type:be,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(Ie,X){1&Ie&&e.NdJ("click",function(Tt){return X._handleClick(Tt)})("keydown",function(Tt){return X._handleKeydown(Tt)}),2&Ie&&(e.uIk("tabindex",X._getTabindex())("disabled",X._getDisabledAttribute())("aria-disabled",X.disabled),e.ekj("mdc-evolution-chip__action--primary",X._isPrimary)("mdc-evolution-chip__action--presentational",!X.isInteractive)("mdc-evolution-chip__action--trailing",!X._isPrimary))},inputs:{disabled:"disabled",tabIndex:"tabIndex",isInteractive:"isInteractive",_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[e.qOj]}),be})(),ye=0;const xe=(0,T.sb)((0,T.pj)((0,T.Kr)((0,T.Id)(class{constructor(be){this._elementRef=be}})),"primary"),-1);let fe=(()=>{class be extends xe{_hasFocus(){return this._hasFocusInternal}get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(Ie){this._value=Ie}get removable(){return this._removable}set removable(Ie){this._removable=(0,t.Ig)(Ie)}get highlighted(){return this._highlighted}set highlighted(Ie){this._highlighted=(0,t.Ig)(Ie)}constructor(Ie,X,mt,Tt,it,je,zt,xt){super(X),this._changeDetectorRef=Ie,this._ngZone=mt,this._focusMonitor=Tt,this._globalRippleOptions=zt,this._isRippleCentered=!1,this._onFocus=new y.x,this._onBlur=new y.x,this.role=null,this._hasFocusInternal=!1,this.id="mat-mdc-chip-"+ye++,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this._removable=!0,this._highlighted=!1,this.removed=new e.vpe,this.destroyed=new e.vpe,this.basicChipAttrName="mat-basic-chip",this._document=it,this._animationsDisabled="NoopAnimations"===je,null!=xt&&(this.tabIndex=parseInt(xt)??this.defaultTabIndex),this._monitorFocus()}ngOnInit(){const Ie=this._elementRef.nativeElement;this._isBasicChip=Ie.hasAttribute(this.basicChipAttrName)||Ie.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=(0,h.T)(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(Ie){(Ie.keyCode===L.ZH||Ie.keyCode===L.yY)&&(Ie.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(Ie){return this._getActions().find(X=>{const mt=X._elementRef.nativeElement;return mt===Ie||mt.contains(Ie)})}_getActions(){const Ie=[];return this.primaryAction&&Ie.push(this.primaryAction),this.removeIcon&&Ie.push(this.removeIcon),this.trailingIcon&&Ie.push(this.trailingIcon),Ie}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(Ie=>{const X=null!==Ie;X!==this._hasFocusInternal&&(this._hasFocusInternal=X,X?this._onFocus.next({chip:this}):this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(()=>this._ngZone.run(()=>this._onBlur.next({chip:this}))))})}}return be.\u0275fac=function(Ie){return new(Ie||be)(e.Y36(e.sBO),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(s.tE),e.Y36(_.K0),e.Y36(e.QbO,8),e.Y36(T.Y2,8),e.$8M("tabindex"))},be.\u0275cmp=e.Xpm({type:be,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(Ie,X,mt){if(1&Ie&&(e.Suo(mt,x,5),e.Suo(mt,n,5),e.Suo(mt,g,5),e.Suo(mt,x,5),e.Suo(mt,n,5),e.Suo(mt,g,5)),2&Ie){let Tt;e.iGM(Tt=e.CRH())&&(X.leadingIcon=Tt.first),e.iGM(Tt=e.CRH())&&(X.trailingIcon=Tt.first),e.iGM(Tt=e.CRH())&&(X.removeIcon=Tt.first),e.iGM(Tt=e.CRH())&&(X._allLeadingIcons=Tt),e.iGM(Tt=e.CRH())&&(X._allTrailingIcons=Tt),e.iGM(Tt=e.CRH())&&(X._allRemoveIcons=Tt)}},viewQuery:function(Ie,X){if(1&Ie&&(e.Gf(T.wG,5),e.Gf(ge,5)),2&Ie){let mt;e.iGM(mt=e.CRH())&&(X.ripple=mt.first),e.iGM(mt=e.CRH())&&(X.primaryAction=mt.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:30,hostBindings:function(Ie,X){1&Ie&&e.NdJ("keydown",function(Tt){return X._handleKeydown(Tt)}),2&Ie&&(e.Ikx("id",X.id),e.uIk("role",X.role)("tabindex",X.role?X.tabIndex:null)("aria-label",X.ariaLabel),e.ekj("mdc-evolution-chip",!X._isBasicChip)("mdc-evolution-chip--disabled",X.disabled)("mdc-evolution-chip--with-trailing-action",X._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",X.leadingIcon)("mdc-evolution-chip--with-primary-icon",X.leadingIcon)("mdc-evolution-chip--with-avatar",X.leadingIcon)("mat-mdc-chip-with-avatar",X.leadingIcon)("mat-mdc-chip-highlighted",X.highlighted)("mat-mdc-chip-disabled",X.disabled)("mat-mdc-basic-chip",X._isBasicChip)("mat-mdc-standard-chip",!X._isBasicChip)("mat-mdc-chip-with-trailing-icon",X._hasTrailingIcon())("_mat-animation-noopable",X._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",id:"id",ariaLabel:["aria-label","ariaLabel"],ariaDescription:["aria-description","ariaDescription"],value:"value",removable:"removable",highlighted:"highlighted"},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[e._Bn([{provide:W,useExisting:be}]),e.qOj],ngContentSelectors:J,decls:9,vars:6,consts:[["matRipple","",1,"mat-mdc-chip-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing",4,"ngIf"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(Ie,X){1&Ie&&(e.F$t(Q),e._UZ(0,"span",0)(1,"span",1),e.TgZ(2,"span",2)(3,"span",3),e.YNc(4,Y,2,0,"span",4),e.TgZ(5,"span",5),e.Hsn(6),e._UZ(7,"span",6),e.qZA()()(),e.YNc(8,j,2,0,"span",7)),2&Ie&&(e.Q6J("matRippleDisabled",X._isRippleDisabled())("matRippleCentered",X._isRippleCentered)("matRippleTrigger",X._elementRef.nativeElement),e.xp6(3),e.Q6J("isInteractive",!1),e.xp6(1),e.Q6J("ngIf",X.leadingIcon),e.xp6(4),e.Q6J("ngIf",X._hasTrailingIcon()))},dependencies:[_.O5,T.wG,ge],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__graphic{height:24px;width:24px;font-size:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__icon--primary{height:24px;width:24px;font-size:24px}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px);height:var(--mdc-chip-container-height, 32px)}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius, 14px 14px 14px 14px)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size, 28px);width:var(--mdc-chip-with-avatar-avatar-size, 28px);font-size:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-outline-width, 1px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-outline-width, 1px)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--selected) .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-unselected-outline-width, 1px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color, transparent)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size, 18px);width:var(--mdc-chip-with-icon-icon-size, 18px);font-size:var(--mdc-chip-with-icon-icon-size, 18px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, currentColor)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{width:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),be})(),yt=(()=>{class be{}return be.\u0275fac=function(Ie){return new(Ie||be)},be.\u0275mod=e.oAB({type:be}),be.\u0275inj=e.cJS({providers:[T.rD,{provide:k,useValue:{separatorKeyCodes:[L.K5]}}],imports:[T.BQ,_.ez,T.si,T.BQ]}),be})()},3238:(We,q,m)=>{"use strict";m.d(q,{yN:()=>ee,mZ:()=>me,_A:()=>n,rD:()=>ye,sG:()=>g,Ad:()=>k,K7:()=>X,HF:()=>yt,Y2:()=>Ke,BQ:()=>se,uc:()=>oe,XK:()=>Ue,ey:()=>zt,Ng:()=>Gt,rN:()=>it,us:()=>Ge,wG:()=>lt,si:()=>Ut,LF:()=>G,IR:()=>de,CB:()=>xt,jH:()=>Nt,pj:()=>a,Kr:()=>f,Id:()=>i,FD:()=>v,dB:()=>I,sb:()=>l});var t=m(4650),e=m(4761),_=m(445),s=m(6895),y=m(3353),h=m(1281),P=m(9751),d=m(7579),w=m(9521);const D=["text"];function H(ke,$){if(1&ke&&t._UZ(0,"mat-pseudo-checkbox",6),2&ke){const ue=t.oxw();t.Q6J("state",ue.selected?"checked":"unchecked")("disabled",ue.disabled)}}function V(ke,$){if(1&ke&&t._UZ(0,"mat-pseudo-checkbox",7),2&ke){const ue=t.oxw();t.Q6J("disabled",ue.disabled)}}function Y(ke,$){if(1&ke&&(t.TgZ(0,"span",8),t._uU(1),t.qZA()),2&ke){const ue=t.oxw();t.xp6(1),t.hij("(",ue.group.label,")")}}const j=[[["mat-icon"]],"*"],Q=["mat-icon","*"];let ee=(()=>{class ke{}return ke.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",ke.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",ke.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",ke.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",ke})(),me=(()=>{class ke{}return ke.COMPLEX="375ms",ke.ENTERING="225ms",ke.EXITING="195ms",ke})();const ie=new t.OlP("mat-sanity-checks",{providedIn:"root",factory:function re(){return!0}});let se=(()=>{class ke{constructor(ue,Le,Je){this._sanityChecks=Le,this._document=Je,this._hasDoneGlobalChecks=!1,ue._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(ue){return!(0,y.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[ue])}}return ke.\u0275fac=function(ue){return new(ue||ke)(t.LFG(e.qm),t.LFG(ie,8),t.LFG(s.K0))},ke.\u0275mod=t.oAB({type:ke}),ke.\u0275inj=t.cJS({imports:[_.vT,_.vT]}),ke})();function i(ke){return class extends ke{get disabled(){return this._disabled}set disabled($){this._disabled=(0,h.Ig)($)}constructor(...$){super(...$),this._disabled=!1}}}function a(ke,$){return class extends ke{get color(){return this._color}set color(ue){const Le=ue||this.defaultColor;Le!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),Le&&this._elementRef.nativeElement.classList.add(`mat-${Le}`),this._color=Le)}constructor(...ue){super(...ue),this.defaultColor=$,this.color=$}}}function f(ke){return class extends ke{get disableRipple(){return this._disableRipple}set disableRipple($){this._disableRipple=(0,h.Ig)($)}constructor(...$){super(...$),this._disableRipple=!1}}}function l(ke,$=0){return class extends ke{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(ue){this._tabIndex=null!=ue?(0,h.su)(ue):this.defaultTabIndex}constructor(...ue){super(...ue),this._tabIndex=$,this.defaultTabIndex=$}}}function v(ke){return class extends ke{updateErrorState(){const $=this.errorState,$t=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);$t!==$&&(this.errorState=$t,this.stateChanges.next())}constructor(...$){super(...$),this.errorState=!1}}}function I(ke){return class extends ke{constructor(...$){super(...$),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new P.y(ue=>{this._isInitialized?this._notifySubscriber(ue):this._pendingSubscribers.push(ue)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber($){$.next(),$.complete()}}}const k=new t.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function x(){return(0,t.f3M)(t.soG)}});class n{constructor(){this._localeChanges=new d.x,this.localeChanges=this._localeChanges}getValidDateOrNull($){return this.isDateInstance($)&&this.isValid($)?$:null}deserialize($){return null==$||this.isDateInstance($)&&this.isValid($)?$:this.invalid()}setLocale($){this.locale=$,this._localeChanges.next()}compareDate($,ue){return this.getYear($)-this.getYear(ue)||this.getMonth($)-this.getMonth(ue)||this.getDate($)-this.getDate(ue)}sameDate($,ue){if($&&ue){let Le=this.isValid($),Je=this.isValid(ue);return Le&&Je?!this.compareDate($,ue):Le==Je}return $==ue}clampDate($,ue,Le){return ue&&this.compareDate($,ue)<0?ue:Le&&this.compareDate($,Le)>0?Le:$}}const g=new t.OlP("mat-date-formats"),W=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function O(ke,$){const ue=Array(ke);for(let Le=0;Le{class ke extends n{constructor(ue,Le){super(),this.useUtcForDisplay=!1,super.setLocale(ue)}getYear(ue){return ue.getFullYear()}getMonth(ue){return ue.getMonth()}getDate(ue){return ue.getDate()}getDayOfWeek(ue){return ue.getDay()}getMonthNames(ue){const Le=new Intl.DateTimeFormat(this.locale,{month:ue,timeZone:"utc"});return O(12,Je=>this._format(Le,new Date(2017,Je,1)))}getDateNames(){const ue=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return O(31,Le=>this._format(ue,new Date(2017,0,Le+1)))}getDayOfWeekNames(ue){const Le=new Intl.DateTimeFormat(this.locale,{weekday:ue,timeZone:"utc"});return O(7,Je=>this._format(Le,new Date(2017,0,Je+1)))}getYearName(ue){const Le=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(Le,ue)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(ue){return this.getDate(this._createDateWithOverflow(this.getYear(ue),this.getMonth(ue)+1,0))}clone(ue){return new Date(ue.getTime())}createDate(ue,Le,Je){let $t=this._createDateWithOverflow(ue,Le,Je);return $t.getMonth(),$t}today(){return new Date}parse(ue,Le){return"number"==typeof ue?new Date(ue):ue?new Date(Date.parse(ue)):null}format(ue,Le){if(!this.isValid(ue))throw Error("NativeDateAdapter: Cannot format invalid date.");const Je=new Intl.DateTimeFormat(this.locale,{...Le,timeZone:"utc"});return this._format(Je,ue)}addCalendarYears(ue,Le){return this.addCalendarMonths(ue,12*Le)}addCalendarMonths(ue,Le){let Je=this._createDateWithOverflow(this.getYear(ue),this.getMonth(ue)+Le,this.getDate(ue));return this.getMonth(Je)!=((this.getMonth(ue)+Le)%12+12)%12&&(Je=this._createDateWithOverflow(this.getYear(Je),this.getMonth(Je),0)),Je}addCalendarDays(ue,Le){return this._createDateWithOverflow(this.getYear(ue),this.getMonth(ue),this.getDate(ue)+Le)}toIso8601(ue){return[ue.getUTCFullYear(),this._2digit(ue.getUTCMonth()+1),this._2digit(ue.getUTCDate())].join("-")}deserialize(ue){if("string"==typeof ue){if(!ue)return null;if(W.test(ue)){let Le=new Date(ue);if(this.isValid(Le))return Le}}return super.deserialize(ue)}isDateInstance(ue){return ue instanceof Date}isValid(ue){return!isNaN(ue.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(ue,Le,Je){const $t=new Date;return $t.setFullYear(ue,Le,Je),$t.setHours(0,0,0,0),$t}_2digit(ue){return("00"+ue).slice(-2)}_format(ue,Le){const Je=new Date;return Je.setUTCFullYear(Le.getFullYear(),Le.getMonth(),Le.getDate()),Je.setUTCHours(Le.getHours(),Le.getMinutes(),Le.getSeconds(),Le.getMilliseconds()),ue.format(Je)}}return ke.\u0275fac=function(ue){return new(ue||ke)(t.LFG(k,8),t.LFG(y.t4))},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac}),ke})();const ge={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 nt=(()=>{class ke{}return ke.\u0275fac=function(ue){return new(ue||ke)},ke.\u0275mod=t.oAB({type:ke}),ke.\u0275inj=t.cJS({providers:[{provide:n,useClass:G}]}),ke})(),Ue=(()=>{class ke{}return ke.\u0275fac=function(ue){return new(ue||ke)},ke.\u0275mod=t.oAB({type:ke}),ke.\u0275inj=t.cJS({providers:[{provide:g,useValue:ge}],imports:[nt]}),ke})(),ye=(()=>{class ke{isErrorState(ue,Le){return!!(ue&&ue.invalid&&(ue.touched||Le&&Le.submitted))}}return ke.\u0275fac=function(ue){return new(ue||ke)},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),oe=(()=>{class ke{}return ke.\u0275fac=function(ue){return new(ue||ke)},ke.\u0275mod=t.oAB({type:ke}),ke.\u0275inj=t.cJS({imports:[se,se]}),ke})();class Fe{constructor($,ue,Le,Je=!1){this._renderer=$,this.element=ue,this.config=Le,this._animationForciblyDisabledThroughCss=Je,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const De=(0,y.i$)({passive:!0,capture:!0});class he{constructor(){this._events=new Map,this._delegateEventHandler=$=>{const ue=(0,y.sA)($);ue&&this._events.get($.type)?.forEach((Le,Je)=>{(Je===ue||Je.contains(ue))&&Le.forEach($t=>$t.handleEvent($))})}}addHandler($,ue,Le,Je){const $t=this._events.get(ue);if($t){const Vt=$t.get(Le);Vt?Vt.add(Je):$t.set(Le,new Set([Je]))}else this._events.set(ue,new Map([[Le,new Set([Je])]])),$.runOutsideAngular(()=>{document.addEventListener(ue,this._delegateEventHandler,De)})}removeHandler($,ue,Le){const Je=this._events.get($);if(!Je)return;const $t=Je.get(ue);$t&&($t.delete(Le),0===$t.size&&Je.delete(ue),0===Je.size&&(this._events.delete($),document.removeEventListener($,this._delegateEventHandler,De)))}}const Me={enterDuration:225,exitDuration:150},Ve=(0,y.i$)({passive:!0,capture:!0}),Qe=["mousedown","touchstart"],Pe=["mouseup","mouseleave","touchend","touchcancel"];class de{constructor($,ue,Le,Je){this._target=$,this._ngZone=ue,this._platform=Je,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,Je.isBrowser&&(this._containerElement=(0,h.fI)(Le))}fadeInRipple($,ue,Le={}){const Je=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),$t={...Me,...Le.animation};Le.centered&&($=Je.left+Je.width/2,ue=Je.top+Je.height/2);const Vt=Le.radius||function rt(ke,$,ue){const Le=Math.max(Math.abs(ke-ue.left),Math.abs(ke-ue.right)),Je=Math.max(Math.abs($-ue.top),Math.abs($-ue.bottom));return Math.sqrt(Le*Le+Je*Je)}($,ue,Je),ii=$-Je.left,pt=ue-Je.top,ot=$t.enterDuration,ft=document.createElement("div");ft.classList.add("mat-ripple-element"),ft.style.left=ii-Vt+"px",ft.style.top=pt-Vt+"px",ft.style.height=2*Vt+"px",ft.style.width=2*Vt+"px",null!=Le.color&&(ft.style.backgroundColor=Le.color),ft.style.transitionDuration=`${ot}ms`,this._containerElement.appendChild(ft);const St=window.getComputedStyle(ft),$e=St.transitionDuration,_t="none"===St.transitionProperty||"0s"===$e||"0s, 0s"===$e||0===Je.width&&0===Je.height,vt=new Fe(this,ft,Le,_t);ft.style.transform="scale3d(1, 1, 1)",vt.state=0,Le.persistent||(this._mostRecentTransientRipple=vt);let He=null;return!_t&&(ot||$t.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Et=()=>this._finishRippleTransition(vt),At=()=>this._destroyRipple(vt);ft.addEventListener("transitionend",Et),ft.addEventListener("transitioncancel",At),He={onTransitionEnd:Et,onTransitionCancel:At}}),this._activeRipples.set(vt,He),(_t||!ot)&&this._finishRippleTransition(vt),vt}fadeOutRipple($){if(2===$.state||3===$.state)return;const ue=$.element,Le={...Me,...$.config.animation};ue.style.transitionDuration=`${Le.exitDuration}ms`,ue.style.opacity="0",$.state=2,($._animationForciblyDisabledThroughCss||!Le.exitDuration)&&this._finishRippleTransition($)}fadeOutAll(){this._getActiveRipples().forEach($=>$.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach($=>{$.config.persistent||$.fadeOut()})}setupTriggerEvents($){const ue=(0,h.fI)($);!this._platform.isBrowser||!ue||ue===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=ue,Qe.forEach(Le=>{de._eventManager.addHandler(this._ngZone,Le,ue,this)}))}handleEvent($){"mousedown"===$.type?this._onMousedown($):"touchstart"===$.type?this._onTouchStart($):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Pe.forEach(ue=>{this._triggerElement.addEventListener(ue,this,Ve)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition($){0===$.state?this._startFadeOutTransition($):2===$.state&&this._destroyRipple($)}_startFadeOutTransition($){const ue=$===this._mostRecentTransientRipple,{persistent:Le}=$.config;$.state=1,!Le&&(!ue||!this._isPointerDown)&&$.fadeOut()}_destroyRipple($){const ue=this._activeRipples.get($)??null;this._activeRipples.delete($),this._activeRipples.size||(this._containerRect=null),$===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),$.state=3,null!==ue&&($.element.removeEventListener("transitionend",ue.onTransitionEnd),$.element.removeEventListener("transitioncancel",ue.onTransitionCancel)),$.element.remove()}_onMousedown($){const ue=(0,e.X6)($),Le=this._lastTouchStartEvent&&Date.now(){!$.config.persistent&&(1===$.state||$.config.terminateOnPointerUp&&0===$.state)&&$.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const $=this._triggerElement;$&&(Qe.forEach(ue=>de._eventManager.removeHandler(ue,$,this)),this._pointerUpEventsRegistered&&Pe.forEach(ue=>$.removeEventListener(ue,this,Ve)))}}de._eventManager=new he;const Ke=new t.OlP("mat-ripple-global-options");let lt=(()=>{class ke{get disabled(){return this._disabled}set disabled(ue){ue&&this.fadeOutAllNonPersistent(),this._disabled=ue,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(ue){this._trigger=ue,this._setupTriggerEventsIfEnabled()}constructor(ue,Le,Je,$t,Vt){this._elementRef=ue,this._animationMode=Vt,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=$t||{},this._rippleRenderer=new de(this,Le,ue,Je)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."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(ue,Le=0,Je){return"number"==typeof ue?this._rippleRenderer.fadeInRipple(ue,Le,{...this.rippleConfig,...Je}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...ue})}}return ke.\u0275fac=function(ue){return new(ue||ke)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(y.t4),t.Y36(Ke,8),t.Y36(t.QbO,8))},ke.\u0275dir=t.lG2({type:ke,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(ue,Le){2&ue&&t.ekj("mat-ripple-unbounded",Le.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"]}),ke})(),Ut=(()=>{class ke{}return ke.\u0275fac=function(ue){return new(ue||ke)},ke.\u0275mod=t.oAB({type:ke}),ke.\u0275inj=t.cJS({imports:[se,se]}),ke})(),ht=(()=>{class ke{constructor(ue){this._animationMode=ue,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return ke.\u0275fac=function(ue){return new(ue||ke)(t.Y36(t.QbO,8))},ke.\u0275cmp=t.Xpm({type:ke,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(ue,Le){2&ue&&t.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Le.state)("mat-pseudo-checkbox-checked","checked"===Le.state)("mat-pseudo-checkbox-disabled",Le.disabled)("mat-pseudo-checkbox-minimal","minimal"===Le.appearance)("mat-pseudo-checkbox-full","full"===Le.appearance)("_mat-animation-noopable","NoopAnimations"===Le._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(ue,Le){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0}),ke})(),Ge=(()=>{class ke{}return ke.\u0275fac=function(ue){return new(ue||ke)},ke.\u0275mod=t.oAB({type:ke}),ke.\u0275inj=t.cJS({imports:[se]}),ke})();const yt=new t.OlP("MAT_OPTION_PARENT_COMPONENT"),X=new t.OlP("MatOptgroup");let Tt=0;class it{constructor($,ue=!1){this.source=$,this.isUserInput=ue}}let je=(()=>{class ke{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(ue){this._disabled=(0,h.Ig)(ue)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(ue,Le,Je,$t){this._element=ue,this._changeDetectorRef=Le,this._parent=Je,this.group=$t,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Tt++,this.onSelectionChange=new t.vpe,this._stateChanges=new d.x}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.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(ue,Le){const Je=this._getHostElement();"function"==typeof Je.focus&&Je.focus(Le)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(ue){(ue.keyCode===w.K5||ue.keyCode===w.L_)&&!(0,w.Vb)(ue)&&(this._selectViaInteraction(),ue.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const ue=this.viewValue;ue!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=ue)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(ue=!1){this.onSelectionChange.emit(new it(this,ue))}}return ke.\u0275fac=function(ue){t.$Z()},ke.\u0275dir=t.lG2({type:ke,viewQuery:function(ue,Le){if(1&ue&&t.Gf(D,7),2&ue){let Je;t.iGM(Je=t.CRH())&&(Le._text=Je.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),ke})(),zt=(()=>{class ke extends je{constructor(ue,Le,Je,$t){super(ue,Le,Je,$t)}}return ke.\u0275fac=function(ue){return new(ue||ke)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(yt,8),t.Y36(X,8))},ke.\u0275cmp=t.Xpm({type:ke,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(ue,Le){1&ue&&t.NdJ("click",function(){return Le._selectViaInteraction()})("keydown",function($t){return Le._handleKeydown($t)}),2&ue&&(t.Ikx("id",Le.id),t.uIk("aria-selected",Le.selected)("aria-disabled",Le.disabled.toString()),t.ekj("mdc-list-item--selected",Le.selected)("mat-mdc-option-multiple",Le.multiple)("mat-mdc-option-active",Le.active)("mdc-list-item--disabled",Le.disabled))},exportAs:["matOption"],features:[t.qOj],ngContentSelectors:Q,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-mdc-option-pseudo-checkbox",3,"state","disabled"],["state","checked","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(ue,Le){1&ue&&(t.F$t(j),t.YNc(0,H,1,2,"mat-pseudo-checkbox",0),t.Hsn(1),t.TgZ(2,"span",1,2),t.Hsn(4,1),t.qZA(),t.YNc(5,V,1,1,"mat-pseudo-checkbox",3),t.YNc(6,Y,2,1,"span",4),t._UZ(7,"div",5)),2&ue&&(t.Q6J("ngIf",Le.multiple),t.xp6(5),t.Q6J("ngIf",!Le.multiple&&Le.selected&&!Le.hideSingleSelectionIndicator),t.xp6(1),t.Q6J("ngIf",Le.group&&Le.group._inert),t.xp6(1),t.Q6J("matRippleTrigger",Le._getHostElement())("matRippleDisabled",Le.disabled||Le.disableRipple))},dependencies:[lt,s.O5,ht],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{opacity:.38;cursor:default}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),ke})();function xt(ke,$,ue){if(ue.length){let Le=$.toArray(),Je=ue.toArray(),$t=0;for(let Vt=0;Vtue+Le?Math.max(0,ke-Le+$):ue}let Gt=(()=>{class ke{}return ke.\u0275fac=function(ue){return new(ue||ke)},ke.\u0275mod=t.oAB({type:ke}),ke.\u0275inj=t.cJS({imports:[Ut,s.ez,se,Ge]}),ke})()},9602:(We,q,m)=>{"use strict";m.d(q,{FA:()=>Yi,Mq:()=>ot,hl:()=>vt,nW:()=>Et});var t=m(4761),e=m(8184),_=m(4080),T=m(6895),s=m(4650),y=m(4859),h=m(531),P=m(3238),d=m(7579),w=m(727),C=m(6451),L=m(9646),D=m(9521),H=m(445),V=m(3353),Y=m(5698),j=m(8675),Q=m(9300),J=m(1281),ee=m(7340),me=m(4006),re=m(9549),ie=m(4144);const se=["mat-calendar-body",""];function ce(Yt,qt){if(1&Yt&&(s.TgZ(0,"tr",3)(1,"td",4),s._uU(2),s.qZA()()),2&Yt){const _e=s.oxw();s.xp6(1),s.Udp("padding-top",_e._cellPadding)("padding-bottom",_e._cellPadding),s.uIk("colspan",_e.numCols),s.xp6(1),s.hij(" ",_e.label," ")}}function Ce(Yt,qt){if(1&Yt&&(s.TgZ(0,"td",4),s._uU(1),s.qZA()),2&Yt){const _e=s.oxw(2);s.Udp("padding-top",_e._cellPadding)("padding-bottom",_e._cellPadding),s.uIk("colspan",_e._firstRowOffset),s.xp6(1),s.hij(" ",_e._firstRowOffset>=_e.labelMinRequiredCells?_e.label:""," ")}}function M(Yt,qt){if(1&Yt){const _e=s.EpF();s.TgZ(0,"td",8)(1,"button",9),s.NdJ("click",function(Dt){const Ot=s.CHM(_e).$implicit,vi=s.oxw(2);return s.KtG(vi._cellClicked(Ot,Dt))})("focus",function(Dt){const Ot=s.CHM(_e).$implicit,vi=s.oxw(2);return s.KtG(vi._emitActiveDateChange(Ot,Dt))}),s.TgZ(2,"span",10),s._uU(3),s.qZA(),s._UZ(4,"span",11),s.qZA()()}if(2&Yt){const _e=qt.$implicit,dt=qt.index,Dt=s.oxw().index,Bt=s.oxw();s.Udp("width",Bt._cellWidth)("padding-top",Bt._cellPadding)("padding-bottom",Bt._cellPadding),s.uIk("data-mat-row",Dt)("data-mat-col",dt),s.xp6(1),s.ekj("mat-calendar-body-disabled",!_e.enabled)("mat-calendar-body-active",Bt._isActiveCell(Dt,dt))("mat-calendar-body-range-start",Bt._isRangeStart(_e.compareValue))("mat-calendar-body-range-end",Bt._isRangeEnd(_e.compareValue))("mat-calendar-body-in-range",Bt._isInRange(_e.compareValue))("mat-calendar-body-comparison-bridge-start",Bt._isComparisonBridgeStart(_e.compareValue,Dt,dt))("mat-calendar-body-comparison-bridge-end",Bt._isComparisonBridgeEnd(_e.compareValue,Dt,dt))("mat-calendar-body-comparison-start",Bt._isComparisonStart(_e.compareValue))("mat-calendar-body-comparison-end",Bt._isComparisonEnd(_e.compareValue))("mat-calendar-body-in-comparison-range",Bt._isInComparisonRange(_e.compareValue))("mat-calendar-body-preview-start",Bt._isPreviewStart(_e.compareValue))("mat-calendar-body-preview-end",Bt._isPreviewEnd(_e.compareValue))("mat-calendar-body-in-preview",Bt._isInPreview(_e.compareValue)),s.Q6J("ngClass",_e.cssClasses)("tabindex",Bt._isActiveCell(Dt,dt)?0:-1),s.uIk("aria-label",_e.ariaLabel)("aria-disabled",!_e.enabled||null)("aria-pressed",Bt._isSelected(_e.compareValue))("aria-current",Bt.todayValue===_e.compareValue?"date":null)("aria-describedby",Bt._getDescribedby(_e.compareValue)),s.xp6(1),s.ekj("mat-calendar-body-selected",Bt._isSelected(_e.compareValue))("mat-calendar-body-comparison-identical",Bt._isComparisonIdentical(_e.compareValue))("mat-calendar-body-today",Bt.todayValue===_e.compareValue),s.xp6(1),s.hij(" ",_e.displayValue," ")}}function i(Yt,qt){if(1&Yt&&(s.TgZ(0,"tr",5),s.YNc(1,Ce,2,6,"td",6),s.YNc(2,M,5,48,"td",7),s.qZA()),2&Yt){const _e=qt.$implicit,dt=qt.index,Dt=s.oxw();s.xp6(1),s.Q6J("ngIf",0===dt&&Dt._firstRowOffset),s.xp6(1),s.Q6J("ngForOf",_e)}}function a(Yt,qt){if(1&Yt&&(s.TgZ(0,"th",5)(1,"span",6),s._uU(2),s.qZA(),s.TgZ(3,"span",7),s._uU(4),s.qZA()()),2&Yt){const _e=qt.$implicit;s.xp6(2),s.Oqu(_e.long),s.xp6(2),s.Oqu(_e.narrow)}}const f=["*"];function l(Yt,qt){}function v(Yt,qt){if(1&Yt){const _e=s.EpF();s.TgZ(0,"mat-month-view",5),s.NdJ("activeDateChange",function(Dt){s.CHM(_e);const Bt=s.oxw();return s.KtG(Bt.activeDate=Dt)})("_userSelection",function(Dt){s.CHM(_e);const Bt=s.oxw();return s.KtG(Bt._dateSelected(Dt))})("dragStarted",function(Dt){s.CHM(_e);const Bt=s.oxw();return s.KtG(Bt._dragStarted(Dt))})("dragEnded",function(Dt){s.CHM(_e);const Bt=s.oxw();return s.KtG(Bt._dragEnded(Dt))}),s.qZA()}if(2&Yt){const _e=s.oxw();s.Q6J("activeDate",_e.activeDate)("selected",_e.selected)("dateFilter",_e.dateFilter)("maxDate",_e.maxDate)("minDate",_e.minDate)("dateClass",_e.dateClass)("comparisonStart",_e.comparisonStart)("comparisonEnd",_e.comparisonEnd)("startDateAccessibleName",_e.startDateAccessibleName)("endDateAccessibleName",_e.endDateAccessibleName)("activeDrag",_e._activeDrag)}}function I(Yt,qt){if(1&Yt){const _e=s.EpF();s.TgZ(0,"mat-year-view",6),s.NdJ("activeDateChange",function(Dt){s.CHM(_e);const Bt=s.oxw();return s.KtG(Bt.activeDate=Dt)})("monthSelected",function(Dt){s.CHM(_e);const Bt=s.oxw();return s.KtG(Bt._monthSelectedInYearView(Dt))})("selectedChange",function(Dt){s.CHM(_e);const Bt=s.oxw();return s.KtG(Bt._goToDateInView(Dt,"month"))}),s.qZA()}if(2&Yt){const _e=s.oxw();s.Q6J("activeDate",_e.activeDate)("selected",_e.selected)("dateFilter",_e.dateFilter)("maxDate",_e.maxDate)("minDate",_e.minDate)("dateClass",_e.dateClass)}}function k(Yt,qt){if(1&Yt){const _e=s.EpF();s.TgZ(0,"mat-multi-year-view",7),s.NdJ("activeDateChange",function(Dt){s.CHM(_e);const Bt=s.oxw();return s.KtG(Bt.activeDate=Dt)})("yearSelected",function(Dt){s.CHM(_e);const Bt=s.oxw();return s.KtG(Bt._yearSelectedInMultiYearView(Dt))})("selectedChange",function(Dt){s.CHM(_e);const Bt=s.oxw();return s.KtG(Bt._goToDateInView(Dt,"year"))}),s.qZA()}if(2&Yt){const _e=s.oxw();s.Q6J("activeDate",_e.activeDate)("selected",_e.selected)("dateFilter",_e.dateFilter)("maxDate",_e.maxDate)("minDate",_e.minDate)("dateClass",_e.dateClass)}}function x(Yt,qt){}const n=["button"];function g(Yt,qt){1&Yt&&(s.O4$(),s.TgZ(0,"svg",3),s._UZ(1,"path",4),s.qZA())}const W=[[["","matDatepickerToggleIcon",""]]],O=["[matDatepickerToggleIcon]"];let at=(()=>{class Yt{constructor(){this.changes=new d.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",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(_e,dt){return`${_e} \u2013 ${dt}`}formatYearRangeLabel(_e,dt){return`${_e} to ${dt}`}}return Yt.\u0275fac=function(_e){return new(_e||Yt)},Yt.\u0275prov=s.Yz7({token:Yt,factory:Yt.\u0275fac,providedIn:"root"}),Yt})();class ye{constructor(qt,_e,dt,Dt,Bt={},Ot=qt,vi){this.value=qt,this.displayValue=_e,this.ariaLabel=dt,this.enabled=Dt,this.cssClasses=Bt,this.compareValue=Ot,this.rawValue=vi}}let xe=1,fe=(()=>{class Yt{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(_e,dt){this._elementRef=_e,this._ngZone=dt,this._platform=(0,s.f3M)(V.t4),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new s.vpe,this.previewChange=new s.vpe,this.activeDateChange=new s.vpe,this.dragStarted=new s.vpe,this.dragEnded=new s.vpe,this._didDragSinceMouseDown=!1,this._enterHandler=Dt=>{if(this._skipNextFocus&&"focus"===Dt.type)this._skipNextFocus=!1;else if(Dt.target&&this.isRange){const Bt=this._getCellFromElement(Dt.target);Bt&&this._ngZone.run(()=>this.previewChange.emit({value:Bt.enabled?Bt:null,event:Dt}))}},this._touchmoveHandler=Dt=>{if(!this.isRange)return;const Bt=Me(Dt),Ot=Bt?this._getCellFromElement(Bt):null;Bt!==Dt.target&&(this._didDragSinceMouseDown=!0),oe(Dt.target)&&Dt.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:Ot?.enabled?Ot:null,event:Dt}))},this._leaveHandler=Dt=>{null!==this.previewEnd&&this.isRange&&("blur"!==Dt.type&&(this._didDragSinceMouseDown=!0),Dt.target&&this._getCellFromElement(Dt.target)&&(!Dt.relatedTarget||!this._getCellFromElement(Dt.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:Dt})))},this._mousedownHandler=Dt=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;const Bt=Dt.target&&this._getCellFromElement(Dt.target);!Bt||!this._isInRange(Bt.rawValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:Bt.rawValue,event:Dt})})},this._mouseupHandler=Dt=>{if(!this.isRange)return;const Bt=oe(Dt.target);Bt?Bt.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{const Ot=this._getCellFromElement(Bt);this.dragEnded.emit({value:Ot?.rawValue??null,event:Dt})}):this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:Dt})})},this._touchendHandler=Dt=>{const Bt=Me(Dt);Bt&&this._mouseupHandler({target:Bt})},this._id="mat-calendar-body-"+xe++,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,dt.runOutsideAngular(()=>{const Dt=_e.nativeElement;Dt.addEventListener("mouseenter",this._enterHandler,!0),Dt.addEventListener("touchmove",this._touchmoveHandler,!0),Dt.addEventListener("focus",this._enterHandler,!0),Dt.addEventListener("mouseleave",this._leaveHandler,!0),Dt.addEventListener("blur",this._leaveHandler,!0),Dt.addEventListener("mousedown",this._mousedownHandler),Dt.addEventListener("touchstart",this._mousedownHandler),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(_e,dt){this._didDragSinceMouseDown||_e.enabled&&this.selectedValueChange.emit({value:_e.value,event:dt})}_emitActiveDateChange(_e,dt){_e.enabled&&this.activeDateChange.emit({value:_e.value,event:dt})}_isSelected(_e){return this.startValue===_e||this.endValue===_e}ngOnChanges(_e){const dt=_e.numCols,{rows:Dt,numCols:Bt}=this;(_e.rows||dt)&&(this._firstRowOffset=Dt&&Dt.length&&Dt[0].length?Bt-Dt[0].length:0),(_e.cellAspectRatio||dt||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Bt+"%"),(dt||!this._cellWidth)&&(this._cellWidth=100/Bt+"%")}ngOnDestroy(){const _e=this._elementRef.nativeElement;_e.removeEventListener("mouseenter",this._enterHandler,!0),_e.removeEventListener("touchmove",this._touchmoveHandler,!0),_e.removeEventListener("focus",this._enterHandler,!0),_e.removeEventListener("mouseleave",this._leaveHandler,!0),_e.removeEventListener("blur",this._leaveHandler,!0),_e.removeEventListener("mousedown",this._mousedownHandler),_e.removeEventListener("touchstart",this._mousedownHandler),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(_e,dt){let Dt=_e*this.numCols+dt;return _e&&(Dt-=this._firstRowOffset),Dt==this.activeCell}_focusActiveCell(_e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,Y.q)(1)).subscribe(()=>{setTimeout(()=>{const dt=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");dt&&(_e||(this._skipNextFocus=!0),dt.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(_e){return Fe(_e,this.startValue,this.endValue)}_isRangeEnd(_e){return De(_e,this.startValue,this.endValue)}_isInRange(_e){return he(_e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(_e){return Fe(_e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(_e,dt,Dt){if(!this._isComparisonStart(_e)||this._isRangeStart(_e)||!this._isInRange(_e))return!1;let Bt=this.rows[dt][Dt-1];if(!Bt){const Ot=this.rows[dt-1];Bt=Ot&&Ot[Ot.length-1]}return Bt&&!this._isRangeEnd(Bt.compareValue)}_isComparisonBridgeEnd(_e,dt,Dt){if(!this._isComparisonEnd(_e)||this._isRangeEnd(_e)||!this._isInRange(_e))return!1;let Bt=this.rows[dt][Dt+1];if(!Bt){const Ot=this.rows[dt+1];Bt=Ot&&Ot[0]}return Bt&&!this._isRangeStart(Bt.compareValue)}_isComparisonEnd(_e){return De(_e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(_e){return he(_e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(_e){return this.comparisonStart===this.comparisonEnd&&_e===this.comparisonStart}_isPreviewStart(_e){return Fe(_e,this.previewStart,this.previewEnd)}_isPreviewEnd(_e){return De(_e,this.previewStart,this.previewEnd)}_isInPreview(_e){return he(_e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(_e){return this.isRange?this.startValue===_e&&this.endValue===_e?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===_e?this._startDateLabelId:this.endValue===_e?this._endDateLabelId:null:null}_getCellFromElement(_e){const dt=oe(_e);if(dt){const Dt=dt.getAttribute("data-mat-row"),Bt=dt.getAttribute("data-mat-col");if(Dt&&Bt)return this.rows[parseInt(Dt)][parseInt(Bt)]}return null}}return Yt.\u0275fac=function(_e){return new(_e||Yt)(s.Y36(s.SBq),s.Y36(s.R0b))},Yt.\u0275cmp=s.Xpm({type:Yt,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[s.TTD],attrs:se,decls:6,vars:6,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],[1,"mat-calendar-body-hidden-label",3,"id"],["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-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(_e,dt){1&_e&&(s.YNc(0,ce,3,6,"tr",0),s.YNc(1,i,3,2,"tr",1),s.TgZ(2,"label",2),s._uU(3),s.qZA(),s.TgZ(4,"label",2),s._uU(5),s.qZA()),2&_e&&(s.Q6J("ngIf",dt._firstRowOffset=qt&&Yt===_e}function he(Yt,qt,_e,dt){return dt&&null!==qt&&null!==_e&&qt!==_e&&Yt>=qt&&Yt<=_e}function Me(Yt){const qt=Yt.changedTouches[0];return document.elementFromPoint(qt.clientX,qt.clientY)}class pe{constructor(qt,_e){this.start=qt,this.end=_e}}let Ve=(()=>{class Yt{constructor(_e,dt){this.selection=_e,this._adapter=dt,this._selectionChanged=new d.x,this.selectionChanged=this._selectionChanged,this.selection=_e}updateSelection(_e,dt){const Dt=this.selection;this.selection=_e,this._selectionChanged.next({selection:_e,source:dt,oldValue:Dt})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(_e){return this._adapter.isDateInstance(_e)&&this._adapter.isValid(_e)}}return Yt.\u0275fac=function(_e){s.$Z()},Yt.\u0275prov=s.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})(),Qe=(()=>{class Yt extends Ve{constructor(_e){super(null,_e)}add(_e){super.updateSelection(_e,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const _e=new Yt(this._adapter);return _e.updateSelection(this.selection,this),_e}}return Yt.\u0275fac=function(_e){return new(_e||Yt)(s.LFG(P._A))},Yt.\u0275prov=s.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})();const rt={provide:Ve,deps:[[new s.FiY,new s.tp0,Ve],P._A],useFactory:function de(Yt,qt){return Yt||new Qe(qt)}},Ut=new s.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let qe=(()=>{class Yt{get activeDate(){return this._activeDate}set activeDate(_e){const dt=this._activeDate,Dt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Dt,this.minDate,this.maxDate),this._hasSameMonthAndYear(dt,this._activeDate)||this._init()}get selected(){return this._selected}set selected(_e){this._selected=_e instanceof pe?_e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(_e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e))}get maxDate(){return this._maxDate}set maxDate(_e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e))}constructor(_e,dt,Dt,Bt,Ot){this._changeDetectorRef=_e,this._dateFormats=dt,this._dateAdapter=Dt,this._dir=Bt,this._rangeStrategy=Ot,this._rerenderSubscription=w.w0.EMPTY,this.activeDrag=null,this.selectedChange=new s.vpe,this._userSelection=new s.vpe,this.dragStarted=new s.vpe,this.dragEnded=new s.vpe,this.activeDateChange=new s.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,j.O)(null)).subscribe(()=>this._init())}ngOnChanges(_e){const dt=_e.comparisonStart||_e.comparisonEnd;dt&&!dt.firstChange&&this._setRanges(this.selected),_e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(_e){const dt=_e.value,Dt=this._getDateFromDayOfMonth(dt);let Bt,Ot;this._selected instanceof pe?(Bt=this._getDateInCurrentMonth(this._selected.start),Ot=this._getDateInCurrentMonth(this._selected.end)):Bt=Ot=this._getDateInCurrentMonth(this._selected),(Bt!==dt||Ot!==dt)&&this.selectedChange.emit(Dt),this._userSelection.emit({value:Dt,event:_e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(_e){const Dt=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(_e.value),this._dateAdapter.compareDate(Dt,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(_e){const dt=this._activeDate,Dt=this._isRtl();switch(_e.keyCode){case D.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Dt?1:-1);break;case D.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Dt?-1:1);break;case D.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case D.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case D.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case D.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case D.Ku:this.activeDate=_e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case D.VM:this.activeDate=_e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case D.K5:case D.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&_e.preventDefault());case D.hY:return void(null!=this._previewEnd&&!(0,D.Vb)(_e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:_e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:_e})),_e.preventDefault(),_e.stopPropagation()));default:return}this._dateAdapter.compareDate(dt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),_e.preventDefault()}_handleCalendarBodyKeyup(_e){(_e.keyCode===D.L_||_e.keyCode===D.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:_e}),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 _e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(_e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(_e){this._matCalendarBody._focusActiveCell(_e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:_e,value:dt}){if(this._rangeStrategy){const Dt=dt?dt.rawValue:null,Bt=this._rangeStrategy.createPreview(Dt,this.selected,_e);if(this._previewStart=this._getCellCompareValue(Bt.start),this._previewEnd=this._getCellCompareValue(Bt.end),this.activeDrag&&Dt){const Ot=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,Dt,_e);Ot&&(this._previewStart=this._getCellCompareValue(Ot.start),this._previewEnd=this._getCellCompareValue(Ot.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(_e){if(this.activeDrag)if(_e.value){const dt=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,_e.value,_e.event);this.dragEnded.emit({value:dt??null,event:_e.event})}else this.dragEnded.emit({value:null,event:_e.event})}_getDateFromDayOfMonth(_e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),_e)}_initWeekdays(){const _e=this._dateAdapter.getFirstDayOfWeek(),dt=this._dateAdapter.getDayOfWeekNames("narrow");let Bt=this._dateAdapter.getDayOfWeekNames("long").map((Ot,vi)=>({long:Ot,narrow:dt[vi]}));this._weekdays=Bt.slice(_e).concat(Bt.slice(0,_e))}_createWeekCells(){const _e=this._dateAdapter.getNumDaysInMonth(this.activeDate),dt=this._dateAdapter.getDateNames();this._weeks=[[]];for(let Dt=0,Bt=this._firstWeekOffset;Dt<_e;Dt++,Bt++){7==Bt&&(this._weeks.push([]),Bt=0);const Ot=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),Dt+1),vi=this._shouldEnableDate(Ot),li=this._dateAdapter.format(Ot,this._dateFormats.display.dateA11yLabel),mi=this.dateClass?this.dateClass(Ot,"month"):void 0;this._weeks[this._weeks.length-1].push(new ye(Dt+1,dt[Dt],li,vi,mi,this._getCellCompareValue(Ot),Ot))}}_shouldEnableDate(_e){return!!_e&&(!this.minDate||this._dateAdapter.compareDate(_e,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(_e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(_e))}_getDateInCurrentMonth(_e){return _e&&this._hasSameMonthAndYear(_e,this.activeDate)?this._dateAdapter.getDate(_e):null}_hasSameMonthAndYear(_e,dt){return!(!_e||!dt||this._dateAdapter.getMonth(_e)!=this._dateAdapter.getMonth(dt)||this._dateAdapter.getYear(_e)!=this._dateAdapter.getYear(dt))}_getCellCompareValue(_e){if(_e){const dt=this._dateAdapter.getYear(_e),Dt=this._dateAdapter.getMonth(_e),Bt=this._dateAdapter.getDate(_e);return new Date(dt,Dt,Bt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(_e){_e instanceof pe?(this._rangeStart=this._getCellCompareValue(_e.start),this._rangeEnd=this._getCellCompareValue(_e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(_e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(_e){return!this.dateFilter||this.dateFilter(_e)}_clearPreview(){this._previewStart=this._previewEnd=null}}return Yt.\u0275fac=function(_e){return new(_e||Yt)(s.Y36(s.sBO),s.Y36(P.sG,8),s.Y36(P._A,8),s.Y36(H.Is,8),s.Y36(Ut,8))},Yt.\u0275cmp=s.Xpm({type:Yt,selectors:[["mat-month-view"]],viewQuery:function(_e,dt){if(1&_e&&s.Gf(fe,5),2&_e){let Dt;s.iGM(Dt=s.CRH())&&(dt._matCalendarBody=Dt.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[s.TTD],decls:7,vars:15,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","startDateAccessibleName","endDateAccessibleName","selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(_e,dt){1&_e&&(s.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),s.YNc(3,a,5,2,"th",2),s.qZA(),s.TgZ(4,"tr"),s._UZ(5,"th",3),s.qZA()(),s.TgZ(6,"tbody",4),s.NdJ("selectedValueChange",function(Bt){return dt._dateSelected(Bt)})("activeDateChange",function(Bt){return dt._updateActiveDate(Bt)})("previewChange",function(Bt){return dt._previewChanged(Bt)})("dragStarted",function(Bt){return dt.dragStarted.emit(Bt)})("dragEnded",function(Bt){return dt._dragEnded(Bt)})("keyup",function(Bt){return dt._handleCalendarBodyKeyup(Bt)})("keydown",function(Bt){return dt._handleCalendarBodyKeydown(Bt)}),s.qZA()()),2&_e&&(s.xp6(3),s.Q6J("ngForOf",dt._weekdays),s.xp6(3),s.Q6J("label",dt._monthLabel)("rows",dt._weeks)("todayValue",dt._todayDate)("startValue",dt._rangeStart)("endValue",dt._rangeEnd)("comparisonStart",dt._comparisonRangeStart)("comparisonEnd",dt._comparisonRangeEnd)("previewStart",dt._previewStart)("previewEnd",dt._previewEnd)("isRange",dt._isRange)("labelMinRequiredCells",3)("activeCell",dt._dateAdapter.getDate(dt.activeDate)-1)("startDateAccessibleName",dt.startDateAccessibleName)("endDateAccessibleName",dt.endDateAccessibleName))},dependencies:[T.sg,fe],encapsulation:2,changeDetection:0}),Yt})();const Ie=24;let mt=(()=>{class Yt{get activeDate(){return this._activeDate}set activeDate(_e){let dt=this._activeDate;const Dt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Dt,this.minDate,this.maxDate),Tt(this._dateAdapter,dt,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(_e){this._selected=_e instanceof pe?_e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e)),this._setSelectedYear(_e)}get minDate(){return this._minDate}set minDate(_e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e))}get maxDate(){return this._maxDate}set maxDate(_e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e))}constructor(_e,dt,Dt){this._changeDetectorRef=_e,this._dateAdapter=dt,this._dir=Dt,this._rerenderSubscription=w.w0.EMPTY,this.selectedChange=new s.vpe,this.yearSelected=new s.vpe,this.activeDateChange=new s.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,j.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const dt=this._dateAdapter.getYear(this._activeDate)-it(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let Dt=0,Bt=[];Dtthis._createCellForYear(Ot))),Bt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(_e){const dt=_e.value,Dt=this._dateAdapter.createDate(dt,0,1),Bt=this._getDateFromYear(dt);this.yearSelected.emit(Dt),this.selectedChange.emit(Bt)}_updateActiveDate(_e){const Dt=this._activeDate;this.activeDate=this._getDateFromYear(_e.value),this._dateAdapter.compareDate(Dt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(_e){const dt=this._activeDate,Dt=this._isRtl();switch(_e.keyCode){case D.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Dt?1:-1);break;case D.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Dt?-1:1);break;case D.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case D.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case D.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-it(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case D.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Ie-it(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case D.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,_e.altKey?10*-Ie:-Ie);break;case D.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,_e.altKey?10*Ie:Ie);break;case D.K5:case D.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(dt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),_e.preventDefault()}_handleCalendarBodyKeyup(_e){(_e.keyCode===D.L_||_e.keyCode===D.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:_e}),this._selectionKeyPressed=!1)}_getActiveCell(){return it(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(_e){const dt=this._dateAdapter.getMonth(this.activeDate),Dt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(_e,dt,1));return this._dateAdapter.createDate(_e,dt,Math.min(this._dateAdapter.getDate(this.activeDate),Dt))}_createCellForYear(_e){const dt=this._dateAdapter.createDate(_e,0,1),Dt=this._dateAdapter.getYearName(dt),Bt=this.dateClass?this.dateClass(dt,"multi-year"):void 0;return new ye(_e,Dt,Dt,this._shouldEnableYear(_e),Bt)}_shouldEnableYear(_e){if(null==_e||this.maxDate&&_e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&_e{class Yt{get activeDate(){return this._activeDate}set activeDate(_e){let dt=this._activeDate;const Dt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Dt,this.minDate,this.maxDate),this._dateAdapter.getYear(dt)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(_e){this._selected=_e instanceof pe?_e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e)),this._setSelectedMonth(_e)}get minDate(){return this._minDate}set minDate(_e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e))}get maxDate(){return this._maxDate}set maxDate(_e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e))}constructor(_e,dt,Dt,Bt){this._changeDetectorRef=_e,this._dateFormats=dt,this._dateAdapter=Dt,this._dir=Bt,this._rerenderSubscription=w.w0.EMPTY,this.selectedChange=new s.vpe,this.monthSelected=new s.vpe,this.activeDateChange=new s.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,j.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(_e){const dt=_e.value,Dt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),dt,1);this.monthSelected.emit(Dt);const Bt=this._getDateFromMonth(dt);this.selectedChange.emit(Bt)}_updateActiveDate(_e){const Dt=this._activeDate;this.activeDate=this._getDateFromMonth(_e.value),this._dateAdapter.compareDate(Dt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(_e){const dt=this._activeDate,Dt=this._isRtl();switch(_e.keyCode){case D.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Dt?1:-1);break;case D.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Dt?-1:1);break;case D.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case D.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case D.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case D.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case D.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,_e.altKey?-10:-1);break;case D.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,_e.altKey?10:1);break;case D.K5:case D.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(dt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),_e.preventDefault()}_handleCalendarBodyKeyup(_e){(_e.keyCode===D.L_||_e.keyCode===D.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:_e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let _e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(dt=>dt.map(Dt=>this._createCellForMonth(Dt,_e[Dt]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(_e){return _e&&this._dateAdapter.getYear(_e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(_e):null}_getDateFromMonth(_e){const dt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),_e,1),Dt=this._dateAdapter.getNumDaysInMonth(dt);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),_e,Math.min(this._dateAdapter.getDate(this.activeDate),Dt))}_createCellForMonth(_e,dt){const Dt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),_e,1),Bt=this._dateAdapter.format(Dt,this._dateFormats.display.monthYearA11yLabel),Ot=this.dateClass?this.dateClass(Dt,"year"):void 0;return new ye(_e,dt.toLocaleUpperCase(),Bt,this._shouldEnableMonth(_e),Ot)}_shouldEnableMonth(_e){const dt=this._dateAdapter.getYear(this.activeDate);if(null==_e||this._isYearAndMonthAfterMaxDate(dt,_e)||this._isYearAndMonthBeforeMinDate(dt,_e))return!1;if(!this.dateFilter)return!0;for(let Bt=this._dateAdapter.createDate(dt,_e,1);this._dateAdapter.getMonth(Bt)==_e;Bt=this._dateAdapter.addCalendarDays(Bt,1))if(this.dateFilter(Bt))return!0;return!1}_isYearAndMonthAfterMaxDate(_e,dt){if(this.maxDate){const Dt=this._dateAdapter.getYear(this.maxDate),Bt=this._dateAdapter.getMonth(this.maxDate);return _e>Dt||_e===Dt&&dt>Bt}return!1}_isYearAndMonthBeforeMinDate(_e,dt){if(this.minDate){const Dt=this._dateAdapter.getYear(this.minDate),Bt=this._dateAdapter.getMonth(this.minDate);return _e{class Yt{constructor(_e,dt,Dt,Bt,Ot){this._intl=_e,this.calendar=dt,this._dateAdapter=Dt,this._dateFormats=Bt,this._id="mat-calendar-header-"+Nt++,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>Ot.markForCheck())}get periodButtonText(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}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:-Ie)}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:Ie)}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(_e,dt){return"month"==this.calendar.currentView?this._dateAdapter.getYear(_e)==this._dateAdapter.getYear(dt)&&this._dateAdapter.getMonth(_e)==this._dateAdapter.getMonth(dt):"year"==this.calendar.currentView?this._dateAdapter.getYear(_e)==this._dateAdapter.getYear(dt):Tt(this._dateAdapter,_e,dt,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){const dt=this._dateAdapter.getYear(this.calendar.activeDate)-it(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),Dt=dt+Ie-1;return[this._dateAdapter.getYearName(this._dateAdapter.createDate(dt,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(Dt,0,1))]}}return Yt.\u0275fac=function(_e){return new(_e||Yt)(s.Y36(at),s.Y36((0,s.Gpc)(()=>ke)),s.Y36(P._A,8),s.Y36(P.sG,8),s.Y36(s.sBO))},Yt.\u0275cmp=s.Xpm({type:Yt,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:f,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["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"],[1,"mat-calendar-hidden-label",3,"id"]],template:function(_e,dt){1&_e&&(s.F$t(),s.TgZ(0,"div",0)(1,"div",1)(2,"button",2),s.NdJ("click",function(){return dt.currentPeriodClicked()}),s.TgZ(3,"span",3),s._uU(4),s.qZA(),s.O4$(),s.TgZ(5,"svg",4),s._UZ(6,"polygon",5),s.qZA()(),s.kcU(),s._UZ(7,"div",6),s.Hsn(8),s.TgZ(9,"button",7),s.NdJ("click",function(){return dt.previousClicked()}),s.qZA(),s.TgZ(10,"button",8),s.NdJ("click",function(){return dt.nextClicked()}),s.qZA()()(),s.TgZ(11,"label",9),s._uU(12),s.qZA()),2&_e&&(s.xp6(2),s.uIk("aria-label",dt.periodButtonLabel)("aria-describedby",dt._periodButtonLabelId),s.xp6(2),s.Oqu(dt.periodButtonText),s.xp6(1),s.ekj("mat-calendar-invert","month"!==dt.calendar.currentView),s.xp6(4),s.Q6J("disabled",!dt.previousEnabled()),s.uIk("aria-label",dt.prevButtonLabel),s.xp6(1),s.Q6J("disabled",!dt.nextEnabled()),s.uIk("aria-label",dt.nextButtonLabel),s.xp6(1),s.Q6J("id",dt._periodButtonLabelId),s.xp6(1),s.Oqu(dt.periodButtonDescription))},dependencies:[y.lW,y.RK],encapsulation:2,changeDetection:0}),Yt})(),ke=(()=>{class Yt{get startAt(){return this._startAt}set startAt(_e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e))}get selected(){return this._selected}set selected(_e){this._selected=_e instanceof pe?_e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e))}get minDate(){return this._minDate}set minDate(_e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e))}get maxDate(){return this._maxDate}set maxDate(_e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e))}get activeDate(){return this._clampedActiveDate}set activeDate(_e){this._clampedActiveDate=this._dateAdapter.clampDate(_e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(_e){const dt=this._currentView!==_e?_e:null;this._currentView=_e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),dt&&this.viewChanged.emit(dt)}constructor(_e,dt,Dt,Bt){this._dateAdapter=dt,this._dateFormats=Dt,this._changeDetectorRef=Bt,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new s.vpe,this.yearSelected=new s.vpe,this.monthSelected=new s.vpe,this.viewChanged=new s.vpe(!0),this._userSelection=new s.vpe,this._userDragDrop=new s.vpe,this._activeDrag=null,this.stateChanges=new d.x,this._intlChanges=_e.changes.subscribe(()=>{Bt.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new _.C5(this.headerComponent||Gt),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(_e){const dt=_e.minDate&&!this._dateAdapter.sameDate(_e.minDate.previousValue,_e.minDate.currentValue)?_e.minDate:void 0,Dt=_e.maxDate&&!this._dateAdapter.sameDate(_e.maxDate.previousValue,_e.maxDate.currentValue)?_e.maxDate:void 0,Bt=dt||Dt||_e.dateFilter;if(Bt&&!Bt.firstChange){const Ot=this._getCurrentViewComponent();Ot&&(this._changeDetectorRef.detectChanges(),Ot._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(_e){const dt=_e.value;(this.selected instanceof pe||dt&&!this._dateAdapter.sameDate(dt,this.selected))&&this.selectedChange.emit(dt),this._userSelection.emit(_e)}_yearSelectedInMultiYearView(_e){this.yearSelected.emit(_e)}_monthSelectedInYearView(_e){this.monthSelected.emit(_e)}_goToDateInView(_e,dt){this.activeDate=_e,this.currentView=dt}_dragStarted(_e){this._activeDrag=_e}_dragEnded(_e){this._activeDrag&&(_e.value&&this._userDragDrop.emit(_e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return Yt.\u0275fac=function(_e){return new(_e||Yt)(s.Y36(at),s.Y36(P._A,8),s.Y36(P.sG,8),s.Y36(s.sBO))},Yt.\u0275cmp=s.Xpm({type:Yt,selectors:[["mat-calendar"]],viewQuery:function(_e,dt){if(1&_e&&(s.Gf(qe,5),s.Gf(xt,5),s.Gf(mt,5)),2&_e){let Dt;s.iGM(Dt=s.CRH())&&(dt.monthView=Dt.first),s.iGM(Dt=s.CRH())&&(dt.yearView=Dt.first),s.iGM(Dt=s.CRH())&&(dt.multiYearView=Dt.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[s._Bn([rt]),s.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","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded",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","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(_e,dt){1&_e&&(s.YNc(0,l,0,0,"ng-template",0),s.TgZ(1,"div",1),s.YNc(2,v,1,11,"mat-month-view",2),s.YNc(3,I,1,6,"mat-year-view",3),s.YNc(4,k,1,6,"mat-multi-year-view",4),s.qZA()),2&_e&&(s.Q6J("cdkPortalOutlet",dt._calendarHeaderPortal),s.xp6(1),s.Q6J("ngSwitch",dt.currentView),s.xp6(1),s.Q6J("ngSwitchCase","month"),s.xp6(1),s.Q6J("ngSwitchCase","year"),s.xp6(1),s.Q6J("ngSwitchCase","multi-year"))},dependencies:[T.RF,T.n9,t.kH,_.Pl,qe,xt,mt],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;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px}.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-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}.mat-calendar-hidden-label{display:none}'],encapsulation:2,changeDetection:0}),Yt})();const $={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 ue=0;const Le=new s.OlP("mat-datepicker-scroll-strategy"),$t={provide:Le,deps:[e.aV],useFactory:function Je(Yt){return()=>Yt.scrollStrategies.reposition()}},Vt=(0,P.pj)(class{constructor(Yt){this._elementRef=Yt}});let ii=(()=>{class Yt extends Vt{constructor(_e,dt,Dt,Bt,Ot,vi){super(_e),this._changeDetectorRef=dt,this._globalModel=Dt,this._dateAdapter=Bt,this._rangeSelectionStrategy=Ot,this._subscriptions=new w.w0,this._animationDone=new d.x,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=vi.closeCalendarLabel}ngOnInit(){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(_e){const dt=this._model.selection,Dt=_e.value,Bt=dt instanceof pe;if(Bt&&this._rangeSelectionStrategy){const Ot=this._rangeSelectionStrategy.selectionFinished(Dt,dt,_e.event);this._model.updateSelection(Ot,this)}else Dt&&(Bt||!this._dateAdapter.sameDate(Dt,dt))&&this._model.add(Dt);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(_e){this._model.updateSelection(_e.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(_e){this._isAnimating="start"===_e.phaseName,this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(_e,dt){this._model=_e?this._globalModel.clone():this._globalModel,this._actionsPortal=_e,dt&&this._changeDetectorRef.detectChanges()}}return Yt.\u0275fac=function(_e){return new(_e||Yt)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(Ve),s.Y36(P._A),s.Y36(Ut,8),s.Y36(at))},Yt.\u0275cmp=s.Xpm({type:Yt,selectors:[["mat-datepicker-content"]],viewQuery:function(_e,dt){if(1&_e&&s.Gf(ke,5),2&_e){let Dt;s.iGM(Dt=s.CRH())&&(dt._calendar=Dt.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(_e,dt){1&_e&&s.WFA("@transformPanel.start",function(Bt){return dt._handleAnimationEvent(Bt)})("@transformPanel.done",function(Bt){return dt._handleAnimationEvent(Bt)}),2&_e&&(s.d8E("@transformPanel",dt._animationState),s.ekj("mat-datepicker-content-touch",dt.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[s.qOj],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(_e,dt){if(1&_e&&(s.TgZ(0,"div",0)(1,"mat-calendar",1),s.NdJ("yearSelected",function(Bt){return dt.datepicker._selectYear(Bt)})("monthSelected",function(Bt){return dt.datepicker._selectMonth(Bt)})("viewChanged",function(Bt){return dt.datepicker._viewChanged(Bt)})("_userSelection",function(Bt){return dt._handleUserSelection(Bt)})("_userDragDrop",function(Bt){return dt._handleUserDragDrop(Bt)}),s.qZA(),s.YNc(2,x,0,0,"ng-template",2),s.TgZ(3,"button",3),s.NdJ("focus",function(){return dt._closeButtonFocused=!0})("blur",function(){return dt._closeButtonFocused=!1})("click",function(){return dt.datepicker.close()}),s._uU(4),s.qZA()()),2&_e){let Dt;s.ekj("mat-datepicker-content-container-with-custom-header",dt.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",dt._actionsPortal),s.uIk("aria-modal",!0)("aria-labelledby",null!==(Dt=dt._dialogLabelId)&&void 0!==Dt?Dt:void 0),s.xp6(1),s.Q6J("id",dt.datepicker.id)("ngClass",dt.datepicker.panelClass)("startAt",dt.datepicker.startAt)("startView",dt.datepicker.startView)("minDate",dt.datepicker._getMinDate())("maxDate",dt.datepicker._getMaxDate())("dateFilter",dt.datepicker._getDateFilter())("headerComponent",dt.datepicker.calendarHeaderComponent)("selected",dt._getSelected())("dateClass",dt.datepicker.dateClass)("comparisonStart",dt.comparisonStart)("comparisonEnd",dt.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",dt.startDateAccessibleName)("endDateAccessibleName",dt.endDateAccessibleName),s.xp6(1),s.Q6J("cdkPortalOutlet",dt._actionsPortal),s.xp6(1),s.ekj("cdk-visually-hidden",!dt._closeButtonFocused),s.Q6J("color",dt.color||"primary"),s.xp6(1),s.Oqu(dt._closeButtonText)}},dependencies:[T.mk,y.lW,t.mK,_.Pl,ke],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.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}}"],encapsulation:2,data:{animation:[$.transformPanel,$.fadeInCalendar]},changeDetection:0}),Yt})(),pt=(()=>{class Yt{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(_e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(_e){this._color=_e}get touchUi(){return this._touchUi}set touchUi(_e){this._touchUi=(0,J.Ig)(_e)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(_e){const dt=(0,J.Ig)(_e);dt!==this._disabled&&(this._disabled=dt,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(_e){this._restoreFocus=(0,J.Ig)(_e)}get panelClass(){return this._panelClass}set panelClass(_e){this._panelClass=(0,J.du)(_e)}get opened(){return this._opened}set opened(_e){(0,J.Ig)(_e)?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}constructor(_e,dt,Dt,Bt,Ot,vi,li){this._overlay=_e,this._ngZone=dt,this._viewContainerRef=Dt,this._dateAdapter=Ot,this._dir=vi,this._model=li,this._inputStateChanges=w.w0.EMPTY,this._document=(0,s.f3M)(T.K0),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new s.vpe,this.monthSelected=new s.vpe,this.viewChanged=new s.vpe(!0),this.openedStream=new s.vpe,this.closedStream=new s.vpe,this._opened=!1,this.id="mat-datepicker-"+ue++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new d.x,this._scrollStrategy=Bt}ngOnChanges(_e){const dt=_e.xPosition||_e.yPosition;if(dt&&!dt.firstChange&&this._overlayRef){const Dt=this._overlayRef.getConfig().positionStrategy;Dt instanceof e._G&&(this._setConnectedPositions(Dt),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(_e){this._model.add(_e)}_selectYear(_e){this.yearSelected.emit(_e)}_selectMonth(_e){this.monthSelected.emit(_e)}_viewChanged(_e){this.viewChanged.emit(_e)}registerInput(_e){return this._inputStateChanges.unsubscribe(),this.datepickerInput=_e,this._inputStateChanges=_e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(_e){this._actionsPortal=_e,this._componentRef?.instance._assignActions(_e,!0)}removeActions(_e){_e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this._focusedElementBeforeOpen=(0,V.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;const _e=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,dt=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:Dt,location:Bt}=this._componentRef;Dt._startExitAnimation(),Dt._animationDone.pipe((0,Y.q)(1)).subscribe(()=>{const Ot=this._document.activeElement;_e&&(!Ot||Ot===this._document.activeElement||Bt.nativeElement.contains(Ot))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}_e?setTimeout(dt):dt()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(_e){_e.datepicker=this,_e.color=this.color,_e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),_e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const _e=this.touchUi,dt=new _.C5(ii,this._viewContainerRef),Dt=this._overlayRef=this._overlay.create(new e.X_({positionStrategy:_e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[_e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:_e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(_e?"dialog":"popup")}));this._getCloseStream(Dt).subscribe(Bt=>{Bt&&Bt.preventDefault(),this.close()}),Dt.keydownEvents().subscribe(Bt=>{const Ot=Bt.keyCode;(Ot===D.LH||Ot===D.JH||Ot===D.oh||Ot===D.SV||Ot===D.Ku||Ot===D.VM)&&Bt.preventDefault()}),this._componentRef=Dt.attach(dt),this._forwardContentValues(this._componentRef.instance),_e||this._ngZone.onStable.pipe((0,Y.q)(1)).subscribe(()=>Dt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const _e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(_e)}_setConnectedPositions(_e){const dt="end"===this.xPosition?"end":"start",Dt="start"===dt?"end":"start",Bt="above"===this.yPosition?"bottom":"top",Ot="top"===Bt?"bottom":"top";return _e.withPositions([{originX:dt,originY:Ot,overlayX:dt,overlayY:Bt},{originX:dt,originY:Bt,overlayX:dt,overlayY:Ot},{originX:Dt,originY:Ot,overlayX:Dt,overlayY:Bt},{originX:Dt,originY:Bt,overlayX:Dt,overlayY:Ot}])}_getCloseStream(_e){const dt=["ctrlKey","shiftKey","metaKey"];return(0,C.T)(_e.backdropClick(),_e.detachments(),_e.keydownEvents().pipe((0,Q.h)(Dt=>Dt.keyCode===D.hY&&!(0,D.Vb)(Dt)||this.datepickerInput&&(0,D.Vb)(Dt,"altKey")&&Dt.keyCode===D.LH&&dt.every(Bt=>!(0,D.Vb)(Dt,Bt)))))}}return Yt.\u0275fac=function(_e){return new(_e||Yt)(s.Y36(e.aV),s.Y36(s.R0b),s.Y36(s.s_b),s.Y36(Le),s.Y36(P._A,8),s.Y36(H.Is,8),s.Y36(Ve))},Yt.\u0275dir=s.lG2({type:Yt,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:[s.TTD]}),Yt})(),ot=(()=>{class Yt extends pt{}return Yt.\u0275fac=function(){let qt;return function(dt){return(qt||(qt=s.n5z(Yt)))(dt||Yt)}}(),Yt.\u0275cmp=s.Xpm({type:Yt,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[s._Bn([rt,{provide:pt,useExisting:Yt}]),s.qOj],decls:0,vars:0,template:function(_e,dt){},encapsulation:2,changeDetection:0}),Yt})();class ft{constructor(qt,_e){this.target=qt,this.targetElement=_e,this.value=this.target.value}}let St=(()=>{class Yt{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(_e){this._assignValueProgrammatically(_e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(_e){const dt=(0,J.Ig)(_e),Dt=this._elementRef.nativeElement;this._disabled!==dt&&(this._disabled=dt,this.stateChanges.next(void 0)),dt&&this._isInitialized&&Dt.blur&&Dt.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(_e){this._model=_e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(dt=>{if(this._shouldHandleChangeEvent(dt)){const Dt=this._getValueFromModel(dt.selection);this._lastValueValid=this._isValidValue(Dt),this._cvaOnChange(Dt),this._onTouched(),this._formatValue(Dt),this.dateInput.emit(new ft(this,this._elementRef.nativeElement)),this.dateChange.emit(new ft(this,this._elementRef.nativeElement))}})}constructor(_e,dt,Dt){this._elementRef=_e,this._dateAdapter=dt,this._dateFormats=Dt,this.dateChange=new s.vpe,this.dateInput=new s.vpe,this.stateChanges=new d.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=w.w0.EMPTY,this._localeSubscription=w.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Bt=>{const Ot=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Bt.value));return!Ot||this._matchesFilter(Ot)?null:{matDatepickerFilter:!0}},this._minValidator=Bt=>{const Ot=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Bt.value)),vi=this._getMinDate();return!vi||!Ot||this._dateAdapter.compareDate(vi,Ot)<=0?null:{matDatepickerMin:{min:vi,actual:Ot}}},this._maxValidator=Bt=>{const Ot=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Bt.value)),vi=this._getMaxDate();return!vi||!Ot||this._dateAdapter.compareDate(vi,Ot)>=0?null:{matDatepickerMax:{max:vi,actual:Ot}}},this._lastValueValid=!1,this._localeSubscription=dt.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(_e){(function gt(Yt,qt){const _e=Object.keys(Yt);for(let dt of _e){const{previousValue:Dt,currentValue:Bt}=Yt[dt];if(!qt.isDateInstance(Dt)||!qt.isDateInstance(Bt))return!0;if(!qt.sameDate(Dt,Bt))return!0}return!1})(_e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(_e){this._validatorOnChange=_e}validate(_e){return this._validator?this._validator(_e):null}writeValue(_e){this._assignValueProgrammatically(_e)}registerOnChange(_e){this._cvaOnChange=_e}registerOnTouched(_e){this._onTouched=_e}setDisabledState(_e){this.disabled=_e}_onKeydown(_e){(0,D.Vb)(_e,"altKey")&&_e.keyCode===D.JH&&["ctrlKey","shiftKey","metaKey"].every(Bt=>!(0,D.Vb)(_e,Bt))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),_e.preventDefault())}_onInput(_e){const dt=this._lastValueValid;let Dt=this._dateAdapter.parse(_e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(Dt),Dt=this._dateAdapter.getValidDateOrNull(Dt);const Bt=!this._dateAdapter.sameDate(Dt,this.value);!Dt||Bt?this._cvaOnChange(Dt):(_e&&!this.value&&this._cvaOnChange(Dt),dt!==this._lastValueValid&&this._validatorOnChange()),Bt&&(this._assignValue(Dt),this.dateInput.emit(new ft(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new ft(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(_e){this._elementRef.nativeElement.value=null!=_e?this._dateAdapter.format(_e,this._dateFormats.display.dateInput):""}_assignValue(_e){this._model?(this._assignValueToModel(_e),this._pendingValue=null):this._pendingValue=_e}_isValidValue(_e){return!_e||this._dateAdapter.isValid(_e)}_parentDisabled(){return!1}_assignValueProgrammatically(_e){_e=this._dateAdapter.deserialize(_e),this._lastValueValid=this._isValidValue(_e),_e=this._dateAdapter.getValidDateOrNull(_e),this._assignValue(_e),this._formatValue(_e)}_matchesFilter(_e){const dt=this._getDateFilter();return!dt||dt(_e)}}return Yt.\u0275fac=function(_e){return new(_e||Yt)(s.Y36(s.SBq),s.Y36(P._A,8),s.Y36(P.sG,8))},Yt.\u0275dir=s.lG2({type:Yt,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[s.TTD]}),Yt})();const $e={provide:me.JU,useExisting:(0,s.Gpc)(()=>vt),multi:!0},_t={provide:me.Cf,useExisting:(0,s.Gpc)(()=>vt),multi:!0};let vt=(()=>{class Yt extends St{set matDatepicker(_e){_e&&(this._datepicker=_e,this._closedSubscription=_e.closedStream.subscribe(()=>this._onTouched()),this._registerModel(_e.registerInput(this)))}get min(){return this._min}set min(_e){const dt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e));this._dateAdapter.sameDate(dt,this._min)||(this._min=dt,this._validatorOnChange())}get max(){return this._max}set max(_e){const dt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e));this._dateAdapter.sameDate(dt,this._max)||(this._max=dt,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(_e){const dt=this._matchesFilter(this.value);this._dateFilter=_e,this._matchesFilter(this.value)!==dt&&this._validatorOnChange()}constructor(_e,dt,Dt,Bt){super(_e,dt,Dt),this._formField=Bt,this._closedSubscription=w.w0.EMPTY,this._validator=me.kI.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(_e){return _e}_assignValueToModel(_e){this._model&&this._model.updateSelection(_e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(_e){return _e.source!==this}}return Yt.\u0275fac=function(_e){return new(_e||Yt)(s.Y36(s.SBq),s.Y36(P._A,8),s.Y36(P.sG,8),s.Y36(re.G_,8))},Yt.\u0275dir=s.lG2({type:Yt,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(_e,dt){1&_e&&s.NdJ("input",function(Bt){return dt._onInput(Bt.target.value)})("change",function(){return dt._onChange()})("blur",function(){return dt._onBlur()})("keydown",function(Bt){return dt._onKeydown(Bt)}),2&_e&&(s.Ikx("disabled",dt.disabled),s.uIk("aria-haspopup",dt._datepicker?"dialog":null)("aria-owns",(null==dt._datepicker?null:dt._datepicker.opened)&&dt._datepicker.id||null)("min",dt.min?dt._dateAdapter.toIso8601(dt.min):null)("max",dt.max?dt._dateAdapter.toIso8601(dt.max):null)("data-mat-calendar",dt._datepicker?dt._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[s._Bn([$e,_t,{provide:ie.Jk,useExisting:Yt}]),s.qOj]}),Yt})(),He=(()=>{class Yt{}return Yt.\u0275fac=function(_e){return new(_e||Yt)},Yt.\u0275dir=s.lG2({type:Yt,selectors:[["","matDatepickerToggleIcon",""]]}),Yt})(),Et=(()=>{class Yt{get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(_e){this._disabled=(0,J.Ig)(_e)}constructor(_e,dt,Dt){this._intl=_e,this._changeDetectorRef=dt,this._stateChanges=w.w0.EMPTY;const Bt=Number(Dt);this.tabIndex=Bt||0===Bt?Bt:null}ngOnChanges(_e){_e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(_e){this.datepicker&&!this.disabled&&(this.datepicker.open(),_e.stopPropagation())}_watchStateChanges(){const _e=this.datepicker?this.datepicker.stateChanges:(0,L.of)(),dt=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,L.of)(),Dt=this.datepicker?(0,C.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,L.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,C.T)(this._intl.changes,_e,dt,Dt).subscribe(()=>this._changeDetectorRef.markForCheck())}}return Yt.\u0275fac=function(_e){return new(_e||Yt)(s.Y36(at),s.Y36(s.sBO),s.$8M("tabindex"))},Yt.\u0275cmp=s.Xpm({type:Yt,selectors:[["mat-datepicker-toggle"]],contentQueries:function(_e,dt,Dt){if(1&_e&&s.Suo(Dt,He,5),2&_e){let Bt;s.iGM(Bt=s.CRH())&&(dt._customIcon=Bt.first)}},viewQuery:function(_e,dt){if(1&_e&&s.Gf(n,5),2&_e){let Dt;s.iGM(Dt=s.CRH())&&(dt._button=Dt.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(_e,dt){1&_e&&s.NdJ("click",function(Bt){return dt._open(Bt)}),2&_e&&(s.uIk("tabindex",null)("data-mat-calendar",dt.datepicker?dt.datepicker.id:null),s.ekj("mat-datepicker-toggle-active",dt.datepicker&&dt.datepicker.opened)("mat-accent",dt.datepicker&&"accent"===dt.datepicker.color)("mat-warn",dt.datepicker&&"warn"===dt.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[s.TTD],ngContentSelectors:O,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(_e,dt){1&_e&&(s.F$t(W),s.TgZ(0,"button",0,1),s.YNc(2,g,2,0,"svg",2),s.Hsn(3),s.qZA()),2&_e&&(s.Q6J("disabled",dt.disabled)("disableRipple",dt.disableRipple),s.uIk("aria-haspopup",dt.datepicker?"dialog":null)("aria-label",dt.ariaLabel||dt._intl.openCalendarLabel)("tabindex",dt.disabled?-1:dt.tabIndex),s.xp6(2),s.Q6J("ngIf",!dt._customIcon))},dependencies:[T.O5,y.RK],styles:[".mat-datepicker-toggle{pointer-events:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),Yt})(),Yi=(()=>{class Yt{}return Yt.\u0275fac=function(_e){return new(_e||Yt)},Yt.\u0275mod=s.oAB({type:Yt}),Yt.\u0275inj=s.cJS({providers:[at,$t],imports:[T.ez,y.ot,e.U8,t.rt,_.eL,P.BQ,h.ZD]}),Yt})()},5412:(We,q,m)=>{"use strict";m.d(q,{WI:()=>xe,Bq:()=>fe,uw:()=>pe,ZT:()=>Qe,Is:()=>lt,so:()=>at});var t=m(8184),e=m(6895),_=m(4650),T=m(4761),s=m(3353),y=m(4080),h=m(9521),P=m(7579),d=m(9770),w=m(9646),C=m(445),L=m(8675);function D(Ge,yt){}class H{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let Y=(()=>{class Ge extends y.en{constructor(be,qe,Ie,X,mt,Tt,it,je){super(),this._elementRef=be,this._focusTrapFactory=qe,this._config=X,this._interactivityChecker=mt,this._ngZone=Tt,this._overlayRef=it,this._focusMonitor=je,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=zt=>{this._portalOutlet.hasAttached();const xt=this._portalOutlet.attachDomPortal(zt);return this._contentAttached(),xt},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=Ie}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(be){this._portalOutlet.hasAttached();const qe=this._portalOutlet.attachComponentPortal(be);return this._contentAttached(),qe}attachTemplatePortal(be){this._portalOutlet.hasAttached();const qe=this._portalOutlet.attachTemplatePortal(be);return this._contentAttached(),qe}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(be,qe){this._interactivityChecker.isFocusable(be)||(be.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ie=()=>{be.removeEventListener("blur",Ie),be.removeEventListener("mousedown",Ie),be.removeAttribute("tabindex")};be.addEventListener("blur",Ie),be.addEventListener("mousedown",Ie)})),be.focus(qe)}_focusByCssSelector(be,qe){let Ie=this._elementRef.nativeElement.querySelector(be);Ie&&this._forceFocus(Ie,qe)}_trapFocus(){const be=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||be.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(qe=>{qe||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 be=this._config.restoreFocus;let qe=null;if("string"==typeof be?qe=this._document.querySelector(be):"boolean"==typeof be?qe=be?this._elementFocusedBeforeDialogWasOpened:null:be&&(qe=be),this._config.restoreFocus&&qe&&"function"==typeof qe.focus){const Ie=(0,s.ht)(),X=this._elementRef.nativeElement;(!Ie||Ie===this._document.body||Ie===X||X.contains(Ie))&&(this._focusMonitor?(this._focusMonitor.focusVia(qe,this._closeInteractionType),this._closeInteractionType=null):qe.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const be=this._elementRef.nativeElement,qe=(0,s.ht)();return be===qe||be.contains(qe)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,s.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return Ge.\u0275fac=function(be){return new(be||Ge)(_.Y36(_.SBq),_.Y36(T.qV),_.Y36(e.K0,8),_.Y36(H),_.Y36(T.ic),_.Y36(_.R0b),_.Y36(t.Iu),_.Y36(T.tE))},Ge.\u0275cmp=_.Xpm({type:Ge,selectors:[["cdk-dialog-container"]],viewQuery:function(be,qe){if(1&be&&_.Gf(y.Pl,7),2&be){let Ie;_.iGM(Ie=_.CRH())&&(qe._portalOutlet=Ie.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(be,qe){2&be&&_.uIk("id",qe._config.id||null)("role",qe._config.role)("aria-modal",qe._config.ariaModal)("aria-labelledby",qe._config.ariaLabel?null:qe._ariaLabelledBy)("aria-label",qe._config.ariaLabel)("aria-describedby",qe._config.ariaDescribedBy||null)},features:[_.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(be,qe){1&be&&_.YNc(0,D,0,0,"ng-template",0)},dependencies:[y.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),Ge})();class j{constructor(yt,be){this.overlayRef=yt,this.config=be,this.closed=new P.x,this.disableClose=be.disableClose,this.backdropClick=yt.backdropClick(),this.keydownEvents=yt.keydownEvents(),this.outsidePointerEvents=yt.outsidePointerEvents(),this.id=be.id,this.keydownEvents.subscribe(qe=>{qe.keyCode===h.hY&&!this.disableClose&&!(0,h.Vb)(qe)&&(qe.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=yt.detachments().subscribe(()=>{!1!==be.closeOnOverlayDetachments&&this.close()})}close(yt,be){if(this.containerInstance){const qe=this.closed;this.containerInstance._closeInteractionType=be?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),qe.next(yt),qe.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(yt="",be=""){return this.overlayRef.updateSize({width:yt,height:be}),this}addPanelClass(yt){return this.overlayRef.addPanelClass(yt),this}removePanelClass(yt){return this.overlayRef.removePanelClass(yt),this}}const Q=new _.OlP("DialogScrollStrategy"),J=new _.OlP("DialogData"),ee=new _.OlP("DefaultDialogConfig"),re={provide:Q,deps:[t.aV],useFactory:function me(Ge){return()=>Ge.scrollStrategies.block()}};let ie=0,se=(()=>{class Ge{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(be,qe,Ie,X,mt,Tt){this._overlay=be,this._injector=qe,this._defaultOptions=Ie,this._parentDialog=X,this._overlayContainer=mt,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new P.x,this._afterOpenedAtThisLevel=new P.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,d.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,L.O)(void 0))),this._scrollStrategy=Tt}open(be,qe){(qe={...this._defaultOptions||new H,...qe}).id=qe.id||"cdk-dialog-"+ie++,qe.id&&this.getDialogById(qe.id);const X=this._getOverlayConfig(qe),mt=this._overlay.create(X),Tt=new j(mt,qe),it=this._attachContainer(mt,Tt,qe);return Tt.containerInstance=it,this._attachDialogContent(be,Tt,it,qe),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Tt),Tt.closed.subscribe(()=>this._removeOpenDialog(Tt,!0)),this.afterOpened.next(Tt),Tt}closeAll(){ce(this.openDialogs,be=>be.close())}getDialogById(be){return this.openDialogs.find(qe=>qe.id===be)}ngOnDestroy(){ce(this._openDialogsAtThisLevel,be=>{!1===be.config.closeOnDestroy&&this._removeOpenDialog(be,!1)}),ce(this._openDialogsAtThisLevel,be=>be.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(be){const qe=new t.X_({positionStrategy:be.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:be.scrollStrategy||this._scrollStrategy(),panelClass:be.panelClass,hasBackdrop:be.hasBackdrop,direction:be.direction,minWidth:be.minWidth,minHeight:be.minHeight,maxWidth:be.maxWidth,maxHeight:be.maxHeight,width:be.width,height:be.height,disposeOnNavigation:be.closeOnNavigation});return be.backdropClass&&(qe.backdropClass=be.backdropClass),qe}_attachContainer(be,qe,Ie){const X=Ie.injector||Ie.viewContainerRef?.injector,mt=[{provide:H,useValue:Ie},{provide:j,useValue:qe},{provide:t.Iu,useValue:be}];let Tt;Ie.container?"function"==typeof Ie.container?Tt=Ie.container:(Tt=Ie.container.type,mt.push(...Ie.container.providers(Ie))):Tt=Y;const it=new y.C5(Tt,Ie.viewContainerRef,_.zs3.create({parent:X||this._injector,providers:mt}),Ie.componentFactoryResolver);return be.attach(it).instance}_attachDialogContent(be,qe,Ie,X){if(be instanceof _.Rgc){const mt=this._createInjector(X,qe,Ie,void 0);let Tt={$implicit:X.data,dialogRef:qe};X.templateContext&&(Tt={...Tt,..."function"==typeof X.templateContext?X.templateContext():X.templateContext}),Ie.attachTemplatePortal(new y.UE(be,null,Tt,mt))}else{const mt=this._createInjector(X,qe,Ie,this._injector),Tt=Ie.attachComponentPortal(new y.C5(be,X.viewContainerRef,mt,X.componentFactoryResolver));qe.componentInstance=Tt.instance}}_createInjector(be,qe,Ie,X){const mt=be.injector||be.viewContainerRef?.injector,Tt=[{provide:J,useValue:be.data},{provide:j,useValue:qe}];return be.providers&&("function"==typeof be.providers?Tt.push(...be.providers(qe,be,Ie)):Tt.push(...be.providers)),be.direction&&(!mt||!mt.get(C.Is,null,{optional:!0}))&&Tt.push({provide:C.Is,useValue:{value:be.direction,change:(0,w.of)()}}),_.zs3.create({parent:mt||X,providers:Tt})}_removeOpenDialog(be,qe){const Ie=this.openDialogs.indexOf(be);Ie>-1&&(this.openDialogs.splice(Ie,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((X,mt)=>{X?mt.setAttribute("aria-hidden",X):mt.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),qe&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const be=this._overlayContainer.getContainerElement();if(be.parentElement){const qe=be.parentElement.children;for(let Ie=qe.length-1;Ie>-1;Ie--){const X=qe[Ie];X!==be&&"SCRIPT"!==X.nodeName&&"STYLE"!==X.nodeName&&!X.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(X,X.getAttribute("aria-hidden")),X.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const be=this._parentDialog;return be?be._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return Ge.\u0275fac=function(be){return new(be||Ge)(_.LFG(t.aV),_.LFG(_.zs3),_.LFG(ee,8),_.LFG(Ge,12),_.LFG(t.Xj),_.LFG(Q))},Ge.\u0275prov=_.Yz7({token:Ge,factory:Ge.\u0275fac}),Ge})();function ce(Ge,yt){let be=Ge.length;for(;be--;)yt(Ge[be])}let Ce=(()=>{class Ge{}return Ge.\u0275fac=function(be){return new(be||Ge)},Ge.\u0275mod=_.oAB({type:Ge}),Ge.\u0275inj=_.cJS({providers:[se,re],imports:[t.U8,y.eL,T.rt,y.eL]}),Ge})();var M=m(1281),i=m(6451),a=m(9300),f=m(5698),l=m(3238);function I(Ge,yt){}m(7340);class k{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.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const x="mdc-dialog--open",n="mdc-dialog--opening",g="mdc-dialog--closing";let G=(()=>{class Ge extends Y{constructor(be,qe,Ie,X,mt,Tt,it,je){super(be,qe,Ie,X,mt,Tt,it,je),this._animationStateChanged=new _.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(be){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:be})}}return Ge.\u0275fac=function(be){return new(be||Ge)(_.Y36(_.SBq),_.Y36(T.qV),_.Y36(e.K0,8),_.Y36(k),_.Y36(T.ic),_.Y36(_.R0b),_.Y36(t.Iu),_.Y36(T.tE))},Ge.\u0275cmp=_.Xpm({type:Ge,selectors:[["ng-component"]],features:[_.qOj],decls:0,vars:0,template:function(be,qe){},encapsulation:2}),Ge})();const ge="--mat-dialog-transition-duration";function nt(Ge){return null==Ge?null:"number"==typeof Ge?Ge:Ge.endsWith("ms")?(0,M.su)(Ge.substring(0,Ge.length-2)):Ge.endsWith("s")?1e3*(0,M.su)(Ge.substring(0,Ge.length-1)):"0"===Ge?0:null}let Ue=(()=>{class Ge extends G{constructor(be,qe,Ie,X,mt,Tt,it,je,zt){super(be,qe,Ie,X,mt,Tt,it,zt),this._animationMode=je,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._openAnimationDuration=this._animationsEnabled?nt(this._config.enterAnimationDuration)??150:0,this._closeAnimationDuration=this._animationsEnabled?nt(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._openAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._closeAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._openAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(ge,`${this._openAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(n,x)),this._waitForAnimationToComplete(this._openAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(x),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._closeAnimationDuration}),this._hostElement.classList.remove(x),this._animationsEnabled?(this._hostElement.style.setProperty(ge,`${this._openAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(g)),this._waitForAnimationToComplete(this._closeAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(n,g)}_waitForAnimationToComplete(be,qe){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(qe,be)}_requestAnimationFrame(be){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(be):be()})}}return Ge.\u0275fac=function(be){return new(be||Ge)(_.Y36(_.SBq),_.Y36(T.qV),_.Y36(e.K0,8),_.Y36(k),_.Y36(T.ic),_.Y36(_.R0b),_.Y36(t.Iu),_.Y36(_.QbO,8),_.Y36(T.tE))},Ge.\u0275cmp=_.Xpm({type:Ge,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(be,qe){2&be&&(_.Ikx("id",qe._config.id),_.uIk("aria-modal",qe._config.ariaModal)("role",qe._config.role)("aria-labelledby",qe._config.ariaLabel?null:qe._ariaLabelledBy)("aria-label",qe._config.ariaLabel)("aria-describedby",qe._config.ariaDescribedBy||null),_.ekj("_mat-animation-noopable",!qe._animationsEnabled))},features:[_.qOj],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(be,qe){1&be&&(_.TgZ(0,"div",0)(1,"div",1),_.YNc(2,I,0,0,"ng-template",2),_.qZA()())},dependencies:[y.Pl],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, var(--mdc-shape-medium, 4px))}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title,.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__actions,.mat-mdc-dialog-container.mdc-dialog--scrollable.mdc-dialog-scroll-divider-footer .mdc-dialog__actions{border-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title{border-bottom-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, "Arial");line-height:var(--mdc-dialog-subhead-line-height, 14px);font-size:var(--mdc-dialog-subhead-size, 14px);font-weight:var(--mdc-dialog-subhead-weight, 500);letter-spacing:var(--mdc-dialog-subhead-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, black)}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, "Arial");line-height:var(--mdc-dialog-supporting-text-line-height, 14px);font-size:var(--mdc-dialog-supporting-text-size, 14px);font-weight:var(--mdc-dialog-supporting-text-weight, 500);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, black)}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2}),Ge})();class at{constructor(yt,be,qe){this._ref=yt,this._containerInstance=qe,this._afterOpened=new P.x,this._beforeClosed=new P.x,this._state=0,this.disableClose=be.disableClose,this.id=yt.id,qe._animationStateChanged.pipe((0,a.h)(Ie=>"opened"===Ie.state),(0,f.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),qe._animationStateChanged.pipe((0,a.h)(Ie=>"closed"===Ie.state),(0,f.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),yt.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,i.T)(this.backdropClick(),this.keydownEvents().pipe((0,a.h)(Ie=>Ie.keyCode===h.hY&&!this.disableClose&&!(0,h.Vb)(Ie)))).subscribe(Ie=>{this.disableClose||(Ie.preventDefault(),ye(this,"keydown"===Ie.type?"keyboard":"mouse"))})}close(yt){this._result=yt,this._containerInstance._animationStateChanged.pipe((0,a.h)(be=>"closing"===be.state),(0,f.q)(1)).subscribe(be=>{this._beforeClosed.next(yt),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),be.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(yt){let be=this._ref.config.positionStrategy;return yt&&(yt.left||yt.right)?yt.left?be.left(yt.left):be.right(yt.right):be.centerHorizontally(),yt&&(yt.top||yt.bottom)?yt.top?be.top(yt.top):be.bottom(yt.bottom):be.centerVertically(),this._ref.updatePosition(),this}updateSize(yt="",be=""){return this._ref.updateSize(yt,be),this}addPanelClass(yt){return this._ref.addPanelClass(yt),this}removePanelClass(yt){return this._ref.removePanelClass(yt),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function ye(Ge,yt,be){return Ge._closeInteractionType=yt,Ge.close(be)}const xe=new _.OlP("MatMdcDialogData"),fe=new _.OlP("mat-mdc-dialog-default-options"),Oe=new _.OlP("mat-mdc-dialog-scroll-strategy"),Fe={provide:Oe,deps:[t.aV],useFactory:function oe(Ge){return()=>Ge.scrollStrategies.block()}};let he=0,Me=(()=>{class Ge{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const be=this._parentDialog;return be?be._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(be,qe,Ie,X,mt,Tt,it,je,zt,xt){this._overlay=be,this._defaultOptions=Ie,this._parentDialog=X,this._dialogRefConstructor=it,this._dialogContainerType=je,this._dialogDataToken=zt,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new P.x,this._afterOpenedAtThisLevel=new P.x,this._idPrefix="mat-dialog-",this.dialogConfigClass=k,this.afterAllClosed=(0,d.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,L.O)(void 0))),this._scrollStrategy=Tt,this._dialog=qe.get(se)}open(be,qe){let Ie;(qe={...this._defaultOptions||new k,...qe}).id=qe.id||`${this._idPrefix}${he++}`,qe.scrollStrategy=qe.scrollStrategy||this._scrollStrategy();const X=this._dialog.open(be,{...qe,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:qe},{provide:H,useValue:qe}]},templateContext:()=>({dialogRef:Ie}),providers:(mt,Tt,it)=>(Ie=new this._dialogRefConstructor(mt,qe,it),Ie.updatePosition(qe?.position),[{provide:this._dialogContainerType,useValue:it},{provide:this._dialogDataToken,useValue:Tt.data},{provide:this._dialogRefConstructor,useValue:Ie}])});return Ie.componentInstance=X.componentInstance,this.openDialogs.push(Ie),this.afterOpened.next(Ie),Ie.afterClosed().subscribe(()=>{const mt=this.openDialogs.indexOf(Ie);mt>-1&&(this.openDialogs.splice(mt,1),this.openDialogs.length||this._getAfterAllClosed().next())}),Ie}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(be){return this.openDialogs.find(qe=>qe.id===be)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(be){let qe=be.length;for(;qe--;)be[qe].close()}}return Ge.\u0275fac=function(be){_.$Z()},Ge.\u0275prov=_.Yz7({token:Ge,factory:Ge.\u0275fac}),Ge})(),pe=(()=>{class Ge extends Me{constructor(be,qe,Ie,X,mt,Tt,it,je){super(be,qe,X,Tt,it,mt,at,Ue,xe,je),this._idPrefix="mat-mdc-dialog-"}}return Ge.\u0275fac=function(be){return new(be||Ge)(_.LFG(t.aV),_.LFG(_.zs3),_.LFG(e.Ye,8),_.LFG(fe,8),_.LFG(Oe),_.LFG(Ge,12),_.LFG(t.Xj),_.LFG(_.QbO,8))},Ge.\u0275prov=_.Yz7({token:Ge,factory:Ge.\u0275fac}),Ge})(),Qe=(()=>{class Ge{constructor(be,qe,Ie){this.dialogRef=be,this._elementRef=qe,this._dialog=Ie,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=function Ke(Ge,yt){let be=Ge.nativeElement.parentElement;for(;be&&!be.classList.contains("mat-mdc-dialog-container");)be=be.parentElement;return be?yt.find(qe=>qe.id===be.id):null}(this._elementRef,this._dialog.openDialogs))}ngOnChanges(be){const qe=be._matDialogClose||be._matDialogCloseResult;qe&&(this.dialogResult=qe.currentValue)}_onButtonClick(be){ye(this.dialogRef,0===be.screenX&&0===be.screenY?"keyboard":"mouse",this.dialogResult)}}return Ge.\u0275fac=function(be){return new(be||Ge)(_.Y36(at,8),_.Y36(_.SBq),_.Y36(pe))},Ge.\u0275dir=_.lG2({type:Ge,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(be,qe){1&be&&_.NdJ("click",function(X){return qe._onButtonClick(X)}),2&be&&_.uIk("aria-label",qe.ariaLabel||null)("type",qe.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[_.TTD]}),Ge})(),lt=(()=>{class Ge{}return Ge.\u0275fac=function(be){return new(be||Ge)},Ge.\u0275mod=_.oAB({type:Ge}),Ge.\u0275inj=_.cJS({providers:[pe,Fe],imports:[Ce,t.U8,y.eL,l.BQ,l.BQ]}),Ge})()},4850:(We,q,m)=>{"use strict";m.d(q,{d:()=>T,t:()=>s});var t=m(4650),e=m(1281),_=m(3238);let T=(()=>{class y{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(P){this._vertical=(0,e.Ig)(P)}get inset(){return this._inset}set inset(P){this._inset=(0,e.Ig)(P)}}return y.\u0275fac=function(P){return new(P||y)},y.\u0275cmp=t.Xpm({type:y,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(P,d){2&P&&(t.uIk("aria-orientation",d.vertical?"vertical":"horizontal"),t.ekj("mat-divider-vertical",d.vertical)("mat-divider-horizontal",!d.vertical)("mat-divider-inset",d.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(P,d){},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}"],encapsulation:2,changeDetection:0}),y})(),s=(()=>{class y{}return y.\u0275fac=function(P){return new(P||y)},y.\u0275mod=t.oAB({type:y}),y.\u0275inj=t.cJS({imports:[_.BQ,_.BQ]}),y})()},752:(We,q,m)=>{"use strict";m.d(q,{pp:()=>ye,To:()=>xe,ib:()=>W,u4:()=>Ue,yz:()=>nt,yK:()=>at});var t=m(4650),e=m(5017),_=m(1281),T=m(7579),s=m(727);let y=0;const h=new t.OlP("CdkAccordion");let P=(()=>{class fe{constructor(){this._stateChanges=new T.x,this._openCloseAllActions=new T.x,this.id="cdk-accordion-"+y++,this._multi=!1}get multi(){return this._multi}set multi(oe){this._multi=(0,_.Ig)(oe)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(oe){this._stateChanges.next(oe)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return fe.\u0275fac=function(oe){return new(oe||fe)},fe.\u0275dir=t.lG2({type:fe,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[t._Bn([{provide:h,useExisting:fe}]),t.TTD]}),fe})(),d=0,w=(()=>{class fe{get expanded(){return this._expanded}set expanded(oe){oe=(0,_.Ig)(oe),this._expanded!==oe&&(this._expanded=oe,this.expandedChange.emit(oe),oe?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(oe){this._disabled=(0,_.Ig)(oe)}constructor(oe,Fe,De){this.accordion=oe,this._changeDetectorRef=Fe,this._expansionDispatcher=De,this._openCloseAllSubscription=s.w0.EMPTY,this.closed=new t.vpe,this.opened=new t.vpe,this.destroyed=new t.vpe,this.expandedChange=new t.vpe,this.id="cdk-accordion-child-"+d++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=De.listen((he,Me)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===Me&&this.id!==he&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(oe=>{this.disabled||(this.expanded=oe)})}}return fe.\u0275fac=function(oe){return new(oe||fe)(t.Y36(h,12),t.Y36(t.sBO),t.Y36(e.A8))},fe.\u0275dir=t.lG2({type:fe,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[t._Bn([{provide:h,useValue:void 0}])]}),fe})(),C=(()=>{class fe{}return fe.\u0275fac=function(oe){return new(oe||fe)},fe.\u0275mod=t.oAB({type:fe}),fe.\u0275inj=t.cJS({}),fe})();var L=m(4080),D=m(6895),H=m(3238),V=m(4761),Y=m(1884),j=m(8675),Q=m(9300),J=m(5698),ee=m(9521),me=m(515),re=m(6451),ie=m(7340);const se=["body"];function ce(fe,Oe){}const Ce=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],M=["mat-expansion-panel-header","*","mat-action-row"];function i(fe,Oe){if(1&fe&&t._UZ(0,"span",2),2&fe){const oe=t.oxw();t.Q6J("@indicatorRotate",oe._getExpandedState())}}const a=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],f=["mat-panel-title","mat-panel-description","*"],l=new t.OlP("MAT_ACCORDION"),v="225ms cubic-bezier(0.4,0.0,0.2,1)",I={indicatorRotate:(0,ie.X$)("indicatorRotate",[(0,ie.SB)("collapsed, void",(0,ie.oB)({transform:"rotate(0deg)"})),(0,ie.SB)("expanded",(0,ie.oB)({transform:"rotate(180deg)"})),(0,ie.eR)("expanded <=> collapsed, void => collapsed",(0,ie.jt)(v))]),bodyExpansion:(0,ie.X$)("bodyExpansion",[(0,ie.SB)("collapsed, void",(0,ie.oB)({height:"0px",visibility:"hidden"})),(0,ie.SB)("expanded",(0,ie.oB)({height:"*",visibility:"visible"})),(0,ie.eR)("expanded <=> collapsed, void => collapsed",(0,ie.jt)(v))])},k=new t.OlP("MAT_EXPANSION_PANEL");let x=(()=>{class fe{constructor(oe,Fe){this._template=oe,this._expansionPanel=Fe}}return fe.\u0275fac=function(oe){return new(oe||fe)(t.Y36(t.Rgc),t.Y36(k,8))},fe.\u0275dir=t.lG2({type:fe,selectors:[["ng-template","matExpansionPanelContent",""]]}),fe})(),n=0;const g=new t.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let W=(()=>{class fe extends w{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(oe){this._hideToggle=(0,_.Ig)(oe)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(oe){this._togglePosition=oe}constructor(oe,Fe,De,he,Me,pe,Ve){super(oe,Fe,De),this._viewContainerRef=he,this._animationMode=pe,this._hideToggle=!1,this.afterExpand=new t.vpe,this.afterCollapse=new t.vpe,this._inputChanges=new T.x,this._headerId="mat-expansion-panel-header-"+n++,this._bodyAnimationDone=new T.x,this.accordion=oe,this._document=Me,this._bodyAnimationDone.pipe((0,Y.x)((Qe,Pe)=>Qe.fromState===Pe.fromState&&Qe.toState===Pe.toState)).subscribe(Qe=>{"void"!==Qe.fromState&&("expanded"===Qe.toState?this.afterExpand.emit():"collapsed"===Qe.toState&&this.afterCollapse.emit())}),Ve&&(this.hideToggle=Ve.hideToggle)}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,j.O)(null),(0,Q.h)(()=>this.expanded&&!this._portal),(0,J.q)(1)).subscribe(()=>{this._portal=new L.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(oe){this._inputChanges.next(oe)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const oe=this._document.activeElement,Fe=this._body.nativeElement;return oe===Fe||Fe.contains(oe)}return!1}}return fe.\u0275fac=function(oe){return new(oe||fe)(t.Y36(l,12),t.Y36(t.sBO),t.Y36(e.A8),t.Y36(t.s_b),t.Y36(D.K0),t.Y36(t.QbO,8),t.Y36(g,8))},fe.\u0275cmp=t.Xpm({type:fe,selectors:[["mat-expansion-panel"]],contentQueries:function(oe,Fe,De){if(1&oe&&t.Suo(De,x,5),2&oe){let he;t.iGM(he=t.CRH())&&(Fe._lazyContent=he.first)}},viewQuery:function(oe,Fe){if(1&oe&&t.Gf(se,5),2&oe){let De;t.iGM(De=t.CRH())&&(Fe._body=De.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(oe,Fe){2&oe&&t.ekj("mat-expanded",Fe.expanded)("_mat-animation-noopable","NoopAnimations"===Fe._animationMode)("mat-expansion-panel-spacing",Fe._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[t._Bn([{provide:l,useValue:void 0},{provide:k,useExisting:fe}]),t.qOj,t.TTD],ngContentSelectors:M,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(oe,Fe){1&oe&&(t.F$t(Ce),t.Hsn(0),t.TgZ(1,"div",0,1),t.NdJ("@bodyExpansion.done",function(he){return Fe._bodyAnimationDone.next(he)}),t.TgZ(3,"div",2),t.Hsn(4,1),t.YNc(5,ce,0,0,"ng-template",3),t.qZA(),t.Hsn(6,2),t.qZA()),2&oe&&(t.xp6(1),t.Q6J("@bodyExpansion",Fe._getExpandedState())("id",Fe.id),t.uIk("aria-labelledby",Fe._headerId),t.xp6(4),t.Q6J("cdkPortalOutlet",Fe._portal))},dependencies:[L.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-content[style*="visibility: hidden"] *{visibility:hidden !important}.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 .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[I.bodyExpansion]},changeDetection:0}),fe})();class G{}const ge=(0,H.sb)(G);let nt=(()=>{class fe extends ge{constructor(oe,Fe,De,he,Me,pe,Ve){super(),this.panel=oe,this._element=Fe,this._focusMonitor=De,this._changeDetectorRef=he,this._animationMode=pe,this._parentChangeSubscription=s.w0.EMPTY;const Qe=oe.accordion?oe.accordion._stateChanges.pipe((0,Q.h)(Pe=>!(!Pe.hideToggle&&!Pe.togglePosition))):me.E;this.tabIndex=parseInt(Ve||"")||0,this._parentChangeSubscription=(0,re.T)(oe.opened,oe.closed,Qe,oe._inputChanges.pipe((0,Q.h)(Pe=>!!(Pe.hideToggle||Pe.disabled||Pe.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),oe.closed.pipe((0,Q.h)(()=>oe._containsFocus())).subscribe(()=>De.focusVia(Fe,"program")),Me&&(this.expandedHeight=Me.expandedHeight,this.collapsedHeight=Me.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 oe=this._isExpanded();return oe&&this.expandedHeight?this.expandedHeight:!oe&&this.collapsedHeight?this.collapsedHeight:null}_keydown(oe){switch(oe.keyCode){case ee.L_:case ee.K5:(0,ee.Vb)(oe)||(oe.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(oe))}}focus(oe,Fe){oe?this._focusMonitor.focusVia(this._element,oe,Fe):this._element.nativeElement.focus(Fe)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(oe=>{oe&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return fe.\u0275fac=function(oe){return new(oe||fe)(t.Y36(W,1),t.Y36(t.SBq),t.Y36(V.tE),t.Y36(t.sBO),t.Y36(g,8),t.Y36(t.QbO,8),t.$8M("tabindex"))},fe.\u0275cmp=t.Xpm({type:fe,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(oe,Fe){1&oe&&t.NdJ("click",function(){return Fe._toggle()})("keydown",function(he){return Fe._keydown(he)}),2&oe&&(t.uIk("id",Fe.panel._headerId)("tabindex",Fe.tabIndex)("aria-controls",Fe._getPanelId())("aria-expanded",Fe._isExpanded())("aria-disabled",Fe.panel.disabled),t.Udp("height",Fe._getHeaderHeight()),t.ekj("mat-expanded",Fe._isExpanded())("mat-expansion-toggle-indicator-after","after"===Fe._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===Fe._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===Fe._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[t.qOj],ngContentSelectors:f,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(oe,Fe){1&oe&&(t.F$t(a),t.TgZ(0,"span",0),t.Hsn(1),t.Hsn(2,1),t.Hsn(3,2),t.qZA(),t.YNc(4,i,1,1,"span",1)),2&oe&&(t.ekj("mat-content-hide-toggle",!Fe._showToggle()),t.xp6(4),t.Q6J("ngIf",Fe._showToggle()))},dependencies:[D.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-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-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-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[I.indicatorRotate]},changeDetection:0}),fe})(),Ue=(()=>{class fe{}return fe.\u0275fac=function(oe){return new(oe||fe)},fe.\u0275dir=t.lG2({type:fe,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),fe})(),at=(()=>{class fe{}return fe.\u0275fac=function(oe){return new(oe||fe)},fe.\u0275dir=t.lG2({type:fe,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),fe})(),ye=(()=>{class fe extends P{constructor(){super(...arguments),this._ownHeaders=new t.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(oe){this._hideToggle=(0,_.Ig)(oe)}ngAfterContentInit(){this._headers.changes.pipe((0,j.O)(this._headers)).subscribe(oe=>{this._ownHeaders.reset(oe.filter(Fe=>Fe.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new V.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(oe){this._keyManager.onKeydown(oe)}_handleHeaderFocus(oe){this._keyManager.updateActiveItem(oe)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}}return fe.\u0275fac=function(){let Oe;return function(Fe){return(Oe||(Oe=t.n5z(fe)))(Fe||fe)}}(),fe.\u0275dir=t.lG2({type:fe,selectors:[["mat-accordion"]],contentQueries:function(oe,Fe,De){if(1&oe&&t.Suo(De,nt,5),2&oe){let he;t.iGM(he=t.CRH())&&(Fe._headers=he)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(oe,Fe){2&oe&&t.ekj("mat-accordion-multi",Fe.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[t._Bn([{provide:l,useExisting:fe}]),t.qOj]}),fe})(),xe=(()=>{class fe{}return fe.\u0275fac=function(oe){return new(oe||fe)},fe.\u0275mod=t.oAB({type:fe}),fe.\u0275inj=t.cJS({imports:[D.ez,H.BQ,C,L.eL]}),fe})()},9549:(We,q,m)=>{"use strict";m.d(q,{Eo:()=>Me,G_:()=>Pe,KE:()=>Ge,R9:()=>ye,TO:()=>O,bx:()=>ge,hX:()=>n,lN:()=>yt});var t=m(4650),e=m(445),_=m(3353),T=m(7579),s=m(6451),y=m(2722),h=m(6895),P=m(1281),d=m(7340),w=m(9643),C=m(3238);const L=["matFormFieldNotchedOutline",""],D=["*"],H=["textField"],V=["iconPrefixContainer"],Y=["textPrefixContainer"];function j(be,qe){1&be&&t._UZ(0,"span",19)}function Q(be,qe){if(1&be){const Ie=t.EpF();t.TgZ(0,"label",17),t.NdJ("cdkObserveContent",function(){t.CHM(Ie);const mt=t.oxw(2);return t.KtG(mt._refreshOutlineNotchWidth())}),t.Hsn(1,1),t.YNc(2,j,1,0,"span",18),t.qZA()}if(2&be){const Ie=t.oxw(2);t.Q6J("floating",Ie._shouldLabelFloat())("cdkObserveContentDisabled",!Ie._hasOutline())("id",Ie._labelId),t.uIk("for",Ie._control.id)("aria-owns",Ie._control.id),t.xp6(2),t.Q6J("ngIf",!Ie.hideRequiredMarker&&Ie._control.required)}}function J(be,qe){if(1&be&&t.YNc(0,Q,3,6,"label",16),2&be){const Ie=t.oxw();t.Q6J("ngIf",Ie._hasFloatingLabel())}}function ee(be,qe){1&be&&t._UZ(0,"div",20)}function me(be,qe){}function re(be,qe){if(1&be&&t.YNc(0,me,0,0,"ng-template",22),2&be){t.oxw(2);const Ie=t.MAs(1);t.Q6J("ngTemplateOutlet",Ie)}}function ie(be,qe){if(1&be&&(t.TgZ(0,"div",21),t.YNc(1,re,1,1,"ng-template",9),t.qZA()),2&be){const Ie=t.oxw();t.Q6J("matFormFieldNotchedOutlineOpen",Ie._shouldLabelFloat())("matFormFieldNotchedOutlineLabelWidth",Ie._labelWidth),t.xp6(1),t.Q6J("ngIf",!Ie._forceDisplayInfixLabel())}}function se(be,qe){1&be&&(t.TgZ(0,"div",23,24),t.Hsn(2,2),t.qZA())}function ce(be,qe){1&be&&(t.TgZ(0,"div",25,26),t.Hsn(2,3),t.qZA())}function Ce(be,qe){}function M(be,qe){if(1&be&&t.YNc(0,Ce,0,0,"ng-template",22),2&be){t.oxw();const Ie=t.MAs(1);t.Q6J("ngTemplateOutlet",Ie)}}function i(be,qe){1&be&&(t.TgZ(0,"div",27),t.Hsn(1,4),t.qZA())}function a(be,qe){1&be&&(t.TgZ(0,"div",28),t.Hsn(1,5),t.qZA())}function f(be,qe){1&be&&t._UZ(0,"div",29)}function l(be,qe){if(1&be&&(t.TgZ(0,"div",30),t.Hsn(1,6),t.qZA()),2&be){const Ie=t.oxw();t.Q6J("@transitionMessages",Ie._subscriptAnimationState)}}function v(be,qe){if(1&be&&(t.TgZ(0,"mat-hint",34),t._uU(1),t.qZA()),2&be){const Ie=t.oxw(2);t.Q6J("id",Ie._hintLabelId),t.xp6(1),t.Oqu(Ie.hintLabel)}}function I(be,qe){if(1&be&&(t.TgZ(0,"div",31),t.YNc(1,v,2,2,"mat-hint",32),t.Hsn(2,7),t._UZ(3,"div",33),t.Hsn(4,8),t.qZA()),2&be){const Ie=t.oxw();t.Q6J("@transitionMessages",Ie._subscriptAnimationState),t.xp6(1),t.Q6J("ngIf",Ie.hintLabel)}}const k=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],x=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let n=(()=>{class be{}return be.\u0275fac=function(Ie){return new(Ie||be)},be.\u0275dir=t.lG2({type:be,selectors:[["mat-label"]]}),be})(),g=0;const W=new t.OlP("MatError");let O=(()=>{class be{constructor(Ie,X){this.id="mat-mdc-error-"+g++,Ie||X.nativeElement.setAttribute("aria-live","polite")}}return be.\u0275fac=function(Ie){return new(Ie||be)(t.$8M("aria-live"),t.Y36(t.SBq))},be.\u0275dir=t.lG2({type:be,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(Ie,X){2&Ie&&t.Ikx("id",X.id)},inputs:{id:"id"},features:[t._Bn([{provide:W,useExisting:be}])]}),be})(),G=0,ge=(()=>{class be{constructor(){this.align="start",this.id="mat-mdc-hint-"+G++}}return be.\u0275fac=function(Ie){return new(Ie||be)},be.\u0275dir=t.lG2({type:be,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(Ie,X){2&Ie&&(t.Ikx("id",X.id),t.uIk("align",null),t.ekj("mat-mdc-form-field-hint-end","end"===X.align))},inputs:{align:"align",id:"id"}}),be})();const nt=new t.OlP("MatPrefix"),at=new t.OlP("MatSuffix");let ye=(()=>{class be{constructor(){this._isText=!1}set _isTextSelector(Ie){this._isText=!0}}return be.\u0275fac=function(Ie){return new(Ie||be)},be.\u0275dir=t.lG2({type:be,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:["matTextSuffix","_isTextSelector"]},features:[t._Bn([{provide:at,useExisting:be}])]}),be})(),xe=(()=>{class be{constructor(Ie){this._elementRef=Ie,this.floating=!1}getWidth(){return function fe(be){if(null!==be.offsetParent)return be.scrollWidth;const Ie=be.cloneNode(!0);Ie.style.setProperty("position","absolute"),Ie.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(Ie);const X=Ie.scrollWidth;return Ie.remove(),X}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}}return be.\u0275fac=function(Ie){return new(Ie||be)(t.Y36(t.SBq))},be.\u0275dir=t.lG2({type:be,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(Ie,X){2&Ie&&t.ekj("mdc-floating-label--float-above",X.floating)},inputs:{floating:"floating"}}),be})();const Oe="mdc-line-ripple--active",oe="mdc-line-ripple--deactivating";let Fe=(()=>{class be{constructor(Ie,X){this._elementRef=Ie,this._handleTransitionEnd=mt=>{const Tt=this._elementRef.nativeElement.classList,it=Tt.contains(oe);"opacity"===mt.propertyName&&it&&Tt.remove(Oe,oe)},X.runOutsideAngular(()=>{Ie.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const Ie=this._elementRef.nativeElement.classList;Ie.remove(oe),Ie.add(Oe)}deactivate(){this._elementRef.nativeElement.classList.add(oe)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}}return be.\u0275fac=function(Ie){return new(Ie||be)(t.Y36(t.SBq),t.Y36(t.R0b))},be.\u0275dir=t.lG2({type:be,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]}),be})(),De=(()=>{class be{constructor(Ie,X){this._elementRef=Ie,this._ngZone=X,this.labelWidth=0,this.open=!1}ngAfterViewInit(){const Ie=this._elementRef.nativeElement.querySelector(".mdc-floating-label");Ie?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(Ie.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>Ie.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_getNotchWidth(){return this.open?this.labelWidth>0?`calc(${this.labelWidth}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:"0px":null}}return be.\u0275fac=function(Ie){return new(Ie||be)(t.Y36(t.SBq),t.Y36(t.R0b))},be.\u0275cmp=t.Xpm({type:be,selectors:[["div","matFormFieldNotchedOutline",""]],hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(Ie,X){2&Ie&&t.ekj("mdc-notched-outline--notched",X.open)},inputs:{labelWidth:["matFormFieldNotchedOutlineLabelWidth","labelWidth"],open:["matFormFieldNotchedOutlineOpen","open"]},attrs:L,ngContentSelectors:D,decls:4,vars:2,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(Ie,X){1&Ie&&(t.F$t(),t._UZ(0,"div",0),t.TgZ(1,"div",1),t.Hsn(2),t.qZA(),t._UZ(3,"div",2)),2&Ie&&(t.xp6(1),t.Udp("width",X._getNotchWidth()))},encapsulation:2,changeDetection:0}),be})();const he={transitionMessages:(0,d.X$)("transitionMessages",[(0,d.SB)("enter",(0,d.oB)({opacity:1,transform:"translateY(0%)"})),(0,d.eR)("void => enter",[(0,d.oB)({opacity:0,transform:"translateY(-5px)"}),(0,d.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Me=(()=>{class be{}return be.\u0275fac=function(Ie){return new(Ie||be)},be.\u0275dir=t.lG2({type:be}),be})();const Pe=new t.OlP("MatFormField"),de=new t.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS");let rt=0,Ge=(()=>{class be{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(Ie){this._hideRequiredMarker=(0,P.Ig)(Ie)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(Ie){Ie!==this._floatLabel&&(this._floatLabel=Ie,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(Ie){const X=this._appearance;this._appearance=Ie||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==X&&(this._refreshOutlineNotchWidth(),this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(Ie){this._subscriptSizing=Ie||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(Ie){this._hintLabel=Ie,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(Ie){this._explicitFormFieldControl=Ie}constructor(Ie,X,mt,Tt,it,je,zt,xt){this._elementRef=Ie,this._changeDetectorRef=X,this._ngZone=mt,this._dir=Tt,this._platform=it,this._defaults=je,this._animationMode=zt,this._document=xt,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+rt++,this._hintLabelId="mat-mdc-hint-"+rt++,this._subscriptAnimationState="",this._labelWidth=0,this._destroyed=new T.x,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,je&&(je.appearance&&(this.appearance=je.appearance),this._hideRequiredMarker=Boolean(je?.hideRequiredMarker),je.color&&(this.color=je.color))}ngAfterViewInit(){this._updateFocusState(),this._refreshOutlineNotchWidth(),this._document?.fonts?.ready?this._document.fonts.ready.then(()=>{this._refreshOutlineNotchWidth(),this._changeDetectorRef.markForCheck()}):setTimeout(()=>this._refreshOutlineNotchWidth(),100),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const Ie=this._control;Ie.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${Ie.controlType}`),Ie.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),Ie.ngControl&&Ie.ngControl.valueChanges&&Ie.ngControl.valueChanges.pipe((0,y.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(Ie=>!Ie._isText),this._hasTextPrefix=!!this._prefixChildren.find(Ie=>Ie._isText),this._hasIconSuffix=!!this._suffixChildren.find(Ie=>!Ie._isText),this._hasTextSuffix=!!this._suffixChildren.find(Ie=>Ie._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,s.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,y.R)(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe((0,y.R)(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(Ie){const X=this._control?this._control.ngControl:null;return X&&X[Ie]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||(this._labelWidth=this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let Ie=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&Ie.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const X=this._hintChildren?this._hintChildren.find(Tt=>"start"===Tt.align):null,mt=this._hintChildren?this._hintChildren.find(Tt=>"end"===Tt.align):null;X?Ie.push(X.id):this._hintLabel&&Ie.push(this._hintLabelId),mt&&Ie.push(mt.id)}else this._errorChildren&&Ie.push(...this._errorChildren.map(X=>X.id));this._control.setDescribedByIds(Ie)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const Ie=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(Ie.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const X=this._iconPrefixContainer?.nativeElement,mt=this._textPrefixContainer?.nativeElement,Tt=X?.getBoundingClientRect().width??0,it=mt?.getBoundingClientRect().width??0;Ie.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${Tt+it}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const Ie=this._elementRef.nativeElement;if(Ie.getRootNode){const X=Ie.getRootNode();return X&&X!==Ie}return document.documentElement.contains(Ie)}}return be.\u0275fac=function(Ie){return new(Ie||be)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(t.R0b),t.Y36(e.Is),t.Y36(_.t4),t.Y36(de,8),t.Y36(t.QbO,8),t.Y36(h.K0))},be.\u0275cmp=t.Xpm({type:be,selectors:[["mat-form-field"]],contentQueries:function(Ie,X,mt){if(1&Ie&&(t.Suo(mt,n,5),t.Suo(mt,n,7),t.Suo(mt,Me,5),t.Suo(mt,nt,5),t.Suo(mt,at,5),t.Suo(mt,W,5),t.Suo(mt,ge,5)),2&Ie){let Tt;t.iGM(Tt=t.CRH())&&(X._labelChildNonStatic=Tt.first),t.iGM(Tt=t.CRH())&&(X._labelChildStatic=Tt.first),t.iGM(Tt=t.CRH())&&(X._formFieldControl=Tt.first),t.iGM(Tt=t.CRH())&&(X._prefixChildren=Tt),t.iGM(Tt=t.CRH())&&(X._suffixChildren=Tt),t.iGM(Tt=t.CRH())&&(X._errorChildren=Tt),t.iGM(Tt=t.CRH())&&(X._hintChildren=Tt)}},viewQuery:function(Ie,X){if(1&Ie&&(t.Gf(H,5),t.Gf(V,5),t.Gf(Y,5),t.Gf(xe,5),t.Gf(De,5),t.Gf(Fe,5)),2&Ie){let mt;t.iGM(mt=t.CRH())&&(X._textField=mt.first),t.iGM(mt=t.CRH())&&(X._iconPrefixContainer=mt.first),t.iGM(mt=t.CRH())&&(X._textPrefixContainer=mt.first),t.iGM(mt=t.CRH())&&(X._floatingLabel=mt.first),t.iGM(mt=t.CRH())&&(X._notchedOutline=mt.first),t.iGM(mt=t.CRH())&&(X._lineRipple=mt.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(Ie,X){2&Ie&&t.ekj("mat-mdc-form-field-label-always-float",X._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",X._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",X._hasIconSuffix)("mat-form-field-invalid",X._control.errorState)("mat-form-field-disabled",X._control.disabled)("mat-form-field-autofilled",X._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===X._animationMode)("mat-form-field-appearance-fill","fill"==X.appearance)("mat-form-field-appearance-outline","outline"==X.appearance)("mat-form-field-hide-placeholder",X._hasFloatingLabel()&&!X._shouldLabelFloat())("mat-focused",X._control.focused)("mat-primary","accent"!==X.color&&"warn"!==X.color)("mat-accent","accent"===X.color)("mat-warn","warn"===X.color)("ng-untouched",X._shouldForward("untouched"))("ng-touched",X._shouldForward("touched"))("ng-pristine",X._shouldForward("pristine"))("ng-dirty",X._shouldForward("dirty"))("ng-valid",X._shouldForward("valid"))("ng-invalid",X._shouldForward("invalid"))("ng-pending",X._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[t._Bn([{provide:Pe,useExisting:be}])],ngContentSelectors:x,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(Ie,X){1&Ie&&(t.F$t(k),t.YNc(0,J,1,1,"ng-template",null,0,t.W1O),t.TgZ(2,"div",1,2),t.NdJ("click",function(Tt){return X._control.onContainerClick&&X._control.onContainerClick(Tt)}),t.YNc(4,ee,1,0,"div",3),t.TgZ(5,"div",4),t.YNc(6,ie,2,3,"div",5),t.YNc(7,se,3,0,"div",6),t.YNc(8,ce,3,0,"div",7),t.TgZ(9,"div",8),t.YNc(10,M,1,1,"ng-template",9),t.Hsn(11),t.qZA(),t.YNc(12,i,2,0,"div",10),t.YNc(13,a,2,0,"div",11),t.qZA(),t.YNc(14,f,1,0,"div",12),t.qZA(),t.TgZ(15,"div",13),t.YNc(16,l,2,1,"div",14),t.YNc(17,I,5,2,"div",15),t.qZA()),2&Ie&&(t.xp6(2),t.ekj("mdc-text-field--filled",!X._hasOutline())("mdc-text-field--outlined",X._hasOutline())("mdc-text-field--no-label",!X._hasFloatingLabel())("mdc-text-field--disabled",X._control.disabled)("mdc-text-field--invalid",X._control.errorState),t.xp6(2),t.Q6J("ngIf",!X._hasOutline()&&!X._control.disabled),t.xp6(2),t.Q6J("ngIf",X._hasOutline()),t.xp6(1),t.Q6J("ngIf",X._hasIconPrefix),t.xp6(1),t.Q6J("ngIf",X._hasTextPrefix),t.xp6(2),t.Q6J("ngIf",!X._hasOutline()||X._forceDisplayInfixLabel()),t.xp6(2),t.Q6J("ngIf",X._hasTextSuffix),t.xp6(1),t.Q6J("ngIf",X._hasIconSuffix),t.xp6(1),t.Q6J("ngIf",!X._hasOutline()),t.xp6(1),t.ekj("mat-mdc-form-field-subscript-dynamic-size","dynamic"===X.subscriptSizing),t.Q6J("ngSwitch",X._getDisplayedMessages()),t.xp6(1),t.Q6J("ngSwitchCase","error"),t.xp6(1),t.Q6J("ngSwitchCase","hint"))},dependencies:[h.O5,h.tP,h.RF,h.n9,w.wD,ge,xe,De,Fe],styles:['.mdc-text-field{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{line-height:normal;pointer-events:all}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-10.25px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-10.25px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}'],encapsulation:2,data:{animation:[he.transitionMessages]},changeDetection:0}),be})(),yt=(()=>{class be{}return be.\u0275fac=function(Ie){return new(Ie||be)},be.\u0275mod=t.oAB({type:be}),be.\u0275inj=t.cJS({imports:[C.BQ,h.ez,w.Q8,C.BQ]}),be})()},782:(We,q,m)=>{"use strict";m.d(q,{DX:()=>L,Il:()=>ce,N6:()=>Ce});var t=m(4650),e=m(3238),_=m(1281),T=m(445);const s=["*"];class d{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,f){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(a),this.tracker.fill(0,0,this.tracker.length),this.positions=f.map(l=>this._trackTile(l))}_trackTile(a){const f=this._findMatchingGap(a.colspan);return this._markTilePosition(f,a),this.columnIndex=f+a.colspan,new w(this.rowIndex,f)}_findMatchingGap(a){let f=-1,l=-1;do{this.columnIndex+a>this.tracker.length?(this._nextRow(),f=this.tracker.indexOf(0,this.columnIndex),l=this._findGapEndIndex(f)):(f=this.tracker.indexOf(0,this.columnIndex),-1!=f?(l=this._findGapEndIndex(f),this.columnIndex=f+1):(this._nextRow(),f=this.tracker.indexOf(0,this.columnIndex),l=this._findGapEndIndex(f)))}while(l-f{class i{constructor(f,l){this._element=f,this._gridList=l,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(f){this._rowspan=Math.round((0,_.su)(f))}get colspan(){return this._colspan}set colspan(f){this._colspan=Math.round((0,_.su)(f))}_setStyle(f,l){this._element.nativeElement.style[f]=l}}return i.\u0275fac=function(f){return new(f||i)(t.Y36(t.SBq),t.Y36(C,8))},i.\u0275cmp=t.Xpm({type:i,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(f,l){2&f&&t.uIk("rowspan",l.rowspan)("colspan",l.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:s,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(f,l){1&f&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.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}"],encapsulation:2,changeDetection:0}),i})();const j=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class Q{constructor(){this._rows=0,this._rowspan=0}init(a,f,l,v){this._gutterSize=ie(a),this._rows=f.rowCount,this._rowspan=f.rowspan,this._cols=l,this._direction=v}getBaseTileSize(a,f){return`(${a}% - (${this._gutterSize} * ${f}))`}getTilePosition(a,f){return 0===f?"0":re(`(${a} + ${this._gutterSize}) * ${f}`)}getTileSize(a,f){return`(${a} * ${f}) + (${f-1} * ${this._gutterSize})`}setStyle(a,f,l){let v=100/this._cols,I=(this._cols-1)/this._cols;this.setColStyles(a,l,v,I),this.setRowStyles(a,f,v,I)}setColStyles(a,f,l,v){let I=this.getBaseTileSize(l,v);a._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(I,f)),a._setStyle("width",re(this.getTileSize(I,a.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(a){return`${this._rowspan} * ${this.getTileSize(a,1)}`}getComputedHeight(){return null}}class J extends Q{constructor(a){super(),this.fixedRowHeight=a}init(a,f,l,v){super.init(a,f,l,v),this.fixedRowHeight=ie(this.fixedRowHeight),j.test(this.fixedRowHeight)}setRowStyles(a,f){a._setStyle("top",this.getTilePosition(this.fixedRowHeight,f)),a._setStyle("height",re(this.getTileSize(this.fixedRowHeight,a.rowspan)))}getComputedHeight(){return["height",re(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(a){a._setListStyle(["height",null]),a._tiles&&a._tiles.forEach(f=>{f._setStyle("top",null),f._setStyle("height",null)})}}class ee extends Q{constructor(a){super(),this._parseRatio(a)}setRowStyles(a,f,l,v){this.baseTileHeight=this.getBaseTileSize(l/this.rowHeightRatio,v),a._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,f)),a._setStyle("paddingTop",re(this.getTileSize(this.baseTileHeight,a.rowspan)))}getComputedHeight(){return["paddingBottom",re(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(a){a._setListStyle(["paddingBottom",null]),a._tiles.forEach(f=>{f._setStyle("marginTop",null),f._setStyle("paddingTop",null)})}_parseRatio(a){const f=a.split(":");this.rowHeightRatio=parseFloat(f[0])/parseFloat(f[1])}}class me extends Q{setRowStyles(a,f){let I=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);a._setStyle("top",this.getTilePosition(I,f)),a._setStyle("height",re(this.getTileSize(I,a.rowspan)))}reset(a){a._tiles&&a._tiles.forEach(f=>{f._setStyle("top",null),f._setStyle("height",null)})}}function re(i){return`calc(${i})`}function ie(i){return i.match(/([A-Za-z%]+)$/)?i:`${i}px`}let ce=(()=>{class i{constructor(f,l){this._element=f,this._dir=l,this._gutter="1px"}get cols(){return this._cols}set cols(f){this._cols=Math.max(1,Math.round((0,_.su)(f)))}get gutterSize(){return this._gutter}set gutterSize(f){this._gutter=`${f??""}`}get rowHeight(){return this._rowHeight}set rowHeight(f){const l=`${f??""}`;l!==this._rowHeight&&(this._rowHeight=l,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(f){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===f?new me:f&&f.indexOf(":")>-1?new ee(f):new J(f)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new d);const f=this._tileCoordinator,l=this._tiles.filter(I=>!I._gridList||I._gridList===this),v=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,l),this._tileStyler.init(this.gutterSize,f,this.cols,v),l.forEach((I,k)=>{const x=f.positions[k];this._tileStyler.setStyle(I,x.row,x.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(f){f&&(this._element.nativeElement.style[f[0]]=f[1])}}return i.\u0275fac=function(f){return new(f||i)(t.Y36(t.SBq),t.Y36(T.Is,8))},i.\u0275cmp=t.Xpm({type:i,selectors:[["mat-grid-list"]],contentQueries:function(f,l,v){if(1&f&&t.Suo(v,L,5),2&f){let I;t.iGM(I=t.CRH())&&(l._tiles=I)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(f,l){2&f&&t.uIk("cols",l.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[t._Bn([{provide:C,useExisting:i}])],ngContentSelectors:s,decls:2,vars:0,template:function(f,l){1&f&&(t.F$t(),t.TgZ(0,"div"),t.Hsn(1),t.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}"],encapsulation:2,changeDetection:0}),i})(),Ce=(()=>{class i{}return i.\u0275fac=function(f){return new(f||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[e.uc,e.BQ,e.uc,e.BQ]}),i})()},7392:(We,q,m)=>{"use strict";m.d(q,{Hw:()=>O,Ps:()=>G});var t=m(4650),e=m(3238),_=m(1281),T=m(6895),s=m(9646),y=m(2843),h=m(4128),P=m(727),d=m(8505),w=m(4004),C=m(262),L=m(8746),D=m(3099),H=m(5698),V=m(529),Y=m(1481);const j=["*"];let Q;function ee(ge){return function J(){if(void 0===Q&&(Q=null,typeof window<"u")){const ge=window;void 0!==ge.trustedTypes&&(Q=ge.trustedTypes.createPolicy("angular#components",{createHTML:nt=>nt}))}return Q}()?.createHTML(ge)||ge}function me(ge){return Error(`Unable to find icon with the name "${ge}"`)}function ie(ge){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${ge}".`)}function se(ge){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${ge}".`)}class ce{constructor(nt,Ue,at){this.url=nt,this.svgText=Ue,this.options=at}}let Ce=(()=>{class ge{constructor(Ue,at,ye,xe){this._httpClient=Ue,this._sanitizer=at,this._errorHandler=xe,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","mat-ligature-font"],this._document=ye}addSvgIcon(Ue,at,ye){return this.addSvgIconInNamespace("",Ue,at,ye)}addSvgIconLiteral(Ue,at,ye){return this.addSvgIconLiteralInNamespace("",Ue,at,ye)}addSvgIconInNamespace(Ue,at,ye,xe){return this._addSvgIconConfig(Ue,at,new ce(ye,null,xe))}addSvgIconResolver(Ue){return this._resolvers.push(Ue),this}addSvgIconLiteralInNamespace(Ue,at,ye,xe){const fe=this._sanitizer.sanitize(t.q3G.HTML,ye);if(!fe)throw se(ye);const Oe=ee(fe);return this._addSvgIconConfig(Ue,at,new ce("",Oe,xe))}addSvgIconSet(Ue,at){return this.addSvgIconSetInNamespace("",Ue,at)}addSvgIconSetLiteral(Ue,at){return this.addSvgIconSetLiteralInNamespace("",Ue,at)}addSvgIconSetInNamespace(Ue,at,ye){return this._addSvgIconSetConfig(Ue,new ce(at,null,ye))}addSvgIconSetLiteralInNamespace(Ue,at,ye){const xe=this._sanitizer.sanitize(t.q3G.HTML,at);if(!xe)throw se(at);const fe=ee(xe);return this._addSvgIconSetConfig(Ue,new ce("",fe,ye))}registerFontClassAlias(Ue,at=Ue){return this._fontCssClassesByAlias.set(Ue,at),this}classNameForFontAlias(Ue){return this._fontCssClassesByAlias.get(Ue)||Ue}setDefaultFontSetClass(...Ue){return this._defaultFontSetClass=Ue,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Ue){const at=this._sanitizer.sanitize(t.q3G.RESOURCE_URL,Ue);if(!at)throw ie(Ue);const ye=this._cachedIconsByUrl.get(at);return ye?(0,s.of)(a(ye)):this._loadSvgIconFromConfig(new ce(Ue,null)).pipe((0,d.b)(xe=>this._cachedIconsByUrl.set(at,xe)),(0,w.U)(xe=>a(xe)))}getNamedSvgIcon(Ue,at=""){const ye=f(at,Ue);let xe=this._svgIconConfigs.get(ye);if(xe)return this._getSvgFromConfig(xe);if(xe=this._getIconConfigFromResolvers(at,Ue),xe)return this._svgIconConfigs.set(ye,xe),this._getSvgFromConfig(xe);const fe=this._iconSetConfigs.get(at);return fe?this._getSvgFromIconSetConfigs(Ue,fe):(0,y._)(me(ye))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Ue){return Ue.svgText?(0,s.of)(a(this._svgElementFromConfig(Ue))):this._loadSvgIconFromConfig(Ue).pipe((0,w.U)(at=>a(at)))}_getSvgFromIconSetConfigs(Ue,at){const ye=this._extractIconWithNameFromAnySet(Ue,at);if(ye)return(0,s.of)(ye);const xe=at.filter(fe=>!fe.svgText).map(fe=>this._loadSvgIconSetFromConfig(fe).pipe((0,C.K)(Oe=>{const Fe=`Loading icon set URL: ${this._sanitizer.sanitize(t.q3G.RESOURCE_URL,fe.url)} failed: ${Oe.message}`;return this._errorHandler.handleError(new Error(Fe)),(0,s.of)(null)})));return(0,h.D)(xe).pipe((0,w.U)(()=>{const fe=this._extractIconWithNameFromAnySet(Ue,at);if(!fe)throw me(Ue);return fe}))}_extractIconWithNameFromAnySet(Ue,at){for(let ye=at.length-1;ye>=0;ye--){const xe=at[ye];if(xe.svgText&&xe.svgText.toString().indexOf(Ue)>-1){const fe=this._svgElementFromConfig(xe),Oe=this._extractSvgIconFromSet(fe,Ue,xe.options);if(Oe)return Oe}}return null}_loadSvgIconFromConfig(Ue){return this._fetchIcon(Ue).pipe((0,d.b)(at=>Ue.svgText=at),(0,w.U)(()=>this._svgElementFromConfig(Ue)))}_loadSvgIconSetFromConfig(Ue){return Ue.svgText?(0,s.of)(null):this._fetchIcon(Ue).pipe((0,d.b)(at=>Ue.svgText=at))}_extractSvgIconFromSet(Ue,at,ye){const xe=Ue.querySelector(`[id="${at}"]`);if(!xe)return null;const fe=xe.cloneNode(!0);if(fe.removeAttribute("id"),"svg"===fe.nodeName.toLowerCase())return this._setSvgAttributes(fe,ye);if("symbol"===fe.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(fe),ye);const Oe=this._svgElementFromString(ee(""));return Oe.appendChild(fe),this._setSvgAttributes(Oe,ye)}_svgElementFromString(Ue){const at=this._document.createElement("DIV");at.innerHTML=Ue;const ye=at.querySelector("svg");if(!ye)throw Error(" tag not found");return ye}_toSvgElement(Ue){const at=this._svgElementFromString(ee("")),ye=Ue.attributes;for(let xe=0;xeee(Fe)),(0,L.x)(()=>this._inProgressUrlFetches.delete(fe)),(0,D.B)());return this._inProgressUrlFetches.set(fe,oe),oe}_addSvgIconConfig(Ue,at,ye){return this._svgIconConfigs.set(f(Ue,at),ye),this}_addSvgIconSetConfig(Ue,at){const ye=this._iconSetConfigs.get(Ue);return ye?ye.push(at):this._iconSetConfigs.set(Ue,[at]),this}_svgElementFromConfig(Ue){if(!Ue.svgElement){const at=this._svgElementFromString(Ue.svgText);this._setSvgAttributes(at,Ue.options),Ue.svgElement=at}return Ue.svgElement}_getIconConfigFromResolvers(Ue,at){for(let ye=0;yent?nt.pathname+nt.search:""}}}),n=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],g=n.map(ge=>`[${ge}]`).join(", "),W=/^url\(['"]?#(.*?)['"]?\)$/;let O=(()=>{class ge extends v{get inline(){return this._inline}set inline(Ue){this._inline=(0,_.Ig)(Ue)}get svgIcon(){return this._svgIcon}set svgIcon(Ue){Ue!==this._svgIcon&&(Ue?this._updateSvgIcon(Ue):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Ue)}get fontSet(){return this._fontSet}set fontSet(Ue){const at=this._cleanupFontValue(Ue);at!==this._fontSet&&(this._fontSet=at,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Ue){const at=this._cleanupFontValue(Ue);at!==this._fontIcon&&(this._fontIcon=at,this._updateFontIconClasses())}constructor(Ue,at,ye,xe,fe,Oe){super(Ue),this._iconRegistry=at,this._location=xe,this._errorHandler=fe,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=P.w0.EMPTY,Oe&&(Oe.color&&(this.color=this.defaultColor=Oe.color),Oe.fontSet&&(this.fontSet=Oe.fontSet)),ye||Ue.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(Ue){if(!Ue)return["",""];const at=Ue.split(":");switch(at.length){case 1:return["",at[0]];case 2:return at;default:throw Error(`Invalid icon name: "${Ue}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Ue=this._elementsWithExternalReferences;if(Ue&&Ue.size){const at=this._location.getPathname();at!==this._previousPath&&(this._previousPath=at,this._prependPathToReferences(at))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Ue){this._clearSvgElement();const at=this._location.getPathname();this._previousPath=at,this._cacheChildrenWithExternalReferences(Ue),this._prependPathToReferences(at),this._elementRef.nativeElement.appendChild(Ue)}_clearSvgElement(){const Ue=this._elementRef.nativeElement;let at=Ue.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();at--;){const ye=Ue.childNodes[at];(1!==ye.nodeType||"svg"===ye.nodeName.toLowerCase())&&ye.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Ue=this._elementRef.nativeElement,at=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(ye=>ye.length>0);this._previousFontSetClass.forEach(ye=>Ue.classList.remove(ye)),at.forEach(ye=>Ue.classList.add(ye)),this._previousFontSetClass=at,this.fontIcon!==this._previousFontIconClass&&!at.includes("mat-ligature-font")&&(this._previousFontIconClass&&Ue.classList.remove(this._previousFontIconClass),this.fontIcon&&Ue.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Ue){return"string"==typeof Ue?Ue.trim().split(" ")[0]:Ue}_prependPathToReferences(Ue){const at=this._elementsWithExternalReferences;at&&at.forEach((ye,xe)=>{ye.forEach(fe=>{xe.setAttribute(fe.name,`url('${Ue}#${fe.value}')`)})})}_cacheChildrenWithExternalReferences(Ue){const at=Ue.querySelectorAll(g),ye=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let xe=0;xe{const Oe=at[xe],oe=Oe.getAttribute(fe),Fe=oe?oe.match(W):null;if(Fe){let De=ye.get(Oe);De||(De=[],ye.set(Oe,De)),De.push({name:fe,value:Fe[1]})}})}_updateSvgIcon(Ue){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Ue){const[at,ye]=this._splitIconName(Ue);at&&(this._svgNamespace=at),ye&&(this._svgName=ye),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(ye,at).pipe((0,H.q)(1)).subscribe(xe=>this._setSvgElement(xe),xe=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${at}:${ye}! ${xe.message}`))})}}}return ge.\u0275fac=function(Ue){return new(Ue||ge)(t.Y36(t.SBq),t.Y36(Ce),t.$8M("aria-hidden"),t.Y36(k),t.Y36(t.qLn),t.Y36(I,8))},ge.\u0275cmp=t.Xpm({type:ge,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(Ue,at){2&Ue&&(t.uIk("data-mat-icon-type",at._usingFontIcon()?"font":"svg")("data-mat-icon-name",at._svgName||at.fontIcon)("data-mat-icon-namespace",at._svgNamespace||at.fontSet)("fontIcon",at._usingFontIcon()?at.fontIcon:null),t.ekj("mat-icon-inline",at.inline)("mat-icon-no-color","primary"!==at.color&&"accent"!==at.color&&"warn"!==at.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[t.qOj],ngContentSelectors:j,decls:1,vars:0,template:function(Ue,at){1&Ue&&(t.F$t(),t.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),ge})(),G=(()=>{class ge{}return ge.\u0275fac=function(Ue){return new(Ue||ge)},ge.\u0275mod=t.oAB({type:ge}),ge.\u0275inj=t.cJS({imports:[e.BQ,e.BQ]}),ge})()},4144:(We,q,m)=>{"use strict";m.d(q,{Jk:()=>V,Nt:()=>J,c:()=>ee});var t=m(1281),e=m(3353),_=m(4650),T=m(515),s=m(7579);const y=(0,e.i$)({passive:!0});let h=(()=>{class me{constructor(ie,se){this._platform=ie,this._ngZone=se,this._monitoredElements=new Map}monitor(ie){if(!this._platform.isBrowser)return T.E;const se=(0,t.fI)(ie),ce=this._monitoredElements.get(se);if(ce)return ce.subject;const Ce=new s.x,M="cdk-text-field-autofilled",i=a=>{"cdk-text-field-autofill-start"!==a.animationName||se.classList.contains(M)?"cdk-text-field-autofill-end"===a.animationName&&se.classList.contains(M)&&(se.classList.remove(M),this._ngZone.run(()=>Ce.next({target:a.target,isAutofilled:!1}))):(se.classList.add(M),this._ngZone.run(()=>Ce.next({target:a.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{se.addEventListener("animationstart",i,y),se.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(se,{subject:Ce,unlisten:()=>{se.removeEventListener("animationstart",i,y)}}),Ce}stopMonitoring(ie){const se=(0,t.fI)(ie),ce=this._monitoredElements.get(se);ce&&(ce.unlisten(),ce.subject.complete(),se.classList.remove("cdk-text-field-autofill-monitored"),se.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(se))}ngOnDestroy(){this._monitoredElements.forEach((ie,se)=>this.stopMonitoring(se))}}return me.\u0275fac=function(ie){return new(ie||me)(_.LFG(e.t4),_.LFG(_.R0b))},me.\u0275prov=_.Yz7({token:me,factory:me.\u0275fac,providedIn:"root"}),me})(),w=(()=>{class me{}return me.\u0275fac=function(ie){return new(ie||me)},me.\u0275mod=_.oAB({type:me}),me.\u0275inj=_.cJS({}),me})();var C=m(4006),L=m(3238),D=m(9549);const V=new _.OlP("MAT_INPUT_VALUE_ACCESSOR"),Y=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let j=0;const Q=(0,L.FD)(class{constructor(me,re,ie,se){this._defaultErrorStateMatcher=me,this._parentForm=re,this._parentFormGroup=ie,this.ngControl=se,this.stateChanges=new s.x}});let J=(()=>{class me extends Q{get disabled(){return this._disabled}set disabled(ie){this._disabled=(0,t.Ig)(ie),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(ie){this._id=ie||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(C.kI.required)??!1}set required(ie){this._required=(0,t.Ig)(ie)}get type(){return this._type}set type(ie){this._type=ie||"text",this._validateType(),!this._isTextarea&&(0,e.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(ie){ie!==this.value&&(this._inputValueAccessor.value=ie,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(ie){this._readonly=(0,t.Ig)(ie)}constructor(ie,se,ce,Ce,M,i,a,f,l,v){super(i,Ce,M,ce),this._elementRef=ie,this._platform=se,this._autofillMonitor=f,this._formField=v,this._uid="mat-input-"+j++,this.focused=!1,this.stateChanges=new s.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,e.qK)().has(x)),this._iOSKeyupListener=x=>{const n=x.target;!n.value&&0===n.selectionStart&&0===n.selectionEnd&&(n.setSelectionRange(1,1),n.setSelectionRange(0,0))};const I=this._elementRef.nativeElement,k=I.nodeName.toLowerCase();this._inputValueAccessor=a||I,this._previousNativeValue=this.value,this.id=this.id,se.IOS&&l.runOutsideAngular(()=>{ie.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===k,this._isTextarea="textarea"===k,this._isInFormField=!!v,this._isNativeSelect&&(this.controlType=I.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(ie=>{this.autofilled=ie.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(ie){this._elementRef.nativeElement.focus(ie)}_focusChanged(ie){ie!==this.focused&&(this.focused=ie,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const ie=this._elementRef.nativeElement.value;this._previousNativeValue!==ie&&(this._previousNativeValue=ie,this.stateChanges.next())}_dirtyCheckPlaceholder(){const ie=this._getPlaceholder();if(ie!==this._previousPlaceholder){const se=this._elementRef.nativeElement;this._previousPlaceholder=ie,ie?se.setAttribute("placeholder",ie):se.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){Y.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let ie=this._elementRef.nativeElement.validity;return ie&&ie.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const ie=this._elementRef.nativeElement,se=ie.options[0];return this.focused||ie.multiple||!this.empty||!!(ie.selectedIndex>-1&&se&&se.label)}return this.focused||!this.empty}setDescribedByIds(ie){ie.length?this._elementRef.nativeElement.setAttribute("aria-describedby",ie.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const ie=this._elementRef.nativeElement;return this._isNativeSelect&&(ie.multiple||ie.size>1)}}return me.\u0275fac=function(ie){return new(ie||me)(_.Y36(_.SBq),_.Y36(e.t4),_.Y36(C.a5,10),_.Y36(C.F,8),_.Y36(C.sg,8),_.Y36(L.rD),_.Y36(V,10),_.Y36(h),_.Y36(_.R0b),_.Y36(D.G_,8))},me.\u0275dir=_.lG2({type:me,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(ie,se){1&ie&&_.NdJ("focus",function(){return se._focusChanged(!0)})("blur",function(){return se._focusChanged(!1)})("input",function(){return se._onInput()}),2&ie&&(_.Ikx("id",se.id)("disabled",se.disabled)("required",se.required),_.uIk("name",se.name||null)("readonly",se.readonly&&!se._isNativeSelect||null)("aria-invalid",se.empty&&se.required?null:se.errorState)("aria-required",se.required)("id",se.id),_.ekj("mat-input-server",se._isServer)("mat-mdc-form-field-textarea-control",se._isInFormField&&se._isTextarea)("mat-mdc-form-field-input-control",se._isInFormField)("mdc-text-field__input",se._isInFormField)("mat-mdc-native-select-inline",se._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[_._Bn([{provide:D.Eo,useExisting:me}]),_.qOj,_.TTD]}),me})(),ee=(()=>{class me{}return me.\u0275fac=function(ie){return new(ie||me)},me.\u0275mod=_.oAB({type:me}),me.\u0275inj=_.cJS({imports:[L.BQ,D.lN,D.lN,w,L.BQ]}),me})()},6338:(We,q,m)=>{"use strict";m.d(q,{Tg:()=>Me,i$:()=>he,ie:()=>Ut});var t=m(4650),e=m(1281),_=m(3353),T=m(3238),s=m(727),y=m(6451),P=(m(7579),m(9643)),d=m(6895),w=m(4850);m(4761),m(5017),m(9521),m(4006),m(2722);const Y=["*"],Q=["unscopedContent"],J=["text"],ee=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],me=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"],O=new t.OlP("ListOption");let G=(()=>{class ht{constructor(yt){this._elementRef=yt}}return ht.\u0275fac=function(yt){return new(yt||ht)(t.Y36(t.SBq))},ht.\u0275dir=t.lG2({type:ht,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]}),ht})(),ge=(()=>{class ht{constructor(yt){this._elementRef=yt}}return ht.\u0275fac=function(yt){return new(yt||ht)(t.Y36(t.SBq))},ht.\u0275dir=t.lG2({type:ht,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]}),ht})(),nt=(()=>{class ht{}return ht.\u0275fac=function(yt){return new(yt||ht)},ht.\u0275dir=t.lG2({type:ht,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]}),ht})(),Ue=(()=>{class ht{constructor(yt){this._listOption=yt}_isAlignedAtStart(){return!this._listOption||"after"===this._listOption?._getTogglePosition()}}return ht.\u0275fac=function(yt){return new(yt||ht)(t.Y36(O,8))},ht.\u0275dir=t.lG2({type:ht,hostVars:4,hostBindings:function(yt,be){2&yt&&t.ekj("mdc-list-item__start",be._isAlignedAtStart())("mdc-list-item__end",!be._isAlignedAtStart())}}),ht})(),at=(()=>{class ht extends Ue{}return ht.\u0275fac=function(){let Ge;return function(be){return(Ge||(Ge=t.n5z(ht)))(be||ht)}}(),ht.\u0275dir=t.lG2({type:ht,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[t.qOj]}),ht})(),ye=(()=>{class ht extends Ue{}return ht.\u0275fac=function(){let Ge;return function(be){return(Ge||(Ge=t.n5z(ht)))(be||ht)}}(),ht.\u0275dir=t.lG2({type:ht,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[t.qOj]}),ht})();const xe=new t.OlP("MAT_LIST_CONFIG");let fe=(()=>{class ht{constructor(){this._isNonInteractive=!0,this._disableRipple=!1,this._disabled=!1,this._defaultOptions=(0,t.f3M)(xe,{optional:!0})}get disableRipple(){return this._disableRipple}set disableRipple(yt){this._disableRipple=(0,e.Ig)(yt)}get disabled(){return this._disabled}set disabled(yt){this._disabled=(0,e.Ig)(yt)}}return ht.\u0275fac=function(yt){return new(yt||ht)},ht.\u0275dir=t.lG2({type:ht,hostVars:1,hostBindings:function(yt,be){2&yt&&t.uIk("aria-disabled",be.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}}),ht})(),Oe=(()=>{class ht{set lines(yt){this._explicitLines=(0,e.su)(yt,null),this._updateItemLines(!1)}get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(yt){this._disableRipple=(0,e.Ig)(yt)}get disabled(){return this._disabled||!!this._listBase?.disabled}set disabled(yt){this._disabled=(0,e.Ig)(yt)}get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(yt,be,qe,Ie,X,mt){this._elementRef=yt,this._ngZone=be,this._listBase=qe,this._platform=Ie,this._explicitLines=null,this._disableRipple=!1,this._disabled=!1,this._subscriptions=new s.w0,this._rippleRenderer=null,this._hasUnscopedTextContent=!1,this.rippleConfig=X||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement="button"===this._hostElement.nodeName.toLowerCase(),this._noopAnimations="NoopAnimations"===mt,qe&&!qe._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),null!==this._rippleRenderer&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!(!this._avatars.length&&!this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new T.IR(this,this._ngZone,this._hostElement,this._platform),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add((0,y.T)(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(yt){if(!this._lines||!this._titles||!this._unscopedContent)return;yt&&this._checkDomForUnscopedTextContent();const be=this._explicitLines??this._inferLinesFromContent(),qe=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",be<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",be<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",2===be),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",3===be),this._hasUnscopedTextContent){const Ie=0===this._titles.length&&1===be;qe.classList.toggle("mdc-list-item__primary-text",Ie),qe.classList.toggle("mdc-list-item__secondary-text",!Ie)}else qe.classList.remove("mdc-list-item__primary-text"),qe.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let yt=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(yt+=1),yt}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(yt=>yt.nodeType!==yt.COMMENT_NODE).some(yt=>!(!yt.textContent||!yt.textContent.trim()))}}return ht.\u0275fac=function(yt){return new(yt||ht)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(fe,8),t.Y36(_.t4),t.Y36(T.Y2,8),t.Y36(t.QbO,8))},ht.\u0275dir=t.lG2({type:ht,contentQueries:function(yt,be,qe){if(1&yt&&(t.Suo(qe,at,4),t.Suo(qe,ye,4)),2&yt){let Ie;t.iGM(Ie=t.CRH())&&(be._avatars=Ie),t.iGM(Ie=t.CRH())&&(be._icons=Ie)}},hostVars:4,hostBindings:function(yt,be){2&yt&&(t.uIk("aria-disabled",be.disabled)("disabled",be._isButtonElement&&be.disabled||null),t.ekj("mdc-list-item--disabled",be.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}}),ht})(),he=(()=>{class ht extends fe{}return ht.\u0275fac=function(){let Ge;return function(be){return(Ge||(Ge=t.n5z(ht)))(be||ht)}}(),ht.\u0275cmp=t.Xpm({type:ht,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[t._Bn([{provide:fe,useExisting:ht}]),t.qOj],ngContentSelectors:Y,decls:1,vars:0,template:function(yt,be){1&yt&&(t.F$t(),t.Hsn(0))},styles:['@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-list-divider::after{content:"";display:block;border-bottom-width:1px;border-bottom-style:solid}}.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item__wrapper{display:block}.mdc-list-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer}.mdc-list-item:focus{outline:none}.mdc-list-item.mdc-list-item--with-one-line{height:48px}.mdc-list-item.mdc-list-item--with-two-lines{height:64px}.mdc-list-item.mdc-list-item--with-three-lines{height:88px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--disabled,.mdc-list-item.mdc-list-item--non-interactive{cursor:auto}.mdc-list-item:not(.mdc-list-item--selected):focus::before,.mdc-list-item.mdc-ripple-upgraded--background-focused::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item:not(.mdc-list-item--selected):focus::before,.mdc-list-item.mdc-ripple-upgraded--background-focused::before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px double rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item.mdc-list-item--selected::before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected:focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item.mdc-list-item--selected:focus::before{border-color:CanvasText}}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__content[for]{pointer-events:none}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item__overline-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start,.mdc-list-item--with-leading-avatar .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-avatar .mdc-list-item__start{border-radius:50%}.mdc-list-item--with-leading-icon.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--with-leading-icon .mdc-list-item__start[dir=rtl]{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-thumbnail.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-thumbnail.mdc-list-item,.mdc-list-item--with-leading-thumbnail.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-thumbnail .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-thumbnail .mdc-list-item__start,.mdc-list-item--with-leading-thumbnail .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-image.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-image.mdc-list-item,.mdc-list-item--with-leading-image.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-image .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-image .mdc-list-item__start,.mdc-list-item--with-leading-image .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-video.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-video.mdc-list-item,.mdc-list-item--with-leading-video.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-video .mdc-list-item__start{margin-left:0;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-video .mdc-list-item__start,.mdc-list-item--with-leading-video .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-checkbox.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-radio.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-radio.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-radio .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-radio .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-switch.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-switch.mdc-list-item,.mdc-list-item--with-leading-switch.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-switch .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-switch .mdc-list-item__start,.mdc-list-item--with-leading-switch .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item,.mdc-list-item--with-trailing-icon.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-icon .mdc-list-item__end,.mdc-list-item--with-trailing-icon .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item,.mdc-list-item--with-trailing-meta.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-trailing-meta .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-caption-font-family);font-size:var(--mdc-typography-caption-font-size);line-height:var(--mdc-typography-caption-line-height);font-weight:var(--mdc-typography-caption-font-weight);letter-spacing:var(--mdc-typography-caption-letter-spacing);text-decoration:var(--mdc-typography-caption-text-decoration);text-transform:var(--mdc-typography-caption-text-transform)}.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-radio.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-radio .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-radio .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-switch.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-switch.mdc-list-item,.mdc-list-item--with-trailing-switch.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-switch .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-switch .mdc-list-item__end,.mdc-list-item--with-trailing-switch .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-switch.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item{padding-left:16px;padding-right:16px}[dir=rtl] .mdc-list-item,.mdc-list-item[dir=rtl]{padding-left:16px;padding-right:16px}.mdc-list-group .mdc-deprecated-list{padding:0}.mdc-list-group__subheader{margin:calc((3rem - 1.5rem)/2) 16px}.mdc-list-divider{padding:0;background-clip:content-box}.mdc-list-divider.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset{padding-left:16px;padding-right:auto}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset,.mdc-list-divider.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:16px}.mdc-list-divider.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset{padding-left:auto;padding-right:16px}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset,.mdc-list-divider.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset[dir=rtl]{padding-left:16px;padding-right:auto}.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset{padding-left:0px;padding-right:auto}[dir=rtl] .mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:0px}[dir=rtl] .mdc-list-divider,.mdc-list-divider[dir=rtl]{padding:0}.mdc-list-item{background-color:var(--mdc-list-list-item-container-color)}.mdc-list-item.mdc-list-item--selected{background-color:var(--mdc-list-list-item-selected-container-color)}.mdc-list-item--with-one-line{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-one-line.mdc-list-item--with-leading-avatar,.mdc-list-item--with-one-line.mdc-list-item--with-leading-icon,.mdc-list-item--with-one-line.mdc-list-item--with-leading-thumbnail,.mdc-list-item--with-one-line.mdc-list-item--with-leading-checkbox,.mdc-list-item--with-one-line.mdc-list-item--with-leading-radio,.mdc-list-item--with-one-line.mdc-list-item--with-leading-switch{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-one-line.mdc-list-item--with-leading-image,.mdc-list-item--with-one-line.mdc-list-item--with-leading-video{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-two-lines{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-two-lines.mdc-list-item--with-leading-avatar,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-icon,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-thumbnail,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-checkbox,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-radio,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-switch,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-image,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-video{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-three-lines{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mdc-list-list-item-one-line-container-height)}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mdc-list-list-item-two-line-container-height)}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mdc-list-list-item-three-line-container-height)}.mdc-list-item__primary-text{color:var(--mdc-list-list-item-label-text-color)}.mdc-list-item__primary-text{font-family:var(--mdc-list-list-item-label-text-font);line-height:var(--mdc-list-list-item-label-text-line-height);font-size:var(--mdc-list-list-item-label-text-size);font-weight:var(--mdc-list-list-item-label-text-weight);letter-spacing:var(--mdc-list-list-item-label-text-tracking)}.mdc-list-item__secondary-text{color:var(--mdc-list-list-item-supporting-text-color)}.mdc-list-item__secondary-text{font-family:var(--mdc-list-list-item-supporting-text-font);line-height:var(--mdc-list-list-item-supporting-text-line-height);font-size:var(--mdc-list-list-item-supporting-text-size);font-weight:var(--mdc-list-list-item-supporting-text-weight);letter-spacing:var(--mdc-list-list-item-supporting-text-tracking)}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-leading-icon-color)}.mdc-list-item--with-leading-icon .mdc-list-item__start{width:var(--mdc-list-list-item-leading-icon-size);height:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start>i{font-size:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start .mdc-list-item__icon{font-size:var(--mdc-list-list-item-leading-icon-size);width:var(--mdc-list-list-item-leading-icon-size);height:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mdc-list-list-item-leading-avatar-size);height:var(--mdc-list-list-item-leading-avatar-size)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-supporting-text-color)}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mdc-list-list-item-trailing-supporting-text-font);line-height:var(--mdc-list-list-item-trailing-supporting-text-line-height);font-size:var(--mdc-list-list-item-trailing-supporting-text-size);font-weight:var(--mdc-list-list-item-trailing-supporting-text-weight);letter-spacing:var(--mdc-list-list-item-trailing-supporting-text-tracking)}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-icon-color)}.mdc-list-item--with-trailing-icon .mdc-list-item__end{width:var(--mdc-list-list-item-trailing-icon-size);height:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end>i{font-size:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end .mdc-list-item__icon{font-size:var(--mdc-list-list-item-trailing-icon-size);width:var(--mdc-list-list-item-trailing-icon-size);height:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-selected-trailing-icon-color)}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text,.mdc-list-item--disabled .mdc-list-item__overline-text{opacity:var(--mdc-list-list-item-disabled-label-text-opacity)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-disabled-leading-icon-color)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{opacity:var(--mdc-list-list-item-disabled-leading-icon-opacity)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-disabled-trailing-icon-color)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{opacity:var(--mdc-list-list-item-disabled-trailing-icon-opacity)}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mdc-list-list-item-hover-label-text-color)}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mdc-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mdc-list-list-item-hover-trailing-icon-color)}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mdc-list-list-item-focus-label-text-color)}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mdc-list-list-item-disabled-label-text-color)}.mdc-list-item:hover::before{background-color:var(--mdc-list-list-item-hover-state-layer-color);opacity:var(--mdc-list-list-item-hover-state-layer-opacity)}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mdc-list-list-item-disabled-state-layer-color);opacity:var(--mdc-list-list-item-disabled-state-layer-opacity)}.mdc-list-item:focus::before{background-color:var(--mdc-list-list-item-focus-state-layer-color);opacity:var(--mdc-list-list-item-focus-state-layer-opacity)}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mdc-list-list-item-disabled-label-text-opacity)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mdc-list-list-item-leading-avatar-shape);background-color:var(--mdc-list-list-item-leading-avatar-color)}.mat-mdc-list-base{--mdc-list-list-item-container-shape:0;--mdc-list-list-item-leading-avatar-shape:50%;--mdc-list-list-item-container-color:transparent;--mdc-list-list-item-selected-container-color:transparent;--mdc-list-list-item-leading-avatar-color:transparent;--mdc-list-list-item-leading-icon-size:24px;--mdc-list-list-item-leading-avatar-size:40px;--mdc-list-list-item-trailing-icon-size:24px;--mdc-list-list-item-disabled-state-layer-color:transparent;--mdc-list-list-item-disabled-state-layer-opacity:0;--mdc-list-list-item-disabled-label-text-opacity:0.38;--mdc-list-list-item-disabled-leading-icon-opacity:0.38;--mdc-list-list-item-disabled-trailing-icon-opacity:0.38}.cdk-high-contrast-active a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none}.mat-mdc-list-item>.mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-mdc-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}'],encapsulation:2,changeDetection:0}),ht})(),Me=(()=>{class ht extends Oe{get activated(){return this._activated}set activated(yt){this._activated=(0,e.Ig)(yt)}constructor(yt,be,qe,Ie,X,mt){super(yt,be,qe,Ie,X,mt),this._activated=!1}_getAriaCurrent(){return"A"===this._hostElement.nodeName&&this._activated?"page":null}}return ht.\u0275fac=function(yt){return new(yt||ht)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(fe,8),t.Y36(_.t4),t.Y36(T.Y2,8),t.Y36(t.QbO,8))},ht.\u0275cmp=t.Xpm({type:ht,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(yt,be,qe){if(1&yt&&(t.Suo(qe,ge,5),t.Suo(qe,G,5),t.Suo(qe,nt,5)),2&yt){let Ie;t.iGM(Ie=t.CRH())&&(be._lines=Ie),t.iGM(Ie=t.CRH())&&(be._titles=Ie),t.iGM(Ie=t.CRH())&&(be._meta=Ie)}},viewQuery:function(yt,be){if(1&yt&&(t.Gf(Q,5),t.Gf(J,5)),2&yt){let qe;t.iGM(qe=t.CRH())&&(be._unscopedContent=qe.first),t.iGM(qe=t.CRH())&&(be._itemText=qe.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:11,hostBindings:function(yt,be){2&yt&&(t.uIk("aria-current",be._getAriaCurrent()),t.ekj("mdc-list-item--activated",be.activated)("mdc-list-item--with-leading-avatar",0!==be._avatars.length)("mdc-list-item--with-leading-icon",0!==be._icons.length)("mdc-list-item--with-trailing-meta",0!==be._meta.length)("_mat-animation-noopable",be._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[t.qOj],ngContentSelectors:me,decls:10,vars:0,consts:[[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],["unscopedContent",""],[1,"mat-mdc-focus-indicator"]],template:function(yt,be){1&yt&&(t.F$t(ee),t.Hsn(0),t.TgZ(1,"span",0),t.Hsn(2,1),t.Hsn(3,2),t.TgZ(4,"span",1,2),t.NdJ("cdkObserveContent",function(){return be._updateItemLines(!0)}),t.Hsn(6,3),t.qZA()(),t.Hsn(7,4),t.Hsn(8,5),t._UZ(9,"div",3))},dependencies:[P.wD],encapsulation:2,changeDetection:0}),ht})(),Ut=(()=>{class ht{}return ht.\u0275fac=function(yt){return new(yt||ht)},ht.\u0275mod=t.oAB({type:ht}),ht.\u0275inj=t.cJS({imports:[P.Q8,d.ez,T.BQ,T.si,T.us,w.t]}),ht})()},8255:(We,q,m)=>{"use strict";m.d(q,{OP:()=>v,Tx:()=>pe,VK:()=>xe,p6:()=>Me});var t=m(4650),e=m(4761),_=m(1281),T=m(9521),s=m(7579),y=m(6451),h=m(727),P=m(9646),d=m(3101),w=m(8675),C=m(3900),L=m(5698),D=m(2722),H=m(9300),V=m(4086),Y=m(3238),j=m(6895),Q=m(4080),J=m(7340),ee=m(445),me=m(8184),re=m(3353),ie=m(531);const se=["mat-menu-item",""];function ce(Ve,Qe){1&Ve&&(t.O4$(),t.TgZ(0,"svg",3),t._UZ(1,"polygon",4),t.qZA())}const Ce=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],M=["mat-icon, [matMenuItemIcon]","*"];function i(Ve,Qe){if(1&Ve){const Pe=t.EpF();t.TgZ(0,"div",0),t.NdJ("keydown",function(rt){t.CHM(Pe);const Ke=t.oxw();return t.KtG(Ke._handleKeydown(rt))})("click",function(){t.CHM(Pe);const rt=t.oxw();return t.KtG(rt.closed.emit("click"))})("@transformMenu.start",function(rt){t.CHM(Pe);const Ke=t.oxw();return t.KtG(Ke._onAnimationStart(rt))})("@transformMenu.done",function(rt){t.CHM(Pe);const Ke=t.oxw();return t.KtG(Ke._onAnimationDone(rt))}),t.TgZ(1,"div",1),t.Hsn(2),t.qZA()()}if(2&Ve){const Pe=t.oxw();t.Q6J("id",Pe.panelId)("ngClass",Pe._classList)("@transformMenu",Pe._panelAnimationState),t.uIk("aria-label",Pe.ariaLabel||null)("aria-labelledby",Pe.ariaLabelledby||null)("aria-describedby",Pe.ariaDescribedby||null)}}const a=["*"],f=new t.OlP("MAT_MENU_PANEL"),l=(0,Y.Kr)((0,Y.Id)(class{}));let v=(()=>{class Ve extends l{constructor(Pe,de,rt,Ke,lt){super(),this._elementRef=Pe,this._document=de,this._focusMonitor=rt,this._parentMenu=Ke,this._changeDetectorRef=lt,this.role="menuitem",this._hovered=new s.x,this._focused=new s.x,this._highlighted=!1,this._triggersSubmenu=!1,Ke?.addItem?.(this)}focus(Pe,de){this._focusMonitor&&Pe?this._focusMonitor.focusVia(this._getHostElement(),Pe,de):this._getHostElement().focus(de),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(){const Pe=this._elementRef.nativeElement.cloneNode(!0),de=Pe.querySelectorAll("mat-icon, .material-icons");for(let rt=0;rt enter",(0,J.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,J.oB)({opacity:1,transform:"scale(1)"}))),(0,J.eR)("* => void",(0,J.jt)("100ms 25ms linear",(0,J.oB)({opacity:0})))]),fadeInItems:(0,J.X$)("fadeInItems",[(0,J.SB)("showing",(0,J.oB)({opacity:1})),(0,J.eR)("void => *",[(0,J.oB)({opacity:0}),(0,J.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let nt=0;const Ue=new t.OlP("mat-menu-default-options",{providedIn:"root",factory:function at(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let ye=(()=>{class Ve{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,_.Ig)(Pe)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(Pe){this._hasBackdrop=(0,_.Ig)(Pe)}set panelClass(Pe){const de=this._previousPanelClass;de&&de.length&&de.split(" ").forEach(rt=>{this._classList[rt]=!1}),this._previousPanelClass=Pe,Pe&&Pe.length&&(Pe.split(" ").forEach(rt=>{this._classList[rt]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(Pe){this.panelClass=Pe}constructor(Pe,de,rt,Ke){this._elementRef=Pe,this._ngZone=de,this._defaultOptions=rt,this._changeDetectorRef=Ke,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new t.n_E,this._classList={},this._panelAnimationState="void",this._animationDone=new s.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new t.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+nt++}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new e.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,w.O)(this._directDescendantItems),(0,C.w)(Pe=>(0,y.T)(...Pe.map(de=>de._focused)))).subscribe(Pe=>this._keyManager.updateActiveItem(Pe)),this._directDescendantItems.changes.subscribe(Pe=>{const de=this._keyManager;if("enter"===this._panelAnimationState&&de.activeItem?._hasFocus()){const rt=Pe.toArray(),Ke=Math.max(0,Math.min(rt.length-1,de.activeItemIndex||0));rt[Ke]&&!rt[Ke].disabled?de.setActiveItem(Ke):de.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe((0,w.O)(this._directDescendantItems),(0,C.w)(de=>(0,y.T)(...de.map(rt=>rt._hovered))))}addItem(Pe){}removeItem(Pe){}_handleKeydown(Pe){const de=Pe.keyCode,rt=this._keyManager;switch(de){case T.hY:(0,T.Vb)(Pe)||(Pe.preventDefault(),this.closed.emit("keydown"));break;case T.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case T.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(de===T.LH||de===T.JH)&&rt.setFocusOrigin("keyboard"),void rt.onKeydown(Pe)}Pe.stopPropagation()}focusFirstItem(Pe="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe((0,L.q)(1)).subscribe(()=>{let de=null;if(this._directDescendantItems.length&&(de=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!de||!de.contains(document.activeElement)){const rt=this._keyManager;rt.setFocusOrigin(Pe).setFirstItemActive(),!rt.activeItem&&de&&de.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(Pe){const de=Math.min(this._baseElevation+Pe,24),rt=`${this._elevationPrefix}${de}`,Ke=Object.keys(this._classList).find(lt=>lt.startsWith(this._elevationPrefix));(!Ke||Ke===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[rt]=!0,this._previousElevation=rt)}setPositionClasses(Pe=this.xPosition,de=this.yPosition){const rt=this._classList;rt["mat-menu-before"]="before"===Pe,rt["mat-menu-after"]="after"===Pe,rt["mat-menu-above"]="above"===de,rt["mat-menu-below"]="below"===de,this._changeDetectorRef?.markForCheck()}_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,w.O)(this._allItems)).subscribe(Pe=>{this._directDescendantItems.reset(Pe.filter(de=>de._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return Ve.\u0275fac=function(Pe){return new(Pe||Ve)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(Ue),t.Y36(t.sBO))},Ve.\u0275dir=t.lG2({type:Ve,contentQueries:function(Pe,de,rt){if(1&Pe&&(t.Suo(rt,n,5),t.Suo(rt,v,5),t.Suo(rt,v,4)),2&Pe){let Ke;t.iGM(Ke=t.CRH())&&(de.lazyContent=Ke.first),t.iGM(Ke=t.CRH())&&(de._allItems=Ke),t.iGM(Ke=t.CRH())&&(de.items=Ke)}},viewQuery:function(Pe,de){if(1&Pe&&t.Gf(t.Rgc,5),2&Pe){let rt;t.iGM(rt=t.CRH())&&(de.templateRef=rt.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"}}),Ve})(),xe=(()=>{class Ve extends ye{constructor(Pe,de,rt,Ke){super(Pe,de,rt,Ke),this._elevationPrefix="mat-elevation-z",this._baseElevation=8}}return Ve.\u0275fac=function(Pe){return new(Pe||Ve)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(Ue),t.Y36(t.sBO))},Ve.\u0275cmp=t.Xpm({type:Ve,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(Pe,de){2&Pe&&t.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[t._Bn([{provide:f,useExisting:Ve}]),t.qOj],ngContentSelectors:a,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mdc-menu-surface","mdc-menu-surface--open","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content","mdc-list"]],template:function(Pe,de){1&Pe&&(t.F$t(),t.YNc(0,i,3,6,"ng-template"))},dependencies:[j.mk],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;position:relative}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item.mdc-list-item{align-items:center}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item .mdc-list-item__primary-text{white-space:normal}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[O.transformMenu,O.fadeInItems]},changeDetection:0}),Ve})();const fe=new t.OlP("mat-menu-scroll-strategy"),oe={provide:fe,deps:[me.aV],useFactory:function Oe(Ve){return()=>Ve.scrollStrategies.reposition()}},Fe=(0,re.i$)({passive:!0});let he=(()=>{class Ve{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(de=>{this._destroyMenu(de),("click"===de||"tab"===de)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(de)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(Pe,de,rt,Ke,lt,Ut,ht,Ge,yt){this._overlay=Pe,this._element=de,this._viewContainerRef=rt,this._menuItemInstance=Ut,this._dir=ht,this._focusMonitor=Ge,this._ngZone=yt,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=h.w0.EMPTY,this._hoverSubscription=h.w0.EMPTY,this._menuCloseSubscription=h.w0.EMPTY,this._changeDetectorRef=(0,t.f3M)(t.sBO),this._handleTouchStart=be=>{(0,e.yG)(be)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new t.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new t.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=Ke,this._parentMaterialMenu=lt instanceof ye?lt:void 0,de.nativeElement.addEventListener("touchstart",this._handleTouchStart,Fe)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Fe),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&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const Pe=this.menu;if(this._menuOpen||!Pe)return;const de=this._createOverlay(Pe),rt=de.getConfig(),Ke=rt.positionStrategy;this._setPosition(Pe,Ke),rt.hasBackdrop=null==Pe.hasBackdrop?!this.triggersSubmenu():Pe.hasBackdrop,de.attach(this._getPortal(Pe)),Pe.lazyContent&&Pe.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(Pe),Pe instanceof ye&&(Pe._startAnimation(),Pe._directDescendantItems.changes.pipe((0,D.R)(Pe.close)).subscribe(()=>{Ke.withLockedPosition(!1).reapplyLastPosition(),Ke.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(Pe,de){this._focusMonitor&&Pe?this._focusMonitor.focusVia(this._element,Pe,de):this._element.nativeElement.focus(de)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(Pe){if(!this._overlayRef||!this.menuOpen)return;const de=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===Pe||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,de instanceof ye?(de._resetAnimation(),de.lazyContent?de._animationDone.pipe((0,H.h)(rt=>"void"===rt.toState),(0,L.q)(1),(0,D.R)(de.lazyContent._attached)).subscribe({next:()=>de.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),de?.lazyContent?.detach())}_initMenu(Pe){Pe.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,Pe.direction=this.dir,this._setMenuElevation(Pe),Pe.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(Pe){if(Pe.setElevation){let de=0,rt=Pe.parentMenu;for(;rt;)de++,rt=rt.parentMenu;Pe.setElevation(de)}}_setIsMenuOpen(Pe){Pe!==this._menuOpen&&(this._menuOpen=Pe,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(Pe),this._changeDetectorRef.markForCheck())}_createOverlay(Pe){if(!this._overlayRef){const de=this._getOverlayConfig(Pe);this._subscribeToPositions(Pe,de.positionStrategy),this._overlayRef=this._overlay.create(de),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(Pe){return new me.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:Pe.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:Pe.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(Pe,de){Pe.setPositionClasses&&de.positionChanges.subscribe(rt=>{const Ke="start"===rt.connectionPair.overlayX?"after":"before",lt="top"===rt.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>Pe.setPositionClasses(Ke,lt)):Pe.setPositionClasses(Ke,lt)})}_setPosition(Pe,de){let[rt,Ke]="before"===Pe.xPosition?["end","start"]:["start","end"],[lt,Ut]="above"===Pe.yPosition?["bottom","top"]:["top","bottom"],[ht,Ge]=[lt,Ut],[yt,be]=[rt,Ke],qe=0;if(this.triggersSubmenu()){if(be=rt="before"===Pe.xPosition?"start":"end",Ke=yt="end"===rt?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const Ie=this._parentMaterialMenu.items.first;this._parentInnerPadding=Ie?Ie._getHostElement().offsetTop:0}qe="bottom"===lt?this._parentInnerPadding:-this._parentInnerPadding}}else Pe.overlapTrigger||(ht="top"===lt?"bottom":"top",Ge="top"===Ut?"bottom":"top");de.withPositions([{originX:rt,originY:ht,overlayX:yt,overlayY:lt,offsetY:qe},{originX:Ke,originY:ht,overlayX:be,overlayY:lt,offsetY:qe},{originX:rt,originY:Ge,overlayX:yt,overlayY:Ut,offsetY:-qe},{originX:Ke,originY:Ge,overlayX:be,overlayY:Ut,offsetY:-qe}])}_menuClosingActions(){const Pe=this._overlayRef.backdropClick(),de=this._overlayRef.detachments(),rt=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,P.of)(),Ke=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,H.h)(lt=>lt!==this._menuItemInstance),(0,H.h)(()=>this._menuOpen)):(0,P.of)();return(0,y.T)(Pe,rt,Ke,de)}_handleMousedown(Pe){(0,e.X6)(Pe)||(this._openedBy=0===Pe.button?"mouse":void 0,this.triggersSubmenu()&&Pe.preventDefault())}_handleKeydown(Pe){const de=Pe.keyCode;(de===T.K5||de===T.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(de===T.SV&&"ltr"===this.dir||de===T.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,H.h)(Pe=>Pe===this._menuItemInstance&&!Pe.disabled),(0,V.g)(0,d.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ye&&this.menu._isAnimating?this.menu._animationDone.pipe((0,L.q)(1),(0,V.g)(0,d.E),(0,D.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(Pe){return(!this._portal||this._portal.templateRef!==Pe.templateRef)&&(this._portal=new Q.UE(Pe.templateRef,this._viewContainerRef)),this._portal}}return Ve.\u0275fac=function(Pe){return new(Pe||Ve)(t.Y36(me.aV),t.Y36(t.SBq),t.Y36(t.s_b),t.Y36(fe),t.Y36(f,8),t.Y36(v,10),t.Y36(ee.Is,8),t.Y36(e.tE),t.Y36(t.R0b))},Ve.\u0275dir=t.lG2({type:Ve,hostVars:3,hostBindings:function(Pe,de){1&Pe&&t.NdJ("click",function(Ke){return de._handleClick(Ke)})("mousedown",function(Ke){return de._handleMousedown(Ke)})("keydown",function(Ke){return de._handleKeydown(Ke)}),2&Pe&&t.uIk("aria-haspopup",de.menu?"menu":null)("aria-expanded",de.menuOpen)("aria-controls",de.menuOpen?de.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"}}),Ve})(),Me=(()=>{class Ve extends he{}return Ve.\u0275fac=function(){let Qe;return function(de){return(Qe||(Qe=t.n5z(Ve)))(de||Ve)}}(),Ve.\u0275dir=t.lG2({type:Ve,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],exportAs:["matMenuTrigger"],features:[t.qOj]}),Ve})(),pe=(()=>{class Ve{}return Ve.\u0275fac=function(Pe){return new(Pe||Ve)},Ve.\u0275mod=t.oAB({type:Ve}),Ve.\u0275inj=t.cJS({providers:[oe],imports:[j.ez,Y.si,Y.BQ,me.U8,ie.ZD,Y.BQ]}),Ve})()},8739:(We,q,m)=>{"use strict";m.d(q,{NW:()=>ce,TU:()=>Ce,ye:()=>Y});var t=m(6895),e=m(4650),_=m(7579),T=m(4859),s=m(4385),y=m(266),h=m(3238),P=m(1281),d=m(9549);function w(M,i){if(1&M&&(e.TgZ(0,"mat-option",19),e._uU(1),e.qZA()),2&M){const a=i.$implicit;e.Q6J("value",a),e.xp6(1),e.hij(" ",a," ")}}function C(M,i){if(1&M){const a=e.EpF();e.TgZ(0,"mat-form-field",16)(1,"mat-select",17),e.NdJ("selectionChange",function(l){e.CHM(a);const v=e.oxw(2);return e.KtG(v._changePageSize(l.value))}),e.YNc(2,w,2,2,"mat-option",18),e.qZA()()}if(2&M){const a=e.oxw(2);e.Q6J("appearance",a._formFieldAppearance)("color",a.color),e.xp6(1),e.Q6J("value",a.pageSize)("disabled",a.disabled)("aria-labelledby",a._pageSizeLabelId)("panelClass",a.selectConfig.panelClass||"")("disableOptionCentering",a.selectConfig.disableOptionCentering),e.xp6(1),e.Q6J("ngForOf",a._displayedPageSizeOptions)}}function L(M,i){if(1&M&&(e.TgZ(0,"div",20),e._uU(1),e.qZA()),2&M){const a=e.oxw(2);e.xp6(1),e.Oqu(a.pageSize)}}function D(M,i){if(1&M&&(e.TgZ(0,"div",12)(1,"div",13),e._uU(2),e.qZA(),e.YNc(3,C,3,8,"mat-form-field",14),e.YNc(4,L,2,1,"div",15),e.qZA()),2&M){const a=e.oxw();e.xp6(1),e.s9C("id",a._pageSizeLabelId),e.xp6(1),e.hij(" ",a._intl.itemsPerPageLabel," "),e.xp6(1),e.Q6J("ngIf",a._displayedPageSizeOptions.length>1),e.xp6(1),e.Q6J("ngIf",a._displayedPageSizeOptions.length<=1)}}function H(M,i){if(1&M){const a=e.EpF();e.TgZ(0,"button",21),e.NdJ("click",function(){e.CHM(a);const l=e.oxw();return e.KtG(l.firstPage())}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",22),e.qZA()()}if(2&M){const a=e.oxw();e.Q6J("matTooltip",a._intl.firstPageLabel)("matTooltipDisabled",a._previousButtonsDisabled())("matTooltipPosition","above")("disabled",a._previousButtonsDisabled()),e.uIk("aria-label",a._intl.firstPageLabel)}}function V(M,i){if(1&M){const a=e.EpF();e.O4$(),e.kcU(),e.TgZ(0,"button",23),e.NdJ("click",function(){e.CHM(a);const l=e.oxw();return e.KtG(l.lastPage())}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",24),e.qZA()()}if(2&M){const a=e.oxw();e.Q6J("matTooltip",a._intl.lastPageLabel)("matTooltipDisabled",a._nextButtonsDisabled())("matTooltipPosition","above")("disabled",a._nextButtonsDisabled()),e.uIk("aria-label",a._intl.lastPageLabel)}}let Y=(()=>{class M{constructor(){this.changes=new _.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(a,f,l)=>{if(0==l||0==f)return`0 of ${l}`;const v=a*f;return`${v+1} \u2013 ${v<(l=Math.max(l,0))?Math.min(v+f,l):v+f} of ${l}`}}}return M.\u0275fac=function(a){return new(a||M)},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})();const Q={provide:Y,deps:[[new e.FiY,new e.tp0,Y]],useFactory:function j(M){return M||new Y}},me=new e.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),re=(0,h.Id)((0,h.dB)(class{}));let ie=(()=>{class M extends re{get pageIndex(){return this._pageIndex}set pageIndex(a){this._pageIndex=Math.max((0,P.su)(a),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(a){this._length=(0,P.su)(a),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(a){this._pageSize=Math.max((0,P.su)(a),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(a){this._pageSizeOptions=(a||[]).map(f=>(0,P.su)(f)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(a){this._hidePageSize=(0,P.Ig)(a)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(a){this._showFirstLastButtons=(0,P.Ig)(a)}constructor(a,f,l){if(super(),this._intl=a,this._changeDetectorRef=f,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new e.vpe,this._intlChanges=a.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),l){const{pageSize:v,pageSizeOptions:I,hidePageSize:k,showFirstLastButtons:x}=l;null!=v&&(this._pageSize=v),null!=I&&(this._pageSizeOptions=I),null!=k&&(this._hidePageSize=k),null!=x&&(this._showFirstLastButtons=x)}}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const a=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(a)}previousPage(){if(!this.hasPreviousPage())return;const a=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(a)}firstPage(){if(!this.hasPreviousPage())return;const a=this.pageIndex;this.pageIndex=0,this._emitPageEvent(a)}lastPage(){if(!this.hasNextPage())return;const a=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(a)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const a=this.getNumberOfPages()-1;return this.pageIndexa-f),this._changeDetectorRef.markForCheck())}_emitPageEvent(a){this.page.emit({previousPageIndex:a,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return M.\u0275fac=function(a){e.$Z()},M.\u0275dir=e.lG2({type:M,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[e.qOj]}),M})(),se=0,ce=(()=>{class M extends ie{constructor(a,f,l){super(a,f,l),this._pageSizeLabelId="mat-paginator-page-size-label-"+se++,this._formFieldAppearance=l?.formFieldAppearance||"outline"}}return M.\u0275fac=function(a){return new(a||M)(e.Y36(Y),e.Y36(e.sBO),e.Y36(me,8))},M.\u0275cmp=e.Xpm({type:M,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[e.qOj],decls:14,vars:14,consts:[[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],["class","mat-mdc-paginator-page-size",4,"ngIf"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-mdc-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-mdc-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-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-page-size-label",3,"id"],["class","mat-mdc-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-mdc-paginator-page-size-value",4,"ngIf"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],["hideSingleSelectionIndicator","",3,"value","disabled","aria-labelledby","panelClass","disableOptionCentering","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-mdc-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-mdc-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-mdc-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(a,f){1&a&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,D,5,4,"div",2),e.TgZ(3,"div",3)(4,"div",4),e._uU(5),e.qZA(),e.YNc(6,H,3,5,"button",5),e.TgZ(7,"button",6),e.NdJ("click",function(){return f.previousPage()}),e.O4$(),e.TgZ(8,"svg",7),e._UZ(9,"path",8),e.qZA()(),e.kcU(),e.TgZ(10,"button",9),e.NdJ("click",function(){return f.nextPage()}),e.O4$(),e.TgZ(11,"svg",7),e._UZ(12,"path",10),e.qZA()(),e.YNc(13,V,3,5,"button",11),e.qZA()()()),2&a&&(e.xp6(2),e.Q6J("ngIf",!f.hidePageSize),e.xp6(3),e.hij(" ",f._intl.getRangeLabel(f.pageIndex,f.pageSize,f.length)," "),e.xp6(1),e.Q6J("ngIf",f.showFirstLastButtons),e.xp6(1),e.Q6J("matTooltip",f._intl.previousPageLabel)("matTooltipDisabled",f._previousButtonsDisabled())("matTooltipPosition","above")("disabled",f._previousButtonsDisabled()),e.uIk("aria-label",f._intl.previousPageLabel),e.xp6(3),e.Q6J("matTooltip",f._intl.nextPageLabel)("matTooltipDisabled",f._nextButtonsDisabled())("matTooltipPosition","above")("disabled",f._nextButtonsDisabled()),e.uIk("aria-label",f._intl.nextPageLabel),e.xp6(3),e.Q6J("ngIf",f.showFirstLastButtons))},dependencies:[t.sg,t.O5,T.RK,d.KE,s.gD,h.ey,y.gM],styles:[".mat-mdc-paginator{display:block}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.cdk-high-contrast-active .mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),M})(),Ce=(()=>{class M{}return M.\u0275fac=function(a){return new(a||M)},M.\u0275mod=e.oAB({type:M}),M.\u0275inj=e.cJS({providers:[Q],imports:[t.ez,T.ot,s.LD,y.AV]}),M})()},3162:(We,q,m)=>{"use strict";m.d(q,{Cv:()=>C,pW:()=>d});var t=m(4650),_=(m(6895),m(3238)),T=m(1281);const s=new t.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),P=(0,_.pj)(class{constructor(L){this._elementRef=L}},"primary");let d=(()=>{class L extends P{constructor(H,V,Y,j,Q){super(H),this._ngZone=V,this._changeDetectorRef=Y,this._animationMode=j,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new t.vpe,this._mode="determinate",this._transitionendHandler=J=>{0===this.animationEnd.observers.length||!J.target||!J.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation="NoopAnimations"===j,Q&&(Q.color&&(this.color=this.defaultColor=Q.color),this.mode=Q.mode||this.mode)}get value(){return this._value}set value(H){this._value=w((0,T.su)(H)),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(H){this._bufferValue=w((0,T.su)(H)),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(H){this._mode=H,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}}return L.\u0275fac=function(H){return new(H||L)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(t.QbO,8),t.Y36(s,8))},L.\u0275cmp=t.Xpm({type:L,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:8,hostBindings:function(H,V){2&H&&(t.uIk("aria-valuenow",V._isIndeterminate()?null:V.value)("mode",V.mode),t.ekj("_mat-animation-noopable",V._isNoopAnimation)("mdc-linear-progress--animation-ready",!V._isNoopAnimation)("mdc-linear-progress--indeterminate",V._isIndeterminate()))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[t.qOj],decls:7,vars:4,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(H,V){1&H&&(t.TgZ(0,"div",0),t._UZ(1,"div",1)(2,"div",2),t.qZA(),t.TgZ(3,"div",3),t._UZ(4,"span",4),t.qZA(),t.TgZ(5,"div",5),t._UZ(6,"span",4),t.qZA()),2&H&&(t.xp6(1),t.Udp("flex-basis",V._getBufferBarFlexBasis()),t.xp6(2),t.Udp("transform",V._getPrimaryBarTransform()))},styles:["@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half, 83.67142%))}100%{transform:translateX(var(--mdc-linear-progress-primary-full, 200.611057%))}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter, 37.651913%))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half, 84.386165%))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full, 160.277782%))}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(-10px)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half-neg, -83.67142%))}100%{transform:translateX(var(--mdc-linear-progress-primary-full-neg, -200.611057%))}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter-neg, -37.651913%))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half-neg, -84.386165%))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full-neg, -160.277782%))}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}@media screen and (forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;width:100%;height:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid}.mdc-linear-progress__buffer{display:flex;position:absolute;width:100%;height:100%}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering 250ms infinite linear}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__bar{right:0;-webkit-transform-origin:center right;transform-origin:center right}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__buffer-dots,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}.mdc-linear-progress--closed{opacity:0}.mdc-linear-progress--closed-animation-off .mdc-linear-progress__buffer-dots{animation:none}.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar,.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar .mdc-linear-progress__bar-inner{animation:none}.mdc-linear-progress__bar-inner{border-color:var(--mdc-linear-progress-active-indicator-color, #6200ee)}.mdc-linear-progress__buffer-dots{background-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23e6e6e6'/%3E%3C/svg%3E\")}.mdc-linear-progress__buffer-bar{background-color:#e6e6e6}.mdc-linear-progress{height:var(--mdc-linear-progress-track-height, 4px)}.mdc-linear-progress__bar-inner{border-top-width:var(--mdc-linear-progress-track-height, 4px)}.mdc-linear-progress__buffer-dots{background-size:10px var(--mdc-linear-progress-track-height, 4px)}.mat-mdc-progress-bar{display:block}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}"],encapsulation:2,changeDetection:0}),L})();function w(L,D=0,H=100){return Math.max(D,Math.min(H,L))}let C=(()=>{class L{}return L.\u0275fac=function(H){return new(H||L)},L.\u0275mod=t.oAB({type:L}),L.\u0275inj=t.cJS({imports:[_.BQ]}),L})()},1572:(We,q,m)=>{"use strict";m.d(q,{Cq:()=>H,Ou:()=>L});var t=m(4650),e=m(3238),_=m(1281),T=m(6895);const s=["determinateSpinner"];function y(V,Y){if(1&V&&(t.O4$(),t.TgZ(0,"svg",11),t._UZ(1,"circle",12),t.qZA()),2&V){const j=t.oxw();t.uIk("viewBox",j._viewBox()),t.xp6(1),t.Udp("stroke-dasharray",j._strokeCircumference(),"px")("stroke-dashoffset",j._strokeCircumference()/2,"px")("stroke-width",j._circleStrokeWidth(),"%"),t.uIk("r",j._circleRadius())}}const h=(0,e.pj)(class{constructor(V){this._elementRef=V}},"primary"),P=new t.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function d(){return{diameter:w}}}),w=100;let L=(()=>{class V extends h{constructor(j,Q,J){super(j),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=w,this._noopAnimations="NoopAnimations"===Q&&!!J&&!J._forceAnimations,J&&(J.color&&(this.color=this.defaultColor=J.color),J.diameter&&(this.diameter=J.diameter),J.strokeWidth&&(this.strokeWidth=J.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(j){this._value=Math.max(0,Math.min(100,(0,_.su)(j)))}get diameter(){return this._diameter}set diameter(j){this._diameter=(0,_.su)(j)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(j){this._strokeWidth=(0,_.su)(j)}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const j=2*this._circleRadius()+this.strokeWidth;return`0 0 ${j} ${j}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}}return V.\u0275fac=function(j){return new(j||V)(t.Y36(t.SBq),t.Y36(t.QbO,8),t.Y36(P))},V.\u0275cmp=t.Xpm({type:V,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(j,Q){if(1&j&&t.Gf(s,5),2&j){let J;t.iGM(J=t.CRH())&&(Q._determinateCircle=J.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:12,hostBindings:function(j,Q){2&j&&(t.uIk("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===Q.mode?Q.value:null)("mode",Q.mode),t.Udp("width",Q.diameter,"px")("height",Q.diameter,"px"),t.ekj("_mat-animation-noopable",Q._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===Q.mode))},inputs:{color:"color",mode:"mode",value:"value",diameter:"diameter",strokeWidth:"strokeWidth"},exportAs:["matProgressSpinner"],features:[t.qOj],decls:14,vars:11,consts:[["circle",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["determinateSpinner",""],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(j,Q){if(1&j&&(t.YNc(0,y,2,8,"ng-template",null,0,t.W1O),t.TgZ(2,"div",1,2),t.O4$(),t.TgZ(4,"svg",3),t._UZ(5,"circle",4),t.qZA()(),t.kcU(),t.TgZ(6,"div",5)(7,"div",6)(8,"div",7),t.GkF(9,8),t.qZA(),t.TgZ(10,"div",9),t.GkF(11,8),t.qZA(),t.TgZ(12,"div",10),t.GkF(13,8),t.qZA()()()),2&j){const J=t.MAs(1);t.xp6(4),t.uIk("viewBox",Q._viewBox()),t.xp6(1),t.Udp("stroke-dasharray",Q._strokeCircumference(),"px")("stroke-dashoffset",Q._strokeDashOffset(),"px")("stroke-width",Q._circleStrokeWidth(),"%"),t.uIk("r",Q._circleRadius()),t.xp6(4),t.Q6J("ngTemplateOutlet",J),t.xp6(2),t.Q6J("ngTemplateOutlet",J),t.xp6(2),t.Q6J("ngTemplateOutlet",J)}},dependencies:[T.tP],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color, transparent)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0}),V})(),H=(()=>{class V{}return V.\u0275fac=function(j){return new(j||V)},V.\u0275mod=t.oAB({type:V}),V.\u0275inj=t.cJS({imports:[T.ez,e.BQ]}),V})()},1948:(We,q,m)=>{"use strict";m.d(q,{Fk:()=>re,U0:()=>me,VQ:()=>ee});var t=m(4650),e=m(3238),_=m(4761),T=m(1281),s=m(5017),y=m(4006),h=m(6895);const P=["input"],d=["*"];let w=0;class C{constructor(se,ce){this.source=se,this.value=ce}}const L={provide:y.JU,useExisting:(0,t.Gpc)(()=>ee),multi:!0},D=new t.OlP("MatRadioGroup"),H=new t.OlP("mat-radio-default-options",{providedIn:"root",factory:function V(){return{color:"accent"}}});let Y=(()=>{class ie{get name(){return this._name}set name(ce){this._name=ce,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(ce){this._labelPosition="before"===ce?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(ce){this._value!==ce&&(this._value=ce,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(ce){this._selected=ce,this.value=ce?ce.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(ce){this._disabled=(0,T.Ig)(ce),this._markRadiosForCheck()}get required(){return this._required}set required(ce){this._required=(0,T.Ig)(ce),this._markRadiosForCheck()}constructor(ce){this._changeDetector=ce,this._value=null,this._name="mat-radio-group-"+w++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new t.vpe}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(ce=>{ce.name=this.name,ce._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(Ce=>{Ce.checked=this.value===Ce.value,Ce.checked&&(this._selected=Ce)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new C(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(ce=>ce._markForCheck())}writeValue(ce){this.value=ce,this._changeDetector.markForCheck()}registerOnChange(ce){this._controlValueAccessorChangeFn=ce}registerOnTouched(ce){this.onTouched=ce}setDisabledState(ce){this.disabled=ce,this._changeDetector.markForCheck()}}return ie.\u0275fac=function(ce){return new(ce||ie)(t.Y36(t.sBO))},ie.\u0275dir=t.lG2({type:ie,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),ie})();class j{constructor(se){this._elementRef=se}}const Q=(0,e.Kr)((0,e.sb)(j));let J=(()=>{class ie extends Q{get checked(){return this._checked}set checked(ce){const Ce=(0,T.Ig)(ce);this._checked!==Ce&&(this._checked=Ce,Ce&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!Ce&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),Ce&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(ce){this._value!==ce&&(this._value=ce,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===ce),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(ce){this._labelPosition=ce}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(ce){this._setDisabled((0,T.Ig)(ce))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(ce){this._required=(0,T.Ig)(ce)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(ce){this._color=ce}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(ce,Ce,M,i,a,f,l,v){super(Ce),this._changeDetector=M,this._focusMonitor=i,this._radioDispatcher=a,this._providerOverride=l,this._uniqueId="mat-radio-"+ ++w,this.id=this._uniqueId,this.change=new t.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=ce,this._noopAnimations="NoopAnimations"===f,v&&(this.tabIndex=(0,T.su)(v,0))}focus(ce,Ce){Ce?this._focusMonitor.focusVia(this._inputElement,Ce,ce):this._inputElement.nativeElement.focus(ce)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((ce,Ce)=>{ce!==this.id&&Ce===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(ce=>{!ce&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new C(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(ce){ce.stopPropagation()}_onInputInteraction(ce){if(ce.stopPropagation(),!this.checked&&!this.disabled){const Ce=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),Ce&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(ce){this._onInputInteraction(ce),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(ce){this._disabled!==ce&&(this._disabled=ce,this._changeDetector.markForCheck())}_updateTabIndex(){const ce=this.radioGroup;let Ce;if(Ce=ce&&ce.selected&&!this.disabled?ce.selected===this?this.tabIndex:-1:this.tabIndex,Ce!==this._previousTabIndex){const M=this._inputElement?.nativeElement;M&&(M.setAttribute("tabindex",Ce+""),this._previousTabIndex=Ce)}}}return ie.\u0275fac=function(ce){t.$Z()},ie.\u0275dir=t.lG2({type:ie,viewQuery:function(ce,Ce){if(1&ce&&t.Gf(P,5),2&ce){let M;t.iGM(M=t.CRH())&&(Ce._inputElement=M.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:[t.qOj]}),ie})(),ee=(()=>{class ie extends Y{}return ie.\u0275fac=function(){let se;return function(Ce){return(se||(se=t.n5z(ie)))(Ce||ie)}}(),ie.\u0275dir=t.lG2({type:ie,selectors:[["mat-radio-group"]],contentQueries:function(ce,Ce,M){if(1&ce&&t.Suo(M,me,5),2&ce){let i;t.iGM(i=t.CRH())&&(Ce._radios=i)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],exportAs:["matRadioGroup"],features:[t._Bn([L,{provide:D,useExisting:ie}]),t.qOj]}),ie})(),me=(()=>{class ie extends J{constructor(ce,Ce,M,i,a,f,l,v){super(ce,Ce,M,i,a,f,l,v)}}return ie.\u0275fac=function(ce){return new(ce||ie)(t.Y36(D,8),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(_.tE),t.Y36(s.A8),t.Y36(t.QbO,8),t.Y36(H,8),t.$8M("tabindex"))},ie.\u0275cmp=t.Xpm({type:ie,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(ce,Ce){1&ce&&t.NdJ("focus",function(){return Ce._inputElement.nativeElement.focus()}),2&ce&&(t.uIk("id",Ce.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),t.ekj("mat-primary","primary"===Ce.color)("mat-accent","accent"===Ce.color)("mat-warn","warn"===Ce.color)("mat-mdc-radio-checked",Ce.checked)("_mat-animation-noopable",Ce._noopAnimations))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[t.qOj],ngContentSelectors:d,decls:13,vars:17,consts:[[1,"mdc-form-field"],["formField",""],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"id","checked","disabled","required","change"],["input",""],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[3,"for"]],template:function(ce,Ce){if(1&ce&&(t.F$t(),t.TgZ(0,"div",0,1)(2,"div",2)(3,"div",3),t.NdJ("click",function(i){return Ce._onTouchTargetClick(i)}),t.qZA(),t.TgZ(4,"input",4,5),t.NdJ("change",function(i){return Ce._onInputInteraction(i)}),t.qZA(),t.TgZ(6,"div",6),t._UZ(7,"div",7)(8,"div",8),t.qZA(),t.TgZ(9,"div",9),t._UZ(10,"div",10),t.qZA()(),t.TgZ(11,"label",11),t.Hsn(12),t.qZA()()),2&ce){const M=t.MAs(1);t.ekj("mdc-form-field--align-end","before"==Ce.labelPosition),t.xp6(2),t.ekj("mdc-radio--disabled",Ce.disabled),t.xp6(2),t.Q6J("id",Ce.inputId)("checked",Ce.checked)("disabled",Ce.disabled)("required",Ce.required),t.uIk("name",Ce.name)("value",Ce.value)("aria-label",Ce.ariaLabel)("aria-labelledby",Ce.ariaLabelledby)("aria-describedby",Ce.ariaDescribedby),t.xp6(5),t.Q6J("matRippleTrigger",M)("matRippleDisabled",Ce._isRippleDisabled())("matRippleCentered",!0),t.xp6(2),t.Q6J("for",Ce.inputId)}},dependencies:[e.wG],styles:['.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio[hidden]{display:none}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size, 40px) - 20px) / 2)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-focus-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-hover-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-pressed-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color, #000)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color, #000)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size, 40px) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size, 40px) - 20px) / 2);width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);right:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);left:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-mdc-radio-ripple-color, transparent)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-mdc-radio-checked-ripple-color, transparent)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-mdc-radio-checked-ripple-color, transparent)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}[dir=rtl] .mat-mdc-radio-touch-target{left:0;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0}),ie})(),re=(()=>{class ie{}return ie.\u0275fac=function(ce){return new(ce||ie)},ie.\u0275mod=t.oAB({type:ie}),ie.\u0275inj=t.cJS({imports:[e.BQ,h.ez,e.si,e.BQ]}),ie})()},4385:(We,q,m)=>{"use strict";m.d(q,{$L:()=>xe,LD:()=>Oe,PG:()=>G,gD:()=>fe});var t=m(8184),e=m(6895),_=m(4650),T=m(3238),s=m(9549),y=m(531),h=m(4761),P=m(445),d=m(1281),w=m(5017),C=m(9521),L=m(4006),D=m(7579),H=m(9770),V=m(6451),Y=m(8675),j=m(3900),Q=m(5698),J=m(9300),ee=m(4004),me=m(1884),re=m(2722),ie=m(7340);const se=["trigger"],ce=["panel"];function Ce(oe,Fe){if(1&oe&&(_.TgZ(0,"span",10),_._uU(1),_.qZA()),2&oe){const De=_.oxw();_.xp6(1),_.Oqu(De.placeholder)}}function M(oe,Fe){if(1&oe&&(_.TgZ(0,"span",14),_._uU(1),_.qZA()),2&oe){const De=_.oxw(2);_.xp6(1),_.Oqu(De.triggerValue)}}function i(oe,Fe){1&oe&&_.Hsn(0,0,["*ngSwitchCase","true"])}function a(oe,Fe){if(1&oe&&(_.TgZ(0,"span",11),_.YNc(1,M,2,1,"span",12),_.YNc(2,i,1,0,"ng-content",13),_.qZA()),2&oe){const De=_.oxw();_.Q6J("ngSwitch",!!De.customTrigger),_.xp6(2),_.Q6J("ngSwitchCase",!0)}}function f(oe,Fe){if(1&oe){const De=_.EpF();_.O4$(),_.kcU(),_.TgZ(0,"div",15,16),_.NdJ("@transformPanel.done",function(Me){_.CHM(De);const pe=_.oxw();return _.KtG(pe._panelDoneAnimatingStream.next(Me.toState))})("keydown",function(Me){_.CHM(De);const pe=_.oxw();return _.KtG(pe._handleKeydown(Me))}),_.Hsn(2,1),_.qZA()}if(2&oe){const De=_.oxw();_.Gre("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",De._getPanelTheme(),""),_.Q6J("ngClass",De.panelClass)("@transformPanel","showing"),_.uIk("id",De.id+"-panel")("aria-multiselectable",De.multiple)("aria-label",De.ariaLabel||null)("aria-labelledby",De._getPanelAriaLabelledby())}}const l=[[["mat-select-trigger"]],"*"],v=["mat-select-trigger","*"],I={transformPanelWrap:(0,ie.X$)("transformPanelWrap",[(0,ie.eR)("* => void",(0,ie.IO)("@transformPanel",[(0,ie.pV)()],{optional:!0}))]),transformPanel:(0,ie.X$)("transformPanel",[(0,ie.SB)("void",(0,ie.oB)({opacity:0,transform:"scale(1, 0.8)"})),(0,ie.eR)("void => showing",(0,ie.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ie.oB)({opacity:1,transform:"scale(1, 1)"}))),(0,ie.eR)("* => void",(0,ie.jt)("100ms linear",(0,ie.oB)({opacity:0})))])};let g=0;const W=new _.OlP("mat-select-scroll-strategy"),G=new _.OlP("MAT_SELECT_CONFIG"),ge={provide:W,deps:[t.aV],useFactory:function O(oe){return()=>oe.scrollStrategies.reposition()}},nt=new _.OlP("MatSelectTrigger");class Ue{constructor(Fe,De){this.source=Fe,this.value=De}}const at=(0,T.Kr)((0,T.sb)((0,T.Id)((0,T.FD)(class{constructor(oe,Fe,De,he,Me){this._elementRef=oe,this._defaultErrorStateMatcher=Fe,this._parentForm=De,this._parentFormGroup=he,this.ngControl=Me,this.stateChanges=new D.x}}))));let ye=(()=>{class oe extends at{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(De){this._placeholder=De,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(L.kI.required)??!1}set required(De){this._required=(0,d.Ig)(De),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(De){this._multiple=(0,d.Ig)(De)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(De){this._disableOptionCentering=(0,d.Ig)(De)}get compareWith(){return this._compareWith}set compareWith(De){this._compareWith=De,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(De){this._assignValue(De)&&this._onChange(De)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(De){this._typeaheadDebounceInterval=(0,d.su)(De)}get id(){return this._id}set id(De){this._id=De||this._uid,this.stateChanges.next()}constructor(De,he,Me,pe,Ve,Qe,Pe,de,rt,Ke,lt,Ut,ht,Ge){super(Ve,pe,Pe,de,Ke),this._viewportRuler=De,this._changeDetectorRef=he,this._ngZone=Me,this._dir=Qe,this._parentFormField=rt,this._liveAnnouncer=ht,this._defaultOptions=Ge,this._panelOpen=!1,this._compareWith=(yt,be)=>yt===be,this._uid="mat-select-"+g++,this._triggerAriaLabelledBy=null,this._destroy=new D.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+g++,this._panelDoneAnimatingStream=new D.x,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,H.P)(()=>{const yt=this.options;return yt?yt.changes.pipe((0,Y.O)(yt),(0,j.w)(()=>(0,V.T)(...yt.map(be=>be.onSelectionChange)))):this._ngZone.onStable.pipe((0,Q.q)(1),(0,j.w)(()=>this.optionSelectionChanges))}),this.openedChange=new _.vpe,this._openedStream=this.openedChange.pipe((0,J.h)(yt=>yt),(0,ee.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,J.h)(yt=>!yt),(0,ee.U)(()=>{})),this.selectionChange=new _.vpe,this.valueChange=new _.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=Ge?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=Ge.typeaheadDebounceInterval),this._scrollStrategyFactory=Ut,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(lt)||0,this.id=this.id}ngOnInit(){this._selectionModel=new w.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,me.x)(),(0,re.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,re.R)(this._destroy)).subscribe(De=>{De.added.forEach(he=>he.select()),De.removed.forEach(he=>he.deselect())}),this.options.changes.pipe((0,Y.O)(null),(0,re.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const De=this._getTriggerAriaLabelledby(),he=this.ngControl;if(De!==this._triggerAriaLabelledBy){const Me=this._elementRef.nativeElement;this._triggerAriaLabelledBy=De,De?Me.setAttribute("aria-labelledby",De):Me.removeAttribute("aria-labelledby")}he&&(this._previousControl!==he.control&&(void 0!==this._previousControl&&null!==he.disabled&&he.disabled!==this.disabled&&(this.disabled=he.disabled),this._previousControl=he.control),this.updateErrorState())}ngOnChanges(De){(De.disabled||De.userAriaDescribedBy)&&this.stateChanges.next(),De.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),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(De){this._assignValue(De)}registerOnChange(De){this._onChange=De}registerOnTouched(De){this._onTouched=De}setDisabledState(De){this.disabled=De,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const De=this._selectionModel.selected.map(he=>he.viewValue);return this._isRtl()&&De.reverse(),De.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(De){this.disabled||(this.panelOpen?this._handleOpenKeydown(De):this._handleClosedKeydown(De))}_handleClosedKeydown(De){const he=De.keyCode,Me=he===C.JH||he===C.LH||he===C.oh||he===C.SV,pe=he===C.K5||he===C.L_,Ve=this._keyManager;if(!Ve.isTyping()&&pe&&!(0,C.Vb)(De)||(this.multiple||De.altKey)&&Me)De.preventDefault(),this.open();else if(!this.multiple){const Qe=this.selected;Ve.onKeydown(De);const Pe=this.selected;Pe&&Qe!==Pe&&this._liveAnnouncer.announce(Pe.viewValue,1e4)}}_handleOpenKeydown(De){const he=this._keyManager,Me=De.keyCode,pe=Me===C.JH||Me===C.LH,Ve=he.isTyping();if(pe&&De.altKey)De.preventDefault(),this.close();else if(Ve||Me!==C.K5&&Me!==C.L_||!he.activeItem||(0,C.Vb)(De))if(!Ve&&this._multiple&&Me===C.A&&De.ctrlKey){De.preventDefault();const Qe=this.options.some(Pe=>!Pe.disabled&&!Pe.selected);this.options.forEach(Pe=>{Pe.disabled||(Qe?Pe.select():Pe.deselect())})}else{const Qe=he.activeItemIndex;he.onKeydown(De),this._multiple&&pe&&De.shiftKey&&he.activeItem&&he.activeItemIndex!==Qe&&he.activeItem._selectViaInteraction()}else De.preventDefault(),he.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,Q.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.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(De){if(this.options.forEach(he=>he.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&De)Array.isArray(De),De.forEach(he=>this._selectOptionByValue(he)),this._sortValues();else{const he=this._selectOptionByValue(De);he?this._keyManager.updateActiveItem(he):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(De){const he=this.options.find(Me=>{if(this._selectionModel.isSelected(Me))return!1;try{return null!=Me.value&&this._compareWith(Me.value,De)}catch{return!1}});return he&&this._selectionModel.select(he),he}_assignValue(De){return!!(De!==this._value||this._multiple&&Array.isArray(De))&&(this.options&&this._setSelectionByValue(De),this._value=De,!0)}_initKeyManager(){this._keyManager=new h.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const De=(0,V.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,re.R)(De)).subscribe(he=>{this._onSelect(he.source,he.isUserInput),he.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,V.T)(...this.options.map(he=>he._stateChanges)).pipe((0,re.R)(De)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(De,he){const Me=this._selectionModel.isSelected(De);null!=De.value||this._multiple?(Me!==De.selected&&(De.selected?this._selectionModel.select(De):this._selectionModel.deselect(De)),he&&this._keyManager.setActiveItem(De),this.multiple&&(this._sortValues(),he&&this.focus())):(De.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(De.value)),Me!==this._selectionModel.isSelected(De)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const De=this.options.toArray();this._selectionModel.sort((he,Me)=>this.sortComparator?this.sortComparator(he,Me,De):De.indexOf(he)-De.indexOf(Me)),this.stateChanges.next()}}_propagateChanges(De){let he=null;he=this.multiple?this.selected.map(Me=>Me.value):this.selected?this.selected.value:De,this._value=he,this.valueChange.emit(he),this._onChange(he),this.selectionChange.emit(this._getChangeEvent(he)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(De){this._elementRef.nativeElement.focus(De)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const De=this._parentFormField?.getLabelId();return this.ariaLabelledby?(De?De+" ":"")+this.ariaLabelledby:De}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const De=this._parentFormField?.getLabelId();let he=(De?De+" ":"")+this._valueId;return this.ariaLabelledby&&(he+=" "+this.ariaLabelledby),he}_panelDoneAnimating(De){this.openedChange.emit(De)}setDescribedByIds(De){De.length?this._elementRef.nativeElement.setAttribute("aria-describedby",De.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return oe.\u0275fac=function(De){return new(De||oe)(_.Y36(y.rL),_.Y36(_.sBO),_.Y36(_.R0b),_.Y36(T.rD),_.Y36(_.SBq),_.Y36(P.Is,8),_.Y36(L.F,8),_.Y36(L.sg,8),_.Y36(s.G_,8),_.Y36(L.a5,10),_.$8M("tabindex"),_.Y36(W),_.Y36(h.Kd),_.Y36(G,8))},oe.\u0275dir=_.lG2({type:oe,viewQuery:function(De,he){if(1&De&&(_.Gf(se,5),_.Gf(ce,5),_.Gf(t.pI,5)),2&De){let Me;_.iGM(Me=_.CRH())&&(he.trigger=Me.first),_.iGM(Me=_.CRH())&&(he.panel=Me.first),_.iGM(Me=_.CRH())&&(he._overlayDir=Me.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],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:[_.qOj,_.TTD]}),oe})(),xe=(()=>{class oe{}return oe.\u0275fac=function(De){return new(De||oe)},oe.\u0275dir=_.lG2({type:oe,selectors:[["mat-select-trigger"]],features:[_._Bn([{provide:nt,useExisting:oe}])]}),oe})(),fe=(()=>{class oe extends ye{constructor(){super(...arguments),this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,re.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(),this._changeDetectorRef.detectChanges())})}ngAfterViewInit(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin())}open(){this._overlayWidth=this._getOverlayWidth(),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(De){const he=this.options.toArray()[De];if(he){const Me=this.panel.nativeElement,pe=(0,T.CB)(De,this.options,this.optionGroups),Ve=he._getHostElement();Me.scrollTop=0===De&&1===pe?0:(0,T.jH)(Ve.offsetTop,Ve.offsetHeight,Me.scrollTop,Me.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(De){return new Ue(this,De)}_getOverlayWidth(){return(this._preferredOverlayOrigin instanceof t.xu?this._preferredOverlayOrigin.elementRef:this._preferredOverlayOrigin||this._elementRef).nativeElement.getBoundingClientRect().width}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(De){this._hideSingleSelectionIndicator=(0,d.Ig)(De),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const De of this.options)De._changeDetectorRef.markForCheck()}}return oe.\u0275fac=function(){let Fe;return function(he){return(Fe||(Fe=_.n5z(oe)))(he||oe)}}(),oe.\u0275cmp=_.Xpm({type:oe,selectors:[["mat-select"]],contentQueries:function(De,he,Me){if(1&De&&(_.Suo(Me,nt,5),_.Suo(Me,T.ey,5),_.Suo(Me,T.K7,5)),2&De){let pe;_.iGM(pe=_.CRH())&&(he.customTrigger=pe.first),_.iGM(pe=_.CRH())&&(he.options=pe),_.iGM(pe=_.CRH())&&(he.optionGroups=pe)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(De,he){1&De&&_.NdJ("keydown",function(pe){return he._handleKeydown(pe)})("focus",function(){return he._onFocus()})("blur",function(){return he._onBlur()}),2&De&&(_.uIk("id",he.id)("tabindex",he.tabIndex)("aria-controls",he.panelOpen?he.id+"-panel":null)("aria-expanded",he.panelOpen)("aria-label",he.ariaLabel||null)("aria-required",he.required.toString())("aria-disabled",he.disabled.toString())("aria-invalid",he.errorState)("aria-activedescendant",he._getAriaActiveDescendant()),_.ekj("mat-mdc-select-disabled",he.disabled)("mat-mdc-select-invalid",he.errorState)("mat-mdc-select-required",he.required)("mat-mdc-select-empty",he.empty)("mat-mdc-select-multiple",he.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[_._Bn([{provide:s.Eo,useExisting:oe},{provide:T.HF,useExisting:oe}]),_.qOj],ngContentSelectors:v,decls:11,vars:11,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(De,he){if(1&De&&(_.F$t(l),_.TgZ(0,"div",0,1),_.NdJ("click",function(){return he.toggle()}),_.TgZ(3,"div",2),_.YNc(4,Ce,2,1,"span",3),_.YNc(5,a,3,2,"span",4),_.qZA(),_.TgZ(6,"div",5)(7,"div",6),_.O4$(),_.TgZ(8,"svg",7),_._UZ(9,"path",8),_.qZA()()()(),_.YNc(10,f,3,9,"ng-template",9),_.NdJ("backdropClick",function(){return he.close()})("attach",function(){return he._onAttached()})("detach",function(){return he.close()})),2&De){const Me=_.MAs(1);_.uIk("aria-owns",he.panelOpen?he.id+"-panel":null),_.xp6(3),_.Q6J("ngSwitch",he.empty),_.uIk("id",he._valueId),_.xp6(1),_.Q6J("ngSwitchCase",!0),_.xp6(1),_.Q6J("ngSwitchCase",!1),_.xp6(5),_.Q6J("cdkConnectedOverlayPanelClass",he._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",he._scrollStrategy)("cdkConnectedOverlayOrigin",he._preferredOverlayOrigin||Me)("cdkConnectedOverlayOpen",he.panelOpen)("cdkConnectedOverlayPositions",he._positions)("cdkConnectedOverlayWidth",he._overlayWidth)}},dependencies:[e.mk,e.RF,e.n9,e.ED,t.pI,t.xu],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mat-mdc-select{display:inline-block;width:100%;outline:none}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}.mdc-menu-surface.mat-mdc-select-panel{width:100%;max-height:275px;position:static;outline:0;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-select-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) .mdc-menu-surface.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above .mdc-menu-surface.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[I.transformPanel]},changeDetection:0}),oe})(),Oe=(()=>{class oe{}return oe.\u0275fac=function(De){return new(De||oe)},oe.\u0275mod=_.oAB({type:oe}),oe.\u0275inj=_.cJS({providers:[ge],imports:[e.ez,t.U8,T.Ng,T.BQ,y.ZD,s.lN,T.Ng,T.BQ]}),oe})()},3267:(We,q,m)=>{"use strict";m.d(q,{JX:()=>nt,Rh:()=>ge,SJ:()=>at,TM:()=>Ue});var t=m(531),e=m(6895),_=m(4650),T=m(3238),s=m(4761),y=m(445),h=m(1281),P=m(9521),d=m(3353),w=m(7579),C=m(4968),L=m(6451),D=m(9300),H=m(4004),V=m(9718),Y=m(2722),j=m(1884),Q=m(5698),J=m(8675),ee=m(8372),me=m(7340);const re=["*"],ie=["content"];function se(ye,xe){if(1&ye){const fe=_.EpF();_.TgZ(0,"div",2),_.NdJ("click",function(){_.CHM(fe);const oe=_.oxw();return _.KtG(oe._onBackdropClicked())}),_.qZA()}if(2&ye){const fe=_.oxw();_.ekj("mat-drawer-shown",fe._isShowingBackdrop())}}function ce(ye,xe){1&ye&&(_.TgZ(0,"mat-drawer-content"),_.Hsn(1,2),_.qZA())}const Ce=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],M=["mat-drawer","mat-drawer-content","*"];function i(ye,xe){if(1&ye){const fe=_.EpF();_.TgZ(0,"div",2),_.NdJ("click",function(){_.CHM(fe);const oe=_.oxw();return _.KtG(oe._onBackdropClicked())}),_.qZA()}if(2&ye){const fe=_.oxw();_.ekj("mat-drawer-shown",fe._isShowingBackdrop())}}function a(ye,xe){1&ye&&(_.TgZ(0,"mat-sidenav-content"),_.Hsn(1,2),_.qZA())}const f=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],l=["mat-sidenav","mat-sidenav-content","*"],I={transformDrawer:(0,me.X$)("transform",[(0,me.SB)("open, open-instant",(0,me.oB)({transform:"none",visibility:"visible"})),(0,me.SB)("void",(0,me.oB)({"box-shadow":"none",visibility:"hidden"})),(0,me.eR)("void => open-instant",(0,me.jt)("0ms")),(0,me.eR)("void <=> open, open-instant => void",(0,me.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},x=new _.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function g(){return!1}}),n=new _.OlP("MAT_DRAWER_CONTAINER");let W=(()=>{class ye extends t.PQ{constructor(fe,Oe,oe,Fe,De){super(oe,Fe,De),this._changeDetectorRef=fe,this._container=Oe}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return ye.\u0275fac=function(fe){return new(fe||ye)(_.Y36(_.sBO),_.Y36((0,_.Gpc)(()=>G)),_.Y36(_.SBq),_.Y36(t.mF),_.Y36(_.R0b))},ye.\u0275cmp=_.Xpm({type:ye,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(fe,Oe){2&fe&&_.Udp("margin-left",Oe._container._contentMargins.left,"px")("margin-right",Oe._container._contentMargins.right,"px")},features:[_._Bn([{provide:t.PQ,useExisting:ye}]),_.qOj],ngContentSelectors:re,decls:1,vars:0,template:function(fe,Oe){1&fe&&(_.F$t(),_.Hsn(0))},encapsulation:2,changeDetection:0}),ye})(),O=(()=>{class ye{get position(){return this._position}set position(fe){(fe="end"===fe?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(fe),this._position=fe,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(fe){this._mode=fe,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(fe){this._disableClose=(0,h.Ig)(fe)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(fe){("true"===fe||"false"===fe||null==fe)&&(fe=(0,h.Ig)(fe)),this._autoFocus=fe}get opened(){return this._opened}set opened(fe){this.toggle((0,h.Ig)(fe))}constructor(fe,Oe,oe,Fe,De,he,Me,pe){this._elementRef=fe,this._focusTrapFactory=Oe,this._focusMonitor=oe,this._platform=Fe,this._ngZone=De,this._interactivityChecker=he,this._doc=Me,this._container=pe,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new w.x,this._animationEnd=new w.x,this._animationState="void",this.openedChange=new _.vpe(!0),this._openedStream=this.openedChange.pipe((0,D.h)(Ve=>Ve),(0,H.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,D.h)(Ve=>Ve.fromState!==Ve.toState&&0===Ve.toState.indexOf("open")),(0,V.h)(void 0)),this._closedStream=this.openedChange.pipe((0,D.h)(Ve=>!Ve),(0,H.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,D.h)(Ve=>Ve.fromState!==Ve.toState&&"void"===Ve.toState),(0,V.h)(void 0)),this._destroyed=new w.x,this.onPositionChanged=new _.vpe,this._modeChanged=new w.x,this.openedChange.subscribe(Ve=>{Ve?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,C.R)(this._elementRef.nativeElement,"keydown").pipe((0,D.h)(Ve=>Ve.keyCode===P.hY&&!this.disableClose&&!(0,P.Vb)(Ve)),(0,Y.R)(this._destroyed)).subscribe(Ve=>this._ngZone.run(()=>{this.close(),Ve.stopPropagation(),Ve.preventDefault()}))}),this._animationEnd.pipe((0,j.x)((Ve,Qe)=>Ve.fromState===Qe.fromState&&Ve.toState===Qe.toState)).subscribe(Ve=>{const{fromState:Qe,toState:Pe}=Ve;(0===Pe.indexOf("open")&&"void"===Qe||"void"===Pe&&0===Qe.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(fe,Oe){this._interactivityChecker.isFocusable(fe)||(fe.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const oe=()=>{fe.removeEventListener("blur",oe),fe.removeEventListener("mousedown",oe),fe.removeAttribute("tabindex")};fe.addEventListener("blur",oe),fe.addEventListener("mousedown",oe)})),fe.focus(Oe)}_focusByCssSelector(fe,Oe){let oe=this._elementRef.nativeElement.querySelector(fe);oe&&this._forceFocus(oe,Oe)}_takeFocus(){if(!this._focusTrap)return;const fe=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Oe=>{!Oe&&"function"==typeof this._elementRef.nativeElement.focus&&fe.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(fe){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,fe):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const fe=this._doc.activeElement;return!!fe&&this._elementRef.nativeElement.contains(fe)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(fe){return this.toggle(!0,fe)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(fe=!this.opened,Oe){fe&&Oe&&(this._openedVia=Oe);const oe=this._setOpen(fe,!fe&&this._isFocusWithinDrawer(),this._openedVia||"program");return fe||(this._openedVia=null),oe}_setOpen(fe,Oe,oe){return this._opened=fe,fe?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",Oe&&this._restoreFocus(oe)),this._updateFocusTrapState(),new Promise(Fe=>{this.openedChange.pipe((0,Q.q)(1)).subscribe(De=>Fe(De?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(fe){const Oe=this._elementRef.nativeElement,oe=Oe.parentNode;"end"===fe?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),oe.insertBefore(this._anchor,Oe)),oe.appendChild(Oe)):this._anchor&&this._anchor.parentNode.insertBefore(Oe,this._anchor)}}return ye.\u0275fac=function(fe){return new(fe||ye)(_.Y36(_.SBq),_.Y36(s.qV),_.Y36(s.tE),_.Y36(d.t4),_.Y36(_.R0b),_.Y36(s.ic),_.Y36(e.K0,8),_.Y36(n,8))},ye.\u0275cmp=_.Xpm({type:ye,selectors:[["mat-drawer"]],viewQuery:function(fe,Oe){if(1&fe&&_.Gf(ie,5),2&fe){let oe;_.iGM(oe=_.CRH())&&(Oe._content=oe.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(fe,Oe){1&fe&&_.WFA("@transform.start",function(Fe){return Oe._animationStarted.next(Fe)})("@transform.done",function(Fe){return Oe._animationEnd.next(Fe)}),2&fe&&(_.uIk("align",null),_.d8E("@transform",Oe._animationState),_.ekj("mat-drawer-end","end"===Oe.position)("mat-drawer-over","over"===Oe.mode)("mat-drawer-push","push"===Oe.mode)("mat-drawer-side","side"===Oe.mode)("mat-drawer-opened",Oe.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:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(fe,Oe){1&fe&&(_.F$t(),_.TgZ(0,"div",0,1),_.Hsn(2),_.qZA())},dependencies:[t.PQ],encapsulation:2,data:{animation:[I.transformDrawer]},changeDetection:0}),ye})(),G=(()=>{class ye{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(fe){this._autosize=(0,h.Ig)(fe)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(fe){this._backdropOverride=null==fe?null:(0,h.Ig)(fe)}get scrollable(){return this._userContent||this._content}constructor(fe,Oe,oe,Fe,De,he=!1,Me){this._dir=fe,this._element=Oe,this._ngZone=oe,this._changeDetectorRef=Fe,this._animationMode=Me,this._drawers=new _.n_E,this.backdropClick=new _.vpe,this._destroyed=new w.x,this._doCheckSubject=new w.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new w.x,fe&&fe.change.pipe((0,Y.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),De.change().pipe((0,Y.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=he}ngAfterContentInit(){this._allDrawers.changes.pipe((0,J.O)(this._allDrawers),(0,Y.R)(this._destroyed)).subscribe(fe=>{this._drawers.reset(fe.filter(Oe=>!Oe._container||Oe._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,J.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(fe=>{this._watchDrawerToggle(fe),this._watchDrawerPosition(fe),this._watchDrawerMode(fe)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,ee.b)(10),(0,Y.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(fe=>fe.open())}close(){this._drawers.forEach(fe=>fe.close())}updateContentMargins(){let fe=0,Oe=0;if(this._left&&this._left.opened)if("side"==this._left.mode)fe+=this._left._getWidth();else if("push"==this._left.mode){const oe=this._left._getWidth();fe+=oe,Oe-=oe}if(this._right&&this._right.opened)if("side"==this._right.mode)Oe+=this._right._getWidth();else if("push"==this._right.mode){const oe=this._right._getWidth();Oe+=oe,fe-=oe}fe=fe||null,Oe=Oe||null,(fe!==this._contentMargins.left||Oe!==this._contentMargins.right)&&(this._contentMargins={left:fe,right:Oe},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(fe){fe._animationStarted.pipe((0,D.h)(Oe=>Oe.fromState!==Oe.toState),(0,Y.R)(this._drawers.changes)).subscribe(Oe=>{"open-instant"!==Oe.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==fe.mode&&fe.openedChange.pipe((0,Y.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(fe.opened))}_watchDrawerPosition(fe){fe&&fe.onPositionChanged.pipe((0,Y.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,Q.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(fe){fe&&fe._modeChanged.pipe((0,Y.R)((0,L.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(fe){const Oe=this._element.nativeElement.classList,oe="mat-drawer-container-has-open";fe?Oe.add(oe):Oe.remove(oe)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(fe=>{"end"==fe.position?this._end=fe:this._start=fe}),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(fe=>fe&&!fe.disableClose&&this._canHaveBackdrop(fe)).forEach(fe=>fe._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(fe){return"side"!==fe.mode||!!this._backdropOverride}_isDrawerOpen(fe){return null!=fe&&fe.opened}}return ye.\u0275fac=function(fe){return new(fe||ye)(_.Y36(y.Is,8),_.Y36(_.SBq),_.Y36(_.R0b),_.Y36(_.sBO),_.Y36(t.rL),_.Y36(x),_.Y36(_.QbO,8))},ye.\u0275cmp=_.Xpm({type:ye,selectors:[["mat-drawer-container"]],contentQueries:function(fe,Oe,oe){if(1&fe&&(_.Suo(oe,W,5),_.Suo(oe,O,5)),2&fe){let Fe;_.iGM(Fe=_.CRH())&&(Oe._content=Fe.first),_.iGM(Fe=_.CRH())&&(Oe._allDrawers=Fe)}},viewQuery:function(fe,Oe){if(1&fe&&_.Gf(W,5),2&fe){let oe;_.iGM(oe=_.CRH())&&(Oe._userContent=oe.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(fe,Oe){2&fe&&_.ekj("mat-drawer-container-explicit-backdrop",Oe._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[_._Bn([{provide:n,useExisting:ye}])],ngContentSelectors:M,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(fe,Oe){1&fe&&(_.F$t(Ce),_.YNc(0,se,1,2,"div",0),_.Hsn(1),_.Hsn(2,1),_.YNc(3,ce,2,0,"mat-drawer-content",1)),2&fe&&(_.Q6J("ngIf",Oe.hasBackdrop),_.xp6(3),_.Q6J("ngIf",!Oe._content))},dependencies:[e.O5,W],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[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),ye})(),ge=(()=>{class ye extends W{constructor(fe,Oe,oe,Fe,De){super(fe,Oe,oe,Fe,De)}}return ye.\u0275fac=function(fe){return new(fe||ye)(_.Y36(_.sBO),_.Y36((0,_.Gpc)(()=>Ue)),_.Y36(_.SBq),_.Y36(t.mF),_.Y36(_.R0b))},ye.\u0275cmp=_.Xpm({type:ye,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(fe,Oe){2&fe&&_.Udp("margin-left",Oe._container._contentMargins.left,"px")("margin-right",Oe._container._contentMargins.right,"px")},features:[_._Bn([{provide:t.PQ,useExisting:ye}]),_.qOj],ngContentSelectors:re,decls:1,vars:0,template:function(fe,Oe){1&fe&&(_.F$t(),_.Hsn(0))},encapsulation:2,changeDetection:0}),ye})(),nt=(()=>{class ye extends O{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(fe){this._fixedInViewport=(0,h.Ig)(fe)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(fe){this._fixedTopGap=(0,h.su)(fe)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(fe){this._fixedBottomGap=(0,h.su)(fe)}}return ye.\u0275fac=function(){let xe;return function(Oe){return(xe||(xe=_.n5z(ye)))(Oe||ye)}}(),ye.\u0275cmp=_.Xpm({type:ye,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(fe,Oe){2&fe&&(_.uIk("align",null),_.Udp("top",Oe.fixedInViewport?Oe.fixedTopGap:null,"px")("bottom",Oe.fixedInViewport?Oe.fixedBottomGap:null,"px"),_.ekj("mat-drawer-end","end"===Oe.position)("mat-drawer-over","over"===Oe.mode)("mat-drawer-push","push"===Oe.mode)("mat-drawer-side","side"===Oe.mode)("mat-drawer-opened",Oe.opened)("mat-sidenav-fixed",Oe.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[_.qOj],ngContentSelectors:re,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(fe,Oe){1&fe&&(_.F$t(),_.TgZ(0,"div",0,1),_.Hsn(2),_.qZA())},dependencies:[t.PQ],encapsulation:2,data:{animation:[I.transformDrawer]},changeDetection:0}),ye})(),Ue=(()=>{class ye extends G{}return ye.\u0275fac=function(){let xe;return function(Oe){return(xe||(xe=_.n5z(ye)))(Oe||ye)}}(),ye.\u0275cmp=_.Xpm({type:ye,selectors:[["mat-sidenav-container"]],contentQueries:function(fe,Oe,oe){if(1&fe&&(_.Suo(oe,ge,5),_.Suo(oe,nt,5)),2&fe){let Fe;_.iGM(Fe=_.CRH())&&(Oe._content=Fe.first),_.iGM(Fe=_.CRH())&&(Oe._allDrawers=Fe)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(fe,Oe){2&fe&&_.ekj("mat-drawer-container-explicit-backdrop",Oe._backdropOverride)},exportAs:["matSidenavContainer"],features:[_._Bn([{provide:n,useExisting:ye}]),_.qOj],ngContentSelectors:l,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(fe,Oe){1&fe&&(_.F$t(f),_.YNc(0,i,1,2,"div",0),_.Hsn(1),_.Hsn(2,1),_.YNc(3,a,2,0,"mat-sidenav-content",1)),2&fe&&(_.Q6J("ngIf",Oe.hasBackdrop),_.xp6(3),_.Q6J("ngIf",!Oe._content))},dependencies:[e.O5,ge],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[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),ye})(),at=(()=>{class ye{}return ye.\u0275fac=function(fe){return new(fe||ye)},ye.\u0275mod=_.oAB({type:ye}),ye.\u0275inj=_.cJS({imports:[e.ez,T.BQ,t.ZD,t.ZD,T.BQ]}),ye})()},455:(We,q,m)=>{"use strict";m.d(q,{Rr:()=>V,rP:()=>J});var t=m(4650),e=m(4006),_=m(4761),T=m(3238),s=m(1281),y=m(6895);const h=["switch"],P=["*"],d=new t.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})}),w={provide:e.JU,useExisting:(0,t.Gpc)(()=>V),multi:!0};class C{constructor(me,re){this.source=me,this.checked=re}}let L=0;const D=(0,T.sb)((0,T.pj)((0,T.Kr)((0,T.Id)(class{constructor(ee){this._elementRef=ee}}))));let H=(()=>{class ee extends D{get required(){return this._required}set required(re){this._required=(0,s.Ig)(re)}get checked(){return this._checked}set checked(re){this._checked=(0,s.Ig)(re),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(re,ie,se,ce,Ce,M,i){super(re),this._focusMonitor=ie,this._changeDetectorRef=se,this.defaults=Ce,this._onChange=a=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new t.vpe,this.toggleChange=new t.vpe,this.tabIndex=parseInt(ce)||0,this.color=this.defaultColor=Ce.color||"accent",this._noopAnimations="NoopAnimations"===M,this.id=this._uniqueId=`${i}${++L}`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(re=>{"keyboard"===re||"program"===re?(this._focused=!0,this._changeDetectorRef.markForCheck()):re||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(re){this.checked=!!re}registerOnChange(re){this._onChange=re}registerOnTouched(re){this._onTouched=re}setDisabledState(re){this.disabled=re,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return ee.\u0275fac=function(re){t.$Z()},ee.\u0275dir=t.lG2({type:ee,inputs:{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"},features:[t.qOj]}),ee})(),V=(()=>{class ee extends H{get buttonId(){return`${this.id||this._uniqueId}-button`}constructor(re,ie,se,ce,Ce,M){super(re,ie,se,ce,Ce,M,"mat-mdc-slide-toggle-"),this._labelId=this._uniqueId+"-label"}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new C(this,this.checked)))}focus(){this._switchElement.nativeElement.focus()}_createChangeEvent(re){return new C(this,re)}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}}return ee.\u0275fac=function(re){return new(re||ee)(t.Y36(t.SBq),t.Y36(_.tE),t.Y36(t.sBO),t.$8M("tabindex"),t.Y36(d),t.Y36(t.QbO,8))},ee.\u0275cmp=t.Xpm({type:ee,selectors:[["mat-slide-toggle"]],viewQuery:function(re,ie){if(1&re&&t.Gf(h,5),2&re){let se;t.iGM(se=t.CRH())&&(ie._switchElement=se.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:11,hostBindings:function(re,ie){2&re&&(t.Ikx("id",ie.id),t.uIk("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),t.ekj("mat-mdc-slide-toggle-focused",ie._focused)("mat-mdc-slide-toggle-checked",ie.checked)("_mat-animation-noopable",ie._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[t._Bn([w]),t.qOj],ngContentSelectors:P,decls:17,vars:24,consts:[[1,"mdc-form-field"],["role","switch","type","button",1,"mdc-switch",3,"tabIndex","disabled","click"],["switch",""],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],["viewBox","0 0 24 24",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"],[3,"for","click"]],template:function(re,ie){if(1&re&&(t.F$t(),t.TgZ(0,"div",0)(1,"button",1,2),t.NdJ("click",function(){return ie._handleClick()}),t._UZ(3,"div",3),t.TgZ(4,"div",4)(5,"div",5)(6,"div",6),t._UZ(7,"div",7),t.qZA(),t.TgZ(8,"div",8),t._UZ(9,"div",9),t.qZA(),t.TgZ(10,"div",10),t.O4$(),t.TgZ(11,"svg",11),t._UZ(12,"path",12),t.qZA(),t.TgZ(13,"svg",13),t._UZ(14,"path",14),t.qZA()()()()(),t.kcU(),t.TgZ(15,"label",15),t.NdJ("click",function(ce){return ce.stopPropagation()}),t.Hsn(16),t.qZA()()),2&re){const se=t.MAs(2);t.ekj("mdc-form-field--align-end","before"==ie.labelPosition),t.xp6(1),t.ekj("mdc-switch--selected",ie.checked)("mdc-switch--unselected",!ie.checked)("mdc-switch--checked",ie.checked)("mdc-switch--disabled",ie.disabled),t.Q6J("tabIndex",ie.tabIndex)("disabled",ie.disabled),t.uIk("id",ie.buttonId)("name",ie.name)("aria-label",ie.ariaLabel)("aria-labelledby",ie._getAriaLabelledBy())("aria-describedby",ie.ariaDescribedby)("aria-required",ie.required||null)("aria-checked",ie.checked),t.xp6(8),t.Q6J("matRippleTrigger",se)("matRippleDisabled",ie.disableRipple||ie.disabled)("matRippleCentered",!0),t.xp6(6),t.Q6J("for",ie.buttonId),t.uIk("id",ie._labelId)}},dependencies:[T.wG],styles:['.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color, #fff)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mdc-switch{width:var(--mdc-switch-track-width, 36px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color, #616161)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color, #424242)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color, var(--mdc-theme-surface, #fff))}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation, 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__focus-ring-wrapper,.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height, 20px)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__handle::after{opacity:var(--mdc-switch-disabled-handle-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape, 10px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width, 20px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width, 20px))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size, 18px);height:var(--mdc-switch-selected-icon-size, 18px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size, 18px);height:var(--mdc-switch-unselected-icon-size, 18px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity, 0.04)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity, 0.04)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size, 48px);width:var(--mdc-switch-state-layer-size, 48px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height, 14px)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color, #424242)}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color, #424242)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape, 7px)}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:opacity 75ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}'],encapsulation:2,changeDetection:0}),ee})(),Q=(()=>{class ee{}return ee.\u0275fac=function(re){return new(re||ee)},ee.\u0275mod=t.oAB({type:ee}),ee.\u0275inj=t.cJS({}),ee})(),J=(()=>{class ee{}return ee.\u0275fac=function(re){return new(re||ee)},ee.\u0275mod=t.oAB({type:ee}),ee.\u0275inj=t.cJS({imports:[Q,T.BQ,T.si,y.ez,Q,T.BQ]}),ee})()},7009:(We,q,m)=>{"use strict";m.d(q,{Ve:()=>l,ZX:()=>a,ux:()=>I});var t=m(4650),e=m(7579),_=m(6895),T=m(4859),s=m(7340),y=m(4080),h=m(3353),P=m(5698),d=m(2722),w=m(4761),C=m(2289),L=m(8184),D=m(3238);function H(k,x){if(1&k){const n=t.EpF();t.TgZ(0,"div",2)(1,"button",3),t.NdJ("click",function(){t.CHM(n);const W=t.oxw();return t.KtG(W.action())}),t._uU(2),t.qZA()()}if(2&k){const n=t.oxw();t.xp6(2),t.hij(" ",n.data.action," ")}}const V=["label"];function Y(k,x){}const j=Math.pow(2,31)-1;class Q{constructor(x,n){this._overlayRef=n,this._afterDismissed=new e.x,this._afterOpened=new e.x,this._onAction=new e.x,this._dismissedByAction=!1,this.containerInstance=x,x._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(x){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(x,j))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const J=new t.OlP("MatSnackBarData");class ee{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let me=(()=>{class k{}return k.\u0275fac=function(n){return new(n||k)},k.\u0275dir=t.lG2({type:k,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]}),k})(),re=(()=>{class k{}return k.\u0275fac=function(n){return new(n||k)},k.\u0275dir=t.lG2({type:k,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]}),k})(),ie=(()=>{class k{}return k.\u0275fac=function(n){return new(n||k)},k.\u0275dir=t.lG2({type:k,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]}),k})(),se=(()=>{class k{constructor(n,g){this.snackBarRef=n,this.data=g}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return k.\u0275fac=function(n){return new(n||k)(t.Y36(Q),t.Y36(J))},k.\u0275cmp=t.Xpm({type:k,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions","",4,"ngIf"],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(n,g){1&n&&(t.TgZ(0,"div",0),t._uU(1),t.qZA(),t.YNc(2,H,3,1,"div",1)),2&n&&(t.xp6(1),t.hij(" ",g.data.message,"\n"),t.xp6(1),t.Q6J("ngIf",g.hasAction))},dependencies:[_.O5,T.lW,me,re,ie],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0}),k})();const ce={snackBarState:(0,s.X$)("state",[(0,s.SB)("void, hidden",(0,s.oB)({transform:"scale(0.8)",opacity:0})),(0,s.SB)("visible",(0,s.oB)({transform:"scale(1)",opacity:1})),(0,s.eR)("* => visible",(0,s.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,s.eR)("* => void, * => hidden",(0,s.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,s.oB)({opacity:0})))])};let Ce=0,M=(()=>{class k extends y.en{constructor(n,g,W,O,G){super(),this._ngZone=n,this._elementRef=g,this._changeDetectorRef=W,this._platform=O,this.snackBarConfig=G,this._document=(0,t.f3M)(_.K0),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new e.x,this._onExit=new e.x,this._onEnter=new e.x,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+Ce++,this.attachDomPortal=ge=>{this._assertNotAttached();const nt=this._portalOutlet.attachDomPortal(ge);return this._afterPortalAttached(),nt},this._live="assertive"!==G.politeness||G.announcementMessage?"off"===G.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(n){this._assertNotAttached();const g=this._portalOutlet.attachComponentPortal(n);return this._afterPortalAttached(),g}attachTemplatePortal(n){this._assertNotAttached();const g=this._portalOutlet.attachTemplatePortal(n);return this._afterPortalAttached(),g}onAnimationEnd(n){const{fromState:g,toState:W}=n;if(("void"===W&&"void"!==g||"hidden"===W)&&this._completeExit(),"visible"===W){const O=this._onEnter;this._ngZone.run(()=>{O.next(),O.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,P.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const n=this._elementRef.nativeElement,g=this.snackBarConfig.panelClass;g&&(Array.isArray(g)?g.forEach(W=>n.classList.add(W)):n.classList.add(g)),this._exposeToModals()}_exposeToModals(){const n=this._liveElementId,g=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let W=0;W{const g=n.getAttribute("aria-owns");if(g){const W=g.replace(this._liveElementId,"").trim();W.length>0?n.setAttribute("aria-owns",W):n.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const n=this._elementRef.nativeElement.querySelector("[aria-hidden]"),g=this._elementRef.nativeElement.querySelector("[aria-live]");if(n&&g){let W=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&n.contains(document.activeElement)&&(W=document.activeElement),n.removeAttribute("aria-hidden"),g.appendChild(n),W?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return k.\u0275fac=function(n){return new(n||k)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(h.t4),t.Y36(ee))},k.\u0275dir=t.lG2({type:k,viewQuery:function(n,g){if(1&n&&t.Gf(y.Pl,7),2&n){let W;t.iGM(W=t.CRH())&&(g._portalOutlet=W.first)}},features:[t.qOj]}),k})(),i=(()=>{class k extends M{_afterPortalAttached(){super._afterPortalAttached();const n=this._label.nativeElement,g="mdc-snackbar__label";n.classList.toggle(g,!n.querySelector(`.${g}`))}}return k.\u0275fac=function(){let x;return function(g){return(x||(x=t.n5z(k)))(g||k)}}(),k.\u0275cmp=t.Xpm({type:k,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,g){if(1&n&&t.Gf(V,7),2&n){let W;t.iGM(W=t.CRH())&&(g._label=W.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(n,g){1&n&&t.WFA("@state.done",function(O){return g.onAnimationEnd(O)}),2&n&&t.d8E("@state",g._animationState)},features:[t.qOj],decls:6,vars:3,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(n,g){1&n&&(t.TgZ(0,"div",0)(1,"div",1,2)(3,"div",3),t.YNc(4,Y,0,0,"ng-template",4),t.qZA(),t._UZ(5,"div"),t.qZA()()),2&n&&(t.xp6(5),t.uIk("aria-live",g._live)("role",g._role)("id",g._liveElementId))},dependencies:[y.Pl],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__dismiss .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__dismiss svg,.mat-mdc-snack-bar-container .mdc-snackbar__dismiss img{width:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px));height:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size, inherit);font-family:var(--mdc-snackbar-supporting-text-font, inherit);font-weight:var(--mdc-snackbar-supporting-text-weight, inherit);line-height:var(--mdc-snackbar-supporting-text-line-height, inherit)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-mdc-snack-bar-button-color, transparent);--mat-mdc-button-persistent-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{background-color:currentColor;opacity:.1}.mat-mdc-snack-bar-container .mdc-snackbar__label::before{display:none}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[ce.snackBarState]}}),k})(),a=(()=>{class k{}return k.\u0275fac=function(n){return new(n||k)},k.\u0275mod=t.oAB({type:k}),k.\u0275inj=t.cJS({imports:[L.U8,y.eL,_.ez,T.ot,D.BQ,D.BQ]}),k})();const l=new t.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function f(){return new ee}});let v=(()=>{class k{get _openedSnackBarRef(){const n=this._parentSnackBar;return n?n._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(n){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=n:this._snackBarRefAtThisLevel=n}constructor(n,g,W,O,G,ge){this._overlay=n,this._live=g,this._injector=W,this._breakpointObserver=O,this._parentSnackBar=G,this._defaultConfig=ge,this._snackBarRefAtThisLevel=null}openFromComponent(n,g){return this._attach(n,g)}openFromTemplate(n,g){return this._attach(n,g)}open(n,g="",W){const O={...this._defaultConfig,...W};return O.data={message:n,action:g},O.announcementMessage===n&&(O.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,O)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(n,g){const O=t.zs3.create({parent:g&&g.viewContainerRef&&g.viewContainerRef.injector||this._injector,providers:[{provide:ee,useValue:g}]}),G=new y.C5(this.snackBarContainerComponent,g.viewContainerRef,O),ge=n.attach(G);return ge.instance.snackBarConfig=g,ge.instance}_attach(n,g){const W={...new ee,...this._defaultConfig,...g},O=this._createOverlay(W),G=this._attachSnackBarContainer(O,W),ge=new Q(G,O);if(n instanceof t.Rgc){const nt=new y.UE(n,null,{$implicit:W.data,snackBarRef:ge});ge.instance=G.attachTemplatePortal(nt)}else{const nt=this._createInjector(W,ge),Ue=new y.C5(n,void 0,nt),at=G.attachComponentPortal(Ue);ge.instance=at.instance}return this._breakpointObserver.observe(C.u3.HandsetPortrait).pipe((0,d.R)(O.detachments())).subscribe(nt=>{O.overlayElement.classList.toggle(this.handsetCssClass,nt.matches)}),W.announcementMessage&&G._onAnnounce.subscribe(()=>{this._live.announce(W.announcementMessage,W.politeness)}),this._animateSnackBar(ge,W),this._openedSnackBarRef=ge,this._openedSnackBarRef}_animateSnackBar(n,g){n.afterDismissed().subscribe(()=>{this._openedSnackBarRef==n&&(this._openedSnackBarRef=null),g.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{n.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):n.containerInstance.enter(),g.duration&&g.duration>0&&n.afterOpened().subscribe(()=>n._dismissAfter(g.duration))}_createOverlay(n){const g=new L.X_;g.direction=n.direction;let W=this._overlay.position().global();const O="rtl"===n.direction,G="left"===n.horizontalPosition||"start"===n.horizontalPosition&&!O||"end"===n.horizontalPosition&&O,ge=!G&&"center"!==n.horizontalPosition;return G?W.left("0"):ge?W.right("0"):W.centerHorizontally(),"top"===n.verticalPosition?W.top("0"):W.bottom("0"),g.positionStrategy=W,this._overlay.create(g)}_createInjector(n,g){return t.zs3.create({parent:n&&n.viewContainerRef&&n.viewContainerRef.injector||this._injector,providers:[{provide:Q,useValue:g},{provide:J,useValue:n.data}]})}}return k.\u0275fac=function(n){return new(n||k)(t.LFG(L.aV),t.LFG(w.Kd),t.LFG(t.zs3),t.LFG(C.Yg),t.LFG(k,12),t.LFG(l))},k.\u0275prov=t.Yz7({token:k,factory:k.\u0275fac}),k})(),I=(()=>{class k extends v{constructor(n,g,W,O,G,ge){super(n,g,W,O,G,ge),this.simpleSnackBarComponent=se,this.snackBarContainerComponent=i,this.handsetCssClass="mat-mdc-snack-bar-handset"}}return k.\u0275fac=function(n){return new(n||k)(t.LFG(L.aV),t.LFG(w.Kd),t.LFG(t.zs3),t.LFG(C.Yg),t.LFG(k,12),t.LFG(l))},k.\u0275prov=t.Yz7({token:k,factory:k.\u0275fac,providedIn:a}),k})()},6308:(We,q,m)=>{"use strict";m.d(q,{JX:()=>i,YE:()=>J,nU:()=>M});var t=m(4650),e=m(4761),_=m(1281),T=m(9521),s=m(3238),y=m(7579),h=m(6451),P=m(7340),d=m(6895);const w=["mat-sort-header",""];function C(a,f){if(1&a){const l=t.EpF();t.TgZ(0,"div",3),t.NdJ("@arrowPosition.start",function(){t.CHM(l);const I=t.oxw();return t.KtG(I._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){t.CHM(l);const I=t.oxw();return t.KtG(I._disableViewStateAnimation=!1)}),t._UZ(1,"div",4),t.TgZ(2,"div",5),t._UZ(3,"div",6)(4,"div",7)(5,"div",8),t.qZA()()}if(2&a){const l=t.oxw();t.Q6J("@arrowOpacity",l._getArrowViewState())("@arrowPosition",l._getArrowViewState())("@allowChildren",l._getArrowDirectionState()),t.xp6(2),t.Q6J("@indicator",l._getArrowDirectionState()),t.xp6(1),t.Q6J("@leftPointer",l._getArrowDirectionState()),t.xp6(1),t.Q6J("@rightPointer",l._getArrowDirectionState())}}const L=["*"],j=new t.OlP("MAT_SORT_DEFAULT_OPTIONS"),Q=(0,s.dB)((0,s.Id)(class{}));let J=(()=>{class a extends Q{get direction(){return this._direction}set direction(l){this._direction=l}get disableClear(){return this._disableClear}set disableClear(l){this._disableClear=(0,_.Ig)(l)}constructor(l){super(),this._defaultOptions=l,this.sortables=new Map,this._stateChanges=new y.x,this.start="asc",this._direction="",this.sortChange=new t.vpe}register(l){this.sortables.set(l.id,l)}deregister(l){this.sortables.delete(l.id)}sort(l){this.active!=l.id?(this.active=l.id,this.direction=l.start?l.start:this.start):this.direction=this.getNextSortDirection(l),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(l){if(!l)return"";let I=function ee(a,f){let l=["asc","desc"];return"desc"==a&&l.reverse(),f||l.push(""),l}(l.start||this.start,l?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),k=I.indexOf(this.direction)+1;return k>=I.length&&(k=0),I[k]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return a.\u0275fac=function(l){return new(l||a)(t.Y36(j,8))},a.\u0275dir=t.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:[t.qOj,t.TTD]}),a})();const me=s.mZ.ENTERING+" "+s.yN.STANDARD_CURVE,re={indicator:(0,P.X$)("indicator",[(0,P.SB)("active-asc, asc",(0,P.oB)({transform:"translateY(0px)"})),(0,P.SB)("active-desc, desc",(0,P.oB)({transform:"translateY(10px)"})),(0,P.eR)("active-asc <=> active-desc",(0,P.jt)(me))]),leftPointer:(0,P.X$)("leftPointer",[(0,P.SB)("active-asc, asc",(0,P.oB)({transform:"rotate(-45deg)"})),(0,P.SB)("active-desc, desc",(0,P.oB)({transform:"rotate(45deg)"})),(0,P.eR)("active-asc <=> active-desc",(0,P.jt)(me))]),rightPointer:(0,P.X$)("rightPointer",[(0,P.SB)("active-asc, asc",(0,P.oB)({transform:"rotate(45deg)"})),(0,P.SB)("active-desc, desc",(0,P.oB)({transform:"rotate(-45deg)"})),(0,P.eR)("active-asc <=> active-desc",(0,P.jt)(me))]),arrowOpacity:(0,P.X$)("arrowOpacity",[(0,P.SB)("desc-to-active, asc-to-active, active",(0,P.oB)({opacity:1})),(0,P.SB)("desc-to-hint, asc-to-hint, hint",(0,P.oB)({opacity:.54})),(0,P.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,P.oB)({opacity:0})),(0,P.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,P.jt)("0ms")),(0,P.eR)("* <=> *",(0,P.jt)(me))]),arrowPosition:(0,P.X$)("arrowPosition",[(0,P.eR)("* => desc-to-hint, * => desc-to-active",(0,P.jt)(me,(0,P.F4)([(0,P.oB)({transform:"translateY(-25%)"}),(0,P.oB)({transform:"translateY(0)"})]))),(0,P.eR)("* => hint-to-desc, * => active-to-desc",(0,P.jt)(me,(0,P.F4)([(0,P.oB)({transform:"translateY(0)"}),(0,P.oB)({transform:"translateY(25%)"})]))),(0,P.eR)("* => asc-to-hint, * => asc-to-active",(0,P.jt)(me,(0,P.F4)([(0,P.oB)({transform:"translateY(25%)"}),(0,P.oB)({transform:"translateY(0)"})]))),(0,P.eR)("* => hint-to-asc, * => active-to-asc",(0,P.jt)(me,(0,P.F4)([(0,P.oB)({transform:"translateY(0)"}),(0,P.oB)({transform:"translateY(-25%)"})]))),(0,P.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,P.oB)({transform:"translateY(0)"})),(0,P.SB)("hint-to-desc, active-to-desc, desc",(0,P.oB)({transform:"translateY(-25%)"})),(0,P.SB)("hint-to-asc, active-to-asc, asc",(0,P.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,P.X$)("allowChildren",[(0,P.eR)("* <=> *",[(0,P.IO)("@*",(0,P.pV)(),{optional:!0})])])};let ie=(()=>{class a{constructor(){this.changes=new y.x}}return a.\u0275fac=function(l){return new(l||a)},a.\u0275prov=t.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();const ce={provide:ie,deps:[[new t.FiY,new t.tp0,ie]],useFactory:function se(a){return a||new ie}},Ce=(0,s.Id)(class{});let M=(()=>{class a extends Ce{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(l){this._updateSortActionDescription(l)}get disableClear(){return this._disableClear}set disableClear(l){this._disableClear=(0,_.Ig)(l)}constructor(l,v,I,k,x,n,g,W){super(),this._intl=l,this._changeDetectorRef=v,this._sort=I,this._columnDef=k,this._focusMonitor=x,this._elementRef=n,this._ariaDescriber=g,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",W?.arrowPosition&&(this.arrowPosition=W?.arrowPosition),this._handleStateChanges()}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(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(l=>{const v=!!l;v!==this._showIndicatorHint&&(this._setIndicatorHintVisible(v),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(l){this._isDisabled()&&l||(this._showIndicatorHint=l,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(l){this._viewState=l||{},this._disableViewStateAnimation&&(this._viewState={toState:l.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(l){!this._isDisabled()&&(l.keyCode===T.L_||l.keyCode===T.K5)&&(l.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 l=this._viewState.fromState;return(l?`${l}-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(l){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,l)),this._sortActionDescription=l}_handleStateChanges(){this._rerenderSubscription=(0,h.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(l){return new(l||a)(t.Y36(ie),t.Y36(t.sBO),t.Y36(J,8),t.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),t.Y36(e.tE),t.Y36(t.SBq),t.Y36(e.$s,8),t.Y36(j,8))},a.\u0275cmp=t.Xpm({type:a,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(l,v){1&l&&t.NdJ("click",function(){return v._handleClick()})("keydown",function(k){return v._handleKeydown(k)})("mouseenter",function(){return v._setIndicatorHintVisible(!0)})("mouseleave",function(){return v._setIndicatorHintVisible(!1)}),2&l&&(t.uIk("aria-sort",v._getAriaSortAttribute()),t.ekj("mat-sort-header-disabled",v._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[t.qOj],attrs:w,ngContentSelectors:L,decls:4,vars:7,consts:[[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(l,v){1&l&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1),t.Hsn(2),t.qZA(),t.YNc(3,C,6,6,"div",2),t.qZA()),2&l&&(t.ekj("mat-sort-header-sorted",v._isSorted())("mat-sort-header-position-before","before"===v.arrowPosition),t.uIk("tabindex",v._isDisabled()?null:0)("role",v._isDisabled()?null:"button"),t.xp6(3),t.Q6J("ngIf",v._renderArrow()))},dependencies:[d.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-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.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}"],encapsulation:2,data:{animation:[re.indicator,re.leftPointer,re.rightPointer,re.arrowOpacity,re.arrowPosition,re.allowChildren]},changeDetection:0}),a})(),i=(()=>{class a{}return a.\u0275fac=function(l){return new(l||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({providers:[ce],imports:[d.ez,s.BQ]}),a})()},8425:(We,q,m)=>{"use strict";m.d(q,{C0:()=>De,Ic:()=>Me,T5:()=>Ve,VY:()=>G,Vq:()=>he,fd:()=>pe,z9:()=>oe});var t=m(4080),e=m(2138),_=m(6895),T=m(4650),s=m(3238),y=m(7392),h=m(4761),P=m(7579),d=m(727),w=m(445),C=m(3900),L=m(4004),D=m(8675),H=m(2722),V=m(1884),Y=m(7340);function j(Qe,Pe){if(1&Qe&&T.GkF(0,8),2&Qe){const de=T.oxw();T.Q6J("ngTemplateOutlet",de.iconOverrides[de.state])("ngTemplateOutletContext",de._getIconContext())}}function Q(Qe,Pe){if(1&Qe&&(T.TgZ(0,"span",13),T._uU(1),T.qZA()),2&Qe){const de=T.oxw(2);T.xp6(1),T.Oqu(de._getDefaultTextForState(de.state))}}function J(Qe,Pe){if(1&Qe&&(T.TgZ(0,"span",14),T._uU(1),T.qZA()),2&Qe){const de=T.oxw(2);T.xp6(1),T.Oqu(de._intl.completedLabel)}}function ee(Qe,Pe){if(1&Qe&&(T.TgZ(0,"span",14),T._uU(1),T.qZA()),2&Qe){const de=T.oxw(2);T.xp6(1),T.Oqu(de._intl.editableLabel)}}function me(Qe,Pe){if(1&Qe&&(T.TgZ(0,"mat-icon",13),T._uU(1),T.qZA()),2&Qe){const de=T.oxw(2);T.xp6(1),T.Oqu(de._getDefaultTextForState(de.state))}}function re(Qe,Pe){if(1&Qe&&(T.ynx(0,9),T.YNc(1,Q,2,1,"span",10),T.YNc(2,J,2,1,"span",11),T.YNc(3,ee,2,1,"span",11),T.YNc(4,me,2,1,"mat-icon",12),T.BQk()),2&Qe){const de=T.oxw();T.Q6J("ngSwitch",de.state),T.xp6(1),T.Q6J("ngSwitchCase","number"),T.xp6(1),T.Q6J("ngIf","done"===de.state),T.xp6(1),T.Q6J("ngIf","edit"===de.state)}}function ie(Qe,Pe){if(1&Qe&&(T.TgZ(0,"div",15),T.GkF(1,16),T.qZA()),2&Qe){const de=T.oxw();T.xp6(1),T.Q6J("ngTemplateOutlet",de._templateLabel().template)}}function se(Qe,Pe){if(1&Qe&&(T.TgZ(0,"div",15),T._uU(1),T.qZA()),2&Qe){const de=T.oxw();T.xp6(1),T.Oqu(de.label)}}function ce(Qe,Pe){if(1&Qe&&(T.TgZ(0,"div",17),T._uU(1),T.qZA()),2&Qe){const de=T.oxw();T.xp6(1),T.Oqu(de._intl.optionalLabel)}}function Ce(Qe,Pe){if(1&Qe&&(T.TgZ(0,"div",18),T._uU(1),T.qZA()),2&Qe){const de=T.oxw();T.xp6(1),T.Oqu(de.errorMessage)}}function M(Qe,Pe){}function i(Qe,Pe){if(1&Qe&&(T.Hsn(0),T.YNc(1,M,0,0,"ng-template",0)),2&Qe){const de=T.oxw();T.xp6(1),T.Q6J("cdkPortalOutlet",de._portal)}}const a=["*"];function f(Qe,Pe){1&Qe&&T._UZ(0,"div",11)}const l=function(Qe,Pe){return{step:Qe,i:Pe}};function v(Qe,Pe){if(1&Qe&&(T.ynx(0),T.GkF(1,9),T.YNc(2,f,1,0,"div",10),T.BQk()),2&Qe){const de=Pe.$implicit,rt=Pe.index,Ke=Pe.last;T.oxw(2);const lt=T.MAs(4);T.xp6(1),T.Q6J("ngTemplateOutlet",lt)("ngTemplateOutletContext",T.WLB(3,l,de,rt)),T.xp6(1),T.Q6J("ngIf",!Ke)}}const I=function(Qe){return{animationDuration:Qe}},k=function(Qe,Pe){return{value:Qe,params:Pe}};function x(Qe,Pe){if(1&Qe){const de=T.EpF();T.TgZ(0,"div",12),T.NdJ("@horizontalStepTransition.done",function(Ke){T.CHM(de);const lt=T.oxw(2);return T.KtG(lt._animationDone.next(Ke))}),T.GkF(1,13),T.qZA()}if(2&Qe){const de=Pe.$implicit,rt=Pe.index,Ke=T.oxw(2);T.ekj("mat-horizontal-stepper-content-inactive",Ke.selectedIndex!==rt),T.Q6J("@horizontalStepTransition",T.WLB(8,k,Ke._getAnimationDirection(rt),T.VKq(6,I,Ke._getAnimationDuration())))("id",Ke._getStepContentId(rt)),T.uIk("aria-labelledby",Ke._getStepLabelId(rt)),T.xp6(1),T.Q6J("ngTemplateOutlet",de.content)}}function n(Qe,Pe){if(1&Qe&&(T.TgZ(0,"div",4)(1,"div",5),T.YNc(2,v,3,6,"ng-container",6),T.qZA(),T.TgZ(3,"div",7),T.YNc(4,x,2,11,"div",8),T.qZA()()),2&Qe){const de=T.oxw();T.xp6(2),T.Q6J("ngForOf",de.steps),T.xp6(2),T.Q6J("ngForOf",de.steps)}}function g(Qe,Pe){if(1&Qe){const de=T.EpF();T.TgZ(0,"div",15),T.GkF(1,9),T.TgZ(2,"div",16)(3,"div",17),T.NdJ("@verticalStepTransition.done",function(Ke){T.CHM(de);const lt=T.oxw(2);return T.KtG(lt._animationDone.next(Ke))}),T.TgZ(4,"div",18),T.GkF(5,13),T.qZA()()()()}if(2&Qe){const de=Pe.$implicit,rt=Pe.index,Ke=Pe.last,lt=T.oxw(2),Ut=T.MAs(4);T.xp6(1),T.Q6J("ngTemplateOutlet",Ut)("ngTemplateOutletContext",T.WLB(10,l,de,rt)),T.xp6(1),T.ekj("mat-stepper-vertical-line",!Ke),T.xp6(1),T.ekj("mat-vertical-stepper-content-inactive",lt.selectedIndex!==rt),T.Q6J("@verticalStepTransition",T.WLB(15,k,lt._getAnimationDirection(rt),T.VKq(13,I,lt._getAnimationDuration())))("id",lt._getStepContentId(rt)),T.uIk("aria-labelledby",lt._getStepLabelId(rt)),T.xp6(2),T.Q6J("ngTemplateOutlet",de.content)}}function W(Qe,Pe){if(1&Qe&&(T.ynx(0),T.YNc(1,g,6,18,"div",14),T.BQk()),2&Qe){const de=T.oxw();T.xp6(1),T.Q6J("ngForOf",de.steps)}}function O(Qe,Pe){if(1&Qe){const de=T.EpF();T.TgZ(0,"mat-step-header",19),T.NdJ("click",function(){const lt=T.CHM(de).step;return T.KtG(lt.select())})("keydown",function(Ke){T.CHM(de);const lt=T.oxw();return T.KtG(lt._onKeydown(Ke))}),T.qZA()}if(2&Qe){const de=Pe.step,rt=Pe.i,Ke=T.oxw();T.ekj("mat-horizontal-stepper-header","horizontal"===Ke.orientation)("mat-vertical-stepper-header","vertical"===Ke.orientation),T.Q6J("tabIndex",Ke._getFocusIndex()===rt?0:-1)("id",Ke._getStepLabelId(rt))("index",rt)("state",Ke._getIndicatorType(rt,de.state))("label",de.stepLabel||de.label)("selected",Ke.selectedIndex===rt)("active",Ke._stepIsNavigable(rt,de))("optional",de.optional)("errorMessage",de.errorMessage)("iconOverrides",Ke._iconOverrides)("disableRipple",Ke.disableRipple||!Ke._stepIsNavigable(rt,de))("color",de.color||Ke.color),T.uIk("aria-posinset",rt+1)("aria-setsize",Ke.steps.length)("aria-controls",Ke._getStepContentId(rt))("aria-selected",Ke.selectedIndex==rt)("aria-label",de.ariaLabel||null)("aria-labelledby",!de.ariaLabel&&de.ariaLabelledby?de.ariaLabelledby:null)("aria-disabled",!Ke._stepIsNavigable(rt,de)||null)}}let G=(()=>{class Qe extends e.u6{}return Qe.\u0275fac=function(){let Pe;return function(rt){return(Pe||(Pe=T.n5z(Qe)))(rt||Qe)}}(),Qe.\u0275dir=T.lG2({type:Qe,selectors:[["","matStepLabel",""]],features:[T.qOj]}),Qe})(),ge=(()=>{class Qe{constructor(){this.changes=new P.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return Qe.\u0275fac=function(de){return new(de||Qe)},Qe.\u0275prov=T.Yz7({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})();const Ue={provide:ge,deps:[[new T.FiY,new T.tp0,ge]],useFactory:function nt(Qe){return Qe||new ge}},at=(0,s.pj)(class extends e.KL{constructor(Pe){super(Pe)}},"primary");let ye=(()=>{class Qe extends at{constructor(de,rt,Ke,lt){super(Ke),this._intl=de,this._focusMonitor=rt,this._intlSubscription=de.changes.subscribe(()=>lt.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(de,rt){de?this._focusMonitor.focusVia(this._elementRef,de,rt):this._elementRef.nativeElement.focus(rt)}_stringLabel(){return this.label instanceof G?null:this.label}_templateLabel(){return this.label instanceof G?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(de){return"number"==de?`${this.index+1}`:"edit"==de?"create":"error"==de?"warning":de}}return Qe.\u0275fac=function(de){return new(de||Qe)(T.Y36(ge),T.Y36(h.tE),T.Y36(T.SBq),T.Y36(T.sBO))},Qe.\u0275cmp=T.Xpm({type:Qe,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:[T.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"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(de,rt){1&de&&(T._UZ(0,"div",0),T.TgZ(1,"div")(2,"div",1),T.YNc(3,j,1,2,"ng-container",2),T.YNc(4,re,5,4,"ng-container",3),T.qZA()(),T.TgZ(5,"div",4),T.YNc(6,ie,2,1,"div",5),T.YNc(7,se,2,1,"div",5),T.YNc(8,ce,2,1,"div",6),T.YNc(9,Ce,2,1,"div",7),T.qZA()),2&de&&(T.Q6J("matRippleTrigger",rt._getHostElement())("matRippleDisabled",rt.disableRipple),T.xp6(1),T.Gre("mat-step-icon-state-",rt.state," mat-step-icon"),T.ekj("mat-step-icon-selected",rt.selected),T.xp6(1),T.Q6J("ngSwitch",!(!rt.iconOverrides||!rt.iconOverrides[rt.state])),T.xp6(1),T.Q6J("ngSwitchCase",!0),T.xp6(2),T.ekj("mat-step-label-active",rt.active)("mat-step-label-selected",rt.selected)("mat-step-label-error","error"==rt.state),T.xp6(1),T.Q6J("ngIf",rt._templateLabel()),T.xp6(1),T.Q6J("ngIf",rt._stringLabel()),T.xp6(1),T.Q6J("ngIf",rt.optional&&"error"!=rt.state),T.xp6(1),T.Q6J("ngIf","error"==rt.state))},dependencies:[_.O5,_.tP,_.RF,_.n9,_.ED,y.Hw,s.wG],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.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{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .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}'],encapsulation:2,changeDetection:0}),Qe})();const Oe={horizontalStepTransition:(0,Y.X$)("horizontalStepTransition",[(0,Y.SB)("previous",(0,Y.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,Y.SB)("current",(0,Y.oB)({transform:"none",visibility:"inherit"})),(0,Y.SB)("next",(0,Y.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,Y.eR)("* => *",(0,Y.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),verticalStepTransition:(0,Y.X$)("verticalStepTransition",[(0,Y.SB)("previous",(0,Y.oB)({height:"0px",visibility:"hidden"})),(0,Y.SB)("next",(0,Y.oB)({height:"0px",visibility:"hidden"})),(0,Y.SB)("current",(0,Y.oB)({height:"*",visibility:"inherit"})),(0,Y.eR)("* <=> current",(0,Y.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])};let oe=(()=>{class Qe{constructor(de){this.templateRef=de}}return Qe.\u0275fac=function(de){return new(de||Qe)(T.Y36(T.Rgc))},Qe.\u0275dir=T.lG2({type:Qe,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),Qe})(),Fe=(()=>{class Qe{constructor(de){this._template=de}}return Qe.\u0275fac=function(de){return new(de||Qe)(T.Y36(T.Rgc))},Qe.\u0275dir=T.lG2({type:Qe,selectors:[["ng-template","matStepContent",""]]}),Qe})(),De=(()=>{class Qe extends e.be{constructor(de,rt,Ke,lt){super(de,lt),this._errorStateMatcher=rt,this._viewContainerRef=Ke,this._isSelected=d.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,C.w)(()=>this._stepper.selectionChange.pipe((0,L.U)(de=>de.selectedStep===this),(0,D.O)(this._stepper.selected===this)))).subscribe(de=>{de&&this._lazyContent&&!this._portal&&(this._portal=new t.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(de,rt){return this._errorStateMatcher.isErrorState(de,rt)||!!(de&&de.invalid&&this.interacted)}}return Qe.\u0275fac=function(de){return new(de||Qe)(T.Y36((0,T.Gpc)(()=>he)),T.Y36(s.rD,4),T.Y36(T.s_b),T.Y36(e.gx,8))},Qe.\u0275cmp=T.Xpm({type:Qe,selectors:[["mat-step"]],contentQueries:function(de,rt,Ke){if(1&de&&(T.Suo(Ke,G,5),T.Suo(Ke,Fe,5)),2&de){let lt;T.iGM(lt=T.CRH())&&(rt.stepLabel=lt.first),T.iGM(lt=T.CRH())&&(rt._lazyContent=lt.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[T._Bn([{provide:s.rD,useExisting:Qe},{provide:e.be,useExisting:Qe}]),T.qOj],ngContentSelectors:a,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(de,rt){1&de&&(T.F$t(),T.YNc(0,i,2,1,"ng-template"))},dependencies:[t.Pl],encapsulation:2,changeDetection:0}),Qe})(),he=(()=>{class Qe extends e.B8{get animationDuration(){return this._animationDuration}set animationDuration(de){this._animationDuration=/^\d+$/.test(de)?de+"ms":de}constructor(de,rt,Ke){super(de,rt,Ke),this.steps=new T.n_E,this.animationDone=new T.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new P.x,this._animationDuration="";const lt=Ke.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===lt?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:de,templateRef:rt})=>this._iconOverrides[de]=rt),this.steps.changes.pipe((0,H.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,V.x)((de,rt)=>de.fromState===rt.fromState&&de.toState===rt.toState),(0,H.R)(this._destroyed)).subscribe(de=>{"current"===de.toState&&this.animationDone.emit()})}_stepIsNavigable(de,rt){return rt.completed||this.selectedIndex===de||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}return Qe.\u0275fac=function(de){return new(de||Qe)(T.Y36(w.Is,8),T.Y36(T.sBO),T.Y36(T.SBq))},Qe.\u0275cmp=T.Xpm({type:Qe,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(de,rt,Ke){if(1&de&&(T.Suo(Ke,De,5),T.Suo(Ke,oe,5)),2&de){let lt;T.iGM(lt=T.CRH())&&(rt._steps=lt),T.iGM(lt=T.CRH())&&(rt._icons=lt)}},viewQuery:function(de,rt){if(1&de&&T.Gf(ye,5),2&de){let Ke;T.iGM(Ke=T.CRH())&&(rt._stepHeader=Ke)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(de,rt){2&de&&(T.uIk("aria-orientation",rt.orientation),T.ekj("mat-stepper-horizontal","horizontal"===rt.orientation)("mat-stepper-vertical","vertical"===rt.orientation)("mat-stepper-label-position-end","horizontal"===rt.orientation&&"end"==rt.labelPosition)("mat-stepper-label-position-bottom","horizontal"===rt.orientation&&"bottom"==rt.labelPosition)("mat-stepper-header-position-bottom","bottom"===rt.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[T._Bn([{provide:e.B8,useExisting:Qe}]),T.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id","mat-horizontal-stepper-content-inactive",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(de,rt){1&de&&(T.ynx(0,0),T.YNc(1,n,5,2,"div",1),T.YNc(2,W,2,1,"ng-container",2),T.BQk(),T.YNc(3,O,1,23,"ng-template",null,3,T.W1O)),2&de&&(T.Q6J("ngSwitch",rt.orientation),T.xp6(1),T.Q6J("ngSwitchCase","horizontal"),T.xp6(1),T.Q6J("ngSwitchCase","vertical"))},dependencies:[_.sg,_.O5,_.tP,_.RF,_.n9,ye],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-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.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-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{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-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[Oe.horizontalStepTransition,Oe.verticalStepTransition]},changeDetection:0}),Qe})(),Me=(()=>{class Qe extends e.st{}return Qe.\u0275fac=function(){let Pe;return function(rt){return(Pe||(Pe=T.n5z(Qe)))(rt||Qe)}}(),Qe.\u0275dir=T.lG2({type:Qe,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(de,rt){2&de&&T.Ikx("type",rt.type)},inputs:{type:"type"},features:[T.qOj]}),Qe})(),pe=(()=>{class Qe extends e.po{}return Qe.\u0275fac=function(){let Pe;return function(rt){return(Pe||(Pe=T.n5z(Qe)))(rt||Qe)}}(),Qe.\u0275dir=T.lG2({type:Qe,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(de,rt){2&de&&T.Ikx("type",rt.type)},inputs:{type:"type"},features:[T.qOj]}),Qe})(),Ve=(()=>{class Qe{}return Qe.\u0275fac=function(de){return new(de||Qe)},Qe.\u0275mod=T.oAB({type:Qe}),Qe.\u0275inj=T.cJS({providers:[Ue,s.rD],imports:[s.BQ,_.ez,t.eL,e.U5,y.Ps,s.si,s.BQ]}),Qe})()},671:(We,q,m)=>{"use strict";m.d(q,{ev:()=>ft,Dz:()=>Je,w1:()=>ii,yh:()=>ot,mD:()=>Vt,Q2:()=>vt,Ke:()=>gt,ge:()=>pt,fO:()=>$t,XQ:()=>_t,as:()=>St,Gk:()=>He,nj:()=>$e,BZ:()=>Le,by:()=>Gi,p0:()=>zi});var t=m(4650),e=m(445),_=m(1281),T=m(5017),s=m(3353),y=m(531),h=m(6895),P=m(7579),d=m(457),w=m(1135),C=m(5191),L=m(9646),D=m(2722),H=m(5698);const V=[[["caption"]],[["colgroup"],["col"]]],Y=["caption","colgroup, col"];function J(Xe){return class extends Xe{get sticky(){return this._sticky}set sticky(It){const Se=this._sticky;this._sticky=(0,_.Ig)(It),this._hasStickyChanged=Se!==this._sticky}hasStickyChanged(){const It=this._hasStickyChanged;return this._hasStickyChanged=!1,It}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...It){super(...It),this._sticky=!1,this._hasStickyChanged=!1}}}const ee=new t.OlP("CDK_TABLE");let re=(()=>{class Xe{constructor(Se){this.template=Se}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(t.Rgc))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","cdkCellDef",""]]}),Xe})(),ie=(()=>{class Xe{constructor(Se){this.template=Se}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(t.Rgc))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","cdkHeaderCellDef",""]]}),Xe})(),se=(()=>{class Xe{constructor(Se){this.template=Se}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(t.Rgc))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","cdkFooterCellDef",""]]}),Xe})();class ce{}const Ce=J(ce);let M=(()=>{class Xe extends Ce{get name(){return this._name}set name(Se){this._setNameInput(Se)}get stickyEnd(){return this._stickyEnd}set stickyEnd(Se){const wt=this._stickyEnd;this._stickyEnd=(0,_.Ig)(Se),this._hasStickyChanged=wt!==this._stickyEnd}constructor(Se){super(),this._table=Se,this._stickyEnd=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(Se){Se&&(this._name=Se,this.cssClassFriendlyName=Se.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(ee,8))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","cdkColumnDef",""]],contentQueries:function(Se,wt,Zt){if(1&Se&&(t.Suo(Zt,re,5),t.Suo(Zt,ie,5),t.Suo(Zt,se,5)),2&Se){let si;t.iGM(si=t.CRH())&&(wt.cell=si.first),t.iGM(si=t.CRH())&&(wt.headerCell=si.first),t.iGM(si=t.CRH())&&(wt.footerCell=si.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[t._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Xe}]),t.qOj]}),Xe})();class i{constructor(It,Se){Se.nativeElement.classList.add(...It._columnCssClassName)}}let a=(()=>{class Xe extends i{constructor(Se,wt){super(Se,wt)}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(M),t.Y36(t.SBq))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[t.qOj]}),Xe})(),f=(()=>{class Xe extends i{constructor(Se,wt){if(super(Se,wt),1===Se._table?._elementRef.nativeElement.nodeType){const Zt=Se._table._elementRef.nativeElement.getAttribute("role");wt.nativeElement.setAttribute("role","grid"===Zt||"treegrid"===Zt?"gridcell":"cell")}}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(M),t.Y36(t.SBq))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[t.qOj]}),Xe})(),l=(()=>{class Xe extends i{constructor(Se,wt){if(super(Se,wt),1===Se._table?._elementRef.nativeElement.nodeType){const Zt=Se._table._elementRef.nativeElement.getAttribute("role");wt.nativeElement.setAttribute("role","grid"===Zt||"treegrid"===Zt?"gridcell":"cell")}}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(M),t.Y36(t.SBq))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[t.qOj]}),Xe})();class v{constructor(){this.tasks=[],this.endTasks=[]}}const I=new t.OlP("_COALESCED_STYLE_SCHEDULER");let k=(()=>{class Xe{constructor(Se){this._ngZone=Se,this._currentSchedule=null,this._destroyed=new P.x}schedule(Se){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(Se)}scheduleEnd(Se){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(Se)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new v,this._getScheduleObservable().pipe((0,D.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const Se=this._currentSchedule;this._currentSchedule=new v;for(const wt of Se.tasks)wt();for(const wt of Se.endTasks)wt()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,d.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,H.q)(1))}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.LFG(t.R0b))},Xe.\u0275prov=t.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})(),n=(()=>{class Xe{constructor(Se,wt){this.template=Se,this._differs=wt}ngOnChanges(Se){if(!this._columnsDiffer){const wt=Se.columns&&Se.columns.currentValue||[];this._columnsDiffer=this._differs.find(wt).create(),this._columnsDiffer.diff(wt)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(Se){return this instanceof O?Se.headerCell.template:this instanceof nt?Se.footerCell.template:Se.cell.template}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(t.Rgc),t.Y36(t.ZZ4))},Xe.\u0275dir=t.lG2({type:Xe,features:[t.TTD]}),Xe})();class g extends n{}const W=J(g);let O=(()=>{class Xe extends W{constructor(Se,wt,Zt){super(Se,wt),this._table=Zt}ngOnChanges(Se){super.ngOnChanges(Se)}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(ee,8))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[t.qOj,t.TTD]}),Xe})();class G extends n{}const ge=J(G);let nt=(()=>{class Xe extends ge{constructor(Se,wt,Zt){super(Se,wt),this._table=Zt}ngOnChanges(Se){super.ngOnChanges(Se)}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(ee,8))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[t.qOj,t.TTD]}),Xe})(),Ue=(()=>{class Xe extends n{constructor(Se,wt,Zt){super(Se,wt),this._table=Zt}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(ee,8))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[t.qOj]}),Xe})(),at=(()=>{class Xe{constructor(Se){this._viewContainer=Se,Xe.mostRecentCellOutlet=this}ngOnDestroy(){Xe.mostRecentCellOutlet===this&&(Xe.mostRecentCellOutlet=null)}}return Xe.mostRecentCellOutlet=null,Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(t.s_b))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","cdkCellOutlet",""]]}),Xe})(),ye=(()=>{class Xe{}return Xe.\u0275fac=function(Se){return new(Se||Xe)},Xe.\u0275cmp=t.Xpm({type:Xe,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Se,wt){1&Se&&t.GkF(0,0)},dependencies:[at],encapsulation:2}),Xe})(),xe=(()=>{class Xe{}return Xe.\u0275fac=function(Se){return new(Se||Xe)},Xe.\u0275cmp=t.Xpm({type:Xe,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Se,wt){1&Se&&t.GkF(0,0)},dependencies:[at],encapsulation:2}),Xe})(),fe=(()=>{class Xe{}return Xe.\u0275fac=function(Se){return new(Se||Xe)},Xe.\u0275cmp=t.Xpm({type:Xe,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Se,wt){1&Se&&t.GkF(0,0)},dependencies:[at],encapsulation:2}),Xe})(),Oe=(()=>{class Xe{constructor(Se){this.templateRef=Se,this._contentClassName="cdk-no-data-row"}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(t.Rgc))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["ng-template","cdkNoDataRow",""]]}),Xe})();const oe=["top","bottom","left","right"];class Fe{constructor(It,Se,wt,Zt,si=!0,Ai=!0,Oi){this._isNativeHtmlTable=It,this._stickCellCss=Se,this.direction=wt,this._coalescedStyleScheduler=Zt,this._isBrowser=si,this._needsPositionStickyOnElement=Ai,this._positionListener=Oi,this._cachedCellWidths=[],this._borderCellCss={top:`${Se}-border-elem-top`,bottom:`${Se}-border-elem-bottom`,left:`${Se}-border-elem-left`,right:`${Se}-border-elem-right`}}clearStickyPositioning(It,Se){const wt=[];for(const Zt of It)if(Zt.nodeType===Zt.ELEMENT_NODE){wt.push(Zt);for(let si=0;si{for(const Zt of wt)this._removeStickyStyle(Zt,Se)})}updateStickyColumns(It,Se,wt,Zt=!0){if(!It.length||!this._isBrowser||!Se.some(qt=>qt)&&!wt.some(qt=>qt))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const si=It[0],Ai=si.children.length,Oi=this._getCellWidths(si,Zt),Qi=this._getStickyStartColumnPositions(Oi,Se),en=this._getStickyEndColumnPositions(Oi,wt),Yi=Se.lastIndexOf(!0),Yt=wt.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const qt="rtl"===this.direction,_e=qt?"right":"left",dt=qt?"left":"right";for(const Dt of It)for(let Bt=0;BtSe[Bt]?Dt:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Yt?[]:Oi.slice(Yt).map((Dt,Bt)=>wt[Bt+Yt]?Dt:null).reverse()}))})}stickRows(It,Se,wt){if(!this._isBrowser)return;const Zt="bottom"===wt?It.slice().reverse():It,si="bottom"===wt?Se.slice().reverse():Se,Ai=[],Oi=[],Qi=[];for(let Yi=0,Yt=0;Yi{for(let Yi=0;Yi{Se.some(Zt=>!Zt)?this._removeStickyStyle(wt,["bottom"]):this._addStickyStyle(wt,"bottom",0,!1)})}_removeStickyStyle(It,Se){for(const Zt of Se)It.style[Zt]="",It.classList.remove(this._borderCellCss[Zt]);oe.some(Zt=>-1===Se.indexOf(Zt)&&It.style[Zt])?It.style.zIndex=this._getCalculatedZIndex(It):(It.style.zIndex="",this._needsPositionStickyOnElement&&(It.style.position=""),It.classList.remove(this._stickCellCss))}_addStickyStyle(It,Se,wt,Zt){It.classList.add(this._stickCellCss),Zt&&It.classList.add(this._borderCellCss[Se]),It.style[Se]=`${wt}px`,It.style.zIndex=this._getCalculatedZIndex(It),this._needsPositionStickyOnElement&&(It.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(It){const Se={top:100,bottom:10,left:1,right:1};let wt=0;for(const Zt of oe)It.style[Zt]&&(wt+=Se[Zt]);return wt?`${wt}`:""}_getCellWidths(It,Se=!0){if(!Se&&this._cachedCellWidths.length)return this._cachedCellWidths;const wt=[],Zt=It.children;for(let si=0;si0;si--)Se[si]&&(wt[si]=Zt,Zt+=It[si]);return wt}}const rt=new t.OlP("CDK_SPL");let lt=(()=>{class Xe{constructor(Se,wt){this.viewContainer=Se,this.elementRef=wt}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(t.s_b),t.Y36(t.SBq))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","rowOutlet",""]]}),Xe})(),Ut=(()=>{class Xe{constructor(Se,wt){this.viewContainer=Se,this.elementRef=wt}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(t.s_b),t.Y36(t.SBq))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","headerRowOutlet",""]]}),Xe})(),ht=(()=>{class Xe{constructor(Se,wt){this.viewContainer=Se,this.elementRef=wt}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(t.s_b),t.Y36(t.SBq))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","footerRowOutlet",""]]}),Xe})(),Ge=(()=>{class Xe{constructor(Se,wt){this.viewContainer=Se,this.elementRef=wt}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(t.s_b),t.Y36(t.SBq))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","noDataRowOutlet",""]]}),Xe})(),qe=(()=>{class Xe{get trackBy(){return this._trackByFn}set trackBy(Se){this._trackByFn=Se}get dataSource(){return this._dataSource}set dataSource(Se){this._dataSource!==Se&&this._switchDataSource(Se)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(Se){this._multiTemplateDataRows=(0,_.Ig)(Se),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(Se){this._fixedLayout=(0,_.Ig)(Se),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(Se,wt,Zt,si,Ai,Oi,Qi,en,Yi,Yt,qt,_e){this._differs=Se,this._changeDetectorRef=wt,this._elementRef=Zt,this._dir=Ai,this._platform=Qi,this._viewRepeater=en,this._coalescedStyleScheduler=Yi,this._viewportRuler=Yt,this._stickyPositioningListener=qt,this._ngZone=_e,this._onDestroy=new P.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 t.vpe,this.viewChange=new w.X({start:0,end:Number.MAX_VALUE}),si||this._elementRef.nativeElement.setAttribute("role","table"),this._document=Oi,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((Se,wt)=>this.trackBy?this.trackBy(wt.dataIndex,wt.data):wt),this._viewportRuler.change().pipe((0,D.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const wt=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||wt,this._forceRecalculateCellWidths=wt,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,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(Se=>{Se.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,T.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const Se=this._dataDiffer.diff(this._renderRows);if(!Se)return this._updateNoDataRow(),void this.contentChanged.next();const wt=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(Se,wt,(Zt,si,Ai)=>this._getEmbeddedViewArgs(Zt.item,Ai),Zt=>Zt.item.data,Zt=>{1===Zt.operation&&Zt.context&&this._renderCellTemplateForItem(Zt.record.item.rowDef,Zt.context)}),this._updateRowIndexContext(),Se.forEachIdentityChange(Zt=>{wt.get(Zt.currentIndex).context.$implicit=Zt.item.data}),this._updateNoDataRow(),this._ngZone&&t.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,H.q)(1),(0,D.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(Se){this._customColumnDefs.add(Se)}removeColumnDef(Se){this._customColumnDefs.delete(Se)}addRowDef(Se){this._customRowDefs.add(Se)}removeRowDef(Se){this._customRowDefs.delete(Se)}addHeaderRowDef(Se){this._customHeaderRowDefs.add(Se),this._headerRowDefChanged=!0}removeHeaderRowDef(Se){this._customHeaderRowDefs.delete(Se),this._headerRowDefChanged=!0}addFooterRowDef(Se){this._customFooterRowDefs.add(Se),this._footerRowDefChanged=!0}removeFooterRowDef(Se){this._customFooterRowDefs.delete(Se),this._footerRowDefChanged=!0}setNoDataRow(Se){this._customNoDataRow=Se}updateStickyHeaderRowStyles(){const Se=this._getRenderedRows(this._headerRowOutlet),Zt=this._elementRef.nativeElement.querySelector("thead");Zt&&(Zt.style.display=Se.length?"":"none");const si=this._headerRowDefs.map(Ai=>Ai.sticky);this._stickyStyler.clearStickyPositioning(Se,["top"]),this._stickyStyler.stickRows(Se,si,"top"),this._headerRowDefs.forEach(Ai=>Ai.resetStickyChanged())}updateStickyFooterRowStyles(){const Se=this._getRenderedRows(this._footerRowOutlet),Zt=this._elementRef.nativeElement.querySelector("tfoot");Zt&&(Zt.style.display=Se.length?"":"none");const si=this._footerRowDefs.map(Ai=>Ai.sticky);this._stickyStyler.clearStickyPositioning(Se,["bottom"]),this._stickyStyler.stickRows(Se,si,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,si),this._footerRowDefs.forEach(Ai=>Ai.resetStickyChanged())}updateStickyColumnStyles(){const Se=this._getRenderedRows(this._headerRowOutlet),wt=this._getRenderedRows(this._rowOutlet),Zt=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...Se,...wt,...Zt],["left","right"]),this._stickyColumnStylesNeedReset=!1),Se.forEach((si,Ai)=>{this._addStickyColumnStyles([si],this._headerRowDefs[Ai])}),this._rowDefs.forEach(si=>{const Ai=[];for(let Oi=0;Oi{this._addStickyColumnStyles([si],this._footerRowDefs[Ai])}),Array.from(this._columnDefsByName.values()).forEach(si=>si.resetStickyChanged())}_getAllRenderRows(){const Se=[],wt=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let Zt=0;Zt{const Oi=Zt&&Zt.has(Ai)?Zt.get(Ai):[];if(Oi.length){const Qi=Oi.shift();return Qi.dataIndex=wt,Qi}return{data:Se,rowDef:Ai,dataIndex:wt}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Ie(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(wt=>{this._columnDefsByName.has(wt.name),this._columnDefsByName.set(wt.name,wt)})}_cacheRowDefs(){this._headerRowDefs=Ie(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Ie(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Ie(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const Se=this._rowDefs.filter(wt=>!wt.when);this._defaultRowDef=Se[0]}_renderUpdatedColumns(){const Se=(Ai,Oi)=>Ai||!!Oi.getColumnsDiff(),wt=this._rowDefs.reduce(Se,!1);wt&&this._forceRenderDataRows();const Zt=this._headerRowDefs.reduce(Se,!1);Zt&&this._forceRenderHeaderRows();const si=this._footerRowDefs.reduce(Se,!1);return si&&this._forceRenderFooterRows(),wt||Zt||si}_switchDataSource(Se){this._data=[],(0,T.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),Se||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=Se}_observeRenderChanges(){if(!this.dataSource)return;let Se;(0,T.Z9)(this.dataSource)?Se=this.dataSource.connect(this):(0,C.b)(this.dataSource)?Se=this.dataSource:Array.isArray(this.dataSource)&&(Se=(0,L.of)(this.dataSource)),this._renderChangeSubscription=Se.pipe((0,D.R)(this._onDestroy)).subscribe(wt=>{this._data=wt||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((Se,wt)=>this._renderRow(this._headerRowOutlet,Se,wt)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((Se,wt)=>this._renderRow(this._footerRowOutlet,Se,wt)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(Se,wt){const Zt=Array.from(wt.columns||[]).map(Oi=>this._columnDefsByName.get(Oi)),si=Zt.map(Oi=>Oi.sticky),Ai=Zt.map(Oi=>Oi.stickyEnd);this._stickyStyler.updateStickyColumns(Se,si,Ai,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(Se){const wt=[];for(let Zt=0;Zt!si.when||si.when(wt,Se));else{let si=this._rowDefs.find(Ai=>Ai.when&&Ai.when(wt,Se))||this._defaultRowDef;si&&Zt.push(si)}return Zt}_getEmbeddedViewArgs(Se,wt){return{templateRef:Se.rowDef.template,context:{$implicit:Se.data},index:wt}}_renderRow(Se,wt,Zt,si={}){const Ai=Se.viewContainer.createEmbeddedView(wt.template,si,Zt);return this._renderCellTemplateForItem(wt,si),Ai}_renderCellTemplateForItem(Se,wt){for(let Zt of this._getCellTemplates(Se))at.mostRecentCellOutlet&&at.mostRecentCellOutlet._viewContainer.createEmbeddedView(Zt,wt);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const Se=this._rowOutlet.viewContainer;for(let wt=0,Zt=Se.length;wt{const Zt=this._columnDefsByName.get(wt);return Se.extractCellTemplate(Zt)}):[]}_applyNativeTableSections(){const Se=this._document.createDocumentFragment(),wt=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const Zt of wt){const si=this._document.createElement(Zt.tag);si.setAttribute("role","rowgroup");for(const Ai of Zt.outlets)si.appendChild(Ai.elementRef.nativeElement);Se.appendChild(si)}this._elementRef.nativeElement.appendChild(Se)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const Se=(wt,Zt)=>wt||Zt.hasStickyChanged();this._headerRowDefs.reduce(Se,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(Se,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(Se,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Fe(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,L.of)()).pipe((0,D.R)(this._onDestroy)).subscribe(wt=>{this._stickyStyler.direction=wt,this.updateStickyColumnStyles()})}_getOwnDefs(Se){return Se.filter(wt=>!wt._table||wt._table===this)}_updateNoDataRow(){const Se=this._customNoDataRow||this._noDataRow;if(!Se)return;const wt=0===this._rowOutlet.viewContainer.length;if(wt===this._isShowingNoDataRow)return;const Zt=this._noDataRowOutlet.viewContainer;if(wt){const si=Zt.createEmbeddedView(Se.templateRef),Ai=si.rootNodes[0];1===si.rootNodes.length&&Ai?.nodeType===this._document.ELEMENT_NODE&&(Ai.setAttribute("role","row"),Ai.classList.add(Se._contentClassName))}else Zt.clear();this._isShowingNoDataRow=wt}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(t.ZZ4),t.Y36(t.sBO),t.Y36(t.SBq),t.$8M("role"),t.Y36(e.Is,8),t.Y36(h.K0),t.Y36(s.t4),t.Y36(T.k),t.Y36(I),t.Y36(y.rL),t.Y36(rt,12),t.Y36(t.R0b,8))},Xe.\u0275cmp=t.Xpm({type:Xe,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(Se,wt,Zt){if(1&Se&&(t.Suo(Zt,Oe,5),t.Suo(Zt,M,5),t.Suo(Zt,Ue,5),t.Suo(Zt,O,5),t.Suo(Zt,nt,5)),2&Se){let si;t.iGM(si=t.CRH())&&(wt._noDataRow=si.first),t.iGM(si=t.CRH())&&(wt._contentColumnDefs=si),t.iGM(si=t.CRH())&&(wt._contentRowDefs=si),t.iGM(si=t.CRH())&&(wt._contentHeaderRowDefs=si),t.iGM(si=t.CRH())&&(wt._contentFooterRowDefs=si)}},viewQuery:function(Se,wt){if(1&Se&&(t.Gf(lt,7),t.Gf(Ut,7),t.Gf(ht,7),t.Gf(Ge,7)),2&Se){let Zt;t.iGM(Zt=t.CRH())&&(wt._rowOutlet=Zt.first),t.iGM(Zt=t.CRH())&&(wt._headerRowOutlet=Zt.first),t.iGM(Zt=t.CRH())&&(wt._footerRowOutlet=Zt.first),t.iGM(Zt=t.CRH())&&(wt._noDataRowOutlet=Zt.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(Se,wt){2&Se&&t.ekj("cdk-table-fixed-layout",wt.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[t._Bn([{provide:ee,useExisting:Xe},{provide:T.k,useClass:T.yy},{provide:I,useClass:k},{provide:rt,useValue:null}])],ngContentSelectors:Y,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(Se,wt){1&Se&&(t.F$t(V),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[lt,Ut,ht,Ge],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),Xe})();function Ie(Xe,It){return Xe.concat(Array.from(It))}let Tt=(()=>{class Xe{}return Xe.\u0275fac=function(Se){return new(Se||Xe)},Xe.\u0275mod=t.oAB({type:Xe}),Xe.\u0275inj=t.cJS({imports:[y.Cl]}),Xe})();var it=m(3238),je=m(6451),zt=m(9841),xt=m(4004);const Nt=[[["caption"]],[["colgroup"],["col"]]],Gt=["caption","colgroup, col"];let Le=(()=>{class Xe extends qe{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}ngOnInit(){super.ngOnInit(),this._isNativeHtmlTable&&this._elementRef.nativeElement.querySelector("tbody").classList.add("mdc-data-table__content")}}return Xe.\u0275fac=function(){let It;return function(wt){return(It||(It=t.n5z(Xe)))(wt||Xe)}}(),Xe.\u0275cmp=t.Xpm({type:Xe,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(Se,wt){2&Se&&t.ekj("mdc-table-fixed-layout",wt.fixedLayout)},exportAs:["matTable"],features:[t._Bn([{provide:qe,useExisting:Xe},{provide:ee,useExisting:Xe},{provide:I,useClass:k},{provide:T.k,useClass:T.yy},{provide:rt,useValue:null}]),t.qOj],ngContentSelectors:Gt,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(Se,wt){1&Se&&(t.F$t(Nt),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[lt,Ut,ht,Ge],styles:[".mdc-data-table{border-radius:var(--mdc-shape-medium, 4px);border-width:1px;border-style:solid}.mdc-data-table .mdc-data-table__header-cell:first-child{border-top-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:first-child,.mdc-data-table .mdc-data-table__header-cell:first-child[dir=rtl]{border-top-right-radius:var(--mdc-shape-medium, 4px);border-top-left-radius:0}.mdc-data-table .mdc-data-table__header-cell:last-child{border-top-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:last-child,.mdc-data-table .mdc-data-table__header-cell:last-child[dir=rtl]{border-top-left-radius:var(--mdc-shape-medium, 4px);border-top-right-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child{border-bottom-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child[dir=rtl]{border-bottom-right-radius:var(--mdc-shape-medium, 4px);border-bottom-left-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child{border-bottom-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child[dir=rtl]{border-bottom-left-radius:var(--mdc-shape-medium, 4px);border-bottom-right-radius:0}.mdc-data-table__cell,.mdc-data-table__header-cell{border-bottom-width:1px;border-bottom-style:solid}.mdc-data-table__pagination{border-top-width:1px;border-top-style:solid}.mdc-data-table__row:last-child .mdc-data-table__cell{border-bottom:none}.mdc-data-table__row{height:52px}.mdc-data-table__pagination{min-height:52px}.mdc-data-table__header-row{height:56px}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table--sticky-header .mdc-data-table__header-cell{position:sticky;top:0;z-index:1}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__pagination{box-sizing:border-box;display:flex;justify-content:flex-end}.mdc-data-table__pagination-trailing{margin-left:4px;margin-right:0;align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end}[dir=rtl] .mdc-data-table__pagination-trailing,.mdc-data-table__pagination-trailing[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__pagination-navigation{align-items:center;display:flex}.mdc-data-table__pagination-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__pagination-button .mdc-button__icon,.mdc-data-table__pagination-button .mdc-button__icon[dir=rtl]{transform:rotate(180deg)}[dir=rtl] .mdc-data-table__pagination-button,.mdc-data-table__pagination-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__pagination-total{margin-left:14px;margin-right:36px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-total,.mdc-data-table__pagination-total[dir=rtl]{margin-left:36px;margin-right:14px}.mdc-data-table__pagination-rows-per-page{margin-left:0;margin-right:22px;align-items:center;display:inline-flex}[dir=rtl] .mdc-data-table__pagination-rows-per-page,.mdc-data-table__pagination-rows-per-page[dir=rtl]{margin-left:22px;margin-right:0}.mdc-data-table__pagination-rows-per-page-label{margin-left:0;margin-right:12px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-rows-per-page-label,.mdc-data-table__pagination-rows-per-page-label[dir=rtl]{margin-left:12px;margin-right:0}.mdc-data-table__pagination-rows-per-page-select{min-width:var(--mdc-menu-min-width, 80px);margin:8px 0}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{width:100%;min-width:80px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{height:36px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__dropdown-icon{width:20px;height:20px}.mdc-data-table__pagination-rows-per-page-select.mdc-select--outlined .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 56px)}.mdc-data-table__pagination-rows-per-page-select .mdc-list-item.mdc-list-item--with-one-line{height:36px}.mdc-data-table__progress-indicator{display:none;position:absolute;width:100%}.mdc-data-table--in-progress .mdc-data-table__progress-indicator{display:block}.mdc-data-table__scrim{background-color:var(--mdc-theme-surface, #fff);height:100%;opacity:.32;position:absolute;top:0;width:100%}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-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table-sticky{position:sticky !important}.mat-mdc-table{table-layout:auto;white-space:normal}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table .mat-mdc-row:hover,.mat-mdc-table .mat-mdc-footer-row:hover{background-color:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2}),Xe})(),Je=(()=>{class Xe extends re{}return Xe.\u0275fac=function(){let It;return function(wt){return(It||(It=t.n5z(Xe)))(wt||Xe)}}(),Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","matCellDef",""]],features:[t._Bn([{provide:re,useExisting:Xe}]),t.qOj]}),Xe})(),$t=(()=>{class Xe extends ie{}return Xe.\u0275fac=function(){let It;return function(wt){return(It||(It=t.n5z(Xe)))(wt||Xe)}}(),Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","matHeaderCellDef",""]],features:[t._Bn([{provide:ie,useExisting:Xe}]),t.qOj]}),Xe})(),Vt=(()=>{class Xe extends se{}return Xe.\u0275fac=function(){let It;return function(wt){return(It||(It=t.n5z(Xe)))(wt||Xe)}}(),Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","matFooterCellDef",""]],features:[t._Bn([{provide:se,useExisting:Xe}]),t.qOj]}),Xe})(),ii=(()=>{class Xe extends M{get name(){return this._name}set name(Se){this._setNameInput(Se)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return Xe.\u0275fac=function(){let It;return function(wt){return(It||(It=t.n5z(Xe)))(wt||Xe)}}(),Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[t._Bn([{provide:M,useExisting:Xe},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Xe}]),t.qOj]}),Xe})(),pt=(()=>{class Xe extends a{}return Xe.\u0275fac=function(){let It;return function(wt){return(It||(It=t.n5z(Xe)))(wt||Xe)}}(),Xe.\u0275dir=t.lG2({type:Xe,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[t.qOj]}),Xe})(),ot=(()=>{class Xe extends f{}return Xe.\u0275fac=function(){let It;return function(wt){return(It||(It=t.n5z(Xe)))(wt||Xe)}}(),Xe.\u0275dir=t.lG2({type:Xe,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:[1,"mat-mdc-footer-cell","mdc-data-table__cell"],features:[t.qOj]}),Xe})(),ft=(()=>{class Xe extends l{}return Xe.\u0275fac=function(){let It;return function(wt){return(It||(It=t.n5z(Xe)))(wt||Xe)}}(),Xe.\u0275dir=t.lG2({type:Xe,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[t.qOj]}),Xe})(),St=(()=>{class Xe extends O{}return Xe.\u0275fac=function(){let It;return function(wt){return(It||(It=t.n5z(Xe)))(wt||Xe)}}(),Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[t._Bn([{provide:O,useExisting:Xe}]),t.qOj]}),Xe})(),gt=(()=>{class Xe extends nt{}return Xe.\u0275fac=function(){let It;return function(wt){return(It||(It=t.n5z(Xe)))(wt||Xe)}}(),Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[t._Bn([{provide:nt,useExisting:Xe}]),t.qOj]}),Xe})(),$e=(()=>{class Xe extends Ue{}return Xe.\u0275fac=function(){let It;return function(wt){return(It||(It=t.n5z(Xe)))(wt||Xe)}}(),Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[t._Bn([{provide:Ue,useExisting:Xe}]),t.qOj]}),Xe})(),_t=(()=>{class Xe extends ye{}return Xe.\u0275fac=function(){let It;return function(wt){return(It||(It=t.n5z(Xe)))(wt||Xe)}}(),Xe.\u0275cmp=t.Xpm({type:Xe,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[t._Bn([{provide:ye,useExisting:Xe}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Se,wt){1&Se&&t.GkF(0,0)},dependencies:[at],encapsulation:2}),Xe})(),vt=(()=>{class Xe extends xe{}return Xe.\u0275fac=function(){let It;return function(wt){return(It||(It=t.n5z(Xe)))(wt||Xe)}}(),Xe.\u0275cmp=t.Xpm({type:Xe,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-mdc-footer-row","mdc-data-table__row"],exportAs:["matFooterRow"],features:[t._Bn([{provide:xe,useExisting:Xe}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Se,wt){1&Se&&t.GkF(0,0)},dependencies:[at],encapsulation:2}),Xe})(),He=(()=>{class Xe extends fe{}return Xe.\u0275fac=function(){let It;return function(wt){return(It||(It=t.n5z(Xe)))(wt||Xe)}}(),Xe.\u0275cmp=t.Xpm({type:Xe,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[t._Bn([{provide:fe,useExisting:Xe}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Se,wt){1&Se&&t.GkF(0,0)},dependencies:[at],encapsulation:2}),Xe})(),zi=(()=>{class Xe{}return Xe.\u0275fac=function(Se){return new(Se||Xe)},Xe.\u0275mod=t.oAB({type:Xe}),Xe.\u0275inj=t.cJS({imports:[it.BQ,Tt,it.BQ]}),Xe})();class Mi extends T.o2{get data(){return this._data.value}set data(It){It=Array.isArray(It)?It:[],this._data.next(It),this._renderChangesSubscription||this._filterData(It)}get filter(){return this._filter.value}set filter(It){this._filter.next(It),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(It){this._sort=It,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(It){this._paginator=It,this._updateChangeSubscription()}constructor(It=[]){super(),this._renderData=new w.X([]),this._filter=new w.X(""),this._internalPageChanges=new P.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(Se,wt)=>{const Zt=Se[wt];if((0,_.t6)(Zt)){const si=Number(Zt);return si<9007199254740991?si:Zt}return Zt},this.sortData=(Se,wt)=>{const Zt=wt.active,si=wt.direction;return Zt&&""!=si?Se.sort((Ai,Oi)=>{let Qi=this.sortingDataAccessor(Ai,Zt),en=this.sortingDataAccessor(Oi,Zt);const Yi=typeof Qi,Yt=typeof en;Yi!==Yt&&("number"===Yi&&(Qi+=""),"number"===Yt&&(en+=""));let qt=0;return null!=Qi&&null!=en?Qi>en?qt=1:Qi{const Zt=Object.keys(Se).reduce((Ai,Oi)=>Ai+Se[Oi]+"\u25ec","").toLowerCase(),si=wt.trim().toLowerCase();return-1!=Zt.indexOf(si)},this._data=new w.X(It),this._updateChangeSubscription()}_updateChangeSubscription(){const It=this._sort?(0,je.T)(this._sort.sortChange,this._sort.initialized):(0,L.of)(null),Se=this._paginator?(0,je.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,L.of)(null),Zt=(0,zt.a)([this._data,this._filter]).pipe((0,xt.U)(([Oi])=>this._filterData(Oi))),si=(0,zt.a)([Zt,It]).pipe((0,xt.U)(([Oi])=>this._orderData(Oi))),Ai=(0,zt.a)([si,Se]).pipe((0,xt.U)(([Oi])=>this._pageData(Oi)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=Ai.subscribe(Oi=>this._renderData.next(Oi))}_filterData(It){return this.filteredData=null==this.filter||""===this.filter?It:It.filter(Se=>this.filterPredicate(Se,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(It){return this.sort?this.sortData(It.slice(),this.sort):It}_pageData(It){if(!this.paginator)return It;const Se=this.paginator.pageIndex*this.paginator.pageSize;return It.slice(Se,Se+this.paginator.pageSize)}_updatePaginator(It){Promise.resolve().then(()=>{const Se=this.paginator;if(Se&&(Se.length=It,Se.pageIndex>0)){const wt=Math.ceil(Se.length/Se.pageSize)-1||0,Zt=Math.min(Se.pageIndex,wt);Zt!==Se.pageIndex&&(Se.pageIndex=Zt,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class Gi extends Mi{}},3848:(We,q,m)=>{"use strict";m.d(q,{BU:()=>ft,Nh:()=>$e,Nj:()=>St,SP:()=>Le,sW:()=>gt,uD:()=>Qe,uX:()=>mt});var t=m(6895),e=m(4650),_=m(3238),T=m(4080),s=m(9643),y=m(4761),h=m(445),P=m(727),d=m(7579),w=m(4968),C=m(9646),L=m(6451),D=m(515),H=m(9751),V=m(2805),Y=m(1135),j=m(8675),Q=m(1884),J=m(2722),ee=m(5698),me=m(3900),re=m(5684),ie=m(9300),se=m(7340),ce=m(1281),Ce=m(531),M=m(3353),i=m(9521);function a(_t,vt){}const f=function(_t){return{animationDuration:_t}},l=function(_t,vt){return{value:_t,params:vt}};function v(_t,vt){1&_t&&e.Hsn(0)}const I=["*"],k=["tabListContainer"],x=["tabList"],n=["tabListInner"],g=["nextPaginator"],W=["previousPaginator"],O=["tabBodyWrapper"],G=["tabHeader"];function ge(_t,vt){}function nt(_t,vt){if(1&_t&&e.YNc(0,ge,0,0,"ng-template",14),2&_t){const He=e.oxw().$implicit;e.Q6J("cdkPortalOutlet",He.templateLabel)}}function Ue(_t,vt){if(1&_t&&e._uU(0),2&_t){const He=e.oxw().$implicit;e.Oqu(He.textLabel)}}function at(_t,vt){if(1&_t){const He=e.EpF();e.TgZ(0,"div",6,7),e.NdJ("click",function(){const At=e.CHM(He),Qt=At.$implicit,zi=At.index,Ni=e.oxw(),Mi=e.MAs(1);return e.KtG(Ni._handleClick(Qt,Mi,zi))})("cdkFocusChange",function(At){const zi=e.CHM(He).index,Ni=e.oxw();return e.KtG(Ni._tabFocusChanged(At,zi))}),e._UZ(2,"span",8)(3,"div",9),e.TgZ(4,"span",10)(5,"span",11),e.YNc(6,nt,1,1,"ng-template",12),e.YNc(7,Ue,1,1,"ng-template",null,13,e.W1O),e.qZA()()()}if(2&_t){const He=vt.$implicit,Et=vt.index,At=e.MAs(1),Qt=e.MAs(8),zi=e.oxw();e.ekj("mdc-tab--active",zi.selectedIndex===Et),e.Q6J("id",zi._getTabLabelId(Et))("ngClass",He.labelClass)("disabled",He.disabled)("fitInkBarToContent",zi.fitInkBarToContent),e.uIk("tabIndex",zi._getTabIndex(Et))("aria-posinset",Et+1)("aria-setsize",zi._tabs.length)("aria-controls",zi._getTabContentId(Et))("aria-selected",zi.selectedIndex===Et)("aria-label",He.ariaLabel||null)("aria-labelledby",!He.ariaLabel&&He.ariaLabelledby?He.ariaLabelledby:null),e.xp6(3),e.Q6J("matRippleTrigger",At)("matRippleDisabled",He.disabled||zi.disableRipple),e.xp6(3),e.Q6J("ngIf",He.templateLabel)("ngIfElse",Qt)}}function ye(_t,vt){if(1&_t){const He=e.EpF();e.TgZ(0,"mat-tab-body",15),e.NdJ("_onCentered",function(){e.CHM(He);const At=e.oxw();return e.KtG(At._removeTabBodyWrapperHeight())})("_onCentering",function(At){e.CHM(He);const Qt=e.oxw();return e.KtG(Qt._setTabBodyWrapperHeight(At))}),e.qZA()}if(2&_t){const He=vt.$implicit,Et=vt.index,At=e.oxw();e.ekj("mat-mdc-tab-body-active",At.selectedIndex===Et),e.Q6J("id",At._getTabContentId(Et))("ngClass",He.bodyClass)("content",He.content)("position",He.position)("origin",He.origin)("animationDuration",At.animationDuration)("preserveContent",At.preserveContent),e.uIk("tabindex",null!=At.contentTabIndex&&At.selectedIndex===Et?At.contentTabIndex:null)("aria-labelledby",At._getTabLabelId(Et))}}const xe=["mat-tab-nav-bar",""],fe=["mat-tab-link",""],Oe={translateTab:(0,se.X$)("translateTab",[(0,se.SB)("center, void, left-origin-center, right-origin-center",(0,se.oB)({transform:"none"})),(0,se.SB)("left",(0,se.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,se.SB)("right",(0,se.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,se.eR)("* => left, * => right, left => center, right => center",(0,se.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,se.eR)("void => left-origin-center",[(0,se.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,se.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,se.eR)("void => right-origin-center",[(0,se.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,se.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let oe=(()=>{class _t extends T.Pl{constructor(He,Et,At,Qt){super(He,Et,Qt),this._host=At,this._centeringSub=P.w0.EMPTY,this._leavingSub=P.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,j.O)(this._host._isCenterPosition(this._host._position))).subscribe(He=>{He&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return _t.\u0275fac=function(He){return new(He||_t)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36((0,e.Gpc)(()=>De)),e.Y36(t.K0))},_t.\u0275dir=e.lG2({type:_t,selectors:[["","matTabBodyHost",""]],features:[e.qOj]}),_t})(),Fe=(()=>{class _t{set position(He){this._positionIndex=He,this._computePositionAnimationState()}constructor(He,Et,At){this._elementRef=He,this._dir=Et,this._dirChangeSubscription=P.w0.EMPTY,this._translateTabComplete=new d.x,this._onCentering=new e.vpe,this._beforeCentering=new e.vpe,this._afterLeavingCenter=new e.vpe,this._onCentered=new e.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,Et&&(this._dirChangeSubscription=Et.change.subscribe(Qt=>{this._computePositionAnimationState(Qt),At.markForCheck()})),this._translateTabComplete.pipe((0,Q.x)((Qt,zi)=>Qt.fromState===zi.fromState&&Qt.toState===zi.toState)).subscribe(Qt=>{this._isCenterPosition(Qt.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(Qt.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(He){const Et=this._isCenterPosition(He.toState);this._beforeCentering.emit(Et),Et&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(He){return"center"==He||"left-origin-center"==He||"right-origin-center"==He}_computePositionAnimationState(He=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==He?"left":"right":this._positionIndex>0?"ltr"==He?"right":"left":"center"}_computePositionFromOrigin(He){const Et=this._getLayoutDirection();return"ltr"==Et&&He<=0||"rtl"==Et&&He>0?"left-origin-center":"right-origin-center"}}return _t.\u0275fac=function(He){return new(He||_t)(e.Y36(e.SBq),e.Y36(h.Is,8),e.Y36(e.sBO))},_t.\u0275dir=e.lG2({type:_t,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),_t})(),De=(()=>{class _t extends Fe{constructor(He,Et,At){super(He,Et,At)}}return _t.\u0275fac=function(He){return new(He||_t)(e.Y36(e.SBq),e.Y36(h.Is,8),e.Y36(e.sBO))},_t.\u0275cmp=e.Xpm({type:_t,selectors:[["mat-tab-body"]],viewQuery:function(He,Et){if(1&He&&e.Gf(T.Pl,5),2&He){let At;e.iGM(At=e.CRH())&&(Et._portalHost=At.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[e.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(He,Et){1&He&&(e.TgZ(0,"div",0,1),e.NdJ("@translateTab.start",function(Qt){return Et._onTranslateTabStarted(Qt)})("@translateTab.done",function(Qt){return Et._translateTabComplete.next(Qt)}),e.YNc(2,a,0,0,"ng-template",2),e.qZA()),2&He&&e.Q6J("@translateTab",e.WLB(3,l,Et._position,e.VKq(1,f,Et.animationDuration)))},dependencies:[oe],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[Oe.translateTab]}}),_t})();const he=new e.OlP("MatTabContent");let Me=(()=>{class _t{constructor(He){this.template=He}}return _t.\u0275fac=function(He){return new(He||_t)(e.Y36(e.Rgc))},_t.\u0275dir=e.lG2({type:_t,selectors:[["","matTabContent",""]],features:[e._Bn([{provide:he,useExisting:_t}])]}),_t})();const pe=new e.OlP("MatTabLabel"),Ve=new e.OlP("MAT_TAB");let Qe=(()=>{class _t extends T.ig{constructor(He,Et,At){super(He,Et),this._closestTab=At}}return _t.\u0275fac=function(He){return new(He||_t)(e.Y36(e.Rgc),e.Y36(e.s_b),e.Y36(Ve,8))},_t.\u0275dir=e.lG2({type:_t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[e._Bn([{provide:pe,useExisting:_t}]),e.qOj]}),_t})();const Pe="mdc-tab-indicator--active",de="mdc-tab-indicator--no-transition";class rt{constructor(vt){this._items=vt}hide(){this._items.forEach(vt=>vt.deactivateInkBar())}alignToElement(vt){const He=this._items.find(At=>At.elementRef.nativeElement===vt),Et=this._currentItem;if(Et?.deactivateInkBar(),He){const At=Et?.elementRef.nativeElement.getBoundingClientRect?.();He.activateInkBar(At),this._currentItem=He}}}function Ke(_t){return class extends _t{constructor(...vt){super(...vt),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(vt){const He=(0,ce.Ig)(vt);this._fitToContent!==He&&(this._fitToContent=He,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(vt){const He=this.elementRef.nativeElement;if(!vt||!He.getBoundingClientRect||!this._inkBarContentElement)return void He.classList.add(Pe);const Et=He.getBoundingClientRect(),At=vt.width/Et.width,Qt=vt.left-Et.left;He.classList.add(de),this._inkBarContentElement.style.setProperty("transform",`translateX(${Qt}px) scaleX(${At})`),He.getBoundingClientRect(),He.classList.remove(de),He.classList.add(Pe),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(Pe)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const vt=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=vt.createElement("span"),this._inkBarContentElement=vt.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const ht=(0,_.Id)(class{}),yt=Ke((()=>{class _t extends ht{constructor(He){super(),this.elementRef=He}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return _t.\u0275fac=function(He){return new(He||_t)(e.Y36(e.SBq))},_t.\u0275dir=e.lG2({type:_t,features:[e.qOj]}),_t})());let be=(()=>{class _t extends yt{}return _t.\u0275fac=function(){let vt;return function(Et){return(vt||(vt=e.n5z(_t)))(Et||_t)}}(),_t.\u0275dir=e.lG2({type:_t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(He,Et){2&He&&(e.uIk("aria-disabled",!!Et.disabled),e.ekj("mat-mdc-tab-disabled",Et.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[e.qOj]}),_t})();const qe=(0,_.Id)(class{}),Ie=new e.OlP("MAT_TAB_GROUP");let X=(()=>{class _t extends qe{get content(){return this._contentPortal}constructor(He,Et){super(),this._viewContainerRef=He,this._closestTabGroup=Et,this.textLabel="",this._contentPortal=null,this._stateChanges=new d.x,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(He){(He.hasOwnProperty("textLabel")||He.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new T.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(He){He&&He._closestTab===this&&(this._templateLabel=He)}}return _t.\u0275fac=function(He){return new(He||_t)(e.Y36(e.s_b),e.Y36(Ie,8))},_t.\u0275dir=e.lG2({type:_t,viewQuery:function(He,Et){if(1&He&&e.Gf(e.Rgc,7),2&He){let At;e.iGM(At=e.CRH())&&(Et._implicitContent=At.first)}},inputs:{textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[e.qOj,e.TTD]}),_t})(),mt=(()=>{class _t extends X{get templateLabel(){return this._templateLabel}set templateLabel(He){this._setTemplateLabelInput(He)}}return _t.\u0275fac=function(){let vt;return function(Et){return(vt||(vt=e.n5z(_t)))(Et||_t)}}(),_t.\u0275cmp=e.Xpm({type:_t,selectors:[["mat-tab"]],contentQueries:function(He,Et,At){if(1&He&&(e.Suo(At,Me,7,e.Rgc),e.Suo(At,Qe,5)),2&He){let Qt;e.iGM(Qt=e.CRH())&&(Et._explicitContent=Qt.first),e.iGM(Qt=e.CRH())&&(Et.templateLabel=Qt.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[e._Bn([{provide:Ve,useExisting:_t}]),e.qOj],ngContentSelectors:I,decls:1,vars:0,template:function(He,Et){1&He&&(e.F$t(),e.YNc(0,v,1,0,"ng-template"))},encapsulation:2}),_t})();const Tt=(0,M.i$)({passive:!0});let zt=(()=>{class _t{get disablePagination(){return this._disablePagination}set disablePagination(He){this._disablePagination=(0,ce.Ig)(He)}get selectedIndex(){return this._selectedIndex}set selectedIndex(He){He=(0,ce.su)(He),this._selectedIndex!=He&&(this._selectedIndexChanged=!0,this._selectedIndex=He,this._keyManager&&this._keyManager.updateActiveItem(He))}constructor(He,Et,At,Qt,zi,Ni,Mi){this._elementRef=He,this._changeDetectorRef=Et,this._viewportRuler=At,this._dir=Qt,this._ngZone=zi,this._platform=Ni,this._animationMode=Mi,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new d.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new d.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new e.vpe,this.indexFocused=new e.vpe,zi.runOutsideAngular(()=>{(0,w.R)(He.nativeElement,"mouseleave").pipe((0,J.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){(0,w.R)(this._previousPaginator.nativeElement,"touchstart",Tt).pipe((0,J.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,w.R)(this._nextPaginator.nativeElement,"touchstart",Tt).pipe((0,J.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const He=this._dir?this._dir.change:(0,C.of)("ltr"),Et=this._viewportRuler.change(150),At=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new y.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,ee.q)(1)).subscribe(At),(0,L.T)(He,Et,this._items.changes,this._itemsResized()).pipe((0,J.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),At()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(Qt=>{this.indexFocused.emit(Qt),this._setTabFocus(Qt)})}_itemsResized(){return"function"!=typeof ResizeObserver?D.E:this._items.changes.pipe((0,j.O)(this._items),(0,me.w)(He=>new H.y(Et=>this._ngZone.runOutsideAngular(()=>{const At=new ResizeObserver(Qt=>Et.next(Qt));return He.forEach(Qt=>At.observe(Qt.elementRef.nativeElement)),()=>{At.disconnect()}}))),(0,re.T)(1),(0,ie.h)(He=>He.some(Et=>Et.contentRect.width>0&&Et.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(He){if(!(0,i.Vb)(He))switch(He.keyCode){case i.K5:case i.L_:if(this.focusIndex!==this.selectedIndex){const Et=this._items.get(this.focusIndex);Et&&!Et.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(He))}break;default:this._keyManager.onKeydown(He)}}_onContentChanges(){const He=this._elementRef.nativeElement.textContent;He!==this._currentTextContent&&(this._currentTextContent=He||"",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(He){!this._isValidIndex(He)||this.focusIndex===He||!this._keyManager||this._keyManager.setActiveItem(He)}_isValidIndex(He){return!this._items||!!this._items.toArray()[He]}_setTabFocus(He){if(this._showPaginationControls&&this._scrollToLabel(He),this._items&&this._items.length){this._items.toArray()[He].focus();const Et=this._tabListContainer.nativeElement;Et.scrollLeft="ltr"==this._getLayoutDirection()?0:Et.scrollWidth-Et.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const He=this.scrollDistance,Et="ltr"===this._getLayoutDirection()?-He:He;this._tabList.nativeElement.style.transform=`translateX(${Math.round(Et)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(He){this._scrollTo(He)}_scrollHeader(He){return this._scrollTo(this._scrollDistance+("before"==He?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(He){this._stopInterval(),this._scrollHeader(He)}_scrollToLabel(He){if(this.disablePagination)return;const Et=this._items?this._items.toArray()[He]:null;if(!Et)return;const At=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:Qt,offsetWidth:zi}=Et.elementRef.nativeElement;let Ni,Mi;"ltr"==this._getLayoutDirection()?(Ni=Qt,Mi=Ni+zi):(Mi=this._tabListInner.nativeElement.offsetWidth-Qt,Ni=Mi-zi);const Gi=this.scrollDistance,Xe=this.scrollDistance+At;NiXe&&(this.scrollDistance+=Math.min(Mi-Xe,Ni-Gi))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const He=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;He||(this.scrollDistance=0),He!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=He}}_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 He=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,Et=He?He.elementRef.nativeElement:null;Et?this._inkBar.alignToElement(Et):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(He,Et){Et&&null!=Et.button&&0!==Et.button||(this._stopInterval(),(0,V.H)(650,100).pipe((0,J.R)((0,L.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:At,distance:Qt}=this._scrollHeader(He);(0===Qt||Qt>=At)&&this._stopInterval()}))}_scrollTo(He){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const Et=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Et,He)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Et,distance:this._scrollDistance}}}return _t.\u0275fac=function(He){return new(He||_t)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Ce.rL),e.Y36(h.Is,8),e.Y36(e.R0b),e.Y36(M.t4),e.Y36(e.QbO,8))},_t.\u0275dir=e.lG2({type:_t,inputs:{disablePagination:"disablePagination"}}),_t})(),xt=(()=>{class _t extends zt{get disableRipple(){return this._disableRipple}set disableRipple(He){this._disableRipple=(0,ce.Ig)(He)}constructor(He,Et,At,Qt,zi,Ni,Mi){super(He,Et,At,Qt,zi,Ni,Mi),this._disableRipple=!1}_itemSelected(He){He.preventDefault()}}return _t.\u0275fac=function(He){return new(He||_t)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Ce.rL),e.Y36(h.Is,8),e.Y36(e.R0b),e.Y36(M.t4),e.Y36(e.QbO,8))},_t.\u0275dir=e.lG2({type:_t,inputs:{disableRipple:"disableRipple"},features:[e.qOj]}),_t})(),Nt=(()=>{class _t extends xt{constructor(He,Et,At,Qt,zi,Ni,Mi){super(He,Et,At,Qt,zi,Ni,Mi)}ngAfterContentInit(){this._inkBar=new rt(this._items),super.ngAfterContentInit()}}return _t.\u0275fac=function(He){return new(He||_t)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Ce.rL),e.Y36(h.Is,8),e.Y36(e.R0b),e.Y36(M.t4),e.Y36(e.QbO,8))},_t.\u0275cmp=e.Xpm({type:_t,selectors:[["mat-tab-header"]],contentQueries:function(He,Et,At){if(1&He&&e.Suo(At,be,4),2&He){let Qt;e.iGM(Qt=e.CRH())&&(Et._items=Qt)}},viewQuery:function(He,Et){if(1&He&&(e.Gf(k,7),e.Gf(x,7),e.Gf(n,7),e.Gf(g,5),e.Gf(W,5)),2&He){let At;e.iGM(At=e.CRH())&&(Et._tabListContainer=At.first),e.iGM(At=e.CRH())&&(Et._tabList=At.first),e.iGM(At=e.CRH())&&(Et._tabListInner=At.first),e.iGM(At=e.CRH())&&(Et._nextPaginator=At.first),e.iGM(At=e.CRH())&&(Et._previousPaginator=At.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(He,Et){2&He&&e.ekj("mat-mdc-tab-header-pagination-controls-enabled",Et._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==Et._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[e.qOj],ngContentSelectors:I,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(He,Et){1&He&&(e.F$t(),e.TgZ(0,"button",0,1),e.NdJ("click",function(){return Et._handlePaginatorClick("before")})("mousedown",function(Qt){return Et._handlePaginatorPress("before",Qt)})("touchend",function(){return Et._stopInterval()}),e._UZ(2,"div",2),e.qZA(),e.TgZ(3,"div",3,4),e.NdJ("keydown",function(Qt){return Et._handleKeydown(Qt)}),e.TgZ(5,"div",5,6),e.NdJ("cdkObserveContent",function(){return Et._onContentChanges()}),e.TgZ(7,"div",7,8),e.Hsn(9),e.qZA()()(),e.TgZ(10,"button",9,10),e.NdJ("mousedown",function(Qt){return Et._handlePaginatorPress("after",Qt)})("click",function(){return Et._handlePaginatorClick("after")})("touchend",function(){return Et._stopInterval()}),e._UZ(12,"div",2),e.qZA()),2&He&&(e.ekj("mat-mdc-tab-header-pagination-disabled",Et._disableScrollBefore),e.Q6J("matRippleDisabled",Et._disableScrollBefore||Et.disableRipple)("disabled",Et._disableScrollBefore||null),e.xp6(3),e.ekj("_mat-animation-noopable","NoopAnimations"===Et._animationMode),e.xp6(7),e.ekj("mat-mdc-tab-header-pagination-disabled",Et._disableScrollAfter),e.Q6J("matRippleDisabled",Et._disableScrollAfter||Et.disableRipple)("disabled",Et._disableScrollAfter||null))},dependencies:[_.wG,s.wD],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2}),_t})();const Gt=new e.OlP("MAT_TABS_CONFIG");let ke=0;const $=(0,_.pj)((0,_.Kr)(class{constructor(_t){this._elementRef=_t}}),"primary");let ue=(()=>{class _t extends ${get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(He){this._dynamicHeight=(0,ce.Ig)(He)}get selectedIndex(){return this._selectedIndex}set selectedIndex(He){this._indexToSelect=(0,ce.su)(He,null)}get animationDuration(){return this._animationDuration}set animationDuration(He){this._animationDuration=/^\d+$/.test(He+"")?He+"ms":He}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(He){this._contentTabIndex=(0,ce.su)(He,null)}get disablePagination(){return this._disablePagination}set disablePagination(He){this._disablePagination=(0,ce.Ig)(He)}get preserveContent(){return this._preserveContent}set preserveContent(He){this._preserveContent=(0,ce.Ig)(He)}get backgroundColor(){return this._backgroundColor}set backgroundColor(He){const Et=this._elementRef.nativeElement.classList;Et.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),He&&Et.add("mat-tabs-with-background",`mat-background-${He}`),this._backgroundColor=He}constructor(He,Et,At,Qt){super(He),this._changeDetectorRef=Et,this._animationMode=Qt,this._tabs=new e.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=P.w0.EMPTY,this._tabLabelSubscription=P.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new e.vpe,this.focusChange=new e.vpe,this.animationDone=new e.vpe,this.selectedTabChange=new e.vpe(!0),this._groupId=ke++,this.animationDuration=At&&At.animationDuration?At.animationDuration:"500ms",this.disablePagination=!(!At||null==At.disablePagination)&&At.disablePagination,this.dynamicHeight=!(!At||null==At.dynamicHeight)&&At.dynamicHeight,this.contentTabIndex=At?.contentTabIndex??null,this.preserveContent=!!At?.preserveContent}ngAfterContentChecked(){const He=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=He){const Et=null==this._selectedIndex;if(!Et){this.selectedTabChange.emit(this._createChangeEvent(He));const At=this._tabBodyWrapper.nativeElement;At.style.minHeight=At.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((At,Qt)=>At.isActive=Qt===He),Et||(this.selectedIndexChange.emit(He),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((Et,At)=>{Et.position=At-He,null!=this._selectedIndex&&0==Et.position&&!Et.origin&&(Et.origin=He-this._selectedIndex)}),this._selectedIndex!==He&&(this._selectedIndex=He,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const He=this._clampTabIndex(this._indexToSelect);if(He===this._selectedIndex){const Et=this._tabs.toArray();let At;for(let Qt=0;Qt{Et[He].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(He))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,j.O)(this._allTabs)).subscribe(He=>{this._tabs.reset(He.filter(Et=>Et._closestTabGroup===this||!Et._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(He){const Et=this._tabHeader;Et&&(Et.focusIndex=He)}_focusChanged(He){this._lastFocusedTabIndex=He,this.focusChange.emit(this._createChangeEvent(He))}_createChangeEvent(He){const Et=new Je;return Et.index=He,this._tabs&&this._tabs.length&&(Et.tab=this._tabs.toArray()[He]),Et}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,L.T)(...this._tabs.map(He=>He._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(He){return Math.min(this._tabs.length-1,Math.max(He||0,0))}_getTabLabelId(He){return`mat-tab-label-${this._groupId}-${He}`}_getTabContentId(He){return`mat-tab-content-${this._groupId}-${He}`}_setTabBodyWrapperHeight(He){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const Et=this._tabBodyWrapper.nativeElement;Et.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(Et.style.height=He+"px")}_removeTabBodyWrapperHeight(){const He=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=He.clientHeight,He.style.height="",this.animationDone.emit()}_handleClick(He,Et,At){Et.focusIndex=At,He.disabled||(this.selectedIndex=At)}_getTabIndex(He){return He===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(He,Et){He&&"mouse"!==He&&"touch"!==He&&(this._tabHeader.focusIndex=Et)}}return _t.\u0275fac=function(He){return new(He||_t)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Gt,8),e.Y36(e.QbO,8))},_t.\u0275dir=e.lG2({type:_t,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[e.qOj]}),_t})(),Le=(()=>{class _t extends ue{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(He){this._fitInkBarToContent=(0,ce.Ig)(He),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(He){this._stretchTabs=(0,ce.Ig)(He)}constructor(He,Et,At,Qt){super(He,Et,At,Qt),this._fitInkBarToContent=!1,this._stretchTabs=!0,this.fitInkBarToContent=!(!At||null==At.fitInkBarToContent)&&At.fitInkBarToContent}}return _t.\u0275fac=function(He){return new(He||_t)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Gt,8),e.Y36(e.QbO,8))},_t.\u0275cmp=e.Xpm({type:_t,selectors:[["mat-tab-group"]],contentQueries:function(He,Et,At){if(1&He&&e.Suo(At,mt,5),2&He){let Qt;e.iGM(Qt=e.CRH())&&(Et._allTabs=Qt)}},viewQuery:function(He,Et){if(1&He&&(e.Gf(O,5),e.Gf(G,5)),2&He){let At;e.iGM(At=e.CRH())&&(Et._tabBodyWrapper=At.first),e.iGM(At=e.CRH())&&(Et._tabHeader=At.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:6,hostBindings:function(He,Et){2&He&&e.ekj("mat-mdc-tab-group-dynamic-height",Et.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===Et.headerPosition)("mat-mdc-tab-group-stretch-tabs",Et.stretchTabs)},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"]},exportAs:["matTabGroup"],features:[e._Bn([{provide:Ie,useExisting:_t}]),e.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-mdc-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(He,Et){1&He&&(e.TgZ(0,"mat-tab-header",0,1),e.NdJ("indexFocused",function(Qt){return Et._focusChanged(Qt)})("selectFocusedIndex",function(Qt){return Et.selectedIndex=Qt}),e.YNc(2,at,9,17,"div",2),e.qZA(),e.TgZ(3,"div",3,4),e.YNc(5,ye,1,11,"mat-tab-body",5),e.qZA()),2&He&&(e.Q6J("selectedIndex",Et.selectedIndex||0)("disableRipple",Et.disableRipple)("disablePagination",Et.disablePagination),e.xp6(2),e.Q6J("ngForOf",Et._tabs),e.xp6(1),e.ekj("_mat-animation-noopable","NoopAnimations"===Et._animationMode),e.xp6(2),e.Q6J("ngForOf",Et._tabs))},dependencies:[t.mk,t.sg,t.O5,T.Pl,_.wG,y.kH,De,be,Nt],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-tab.mdc-tab{height:48px;flex-grow:0}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none}.mat-mdc-tab .mdc-tab__text-label{display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-disabled{opacity:.4}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-mdc-tab-header-with-background-background-color, transparent)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab-indicator__content--underline,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2}),_t})();class Je{}let $t=0,Vt=(()=>{class _t extends zt{get backgroundColor(){return this._backgroundColor}set backgroundColor(He){const Et=this._elementRef.nativeElement.classList;Et.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),He&&Et.add("mat-tabs-with-background",`mat-background-${He}`),this._backgroundColor=He}get disableRipple(){return this._disableRipple}set disableRipple(He){this._disableRipple=(0,ce.Ig)(He)}constructor(He,Et,At,Qt,zi,Ni,Mi){super(He,Qt,zi,Et,At,Ni,Mi),this._disableRipple=!1,this.color="primary"}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,j.O)(null),(0,J.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const He=this._items.toArray();for(let Et=0;Et{class _t extends ii{get active(){return this._isActive}set active(He){const Et=(0,ce.Ig)(He);Et!==this._isActive&&(this._isActive=Et,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}constructor(He,Et,At,Qt,zi,Ni){super(),this._tabNavBar=He,this.elementRef=Et,this._focusMonitor=zi,this._isActive=!1,this.id="mat-tab-link-"+$t++,this.rippleConfig=At||{},this.tabIndex=parseInt(Qt)||0,"NoopAnimations"===Ni&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}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)}_handleKeydown(He){this._tabNavBar.tabPanel&&He.keyCode===i.L_&&this.elementRef.nativeElement.click()}_getAriaControls(){return this._tabNavBar.tabPanel?this._tabNavBar.tabPanel?.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.tabIndex}}return _t.\u0275fac=function(He){return new(He||_t)(e.Y36(Vt),e.Y36(e.SBq),e.Y36(_.Y2,8),e.$8M("tabindex"),e.Y36(y.tE),e.Y36(e.QbO,8))},_t.\u0275dir=e.lG2({type:_t,inputs:{active:"active",id:"id"},features:[e.qOj]}),_t})());let ft=(()=>{class _t extends Vt{get fitInkBarToContent(){return this._fitInkBarToContent.value}set fitInkBarToContent(He){this._fitInkBarToContent.next((0,ce.Ig)(He)),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(He){this._stretchTabs=(0,ce.Ig)(He)}constructor(He,Et,At,Qt,zi,Ni,Mi,Gi){super(He,Et,At,Qt,zi,Ni,Mi),this._fitInkBarToContent=new Y.X(!1),this._stretchTabs=!0,this.disablePagination=!(!Gi||null==Gi.disablePagination)&&Gi.disablePagination,this.fitInkBarToContent=!(!Gi||null==Gi.fitInkBarToContent)&&Gi.fitInkBarToContent}ngAfterContentInit(){this._inkBar=new rt(this._items),super.ngAfterContentInit()}ngAfterViewInit(){super.ngAfterViewInit()}}return _t.\u0275fac=function(He){return new(He||_t)(e.Y36(e.SBq),e.Y36(h.Is,8),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(Ce.rL),e.Y36(M.t4),e.Y36(e.QbO,8),e.Y36(Gt,8))},_t.\u0275cmp=e.Xpm({type:_t,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(He,Et,At){if(1&He&&e.Suo(At,St,5),2&He){let Qt;e.iGM(Qt=e.CRH())&&(Et._items=Qt)}},viewQuery:function(He,Et){if(1&He&&(e.Gf(k,7),e.Gf(x,7),e.Gf(n,7),e.Gf(g,5),e.Gf(W,5)),2&He){let At;e.iGM(At=e.CRH())&&(Et._tabListContainer=At.first),e.iGM(At=e.CRH())&&(Et._tabList=At.first),e.iGM(At=e.CRH())&&(Et._tabListInner=At.first),e.iGM(At=e.CRH())&&(Et._nextPaginator=At.first),e.iGM(At=e.CRH())&&(Et._previousPaginator=At.first)}},hostAttrs:[1,"mat-mdc-tab-nav-bar","mat-mdc-tab-header"],hostVars:15,hostBindings:function(He,Et){2&He&&(e.uIk("role",Et._getRole()),e.ekj("mat-mdc-tab-header-pagination-controls-enabled",Et._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==Et._getLayoutDirection())("mat-mdc-tab-nav-bar-stretch-tabs",Et.stretchTabs)("mat-primary","warn"!==Et.color&&"accent"!==Et.color)("mat-accent","accent"===Et.color)("mat-warn","warn"===Et.color)("_mat-animation-noopable","NoopAnimations"===Et._animationMode))},inputs:{color:"color",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"]},exportAs:["matTabNavBar","matTabNav"],features:[e.qOj],attrs:xe,ngContentSelectors:I,decls:13,vars:8,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-links"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(He,Et){1&He&&(e.F$t(),e.TgZ(0,"button",0,1),e.NdJ("click",function(){return Et._handlePaginatorClick("before")})("mousedown",function(Qt){return Et._handlePaginatorPress("before",Qt)})("touchend",function(){return Et._stopInterval()}),e._UZ(2,"div",2),e.qZA(),e.TgZ(3,"div",3,4),e.NdJ("keydown",function(Qt){return Et._handleKeydown(Qt)}),e.TgZ(5,"div",5,6),e.NdJ("cdkObserveContent",function(){return Et._onContentChanges()}),e.TgZ(7,"div",7,8),e.Hsn(9),e.qZA()()(),e.TgZ(10,"button",9,10),e.NdJ("mousedown",function(Qt){return Et._handlePaginatorPress("after",Qt)})("click",function(){return Et._handlePaginatorClick("after")})("touchend",function(){return Et._stopInterval()}),e._UZ(12,"div",2),e.qZA()),2&He&&(e.ekj("mat-mdc-tab-header-pagination-disabled",Et._disableScrollBefore),e.Q6J("matRippleDisabled",Et._disableScrollBefore||Et.disableRipple)("disabled",Et._disableScrollBefore||null),e.xp6(10),e.ekj("mat-mdc-tab-header-pagination-disabled",Et._disableScrollAfter),e.Q6J("matRippleDisabled",Et._disableScrollAfter||Et.disableRipple)("disabled",Et._disableScrollAfter||null))},dependencies:[_.wG,s.wD],styles:[".mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-links{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:flex-end}.mat-mdc-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-mdc-tab-header-with-background-background-color, transparent)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab .mdc-tab__text-label,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab-indicator__content--underline,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-focus-indicator::before{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}"],encapsulation:2}),_t})(),St=(()=>{class _t extends ot{constructor(He,Et,At,Qt,zi,Ni){super(He,Et,At,Qt,zi,Ni),this._destroyed=new d.x,He._fitInkBarToContent.pipe((0,J.R)(this._destroyed)).subscribe(Mi=>{this.fitInkBarToContent=Mi})}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),super.ngOnDestroy()}}return _t.\u0275fac=function(He){return new(He||_t)(e.Y36(ft),e.Y36(e.SBq),e.Y36(_.Y2,8),e.$8M("tabindex"),e.Y36(y.tE),e.Y36(e.QbO,8))},_t.\u0275cmp=e.Xpm({type:_t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-mdc-focus-indicator"],hostVars:11,hostBindings:function(He,Et){1&He&&e.NdJ("focus",function(){return Et._handleFocus()})("keydown",function(Qt){return Et._handleKeydown(Qt)}),2&He&&(e.uIk("aria-controls",Et._getAriaControls())("aria-current",Et._getAriaCurrent())("aria-disabled",Et.disabled)("aria-selected",Et._getAriaSelected())("id",Et.id)("tabIndex",Et._getTabIndex())("role",Et._getRole()),e.ekj("mat-mdc-tab-disabled",Et.disabled)("mdc-tab--active",Et.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",active:"active",id:"id"},exportAs:["matTabLink"],features:[e.qOj],attrs:fe,ngContentSelectors:I,decls:5,vars:2,consts:[[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"]],template:function(He,Et){1&He&&(e.F$t(),e._UZ(0,"span",0)(1,"div",1),e.TgZ(2,"span",2)(3,"span",3),e.Hsn(4),e.qZA()()),2&He&&(e.xp6(1),e.Q6J("matRippleTrigger",Et.elementRef.nativeElement)("matRippleDisabled",Et.rippleDisabled))},dependencies:[_.wG],styles:['.mat-mdc-tab-link{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-tab-link.mdc-tab{height:48px;flex-grow:0}.mat-mdc-tab-link .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none}.mat-mdc-tab-link .mdc-tab__text-label{display:inline-flex;align-items:center}.mat-mdc-tab-link .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab-link:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab-link.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab-link.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab-link .mat-ripple-element{opacity:.12}.mat-mdc-tab-link.mat-mdc-tab-disabled{pointer-events:none;opacity:.4}.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs .mat-mdc-tab-link{flex-grow:1}.mat-mdc-tab-link::before{margin:5px}@media(max-width: 599px){.mat-mdc-tab-link{min-width:72px}}'],encapsulation:2,changeDetection:0}),_t})(),gt=(()=>{class _t{constructor(){this.id="mat-tab-nav-panel-"+$t++}}return _t.\u0275fac=function(He){return new(He||_t)},_t.\u0275cmp=e.Xpm({type:_t,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-mdc-tab-nav-panel"],hostVars:2,hostBindings:function(He,Et){2&He&&e.uIk("aria-labelledby",Et._activeTabId)("id",Et.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:I,decls:1,vars:0,template:function(He,Et){1&He&&(e.F$t(),e.Hsn(0))},encapsulation:2,changeDetection:0}),_t})(),$e=(()=>{class _t{}return _t.\u0275fac=function(He){return new(He||_t)},_t.\u0275mod=e.oAB({type:_t}),_t.\u0275inj=e.cJS({imports:[t.ez,_.BQ,T.eL,_.si,s.Q8,y.rt,_.BQ]}),_t})()},3683:(We,q,m)=>{"use strict";m.d(q,{Ye:()=>d,g0:()=>C});var t=m(4650),e=m(3238),_=m(3353),T=m(6895);const s=["*",[["mat-toolbar-row"]]],y=["*","mat-toolbar-row"],h=(0,e.pj)(class{constructor(L){this._elementRef=L}});let P=(()=>{class L{}return L.\u0275fac=function(H){return new(H||L)},L.\u0275dir=t.lG2({type:L,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),L})(),d=(()=>{class L extends h{constructor(H,V,Y){super(H),this._platform=V,this._document=Y}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return L.\u0275fac=function(H){return new(H||L)(t.Y36(t.SBq),t.Y36(_.t4),t.Y36(T.K0))},L.\u0275cmp=t.Xpm({type:L,selectors:[["mat-toolbar"]],contentQueries:function(H,V,Y){if(1&H&&t.Suo(Y,P,5),2&H){let j;t.iGM(j=t.CRH())&&(V._toolbarRows=j)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(H,V){2&H&&t.ekj("mat-toolbar-multiple-rows",V._toolbarRows.length>0)("mat-toolbar-single-row",0===V._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[t.qOj],ngContentSelectors:y,decls:2,vars:0,template:function(H,V){1&H&&(t.F$t(s),t.Hsn(0),t.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.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%}"],encapsulation:2,changeDetection:0}),L})(),C=(()=>{class L{}return L.\u0275fac=function(H){return new(H||L)},L.\u0275mod=t.oAB({type:L}),L.\u0275inj=t.cJS({imports:[e.BQ,e.BQ]}),L})()},266:(We,q,m)=>{"use strict";m.d(q,{AV:()=>g,gM:()=>I});var t=m(2722),e=m(5698),_=m(1281),T=m(9521),s=m(4650),y=m(6895),h=m(3353),P=m(4761),d=m(445),w=m(8184),C=m(531),L=m(4080),D=m(7579),V=(m(7340),m(3238));const Y=["tooltip"],J=new s.OlP("mat-tooltip-scroll-strategy"),me={provide:J,deps:[w.aV],useFactory:function ee(W){return()=>W.scrollStrategies.reposition({scrollThrottle:20})}},ie=new s.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function re(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),ce="tooltip-panel",Ce=(0,h.i$)({passive:!0});let v=(()=>{class W{get position(){return this._position}set position(G){G!==this._position&&(this._position=G,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(G){this._positionAtOrigin=(0,_.Ig)(G),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(G){this._disabled=(0,_.Ig)(G),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(G){this._showDelay=(0,_.su)(G)}get hideDelay(){return this._hideDelay}set hideDelay(G){this._hideDelay=(0,_.su)(G),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(G){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=G?String(G).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(G){this._tooltipClass=G,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(G,ge,nt,Ue,at,ye,xe,fe,Oe,oe,Fe,De){this._overlay=G,this._elementRef=ge,this._scrollDispatcher=nt,this._viewContainerRef=Ue,this._ngZone=at,this._platform=ye,this._ariaDescriber=xe,this._focusMonitor=fe,this._dir=oe,this._defaultOptions=Fe,this._position="below",this._positionAtOrigin=!1,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 D.x,this._scrollStrategy=Oe,this._document=De,Fe&&(Fe.position&&(this.position=Fe.position),Fe.positionAtOrigin&&(this.positionAtOrigin=Fe.positionAtOrigin),Fe.touchGestures&&(this.touchGestures=Fe.touchGestures)),oe.change.pipe((0,t.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,t.R)(this._destroyed)).subscribe(G=>{G?"keyboard"===G&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const G=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([ge,nt])=>{G.removeEventListener(ge,nt,Ce)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(G,this.message,"tooltip"),this._focusMonitor.stopMonitoring(G)}show(G=this.showDelay,ge){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const nt=this._createOverlay(ge);this._detach(),this._portal=this._portal||new L.C5(this._tooltipComponent,this._viewContainerRef);const Ue=this._tooltipInstance=nt.attach(this._portal).instance;Ue._triggerElement=this._elementRef.nativeElement,Ue._mouseLeaveHideDelay=this._hideDelay,Ue.afterHidden().pipe((0,t.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),Ue.show(G)}hide(G=this.hideDelay){const ge=this._tooltipInstance;ge&&(ge.isVisible()?ge.hide(G):(ge._cancelPendingAnimations(),this._detach()))}toggle(G){this._isTooltipVisible()?this.hide():this.show(void 0,G)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(G){if(this._overlayRef){const Ue=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!G)&&Ue._origin instanceof s.SBq)return this._overlayRef;this._detach()}const ge=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),nt=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&G||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(ge);return nt.positionChanges.pipe((0,t.R)(this._destroyed)).subscribe(Ue=>{this._updateCurrentPositionClass(Ue.connectionPair),this._tooltipInstance&&Ue.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:nt,panelClass:`${this._cssClassPrefix}-${ce}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,t.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,t.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,t.R)(this._destroyed)).subscribe(Ue=>{this._isTooltipVisible()&&Ue.keyCode===T.hY&&!(0,T.Vb)(Ue)&&(Ue.preventDefault(),Ue.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(G){const ge=G.getConfig().positionStrategy,nt=this._getOrigin(),Ue=this._getOverlayPosition();ge.withPositions([this._addOffset({...nt.main,...Ue.main}),this._addOffset({...nt.fallback,...Ue.fallback})])}_addOffset(G){return G}_getOrigin(){const G=!this._dir||"ltr"==this._dir.value,ge=this.position;let nt;"above"==ge||"below"==ge?nt={originX:"center",originY:"above"==ge?"top":"bottom"}:"before"==ge||"left"==ge&&G||"right"==ge&&!G?nt={originX:"start",originY:"center"}:("after"==ge||"right"==ge&&G||"left"==ge&&!G)&&(nt={originX:"end",originY:"center"});const{x:Ue,y:at}=this._invertPosition(nt.originX,nt.originY);return{main:nt,fallback:{originX:Ue,originY:at}}}_getOverlayPosition(){const G=!this._dir||"ltr"==this._dir.value,ge=this.position;let nt;"above"==ge?nt={overlayX:"center",overlayY:"bottom"}:"below"==ge?nt={overlayX:"center",overlayY:"top"}:"before"==ge||"left"==ge&&G||"right"==ge&&!G?nt={overlayX:"end",overlayY:"center"}:("after"==ge||"right"==ge&&G||"left"==ge&&!G)&&(nt={overlayX:"start",overlayY:"center"});const{x:Ue,y:at}=this._invertPosition(nt.overlayX,nt.overlayY);return{main:nt,fallback:{overlayX:Ue,overlayY:at}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,e.q)(1),(0,t.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(G){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=G,this._tooltipInstance._markForCheck())}_invertPosition(G,ge){return"above"===this.position||"below"===this.position?"top"===ge?ge="bottom":"bottom"===ge&&(ge="top"):"end"===G?G="start":"start"===G&&(G="end"),{x:G,y:ge}}_updateCurrentPositionClass(G){const{overlayY:ge,originX:nt,originY:Ue}=G;let at;if(at="center"===ge?this._dir&&"rtl"===this._dir.value?"end"===nt?"left":"right":"start"===nt?"left":"right":"bottom"===ge&&"top"===Ue?"above":"below",at!==this._currentPosition){const ye=this._overlayRef;if(ye){const xe=`${this._cssClassPrefix}-${ce}-`;ye.removePanelClass(xe+this._currentPosition),ye.addPanelClass(xe+at)}this._currentPosition=at}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",G=>{let ge;this._setupPointerExitEventsIfNeeded(),void 0!==G.x&&void 0!==G.y&&(ge=G),this.show(void 0,ge)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",G=>{const ge=G.targetTouches?.[0],nt=ge?{x:ge.clientX,y:ge.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,nt),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const G=[];if(this._platformSupportsMouseEvents())G.push(["mouseleave",ge=>{const nt=ge.relatedTarget;(!nt||!this._overlayRef?.overlayElement.contains(nt))&&this.hide()}],["wheel",ge=>this._wheelListener(ge)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const ge=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};G.push(["touchend",ge],["touchcancel",ge])}this._addListeners(G),this._passiveListeners.push(...G)}_addListeners(G){G.forEach(([ge,nt])=>{this._elementRef.nativeElement.addEventListener(ge,nt,Ce)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(G){if(this._isTooltipVisible()){const ge=this._document.elementFromPoint(G.clientX,G.clientY),nt=this._elementRef.nativeElement;ge!==nt&&!nt.contains(ge)&&this.hide()}}_disableNativeGesturesIfNecessary(){const G=this.touchGestures;if("off"!==G){const ge=this._elementRef.nativeElement,nt=ge.style;("on"===G||"INPUT"!==ge.nodeName&&"TEXTAREA"!==ge.nodeName)&&(nt.userSelect=nt.msUserSelect=nt.webkitUserSelect=nt.MozUserSelect="none"),("on"===G||!ge.draggable)&&(nt.webkitUserDrag="none"),nt.touchAction="none",nt.webkitTapHighlightColor="transparent"}}}return W.\u0275fac=function(G){s.$Z()},W.\u0275dir=s.lG2({type:W,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),W})(),I=(()=>{class W extends v{constructor(G,ge,nt,Ue,at,ye,xe,fe,Oe,oe,Fe,De){super(G,ge,nt,Ue,at,ye,xe,fe,Oe,oe,Fe,De),this._tooltipComponent=x,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(G){const nt=!this._dir||"ltr"==this._dir.value;return"top"===G.originY?G.offsetY=-8:"bottom"===G.originY?G.offsetY=8:"start"===G.originX?G.offsetX=nt?-8:8:"end"===G.originX&&(G.offsetX=nt?8:-8),G}}return W.\u0275fac=function(G){return new(G||W)(s.Y36(w.aV),s.Y36(s.SBq),s.Y36(C.mF),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(h.t4),s.Y36(P.$s),s.Y36(P.tE),s.Y36(J),s.Y36(d.Is,8),s.Y36(ie,8),s.Y36(y.K0))},W.\u0275dir=s.lG2({type:W,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],exportAs:["matTooltip"],features:[s.qOj]}),W})(),k=(()=>{class W{constructor(G,ge){this._changeDetectorRef=G,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new D.x,this._animationsDisabled="NoopAnimations"===ge}show(G){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},G)}hide(G){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},G)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:G}){(!G||!this._triggerElement.contains(G))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:G}){(G===this._showAnimation||G===this._hideAnimation)&&this._finalizeAnimation(G===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(G){G?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(G){const ge=this._tooltip.nativeElement,nt=this._showAnimation,Ue=this._hideAnimation;if(ge.classList.remove(G?Ue:nt),ge.classList.add(G?nt:Ue),this._isVisible=G,G&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const at=getComputedStyle(ge);("0s"===at.getPropertyValue("animation-duration")||"none"===at.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}G&&this._onShow(),this._animationsDisabled&&(ge.classList.add("_mat-animation-noopable"),this._finalizeAnimation(G))}}return W.\u0275fac=function(G){return new(G||W)(s.Y36(s.sBO),s.Y36(s.QbO,8))},W.\u0275dir=s.lG2({type:W}),W})(),x=(()=>{class W extends k{constructor(G,ge,nt){super(G,nt),this._elementRef=ge,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const G=this._elementRef.nativeElement.getBoundingClientRect();return G.height>24&&G.width>=200}}return W.\u0275fac=function(G){return new(G||W)(s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(s.QbO,8))},W.\u0275cmp=s.Xpm({type:W,selectors:[["mat-tooltip-component"]],viewQuery:function(G,ge){if(1&G&&s.Gf(Y,7),2&G){let nt;s.iGM(nt=s.CRH())&&(ge._tooltip=nt.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(G,ge){1&G&&s.NdJ("mouseleave",function(Ue){return ge._handleMouseLeave(Ue)}),2&G&&s.Udp("zoom",ge.isVisible()?1:null)},features:[s.qOj],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(G,ge){1&G&&(s.TgZ(0,"div",0,1),s.NdJ("animationend",function(Ue){return ge._handleAnimationEnd(Ue)}),s.TgZ(2,"div",2),s._uU(3),s.qZA()()),2&G&&(s.ekj("mdc-tooltip--multiline",ge._isMultiline),s.Q6J("ngClass",ge.tooltipClass),s.xp6(3),s.Oqu(ge.message))},dependencies:[y.mk],styles:['.mdc-tooltip__surface{word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color, #fff)}.mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color, #000)}.mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font, inherit);font-size:var(--mdc-plain-tooltip-supporting-text-size, inherit);font-weight:var(--mdc-plain-tooltip-supporting-text-weight, inherit);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, inherit)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0}),W})(),g=(()=>{class W{}return W.\u0275fac=function(G){return new(G||W)},W.\u0275mod=s.oAB({type:W}),W.\u0275inj=s.cJS({providers:[me],imports:[P.rt,y.ez,w.U8,V.BQ,V.BQ,C.ZD]}),W})()},5423:(We,q,m)=>{"use strict";m.d(q,{Ar:()=>H,GZ:()=>L,WX:()=>me,dp:()=>Q,eu:()=>Y,fQ:()=>C,gi:()=>V,uo:()=>w});var t=m(7851),e=m(4650),_=m(3238),T=m(1281),s=m(5017),y=m(1135),h=m(6451),P=m(4004);const d=(0,_.sb)((0,_.Id)(t.Hs));let w=(()=>{class re extends d{constructor(se,ce,Ce){super(se,ce),this.tabIndex=Number(Ce)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return re.\u0275fac=function(se){return new(se||re)(e.Y36(e.SBq),e.Y36(t._0),e.$8M("tabindex"))},re.\u0275dir=e.lG2({type:re,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[e._Bn([{provide:t.Hs,useExisting:re}]),e.qOj]}),re})(),C=(()=>{class re extends t.rO{}return re.\u0275fac=function(){let ie;return function(ce){return(ie||(ie=e.n5z(re)))(ce||re)}}(),re.\u0275dir=e.lG2({type:re,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[e._Bn([{provide:t.rO,useExisting:re}]),e.qOj]}),re})(),L=(()=>{class re extends t.Xx{get disabled(){return this._disabled}set disabled(se){this._disabled=(0,T.Ig)(se)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(se){this._tabIndex=se??0}constructor(se,ce,Ce,M){super(se,ce,Ce),this._disabled=!1,this.tabIndex=Number(M)||0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return re.\u0275fac=function(se){return new(se||re)(e.Y36(e.SBq),e.Y36(t._0),e.Y36(e.ZZ4),e.$8M("tabindex"))},re.\u0275dir=e.lG2({type:re,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[e._Bn([{provide:t.Xx,useExisting:re},{provide:t.Hs,useExisting:re},{provide:t.HI,useExisting:re}]),e.qOj]}),re})(),H=(()=>{class re{constructor(se,ce){this.viewContainer=se,this._node=ce}}return re.\u0275fac=function(se){return new(se||re)(e.Y36(e.s_b),e.Y36(t.HI,8))},re.\u0275dir=e.lG2({type:re,selectors:[["","matTreeNodeOutlet",""]],features:[e._Bn([{provide:t.cu,useExisting:re}])]}),re})(),V=(()=>{class re extends t._0{}return re.\u0275fac=function(){let ie;return function(ce){return(ie||(ie=e.n5z(re)))(ce||re)}}(),re.\u0275cmp=e.Xpm({type:re,selectors:[["mat-tree"]],viewQuery:function(se,ce){if(1&se&&e.Gf(H,7),2&se){let Ce;e.iGM(Ce=e.CRH())&&(ce._nodeOutlet=Ce.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[e._Bn([{provide:t._0,useExisting:re}]),e.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(se,ce){1&se&&e.GkF(0,0)},dependencies:[H],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}"],encapsulation:2}),re})(),Y=(()=>{class re extends t.Ud{}return re.\u0275fac=function(){let ie;return function(ce){return(ie||(ie=e.n5z(re)))(ce||re)}}(),re.\u0275dir=e.lG2({type:re,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[e._Bn([{provide:t.Ud,useExisting:re}]),e.qOj]}),re})(),Q=(()=>{class re{}return re.\u0275fac=function(se){return new(se||re)},re.\u0275mod=e.oAB({type:re}),re.\u0275inj=e.cJS({imports:[t.nZ,_.BQ,_.BQ]}),re})();class me extends s.o2{constructor(){super(...arguments),this._data=new y.X([])}get data(){return this._data.value}set data(ie){this._data.next(ie)}connect(ie){return(0,h.T)(ie.viewChange,this._data).pipe((0,P.U)(()=>this.data))}disconnect(){}}},1481:(We,q,m)=>{"use strict";m.d(q,{Dx:()=>Ut,H7:()=>ii,b2:()=>Pe,q6:()=>Me,se:()=>l,t6:()=>Vt});var t=m(6895),e=m(4650);class _ extends t.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class T extends _{static makeCurrent(){(0,t.HT)(new T)}onAndCancel(gt,$e,_t){return gt.addEventListener($e,_t,!1),()=>{gt.removeEventListener($e,_t,!1)}}dispatchEvent(gt,$e){gt.dispatchEvent($e)}remove(gt){gt.parentNode&>.parentNode.removeChild(gt)}createElement(gt,$e){return($e=$e||this.getDefaultDocument()).createElement(gt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(gt){return gt.nodeType===Node.ELEMENT_NODE}isShadowRoot(gt){return gt instanceof DocumentFragment}getGlobalEventTarget(gt,$e){return"window"===$e?window:"document"===$e?gt:"body"===$e?gt.body:null}getBaseHref(gt){const $e=function y(){return s=s||document.querySelector("base"),s?s.getAttribute("href"):null}();return null==$e?null:function P(St){h=h||document.createElement("a"),h.setAttribute("href",St);const gt=h.pathname;return"/"===gt.charAt(0)?gt:`/${gt}`}($e)}resetBaseElement(){s=null}getUserAgent(){return window.navigator.userAgent}getCookie(gt){return(0,t.Mx)(document.cookie,gt)}}let h,s=null;const d=new e.OlP("TRANSITION_ID"),C=[{provide:e.ip1,useFactory:function w(St,gt,$e){return()=>{$e.get(e.CZH).donePromise.then(()=>{const _t=(0,t.q)(),vt=gt.querySelectorAll(`style[ng-transition="${St}"]`);for(let He=0;He{class St{build(){return new XMLHttpRequest}}return St.\u0275fac=function($e){return new($e||St)},St.\u0275prov=e.Yz7({token:St,factory:St.\u0275fac}),St})();const H=new e.OlP("EventManagerPlugins");let V=(()=>{class St{constructor($e,_t){this._zone=_t,this._eventNameToPlugin=new Map,$e.forEach(vt=>{vt.manager=this}),this._plugins=$e.slice().reverse()}addEventListener($e,_t,vt){return this._findPluginFor(_t).addEventListener($e,_t,vt)}addGlobalEventListener($e,_t,vt){return this._findPluginFor(_t).addGlobalEventListener($e,_t,vt)}getZone(){return this._zone}_findPluginFor($e){const _t=this._eventNameToPlugin.get($e);if(_t)return _t;const vt=this._plugins;for(let He=0;He{class St{constructor(){this.usageCount=new Map}addStyles($e){for(const _t of $e)1===this.changeUsageCount(_t,1)&&this.onStyleAdded(_t)}removeStyles($e){for(const _t of $e)0===this.changeUsageCount(_t,-1)&&this.onStyleRemoved(_t)}onStyleRemoved($e){}onStyleAdded($e){}getAllStyles(){return this.usageCount.keys()}changeUsageCount($e,_t){const vt=this.usageCount;let He=vt.get($e)??0;return He+=_t,He>0?vt.set($e,He):vt.delete($e),He}ngOnDestroy(){for(const $e of this.getAllStyles())this.onStyleRemoved($e);this.usageCount.clear()}}return St.\u0275fac=function($e){return new($e||St)},St.\u0275prov=e.Yz7({token:St,factory:St.\u0275fac}),St})(),Q=(()=>{class St extends j{constructor($e){super(),this.doc=$e,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded($e){for(const _t of this.hostNodes)this.addStyleToHost(_t,$e)}onStyleRemoved($e){const _t=this.styleRef;_t.get($e)?.forEach(He=>He.remove()),_t.delete($e)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost($e){this.hostNodes.add($e);for(const _t of this.getAllStyles())this.addStyleToHost($e,_t)}removeHost($e){this.hostNodes.delete($e)}addStyleToHost($e,_t){const vt=this.doc.createElement("style");vt.textContent=_t,$e.appendChild(vt);const He=this.styleRef.get(_t);He?He.push(vt):this.styleRef.set(_t,[vt])}resetHostNodes(){const $e=this.hostNodes;$e.clear(),$e.add(this.doc.head)}}return St.\u0275fac=function($e){return new($e||St)(e.LFG(t.K0))},St.\u0275prov=e.Yz7({token:St,factory:St.\u0275fac}),St})();const J={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},ee=/%COMP%/g,Ce=new e.OlP("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function a(St,gt){return gt.flat(100).map($e=>$e.replace(ee,St))}function f(St){return gt=>{if("__ngUnwrap__"===gt)return St;!1===St(gt)&&(gt.preventDefault(),gt.returnValue=!1)}}let l=(()=>{class St{constructor($e,_t,vt,He){this.eventManager=$e,this.sharedStylesHost=_t,this.appId=vt,this.removeStylesOnCompDestory=He,this.rendererByCompId=new Map,this.defaultRenderer=new v($e)}createRenderer($e,_t){if(!$e||!_t)return this.defaultRenderer;const vt=this.getOrCreateRenderer($e,_t);return vt instanceof W?vt.applyToHost($e):vt instanceof g&&vt.applyStyles(),vt}getOrCreateRenderer($e,_t){const vt=this.rendererByCompId;let He=vt.get(_t.id);if(!He){const Et=this.eventManager,At=this.sharedStylesHost,Qt=this.removeStylesOnCompDestory;switch(_t.encapsulation){case e.ifc.Emulated:He=new W(Et,At,_t,this.appId,Qt);break;case e.ifc.ShadowDom:return new n(Et,At,$e,_t);default:He=new g(Et,At,_t,Qt)}He.onDestroy=()=>vt.delete(_t.id),vt.set(_t.id,He)}return He}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return St.\u0275fac=function($e){return new($e||St)(e.LFG(V),e.LFG(Q),e.LFG(e.AFp),e.LFG(Ce))},St.\u0275prov=e.Yz7({token:St,factory:St.\u0275fac}),St})();class v{constructor(gt){this.eventManager=gt,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(gt,$e){return $e?document.createElementNS(J[$e]||$e,gt):document.createElement(gt)}createComment(gt){return document.createComment(gt)}createText(gt){return document.createTextNode(gt)}appendChild(gt,$e){(x(gt)?gt.content:gt).appendChild($e)}insertBefore(gt,$e,_t){gt&&(x(gt)?gt.content:gt).insertBefore($e,_t)}removeChild(gt,$e){gt&>.removeChild($e)}selectRootElement(gt,$e){let _t="string"==typeof gt?document.querySelector(gt):gt;if(!_t)throw new Error(`The selector "${gt}" did not match any elements`);return $e||(_t.textContent=""),_t}parentNode(gt){return gt.parentNode}nextSibling(gt){return gt.nextSibling}setAttribute(gt,$e,_t,vt){if(vt){$e=vt+":"+$e;const He=J[vt];He?gt.setAttributeNS(He,$e,_t):gt.setAttribute($e,_t)}else gt.setAttribute($e,_t)}removeAttribute(gt,$e,_t){if(_t){const vt=J[_t];vt?gt.removeAttributeNS(vt,$e):gt.removeAttribute(`${_t}:${$e}`)}else gt.removeAttribute($e)}addClass(gt,$e){gt.classList.add($e)}removeClass(gt,$e){gt.classList.remove($e)}setStyle(gt,$e,_t,vt){vt&(e.JOm.DashCase|e.JOm.Important)?gt.style.setProperty($e,_t,vt&e.JOm.Important?"important":""):gt.style[$e]=_t}removeStyle(gt,$e,_t){_t&e.JOm.DashCase?gt.style.removeProperty($e):gt.style[$e]=""}setProperty(gt,$e,_t){gt[$e]=_t}setValue(gt,$e){gt.nodeValue=$e}listen(gt,$e,_t){return"string"==typeof gt?this.eventManager.addGlobalEventListener(gt,$e,f(_t)):this.eventManager.addEventListener(gt,$e,f(_t))}}function x(St){return"TEMPLATE"===St.tagName&&void 0!==St.content}class n extends v{constructor(gt,$e,_t,vt){super(gt),this.sharedStylesHost=$e,this.hostEl=_t,this.shadowRoot=_t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const He=a(vt.id,vt.styles);for(const Et of He){const At=document.createElement("style");At.textContent=Et,this.shadowRoot.appendChild(At)}}nodeOrShadowRoot(gt){return gt===this.hostEl?this.shadowRoot:gt}appendChild(gt,$e){return super.appendChild(this.nodeOrShadowRoot(gt),$e)}insertBefore(gt,$e,_t){return super.insertBefore(this.nodeOrShadowRoot(gt),$e,_t)}removeChild(gt,$e){return super.removeChild(this.nodeOrShadowRoot(gt),$e)}parentNode(gt){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(gt)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class g extends v{constructor(gt,$e,_t,vt,He=_t.id){super(gt),this.sharedStylesHost=$e,this.removeStylesOnCompDestory=vt,this.rendererUsageCount=0,this.styles=a(He,_t.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class W extends g{constructor(gt,$e,_t,vt,He){const Et=vt+"-"+_t.id;super(gt,$e,_t,He,Et),this.contentAttr=function M(St){return"_ngcontent-%COMP%".replace(ee,St)}(Et),this.hostAttr=function i(St){return"_nghost-%COMP%".replace(ee,St)}(Et)}applyToHost(gt){this.applyStyles(),this.setAttribute(gt,this.hostAttr,"")}createElement(gt,$e){const _t=super.createElement(gt,$e);return super.setAttribute(_t,this.contentAttr,""),_t}}let O=(()=>{class St extends Y{constructor($e){super($e)}supports($e){return!0}addEventListener($e,_t,vt){return $e.addEventListener(_t,vt,!1),()=>this.removeEventListener($e,_t,vt)}removeEventListener($e,_t,vt){return $e.removeEventListener(_t,vt)}}return St.\u0275fac=function($e){return new($e||St)(e.LFG(t.K0))},St.\u0275prov=e.Yz7({token:St,factory:St.\u0275fac}),St})();const G=["alt","control","meta","shift"],ge={"\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"},nt={alt:St=>St.altKey,control:St=>St.ctrlKey,meta:St=>St.metaKey,shift:St=>St.shiftKey};let Ue=(()=>{class St extends Y{constructor($e){super($e)}supports($e){return null!=St.parseEventName($e)}addEventListener($e,_t,vt){const He=St.parseEventName(_t),Et=St.eventCallback(He.fullKey,vt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,t.q)().onAndCancel($e,He.domEventName,Et))}static parseEventName($e){const _t=$e.toLowerCase().split("."),vt=_t.shift();if(0===_t.length||"keydown"!==vt&&"keyup"!==vt)return null;const He=St._normalizeKey(_t.pop());let Et="",At=_t.indexOf("code");if(At>-1&&(_t.splice(At,1),Et="code."),G.forEach(zi=>{const Ni=_t.indexOf(zi);Ni>-1&&(_t.splice(Ni,1),Et+=zi+".")}),Et+=He,0!=_t.length||0===He.length)return null;const Qt={};return Qt.domEventName=vt,Qt.fullKey=Et,Qt}static matchEventFullKeyCode($e,_t){let vt=ge[$e.key]||$e.key,He="";return _t.indexOf("code.")>-1&&(vt=$e.code,He="code."),!(null==vt||!vt)&&(vt=vt.toLowerCase()," "===vt?vt="space":"."===vt&&(vt="dot"),G.forEach(Et=>{Et!==vt&&(0,nt[Et])($e)&&(He+=Et+".")}),He+=vt,He===_t)}static eventCallback($e,_t,vt){return He=>{St.matchEventFullKeyCode(He,$e)&&vt.runGuarded(()=>_t(He))}}static _normalizeKey($e){return"esc"===$e?"escape":$e}}return St.\u0275fac=function($e){return new($e||St)(e.LFG(t.K0))},St.\u0275prov=e.Yz7({token:St,factory:St.\u0275fac}),St})();const Me=(0,e.eFA)(e._c5,"browser",[{provide:e.Lbi,useValue:t.bD},{provide:e.g9A,useValue:function oe(){T.makeCurrent()},multi:!0},{provide:t.K0,useFactory:function De(){return(0,e.RDi)(document),document},deps:[]}]),pe=new e.OlP(""),Ve=[{provide:e.rWj,useClass:class L{addToWindow(gt){e.dqk.getAngularTestability=(_t,vt=!0)=>{const He=gt.findTestabilityInTree(_t,vt);if(null==He)throw new Error("Could not find testability for element.");return He},e.dqk.getAllAngularTestabilities=()=>gt.getAllTestabilities(),e.dqk.getAllAngularRootElements=()=>gt.getAllRootElements(),e.dqk.frameworkStabilizers||(e.dqk.frameworkStabilizers=[]),e.dqk.frameworkStabilizers.push(_t=>{const vt=e.dqk.getAllAngularTestabilities();let He=vt.length,Et=!1;const At=function(Qt){Et=Et||Qt,He--,0==He&&_t(Et)};vt.forEach(function(Qt){Qt.whenStable(At)})})}findTestabilityInTree(gt,$e,_t){return null==$e?null:gt.getTestability($e)??(_t?(0,t.q)().isShadowRoot($e)?this.findTestabilityInTree(gt,$e.host,!0):this.findTestabilityInTree(gt,$e.parentElement,!0):null)}},deps:[]},{provide:e.lri,useClass:e.dDg,deps:[e.R0b,e.eoX,e.rWj]},{provide:e.dDg,useClass:e.dDg,deps:[e.R0b,e.eoX,e.rWj]}],Qe=[{provide:e.zSh,useValue:"root"},{provide:e.qLn,useFactory:function Fe(){return new e.qLn},deps:[]},{provide:H,useClass:O,multi:!0,deps:[t.K0,e.R0b,e.Lbi]},{provide:H,useClass:Ue,multi:!0,deps:[t.K0]},{provide:l,useClass:l,deps:[V,Q,e.AFp,Ce]},{provide:e.FYo,useExisting:l},{provide:j,useExisting:Q},{provide:Q,useClass:Q,deps:[t.K0]},{provide:V,useClass:V,deps:[H,e.R0b]},{provide:t.JF,useClass:D,deps:[]},[]];let Pe=(()=>{class St{constructor($e){}static withServerTransition($e){return{ngModule:St,providers:[{provide:e.AFp,useValue:$e.appId},{provide:d,useExisting:e.AFp},C]}}}return St.\u0275fac=function($e){return new($e||St)(e.LFG(pe,12))},St.\u0275mod=e.oAB({type:St}),St.\u0275inj=e.cJS({providers:[...Qe,...Ve],imports:[t.ez,e.hGG]}),St})(),Ut=(()=>{class St{constructor($e){this._doc=$e}getTitle(){return this._doc.title}setTitle($e){this._doc.title=$e||""}}return St.\u0275fac=function($e){return new($e||St)(e.LFG(t.K0))},St.\u0275prov=e.Yz7({token:St,factory:function($e){let _t=null;return _t=$e?new $e:function lt(){return new Ut((0,e.LFG)(t.K0))}(),_t},providedIn:"root"}),St})();typeof window<"u"&&window;const $={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},ue=new e.OlP("HammerGestureConfig"),Le=new e.OlP("HammerLoader");let Je=(()=>{class St{constructor(){this.events=[],this.overrides={}}buildHammer($e){const _t=new Hammer($e,this.options);_t.get("pinch").set({enable:!0}),_t.get("rotate").set({enable:!0});for(const vt in this.overrides)_t.get(vt).set(this.overrides[vt]);return _t}}return St.\u0275fac=function($e){return new($e||St)},St.\u0275prov=e.Yz7({token:St,factory:St.\u0275fac}),St})(),$t=(()=>{class St extends Y{constructor($e,_t,vt,He){super($e),this._config=_t,this.console=vt,this.loader=He,this._loaderPromise=null}supports($e){return!(!$.hasOwnProperty($e.toLowerCase())&&!this.isCustomEvent($e)||!window.Hammer&&!this.loader)}addEventListener($e,_t,vt){const He=this.manager.getZone();if(_t=_t.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||He.runOutsideAngular(()=>this.loader());let Et=!1,At=()=>{Et=!0};return He.runOutsideAngular(()=>this._loaderPromise.then(()=>{window.Hammer?Et||(At=this.addEventListener($e,_t,vt)):At=()=>{}}).catch(()=>{At=()=>{}})),()=>{At()}}return He.runOutsideAngular(()=>{const Et=this._config.buildHammer($e),At=function(Qt){He.runGuarded(function(){vt(Qt)})};return Et.on(_t,At),()=>{Et.off(_t,At),"function"==typeof Et.destroy&&Et.destroy()}})}isCustomEvent($e){return this._config.events.indexOf($e)>-1}}return St.\u0275fac=function($e){return new($e||St)(e.LFG(t.K0),e.LFG(ue),e.LFG(e.c2e),e.LFG(Le,8))},St.\u0275prov=e.Yz7({token:St,factory:St.\u0275fac}),St})(),Vt=(()=>{class St{}return St.\u0275fac=function($e){return new($e||St)},St.\u0275mod=e.oAB({type:St}),St.\u0275inj=e.cJS({providers:[{provide:H,useClass:$t,multi:!0,deps:[t.K0,ue,e.c2e,[new e.FiY,Le]]},{provide:ue,useClass:Je,deps:[]}]}),St})(),ii=(()=>{class St{}return St.\u0275fac=function($e){return new($e||St)},St.\u0275prov=e.Yz7({token:St,factory:function($e){let _t=null;return _t=$e?new($e||St):e.LFG(ot),_t},providedIn:"root"}),St})(),ot=(()=>{class St extends ii{constructor($e){super(),this._doc=$e}sanitize($e,_t){if(null==_t)return null;switch($e){case e.q3G.NONE:return _t;case e.q3G.HTML:return(0,e.qzn)(_t,"HTML")?(0,e.z3N)(_t):(0,e.EiD)(this._doc,String(_t)).toString();case e.q3G.STYLE:return(0,e.qzn)(_t,"Style")?(0,e.z3N)(_t):_t;case e.q3G.SCRIPT:if((0,e.qzn)(_t,"Script"))return(0,e.z3N)(_t);throw new Error("unsafe value used in a script context");case e.q3G.URL:return(0,e.qzn)(_t,"URL")?(0,e.z3N)(_t):(0,e.mCW)(String(_t));case e.q3G.RESOURCE_URL:if((0,e.qzn)(_t,"ResourceURL"))return(0,e.z3N)(_t);throw new Error(`unsafe value used in a resource URL context (see ${e.JZr})`);default:throw new Error(`Unexpected SecurityContext ${$e} (see ${e.JZr})`)}}bypassSecurityTrustHtml($e){return(0,e.JVY)($e)}bypassSecurityTrustStyle($e){return(0,e.L6k)($e)}bypassSecurityTrustScript($e){return(0,e.eBb)($e)}bypassSecurityTrustUrl($e){return(0,e.LAX)($e)}bypassSecurityTrustResourceUrl($e){return(0,e.pB0)($e)}}return St.\u0275fac=function($e){return new($e||St)(e.LFG(t.K0))},St.\u0275prov=e.Yz7({token:St,factory:function($e){let _t=null;return _t=$e?new $e:function pt(St){return new ot(St.get(t.K0))}(e.LFG(e.zs3)),_t},providedIn:"root"}),St})()},9116:(We,q,m)=>{"use strict";m.d(q,{gz:()=>jn,gk:()=>li,m2:()=>vi,Q3:()=>gi,OD:()=>Ot,Av:()=>Ea,F0:()=>Ar,rH:()=>Os,Od:()=>Fc,Bz:()=>c2,lC:()=>sa});var t=m(4650),e=m(457),_=m(9646),T=m(1135),s=m(6805),y=m(9841),h=m(7272),P=m(9770),d=m(9635),w=m(2843),C=m(9751),L=m(515),D=m(4033),H=m(7579),V=m(6895),Y=m(4004),j=m(3900),Q=m(5698),J=m(8675),ee=m(9300),me=m(5577),re=m(590),ie=m(4351),se=m(8505),ce=m(262),Ce=m(5026),M=m(4482),i=m(5403);function a(ve){return ve<=0?()=>L.E:(0,M.e)((we,ae)=>{let Be=[];we.subscribe((0,i.x)(ae,ut=>{Be.push(ut),ve{for(const ut of Be)ae.next(ut);ae.complete()},void 0,()=>{Be=null}))})}var f=m(8068),l=m(6590),v=m(4671);function I(ve,we){const ae=arguments.length>=2;return Be=>Be.pipe(ve?(0,ee.h)((ut,Lt)=>ve(ut,Lt,Be)):v.y,a(1),ae?(0,l.d)(we):(0,f.T)(()=>new s.K))}var k=m(2529),x=m(9718),n=m(8746),g=m(8343),W=m(8189),O=m(1481);const G="primary",ge=Symbol("RouteTitle");class nt{constructor(we){this.params=we||{}}has(we){return Object.prototype.hasOwnProperty.call(this.params,we)}get(we){if(this.has(we)){const ae=this.params[we];return Array.isArray(ae)?ae[0]:ae}return null}getAll(we){if(this.has(we)){const ae=this.params[we];return Array.isArray(ae)?ae:[ae]}return[]}get keys(){return Object.keys(this.params)}}function Ue(ve){return new nt(ve)}function at(ve,we,ae){const Be=ae.path.split("/");if(Be.length>ve.length||"full"===ae.pathMatch&&(we.hasChildren()||Be.lengthBe[Lt]===ut)}return ve===we}function Oe(ve){return Array.prototype.concat.apply([],ve)}function oe(ve){return ve.length>0?ve[ve.length-1]:null}function De(ve,we){for(const ae in ve)ve.hasOwnProperty(ae)&&we(ve[ae],ae)}function he(ve){return(0,t.CqO)(ve)?ve:(0,t.QGY)(ve)?(0,e.D)(Promise.resolve(ve)):(0,_.of)(ve)}const Me=!1,pe={exact:function de(ve,we,ae){if(!qe(ve.segments,we.segments)||!Ut(ve.segments,we.segments,ae)||ve.numberOfChildren!==we.numberOfChildren)return!1;for(const Be in we.children)if(!ve.children[Be]||!de(ve.children[Be],we.children[Be],ae))return!1;return!0},subset:Ke},Ve={exact:function Pe(ve,we){return xe(ve,we)},subset:function rt(ve,we){return Object.keys(we).length<=Object.keys(ve).length&&Object.keys(we).every(ae=>fe(ve[ae],we[ae]))},ignored:()=>!0};function Qe(ve,we,ae){return pe[ae.paths](ve.root,we.root,ae.matrixParams)&&Ve[ae.queryParams](ve.queryParams,we.queryParams)&&!("exact"===ae.fragment&&ve.fragment!==we.fragment)}function Ke(ve,we,ae){return lt(ve,we,we.segments,ae)}function lt(ve,we,ae,Be){if(ve.segments.length>ae.length){const ut=ve.segments.slice(0,ae.length);return!(!qe(ut,ae)||we.hasChildren()||!Ut(ut,ae,Be))}if(ve.segments.length===ae.length){if(!qe(ve.segments,ae)||!Ut(ve.segments,ae,Be))return!1;for(const ut in we.children)if(!ve.children[ut]||!Ke(ve.children[ut],we.children[ut],Be))return!1;return!0}{const ut=ae.slice(0,ve.segments.length),Lt=ae.slice(ve.segments.length);return!!(qe(ve.segments,ut)&&Ut(ve.segments,ut,Be)&&ve.children[G])&<(ve.children[G],we,Lt,Be)}}function Ut(ve,we,ae){return we.every((Be,ut)=>Ve[ae](ve[ut].parameters,Be.parameters))}class ht{constructor(we=new Ge([],{}),ae={},Be=null){this.root=we,this.queryParams=ae,this.fragment=Be}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ue(this.queryParams)),this._queryParamMap}toString(){return Tt.serialize(this)}}class Ge{constructor(we,ae){this.segments=we,this.children=ae,this.parent=null,De(ae,(Be,ut)=>Be.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return it(this)}}class yt{constructor(we,ae){this.path=we,this.parameters=ae}get parameterMap(){return this._parameterMap||(this._parameterMap=Ue(this.parameters)),this._parameterMap}toString(){return ue(this)}}function qe(ve,we){return ve.length===we.length&&ve.every((ae,Be)=>ae.path===we[Be].path)}let X=(()=>{class ve{}return ve.\u0275fac=function(ae){return new(ae||ve)},ve.\u0275prov=t.Yz7({token:ve,factory:function(){return new mt},providedIn:"root"}),ve})();class mt{parse(we){const ae=new St(we);return new ht(ae.parseRootSegment(),ae.parseQueryParams(),ae.parseFragment())}serialize(we){const ae=`/${je(we.root,!0)}`,Be=function Je(ve){const we=Object.keys(ve).map(ae=>{const Be=ve[ae];return Array.isArray(Be)?Be.map(ut=>`${xt(ae)}=${xt(ut)}`).join("&"):`${xt(ae)}=${xt(Be)}`}).filter(ae=>!!ae);return we.length?`?${we.join("&")}`:""}(we.queryParams);return`${ae}${Be}${"string"==typeof we.fragment?`#${function Nt(ve){return encodeURI(ve)}(we.fragment)}`:""}`}}const Tt=new mt;function it(ve){return ve.segments.map(we=>ue(we)).join("/")}function je(ve,we){if(!ve.hasChildren())return it(ve);if(we){const ae=ve.children[G]?je(ve.children[G],!1):"",Be=[];return De(ve.children,(ut,Lt)=>{Lt!==G&&Be.push(`${Lt}:${je(ut,!1)}`)}),Be.length>0?`${ae}(${Be.join("//")})`:ae}{const ae=function Ie(ve,we){let ae=[];return De(ve.children,(Be,ut)=>{ut===G&&(ae=ae.concat(we(Be,ut)))}),De(ve.children,(Be,ut)=>{ut!==G&&(ae=ae.concat(we(Be,ut)))}),ae}(ve,(Be,ut)=>ut===G?[je(ve.children[G],!1)]:[`${ut}:${je(Be,!1)}`]);return 1===Object.keys(ve.children).length&&null!=ve.children[G]?`${it(ve)}/${ae[0]}`:`${it(ve)}/(${ae.join("//")})`}}function zt(ve){return encodeURIComponent(ve).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function xt(ve){return zt(ve).replace(/%3B/gi,";")}function Gt(ve){return zt(ve).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ke(ve){return decodeURIComponent(ve)}function $(ve){return ke(ve.replace(/\+/g,"%20"))}function ue(ve){return`${Gt(ve.path)}${function Le(ve){return Object.keys(ve).map(we=>`;${Gt(we)}=${Gt(ve[we])}`).join("")}(ve.parameters)}`}const $t=/^[^\/()?;=#]+/;function Vt(ve){const we=ve.match($t);return we?we[0]:""}const ii=/^[^=?&#]+/,ot=/^[^&#]+/;class St{constructor(we){this.url=we,this.remaining=we}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ge([],{}):new Ge([],this.parseChildren())}parseQueryParams(){const we={};if(this.consumeOptional("?"))do{this.parseQueryParam(we)}while(this.consumeOptional("&"));return we}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const we=[];for(this.peekStartsWith("(")||we.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),we.push(this.parseSegment());let ae={};this.peekStartsWith("/(")&&(this.capture("/"),ae=this.parseParens(!0));let Be={};return this.peekStartsWith("(")&&(Be=this.parseParens(!1)),(we.length>0||Object.keys(ae).length>0)&&(Be[G]=new Ge(we,ae)),Be}parseSegment(){const we=Vt(this.remaining);if(""===we&&this.peekStartsWith(";"))throw new t.vHH(4009,Me);return this.capture(we),new yt(ke(we),this.parseMatrixParams())}parseMatrixParams(){const we={};for(;this.consumeOptional(";");)this.parseParam(we);return we}parseParam(we){const ae=Vt(this.remaining);if(!ae)return;this.capture(ae);let Be="";if(this.consumeOptional("=")){const ut=Vt(this.remaining);ut&&(Be=ut,this.capture(Be))}we[ke(ae)]=ke(Be)}parseQueryParam(we){const ae=function pt(ve){const we=ve.match(ii);return we?we[0]:""}(this.remaining);if(!ae)return;this.capture(ae);let Be="";if(this.consumeOptional("=")){const Ht=function ft(ve){const we=ve.match(ot);return we?we[0]:""}(this.remaining);Ht&&(Be=Ht,this.capture(Be))}const ut=$(ae),Lt=$(Be);if(we.hasOwnProperty(ut)){let Ht=we[ut];Array.isArray(Ht)||(Ht=[Ht],we[ut]=Ht),Ht.push(Lt)}else we[ut]=Lt}parseParens(we){const ae={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Be=Vt(this.remaining),ut=this.remaining[Be.length];if("/"!==ut&&")"!==ut&&";"!==ut)throw new t.vHH(4010,Me);let Lt;Be.indexOf(":")>-1?(Lt=Be.slice(0,Be.indexOf(":")),this.capture(Lt),this.capture(":")):we&&(Lt=G);const Ht=this.parseChildren();ae[Lt]=1===Object.keys(Ht).length?Ht[G]:new Ge([],Ht),this.consumeOptional("//")}return ae}peekStartsWith(we){return this.remaining.startsWith(we)}consumeOptional(we){return!!this.peekStartsWith(we)&&(this.remaining=this.remaining.substring(we.length),!0)}capture(we){if(!this.consumeOptional(we))throw new t.vHH(4011,Me)}}function gt(ve){return ve.segments.length>0?new Ge([],{[G]:ve}):ve}function $e(ve){const we={};for(const Be of Object.keys(ve.children)){const Lt=$e(ve.children[Be]);(Lt.segments.length>0||Lt.hasChildren())&&(we[Be]=Lt)}return function _t(ve){if(1===ve.numberOfChildren&&ve.children[G]){const we=ve.children[G];return new Ge(ve.segments.concat(we.segments),we.children)}return ve}(new Ge(ve.segments,we))}function vt(ve){return ve instanceof ht}const He=!1;function zi(ve,we,ae,Be,ut){if(0===ae.length)return Gi(we.root,we.root,we.root,Be,ut);const Lt=function Se(ve){if("string"==typeof ve[0]&&1===ve.length&&"/"===ve[0])return new It(!0,0,ve);let we=0,ae=!1;const Be=ve.reduce((ut,Lt,Ht)=>{if("object"==typeof Lt&&null!=Lt){if(Lt.outlets){const ui={};return De(Lt.outlets,(Di,rn)=>{ui[rn]="string"==typeof Di?Di.split("/"):Di}),[...ut,{outlets:ui}]}if(Lt.segmentPath)return[...ut,Lt.segmentPath]}return"string"!=typeof Lt?[...ut,Lt]:0===Ht?(Lt.split("/").forEach((ui,Di)=>{0==Di&&"."===ui||(0==Di&&""===ui?ae=!0:".."===ui?we++:""!=ui&&ut.push(ui))}),ut):[...ut,Lt]},[]);return new It(ae,we,Be)}(ae);return Lt.toRoot()?Gi(we.root,we.root,new Ge([],{}),Be,ut):function Ht(Di){const rn=function si(ve,we,ae,Be){if(ve.isAbsolute)return new wt(we.root,!0,0);if(-1===Be)return new wt(ae,ae===we.root,0);return function Ai(ve,we,ae){let Be=ve,ut=we,Lt=ae;for(;Lt>ut;){if(Lt-=ut,Be=Be.parent,!Be)throw new t.vHH(4005,He&&"Invalid number of '../'");ut=Be.segments.length}return new wt(Be,!1,ut-Lt)}(ae,Be+(Ni(ve.commands[0])?0:1),ve.numberOfDoubleDots)}(Lt,we,ve.snapshot?._urlSegment,Di),an=rn.processChildren?en(rn.segmentGroup,rn.index,Lt.commands):Qi(rn.segmentGroup,rn.index,Lt.commands);return Gi(we.root,rn.segmentGroup,an,Be,ut)}(ve.snapshot?._lastPathIndex)}function Ni(ve){return"object"==typeof ve&&null!=ve&&!ve.outlets&&!ve.segmentPath}function Mi(ve){return"object"==typeof ve&&null!=ve&&ve.outlets}function Gi(ve,we,ae,Be,ut){let Ht,Lt={};Be&&De(Be,(Di,rn)=>{Lt[rn]=Array.isArray(Di)?Di.map(an=>`${an}`):`${Di}`}),Ht=ve===we?ae:Xe(ve,we,ae);const ui=gt($e(Ht));return new ht(ui,Lt,ut)}function Xe(ve,we,ae){const Be={};return De(ve.children,(ut,Lt)=>{Be[Lt]=ut===we?ae:Xe(ut,we,ae)}),new Ge(ve.segments,Be)}class It{constructor(we,ae,Be){if(this.isAbsolute=we,this.numberOfDoubleDots=ae,this.commands=Be,we&&Be.length>0&&Ni(Be[0]))throw new t.vHH(4003,He&&"Root segment cannot have matrix parameters");const ut=Be.find(Mi);if(ut&&ut!==oe(Be))throw new t.vHH(4004,He&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class wt{constructor(we,ae,Be){this.segmentGroup=we,this.processChildren=ae,this.index=Be}}function Qi(ve,we,ae){if(ve||(ve=new Ge([],{})),0===ve.segments.length&&ve.hasChildren())return en(ve,we,ae);const Be=function Yi(ve,we,ae){let Be=0,ut=we;const Lt={match:!1,pathIndex:0,commandIndex:0};for(;ut=ae.length)return Lt;const Ht=ve.segments[ut],ui=ae[Be];if(Mi(ui))break;const Di=`${ui}`,rn=Be0&&void 0===Di)break;if(Di&&rn&&"object"==typeof rn&&void 0===rn.outlets){if(!dt(Di,rn,Ht))return Lt;Be+=2}else{if(!dt(Di,{},Ht))return Lt;Be++}ut++}return{match:!0,pathIndex:ut,commandIndex:Be}}(ve,we,ae),ut=ae.slice(Be.commandIndex);if(Be.match&&Be.pathIndex{"string"==typeof Lt&&(Lt=[Lt]),null!==Lt&&(ut[Ht]=Qi(ve.children[Ht],we,Lt))}),De(ve.children,(Lt,Ht)=>{void 0===Be[Ht]&&(ut[Ht]=Lt)}),new Ge(ve.segments,ut)}}function Yt(ve,we,ae){const Be=ve.segments.slice(0,we);let ut=0;for(;ut{"string"==typeof ae&&(ae=[ae]),null!==ae&&(we[Be]=Yt(new Ge([],{}),0,ae))}),we}function _e(ve){const we={};return De(ve,(ae,Be)=>we[Be]=`${ae}`),we}function dt(ve,we,ae){return ve==ae.path&&xe(we,ae.parameters)}const Dt="imperative";class Bt{constructor(we,ae){this.id=we,this.url=ae}}class Ot extends Bt{constructor(we,ae,Be="imperative",ut=null){super(we,ae),this.type=0,this.navigationTrigger=Be,this.restoredState=ut}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class vi extends Bt{constructor(we,ae,Be){super(we,ae),this.urlAfterRedirects=Be,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class li extends Bt{constructor(we,ae,Be,ut){super(we,ae),this.reason=Be,this.code=ut,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class mi extends Bt{constructor(we,ae,Be,ut){super(we,ae),this.reason=Be,this.code=ut,this.type=16}}class gi extends Bt{constructor(we,ae,Be,ut){super(we,ae),this.error=Be,this.target=ut,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ui extends Bt{constructor(we,ae,Be,ut){super(we,ae),this.urlAfterRedirects=Be,this.state=ut,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Un extends Bt{constructor(we,ae,Be,ut){super(we,ae),this.urlAfterRedirects=Be,this.state=ut,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Dn extends Bt{constructor(we,ae,Be,ut,Lt){super(we,ae),this.urlAfterRedirects=Be,this.state=ut,this.shouldActivate=Lt,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class oa extends Bt{constructor(we,ae,Be,ut){super(we,ae),this.urlAfterRedirects=Be,this.state=ut,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ea extends Bt{constructor(we,ae,Be,ut){super(we,ae),this.urlAfterRedirects=Be,this.state=ut,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ta{constructor(we){this.route=we,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class er{constructor(we){this.route=we,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Jt{constructor(we){this.snapshot=we,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pi{constructor(we){this.snapshot=we,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Kt{constructor(we){this.snapshot=we,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ri{constructor(we){this.snapshot=we,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xi{constructor(we,ae,Be){this.routerEvent=we,this.position=ae,this.anchor=Be,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let Gn=(()=>{class ve{createUrlTree(ae,Be,ut,Lt,Ht,ui){return zi(ae||Be.root,ut,Lt,Ht,ui)}}return ve.\u0275fac=function(ae){return new(ae||ve)},ve.\u0275prov=t.Yz7({token:ve,factory:ve.\u0275fac}),ve})(),_a=(()=>{class ve{}return ve.\u0275fac=function(ae){return new(ae||ve)},ve.\u0275prov=t.Yz7({token:ve,factory:function(we){return Gn.\u0275fac(we)},providedIn:"root"}),ve})();class Tn{constructor(we){this._root=we}get root(){return this._root.value}parent(we){const ae=this.pathFromRoot(we);return ae.length>1?ae[ae.length-2]:null}children(we){const ae=Vn(we,this._root);return ae?ae.children.map(Be=>Be.value):[]}firstChild(we){const ae=Vn(we,this._root);return ae&&ae.children.length>0?ae.children[0].value:null}siblings(we){const ae=xo(we,this._root);return ae.length<2?[]:ae[ae.length-2].children.map(ut=>ut.value).filter(ut=>ut!==we)}pathFromRoot(we){return xo(we,this._root).map(ae=>ae.value)}}function Vn(ve,we){if(ve===we.value)return we;for(const ae of we.children){const Be=Vn(ve,ae);if(Be)return Be}return null}function xo(ve,we){if(ve===we.value)return[we];for(const ae of we.children){const Be=xo(ve,ae);if(Be.length)return Be.unshift(we),Be}return[]}class zn{constructor(we,ae){this.value=we,this.children=ae}toString(){return`TreeNode(${this.value})`}}function ia(ve){const we={};return ve&&ve.children.forEach(ae=>we[ae.value.outlet]=ae),we}class Co extends Tn{constructor(we,ae){super(we),this.snapshot=ae,Yr(this,we)}toString(){return this.snapshot.toString()}}function Pr(ve,we){const ae=function xr(ve,we){const Ht=new Rr([],{},{},"",{},G,we,null,ve.root,-1,{});return new Nr("",new zn(Ht,[]))}(ve,we),Be=new T.X([new yt("",{})]),ut=new T.X({}),Lt=new T.X({}),Ht=new T.X({}),ui=new T.X(""),Di=new jn(Be,ut,Ht,ui,Lt,G,we,ae.root);return Di.snapshot=ae.root,new Co(new zn(Di,[]),ae)}class jn{constructor(we,ae,Be,ut,Lt,Ht,ui,Di){this.url=we,this.params=ae,this.queryParams=Be,this.fragment=ut,this.data=Lt,this.outlet=Ht,this.component=ui,this.title=this.data?.pipe((0,Y.U)(rn=>rn[ge]))??(0,_.of)(void 0),this._futureSnapshot=Di}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,Y.U)(we=>Ue(we)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Y.U)(we=>Ue(we)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ta(ve,we="emptyOnly"){const ae=ve.pathFromRoot;let Be=0;if("always"!==we)for(Be=ae.length-1;Be>=1;){const ut=ae[Be],Lt=ae[Be-1];if(ut.routeConfig&&""===ut.routeConfig.path)Be--;else{if(Lt.component)break;Be--}}return function Do(ve){return ve.reduce((we,ae)=>({params:{...we.params,...ae.params},data:{...we.data,...ae.data},resolve:{...ae.data,...we.resolve,...ae.routeConfig?.data,...ae._resolvedData}}),{params:{},data:{},resolve:{}})}(ae.slice(Be))}class Rr{get title(){return this.data?.[ge]}constructor(we,ae,Be,ut,Lt,Ht,ui,Di,rn,an,fa){this.url=we,this.params=ae,this.queryParams=Be,this.fragment=ut,this.data=Lt,this.outlet=Ht,this.component=ui,this.routeConfig=Di,this._urlSegment=rn,this._lastPathIndex=an,this._resolve=fa}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=Ue(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ue(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Be=>Be.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Nr extends Tn{constructor(we,ae){super(ae),this.url=we,Yr(this,ae)}toString(){return Ia(this._root)}}function Yr(ve,we){we.value._routerState=ve,we.children.forEach(ae=>Yr(ve,ae))}function Ia(ve){const we=ve.children.length>0?` { ${ve.children.map(Ia).join(", ")} } `:"";return`${ve.value}${we}`}function wa(ve){if(ve.snapshot){const we=ve.snapshot,ae=ve._futureSnapshot;ve.snapshot=ae,xe(we.queryParams,ae.queryParams)||ve.queryParams.next(ae.queryParams),we.fragment!==ae.fragment&&ve.fragment.next(ae.fragment),xe(we.params,ae.params)||ve.params.next(ae.params),function ye(ve,we){if(ve.length!==we.length)return!1;for(let ae=0;aexe(ae.parameters,we[Be].parameters))}(ve.url,we.url);return ae&&!(!ve.parent!=!we.parent)&&(!ve.parent||Io(ve.parent,we.parent))}function jr(ve,we,ae){if(ae&&ve.shouldReuseRoute(we.value,ae.value.snapshot)){const Be=ae.value;Be._futureSnapshot=we.value;const ut=function pr(ve,we,ae){return we.children.map(Be=>{for(const ut of ae.children)if(ve.shouldReuseRoute(Be.value,ut.value.snapshot))return jr(ve,Be,ut);return jr(ve,Be)})}(ve,we,ae);return new zn(Be,ut)}{if(ve.shouldAttach(we.value)){const Lt=ve.retrieve(we.value);if(null!==Lt){const Ht=Lt.route;return Ht.value._futureSnapshot=we.value,Ht.children=we.children.map(ui=>jr(ve,ui)),Ht}}const Be=function or(ve){return new jn(new T.X(ve.url),new T.X(ve.params),new T.X(ve.queryParams),new T.X(ve.fragment),new T.X(ve.data),ve.outlet,ve.component,ve)}(we.value),ut=we.children.map(Lt=>jr(ve,Lt));return new zn(Be,ut)}}const ao="ngNavigationCancelingError";function ro(ve,we){const{redirectTo:ae,navigationBehaviorOptions:Be}=vt(we)?{redirectTo:we,navigationBehaviorOptions:void 0}:we,ut=ko(!1,0,we);return ut.url=ae,ut.navigationBehaviorOptions=Be,ut}function ko(ve,we,ae){const Be=new Error("NavigationCancelingError: "+(ve||""));return Be[ao]=!0,Be.cancellationCode=we,ae&&(Be.url=ae),Be}function Aa(ve){return Kr(ve)&&vt(ve.url)}function Kr(ve){return ve&&ve[ao]}class Fr{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Wa,this.attachRef=null}}let Wa=(()=>{class ve{constructor(){this.contexts=new Map}onChildOutletCreated(ae,Be){const ut=this.getOrCreateContext(ae);ut.outlet=Be,this.contexts.set(ae,ut)}onChildOutletDestroyed(ae){const Be=this.getContext(ae);Be&&(Be.outlet=null,Be.attachRef=null)}onOutletDeactivated(){const ae=this.contexts;return this.contexts=new Map,ae}onOutletReAttached(ae){this.contexts=ae}getOrCreateContext(ae){let Be=this.getContext(ae);return Be||(Be=new Fr,this.contexts.set(ae,Be)),Be}getContext(ae){return this.contexts.get(ae)||null}}return ve.\u0275fac=function(ae){return new(ae||ve)},ve.\u0275prov=t.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})();const Hr=!1;let sa=(()=>{class ve{constructor(){this.activated=null,this._activatedRoute=null,this.name=G,this.activateEvents=new t.vpe,this.deactivateEvents=new t.vpe,this.attachEvents=new t.vpe,this.detachEvents=new t.vpe,this.parentContexts=(0,t.f3M)(Wa),this.location=(0,t.f3M)(t.s_b),this.changeDetector=(0,t.f3M)(t.sBO),this.environmentInjector=(0,t.f3M)(t.lqb)}ngOnChanges(ae){if(ae.name){const{firstChange:Be,previousValue:ut}=ae.name;if(Be)return;this.isTrackedInParentContexts(ut)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(ut)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(ae){return this.parentContexts.getContext(ae)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const ae=this.parentContexts.getContext(this.name);ae?.route&&(ae.attachRef?this.attach(ae.attachRef,ae.route):this.activateWith(ae.route,ae.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new t.vHH(4012,Hr);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new t.vHH(4012,Hr);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new t.vHH(4012,Hr);this.location.detach();const ae=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(ae.instance),ae}attach(ae,Be){this.activated=ae,this._activatedRoute=Be,this.location.insert(ae.hostView),this.attachEvents.emit(ae.instance)}deactivate(){if(this.activated){const ae=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(ae)}}activateWith(ae,Be){if(this.isActivated)throw new t.vHH(4013,Hr);this._activatedRoute=ae;const ut=this.location,Ht=ae.snapshot.component,ui=this.parentContexts.getOrCreateContext(this.name).children,Di=new za(ae,ui,ut.injector);if(Be&&function sr(ve){return!!ve.resolveComponentFactory}(Be)){const rn=Be.resolveComponentFactory(Ht);this.activated=ut.createComponent(rn,ut.length,Di)}else this.activated=ut.createComponent(Ht,{index:ut.length,injector:Di,environmentInjector:Be??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return ve.\u0275fac=function(ae){return new(ae||ve)},ve.\u0275dir=t.lG2({type:ve,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[t.TTD]}),ve})();class za{constructor(we,ae,Be){this.route=we,this.childContexts=ae,this.parent=Be}get(we,ae){return we===jn?this.route:we===Wa?this.childContexts:this.parent.get(we,ae)}}let gr=(()=>{class ve{}return ve.\u0275fac=function(ae){return new(ae||ve)},ve.\u0275cmp=t.Xpm({type:ve,selectors:[["ng-component"]],standalone:!0,features:[t.jDz],decls:1,vars:0,template:function(ae,Be){1&ae&&t._UZ(0,"router-outlet")},dependencies:[sa],encapsulation:2}),ve})();function Cr(ve,we){return ve.providers&&!ve._injector&&(ve._injector=(0,t.MMx)(ve.providers,we,`Route: ${ve.path}`)),ve._injector??we}function wr(ve){const we=ve.children&&ve.children.map(wr),ae=we?{...ve,children:we}:{...ve};return!ae.component&&!ae.loadComponent&&(we||ae.loadChildren)&&ae.outlet&&ae.outlet!==G&&(ae.component=gr),ae}function Qn(ve){return ve.outlet||G}function On(ve,we){const ae=ve.filter(Be=>Qn(Be)===we);return ae.push(...ve.filter(Be=>Qn(Be)!==we)),ae}function lr(ve){if(!ve)return null;if(ve.routeConfig?._injector)return ve.routeConfig._injector;for(let we=ve.parent;we;we=we.parent){const ae=we.routeConfig;if(ae?._loadedInjector)return ae._loadedInjector;if(ae?._injector)return ae._injector}return null}class ya{constructor(we,ae,Be,ut){this.routeReuseStrategy=we,this.futureState=ae,this.currState=Be,this.forwardEvent=ut}activate(we){const ae=this.futureState._root,Be=this.currState?this.currState._root:null;this.deactivateChildRoutes(ae,Be,we),wa(this.futureState.root),this.activateChildRoutes(ae,Be,we)}deactivateChildRoutes(we,ae,Be){const ut=ia(ae);we.children.forEach(Lt=>{const Ht=Lt.value.outlet;this.deactivateRoutes(Lt,ut[Ht],Be),delete ut[Ht]}),De(ut,(Lt,Ht)=>{this.deactivateRouteAndItsChildren(Lt,Be)})}deactivateRoutes(we,ae,Be){const ut=we.value,Lt=ae?ae.value:null;if(ut===Lt)if(ut.component){const Ht=Be.getContext(ut.outlet);Ht&&this.deactivateChildRoutes(we,ae,Ht.children)}else this.deactivateChildRoutes(we,ae,Be);else Lt&&this.deactivateRouteAndItsChildren(ae,Be)}deactivateRouteAndItsChildren(we,ae){we.value.component&&this.routeReuseStrategy.shouldDetach(we.value.snapshot)?this.detachAndStoreRouteSubtree(we,ae):this.deactivateRouteAndOutlet(we,ae)}detachAndStoreRouteSubtree(we,ae){const Be=ae.getContext(we.value.outlet),ut=Be&&we.value.component?Be.children:ae,Lt=ia(we);for(const Ht of Object.keys(Lt))this.deactivateRouteAndItsChildren(Lt[Ht],ut);if(Be&&Be.outlet){const Ht=Be.outlet.detach(),ui=Be.children.onOutletDeactivated();this.routeReuseStrategy.store(we.value.snapshot,{componentRef:Ht,route:we,contexts:ui})}}deactivateRouteAndOutlet(we,ae){const Be=ae.getContext(we.value.outlet),ut=Be&&we.value.component?Be.children:ae,Lt=ia(we);for(const Ht of Object.keys(Lt))this.deactivateRouteAndItsChildren(Lt[Ht],ut);Be&&(Be.outlet&&(Be.outlet.deactivate(),Be.children.onOutletDeactivated()),Be.attachRef=null,Be.resolver=null,Be.route=null)}activateChildRoutes(we,ae,Be){const ut=ia(ae);we.children.forEach(Lt=>{this.activateRoutes(Lt,ut[Lt.value.outlet],Be),this.forwardEvent(new ri(Lt.value.snapshot))}),we.children.length&&this.forwardEvent(new pi(we.value.snapshot))}activateRoutes(we,ae,Be){const ut=we.value,Lt=ae?ae.value:null;if(wa(ut),ut===Lt)if(ut.component){const Ht=Be.getOrCreateContext(ut.outlet);this.activateChildRoutes(we,ae,Ht.children)}else this.activateChildRoutes(we,ae,Be);else if(ut.component){const Ht=Be.getOrCreateContext(ut.outlet);if(this.routeReuseStrategy.shouldAttach(ut.snapshot)){const ui=this.routeReuseStrategy.retrieve(ut.snapshot);this.routeReuseStrategy.store(ut.snapshot,null),Ht.children.onOutletReAttached(ui.contexts),Ht.attachRef=ui.componentRef,Ht.route=ui.route.value,Ht.outlet&&Ht.outlet.attach(ui.componentRef,ui.route.value),wa(ui.route.value),this.activateChildRoutes(we,null,Ht.children)}else{const ui=lr(ut.snapshot),Di=ui?.get(t._Vd)??null;Ht.attachRef=null,Ht.route=ut,Ht.resolver=Di,Ht.injector=ui,Ht.outlet&&Ht.outlet.activateWith(ut,Ht.injector),this.activateChildRoutes(we,null,Ht.children)}}else this.activateChildRoutes(we,null,Be)}}class Ro{constructor(we){this.path=we,this.route=this.path[this.path.length-1]}}class Ft{constructor(we,ae){this.component=we,this.route=ae}}function hi(ve,we,ae){const Be=ve._root;return Ii(Be,we?we._root:null,ae,[Be.value])}function ai(ve,we){const ae=Symbol(),Be=we.get(ve,ae);return Be===ae?"function"!=typeof ve||(0,t.Z0I)(ve)?we.get(ve):ve:Be}function Ii(ve,we,ae,Be,ut={canDeactivateChecks:[],canActivateChecks:[]}){const Lt=ia(we);return ve.children.forEach(Ht=>{(function nn(ve,we,ae,Be,ut={canDeactivateChecks:[],canActivateChecks:[]}){const Lt=ve.value,Ht=we?we.value:null,ui=ae?ae.getContext(ve.value.outlet):null;if(Ht&&Lt.routeConfig===Ht.routeConfig){const Di=function aa(ve,we,ae){if("function"==typeof ae)return ae(ve,we);switch(ae){case"pathParamsChange":return!qe(ve.url,we.url);case"pathParamsOrQueryParamsChange":return!qe(ve.url,we.url)||!xe(ve.queryParams,we.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Io(ve,we)||!xe(ve.queryParams,we.queryParams);default:return!Io(ve,we)}}(Ht,Lt,Lt.routeConfig.runGuardsAndResolvers);Di?ut.canActivateChecks.push(new Ro(Be)):(Lt.data=Ht.data,Lt._resolvedData=Ht._resolvedData),Ii(ve,we,Lt.component?ui?ui.children:null:ae,Be,ut),Di&&ui&&ui.outlet&&ui.outlet.isActivated&&ut.canDeactivateChecks.push(new Ft(ui.outlet.component,Ht))}else Ht&&ca(we,ui,ut),ut.canActivateChecks.push(new Ro(Be)),Ii(ve,null,Lt.component?ui?ui.children:null:ae,Be,ut)})(Ht,Lt[Ht.value.outlet],ae,Be.concat([Ht.value]),ut),delete Lt[Ht.value.outlet]}),De(Lt,(Ht,ui)=>ca(Ht,ae.getContext(ui),ut)),ut}function ca(ve,we,ae){const Be=ia(ve),ut=ve.value;De(Be,(Lt,Ht)=>{ca(Lt,ut.component?we?we.children.getContext(Ht):null:we,ae)}),ae.canDeactivateChecks.push(new Ft(ut.component&&we&&we.outlet&&we.outlet.isActivated?we.outlet.component:null,ut))}function Wi(ve){return"function"==typeof ve}function va(ve){return ve instanceof s.K||"EmptyError"===ve?.name}const Ei=Symbol("INITIAL_VALUE");function An(){return(0,j.w)(ve=>(0,y.a)(ve.map(we=>we.pipe((0,Q.q)(1),(0,J.O)(Ei)))).pipe((0,Y.U)(we=>{for(const ae of we)if(!0!==ae){if(ae===Ei)return Ei;if(!1===ae||ae instanceof ht)return ae}return!0}),(0,ee.h)(we=>we!==Ei),(0,Q.q)(1)))}function Zs(ve){return(0,d.z)((0,se.b)(we=>{if(vt(we))throw ro(0,we)}),(0,Y.U)(we=>!0===we))}const qn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ki(ve,we,ae,Be,ut){const Lt=Ua(ve,we,ae);return Lt.matched?function $o(ve,we,ae,Be){const ut=we.canMatch;if(!ut||0===ut.length)return(0,_.of)(!0);const Lt=ut.map(Ht=>{const ui=ai(Ht,ve);return he(function kt(ve){return ve&&Wi(ve.canMatch)}(ui)?ui.canMatch(we,ae):ve.runInContext(()=>ui(we,ae)))});return(0,_.of)(Lt).pipe(An(),Zs())}(Be=Cr(we,Be),we,ae).pipe((0,Y.U)(Ht=>!0===Ht?Lt:{...qn})):(0,_.of)(Lt)}function Ua(ve,we,ae){if(""===we.path)return"full"===we.pathMatch&&(ve.hasChildren()||ae.length>0)?{...qn}:{matched:!0,consumedSegments:[],remainingSegments:ae,parameters:{},positionalParamSegments:{}};const ut=(we.matcher||at)(ae,ve,we);if(!ut)return{...qn};const Lt={};De(ut.posParams,(ui,Di)=>{Lt[Di]=ui.path});const Ht=ut.consumed.length>0?{...Lt,...ut.consumed[ut.consumed.length-1].parameters}:Lt;return{matched:!0,consumedSegments:ut.consumed,remainingSegments:ae.slice(ut.consumed.length),parameters:Ht,positionalParamSegments:ut.posParams??{}}}function co(ve,we,ae,Be){if(ae.length>0&&function Mo(ve,we,ae){return ae.some(Be=>Er(ve,we,Be)&&Qn(Be)!==G)}(ve,ae,Be)){const Lt=new Ge(we,function No(ve,we,ae,Be){const ut={};ut[G]=Be,Be._sourceSegment=ve,Be._segmentIndexShift=we.length;for(const Lt of ae)if(""===Lt.path&&Qn(Lt)!==G){const Ht=new Ge([],{});Ht._sourceSegment=ve,Ht._segmentIndexShift=we.length,ut[Qn(Lt)]=Ht}return ut}(ve,we,Be,new Ge(ae,ve.children)));return Lt._sourceSegment=ve,Lt._segmentIndexShift=we.length,{segmentGroup:Lt,slicedSegments:[]}}if(0===ae.length&&function lc(ve,we,ae){return ae.some(Be=>Er(ve,we,Be))}(ve,ae,Be)){const Lt=new Ge(ve.segments,function Fi(ve,we,ae,Be,ut){const Lt={};for(const Ht of Be)if(Er(ve,ae,Ht)&&!ut[Qn(Ht)]){const ui=new Ge([],{});ui._sourceSegment=ve,ui._segmentIndexShift=we.length,Lt[Qn(Ht)]=ui}return{...ut,...Lt}}(ve,we,ae,Be,ve.children));return Lt._sourceSegment=ve,Lt._segmentIndexShift=we.length,{segmentGroup:Lt,slicedSegments:ae}}const ut=new Ge(ve.segments,ve.children);return ut._sourceSegment=ve,ut._segmentIndexShift=we.length,{segmentGroup:ut,slicedSegments:ae}}function Er(ve,we,ae){return(!(ve.hasChildren()||we.length>0)||"full"!==ae.pathMatch)&&""===ae.path}function dr(ve,we,ae,Be){return!!(Qn(ve)===Be||Be!==G&&Er(we,ae,ve))&&("**"===ve.path||Ua(we,ve,ae).matched)}function Go(ve,we,ae){return 0===we.length&&!ve.children[ae]}const lo=!1;class hs{constructor(we){this.segmentGroup=we||null}}class Ys{constructor(we){this.urlTree=we}}function Fo(ve){return(0,w._)(new hs(ve))}function Is(ve){return(0,w._)(new Ys(ve))}class Ya{constructor(we,ae,Be,ut,Lt){this.injector=we,this.configLoader=ae,this.urlSerializer=Be,this.urlTree=ut,this.config=Lt,this.allowRedirects=!0}apply(){const we=co(this.urlTree.root,[],[],this.config).segmentGroup,ae=new Ge(we.segments,we.children);return this.expandSegmentGroup(this.injector,this.config,ae,G).pipe((0,Y.U)(Lt=>this.createUrlTree($e(Lt),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,ce.K)(Lt=>{if(Lt instanceof Ys)return this.allowRedirects=!1,this.match(Lt.urlTree);throw Lt instanceof hs?this.noMatchError(Lt):Lt}))}match(we){return this.expandSegmentGroup(this.injector,this.config,we.root,G).pipe((0,Y.U)(ut=>this.createUrlTree($e(ut),we.queryParams,we.fragment))).pipe((0,ce.K)(ut=>{throw ut instanceof hs?this.noMatchError(ut):ut}))}noMatchError(we){return new t.vHH(4002,lo)}createUrlTree(we,ae,Be){const ut=gt(we);return new ht(ut,ae,Be)}expandSegmentGroup(we,ae,Be,ut){return 0===Be.segments.length&&Be.hasChildren()?this.expandChildren(we,ae,Be).pipe((0,Y.U)(Lt=>new Ge([],Lt))):this.expandSegment(we,Be,ae,Be.segments,ut,!0)}expandChildren(we,ae,Be){const ut=[];for(const Lt of Object.keys(Be.children))"primary"===Lt?ut.unshift(Lt):ut.push(Lt);return(0,e.D)(ut).pipe((0,ie.b)(Lt=>{const Ht=Be.children[Lt],ui=On(ae,Lt);return this.expandSegmentGroup(we,ui,Ht,Lt).pipe((0,Y.U)(Di=>({segment:Di,outlet:Lt})))}),(0,Ce.R)((Lt,Ht)=>(Lt[Ht.outlet]=Ht.segment,Lt),{}),I())}expandSegment(we,ae,Be,ut,Lt,Ht){return(0,e.D)(Be).pipe((0,ie.b)(ui=>this.expandSegmentAgainstRoute(we,ae,Be,ui,ut,Lt,Ht).pipe((0,ce.K)(rn=>{if(rn instanceof hs)return(0,_.of)(null);throw rn}))),(0,re.P)(ui=>!!ui),(0,ce.K)((ui,Di)=>{if(va(ui))return Go(ae,ut,Lt)?(0,_.of)(new Ge([],{})):Fo(ae);throw ui}))}expandSegmentAgainstRoute(we,ae,Be,ut,Lt,Ht,ui){return dr(ut,ae,Lt,Ht)?void 0===ut.redirectTo?this.matchSegmentAgainstRoute(we,ae,ut,Lt,Ht):ui&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(we,ae,Be,ut,Lt,Ht):Fo(ae):Fo(ae)}expandSegmentAgainstRouteUsingRedirect(we,ae,Be,ut,Lt,Ht){return"**"===ut.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(we,Be,ut,Ht):this.expandRegularSegmentAgainstRouteUsingRedirect(we,ae,Be,ut,Lt,Ht)}expandWildCardWithParamsAgainstRouteUsingRedirect(we,ae,Be,ut){const Lt=this.applyRedirectCommands([],Be.redirectTo,{});return Be.redirectTo.startsWith("/")?Is(Lt):this.lineralizeSegments(Be,Lt).pipe((0,me.z)(Ht=>{const ui=new Ge(Ht,{});return this.expandSegment(we,ui,ae,Ht,ut,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(we,ae,Be,ut,Lt,Ht){const{matched:ui,consumedSegments:Di,remainingSegments:rn,positionalParamSegments:an}=Ua(ae,ut,Lt);if(!ui)return Fo(ae);const fa=this.applyRedirectCommands(Di,ut.redirectTo,an);return ut.redirectTo.startsWith("/")?Is(fa):this.lineralizeSegments(ut,fa).pipe((0,me.z)(ar=>this.expandSegment(we,ae,Be,ar.concat(rn),Ht,!1)))}matchSegmentAgainstRoute(we,ae,Be,ut,Lt){return"**"===Be.path?(we=Cr(Be,we),Be.loadChildren?(Be._loadedRoutes?(0,_.of)({routes:Be._loadedRoutes,injector:Be._loadedInjector}):this.configLoader.loadChildren(we,Be)).pipe((0,Y.U)(ui=>(Be._loadedRoutes=ui.routes,Be._loadedInjector=ui.injector,new Ge(ut,{})))):(0,_.of)(new Ge(ut,{}))):ki(ae,Be,ut,we).pipe((0,j.w)(({matched:Ht,consumedSegments:ui,remainingSegments:Di})=>Ht?this.getChildConfig(we=Be._injector??we,Be,ut).pipe((0,me.z)(an=>{const fa=an.injector??we,ar=an.routes,{segmentGroup:ps,slicedSegments:is}=co(ae,ui,Di,ar),Ko=new Ge(ps.segments,ps.children);if(0===is.length&&Ko.hasChildren())return this.expandChildren(fa,ar,Ko).pipe((0,Y.U)(Eo=>new Ge(ui,Eo)));if(0===ar.length&&0===is.length)return(0,_.of)(new Ge(ui,{}));const mo=Qn(Be)===Lt;return this.expandSegment(fa,Ko,ar,is,mo?G:Lt,!0).pipe((0,Y.U)(gs=>new Ge(ui.concat(gs.segments),gs.children)))})):Fo(ae)))}getChildConfig(we,ae,Be){return ae.children?(0,_.of)({routes:ae.children,injector:we}):ae.loadChildren?void 0!==ae._loadedRoutes?(0,_.of)({routes:ae._loadedRoutes,injector:ae._loadedInjector}):function Pc(ve,we,ae,Be){const ut=we.canLoad;if(void 0===ut||0===ut.length)return(0,_.of)(!0);const Lt=ut.map(Ht=>{const ui=ai(Ht,ve);return he(function Za(ve){return ve&&Wi(ve.canLoad)}(ui)?ui.canLoad(we,ae):ve.runInContext(()=>ui(we,ae)))});return(0,_.of)(Lt).pipe(An(),Zs())}(we,ae,Be).pipe((0,me.z)(ut=>ut?this.configLoader.loadChildren(we,ae).pipe((0,se.b)(Lt=>{ae._loadedRoutes=Lt.routes,ae._loadedInjector=Lt.injector})):function dc(ve){return(0,w._)(ko(lo,3))}())):(0,_.of)({routes:[],injector:we})}lineralizeSegments(we,ae){let Be=[],ut=ae.root;for(;;){if(Be=Be.concat(ut.segments),0===ut.numberOfChildren)return(0,_.of)(Be);if(ut.numberOfChildren>1||!ut.children[G])return we.redirectTo,(0,w._)(new t.vHH(4e3,lo));ut=ut.children[G]}}applyRedirectCommands(we,ae,Be){return this.applyRedirectCreateUrlTree(ae,this.urlSerializer.parse(ae),we,Be)}applyRedirectCreateUrlTree(we,ae,Be,ut){const Lt=this.createSegmentGroup(we,ae.root,Be,ut);return new ht(Lt,this.createQueryParams(ae.queryParams,this.urlTree.queryParams),ae.fragment)}createQueryParams(we,ae){const Be={};return De(we,(ut,Lt)=>{if("string"==typeof ut&&ut.startsWith(":")){const ui=ut.substring(1);Be[Lt]=ae[ui]}else Be[Lt]=ut}),Be}createSegmentGroup(we,ae,Be,ut){const Lt=this.createSegments(we,ae.segments,Be,ut);let Ht={};return De(ae.children,(ui,Di)=>{Ht[Di]=this.createSegmentGroup(we,ui,Be,ut)}),new Ge(Lt,Ht)}createSegments(we,ae,Be,ut){return ae.map(Lt=>Lt.path.startsWith(":")?this.findPosParam(we,Lt,ut):this.findOrReturn(Lt,Be))}findPosParam(we,ae,Be){const ut=Be[ae.path.substring(1)];if(!ut)throw new t.vHH(4001,lo);return ut}findOrReturn(we,ae){let Be=0;for(const ut of ae){if(ut.path===we.path)return ae.splice(Be),ut;Be++}return we}}class sn{}class la{constructor(we,ae,Be,ut,Lt,Ht,ui){this.injector=we,this.rootComponentType=ae,this.config=Be,this.urlTree=ut,this.url=Lt,this.paramsInheritanceStrategy=Ht,this.urlSerializer=ui}recognize(){const we=co(this.urlTree.root,[],[],this.config.filter(ae=>void 0===ae.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,we,G).pipe((0,Y.U)(ae=>{if(null===ae)return null;const Be=new Rr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},G,this.rootComponentType,null,this.urlTree.root,-1,{}),ut=new zn(Be,ae),Lt=new Nr(this.url,ut);return this.inheritParamsAndData(Lt._root),Lt}))}inheritParamsAndData(we){const ae=we.value,Be=Ta(ae,this.paramsInheritanceStrategy);ae.params=Object.freeze(Be.params),ae.data=Object.freeze(Be.data),we.children.forEach(ut=>this.inheritParamsAndData(ut))}processSegmentGroup(we,ae,Be,ut){return 0===Be.segments.length&&Be.hasChildren()?this.processChildren(we,ae,Be):this.processSegment(we,ae,Be,Be.segments,ut)}processChildren(we,ae,Be){return(0,e.D)(Object.keys(Be.children)).pipe((0,ie.b)(ut=>{const Lt=Be.children[ut],Ht=On(ae,ut);return this.processSegmentGroup(we,Ht,Lt,ut)}),(0,Ce.R)((ut,Lt)=>ut&&Lt?(ut.push(...Lt),ut):null),(0,k.o)(ut=>null!==ut),(0,l.d)(null),I(),(0,Y.U)(ut=>{if(null===ut)return null;const Lt=Wn(ut);return function fs(ve){ve.sort((we,ae)=>we.value.outlet===G?-1:ae.value.outlet===G?1:we.value.outlet.localeCompare(ae.value.outlet))}(Lt),Lt}))}processSegment(we,ae,Be,ut,Lt){return(0,e.D)(ae).pipe((0,ie.b)(Ht=>this.processSegmentAgainstRoute(Ht._injector??we,Ht,Be,ut,Lt)),(0,re.P)(Ht=>!!Ht),(0,ce.K)(Ht=>{if(va(Ht))return Go(Be,ut,Lt)?(0,_.of)([]):(0,_.of)(null);throw Ht}))}processSegmentAgainstRoute(we,ae,Be,ut,Lt){if(ae.redirectTo||!dr(ae,Be,ut,Lt))return(0,_.of)(null);let Ht;if("**"===ae.path){const ui=ut.length>0?oe(ut).parameters:{},Di=La(Be)+ut.length,rn=new Rr(ut,ui,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Kn(ae),Qn(ae),ae.component??ae._loadedComponent??null,ae,xa(Be),Di,ze(ae));Ht=(0,_.of)({snapshot:rn,consumedSegments:[],remainingSegments:[]})}else Ht=ki(Be,ae,ut,we).pipe((0,Y.U)(({matched:ui,consumedSegments:Di,remainingSegments:rn,parameters:an})=>{if(!ui)return null;const fa=La(Be)+Di.length;return{snapshot:new Rr(Di,an,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Kn(ae),Qn(ae),ae.component??ae._loadedComponent??null,ae,xa(Be),fa,ze(ae)),consumedSegments:Di,remainingSegments:rn}}));return Ht.pipe((0,j.w)(ui=>{if(null===ui)return(0,_.of)(null);const{snapshot:Di,consumedSegments:rn,remainingSegments:an}=ui;we=ae._injector??we;const fa=ae._loadedInjector??we,ar=function Rc(ve){return ve.children?ve.children:ve.loadChildren?ve._loadedRoutes:[]}(ae),{segmentGroup:ps,slicedSegments:is}=co(Be,rn,an,ar.filter(mo=>void 0===mo.redirectTo));if(0===is.length&&ps.hasChildren())return this.processChildren(fa,ar,ps).pipe((0,Y.U)(mo=>null===mo?null:[new zn(Di,mo)]));if(0===ar.length&&0===is.length)return(0,_.of)([new zn(Di,[])]);const Ko=Qn(ae)===Lt;return this.processSegment(fa,ar,ps,is,Ko?G:Lt).pipe((0,Y.U)(mo=>null===mo?null:[new zn(Di,mo)]))}))}}function hc(ve){const we=ve.value.routeConfig;return we&&""===we.path&&void 0===we.redirectTo}function Wn(ve){const we=[],ae=new Set;for(const Be of ve){if(!hc(Be)){we.push(Be);continue}const ut=we.find(Lt=>Be.value.routeConfig===Lt.value.routeConfig);void 0!==ut?(ut.children.push(...Be.children),ae.add(ut)):we.push(Be)}for(const Be of ae){const ut=Wn(Be.children);we.push(new zn(Be.value,ut))}return we.filter(Be=>!ae.has(Be))}function xa(ve){let we=ve;for(;we._sourceSegment;)we=we._sourceSegment;return we}function La(ve){let we=ve,ae=we._segmentIndexShift??0;for(;we._sourceSegment;)we=we._sourceSegment,ae+=we._segmentIndexShift??0;return ae-1}function Kn(ve){return ve.data||{}}function ze(ve){return ve.resolve||{}}function ni(ve){return"string"==typeof ve.title||null===ve.title}function ti(ve){return(0,j.w)(we=>{const ae=ve(we);return ae?(0,e.D)(ae).pipe((0,Y.U)(()=>we)):(0,_.of)(we)})}const Si=new t.OlP("ROUTES");let Pi=(()=>{class ve{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,t.f3M)(t.Sil)}loadComponent(ae){if(this.componentLoaders.get(ae))return this.componentLoaders.get(ae);if(ae._loadedComponent)return(0,_.of)(ae._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(ae);const Be=he(ae.loadComponent()).pipe((0,Y.U)(tn),(0,se.b)(Lt=>{this.onLoadEndListener&&this.onLoadEndListener(ae),ae._loadedComponent=Lt}),(0,n.x)(()=>{this.componentLoaders.delete(ae)})),ut=new D.c(Be,()=>new H.x).pipe((0,g.x)());return this.componentLoaders.set(ae,ut),ut}loadChildren(ae,Be){if(this.childrenLoaders.get(Be))return this.childrenLoaders.get(Be);if(Be._loadedRoutes)return(0,_.of)({routes:Be._loadedRoutes,injector:Be._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Be);const Lt=this.loadModuleFactoryOrRoutes(Be.loadChildren).pipe((0,Y.U)(ui=>{this.onLoadEndListener&&this.onLoadEndListener(Be);let Di,rn,an=!1;Array.isArray(ui)?rn=ui:(Di=ui.create(ae).injector,rn=Oe(Di.get(Si,[],t.XFs.Self|t.XFs.Optional)));return{routes:rn.map(wr),injector:Di}}),(0,n.x)(()=>{this.childrenLoaders.delete(Be)})),Ht=new D.c(Lt,()=>new H.x).pipe((0,g.x)());return this.childrenLoaders.set(Be,Ht),Ht}loadModuleFactoryOrRoutes(ae){return he(ae()).pipe((0,Y.U)(tn),(0,me.z)(Be=>Be instanceof t.YKP||Array.isArray(Be)?(0,_.of)(Be):(0,e.D)(this.compiler.compileModuleAsync(Be))))}}return ve.\u0275fac=function(ae){return new(ae||ve)},ve.\u0275prov=t.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})();function tn(ve){return function qi(ve){return ve&&"object"==typeof ve&&"default"in ve}(ve)?ve.default:ve}let da=(()=>{class ve{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new H.x,this.configLoader=(0,t.f3M)(Pi),this.environmentInjector=(0,t.f3M)(t.lqb),this.urlSerializer=(0,t.f3M)(X),this.rootContexts=(0,t.f3M)(Wa),this.navigationId=0,this.afterPreactivation=()=>(0,_.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=ut=>this.events.next(new er(ut)),this.configLoader.onLoadStartListener=ut=>this.events.next(new ta(ut))}complete(){this.transitions?.complete()}handleNavigationRequest(ae){const Be=++this.navigationId;this.transitions?.next({...this.transitions.value,...ae,id:Be})}setupNavigations(ae){return this.transitions=new T.X({id:0,targetPageId:0,currentUrlTree:ae.currentUrlTree,currentRawUrl:ae.currentUrlTree,extractedUrl:ae.urlHandlingStrategy.extract(ae.currentUrlTree),urlAfterRedirects:ae.urlHandlingStrategy.extract(ae.currentUrlTree),rawUrl:ae.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Dt,restoredState:null,currentSnapshot:ae.routerState.snapshot,targetSnapshot:null,currentRouterState:ae.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,ee.h)(Be=>0!==Be.id),(0,Y.U)(Be=>({...Be,extractedUrl:ae.urlHandlingStrategy.extract(Be.rawUrl)})),(0,j.w)(Be=>{let ut=!1,Lt=!1;return(0,_.of)(Be).pipe((0,se.b)(Ht=>{this.currentNavigation={id:Ht.id,initialUrl:Ht.rawUrl,extractedUrl:Ht.extractedUrl,trigger:Ht.source,extras:Ht.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,j.w)(Ht=>{const ui=ae.browserUrlTree.toString(),Di=!ae.navigated||Ht.extractedUrl.toString()!==ui||ui!==ae.currentUrlTree.toString();if(!Di&&"reload"!==(Ht.extras.onSameUrlNavigation??ae.onSameUrlNavigation)){const an="";return this.events.next(new mi(Ht.id,ae.serializeUrl(Be.rawUrl),an,0)),ae.rawUrlTree=Ht.rawUrl,Ht.resolve(null),L.E}if(ae.urlHandlingStrategy.shouldProcessUrl(Ht.rawUrl))return ma(Ht.source)&&(ae.browserUrlTree=Ht.extractedUrl),(0,_.of)(Ht).pipe((0,j.w)(an=>{const fa=this.transitions?.getValue();return this.events.next(new Ot(an.id,this.urlSerializer.serialize(an.extractedUrl),an.source,an.restoredState)),fa!==this.transitions?.getValue()?L.E:Promise.resolve(an)}),function es(ve,we,ae,Be){return(0,j.w)(ut=>function js(ve,we,ae,Be,ut){return new Ya(ve,we,ae,Be,ut).apply()}(ve,we,ae,ut.extractedUrl,Be).pipe((0,Y.U)(Lt=>({...ut,urlAfterRedirects:Lt}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,ae.config),(0,se.b)(an=>{this.currentNavigation={...this.currentNavigation,finalUrl:an.urlAfterRedirects},Be.urlAfterRedirects=an.urlAfterRedirects}),function ne(ve,we,ae,Be,ut){return(0,me.z)(Lt=>function Ho(ve,we,ae,Be,ut,Lt,Ht="emptyOnly"){return new la(ve,we,ae,Be,ut,Ht,Lt).recognize().pipe((0,j.w)(ui=>null===ui?function ja(ve){return new C.y(we=>we.error(ve))}(new sn):(0,_.of)(ui)))}(ve,we,ae,Lt.urlAfterRedirects,Be.serialize(Lt.urlAfterRedirects),Be,ut).pipe((0,Y.U)(Ht=>({...Lt,targetSnapshot:Ht}))))}(this.environmentInjector,this.rootComponentType,ae.config,this.urlSerializer,ae.paramsInheritanceStrategy),(0,se.b)(an=>{if(Be.targetSnapshot=an.targetSnapshot,"eager"===ae.urlUpdateStrategy){if(!an.extras.skipLocationChange){const ar=ae.urlHandlingStrategy.merge(an.urlAfterRedirects,an.rawUrl);ae.setBrowserUrl(ar,an)}ae.browserUrlTree=an.urlAfterRedirects}const fa=new Ui(an.id,this.urlSerializer.serialize(an.extractedUrl),this.urlSerializer.serialize(an.urlAfterRedirects),an.targetSnapshot);this.events.next(fa)}));if(Di&&ae.urlHandlingStrategy.shouldProcessUrl(ae.rawUrlTree)){const{id:an,extractedUrl:fa,source:ar,restoredState:ps,extras:is}=Ht,Ko=new Ot(an,this.urlSerializer.serialize(fa),ar,ps);this.events.next(Ko);const mo=Pr(fa,this.rootComponentType).snapshot;return Be={...Ht,targetSnapshot:mo,urlAfterRedirects:fa,extras:{...is,skipLocationChange:!1,replaceUrl:!1}},(0,_.of)(Be)}{const an="";return this.events.next(new mi(Ht.id,ae.serializeUrl(Be.extractedUrl),an,1)),ae.rawUrlTree=Ht.rawUrl,Ht.resolve(null),L.E}}),(0,se.b)(Ht=>{const ui=new Un(Ht.id,this.urlSerializer.serialize(Ht.extractedUrl),this.urlSerializer.serialize(Ht.urlAfterRedirects),Ht.targetSnapshot);this.events.next(ui)}),(0,Y.U)(Ht=>Be={...Ht,guards:hi(Ht.targetSnapshot,Ht.currentSnapshot,this.rootContexts)}),function so(ve,we){return(0,me.z)(ae=>{const{targetSnapshot:Be,currentSnapshot:ut,guards:{canActivateChecks:Lt,canDeactivateChecks:Ht}}=ae;return 0===Ht.length&&0===Lt.length?(0,_.of)({...ae,guardsResult:!0}):function Ws(ve,we,ae,Be){return(0,e.D)(ve).pipe((0,me.z)(ut=>function Ds(ve,we,ae,Be,ut){const Lt=we&&we.routeConfig?we.routeConfig.canDeactivate:null;if(!Lt||0===Lt.length)return(0,_.of)(!0);const Ht=Lt.map(ui=>{const Di=lr(we)??ut,rn=ai(ui,Di);return he(function Ze(ve){return ve&&Wi(ve.canDeactivate)}(rn)?rn.canDeactivate(ve,we,ae,Be):Di.runInContext(()=>rn(ve,we,ae,Be))).pipe((0,re.P)())});return(0,_.of)(Ht).pipe(An())}(ut.component,ut.route,ae,we,Be)),(0,re.P)(ut=>!0!==ut,!0))}(Ht,Be,ut,ve).pipe((0,me.z)(ui=>ui&&function _n(ve){return"boolean"==typeof ve}(ui)?function Ba(ve,we,ae,Be){return(0,e.D)(we).pipe((0,ie.b)(ut=>(0,h.z)(function Uo(ve,we){return null!==ve&&we&&we(new Jt(ve)),(0,_.of)(!0)}(ut.route.parent,Be),function ds(ve,we){return null!==ve&&we&&we(new Kt(ve)),(0,_.of)(!0)}(ut.route,Be),function Xo(ve,we,ae){const Be=we[we.length-1],Lt=we.slice(0,we.length-1).reverse().map(Ht=>function Ct(ve){const we=ve.routeConfig?ve.routeConfig.canActivateChild:null;return we&&0!==we.length?{node:ve,guards:we}:null}(Ht)).filter(Ht=>null!==Ht).map(Ht=>(0,P.P)(()=>{const ui=Ht.guards.map(Di=>{const rn=lr(Ht.node)??ae,an=ai(Di,rn);return he(function et(ve){return ve&&Wi(ve.canActivateChild)}(an)?an.canActivateChild(Be,ve):rn.runInContext(()=>an(Be,ve))).pipe((0,re.P)())});return(0,_.of)(ui).pipe(An())}));return(0,_.of)(Lt).pipe(An())}(ve,ut.path,ae),function Sr(ve,we,ae){const Be=we.routeConfig?we.routeConfig.canActivate:null;if(!Be||0===Be.length)return(0,_.of)(!0);const ut=Be.map(Lt=>(0,P.P)(()=>{const Ht=lr(we)??ae,ui=ai(Lt,Ht);return he(function ct(ve){return ve&&Wi(ve.canActivate)}(ui)?ui.canActivate(we,ve):Ht.runInContext(()=>ui(we,ve))).pipe((0,re.P)())}));return(0,_.of)(ut).pipe(An())}(ve,ut.route,ae))),(0,re.P)(ut=>!0!==ut,!0))}(Be,Lt,ve,we):(0,_.of)(ui)),(0,Y.U)(ui=>({...ae,guardsResult:ui})))})}(this.environmentInjector,Ht=>this.events.next(Ht)),(0,se.b)(Ht=>{if(Be.guardsResult=Ht.guardsResult,vt(Ht.guardsResult))throw ro(0,Ht.guardsResult);const ui=new Dn(Ht.id,this.urlSerializer.serialize(Ht.extractedUrl),this.urlSerializer.serialize(Ht.urlAfterRedirects),Ht.targetSnapshot,!!Ht.guardsResult);this.events.next(ui)}),(0,ee.h)(Ht=>!!Ht.guardsResult||(ae.restoreHistory(Ht),this.cancelNavigationTransition(Ht,"",3),!1)),ti(Ht=>{if(Ht.guards.canActivateChecks.length)return(0,_.of)(Ht).pipe((0,se.b)(ui=>{const Di=new oa(ui.id,this.urlSerializer.serialize(ui.extractedUrl),this.urlSerializer.serialize(ui.urlAfterRedirects),ui.targetSnapshot);this.events.next(Di)}),(0,j.w)(ui=>{let Di=!1;return(0,_.of)(ui).pipe(function te(ve,we){return(0,me.z)(ae=>{const{targetSnapshot:Be,guards:{canActivateChecks:ut}}=ae;if(!ut.length)return(0,_.of)(ae);let Lt=0;return(0,e.D)(ut).pipe((0,ie.b)(Ht=>function Te(ve,we,ae,Be){const ut=ve.routeConfig,Lt=ve._resolve;return void 0!==ut?.title&&!ni(ut)&&(Lt[ge]=ut.title),function tt(ve,we,ae,Be){const ut=function Ne(ve){return[...Object.keys(ve),...Object.getOwnPropertySymbols(ve)]}(ve);if(0===ut.length)return(0,_.of)({});const Lt={};return(0,e.D)(ut).pipe((0,me.z)(Ht=>function Rt(ve,we,ae,Be){const ut=lr(we)??Be,Lt=ai(ve,ut);return he(Lt.resolve?Lt.resolve(we,ae):ut.runInContext(()=>Lt(we,ae)))}(ve[Ht],we,ae,Be).pipe((0,re.P)(),(0,se.b)(ui=>{Lt[Ht]=ui}))),a(1),(0,x.h)(Lt),(0,ce.K)(Ht=>va(Ht)?L.E:(0,w._)(Ht)))}(Lt,ve,we,Be).pipe((0,Y.U)(Ht=>(ve._resolvedData=Ht,ve.data=Ta(ve,ae).resolve,ut&&ni(ut)&&(ve.data[ge]=ut.title),null)))}(Ht.route,Be,ve,we)),(0,se.b)(()=>Lt++),a(1),(0,me.z)(Ht=>Lt===ut.length?(0,_.of)(ae):L.E))})}(ae.paramsInheritanceStrategy,this.environmentInjector),(0,se.b)({next:()=>Di=!0,complete:()=>{Di||(ae.restoreHistory(ui),this.cancelNavigationTransition(ui,"",2))}}))}),(0,se.b)(ui=>{const Di=new Ea(ui.id,this.urlSerializer.serialize(ui.extractedUrl),this.urlSerializer.serialize(ui.urlAfterRedirects),ui.targetSnapshot);this.events.next(Di)}))}),ti(Ht=>{const ui=Di=>{const rn=[];Di.routeConfig?.loadComponent&&!Di.routeConfig._loadedComponent&&rn.push(this.configLoader.loadComponent(Di.routeConfig).pipe((0,se.b)(an=>{Di.component=an}),(0,Y.U)(()=>{})));for(const an of Di.children)rn.push(...ui(an));return rn};return(0,y.a)(ui(Ht.targetSnapshot.root)).pipe((0,l.d)(),(0,Q.q)(1))}),ti(()=>this.afterPreactivation()),(0,Y.U)(Ht=>{const ui=function no(ve,we,ae){const Be=jr(ve,we._root,ae?ae._root:void 0);return new Co(Be,we)}(ae.routeReuseStrategy,Ht.targetSnapshot,Ht.currentRouterState);return Be={...Ht,targetRouterState:ui}}),(0,se.b)(Ht=>{ae.currentUrlTree=Ht.urlAfterRedirects,ae.rawUrlTree=ae.urlHandlingStrategy.merge(Ht.urlAfterRedirects,Ht.rawUrl),ae.routerState=Ht.targetRouterState,"deferred"===ae.urlUpdateStrategy&&(Ht.extras.skipLocationChange||ae.setBrowserUrl(ae.rawUrlTree,Ht),ae.browserUrlTree=Ht.urlAfterRedirects)}),((ve,we,ae)=>(0,Y.U)(Be=>(new ya(we,Be.targetRouterState,Be.currentRouterState,ae).activate(ve),Be)))(this.rootContexts,ae.routeReuseStrategy,Ht=>this.events.next(Ht)),(0,Q.q)(1),(0,se.b)({next:Ht=>{ut=!0,this.lastSuccessfulNavigation=this.currentNavigation,ae.navigated=!0,this.events.next(new vi(Ht.id,this.urlSerializer.serialize(Ht.extractedUrl),this.urlSerializer.serialize(ae.currentUrlTree))),ae.titleStrategy?.updateTitle(Ht.targetRouterState.snapshot),Ht.resolve(!0)},complete:()=>{ut=!0}}),(0,n.x)(()=>{ut||Lt||this.cancelNavigationTransition(Be,"",1),this.currentNavigation?.id===Be.id&&(this.currentNavigation=null)}),(0,ce.K)(Ht=>{if(Lt=!0,Kr(Ht)){Aa(Ht)||(ae.navigated=!0,ae.restoreHistory(Be,!0));const ui=new li(Be.id,this.urlSerializer.serialize(Be.extractedUrl),Ht.message,Ht.cancellationCode);if(this.events.next(ui),Aa(Ht)){const Di=ae.urlHandlingStrategy.merge(Ht.url,ae.rawUrlTree),rn={skipLocationChange:Be.extras.skipLocationChange,replaceUrl:"eager"===ae.urlUpdateStrategy||ma(Be.source)};ae.scheduleNavigation(Di,Dt,null,rn,{resolve:Be.resolve,reject:Be.reject,promise:Be.promise})}else Be.resolve(!1)}else{ae.restoreHistory(Be,!0);const ui=new gi(Be.id,this.urlSerializer.serialize(Be.extractedUrl),Ht,Be.targetSnapshot??void 0);this.events.next(ui);try{Be.resolve(ae.errorHandler(Ht))}catch(Di){Be.reject(Di)}}return L.E}))}))}cancelNavigationTransition(ae,Be,ut){const Lt=new li(ae.id,this.urlSerializer.serialize(ae.extractedUrl),Be,ut);this.events.next(Lt),ae.resolve(!1)}}return ve.\u0275fac=function(ae){return new(ae||ve)},ve.\u0275prov=t.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})();function ma(ve){return ve!==Dt}let ka=(()=>{class ve{buildTitle(ae){let Be,ut=ae.root;for(;void 0!==ut;)Be=this.getResolvedTitleForRoute(ut)??Be,ut=ut.children.find(Lt=>Lt.outlet===G);return Be}getResolvedTitleForRoute(ae){return ae.data[ge]}}return ve.\u0275fac=function(ae){return new(ae||ve)},ve.\u0275prov=t.Yz7({token:ve,factory:function(){return(0,t.f3M)(ha)},providedIn:"root"}),ve})(),ha=(()=>{class ve extends ka{constructor(ae){super(),this.title=ae}updateTitle(ae){const Be=this.buildTitle(ae);void 0!==Be&&this.title.setTitle(Be)}}return ve.\u0275fac=function(ae){return new(ae||ve)(t.LFG(O.Dx))},ve.\u0275prov=t.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),ua=(()=>{class ve{}return ve.\u0275fac=function(ae){return new(ae||ve)},ve.\u0275prov=t.Yz7({token:ve,factory:function(){return(0,t.f3M)(Da)},providedIn:"root"}),ve})();class ra{shouldDetach(we){return!1}store(we,ae){}shouldAttach(we){return!1}retrieve(we){return null}shouldReuseRoute(we,ae){return we.routeConfig===ae.routeConfig}}let Da=(()=>{class ve extends ra{}return ve.\u0275fac=function(){let we;return function(Be){return(we||(we=t.n5z(ve)))(Be||ve)}}(),ve.\u0275prov=t.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})();const Tr=new t.OlP("",{providedIn:"root",factory:()=>({})});let hr=(()=>{class ve{}return ve.\u0275fac=function(ae){return new(ae||ve)},ve.\u0275prov=t.Yz7({token:ve,factory:function(){return(0,t.f3M)(ho)},providedIn:"root"}),ve})(),ho=(()=>{class ve{shouldProcessUrl(ae){return!0}extract(ae){return ae}merge(ae,Be){return ae}}return ve.\u0275fac=function(ae){return new(ae||ve)},ve.\u0275prov=t.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})();function ol(ve){throw ve}function Wo(ve,we,ae){return we.parse("/")}const Ul={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Nc={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ar=(()=>{class ve{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,t.f3M)(t.c2e),this.isNgZoneEnabled=!1,this.options=(0,t.f3M)(Tr,{optional:!0})||{},this.errorHandler=this.options.errorHandler||ol,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Wo,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,t.f3M)(hr),this.routeReuseStrategy=(0,t.f3M)(ua),this.urlCreationStrategy=(0,t.f3M)(_a),this.titleStrategy=(0,t.f3M)(ka),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=Oe((0,t.f3M)(Si,{optional:!0})??[]),this.navigationTransitions=(0,t.f3M)(da),this.urlSerializer=(0,t.f3M)(X),this.location=(0,t.f3M)(V.Ye),this.isNgZoneEnabled=(0,t.f3M)(t.R0b)instanceof t.R0b&&t.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new ht,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Pr(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(ae=>{this.lastSuccessfulId=ae.id,this.currentPageId=this.browserPageId??0},ae=>{this.console.warn(`Unhandled Navigation Error: ${ae}`)})}resetRootComponentType(ae){this.routerState.root.component=ae,this.navigationTransitions.rootComponentType=ae}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const ae=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Dt,ae)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(ae=>{const Be="popstate"===ae.type?"popstate":"hashchange";"popstate"===Be&&setTimeout(()=>{this.navigateToSyncWithBrowser(ae.url,Be,ae.state)},0)}))}navigateToSyncWithBrowser(ae,Be,ut){const Lt={replaceUrl:!0},Ht=ut?.navigationId?ut:null;if(ut){const Di={...ut};delete Di.navigationId,delete Di.\u0275routerPageId,0!==Object.keys(Di).length&&(Lt.state=Di)}const ui=this.parseUrl(ae);this.scheduleNavigation(ui,Be,Ht,Lt)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(ae){this.config=ae.map(wr),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(ae,Be={}){const{relativeTo:ut,queryParams:Lt,fragment:Ht,queryParamsHandling:ui,preserveFragment:Di}=Be,rn=Di?this.currentUrlTree.fragment:Ht;let an=null;switch(ui){case"merge":an={...this.currentUrlTree.queryParams,...Lt};break;case"preserve":an=this.currentUrlTree.queryParams;break;default:an=Lt||null}return null!==an&&(an=this.removeEmptyProps(an)),this.urlCreationStrategy.createUrlTree(ut,this.routerState,this.currentUrlTree,ae,an,rn??null)}navigateByUrl(ae,Be={skipLocationChange:!1}){const ut=vt(ae)?ae:this.parseUrl(ae),Lt=this.urlHandlingStrategy.merge(ut,this.rawUrlTree);return this.scheduleNavigation(Lt,Dt,null,Be)}navigate(ae,Be={skipLocationChange:!1}){return function Gl(ve){for(let we=0;we{const Lt=ae[ut];return null!=Lt&&(Be[ut]=Lt),Be},{})}scheduleNavigation(ae,Be,ut,Lt,Ht){if(this.disposed)return Promise.resolve(!1);let ui,Di,rn,an;return Ht?(ui=Ht.resolve,Di=Ht.reject,rn=Ht.promise):rn=new Promise((fa,ar)=>{ui=fa,Di=ar}),an="computed"===this.canceledNavigationResolution?ut&&ut.\u0275routerPageId?ut.\u0275routerPageId:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:an,source:Be,restoredState:ut,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:ae,extras:Lt,resolve:ui,reject:Di,promise:rn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),rn.catch(fa=>Promise.reject(fa))}setBrowserUrl(ae,Be){const ut=this.urlSerializer.serialize(ae);if(this.location.isCurrentPathEqualTo(ut)||Be.extras.replaceUrl){const Ht={...Be.extras.state,...this.generateNgRouterState(Be.id,this.browserPageId)};this.location.replaceState(ut,"",Ht)}else{const Lt={...Be.extras.state,...this.generateNgRouterState(Be.id,Be.targetPageId)};this.location.go(ut,"",Lt)}}restoreHistory(ae,Be=!1){if("computed"===this.canceledNavigationResolution){const Lt=this.currentPageId-(this.browserPageId??this.currentPageId);0!==Lt?this.location.historyGo(Lt):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===Lt&&(this.resetState(ae),this.browserUrlTree=ae.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(Be&&this.resetState(ae),this.resetUrlToCurrentUrlTree())}resetState(ae){this.routerState=ae.currentRouterState,this.currentUrlTree=ae.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,ae.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(ae,Be){return"computed"===this.canceledNavigationResolution?{navigationId:ae,\u0275routerPageId:Be}:{navigationId:ae}}}return ve.\u0275fac=function(ae){return new(ae||ve)},ve.\u0275prov=t.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),Os=(()=>{class ve{constructor(ae,Be,ut,Lt,Ht,ui){this.router=ae,this.route=Be,this.tabIndexAttribute=ut,this.renderer=Lt,this.el=Ht,this.locationStrategy=ui,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new H.x;const Di=Ht.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===Di||"area"===Di,this.isAnchorElement?this.subscription=ae.events.subscribe(rn=>{rn instanceof vi&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(ae){this._preserveFragment=(0,t.D6c)(ae)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(ae){this._skipLocationChange=(0,t.D6c)(ae)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(ae){this._replaceUrl=(0,t.D6c)(ae)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(ae){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",ae)}ngOnChanges(ae){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(ae){null!=ae?(this.commands=Array.isArray(ae)?ae:[ae],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(ae,Be,ut,Lt,Ht){return!!(null===this.urlTree||this.isAnchorElement&&(0!==ae||Be||ut||Lt||Ht||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const ae=null===this.href?null:(0,t.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",ae)}applyAttributeValue(ae,Be){const ut=this.renderer,Lt=this.el.nativeElement;null!==Be?ut.setAttribute(Lt,ae,Be):ut.removeAttribute(Lt,ae)}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:this.preserveFragment})}}return ve.\u0275fac=function(ae){return new(ae||ve)(t.Y36(Ar),t.Y36(jn),t.$8M("tabindex"),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(V.S$))},ve.\u0275dir=t.lG2({type:ve,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(ae,Be){1&ae&&t.NdJ("click",function(Lt){return Be.onClick(Lt.button,Lt.ctrlKey,Lt.shiftKey,Lt.altKey,Lt.metaKey)}),2&ae&&t.uIk("target",Be.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[t.TTD]}),ve})(),Fc=(()=>{class ve{get isActive(){return this._isActive}constructor(ae,Be,ut,Lt,Ht){this.router=ae,this.element=Be,this.renderer=ut,this.cdr=Lt,this.link=Ht,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new t.vpe,this.routerEventsSubscription=ae.events.subscribe(ui=>{ui instanceof vi&&this.update()})}ngAfterContentInit(){(0,_.of)(this.links.changes,(0,_.of)(null)).pipe((0,W.J)()).subscribe(ae=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const ae=[...this.links.toArray(),this.link].filter(Be=>!!Be).map(Be=>Be.onChanges);this.linkInputChangesSubscription=(0,e.D)(ae).pipe((0,W.J)()).subscribe(Be=>{this._isActive!==this.isLinkActive(this.router)(Be)&&this.update()})}set routerLinkActive(ae){const Be=Array.isArray(ae)?ae:ae.split(" ");this.classes=Be.filter(ut=>!!ut)}ngOnChanges(ae){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const ae=this.hasActiveLinks();this._isActive!==ae&&(this._isActive=ae,this.cdr.markForCheck(),this.classes.forEach(Be=>{ae?this.renderer.addClass(this.element.nativeElement,Be):this.renderer.removeClass(this.element.nativeElement,Be)}),ae&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(ae))})}isLinkActive(ae){const Be=function sl(ve){return!!ve.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return ut=>!!ut.urlTree&&ae.isActive(ut.urlTree,Be)}hasActiveLinks(){const ae=this.isLinkActive(this.router);return this.link&&ae(this.link)||this.links.some(ae)}}return ve.\u0275fac=function(ae){return new(ae||ve)(t.Y36(Ar),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(Os,8))},ve.\u0275dir=t.lG2({type:ve,selectors:[["","routerLinkActive",""]],contentQueries:function(ae,Be,ut){if(1&ae&&t.Suo(ut,Os,5),2&ae){let Lt;t.iGM(Lt=t.CRH())&&(Be.links=Lt)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[t.TTD]}),ve})();class cl{}let Wl=(()=>{class ve{constructor(ae,Be,ut,Lt,Ht){this.router=ae,this.injector=ut,this.preloadingStrategy=Lt,this.loader=Ht}setUpPreloading(){this.subscription=this.router.events.pipe((0,ee.h)(ae=>ae instanceof vi),(0,ie.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(ae,Be){const ut=[];for(const Lt of Be){Lt.providers&&!Lt._injector&&(Lt._injector=(0,t.MMx)(Lt.providers,ae,`Route: ${Lt.path}`));const Ht=Lt._injector??ae,ui=Lt._loadedInjector??Ht;(Lt.loadChildren&&!Lt._loadedRoutes&&void 0===Lt.canLoad||Lt.loadComponent&&!Lt._loadedComponent)&&ut.push(this.preloadConfig(Ht,Lt)),(Lt.children||Lt._loadedRoutes)&&ut.push(this.processRoutes(ui,Lt.children??Lt._loadedRoutes))}return(0,e.D)(ut).pipe((0,W.J)())}preloadConfig(ae,Be){return this.preloadingStrategy.preload(Be,()=>{let ut;ut=Be.loadChildren&&void 0===Be.canLoad?this.loader.loadChildren(ae,Be):(0,_.of)(null);const Lt=ut.pipe((0,me.z)(Ht=>null===Ht?(0,_.of)(void 0):(Be._loadedRoutes=Ht.routes,Be._loadedInjector=Ht.injector,this.processRoutes(Ht.injector??ae,Ht.routes))));if(Be.loadComponent&&!Be._loadedComponent){const Ht=this.loader.loadComponent(Be);return(0,e.D)([Lt,Ht]).pipe((0,W.J)())}return Lt})}}return ve.\u0275fac=function(ae){return new(ae||ve)(t.LFG(Ar),t.LFG(t.Sil),t.LFG(t.lqb),t.LFG(cl),t.LFG(Pi))},ve.\u0275prov=t.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})();const Hc=new t.OlP("");let Ks=(()=>{class ve{constructor(ae,Be,ut,Lt,Ht={}){this.urlSerializer=ae,this.transitions=Be,this.viewportScroller=ut,this.zone=Lt,this.options=Ht,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Ht.scrollPositionRestoration=Ht.scrollPositionRestoration||"disabled",Ht.anchorScrolling=Ht.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(ae=>{ae instanceof Ot?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=ae.navigationTrigger,this.restoredId=ae.restoredState?ae.restoredState.navigationId:0):ae instanceof vi&&(this.lastId=ae.id,this.scheduleScrollEvent(ae,this.urlSerializer.parse(ae.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(ae=>{ae instanceof xi&&(ae.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(ae.position):ae.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(ae.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(ae,Be){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new xi(ae,"popstate"===this.lastSource?this.store[this.restoredId]:null,Be))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return ve.\u0275fac=function(ae){t.$Z()},ve.\u0275prov=t.Yz7({token:ve,factory:ve.\u0275fac}),ve})();var tr=(()=>((tr=tr||{})[tr.COMPLETE=0]="COMPLETE",tr[tr.FAILED=1]="FAILED",tr[tr.REDIRECTING=2]="REDIRECTING",tr))();const Ps=!1;function Jr(ve,we){return{\u0275kind:ve,\u0275providers:we}}const ll=new t.OlP("",{providedIn:"root",factory:()=>!1});function uc(){const ve=(0,t.f3M)(t.zs3);return we=>{const ae=ve.get(t.z2F);if(we!==ae.components[0])return;const Be=ve.get(Ar),ut=ve.get(ts);1===ve.get(uo)&&Be.initialNavigation(),ve.get(Yo,null,t.XFs.Optional)?.setUpPreloading(),ve.get(Hc,null,t.XFs.Optional)?.init(),Be.resetRootComponentType(ae.componentTypes[0]),ut.closed||(ut.next(),ut.complete(),ut.unsubscribe())}}const ts=new t.OlP(Ps?"bootstrap done indicator":"",{factory:()=>new H.x}),uo=new t.OlP(Ps?"initial navigation":"",{providedIn:"root",factory:()=>1});function Vc(){let ve=[];return ve=Ps?[{provide:t.Xts,multi:!0,useFactory:()=>{const we=(0,t.f3M)(Ar);return()=>we.events.subscribe(ae=>{console.group?.(`Router Event: ${ae.constructor.name}`),console.log(function Hi(ve){if(!("type"in ve))return`Unknown Router Event: ${ve.constructor.name}`;switch(ve.type){case 14:return`ActivationEnd(path: '${ve.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${ve.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${ve.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${ve.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${ve.id}, url: '${ve.url}', urlAfterRedirects: '${ve.urlAfterRedirects}', state: ${ve.state}, shouldActivate: ${ve.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${ve.id}, url: '${ve.url}', urlAfterRedirects: '${ve.urlAfterRedirects}', state: ${ve.state})`;case 2:return`NavigationCancel(id: ${ve.id}, url: '${ve.url}')`;case 16:return`NavigationSkipped(id: ${ve.id}, url: '${ve.url}')`;case 1:return`NavigationEnd(id: ${ve.id}, url: '${ve.url}', urlAfterRedirects: '${ve.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${ve.id}, url: '${ve.url}', error: ${ve.error})`;case 0:return`NavigationStart(id: ${ve.id}, url: '${ve.url}')`;case 6:return`ResolveEnd(id: ${ve.id}, url: '${ve.url}', urlAfterRedirects: '${ve.urlAfterRedirects}', state: ${ve.state})`;case 5:return`ResolveStart(id: ${ve.id}, url: '${ve.url}', urlAfterRedirects: '${ve.urlAfterRedirects}', state: ${ve.state})`;case 10:return`RouteConfigLoadEnd(path: ${ve.route.path})`;case 9:return`RouteConfigLoadStart(path: ${ve.route.path})`;case 4:return`RoutesRecognized(id: ${ve.id}, url: '${ve.url}', urlAfterRedirects: '${ve.urlAfterRedirects}', state: ${ve.state})`;case 15:return`Scroll(anchor: '${ve.anchor}', position: '${ve.position?`${ve.position[0]}, ${ve.position[1]}`:null}')`}}(ae)),console.log(ae),console.groupEnd?.()})}}]:[],Jr(1,ve)}const Yo=new t.OlP(Ps?"router preloader":"");function fc(ve){return Jr(0,[{provide:Yo,useExisting:Wl},{provide:cl,useExisting:ve}])}const ir=!1,hl=new t.OlP(ir?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),Bc=[V.Ye,{provide:X,useClass:mt},Ar,Wa,{provide:jn,useFactory:function Ga(ve){return ve.routerState.root},deps:[Ar]},Pi,ir?{provide:ll,useValue:!0}:[]];function ul(){return new t.PXZ("Router",Ar)}let c2=(()=>{class ve{constructor(ae){}static forRoot(ae,Be){return{ngModule:ve,providers:[Bc,ir&&Be?.enableTracing?Vc().\u0275providers:[],{provide:Si,multi:!0,useValue:ae},{provide:hl,useFactory:nr,deps:[[Ar,new t.FiY,new t.tp0]]},{provide:Tr,useValue:Be||{}},Be?.useHash?{provide:V.S$,useClass:V.Do}:{provide:V.S$,useClass:V.b0},{provide:Hc,useFactory:()=>{const ve=(0,t.f3M)(V.EM),we=(0,t.f3M)(t.R0b),ae=(0,t.f3M)(Tr),Be=(0,t.f3M)(da),ut=(0,t.f3M)(X);return ae.scrollOffset&&ve.setOffset(ae.scrollOffset),new Ks(ut,Be,ve,we,ae)}},Be?.preloadingStrategy?fc(Be.preloadingStrategy).\u0275providers:[],{provide:t.PXZ,multi:!0,useFactory:ul},Be?.initialNavigation?Uc(Be):[],[{provide:jo,useFactory:uc},{provide:t.tb,multi:!0,useExisting:jo}]]}}static forChild(ae){return{ngModule:ve,providers:[{provide:Si,multi:!0,useValue:ae}]}}}return ve.\u0275fac=function(ae){return new(ae||ve)(t.LFG(hl,8))},ve.\u0275mod=t.oAB({type:ve}),ve.\u0275inj=t.cJS({imports:[gr]}),ve})();function nr(ve){if(ir&&ve)throw new t.vHH(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Uc(ve){return["disabled"===ve.initialNavigation?Jr(3,[{provide:t.ip1,multi:!0,useFactory:()=>{const we=(0,t.f3M)(Ar);return()=>{we.setUpLocationChangeListener()}}},{provide:uo,useValue:2}]).\u0275providers:[],"enabledBlocking"===ve.initialNavigation?Jr(2,[{provide:uo,useValue:0},{provide:t.ip1,multi:!0,deps:[t.zs3],useFactory:we=>{const ae=we.get(V.V_,Promise.resolve());return()=>ae.then(()=>new Promise(Be=>{const ut=we.get(Ar),Lt=we.get(ts);(function Zo(ve,we){ve.events.pipe((0,ee.h)(ae=>ae instanceof vi||ae instanceof li||ae instanceof gi||ae instanceof mi),(0,Y.U)(ae=>ae instanceof vi||ae instanceof mi?tr.COMPLETE:ae instanceof li&&(0===ae.code||1===ae.code)?tr.REDIRECTING:tr.FAILED),(0,ee.h)(ae=>ae!==tr.REDIRECTING),(0,Q.q)(1)).subscribe(()=>{we()})})(ut,()=>{Be(!0)}),we.get(da).afterPreactivation=()=>(Be(!0),Lt.closed?(0,_.of)(void 0):Lt),ut.initialNavigation()}))}}]).\u0275providers:[]]}const jo=new t.OlP(ir?"Router Initializer":"")},2216:(We,q,m)=>{"use strict";m.d(q,{BN:()=>Wn,uH:()=>ze});var t=m(4650);function e(ne,te){var Te=Object.keys(ne);if(Object.getOwnPropertySymbols){var tt=Object.getOwnPropertySymbols(ne);te&&(tt=tt.filter(function(Ne){return Object.getOwnPropertyDescriptor(ne,Ne).enumerable})),Te.push.apply(Te,tt)}return Te}function _(ne){for(var te=1;tene.length)&&(te=ne.length);for(var Te=0,tt=new Array(te);Te0;)te+=ii[62*Math.random()|0];return te}function ot(ne){for(var te=[],Te=(ne||[]).length>>>0;Te--;)te[Te]=ne[Te];return te}function ft(ne){return ne.classList?ot(ne.classList):(ne.getAttribute("class")||"").split(" ").filter(function(te){return te})}function St(ne){return"".concat(ne).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function $e(ne){return Object.keys(ne||{}).reduce(function(te,Te){return te+"".concat(Te,": ").concat(ne[Te].trim(),";")},"")}function _t(ne){return ne.size!==$t.size||ne.x!==$t.x||ne.y!==$t.y||ne.rotate!==$t.rotate||ne.flipX||ne.flipY}var Et=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-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-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 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-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: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\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: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\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@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 -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\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 z-index: var(--fa-stack-z-index, auto);\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: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';function At(){var ne=at,te=ye,Te=$.cssPrefix,tt=$.replacementClass,Ne=Et;if(Te!==ne||tt!==te){var Rt=new RegExp("\\.".concat(ne,"\\-"),"g"),ni=new RegExp("\\--".concat(ne,"\\-"),"g"),ti=new RegExp("\\.".concat(te),"g");Ne=Ne.replace(Rt,".".concat(Te,"-")).replace(ni,"--".concat(Te,"-")).replace(ti,".".concat(tt))}return Ne}var Qt=!1;function zi(){$.autoAddCss&&!Qt&&(function Vt(ne){if(ne&&x){var te=l.createElement("style");te.setAttribute("type","text/css"),te.innerHTML=ne;for(var Te=l.head.childNodes,tt=null,Ne=Te.length-1;Ne>-1;Ne--){var Rt=Te[Ne],ni=(Rt.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(ni)>-1&&(tt=Rt)}l.head.insertBefore(te,tt)}}(At()),Qt=!0)}var Ni={mixout:function(){return{dom:{css:At,insertCss:zi}}},hooks:function(){return{beforeDOMElementCreation:function(){zi()},beforeI2svg:function(){zi()}}}},Mi=f||{};Mi[nt]||(Mi[nt]={}),Mi[nt].styles||(Mi[nt].styles={}),Mi[nt].hooks||(Mi[nt].hooks={}),Mi[nt].shims||(Mi[nt].shims=[]);var Gi=Mi[nt],Xe=[],Se=!1;function Zt(ne){var te=ne.tag,Te=ne.attributes,tt=void 0===Te?{}:Te,Ne=ne.children,Rt=void 0===Ne?[]:Ne;return"string"==typeof ne?St(ne):"<".concat(te," ").concat(function gt(ne){return Object.keys(ne||{}).reduce(function(te,Te){return te+"".concat(Te,'="').concat(St(ne[Te]),'" ')},"").trim()}(tt),">").concat(Rt.map(Zt).join(""),"")}function si(ne,te,Te){if(ne&&ne[te]&&ne[te][Te])return{prefix:te,iconName:Te,icon:ne[te][Te]}}x&&((Se=(l.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(l.readyState))||l.addEventListener("DOMContentLoaded",function ne(){l.removeEventListener("DOMContentLoaded",ne),Se=1,Xe.map(function(te){return te()})}));var Oi=function(te,Te,tt,Ne){var bi,Si,Pi,Rt=Object.keys(te),ni=Rt.length,ti=void 0!==Ne?function(te,Te){return function(tt,Ne,Rt,ni){return te.call(Te,tt,Ne,Rt,ni)}}(Te,Ne):Te;for(void 0===tt?(bi=1,Pi=te[Rt[0]]):(bi=0,Pi=tt);bi=55296&&Ne<=56319&&Te2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,Ne=void 0!==tt&&tt,Rt=Yt(te);"function"!=typeof Gi.hooks.addPack||Ne?Gi.styles[ne]=_(_({},Gi.styles[ne]||{}),Rt):Gi.hooks.addPack(ne,Yt(te)),"fas"===ne&&qt("fa",te)}var dt,Dt,Bt,Ot=Gi.styles,vi=Gi.shims,li=(d(dt={},Ve,Object.values(lt[Ve])),d(dt,Qe,Object.values(lt[Qe])),dt),mi=null,gi={},Ui={},Un={},Dn={},oa={},Ea=(d(Dt={},Ve,Object.keys(rt[Ve])),d(Dt,Qe,Object.keys(rt[Qe])),Dt);var Jt=function(){var te=function(Rt){return Oi(Ot,function(ni,ti,bi){return ni[bi]=Oi(ti,Rt,{}),ni},{})};gi=te(function(Ne,Rt,ni){return Rt[3]&&(Ne[Rt[3]]=ni),Rt[2]&&Rt[2].filter(function(bi){return"number"==typeof bi}).forEach(function(bi){Ne[bi.toString(16)]=ni}),Ne}),Ui=te(function(Ne,Rt,ni){return Ne[ni]=ni,Rt[2]&&Rt[2].filter(function(bi){return"string"==typeof bi}).forEach(function(bi){Ne[bi]=ni}),Ne}),oa=te(function(Ne,Rt,ni){var ti=Rt[2];return Ne[ni]=ni,ti.forEach(function(bi){Ne[bi]=ni}),Ne});var Te="far"in Ot||$.autoFetchSvg,tt=Oi(vi,function(Ne,Rt){var ni=Rt[0],ti=Rt[1],bi=Rt[2];return"far"===ti&&!Te&&(ti="fas"),"string"==typeof ni&&(Ne.names[ni]={prefix:ti,iconName:bi}),"number"==typeof ni&&(Ne.unicodes[ni.toString(16)]={prefix:ti,iconName:bi}),Ne},{names:{},unicodes:{}});Un=tt.names,Dn=tt.unicodes,mi=Hn($.styleDefault,{family:$.familyDefault})};function pi(ne,te){return(gi[ne]||{})[te]}function ri(ne,te){return(oa[ne]||{})[te]}function xi(ne){return Un[ne]||{prefix:null,iconName:null}}function ln(){return mi}(function Le(ne){ue.push(ne)})(function(ne){mi=Hn(ne.styleDefault,{family:$.familyDefault})}),Jt();var Gn=function(){return{prefix:null,iconName:null,rest:[]}};function Hn(ne){var Te=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,tt=void 0===Te?Ve:Te;return Ke[tt][ne]||Ke[tt][rt[tt][ne]]||(ne in Gi.styles?ne:null)||null}var _a=(d(Bt={},Ve,Object.keys(lt[Ve])),d(Bt,Qe,Object.keys(lt[Qe])),Bt);function Tn(ne){var te,tt=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,Ne=void 0!==tt&&tt,Rt=(d(te={},Ve,"".concat($.cssPrefix,"-").concat(Ve)),d(te,Qe,"".concat($.cssPrefix,"-").concat(Qe)),te),ni=null,ti=Ve;(ne.includes(Rt[Ve])||ne.some(function(Si){return _a[Ve].includes(Si)}))&&(ti=Ve),(ne.includes(Rt[Qe])||ne.some(function(Si){return _a[Qe].includes(Si)}))&&(ti=Qe);var bi=ne.reduce(function(Si,Pi){var qi=function er(ne,te){var Te=te.split("-"),tt=Te[0],Ne=Te.slice(1).join("-");return tt!==ne||""===Ne||function ta(ne){return~it.indexOf(ne)}(Ne)?null:Ne}($.cssPrefix,Pi);if(Ot[Pi]?(Pi=li[ti].includes(Pi)?Ut[ti][Pi]:Pi,ni=Pi,Si.prefix=Pi):Ea[ti].indexOf(Pi)>-1?(ni=Pi,Si.prefix=Hn(Pi,{family:ti})):qi?Si.iconName=qi:Pi!==$.replacementClass&&Pi!==Rt[Ve]&&Pi!==Rt[Qe]&&Si.rest.push(Pi),!Ne&&Si.prefix&&Si.iconName){var tn="fa"===ni?xi(Si.iconName):{},hn=ri(Si.prefix,Si.iconName);tn.prefix&&(ni=null),Si.iconName=tn.iconName||hn||Si.iconName,Si.prefix=tn.prefix||Si.prefix,"far"===Si.prefix&&!Ot.far&&Ot.fas&&!$.autoFetchSvg&&(Si.prefix="fas")}return Si},Gn());return(ne.includes("fa-brands")||ne.includes("fab"))&&(bi.prefix="fab"),(ne.includes("fa-duotone")||ne.includes("fad"))&&(bi.prefix="fad"),!bi.prefix&&ti===Qe&&(Ot.fass||$.autoFetchSvg)&&(bi.prefix="fass",bi.iconName=ri(bi.prefix,bi.iconName)||bi.iconName),("fa"===bi.prefix||"fa"===ni)&&(bi.prefix=ln()||"fas"),bi}var Vn=function(){function ne(){(function y(ne,te){if(!(ne instanceof te))throw new TypeError("Cannot call a class as a function")})(this,ne),this.definitions={}}return function P(ne,te,Te){te&&h(ne.prototype,te),Te&&h(ne,Te),Object.defineProperty(ne,"prototype",{writable:!1})}(ne,[{key:"add",value:function(){for(var Te=this,tt=arguments.length,Ne=new Array(tt),Rt=0;Rt0&&Pi.forEach(function(qi){"string"==typeof qi&&(Te[ti][qi]=Si)}),Te[ti][bi]=Si}),Te}}]),ne}(),xo=[],zn={},ia={},Co=Object.keys(ia);function xr(ne,te){for(var Te=arguments.length,tt=new Array(Te>2?Te-2:0),Ne=2;Ne1?te-1:0),tt=1;tt0&&void 0!==arguments[0]?arguments[0]:{};return x?(jn("beforeI2svg",te),Ta("pseudoElements2svg",te),Ta("i2svg",te)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Te=te.autoReplaceSvgRoot;!1===$.autoReplaceSvg&&($.autoReplaceSvg=!0),$.observeMutations=!0,function wt(ne){x&&(Se?setTimeout(ne,0):Xe.push(ne))}(function(){Io({autoReplaceSvgRoot:Te}),jn("watch",te)})}},wa={noAuto:function(){$.autoReplaceSvg=!1,$.observeMutations=!1,jn("noAuto")},config:$,dom:Yr,parse:{icon:function(te){if(null===te)return null;if("object"===T(te)&&te.prefix&&te.iconName)return{prefix:te.prefix,iconName:ri(te.prefix,te.iconName)||te.iconName};if(Array.isArray(te)&&2===te.length){var Te=0===te[1].indexOf("fa-")?te[1].slice(3):te[1],tt=Hn(te[0]);return{prefix:tt,iconName:ri(tt,Te)||Te}}if("string"==typeof te&&(te.indexOf("".concat($.cssPrefix,"-"))>-1||te.match(ht))){var Ne=Tn(te.split(" "),{skipLookups:!0});return{prefix:Ne.prefix||ln(),iconName:ri(Ne.prefix,Ne.iconName)||Ne.iconName}}if("string"==typeof te){var Rt=ln();return{prefix:Rt,iconName:ri(Rt,te)||te}}}},library:Rr,findIconDefinition:Do,toHtml:Zt},Io=function(){var Te=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,tt=void 0===Te?l:Te;(Object.keys(Gi.styles).length>0||$.autoFetchSvg)&&x&&$.autoReplaceSvg&&wa.dom.i2svg({node:tt})};function no(ne,te){return Object.defineProperty(ne,"abstract",{get:te}),Object.defineProperty(ne,"html",{get:function(){return ne.abstract.map(function(tt){return Zt(tt)})}}),Object.defineProperty(ne,"node",{get:function(){if(x){var tt=l.createElement("div");return tt.innerHTML=ne.html,tt.children}}}),ne}function or(ne){var te=ne.icons,Te=te.main,tt=te.mask,Ne=ne.prefix,Rt=ne.iconName,ni=ne.transform,ti=ne.symbol,bi=ne.title,Si=ne.maskId,Pi=ne.titleId,qi=ne.extra,tn=ne.watchable,hn=void 0!==tn&&tn,da=tt.found?tt:Te,ma=da.width,ka=da.height,ha="fak"===Ne,ua=[$.replacementClass,Rt?"".concat($.cssPrefix,"-").concat(Rt):""].filter(function(zr){return-1===qi.classes.indexOf(zr)}).filter(function(zr){return""!==zr||!!zr}).concat(qi.classes).join(" "),ra={children:[],attributes:_(_({},qi.attributes),{},{"data-prefix":Ne,"data-icon":Rt,class:ua,role:qi.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(ma," ").concat(ka)})},Da=ha&&!~qi.classes.indexOf("fa-fw")?{width:"".concat(ma/ka*16*.0625,"em")}:{};hn&&(ra.attributes[xe]=""),bi&&(ra.children.push({tag:"title",attributes:{id:ra.attributes["aria-labelledby"]||"title-".concat(Pi||pt())},children:[bi]}),delete ra.attributes.title);var Ma=_(_({},ra),{},{prefix:Ne,iconName:Rt,main:Te,mask:tt,maskId:Si,transform:ni,symbol:ti,styles:_(_({},Da),qi.styles)}),Tr=tt.found&&Te.found?Ta("generateAbstractMask",Ma)||{children:[],attributes:{}}:Ta("generateAbstractIcon",Ma)||{children:[],attributes:{}},ho=Tr.attributes;return Ma.children=Tr.children,Ma.attributes=ho,ti?function pr(ne){var Te=ne.iconName,tt=ne.children,Ne=ne.attributes,Rt=ne.symbol,ni=!0===Rt?"".concat(ne.prefix,"-").concat($.cssPrefix,"-").concat(Te):Rt;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:_(_({},Ne),{},{id:ni}),children:tt}]}]}(Ma):function jr(ne){var te=ne.children,Te=ne.main,tt=ne.mask,Ne=ne.attributes,Rt=ne.styles,ni=ne.transform;if(_t(ni)&&Te.found&&!tt.found){var Si={x:Te.width/Te.height/2,y:.5};Ne.style=$e(_(_({},Rt),{},{"transform-origin":"".concat(Si.x+ni.x/16,"em ").concat(Si.y+ni.y/16,"em")}))}return[{tag:"svg",attributes:Ne,children:te}]}(Ma)}function ao(ne){var te=ne.content,Te=ne.width,tt=ne.height,Ne=ne.transform,Rt=ne.title,ni=ne.extra,ti=ne.watchable,bi=void 0!==ti&&ti,Si=_(_(_({},ni.attributes),Rt?{title:Rt}:{}),{},{class:ni.classes.join(" ")});bi&&(Si[xe]="");var Pi=_({},ni.styles);_t(Ne)&&(Pi.transform=function He(ne){var te=ne.transform,Te=ne.width,Ne=ne.height,Rt=void 0===Ne?Ue:Ne,ni=ne.startCentered,ti=void 0!==ni&&ni,bi="";return bi+=ti&&n?"translate(".concat(te.x/Je-(void 0===Te?Ue:Te)/2,"em, ").concat(te.y/Je-Rt/2,"em) "):ti?"translate(calc(-50% + ".concat(te.x/Je,"em), calc(-50% + ").concat(te.y/Je,"em)) "):"translate(".concat(te.x/Je,"em, ").concat(te.y/Je,"em) "),(bi+="scale(".concat(te.size/Je*(te.flipX?-1:1),", ").concat(te.size/Je*(te.flipY?-1:1),") "))+"rotate(".concat(te.rotate,"deg) ")}({transform:Ne,startCentered:!0,width:Te,height:tt}),Pi["-webkit-transform"]=Pi.transform);var qi=$e(Pi);qi.length>0&&(Si.style=qi);var tn=[];return tn.push({tag:"span",attributes:Si,children:[te]}),Rt&&tn.push({tag:"span",attributes:{class:"sr-only"},children:[Rt]}),tn}var ko=Gi.styles;function Aa(ne){var te=ne[0],Te=ne[1],Rt=L(ne.slice(4),1)[0];return{found:!0,width:te,height:Te,icon:Array.isArray(Rt)?{tag:"g",attributes:{class:"".concat($.cssPrefix,"-").concat(mt.GROUP)},children:[{tag:"path",attributes:{class:"".concat($.cssPrefix,"-").concat(mt.SECONDARY),fill:"currentColor",d:Rt[0]}},{tag:"path",attributes:{class:"".concat($.cssPrefix,"-").concat(mt.PRIMARY),fill:"currentColor",d:Rt[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:Rt}}}}var Kr={found:!1,width:512,height:512};function Wa(ne,te){var Te=te;return"fa"===te&&null!==$.styleDefault&&(te=ln()),new Promise(function(tt,Ne){if(Ta("missingIconAbstract"),"fa"===Te){var ni=xi(ne)||{};ne=ni.iconName||ne,te=ni.prefix||te}if(ne&&te&&ko[te]&&ko[te][ne])return tt(Aa(ko[te][ne]));(function Fr(ne,te){!pe&&!$.showMissingIcons&&ne&&console.error('Icon with name "'.concat(ne,'" and prefix "').concat(te,'" is missing.'))})(ne,te),tt(_(_({},Kr),{},{icon:$.showMissingIcons&&ne&&Ta("missingIconAbstract")||{}}))})}var Hr=function(){},sa=$.measurePerformance&&I&&I.mark&&I.measure?I:{mark:Hr,measure:Hr},za='FA "6.4.2"',gr=function(te){sa.mark("".concat(za," ").concat(te," ends")),sa.measure("".concat(za," ").concat(te),"".concat(za," ").concat(te," begins"),"".concat(za," ").concat(te," ends"))},Cr={begin:function(te){return sa.mark("".concat(za," ").concat(te," begins")),function(){return gr(te)}},end:gr},Oo=function(){};function oo(ne){return"string"==typeof(ne.getAttribute?ne.getAttribute(xe):null)}function Po(ne){return l.createElementNS("http://www.w3.org/2000/svg",ne)}function wo(ne){return l.createElement(ne)}function Va(ne){var Te=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,tt=void 0===Te?"svg"===ne.tag?Po:wo:Te;if("string"==typeof ne)return l.createTextNode(ne);var Ne=tt(ne.tag);return Object.keys(ne.attributes||[]).forEach(function(ni){Ne.setAttribute(ni,ne.attributes[ni])}),(ne.children||[]).forEach(function(ni){Ne.appendChild(Va(ni,{ceFn:tt}))}),Ne}var Qn={replace:function(te){var Te=te[0];if(Te.parentNode)if(te[1].forEach(function(Ne){Te.parentNode.insertBefore(Va(Ne),Te)}),null===Te.getAttribute(xe)&&$.keepOriginalSource){var tt=l.createComment(function wr(ne){var te=" ".concat(ne.outerHTML," ");return"".concat(te,"Font Awesome fontawesome.com ")}(Te));Te.parentNode.replaceChild(tt,Te)}else Te.remove()},nest:function(te){var Te=te[0],tt=te[1];if(~ft(Te).indexOf($.replacementClass))return Qn.replace(te);var Ne=new RegExp("".concat($.cssPrefix,"-.*"));if(delete tt[0].attributes.id,tt[0].attributes.class){var Rt=tt[0].attributes.class.split(" ").reduce(function(ti,bi){return bi===$.replacementClass||bi.match(Ne)?ti.toSvg.push(bi):ti.toNode.push(bi),ti},{toNode:[],toSvg:[]});tt[0].attributes.class=Rt.toSvg.join(" "),0===Rt.toNode.length?Te.removeAttribute("class"):Te.setAttribute("class",Rt.toNode.join(" "))}var ni=tt.map(function(ti){return Zt(ti)}).join("\n");Te.setAttribute(xe,""),Te.innerHTML=ni}};function On(ne){ne()}function lr(ne,te){var Te="function"==typeof te?te:Oo;if(0===ne.length)Te();else{var tt=On;$.mutateApproach===he&&(tt=f.requestAnimationFrame||On),tt(function(){var Ne=function cr(){return!0===$.autoReplaceSvg?Qn.replace:Qn[$.autoReplaceSvg]||Qn.replace}(),Rt=Cr.begin("mutate");ne.map(Ne),Rt(),Te()})}}var Mr=!1;function ya(){Mr=!0}function Ro(){Mr=!1}var Ft=null;function hi(ne){if(v&&$.observeMutations){var te=ne.treeCallback,Te=void 0===te?Oo:te,tt=ne.nodeCallback,Ne=void 0===tt?Oo:tt,Rt=ne.pseudoElementsCallback,ni=void 0===Rt?Oo:Rt,ti=ne.observeMutationsRoot,bi=void 0===ti?l:ti;Ft=new v(function(Si){if(!Mr){var Pi=ln();ot(Si).forEach(function(qi){if("childList"===qi.type&&qi.addedNodes.length>0&&!oo(qi.addedNodes[0])&&($.searchPseudoElements&&ni(qi.target),Te(qi.target)),"attributes"===qi.type&&qi.target.parentNode&&$.searchPseudoElements&&ni(qi.target.parentNode),"attributes"===qi.type&&oo(qi.target)&&~X.indexOf(qi.attributeName))if("class"===qi.attributeName&&function Qr(ne){var te=ne.getAttribute?ne.getAttribute(oe):null,Te=ne.getAttribute?ne.getAttribute(Fe):null;return te&&Te}(qi.target)){var tn=Tn(ft(qi.target)),da=tn.iconName;qi.target.setAttribute(oe,tn.prefix||Pi),da&&qi.target.setAttribute(Fe,da)}else(function qr(ne){return ne&&ne.classList&&ne.classList.contains&&ne.classList.contains($.replacementClass)})(qi.target)&&Ne(qi.target)})}}),x&&Ft.observe(bi,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function ca(ne){var te=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},Te=function Ii(ne){var te=ne.getAttribute("data-prefix"),Te=ne.getAttribute("data-icon"),tt=void 0!==ne.innerText?ne.innerText.trim():"",Ne=Tn(ft(ne));return Ne.prefix||(Ne.prefix=ln()),te&&Te&&(Ne.prefix=te,Ne.iconName=Te),Ne.iconName&&Ne.prefix||(Ne.prefix&&tt.length>0&&(Ne.iconName=function Kt(ne,te){return(Ui[ne]||{})[te]}(Ne.prefix,ne.innerText)||pi(Ne.prefix,en(ne.innerText))),!Ne.iconName&&$.autoFetchSvg&&ne.firstChild&&ne.firstChild.nodeType===Node.TEXT_NODE&&(Ne.iconName=ne.firstChild.data)),Ne}(ne),tt=Te.iconName,Ne=Te.prefix,Rt=Te.rest,ni=function nn(ne){var te=ot(ne.attributes).reduce(function(Ne,Rt){return"class"!==Ne.name&&"style"!==Ne.name&&(Ne[Rt.name]=Rt.value),Ne},{}),Te=ne.getAttribute("title"),tt=ne.getAttribute("data-fa-title-id");return $.autoA11y&&(Te?te["aria-labelledby"]="".concat($.replacementClass,"-title-").concat(tt||pt()):(te["aria-hidden"]="true",te.focusable="false")),te}(ne),ti=xr("parseNodeAttributes",{},ne),bi=te.styleParser?function ai(ne){var te=ne.getAttribute("style"),Te=[];return te&&(Te=te.split(";").reduce(function(tt,Ne){var Rt=Ne.split(":"),ni=Rt[0],ti=Rt.slice(1);return ni&&ti.length>0&&(tt[ni]=ti.join(":").trim()),tt},{})),Te}(ne):[];return _({iconName:tt,title:ne.getAttribute("title"),titleId:ne.getAttribute("data-fa-title-id"),prefix:Ne,transform:$t,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:Rt,styles:bi,attributes:ni}},ti)}var Wi=Gi.styles;function _n(ne){var te="nest"===$.autoReplaceSvg?ca(ne,{styleParser:!1}):ca(ne);return~te.extra.classes.indexOf(Ge)?Ta("generateLayersText",ne,te):Ta("generateSvgReplacementMutation",ne,te)}var Za=new Set;function ct(ne){var te=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!x)return Promise.resolve();var Te=l.documentElement.classList,tt=function(qi){return Te.add("".concat(De,"-").concat(qi))},Ne=function(qi){return Te.remove("".concat(De,"-").concat(qi))},Rt=$.autoFetchSvg?Za:Pe.map(function(Pi){return"fa-".concat(Pi)}).concat(Object.keys(Wi));Rt.includes("fa")||Rt.push("fa");var ni=[".".concat(Ge,":not([").concat(xe,"])")].concat(Rt.map(function(Pi){return".".concat(Pi,":not([").concat(xe,"])")})).join(", ");if(0===ni.length)return Promise.resolve();var ti=[];try{ti=ot(ne.querySelectorAll(ni))}catch{}if(!(ti.length>0))return Promise.resolve();tt("pending"),Ne("complete");var bi=Cr.begin("onTree"),Si=ti.reduce(function(Pi,qi){try{var tn=_n(qi);tn&&Pi.push(tn)}catch(hn){pe||"MissingIcon"===hn.name&&console.error(hn)}return Pi},[]);return new Promise(function(Pi,qi){Promise.all(Si).then(function(tn){lr(tn,function(){tt("active"),tt("complete"),Ne("pending"),"function"==typeof te&&te(),bi(),Pi()})}).catch(function(tn){bi(),qi(tn)})})}function et(ne){var te=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;_n(ne).then(function(Te){Te&&lr([Te],te)})}Pe.map(function(ne){Za.add("fa-".concat(ne))}),Object.keys(rt[Ve]).map(Za.add.bind(Za)),Object.keys(rt[Qe]).map(Za.add.bind(Za)),Za=D(Za);var kt=function(te){var Te=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},tt=Te.transform,Ne=void 0===tt?$t:tt,Rt=Te.symbol,ni=void 0!==Rt&&Rt,ti=Te.mask,bi=void 0===ti?null:ti,Si=Te.maskId,Pi=void 0===Si?null:Si,qi=Te.title,tn=void 0===qi?null:qi,hn=Te.titleId,da=void 0===hn?null:hn,ma=Te.classes,ka=void 0===ma?[]:ma,ha=Te.attributes,ua=void 0===ha?{}:ha,ra=Te.styles,Da=void 0===ra?{}:ra;if(te){var Ma=te.prefix,Tr=te.iconName,hr=te.icon;return no(_({type:"icon"},te),function(){return jn("beforeDOMElementCreation",{iconDefinition:te,params:Te}),$.autoA11y&&(tn?ua["aria-labelledby"]="".concat($.replacementClass,"-title-").concat(da||pt()):(ua["aria-hidden"]="true",ua.focusable="false")),or({icons:{main:Aa(hr),mask:bi?Aa(bi.icon):{found:!1,width:null,height:null,icon:{}}},prefix:Ma,iconName:Tr,transform:_(_({},$t),Ne),symbol:ni,title:tn,maskId:Pi,titleId:da,extra:{attributes:ua,styles:Da,classes:ka}})})}},wi={mixout:function(){return{icon:(ne=kt,function(te){var Te=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},tt=(te||{}).icon?te:Do(te||{}),Ne=Te.mask;return Ne&&(Ne=(Ne||{}).icon?Ne:Do(Ne||{})),ne(tt,_(_({},Te),{},{mask:Ne}))})};var ne},hooks:function(){return{mutationObserverCallbacks:function(Te){return Te.treeCallback=ct,Te.nodeCallback=et,Te}}},provides:function(te){te.i2svg=function(Te){var tt=Te.node,Rt=Te.callback;return ct(void 0===tt?l:tt,void 0===Rt?function(){}:Rt)},te.generateSvgReplacementMutation=function(Te,tt){var Ne=tt.iconName,Rt=tt.title,ni=tt.titleId,ti=tt.prefix,bi=tt.transform,Si=tt.symbol,Pi=tt.mask,qi=tt.maskId,tn=tt.extra;return new Promise(function(hn,da){Promise.all([Wa(Ne,ti),Pi.iconName?Wa(Pi.iconName,Pi.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(ma){var ka=L(ma,2);hn([Te,or({icons:{main:ka[0],mask:ka[1]},prefix:ti,iconName:Ne,transform:bi,symbol:Si,maskId:qi,title:Rt,titleId:ni,extra:tn,watchable:!0})])}).catch(da)})},te.generateAbstractIcon=function(Te){var Si,tt=Te.children,Ne=Te.attributes,Rt=Te.main,ni=Te.transform,bi=$e(Te.styles);return bi.length>0&&(Ne.style=bi),_t(ni)&&(Si=Ta("generateAbstractTransformGrouping",{main:Rt,transform:ni,containerWidth:Rt.width,iconWidth:Rt.width})),tt.push(Si||Rt.icon),{children:tt,attributes:Ne}}}},on={mixout:function(){return{layer:function(Te){var tt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ne=tt.classes,Rt=void 0===Ne?[]:Ne;return no({type:"layer"},function(){jn("beforeDOMElementCreation",{assembler:Te,params:tt});var ni=[];return Te(function(ti){Array.isArray(ti)?ti.map(function(bi){ni=ni.concat(bi.abstract)}):ni=ni.concat(ti.abstract)}),[{tag:"span",attributes:{class:["".concat($.cssPrefix,"-layers")].concat(D(Rt)).join(" ")},children:ni}]})}}}},va={mixout:function(){return{counter:function(Te){var tt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ne=tt.title,Rt=void 0===Ne?null:Ne,ni=tt.classes,ti=void 0===ni?[]:ni,bi=tt.attributes,Si=void 0===bi?{}:bi,Pi=tt.styles,qi=void 0===Pi?{}:Pi;return no({type:"counter",content:Te},function(){return jn("beforeDOMElementCreation",{content:Te,params:tt}),function ro(ne){var te=ne.content,Te=ne.title,tt=ne.extra,Ne=_(_(_({},tt.attributes),Te?{title:Te}:{}),{},{class:tt.classes.join(" ")}),Rt=$e(tt.styles);Rt.length>0&&(Ne.style=Rt);var ni=[];return ni.push({tag:"span",attributes:Ne,children:[te]}),Te&&ni.push({tag:"span",attributes:{class:"sr-only"},children:[Te]}),ni}({content:Te.toString(),title:Rt,extra:{attributes:Si,styles:qi,classes:["".concat($.cssPrefix,"-layers-counter")].concat(D(ti))}})})}}}},Ei={mixout:function(){return{text:function(Te){var tt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ne=tt.transform,Rt=void 0===Ne?$t:Ne,ni=tt.title,ti=void 0===ni?null:ni,bi=tt.classes,Si=void 0===bi?[]:bi,Pi=tt.attributes,qi=void 0===Pi?{}:Pi,tn=tt.styles,hn=void 0===tn?{}:tn;return no({type:"text",content:Te},function(){return jn("beforeDOMElementCreation",{content:Te,params:tt}),ao({content:Te,transform:_(_({},$t),Rt),title:ti,extra:{attributes:qi,styles:hn,classes:["".concat($.cssPrefix,"-layers-text")].concat(D(Si))}})})}}},provides:function(te){te.generateLayersText=function(Te,tt){var Ne=tt.title,Rt=tt.transform,ni=tt.extra,ti=null,bi=null;if(n){var Si=parseInt(getComputedStyle(Te).fontSize,10),Pi=Te.getBoundingClientRect();ti=Pi.width/Si,bi=Pi.height/Si}return $.autoA11y&&!Ne&&(ni.attributes["aria-hidden"]="true"),Promise.resolve([Te,ao({content:Te.innerHTML,width:ti,height:bi,transform:Rt,title:Ne,extra:ni,watchable:!0})])}}},An=new RegExp('"',"ug"),so=[1105920,1112319];function Ba(ne,te){var Te="".concat(Oe).concat(te.replace(":","-"));return new Promise(function(tt,Ne){if(null!==ne.getAttribute(Te))return tt();var ni=ot(ne.children).filter(function(hr){return hr.getAttribute(fe)===te})[0],ti=f.getComputedStyle(ne,te),bi=ti.getPropertyValue("font-family").match(yt),Si=ti.getPropertyValue("font-weight"),Pi=ti.getPropertyValue("content");if(ni&&!bi)return ne.removeChild(ni),tt();if(bi&&"none"!==Pi&&""!==Pi){var qi=ti.getPropertyValue("content"),tn=~["Sharp"].indexOf(bi[2])?Qe:Ve,hn=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(bi[2])?Ke[tn][bi[2].toLowerCase()]:be[tn][Si],da=function Ws(ne){var te=ne.replace(An,""),Te=function Yi(ne,te){var Ne,Te=ne.length,tt=ne.charCodeAt(te);return tt>=55296&&tt<=56319&&Te>te+1&&(Ne=ne.charCodeAt(te+1))>=56320&&Ne<=57343?1024*(tt-55296)+Ne-56320+65536:tt}(te,0),tt=Te>=so[0]&&Te<=so[1],Ne=2===te.length&&te[0]===te[1];return{value:en(Ne?te[0]:te),isSecondary:tt||Ne}}(qi),ma=da.value,ka=da.isSecondary,ha=bi[0].startsWith("FontAwesome"),ua=pi(hn,ma),ra=ua;if(ha){var Da=function Hi(ne){var te=Dn[ne],Te=pi("fas",ne);return te||(Te?{prefix:"fas",iconName:Te}:null)||{prefix:null,iconName:null}}(ma);Da.iconName&&Da.prefix&&(ua=Da.iconName,hn=Da.prefix)}if(!ua||ka||ni&&ni.getAttribute(oe)===hn&&ni.getAttribute(Fe)===ra)tt();else{ne.setAttribute(Te,ra),ni&&ne.removeChild(ni);var Ma=function aa(){return{iconName:null,title:null,titleId:null,prefix:null,transform:$t,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),Tr=Ma.extra;Tr.attributes[fe]=te,Wa(ua,hn).then(function(hr){var ho=or(_(_({},Ma),{},{icons:{main:hr,mask:Gn()},prefix:hn,iconName:ra,extra:Tr,watchable:!0})),zr=l.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===te?ne.insertBefore(zr,ne.firstChild):ne.appendChild(zr),zr.outerHTML=ho.map(function(ol){return Zt(ol)}).join("\n"),ne.removeAttribute(Te),tt()}).catch(Ne)}}else tt()})}function ds(ne){return Promise.all([Ba(ne,"::before"),Ba(ne,"::after")])}function Uo(ne){return!(ne.parentNode===document.head||~Me.indexOf(ne.tagName.toUpperCase())||ne.getAttribute(fe)||ne.parentNode&&"svg"===ne.parentNode.tagName)}function Sr(ne){if(x)return new Promise(function(te,Te){var tt=ot(ne.querySelectorAll("*")).filter(Uo).map(ds),Ne=Cr.begin("searchPseudoElements");ya(),Promise.all(tt).then(function(){Ne(),Ro(),te()}).catch(function(){Ne(),Ro(),Te()})})}var Ds=!1,Zs=function(te){return te.toLowerCase().split(" ").reduce(function(tt,Ne){var Rt=Ne.toLowerCase().split("-"),ni=Rt[0],ti=Rt.slice(1).join("-");if(ni&&"h"===ti)return tt.flipX=!0,tt;if(ni&&"v"===ti)return tt.flipY=!0,tt;if(ti=parseFloat(ti),isNaN(ti))return tt;switch(ni){case"grow":tt.size=tt.size+ti;break;case"shrink":tt.size=tt.size-ti;break;case"left":tt.x=tt.x-ti;break;case"right":tt.x=tt.x+ti;break;case"up":tt.y=tt.y-ti;break;case"down":tt.y=tt.y+ti;break;case"rotate":tt.rotate=tt.rotate+ti}return tt},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},qn={x:0,y:0,width:"100%",height:"100%"};function ki(ne){return ne.attributes&&(ne.attributes.fill||!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(ne.attributes.fill="black"),ne}!function Pr(ne,te){var Te=te.mixoutsTo;xo=ne,zn={},Object.keys(ia).forEach(function(tt){-1===Co.indexOf(tt)&&delete ia[tt]}),xo.forEach(function(tt){var Ne=tt.mixout?tt.mixout():{};if(Object.keys(Ne).forEach(function(ni){"function"==typeof Ne[ni]&&(Te[ni]=Ne[ni]),"object"===T(Ne[ni])&&Object.keys(Ne[ni]).forEach(function(ti){Te[ni]||(Te[ni]={}),Te[ni][ti]=Ne[ni][ti]})}),tt.hooks){var Rt=tt.hooks();Object.keys(Rt).forEach(function(ni){zn[ni]||(zn[ni]=[]),zn[ni].push(Rt[ni])})}tt.provides&&tt.provides(ia)})}([Ni,wi,on,va,Ei,{hooks:function(){return{mutationObserverCallbacks:function(Te){return Te.pseudoElementsCallback=Sr,Te}}},provides:function(te){te.pseudoElements2svg=function(Te){var tt=Te.node;$.searchPseudoElements&&Sr(void 0===tt?l:tt)}}},{mixout:function(){return{dom:{unwatch:function(){ya(),Ds=!0}}}},hooks:function(){return{bootstrap:function(){hi(xr("mutationObserverCallbacks",{}))},noAuto:function(){!function Ct(){Ft&&Ft.disconnect()}()},watch:function(Te){var tt=Te.observeMutationsRoot;Ds?Ro():hi(xr("mutationObserverCallbacks",{observeMutationsRoot:tt}))}}}},{mixout:function(){return{parse:{transform:function(Te){return Zs(Te)}}}},hooks:function(){return{parseNodeAttributes:function(Te,tt){var Ne=tt.getAttribute("data-fa-transform");return Ne&&(Te.transform=Zs(Ne)),Te}}},provides:function(te){te.generateAbstractTransformGrouping=function(Te){var tt=Te.main,Ne=Te.transform,ni=Te.iconWidth,ti={transform:"translate(".concat(Te.containerWidth/2," 256)")},bi="translate(".concat(32*Ne.x,", ").concat(32*Ne.y,") "),Si="scale(".concat(Ne.size/16*(Ne.flipX?-1:1),", ").concat(Ne.size/16*(Ne.flipY?-1:1),") "),Pi="rotate(".concat(Ne.rotate," 0 0)"),hn={outer:ti,inner:{transform:"".concat(bi," ").concat(Si," ").concat(Pi)},path:{transform:"translate(".concat(ni/2*-1," -256)")}};return{tag:"g",attributes:_({},hn.outer),children:[{tag:"g",attributes:_({},hn.inner),children:[{tag:tt.icon.tag,children:tt.icon.children,attributes:_(_({},tt.icon.attributes),hn.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(Te,tt){var Ne=tt.getAttribute("data-fa-mask"),Rt=Ne?Tn(Ne.split(" ").map(function(ni){return ni.trim()})):Gn();return Rt.prefix||(Rt.prefix=ln()),Te.mask=Rt,Te.maskId=tt.getAttribute("data-fa-mask-id"),Te}}},provides:function(te){te.generateAbstractMask=function(Te){var ne,tt=Te.children,Ne=Te.attributes,Rt=Te.main,ni=Te.mask,ti=Te.maskId,Pi=Rt.icon,tn=ni.icon,hn=function vt(ne){var te=ne.transform,tt=ne.iconWidth,Ne={transform:"translate(".concat(ne.containerWidth/2," 256)")},Rt="translate(".concat(32*te.x,", ").concat(32*te.y,") "),ni="scale(".concat(te.size/16*(te.flipX?-1:1),", ").concat(te.size/16*(te.flipY?-1:1),") "),ti="rotate(".concat(te.rotate," 0 0)");return{outer:Ne,inner:{transform:"".concat(Rt," ").concat(ni," ").concat(ti)},path:{transform:"translate(".concat(tt/2*-1," -256)")}}}({transform:Te.transform,containerWidth:ni.width,iconWidth:Rt.width}),da={tag:"rect",attributes:_(_({},qn),{},{fill:"white"})},ma=Pi.children?{children:Pi.children.map(ki)}:{},ka={tag:"g",attributes:_({},hn.inner),children:[ki(_({tag:Pi.tag,attributes:_(_({},Pi.attributes),hn.path)},ma))]},ha={tag:"g",attributes:_({},hn.outer),children:[ka]},ua="mask-".concat(ti||pt()),ra="clip-".concat(ti||pt()),Da={tag:"mask",attributes:_(_({},qn),{},{id:ua,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[da,ha]},Ma={tag:"defs",children:[{tag:"clipPath",attributes:{id:ra},children:(ne=tn,"g"===ne.tag?ne.children:[ne])},Da]};return tt.push(Ma,{tag:"rect",attributes:_({fill:"currentColor","clip-path":"url(#".concat(ra,")"),mask:"url(#".concat(ua,")")},qn)}),{children:tt,attributes:Ne}}}},{provides:function(te){var Te=!1;f.matchMedia&&(Te=f.matchMedia("(prefers-reduced-motion: reduce)").matches),te.missingIconAbstract=function(){var tt=[],Ne={fill:"currentColor"},Rt={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};tt.push({tag:"path",attributes:_(_({},Ne),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var ni=_(_({},Rt),{},{attributeName:"opacity"}),ti={tag:"circle",attributes:_(_({},Ne),{},{cx:"256",cy:"364",r:"28"}),children:[]};return Te||ti.children.push({tag:"animate",attributes:_(_({},Rt),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:_(_({},ni),{},{values:"1;0;1;1;0;1;"})}),tt.push(ti),tt.push({tag:"path",attributes:_(_({},Ne),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:Te?[]:[{tag:"animate",attributes:_(_({},ni),{},{values:"1;0;0;0;0;1;"})}]}),Te||tt.push({tag:"path",attributes:_(_({},Ne),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:_(_({},ni),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:tt}}}},{hooks:function(){return{parseNodeAttributes:function(Te,tt){var Ne=tt.getAttribute("data-fa-symbol");return Te.symbol=null!==Ne&&(""===Ne||Ne),Te}}}}],{mixoutsTo:wa});var lo=wa.parse,Fo=wa.icon,js=m(1481);const Ya=["*"],sn=ne=>{const te={[`fa-${ne.animation}`]:null!=ne.animation&&!ne.animation.startsWith("spin"),"fa-spin":"spin"===ne.animation||"spin-reverse"===ne.animation,"fa-spin-pulse":"spin-pulse"===ne.animation||"spin-pulse-reverse"===ne.animation,"fa-spin-reverse":"spin-reverse"===ne.animation||"spin-pulse-reverse"===ne.animation,"fa-pulse":"spin-pulse"===ne.animation||"spin-pulse-reverse"===ne.animation,"fa-fw":ne.fixedWidth,"fa-border":ne.border,"fa-inverse":ne.inverse,"fa-layers-counter":ne.counter,"fa-flip-horizontal":"horizontal"===ne.flip||"both"===ne.flip,"fa-flip-vertical":"vertical"===ne.flip||"both"===ne.flip,[`fa-${ne.size}`]:null!==ne.size,[`fa-rotate-${ne.rotate}`]:null!==ne.rotate,[`fa-pull-${ne.pull}`]:null!==ne.pull,[`fa-stack-${ne.stackItemSize}`]:null!=ne.stackItemSize};return Object.keys(te).map(Te=>te[Te]?Te:null).filter(Te=>Te)};let la=(()=>{class ne{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return ne.\u0275fac=function(Te){return new(Te||ne)},ne.\u0275prov=t.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),fs=(()=>{class ne{constructor(){this.definitions={}}addIcons(...Te){for(const tt of Te){tt.prefix in this.definitions||(this.definitions[tt.prefix]={}),this.definitions[tt.prefix][tt.iconName]=tt;for(const Ne of tt.icon[2])"string"==typeof Ne&&(this.definitions[tt.prefix][Ne]=tt)}}addIconPacks(...Te){for(const tt of Te){const Ne=Object.keys(tt).map(Rt=>tt[Rt]);this.addIcons(...Ne)}}getIconDefinition(Te,tt){return Te in this.definitions&&tt in this.definitions[Te]?this.definitions[Te][tt]:null}}return ne.\u0275fac=function(Te){return new(Te||ne)},ne.\u0275prov=t.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),Rc=(()=>{class ne{constructor(){this.stackItemSize="1x"}ngOnChanges(Te){if("size"in Te)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 ne.\u0275fac=function(Te){return new(Te||ne)},ne.\u0275dir=t.lG2({type:ne,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[t.TTD]}),ne})(),hc=(()=>{class ne{constructor(Te,tt){this.renderer=Te,this.elementRef=tt}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(Te){"size"in Te&&(null!=Te.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${Te.size.currentValue}`),null!=Te.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${Te.size.previousValue}`))}}return ne.\u0275fac=function(Te){return new(Te||ne)(t.Y36(t.Qsj),t.Y36(t.SBq))},ne.\u0275cmp=t.Xpm({type:ne,selectors:[["fa-stack"]],inputs:{size:"size"},features:[t.TTD],ngContentSelectors:Ya,decls:1,vars:0,template:function(Te,tt){1&Te&&(t.F$t(),t.Hsn(0))},encapsulation:2}),ne})(),Wn=(()=>{class ne{constructor(Te,tt,Ne,Rt,ni){this.sanitizer=Te,this.config=tt,this.iconLibrary=Ne,this.stackItem=Rt,this.classes=[],null!=ni&&null==Rt&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}set spin(Te){this.animation=Te?"spin":void 0}set pulse(Te){this.animation=Te?"spin-pulse":void 0}ngOnChanges(Te){if(null!=this.icon||null!=this.config.fallbackIcon){if(Te){const Ne=this.findIconDefinition(null!=this.icon?this.icon:this.config.fallbackIcon);if(null!=Ne){const Rt=this.buildParams();this.renderIcon(Ne,Rt)}}}else(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})()}render(){this.ngOnChanges({})}findIconDefinition(Te){const tt=((ne,te)=>(ne=>void 0!==ne.prefix&&void 0!==ne.iconName)(ne)?ne:"string"==typeof ne?{prefix:te,iconName:ne}:{prefix:ne[0],iconName:ne[1]})(Te,this.config.defaultPrefix);return"icon"in tt?tt:this.iconLibrary.getIconDefinition(tt.prefix,tt.iconName)??((ne=>{throw new Error(`Could not find icon with iconName=${ne.iconName} and prefix=${ne.prefix} in the icon library.`)})(tt),null)}buildParams(){const Te={flip:this.flip,animation:this.animation,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},tt="string"==typeof this.transform?lo.transform(this.transform):this.transform;return{title:this.title,transform:tt,classes:[...sn(Te),...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(Te,tt){const Ne=Fo(Te,tt);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(Ne.html.join("\n"))}}return ne.\u0275fac=function(Te){return new(Te||ne)(t.Y36(js.H7),t.Y36(la),t.Y36(fs),t.Y36(Rc,8),t.Y36(hc,8))},ne.\u0275cmp=t.Xpm({type:ne,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(Te,tt){2&Te&&(t.Ikx("innerHTML",tt.renderedIconHTML,t.oJD),t.uIk("title",tt.title))},inputs:{icon:"icon",title:"title",animation:"animation",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:[t.TTD],decls:0,vars:0,template:function(Te,tt){},encapsulation:2}),ne})(),ze=(()=>{class ne{}return ne.\u0275fac=function(Te){return new(Te||ne)},ne.\u0275mod=t.oAB({type:ne}),ne.\u0275inj=t.cJS({}),ne})()},2687:(We,q,m)=>{"use strict";m.d(q,{Acd:()=>z0,Aq:()=>Ks,B$L:()=>qn,BDt:()=>c,CgH:()=>Tp,CvI:()=>L3,DL8:()=>Y7,FJU:()=>h_,FVb:()=>Hc,FlN:()=>Lm,FpQ:()=>cu,HLz:()=>S_,KOR:()=>p0,Krp:()=>Vh,Mdf:()=>h3,N2j:()=>ri,NBC:()=>$_,OS1:()=>Df,Psp:()=>D1,Pyt:()=>d_,Sbq:()=>it,SoD:()=>Aa,Ssp:()=>av,SuH:()=>I4,TmZ:()=>j_,USL:()=>h7,Vei:()=>Qo,Vfw:()=>f6,X5K:()=>y0,XsY:()=>qi,aj4:()=>eo,b7W:()=>h8,byT:()=>tn,co4:()=>N6,d63:()=>Oa,dLy:()=>P_,dT$:()=>Cf,eHv:()=>iv,gNZ:()=>Ti,hkK:()=>li,hnx:()=>pv,kXW:()=>eg,kZ_:()=>K_,koM:()=>m1,mh3:()=>V4,nNP:()=>n5,q7m:()=>P8,qO$:()=>w7,r8p:()=>l5,sqG:()=>ym,vqe:()=>R7,wn1:()=>D_,wyP:()=>g1,xf3:()=>Xs});var it={prefix:"fas",iconName:"angles-down",icon:[448,512,["angle-double-down"],"f103","M246.6 470.6c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L224 402.7 361.4 265.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-160 160zm160-352l-160 160c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L224 210.7 361.4 73.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3z"]},li={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3zM625 177L497 305c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L591 143c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},ri={prefix:"fas",iconName:"box-archive",icon:[512,512,["archive"],"f187","M32 32H480c17.7 0 32 14.3 32 32V96c0 17.7-14.3 32-32 32H32C14.3 128 0 113.7 0 96V64C0 46.3 14.3 32 32 32zm0 128H480V416c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V160zm128 80c0 8.8 7.2 16 16 16H336c8.8 0 16-7.2 16-16s-7.2-16-16-16H176c-8.8 0-16 7.2-16 16z"]},Aa={prefix:"fas",iconName:"pen-ruler",icon:[512,512,["pencil-ruler"],"f5ae","M469.3 19.3l23.4 23.4c25 25 25 65.5 0 90.5l-56.4 56.4L322.3 75.7l56.4-56.4c25-25 65.5-25 90.5 0zM44.9 353.2L299.7 98.3 413.7 212.3 158.8 467.1c-6.7 6.7-15.1 11.6-24.2 14.2l-104 29.7c-8.4 2.4-17.4 .1-23.6-6.1s-8.5-15.2-6.1-23.6l29.7-104c2.6-9.2 7.5-17.5 14.2-24.2zM249.4 103.4L103.4 249.4 16 161.9c-18.7-18.7-18.7-49.1 0-67.9L94.1 16c18.7-18.7 49.1-18.7 67.9 0l19.8 19.8c-.3 .3-.7 .6-1 .9l-64 64c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0l64-64c.3-.3 .6-.7 .9-1l45.1 45.1zM408.6 262.6l45.1 45.1c-.3 .3-.7 .6-1 .9l-64 64c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0l64-64c.3-.3 .6-.7 .9-1L496 350.1c18.7 18.7 18.7 49.1 0 67.9L417.9 496c-18.7 18.7-49.1 18.7-67.9 0l-87.4-87.4L408.6 262.6z"]},qn={prefix:"fas",iconName:"unlock-keyhole",icon:[448,512,["unlock-alt"],"f13e","M224 64c-44.2 0-80 35.8-80 80v48H384c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80V144C80 64.5 144.5 0 224 0c57.5 0 107 33.7 130.1 82.3c7.6 16 .8 35.1-15.2 42.6s-35.1 .8-42.6-15.2C283.4 82.6 255.9 64 224 64zm32 320c17.7 0 32-14.3 32-32s-14.3-32-32-32H192c-17.7 0-32 14.3-32 32s14.3 32 32 32h64z"]},qi={prefix:"fas",iconName:"paintbrush",icon:[576,512,[128396,"paint-brush"],"f1fc","M339.3 367.1c27.3-3.9 51.9-19.4 67.2-42.9L568.2 74.1c12.6-19.5 9.4-45.3-7.6-61.2S517.7-4.4 499.1 9.6L262.4 187.2c-24 18-38.2 46.1-38.4 76.1L339.3 367.1zm-19.6 25.4l-116-104.4C143.9 290.3 96 339.6 96 400c0 3.9 .2 7.8 .6 11.6C98.4 429.1 86.4 448 68.8 448H64c-17.7 0-32 14.3-32 32s14.3 32 32 32H208c61.9 0 112-50.1 112-112c0-2.5-.1-5-.2-7.5z"]},tn={prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M144 144v48H304V144c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192V144C80 64.5 144.5 0 224 0s144 64.5 144 144v48h16c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80z"]},Hc={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M144 0a80 80 0 1 1 0 160A80 80 0 1 1 144 0zM512 0a80 80 0 1 1 0 160A80 80 0 1 1 512 0zM0 298.7C0 239.8 47.8 192 106.7 192h42.7c15.9 0 31 3.5 44.6 9.7c-1.3 7.2-1.9 14.7-1.9 22.3c0 38.2 16.8 72.5 43.3 96c-.2 0-.4 0-.7 0H21.3C9.6 320 0 310.4 0 298.7zM405.3 320c-.2 0-.4 0-.7 0c26.6-23.5 43.3-57.8 43.3-96c0-7.6-.7-15-1.9-22.3c13.6-6.3 28.7-9.7 44.6-9.7h42.7C592.2 192 640 239.8 640 298.7c0 11.8-9.6 21.3-21.3 21.3H405.3zM224 224a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zM128 485.3C128 411.7 187.7 352 261.3 352H378.7C452.3 352 512 411.7 512 485.3c0 14.7-11.9 26.7-26.7 26.7H154.7c-14.7 0-26.7-11.9-26.7-26.7z"]},Ks={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"]},z0={prefix:"fas",iconName:"bullhorn",icon:[512,512,[128226,128363],"f0a1","M480 32c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9L381.7 53c-48 48-113.1 75-181 75H192 160 64c-35.3 0-64 28.7-64 64v96c0 35.3 28.7 64 64 64l0 128c0 17.7 14.3 32 32 32h64c17.7 0 32-14.3 32-32V352l8.7 0c67.9 0 133 27 181 75l43.6 43.6c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V300.4c18.6-8.8 32-32.5 32-60.4s-13.4-51.6-32-60.4V32zm-64 76.7V240 371.3C357.2 317.8 280.5 288 200.7 288H192V192h8.7c79.8 0 156.5-29.8 215.3-83.3z"]},eo={prefix:"fas",iconName:"money-bill-wave",icon:[576,512,[],"f53a","M0 112.5V422.3c0 18 10.1 35 27 41.3c87 32.5 174 10.3 261-11.9c79.8-20.3 159.6-40.7 239.3-18.9c23 6.3 48.7-9.5 48.7-33.4V89.7c0-18-10.1-35-27-41.3C462 15.9 375 38.1 288 60.3C208.2 80.6 128.4 100.9 48.7 79.1C25.6 72.8 0 88.6 0 112.5zM288 352c-44.2 0-80-43-80-96s35.8-96 80-96s80 43 80 96s-35.8 96-80 96zM64 352c35.3 0 64 28.7 64 64H64V352zm64-208c0 35.3-28.7 64-64 64V144h64zM512 304v64H448c0-35.3 28.7-64 64-64zM448 96h64v64c-35.3 0-64-28.7-64-64z"]},Xs={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm48 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V352c0-35.3-28.7-64-64-64H64zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},m1={prefix:"fas",iconName:"chart-bar",icon:[512,512,["bar-chart"],"f080","M32 32c17.7 0 32 14.3 32 32V400c0 8.8 7.2 16 16 16H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H80c-44.2 0-80-35.8-80-80V64C0 46.3 14.3 32 32 32zm96 96c0-17.7 14.3-32 32-32l192 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-192 0c-17.7 0-32-14.3-32-32zm32 64H288c17.7 0 32 14.3 32 32s-14.3 32-32 32H160c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 96H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H160c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},g1={prefix:"fas",iconName:"window-restore",icon:[512,512,[],"f2d2","M432 64H208c-8.8 0-16 7.2-16 16V96H128V80c0-44.2 35.8-80 80-80H432c44.2 0 80 35.8 80 80V304c0 44.2-35.8 80-80 80H416V320h16c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16zM0 192c0-35.3 28.7-64 64-64H320c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V192zm64 32c0 17.7 14.3 32 32 32H288c17.7 0 32-14.3 32-32s-14.3-32-32-32H96c-17.7 0-32 14.3-32 32z"]},Qo={prefix:"fas",iconName:"burst",icon:[512,512,[],"e4dc","M37.6 4.2C28-2.3 15.2-1.1 7 7s-9.4 21-2.8 30.5l112 163.3L16.6 233.2C6.7 236.4 0 245.6 0 256s6.7 19.6 16.6 22.8l103.1 33.4L66.8 412.8c-4.9 9.3-3.2 20.7 4.3 28.1s18.8 9.2 28.1 4.3l100.6-52.9 33.4 103.1c3.2 9.9 12.4 16.6 22.8 16.6s19.6-6.7 22.8-16.6l33.4-103.1 100.6 52.9c9.3 4.9 20.7 3.2 28.1-4.3s9.2-18.8 4.3-28.1L392.3 312.2l103.1-33.4c9.9-3.2 16.6-12.4 16.6-22.8s-6.7-19.6-16.6-22.8L388.9 198.7l25.7-70.4c3.2-8.8 1-18.6-5.6-25.2s-16.4-8.8-25.2-5.6l-70.4 25.7L278.8 16.6C275.6 6.7 266.4 0 256 0s-19.6 6.7-22.8 16.6l-32.3 99.6L37.6 4.2z"]},Oa={prefix:"fas",iconName:"arrows-turn-right",icon:[448,512,[],"e4c0","M297.4 9.4c12.5-12.5 32.8-12.5 45.3 0l96 96c12.5 12.5 12.5 32.8 0 45.3l-96 96c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L338.7 160H128c-35.3 0-64 28.7-64 64v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V224C0 153.3 57.3 96 128 96H338.7L297.4 54.6c-12.5-12.5-12.5-32.8 0-45.3zm-96 256c12.5-12.5 32.8-12.5 45.3 0l96 96c12.5 12.5 12.5 32.8 0 45.3l-96 96c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 416H96c-17.7 0-32 14.3-32 32v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V448c0-53 43-96 96-96H242.7l-41.4-41.4c-12.5-12.5-12.5-32.8 0-45.3z"]},Vh={prefix:"fas",iconName:"layer-group",icon:[576,512,[],"f5fd","M264.5 5.2c14.9-6.9 32.1-6.9 47 0l218.6 101c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 149.8C37.4 145.8 32 137.3 32 128s5.4-17.9 13.9-21.8L264.5 5.2zM476.9 209.6l53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 277.8C37.4 273.8 32 265.3 32 256s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0l152-70.2zm-152 198.2l152-70.2 53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 405.8C37.4 401.8 32 393.3 32 384s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0z"]},D1={prefix:"fas",iconName:"question",icon:[320,512,[10067,10068,61736],"3f","M80 160c0-35.3 28.7-64 64-64h32c35.3 0 64 28.7 64 64v3.6c0 21.8-11.1 42.1-29.4 53.8l-42.2 27.1c-25.2 16.2-40.4 44.1-40.4 74V320c0 17.7 14.3 32 32 32s32-14.3 32-32v-1.4c0-8.2 4.2-15.8 11-20.2l42.2-27.1c36.6-23.6 58.8-64.1 58.8-107.7V160c0-70.7-57.3-128-128-128H144C73.3 32 16 89.3 16 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm80 320a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},Cf={prefix:"fas",iconName:"code",icon:[640,512,[],"f121","M392.8 1.2c-17-4.9-34.7 5-39.6 22l-128 448c-4.9 17 5 34.7 22 39.6s34.7-5 39.6-22l128-448c4.9-17-5-34.7-22-39.6zm80.6 120.1c-12.5 12.5-12.5 32.8 0 45.3L562.7 256l-89.4 89.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l112-112c12.5-12.5 12.5-32.8 0-45.3l-112-112c-12.5-12.5-32.8-12.5-45.3 0zm-306.7 0c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3l112 112c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256l89.4-89.4c12.5-12.5 12.5-32.8 0-45.3z"]},Df={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240V16.6c0-9 7-16.6 16-16.6C443.7 0 544 100.3 544 224c0 9-7.6 16-16.6 16H304zM32 272C32 150.7 122.1 50.3 239 34.3c9.2-1.3 17 6.1 17 15.4V288L412.5 444.5c6.7 6.7 6.2 17.7-1.5 23.1C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zm526.4 16c9.3 0 16.6 7.8 15.4 17c-7.7 55.9-34.6 105.6-73.9 142.3c-6 5.6-15.4 5.2-21.2-.7L320 288H558.4z"]},p0={prefix:"fas",iconName:"eject",icon:[448,512,[9167],"f052","M224 32c13.5 0 26.3 5.6 35.4 15.6l176 192c12.9 14 16.2 34.3 8.6 51.8S419 320 400 320H48c-19 0-36.3-11.2-43.9-28.7s-4.3-37.7 8.6-51.8l176-192C197.7 37.6 210.5 32 224 32zM0 432c0-26.5 21.5-48 48-48H400c26.5 0 48 21.5 48 48s-21.5 48-48 48H48c-26.5 0-48-21.5-48-48z"]},I4={prefix:"fas",iconName:"signs-post",icon:[512,512,["map-signs"],"f277","M224 32H64C46.3 32 32 46.3 32 64v64c0 17.7 14.3 32 32 32H441.4c4.2 0 8.3-1.7 11.3-4.7l48-48c6.2-6.2 6.2-16.4 0-22.6l-48-48c-3-3-7.1-4.7-11.3-4.7H288c0-17.7-14.3-32-32-32s-32 14.3-32 32zM480 256c0-17.7-14.3-32-32-32H288V192H224v32H70.6c-4.2 0-8.3 1.7-11.3 4.7l-48 48c-6.2 6.2-6.2 16.4 0 22.6l48 48c3 3 7.1 4.7 11.3 4.7H448c17.7 0 32-14.3 32-32V256zM288 480V384H224v96c0 17.7 14.3 32 32 32s32-14.3 32-32z"]},Tp={prefix:"fas",iconName:"screwdriver-wrench",icon:[512,512,["tools"],"f7d9","M78.6 5C69.1-2.4 55.6-1.5 47 7L7 47c-8.5 8.5-9.4 22-2.1 31.6l80 104c4.5 5.9 11.6 9.4 19 9.4h54.1l109 109c-14.7 29-10 65.4 14.3 89.6l112 112c12.5 12.5 32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3l-112-112c-24.2-24.2-60.6-29-89.6-14.3l-109-109V104c0-7.5-3.5-14.5-9.4-19L78.6 5zM19.9 396.1C7.2 408.8 0 426.1 0 444.1C0 481.6 30.4 512 67.9 512c18 0 35.3-7.2 48-19.9L233.7 374.3c-7.8-20.9-9-43.6-3.6-65.1l-61.7-61.7L19.9 396.1zM512 144c0-10.5-1.1-20.7-3.2-30.5c-2.4-11.2-16.1-14.1-24.2-6l-63.9 63.9c-3 3-7.1 4.7-11.3 4.7H352c-8.8 0-16-7.2-16-16V102.6c0-4.2 1.7-8.3 4.7-11.3l63.9-63.9c8.1-8.1 5.2-21.8-6-24.2C388.7 1.1 378.5 0 368 0C288.5 0 224 64.5 224 144l0 .8 85.3 85.3c36-9.1 75.8 .5 104 28.7L429 274.5c49-23 83-72.8 83-130.5zM56 432a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},y0={prefix:"fas",iconName:"wallet",icon:[512,512,[],"f555","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V192c0-35.3-28.7-64-64-64H80c-8.8 0-16-7.2-16-16s7.2-16 16-16H448c17.7 0 32-14.3 32-32s-14.3-32-32-32H64zM416 272a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},V4={prefix:"fas",iconName:"code-branch",icon:[448,512,[],"f126","M80 104a24 24 0 1 0 0-48 24 24 0 1 0 0 48zm80-24c0 32.8-19.7 61-48 73.3v87.8c18.8-10.9 40.7-17.1 64-17.1h96c35.3 0 64-28.7 64-64v-6.7C307.7 141 288 112.8 288 80c0-44.2 35.8-80 80-80s80 35.8 80 80c0 32.8-19.7 61-48 73.3V160c0 70.7-57.3 128-128 128H176c-35.3 0-64 28.7-64 64v6.7c28.3 12.3 48 40.5 48 73.3c0 44.2-35.8 80-80 80s-80-35.8-80-80c0-32.8 19.7-61 48-73.3V352 153.3C19.7 141 0 112.8 0 80C0 35.8 35.8 0 80 0s80 35.8 80 80zm232 0a24 24 0 1 0 -48 0 24 24 0 1 0 48 0zM80 456a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]},cu={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M512 96c0 50.2-59.1 125.1-84.6 155c-3.8 4.4-9.4 6.1-14.5 5H320c-17.7 0-32 14.3-32 32s14.3 32 32 32h96c53 0 96 43 96 96s-43 96-96 96H139.6c8.7-9.9 19.3-22.6 30-36.8c6.3-8.4 12.8-17.6 19-27.2H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-53 0-96-43-96-96s43-96 96-96h39.8c-21-31.5-39.8-67.7-39.8-96c0-53 43-96 96-96s96 43 96 96zM117.1 489.1c-3.8 4.3-7.2 8.1-10.1 11.3l-1.8 2-.2-.2c-6 4.6-14.6 4-20-1.8C59.8 473 0 402.5 0 352c0-53 43-96 96-96s96 43 96 96c0 30-21.1 67-43.5 97.9c-10.7 14.7-21.7 28-30.8 38.5l-.6 .7zM128 352a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM416 128a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},h3={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},Ti={prefix:"fas",iconName:"user-gear",icon:[640,512,["user-cog"],"f4fe","M224 0a128 128 0 1 1 0 256A128 128 0 1 1 224 0zM178.3 304h91.4c11.8 0 23.4 1.2 34.5 3.3c-2.1 18.5 7.4 35.6 21.8 44.8c-16.6 10.6-26.7 31.6-20 53.3c4 12.9 9.4 25.5 16.4 37.6s15.2 23.1 24.4 33c15.7 16.9 39.6 18.4 57.2 8.7v.9c0 9.2 2.7 18.5 7.9 26.3H29.7C13.3 512 0 498.7 0 482.3C0 383.8 79.8 304 178.3 304zM436 218.2c0-7 4.5-13.3 11.3-14.8c10.5-2.4 21.5-3.7 32.7-3.7s22.2 1.3 32.7 3.7c6.8 1.5 11.3 7.8 11.3 14.8v30.6c7.9 3.4 15.4 7.7 22.3 12.8l24.9-14.3c6.1-3.5 13.7-2.7 18.5 2.4c7.6 8.1 14.3 17.2 20.1 27.2s10.3 20.4 13.5 31c2.1 6.7-1.1 13.7-7.2 17.2l-25 14.4c.4 4 .7 8.1 .7 12.3s-.2 8.2-.7 12.3l25 14.4c6.1 3.5 9.2 10.5 7.2 17.2c-3.3 10.6-7.8 21-13.5 31s-12.5 19.1-20.1 27.2c-4.8 5.1-12.5 5.9-18.5 2.4l-24.9-14.3c-6.9 5.1-14.3 9.4-22.3 12.8l0 30.6c0 7-4.5 13.3-11.3 14.8c-10.5 2.4-21.5 3.7-32.7 3.7s-22.2-1.3-32.7-3.7c-6.8-1.5-11.3-7.8-11.3-14.8V454.8c-8-3.4-15.6-7.7-22.5-12.9l-24.7 14.3c-6.1 3.5-13.7 2.7-18.5-2.4c-7.6-8.1-14.3-17.2-20.1-27.2s-10.3-20.4-13.5-31c-2.1-6.7 1.1-13.7 7.2-17.2l24.8-14.3c-.4-4.1-.7-8.2-.7-12.4s.2-8.3 .7-12.4L343.8 325c-6.1-3.5-9.2-10.5-7.2-17.2c3.3-10.6 7.7-21 13.5-31s12.5-19.1 20.1-27.2c4.8-5.1 12.4-5.9 18.5-2.4l24.8 14.3c6.9-5.1 14.5-9.4 22.5-12.9V218.2zm92.1 133.5a48.1 48.1 0 1 0 -96.1 0 48.1 48.1 0 1 0 96.1 0z"]},f6={prefix:"fas",iconName:"angles-up",icon:[448,512,["angle-double-up"],"f102","M246.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L224 109.3 361.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160zm160 352l-160-160c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L224 301.3 361.4 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3z"]},ym={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},Lm={prefix:"fas",iconName:"dumbbell",icon:[640,512,[],"f44b","M96 64c0-17.7 14.3-32 32-32h32c17.7 0 32 14.3 32 32V224v64V448c0 17.7-14.3 32-32 32H128c-17.7 0-32-14.3-32-32V384H64c-17.7 0-32-14.3-32-32V288c-17.7 0-32-14.3-32-32s14.3-32 32-32V160c0-17.7 14.3-32 32-32H96V64zm448 0v64h32c17.7 0 32 14.3 32 32v64c17.7 0 32 14.3 32 32s-14.3 32-32 32v64c0 17.7-14.3 32-32 32H544v64c0 17.7-14.3 32-32 32H480c-17.7 0-32-14.3-32-32V288 224 64c0-17.7 14.3-32 32-32h32c17.7 0 32 14.3 32 32zM416 224v64H224V224H416z"]},L3={prefix:"fas",iconName:"money-bill-1",icon:[576,512,["money-bill-alt"],"f3d1","M64 64C28.7 64 0 92.7 0 128V384c0 35.3 28.7 64 64 64H512c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64H64zm64 320H64V320c35.3 0 64 28.7 64 64zM64 192V128h64c0 35.3-28.7 64-64 64zM448 384c0-35.3 28.7-64 64-64v64H448zm64-192c-35.3 0-64-28.7-64-64h64v64zM176 256a112 112 0 1 1 224 0 112 112 0 1 1 -224 0zm76-48c0 9.7 6.9 17.7 16 19.6V276h-4c-11 0-20 9-20 20s9 20 20 20h24 24c11 0 20-9 20-20s-9-20-20-20h-4V208c0-11-9-20-20-20H272c-11 0-20 9-20 20z"]},N6=L3,h8={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"]},eg={prefix:"fas",iconName:"network-wired",icon:[640,512,[],"f6ff","M256 64H384v64H256V64zM240 0c-26.5 0-48 21.5-48 48v96c0 26.5 21.5 48 48 48h48v32H32c-17.7 0-32 14.3-32 32s14.3 32 32 32h96v32H80c-26.5 0-48 21.5-48 48v96c0 26.5 21.5 48 48 48H240c26.5 0 48-21.5 48-48V368c0-26.5-21.5-48-48-48H192V288H448v32H400c-26.5 0-48 21.5-48 48v96c0 26.5 21.5 48 48 48H560c26.5 0 48-21.5 48-48V368c0-26.5-21.5-48-48-48H512V288h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H352V192h48c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48H240zM96 448V384H224v64H96zm320-64H544v64H416V384z"]},P8={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V274.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V416c0-35.3-28.7-64-64-64H346.5l-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352H64zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},c={prefix:"fas",iconName:"bolt",icon:[448,512,[9889,"zap"],"f0e7","M349.4 44.6c5.9-13.7 1.5-29.7-10.6-38.5s-28.6-8-39.9 1.8l-256 224c-10 8.8-13.6 22.9-8.9 35.3S50.7 288 64 288H175.5L98.6 467.4c-5.9 13.7-1.5 29.7 10.6 38.5s28.6 8 39.9-1.8l256-224c10-8.8 13.6-22.9 8.9-35.3s-16.6-20.7-30-20.7H272.5L349.4 44.6z"]},d_={prefix:"fas",iconName:"arrows-turn-to-dots",icon:[512,512,[],"e4c1","M249.4 25.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3L269.3 96 416 96c53 0 96 43 96 96v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V192c0-17.7-14.3-32-32-32l-146.7 0 25.4 25.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-80-80c-12.5-12.5-12.5-32.8 0-45.3l80-80zm13.3 256l80 80c12.5 12.5 12.5 32.8 0 45.3l-80 80c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 416 96 416c-17.7 0-32 14.3-32 32v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V448c0-53 43-96 96-96l146.7 0-25.4-25.4c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0zM384 384a64 64 0 1 1 128 0 64 64 0 1 1 -128 0zM64 192A64 64 0 1 1 64 64a64 64 0 1 1 0 128z"]},h_={prefix:"fas",iconName:"user-lock",icon:[640,512,[],"f502","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H392.6c-5.4-9.4-8.6-20.3-8.6-32V352c0-2.1 .1-4.2 .3-6.3c-31-26-71-41.7-114.6-41.7H178.3zM528 240c17.7 0 32 14.3 32 32v48H496V272c0-17.7 14.3-32 32-32zm-80 32v48c-17.7 0-32 14.3-32 32V480c0 17.7 14.3 32 32 32H608c17.7 0 32-14.3 32-32V352c0-17.7-14.3-32-32-32V272c0-44.2-35.8-80-80-80s-80 35.8-80 80z"]},S_={prefix:"fas",iconName:"gauge-high",icon:[512,512,[62461,"tachometer-alt","tachometer-alt-fast"],"f625","M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM256 416c35.3 0 64-28.7 64-64c0-17.4-6.9-33.1-18.1-44.6L366 161.7c5.3-12.1-.2-26.3-12.3-31.6s-26.3 .2-31.6 12.3L257.9 288c-.6 0-1.3 0-1.9 0c-35.3 0-64 28.7-64 64s28.7 64 64 64zM176 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM96 288a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm352-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},n5={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"]},D_={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},P_={prefix:"fas",iconName:"receipt",icon:[384,512,[129534],"f543","M14 2.2C22.5-1.7 32.5-.3 39.6 5.8L80 40.4 120.4 5.8c9-7.7 22.3-7.7 31.2 0L192 40.4 232.4 5.8c9-7.7 22.3-7.7 31.2 0L304 40.4 344.4 5.8c7.1-6.1 17.1-7.5 25.6-3.6s14 12.4 14 21.8V488c0 9.4-5.5 17.9-14 21.8s-18.5 2.5-25.6-3.6L304 471.6l-40.4 34.6c-9 7.7-22.3 7.7-31.2 0L192 471.6l-40.4 34.6c-9 7.7-22.3 7.7-31.2 0L80 471.6 39.6 506.2c-7.1 6.1-17.1 7.5-25.6 3.6S0 497.4 0 488V24C0 14.6 5.5 6.1 14 2.2zM96 144c-8.8 0-16 7.2-16 16s7.2 16 16 16H288c8.8 0 16-7.2 16-16s-7.2-16-16-16H96zM80 352c0 8.8 7.2 16 16 16H288c8.8 0 16-7.2 16-16s-7.2-16-16-16H96c-8.8 0-16 7.2-16 16zM96 240c-8.8 0-16 7.2-16 16s7.2 16 16 16H288c8.8 0 16-7.2 16-16s-7.2-16-16-16H96z"]},j_={prefix:"fas",iconName:"diagram-project",icon:[576,512,["project-diagram"],"f542","M0 80C0 53.5 21.5 32 48 32h96c26.5 0 48 21.5 48 48V96H384V80c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H432c-26.5 0-48-21.5-48-48V160H192v16c0 1.7-.1 3.4-.3 5L272 288h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H272c-26.5 0-48-21.5-48-48V336c0-1.7 .1-3.4 .3-5L144 224H48c-26.5 0-48-21.5-48-48V80z"]},K_={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M208 0H332.1c12.7 0 24.9 5.1 33.9 14.1l67.9 67.9c9 9 14.1 21.2 14.1 33.9V336c0 26.5-21.5 48-48 48H208c-26.5 0-48-21.5-48-48V48c0-26.5 21.5-48 48-48zM48 128h80v64H64V448H256V416h64v48c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48z"]},l5={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},$_={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},h7={prefix:"fas",iconName:"percent",icon:[384,512,[62101,62785,"percentage"],"25","M374.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-320 320c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l320-320zM128 128A64 64 0 1 0 0 128a64 64 0 1 0 128 0zM384 384a64 64 0 1 0 -128 0 64 64 0 1 0 128 0z"]},w7={prefix:"fas",iconName:"clock-rotate-left",icon:[512,512,["history"],"f1da","M75 75L41 41C25.9 25.9 0 36.6 0 57.9V168c0 13.3 10.7 24 24 24H134.1c21.4 0 32.1-25.9 17-41l-30.8-30.8C155 85.5 203 64 256 64c106 0 192 86 192 192s-86 192-192 192c-40.8 0-78.6-12.7-109.7-34.4c-14.5-10.1-34.4-6.6-44.6 7.9s-6.6 34.4 7.9 44.6C151.2 495 201.7 512 256 512c141.4 0 256-114.6 256-256S397.4 0 256 0C185.3 0 121.3 28.7 75 75zm181 53c-13.3 0-24 10.7-24 24V256c0 6.4 2.5 12.5 7 17l72 72c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-65-65V152c0-13.3-10.7-24-24-24z"]},R7={prefix:"fas",iconName:"infinity",icon:[640,512,[8734,9854],"f534","M0 241.1C0 161 65 96 145.1 96c38.5 0 75.4 15.3 102.6 42.5L320 210.7l72.2-72.2C419.5 111.3 456.4 96 494.9 96C575 96 640 161 640 241.1v29.7C640 351 575 416 494.9 416c-38.5 0-75.4-15.3-102.6-42.5L320 301.3l-72.2 72.2C220.5 400.7 183.6 416 145.1 416C65 416 0 351 0 270.9V241.1zM274.7 256l-72.2-72.2c-15.2-15.2-35.9-23.8-57.4-23.8C100.3 160 64 196.3 64 241.1v29.7c0 44.8 36.3 81.1 81.1 81.1c21.5 0 42.2-8.5 57.4-23.8L274.7 256zm90.5 0l72.2 72.2c15.2 15.2 35.9 23.8 57.4 23.8c44.8 0 81.1-36.3 81.1-81.1V241.1c0-44.8-36.3-81.1-81.1-81.1c-21.5 0-42.2 8.5-57.4 23.8L365.3 256z"]},Y7={prefix:"fas",iconName:"scale-balanced",icon:[640,512,[9878,"balance-scale"],"f24e","M384 32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H398.4c-5.2 25.8-22.9 47.1-46.4 57.3V448H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H320 128c-17.7 0-32-14.3-32-32s14.3-32 32-32H288V153.3c-23.5-10.3-41.2-31.6-46.4-57.3H128c-17.7 0-32-14.3-32-32s14.3-32 32-32H256c14.6-19.4 37.8-32 64-32s49.4 12.6 64 32zm55.6 288H584.4L512 195.8 439.6 320zM512 416c-62.9 0-115.2-34-126-78.9c-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1C627.2 382 574.9 416 512 416zM126.8 195.8L54.4 320H199.3L126.8 195.8zM.9 337.1c-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1C242 382 189.7 416 126.8 416S11.7 382 .9 337.1z"]},iv={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},av={prefix:"fas",iconName:"right-left",icon:[512,512,["exchange-alt"],"f362","M32 96l320 0V32c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l96 96c6 6 9.4 14.1 9.4 22.6s-3.4 16.6-9.4 22.6l-96 96c-9.2 9.2-22.9 11.9-34.9 6.9s-19.8-16.6-19.8-29.6V160L32 160c-17.7 0-32-14.3-32-32s14.3-32 32-32zM480 352c17.7 0 32 14.3 32 32s-14.3 32-32 32H160v64c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9l-96-96c-6-6-9.4-14.1-9.4-22.6s3.4-16.6 9.4-22.6l96-96c9.2-9.2 22.9-11.9 34.9-6.9s19.8 16.6 19.8 29.6l0 64H480z"]},pv={prefix:"fas",iconName:"user-clock",icon:[640,512,[],"f4fd","M224 0a128 128 0 1 1 0 256A128 128 0 1 1 224 0zM178.3 304h91.4c20.6 0 40.4 3.5 58.8 9.9C323 331 320 349.1 320 368c0 59.5 29.5 112.1 74.8 144H29.7C13.3 512 0 498.7 0 482.3C0 383.8 79.8 304 178.3 304zM352 368a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-80c-8.8 0-16 7.2-16 16v64c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16s-7.2-16-16-16H512V304c0-8.8-7.2-16-16-16z"]}},493:(We,q,m)=>{"use strict";m.d(q,{eX:()=>O,sQ:()=>qe,GW:()=>i,l4:()=>G});var t=m(6451),e=m(9751),_=m(7579),T=m(8502),s=m(515),y=m(9646),h=m(2843),P=m(576);class w{constructor(zt,xt,Nt){this.kind=zt,this.value=xt,this.error=Nt,this.hasValue="N"===zt}observe(zt){return C(this,zt)}do(zt,xt,Nt){const{kind:Gt,value:ke,error:$}=this;return"N"===Gt?zt?.(ke):"E"===Gt?xt?.($):Nt?.()}accept(zt,xt,Nt){var Gt;return(0,P.m)(null===(Gt=zt)||void 0===Gt?void 0:Gt.next)?this.observe(zt):this.do(zt,xt,Nt)}toObservable(){const{kind:zt,value:xt,error:Nt}=this,Gt="N"===zt?(0,y.of)(xt):"E"===zt?(0,h._)(()=>Nt):"C"===zt?s.E:0;if(!Gt)throw new TypeError(`Unexpected notification kind ${zt}`);return Gt}static createNext(zt){return new w("N",zt)}static createError(zt){return new w("E",void 0,zt)}static createComplete(){return w.completeNotification}}function C(je,zt){var xt,Nt,Gt;const{kind:ke,value:$,error:ue}=je;if("string"!=typeof ke)throw new TypeError('Invalid notification, missing "kind"');"N"===ke?null===(xt=zt.next)||void 0===xt||xt.call(zt,$):"E"===ke?null===(Nt=zt.error)||void 0===Nt||Nt.call(zt,ue):null===(Gt=zt.complete)||void 0===Gt||Gt.call(zt)}w.completeNotification=new w("C");var L=m(4482),D=m(5403),V=m(4004),Y=m(262),j=m(9300),Q=m(8421);function J(je,zt,xt,Nt){return(0,L.e)((Gt,ke)=>{let $;zt&&"function"!=typeof zt?({duration:xt,element:$,connector:Nt}=zt):$=zt;const ue=new Map,Le=ot=>{ue.forEach(ot),ot(ke)},Je=ot=>Le(ft=>ft.error(ot));let $t=0,Vt=!1;const ii=new D.Q(ke,ot=>{try{const ft=je(ot);let St=ue.get(ft);if(!St){ue.set(ft,St=Nt?Nt():new _.x);const gt=function pt(ot,ft){const St=new e.y(gt=>{$t++;const $e=ft.subscribe(gt);return()=>{$e.unsubscribe(),0==--$t&&Vt&&ii.unsubscribe()}});return St.key=ot,St}(ft,St);if(ke.next(gt),xt){const $e=(0,D.x)(St,()=>{St.complete(),$e?.unsubscribe()},void 0,void 0,()=>ue.delete(ft));ii.add((0,Q.Xf)(xt(gt)).subscribe($e))}}St.next($?$(ot):ot)}catch(ft){Je(ft)}},()=>Le(ot=>ot.complete()),Je,()=>ue.clear(),()=>(Vt=!0,0===$t));Gt.subscribe(ii)})}var ee=m(5577);function me(je,zt){return zt?xt=>xt.pipe(me((Nt,Gt)=>(0,Q.Xf)(je(Nt,Gt)).pipe((0,V.U)((ke,$)=>zt(Nt,ke,Gt,$))))):(0,L.e)((xt,Nt)=>{let Gt=0,ke=null,$=!1;xt.subscribe((0,D.x)(Nt,ue=>{ke||(ke=(0,D.x)(Nt,void 0,()=>{ke=null,$&&Nt.complete()}),(0,Q.Xf)(je(ue,Gt++)).subscribe(ke))},()=>{$=!0,!ke&&Nt.complete()}))})}var ie=m(5698),se=m(4650),ce=m(9653);const Ce={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},M="__@ngrx/effects_create__";function i(je,zt={}){const xt=zt.functional?je:je(),Nt={...Ce,...zt};return Object.defineProperty(xt,M,{value:Nt}),xt}function v(je){return Object.getPrototypeOf(je)}function k(je){return"function"==typeof je}function x(je){return je.filter(k)}function n(je,zt,xt){const Nt=v(je).constructor.name,Gt=function l(je){return function a(je){return Object.getOwnPropertyNames(je).filter(Nt=>!(!je[Nt]||!je[Nt].hasOwnProperty(M))&&je[Nt][M].hasOwnProperty("dispatch")).map(Nt=>({propertyName:Nt,...je[Nt][M]}))}(je)}(je).map(({propertyName:ke,dispatch:$,useEffectsErrorHandler:ue})=>{const Le="function"==typeof je[ke]?je[ke]():je[ke],Je=ue?xt(Le,zt):Le;return!1===$?Je.pipe((0,T.l)()):Je.pipe(function H(){return(0,L.e)((je,zt)=>{je.subscribe((0,D.x)(zt,xt=>{zt.next(w.createNext(xt))},()=>{zt.next(w.createComplete()),zt.complete()},xt=>{zt.next(w.createError(xt)),zt.complete()}))})}()).pipe((0,V.U)(Vt=>({effect:je[ke],notification:Vt,propertyName:ke,sourceName:Nt,sourceInstance:je})))});return(0,t.T)(...Gt)}const g=10;function W(je,zt,xt=g){return je.pipe((0,Y.K)(Nt=>(zt&&zt.handleError(Nt),xt<=1?je:W(je,zt,xt-1))))}let O=(()=>{class je extends e.y{constructor(xt){super(),xt&&(this.source=xt)}lift(xt){const Nt=new je;return Nt.source=this,Nt.operator=xt,Nt}}return je.\u0275fac=function(xt){return new(xt||je)(se.LFG(ce.Y$))},je.\u0275prov=se.Yz7({token:je,factory:je.\u0275fac,providedIn:"root"}),je})();function G(...je){return(0,j.h)(zt=>je.some(xt=>"string"==typeof xt?xt===zt.type:xt.type===zt.type))}const ge=new se.OlP("@ngrx/effects Internal Root Guard"),nt=new se.OlP("@ngrx/effects User Provided Effects"),Ue=new se.OlP("@ngrx/effects Internal Root Effects"),at=new se.OlP("@ngrx/effects Internal Root Effects Instances"),ye=new se.OlP("@ngrx/effects Internal Feature Effects"),xe=new se.OlP("@ngrx/effects Internal Feature Effects Instance Groups"),fe=new se.OlP("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>W}),Oe="@ngrx/effects/init";(0,ce.PH)(Oe);const pe="ngrxOnIdentifyEffects",de="ngrxOnInitEffects";function rt(je){return Ke(je,de)}function Ke(je,zt){return je&&zt in je&&"function"==typeof je[zt]}let lt=(()=>{class je extends _.x{constructor(xt,Nt){super(),this.errorHandler=xt,this.effectsErrorHandler=Nt}addEffects(xt){this.next(xt)}toActions(){return this.pipe(J(xt=>function I(je){return"Object"!==je.constructor.name&&"Function"!==je.constructor.name}(xt)?v(xt):xt),(0,ee.z)(xt=>xt.pipe(J(Ut))),(0,ee.z)(xt=>{const Nt=xt.pipe(me(ke=>function ht(je,zt){return xt=>{const Nt=n(xt,je,zt);return function Pe(je){return Ke(je,"ngrxOnRunEffects")}(xt)?xt.ngrxOnRunEffects(Nt):Nt}}(this.errorHandler,this.effectsErrorHandler)(ke)),(0,V.U)(ke=>(function Fe(je,zt){if("N"===je.notification.kind){const xt=je.notification.value;!function De(je){return"function"!=typeof je&&je&&je.type&&"string"==typeof je.type}(xt)&&zt.handleError(new Error(`Effect ${function he({propertyName:je,sourceInstance:zt,sourceName:xt}){const Nt="function"==typeof zt[je];return`"${xt}.${String(je)}${Nt?"()":""}"`}(je)} dispatched an invalid action: ${function Me(je){try{return JSON.stringify(je)}catch{return je}}(xt)}`))}}(ke,this.errorHandler),ke.notification)),(0,j.h)(ke=>"N"===ke.kind&&null!=ke.value),function re(){return(0,L.e)((je,zt)=>{je.subscribe((0,D.x)(zt,xt=>C(xt,zt)))})}()),Gt=xt.pipe((0,ie.q)(1),(0,j.h)(rt),(0,V.U)(ke=>ke.ngrxOnInitEffects()));return(0,t.T)(Nt,Gt)}))}}return je.\u0275fac=function(xt){return new(xt||je)(se.LFG(se.qLn),se.LFG(fe))},je.\u0275prov=se.Yz7({token:je,factory:je.\u0275fac,providedIn:"root"}),je})();function Ut(je){return function Ve(je){return Ke(je,pe)}(je)?je.ngrxOnIdentifyEffects():""}let Ge=(()=>{class je{constructor(xt,Nt){this.effectSources=xt,this.store=Nt,this.effectsSubscription=null}get isStarted(){return!!this.effectsSubscription}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return je.\u0275fac=function(xt){return new(xt||je)(se.LFG(lt),se.LFG(ce.yh))},je.\u0275prov=se.Yz7({token:je,factory:je.\u0275fac,providedIn:"root"}),je})(),yt=(()=>{class je{constructor(xt,Nt,Gt,ke,$,ue,Le){this.sources=xt,Nt.start();for(const Je of ke)xt.addEffects(Je);Gt.dispatch({type:Oe})}addEffects(xt){this.sources.addEffects(xt)}}return je.\u0275fac=function(xt){return new(xt||je)(se.LFG(lt),se.LFG(Ge),se.LFG(ce.yh),se.LFG(at),se.LFG(ce.cr,8),se.LFG(ce.CK,8),se.LFG(ge,8))},je.\u0275mod=se.oAB({type:je}),je.\u0275inj=se.cJS({}),je})(),be=(()=>{class je{constructor(xt,Nt,Gt,ke){const $=Nt.flat();for(const ue of $)xt.addEffects(ue)}}return je.\u0275fac=function(xt){return new(xt||je)(se.LFG(yt),se.LFG(xe),se.LFG(ce.cr,8),se.LFG(ce.CK,8))},je.\u0275mod=se.oAB({type:je}),je.\u0275inj=se.cJS({}),je})(),qe=(()=>{class je{static forFeature(...xt){const Nt=xt.flat(),Gt=x(Nt);return{ngModule:be,providers:[Gt,{provide:ye,multi:!0,useValue:Nt},{provide:nt,multi:!0,useValue:[]},{provide:xe,multi:!0,useFactory:Ie,deps:[ye,nt]}]}}static forRoot(...xt){const Nt=xt.flat(),Gt=x(Nt);return{ngModule:yt,providers:[Gt,{provide:Ue,useValue:[Nt]},{provide:ge,useFactory:X},{provide:nt,multi:!0,useValue:[]},{provide:at,useFactory:Ie,deps:[Ue,nt]}]}}}return je.\u0275fac=function(xt){return new(xt||je)},je.\u0275mod=se.oAB({type:je}),je.\u0275inj=se.cJS({}),je})();function Ie(je,zt){const xt=[];for(const Nt of je)xt.push(...Nt);for(const Nt of zt)xt.push(...Nt);return xt.map(Nt=>k(Nt)?(0,se.f3M)(Nt):Nt)}function X(){const je=(0,se.f3M)(Ge,{optional:!0,skipSelf:!0}),zt=(0,se.f3M)(Ue,{self:!0});if((1!==zt.length||0!==zt[0].length)&&je)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}},825:(__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__(4650),_ngrx_store__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(9653),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(515),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(9751),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);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,typeof q.type>"u")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,t=!0){this.start=q,this.end=m,this.active=t,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}}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(We){const q={maxAge:!1,monitor:noMonitor,actionSanitizer:void 0,stateSanitizer:void 0,name:DEFAULT_NAME,serialize:!1,logOnly:!1,autoPause:!1,trace:!1,traceLimit:75,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0}},m="function"==typeof We?We():We,_=Object.assign({},q,{features:m.features||!!m.logOnly&&{pause:!0,export:!0,test:!0}||q.features},m);if(_.maxAge&&_.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${_.maxAge}`);return _}function difference(We,q){return We.filter(m=>q.indexOf(m)<0)}function unliftState(We){const{computedStates:q,currentStateIndex:m}=We;if(m>=q.length){const{state:e}=q[q.length-1];return e}const{state:t}=q[m];return t}function unliftAction(We){return We.actionsById[We.nextActionId-1]}function liftAction(We){return new PerformAction(We,+Date.now())}function sanitizeActions(We,q){return Object.keys(q).reduce((m,t)=>{const e=Number(t);return m[e]=sanitizeAction(We,q[e],e),m},{})}function sanitizeAction(We,q,m){return{...q,action:We(q.action,m)}}function sanitizeStates(We,q){return q.map((m,t)=>({state:sanitizeState(We,m.state,t),error:m.error}))}function sanitizeState(We,q,m){return We(q,m)}function shouldFilterActions(We){return We.predicate||We.actionsSafelist||We.actionsBlocklist}function filterLiftedState(We,q,m,t){const e=[],_={},T=[];return We.stagedActionIds.forEach((s,y)=>{const h=We.actionsById[s];h&&(y&&isActionFiltered(We.computedStates[y],h,q,m,t)||(_[s]=h,e.push(s),T.push(We.computedStates[y])))}),{...We,stagedActionIds:e,actionsById:_,computedStates:T}}function isActionFiltered(We,q,m,t,e){const _=m&&!m(We,q.action),T=t&&!q.action.type.match(t.map(y=>escapeRegExp(y)).join("|")),s=e&&q.action.type.match(e.map(y=>escapeRegExp(y)).join("|"));return _||T||s}function escapeRegExp(We){return We.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}let DevtoolsDispatcher=(()=>{class We extends _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO{}return We.\u0275fac=function(){let q;return function(t){return(q||(q=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(We)))(t||We)}}(),We.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:We,factory:We.\u0275fac}),We})();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(We,q,m){this.config=q,this.dispatcher=m,this.devtoolsExtension=We,this.createActionStreams()}notify(We,q){if(this.devtoolsExtension)if(We.type===PERFORM_ACTION){if(q.isLocked||q.isPaused)return;const m=unliftState(q);if(shouldFilterActions(this.config)&&isActionFiltered(m,We,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const t=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,m,q.currentStateIndex):m,e=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,We,q.nextActionId):We;this.sendToReduxDevtools(()=>this.extensionConnection.send(e,t))}else{const m={...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(We=>{const q=this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=q,q.init(),q.subscribe(m=>We.next(m)),q.unsubscribe}):rxjs__WEBPACK_IMPORTED_MODULE_2__.E}createActionStreams(){const We=this.createChangesObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.B)()),q=We.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(s=>s.type===ExtensionActionTypes.START)),m=We.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(s=>s.type===ExtensionActionTypes.STOP)),t=We.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(s=>s.type===ExtensionActionTypes.DISPATCH),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(s=>this.unwrapAction(s.payload)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.b)(s=>s.type===IMPORT_STATE?this.dispatcher.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(y=>y.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)(()=>s),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.K)(()=>(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(s)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.q)(1)):(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(s))),_=We.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(s=>s.type===ExtensionActionTypes.ACTION),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(s=>this.unwrapAction(s.payload))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(m)),T=t.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)(()=>_)),this.liftedActions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>T))}unwrapAction(action){return"string"==typeof action?eval(`(${action})`):action}getExtensionConfig(We){const q={name:We.name,features:We.features,serialize:We.serialize,autoPause:We.autoPause??!1,trace:We.trace??!1,traceLimit:We.traceLimit??75};return!1!==We.maxAge&&(q.maxAge=We.maxAge),q}sendToReduxDevtools(We){try{We()}catch(q){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",q)}}}return DevtoolsExtension.\u0275fac=function We(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})();const INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(We,q,m,t,e){if(t)return{state:m,error:"Interrupted by an error up the chain"};let T,_=m;try{_=We(m,q)}catch(s){T=s.toString(),e.handleError(s)}return{state:_,error:T}}function recomputeStates(We,q,m,t,e,_,T,s,y){if(q>=We.length&&We.length===_.length)return We;const h=We.slice(0,q),P=_.length-(y?1:0);for(let d=q;d-1?L:computeNextEntry(m,C,D,H,s);h.push(Y)}return y&&h.push(We[We.length-1]),h}function liftInitialState(We,q){return{monitorState:q(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:We,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(We,q,m,t,e={}){return _=>(T,s)=>{let{monitorState:y,actionsById:h,nextActionId:P,stagedActionIds:d,skippedActionIds:w,committedState:C,currentStateIndex:L,computedStates:D,isLocked:H,isPaused:V}=T||q;function Y(J){let ee=J,me=d.slice(1,ee+1);for(let re=0;re-1===me.indexOf(re)),d=[0,...d.slice(ee+1)],C=D[ee].state,D=D.slice(ee),L=L>ee?L-ee:0}function j(){h={0:liftAction(INIT_ACTION)},P=1,d=[0],w=[],C=D[L].state,L=0,D=[]}T||(h=Object.create(h));let Q=0;switch(s.type){case LOCK_CHANGES:H=s.status,Q=1/0;break;case PAUSE_RECORDING:V=s.status,V?(d=[...d,P],h[P]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),P++,Q=d.length-1,D=D.concat(D[D.length-1]),L===d.length-2&&L++,Q=1/0):j();break;case RESET:h={0:liftAction(INIT_ACTION)},P=1,d=[0],w=[],C=We,L=0,D=[];break;case COMMIT:j();break;case ROLLBACK:h={0:liftAction(INIT_ACTION)},P=1,d=[0],w=[],L=0,D=[];break;case TOGGLE_ACTION:{const{id:J}=s;w=-1===w.indexOf(J)?[J,...w]:w.filter(me=>me!==J),Q=d.indexOf(J);break}case SET_ACTIONS_ACTIVE:{const{start:J,end:ee,active:me}=s,re=[];for(let ie=J;iee.maxAge&&(D=recomputeStates(D,Q,_,C,h,d,w,m,V),Y(d.length-e.maxAge),Q=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb:if(D.filter(ee=>ee.error).length>0)Q=0,e.maxAge&&d.length>e.maxAge&&(D=recomputeStates(D,Q,_,C,h,d,w,m,V),Y(d.length-e.maxAge),Q=1/0);else{if(!V&&!H){L===d.length-1&&L++;const ee=P++;h[ee]=new PerformAction(s,+Date.now()),d=[...d,ee],Q=d.length-1,D=recomputeStates(D,Q,_,C,h,d,w,m,V)}D=D.map(ee=>({...ee,state:_(ee.state,RECOMPUTE_ACTION)})),L=d.length-1,e.maxAge&&d.length>e.maxAge&&Y(d.length-e.maxAge),Q=1/0}break;default:Q=1/0}return D=recomputeStates(D,Q,_,C,h,d,w,m,V),y=t(y,s),{monitorState:y,actionsById:h,nextActionId:P,stagedActionIds:d,skippedActionIds:w,committedState:C,currentStateIndex:L,computedStates:D,isLocked:H,isPaused:V}}}let StoreDevtools=(()=>{class We{constructor(m,t,e,_,T,s,y,h){const P=liftInitialState(y,h.monitor),d=liftReducerWith(y,P,s,h.monitor,h),w=(0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)(t.asObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.T)(1)),_.actions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(liftAction)),m,_.liftedActions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.Q)(rxjs__WEBPACK_IMPORTED_MODULE_18__.N)),C=e.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(d)),L=new rxjs__WEBPACK_IMPORTED_MODULE_19__.t(1),D=w.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.M)(C),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.R)(({state:j},[Q,J])=>{let ee=J(j,Q);return Q.type!==PERFORM_ACTION&&shouldFilterActions(h)&&(ee=filterLiftedState(ee,h.predicate,h.actionsSafelist,h.actionsBlocklist)),_.notify(Q,ee),{state:ee,action:Q}},{state:P,action:null})).subscribe(({state:j,action:Q})=>{L.next(j),Q.type===PERFORM_ACTION&&T.next(Q.action)}),H=_.start$.subscribe(()=>{this.refresh()}),V=L.asObservable(),Y=V.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(unliftState));this.extensionStartSubscription=H,this.stateSubscription=D,this.dispatcher=m,this.liftedState=V,this.state=Y}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 We.\u0275fac=function(m){return new(m||We)(_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))},We.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:We,factory:We.\u0275fac}),We})();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(We,q){return Boolean(We)||q.monitor!==noMonitor}function createReduxDevtoolsExtension(){const We="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&typeof window[We]<"u"?window[We]:null}function provideStoreDevtools(We={}){return(0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.MR2)([DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:We},{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}])}function createStateObservable(We){return We.state}let StoreDevtoolsModule=(()=>{class We{static instrument(m={}){return{ngModule:We,providers:[provideStoreDevtools(m)]}}}return We.\u0275fac=function(m){return new(m||We)},We.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:We}),We.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({}),We})()},9653:(We,q,m)=>{"use strict";m.d(q,{UO:()=>se,qg:()=>ie,Y6:()=>i,mK:()=>Ve,n$:()=>pe,Y$:()=>rt,FR:()=>lt,yh:()=>yt,CK:()=>oa,Aw:()=>Ea,cr:()=>Dn,wb:()=>Qe,PH:()=>H,ZF:()=>$e,Lq:()=>er,P1:()=>ft,on:()=>ta,Ky:()=>V});var t=m(4650),e=m(1135),_=m(9751),T=m(7579),s=m(233),y=m(5363),h=m(1365),P=m(5026),d=m(4004),C=m(1884);const L={};function H(Jt,pi){if(L[Jt]=(L[Jt]||0)+1,"function"==typeof pi)return j(Jt,(...ri)=>({...pi(...ri),type:Jt}));switch(pi?pi._as:"empty"){case"empty":return j(Jt,()=>({type:Jt}));case"props":return j(Jt,ri=>({...ri,type:Jt}));default:throw new Error("Unexpected config.")}}function V(){return{_as:"props",_p:void 0}}function j(Jt,pi){return Object.defineProperty(pi,"type",{value:Jt,writable:!1})}const ie="@ngrx/store/init";let se=(()=>{class Jt extends e.X{constructor(){super({type:ie})}next(Kt){if("function"==typeof Kt)throw new TypeError("\n Dispatch expected an object, instead it received a function.\n If you're using the createAction function, make sure to invoke the function\n before dispatching the action. For example, someAction should be someAction().");if(typeof Kt>"u")throw new TypeError("Actions must be objects");if(typeof Kt.type>"u")throw new TypeError("Actions must have a type property");super.next(Kt)}complete(){}ngOnDestroy(){super.complete()}}return Jt.\u0275fac=function(Kt){return new(Kt||Jt)},Jt.\u0275prov=t.Yz7({token:Jt,factory:Jt.\u0275fac}),Jt})();const ce=[se],Ce=new t.OlP("@ngrx/store Internal Root Guard"),M=new t.OlP("@ngrx/store Internal Initial State"),i=new t.OlP("@ngrx/store Initial State"),a=new t.OlP("@ngrx/store Reducer Factory"),f=new t.OlP("@ngrx/store Internal Reducer Factory Provider"),l=new t.OlP("@ngrx/store Initial Reducers"),v=new t.OlP("@ngrx/store Internal Initial Reducers"),I=new t.OlP("@ngrx/store Store Features"),k=new t.OlP("@ngrx/store Internal Store Reducers"),x=new t.OlP("@ngrx/store Internal Feature Reducers"),n=new t.OlP("@ngrx/store Internal Feature Configs"),g=new t.OlP("@ngrx/store Internal Store Features"),W=new t.OlP("@ngrx/store Internal Feature Reducers Token"),O=new t.OlP("@ngrx/store Feature Reducers"),G=new t.OlP("@ngrx/store User Provided Meta Reducers"),ge=new t.OlP("@ngrx/store Meta Reducers"),nt=new t.OlP("@ngrx/store Internal Resolved Meta Reducers"),Ue=new t.OlP("@ngrx/store User Runtime Checks Config"),at=new t.OlP("@ngrx/store Internal User Runtime Checks Config"),ye=new t.OlP("@ngrx/store Internal Runtime Checks"),xe=new t.OlP("@ngrx/store Check if Action types are unique");function oe(Jt,pi={}){const Kt=Object.keys(Jt),ri={};for(let Hi=0;HiHi(xi),Kt(pi))}}function he(Jt,pi){return Array.isArray(pi)&&pi.length>0&&(Jt=De.apply(null,[...pi,Jt])),(Kt,ri)=>{const xi=Jt(Kt);return(Hi,ln)=>xi(Hi=void 0===Hi?ri:Hi,ln)}}new t.OlP("@ngrx/store Root Store Provider"),new t.OlP("@ngrx/store Feature State Provider");class pe extends _.y{}class Ve extends se{}const Qe="@ngrx/store/update-reducers";let Pe=(()=>{class Jt extends e.X{constructor(Kt,ri,xi,Hi){super(Hi(xi,ri)),this.dispatcher=Kt,this.initialState=ri,this.reducers=xi,this.reducerFactory=Hi}get currentReducers(){return this.reducers}addFeature(Kt){this.addFeatures([Kt])}addFeatures(Kt){const ri=Kt.reduce((xi,{reducers:Hi,reducerFactory:ln,metaReducers:Gn,initialState:Hn,key:_a})=>{const Tn="function"==typeof Hi?function Me(Jt){const pi=Array.isArray(Jt)&&Jt.length>0?De(...Jt):Kt=>Kt;return(Kt,ri)=>(Kt=pi(Kt),(xi,Hi)=>Kt(xi=void 0===xi?ri:xi,Hi))}(Gn)(Hi,Hn):he(ln,Gn)(Hi,Hn);return xi[_a]=Tn,xi},{});this.addReducers(ri)}removeFeature(Kt){this.removeFeatures([Kt])}removeFeatures(Kt){this.removeReducers(Kt.map(ri=>ri.key))}addReducer(Kt,ri){this.addReducers({[Kt]:ri})}addReducers(Kt){this.reducers={...this.reducers,...Kt},this.updateReducers(Object.keys(Kt))}removeReducer(Kt){this.removeReducers([Kt])}removeReducers(Kt){Kt.forEach(ri=>{this.reducers=function Fe(Jt,pi){return Object.keys(Jt).filter(Kt=>Kt!==pi).reduce((Kt,ri)=>Object.assign(Kt,{[ri]:Jt[ri]}),{})}(this.reducers,ri)}),this.updateReducers(Kt)}updateReducers(Kt){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:Qe,features:Kt})}ngOnDestroy(){this.complete()}}return Jt.\u0275fac=function(Kt){return new(Kt||Jt)(t.LFG(Ve),t.LFG(i),t.LFG(l),t.LFG(a))},Jt.\u0275prov=t.Yz7({token:Jt,factory:Jt.\u0275fac}),Jt})();const de=[Pe,{provide:pe,useExisting:Pe},{provide:Ve,useExisting:se}];let rt=(()=>{class Jt extends T.x{ngOnDestroy(){this.complete()}}return Jt.\u0275fac=function(){let pi;return function(ri){return(pi||(pi=t.n5z(Jt)))(ri||Jt)}}(),Jt.\u0275prov=t.Yz7({token:Jt,factory:Jt.\u0275fac}),Jt})();const Ke=[rt];class lt extends _.y{}let Ut=(()=>{class Jt extends e.X{constructor(Kt,ri,xi,Hi){super(Hi);const _a=Kt.pipe((0,y.Q)(s.N)).pipe((0,h.M)(ri)).pipe((0,P.R)(ht,{state:Hi}));this.stateSubscription=_a.subscribe(({state:Tn,action:Vn})=>{this.next(Tn),xi.next(Vn)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return Jt.INIT=ie,Jt.\u0275fac=function(Kt){return new(Kt||Jt)(t.LFG(se),t.LFG(pe),t.LFG(rt),t.LFG(i))},Jt.\u0275prov=t.Yz7({token:Jt,factory:Jt.\u0275fac}),Jt})();function ht(Jt={state:void 0},[pi,Kt]){const{state:ri}=Jt;return{state:Kt(ri,pi),action:pi}}const Ge=[Ut,{provide:lt,useExisting:Ut}];let yt=(()=>{class Jt extends _.y{constructor(Kt,ri,xi){super(),this.actionsObserver=ri,this.reducerManager=xi,this.source=Kt}select(Kt,...ri){return qe.call(null,Kt,...ri)(this)}lift(Kt){const ri=new Jt(this,this.actionsObserver,this.reducerManager);return ri.operator=Kt,ri}dispatch(Kt){this.actionsObserver.next(Kt)}next(Kt){this.actionsObserver.next(Kt)}error(Kt){this.actionsObserver.error(Kt)}complete(){this.actionsObserver.complete()}addReducer(Kt,ri){this.reducerManager.addReducer(Kt,ri)}removeReducer(Kt){this.reducerManager.removeReducer(Kt)}}return Jt.\u0275fac=function(Kt){return new(Kt||Jt)(t.LFG(lt),t.LFG(se),t.LFG(Pe))},Jt.\u0275prov=t.Yz7({token:Jt,factory:Jt.\u0275fac}),Jt})();const be=[yt];function qe(Jt,pi,...Kt){return function(xi){let Hi;if("string"==typeof Jt){const ln=[pi,...Kt].filter(Boolean);Hi=xi.pipe(function w(...Jt){const pi=Jt.length;if(0===pi)throw new Error("list of properties cannot be empty.");return(0,d.U)(Kt=>{let ri=Kt;for(let xi=0;xiJt(ln,pi)))}return Hi.pipe((0,C.x)())}}const Ie="https://ngrx.io/guide/store/configuration/runtime-checks";function X(Jt){return void 0===Jt}function mt(Jt){return null===Jt}function Tt(Jt){return Array.isArray(Jt)}function xt(Jt){return"object"==typeof Jt&&null!==Jt}function ke(Jt){return"function"==typeof Jt}let Le=!1;function Vt(Jt,pi){return Jt===pi}function ot(Jt,pi=Vt,Kt=Vt){let Hi,ri=null,xi=null;return{memoized:function _a(){if(void 0!==Hi)return Hi.result;if(!ri)return xi=Jt.apply(null,arguments),ri=arguments,xi;if(!function ii(Jt,pi,Kt){for(let ri=0;ri"function"==typeof pi)}(ri[0])&&(ri=function vt(Jt){const pi=Object.values(Jt),Kt=Object.keys(Jt);return[...pi,(...xi)=>Kt.reduce((Hi,ln,Gn)=>({...Hi,[ln]:xi[Gn]}),{})]}(ri[0]));const xi=ri.slice(0,ri.length-1),Hi=ri[ri.length-1],ln=xi.filter(Tn=>Tn.release&&"function"==typeof Tn.release),Gn=Jt(function(...Tn){return Hi.apply(null,Tn)}),Hn=ot(function(Tn,Vn){return pi.stateFn.apply(null,[Tn,xi,Vn,Gn])});return Object.assign(Hn.memoized,{release:function _a(){Hn.reset(),Gn.reset(),ln.forEach(Tn=>Tn.release())},projector:Gn.memoized,setResult:Hn.setResult,clearResult:Hn.clearResult})}}(ot)(...Jt)}function St(Jt,pi,Kt,ri){if(void 0===Kt){const Hi=pi.map(ln=>ln(Jt));return ri.memoized.apply(null,Hi)}const xi=pi.map(Hi=>Hi(Jt,Kt));return ri.memoized.apply(null,[...xi,Kt])}function $e(Jt){return ft(pi=>{const Kt=pi[Jt];return!function $t(){return Le}()&&(0,t.X6Q)()&&!(Jt in pi)&&console.warn(`@ngrx/store: The feature name "${Jt}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${Jt}', ...) or StoreModule.forFeature('${Jt}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),Kt},pi=>pi)}function Qt(Jt){return Jt instanceof t.OlP?(0,t.f3M)(Jt):Jt}function zi(Jt,pi){return pi.map((Kt,ri)=>{if(Jt[ri]instanceof t.OlP){const xi=(0,t.f3M)(Jt[ri]);return{key:Kt.key,reducerFactory:xi.reducerFactory?xi.reducerFactory:oe,metaReducers:xi.metaReducers?xi.metaReducers:[],initialState:xi.initialState}}return Kt})}function Ni(Jt){return Jt.map(pi=>pi instanceof t.OlP?(0,t.f3M)(pi):pi)}function Mi(Jt){return"function"==typeof Jt?Jt():Jt}function Gi(Jt,pi){return Jt.concat(pi)}function Xe(){if((0,t.f3M)(yt,{optional:!0,skipSelf:!0}))throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function Se(Jt){Object.freeze(Jt);const pi=ke(Jt);return Object.getOwnPropertyNames(Jt).forEach(Kt=>{if(!Kt.startsWith("\u0275")&&function ue(Jt,pi){return Object.prototype.hasOwnProperty.call(Jt,pi)}(Jt,Kt)&&(!pi||"caller"!==Kt&&"callee"!==Kt&&"arguments"!==Kt)){const ri=Jt[Kt];(xt(ri)||ke(ri))&&!Object.isFrozen(ri)&&Se(ri)}}),Jt}function Zt(Jt,pi=[]){return(X(Jt)||mt(Jt))&&0===pi.length?{path:["root"],value:Jt}:Object.keys(Jt).reduce((ri,xi)=>{if(ri)return ri;const Hi=Jt[xi];return function $(Jt){return ke(Jt)&&Jt.hasOwnProperty("\u0275cmp")}(Hi)?ri:!(X(Hi)||mt(Hi)||function zt(Jt){return"number"==typeof Jt}(Hi)||function je(Jt){return"boolean"==typeof Jt}(Hi)||function it(Jt){return"string"==typeof Jt}(Hi)||Tt(Hi))&&(function Gt(Jt){if(!function Nt(Jt){return xt(Jt)&&!Tt(Jt)}(Jt))return!1;const pi=Object.getPrototypeOf(Jt);return pi===Object.prototype||null===pi}(Hi)?Zt(Hi,[...pi,xi]):{path:[...pi,xi],value:Hi})},!1)}function si(Jt,pi){if(!1===Jt)return;const Kt=Jt.path.join("."),ri=new Error(`Detected unserializable ${pi} at "${Kt}". ${Ie}#strict${pi}serializability`);throw ri.value=Jt.value,ri.unserializablePath=Kt,ri}function Oi(Jt){return(0,t.X6Q)()?{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1,...Jt}:{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function Qi({strictActionSerializability:Jt,strictStateSerializability:pi}){return Kt=>Jt||pi?function wt(Jt,pi){return function(Kt,ri){pi.action(ri)&&si(Zt(ri),"action");const xi=Jt(Kt,ri);return pi.state()&&si(Zt(xi),"state"),xi}}(Kt,{action:ri=>Jt&&!Yi(ri),state:()=>pi}):Kt}function en({strictActionImmutability:Jt,strictStateImmutability:pi}){return Kt=>Jt||pi?function It(Jt,pi){return function(Kt,ri){const xi=pi.action(ri)?Se(ri):ri,Hi=Jt(Kt,xi);return pi.state()?Se(Hi):Hi}}(Kt,{action:ri=>Jt&&!Yi(ri),state:()=>pi}):Kt}function Yi(Jt){return Jt.type.startsWith("@ngrx")}function Yt({strictActionWithinNgZone:Jt}){return pi=>Jt?function Ai(Jt,pi){return function(Kt,ri){if(pi.action(ri)&&!t.R0b.isInAngularZone())throw new Error(`Action '${ri.type}' running outside NgZone. ${Ie}#strictactionwithinngzone`);return Jt(Kt,ri)}}(pi,{action:Kt=>Jt&&!Yi(Kt)}):pi}function qt(Jt){return[{provide:at,useValue:Jt},{provide:Ue,useFactory:dt,deps:[at]},{provide:ye,deps:[Ue],useFactory:Oi},{provide:ge,multi:!0,deps:[ye],useFactory:en},{provide:ge,multi:!0,deps:[ye],useFactory:Qi},{provide:ge,multi:!0,deps:[ye],useFactory:Yt}]}function _e(){return[{provide:xe,multi:!0,deps:[ye],useFactory:Dt}]}function dt(Jt){return Jt}function Dt(Jt){if(!Jt.strictActionTypeUniqueness)return;const pi=Object.entries(L).filter(([,Kt])=>Kt>1).map(([Kt])=>Kt);if(pi.length)throw new Error(`Action types are registered more than once, ${pi.map(Kt=>`"${Kt}"`).join(", ")}. ${Ie}#strictactiontypeuniqueness`)}function Ot(Jt={},pi={}){return[{provide:Ce,useFactory:Xe},{provide:M,useValue:pi.initialState},{provide:i,useFactory:Mi,deps:[M]},{provide:v,useValue:Jt},{provide:k,useExisting:Jt instanceof t.OlP?Jt:v},{provide:l,deps:[v,[new t.tBr(k)]],useFactory:Qt},{provide:G,useValue:pi.metaReducers?pi.metaReducers:[]},{provide:nt,deps:[ge,G],useFactory:Gi},{provide:f,useValue:pi.reducerFactory?pi.reducerFactory:oe},{provide:a,deps:[f,nt],useFactory:he},ce,de,Ke,Ge,be,qt(pi.runtimeChecks),_e()]}function Un(Jt,pi,Kt={}){return[{provide:n,multi:!0,useValue:Jt instanceof Object?{}:Kt},{provide:I,multi:!0,useValue:{key:Jt instanceof Object?Jt.name:Jt,reducerFactory:Kt instanceof t.OlP||!Kt.reducerFactory?oe:Kt.reducerFactory,metaReducers:Kt instanceof t.OlP||!Kt.metaReducers?[]:Kt.metaReducers,initialState:Kt instanceof t.OlP||!Kt.initialState?void 0:Kt.initialState}},{provide:g,deps:[n,I],useFactory:zi},{provide:x,multi:!0,useValue:Jt instanceof Object?Jt.reducer:pi},{provide:W,multi:!0,useExisting:pi instanceof t.OlP?pi:x},{provide:O,multi:!0,deps:[x,[new t.tBr(W)]],useFactory:Ni},_e()]}let Dn=(()=>{class Jt{constructor(Kt,ri,xi,Hi,ln,Gn){}}return Jt.\u0275fac=function(Kt){return new(Kt||Jt)(t.LFG(se),t.LFG(pe),t.LFG(rt),t.LFG(yt),t.LFG(Ce,8),t.LFG(xe,8))},Jt.\u0275mod=t.oAB({type:Jt}),Jt.\u0275inj=t.cJS({}),Jt})(),oa=(()=>{class Jt{constructor(Kt,ri,xi,Hi,ln){this.features=Kt,this.featureReducers=ri,this.reducerManager=xi;const Gn=Kt.map((Hn,_a)=>{const Vn=ri.shift()[_a];return{...Hn,reducers:Vn,initialState:Mi(Hn.initialState)}});xi.addFeatures(Gn)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return Jt.\u0275fac=function(Kt){return new(Kt||Jt)(t.LFG(g),t.LFG(O),t.LFG(Pe),t.LFG(Dn),t.LFG(xe,8))},Jt.\u0275mod=t.oAB({type:Jt}),Jt.\u0275inj=t.cJS({}),Jt})(),Ea=(()=>{class Jt{static forRoot(Kt,ri){return{ngModule:Dn,providers:[...Ot(Kt,ri)]}}static forFeature(Kt,ri,xi={}){return{ngModule:oa,providers:[...Un(Kt,ri,xi)]}}}return Jt.\u0275fac=function(Kt){return new(Kt||Jt)},Jt.\u0275mod=t.oAB({type:Jt}),Jt.\u0275inj=t.cJS({}),Jt})();function ta(...Jt){return{reducer:Jt.pop(),types:Jt.map(ri=>ri.type)}}function er(Jt,...pi){const Kt=new Map;for(const ri of pi)for(const xi of ri.types){const Hi=Kt.get(xi);Kt.set(xi,Hi?(Gn,Hn)=>ri.reducer(Hi(Gn,Hn),Hn):ri.reducer)}return function(ri=Jt,xi){const Hi=Kt.get(xi.type);return Hi?Hi(ri,xi):ri}}},3803:(We,q,m)=>{"use strict";m.d(q,{H5:()=>J4,K$:()=>c3,a4:()=>um});var t=m(4650),e=m(6895),_=m(7582),T=m(4080),s=m(4968),y=m(8372),h=m(7340);function P(){}function d(u){return null==u?P:function(){return this.querySelector(u)}}function L(){return[]}function D(u){return null==u?L:function(){return this.querySelectorAll(u)}}function Y(u){return function(){return this.matches(u)}}function j(u){return function(A){return A.matches(u)}}var Q=Array.prototype.find;function ee(){return this.firstElementChild}var re=Array.prototype.filter;function ie(){return Array.from(this.children)}function M(u){return new Array(u.length)}function a(u,A){this.ownerDocument=u.ownerDocument,this.namespaceURI=u.namespaceURI,this._next=null,this._parent=u,this.__data__=A}function l(u,A,r,b,B,K){for(var st,Ae=0,jt=A.length,Wt=K.length;AeA?1:u>=A?0:NaN}a.prototype={constructor:a,appendChild:function(u){return this._parent.insertBefore(u,this._next)},insertBefore:function(u,A){return this._parent.insertBefore(u,A)},querySelector:function(u){return this._parent.querySelector(u)},querySelectorAll:function(u){return this._parent.querySelectorAll(u)}};var Oe="http://www.w3.org/1999/xhtml";const oe={svg:"http://www.w3.org/2000/svg",xhtml:Oe,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Fe(u){var A=u+="",r=A.indexOf(":");return r>=0&&"xmlns"!==(A=u.slice(0,r))&&(u=u.slice(r+1)),oe.hasOwnProperty(A)?{space:oe[A],local:u}:u}function De(u){return function(){this.removeAttribute(u)}}function he(u){return function(){this.removeAttributeNS(u.space,u.local)}}function Me(u,A){return function(){this.setAttribute(u,A)}}function pe(u,A){return function(){this.setAttributeNS(u.space,u.local,A)}}function Ve(u,A){return function(){var r=A.apply(this,arguments);null==r?this.removeAttribute(u):this.setAttribute(u,r)}}function Qe(u,A){return function(){var r=A.apply(this,arguments);null==r?this.removeAttributeNS(u.space,u.local):this.setAttributeNS(u.space,u.local,r)}}function de(u){return u.ownerDocument&&u.ownerDocument.defaultView||u.document&&u||u.defaultView}function rt(u){return function(){this.style.removeProperty(u)}}function Ke(u,A,r){return function(){this.style.setProperty(u,A,r)}}function lt(u,A,r){return function(){var b=A.apply(this,arguments);null==b?this.style.removeProperty(u):this.style.setProperty(u,b,r)}}function ht(u,A){return u.style.getPropertyValue(A)||de(u).getComputedStyle(u,null).getPropertyValue(A)}function Ge(u){return function(){delete this[u]}}function yt(u,A){return function(){this[u]=A}}function be(u,A){return function(){var r=A.apply(this,arguments);null==r?delete this[u]:this[u]=r}}function Ie(u){return u.trim().split(/^|\s+/)}function X(u){return u.classList||new mt(u)}function mt(u){this._node=u,this._names=Ie(u.getAttribute("class")||"")}function Tt(u,A){for(var r=X(u),b=-1,B=A.length;++b=0&&(this._names.splice(A,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(u){return this._names.indexOf(u)>=0}};var en=[null];function Yi(u,A){this._groups=u,this._parents=A}function Yt(){return new Yi([[document.documentElement]],en)}Yi.prototype=Yt.prototype={constructor:Yi,select:function w(u){"function"!=typeof u&&(u=d(u));for(var A=this._groups,r=A.length,b=new Array(r),B=0;B=dn&&(dn=Sn+1);!(Rn=Li[dn])&&++dn=0;)(Ae=b[B])&&(K&&4^Ae.compareDocumentPosition(K)&&K.parentNode.insertBefore(Ae,K),K=Ae);return this},sort:function G(u){function A(fi,_i){return fi&&_i?u(fi.__data__,_i.__data__):!fi-!_i}u||(u=ge);for(var r=this._groups,b=r.length,B=new Array(b),K=0;K1?this.each((null==A?rt:"function"==typeof A?lt:Ke)(u,A,r??"")):ht(this.node(),u)},property:function qe(u,A){return arguments.length>1?this.each((null==A?Ge:"function"==typeof A?be:yt)(u,A)):this.node()[u]},classed:function Nt(u,A){var r=Ie(u+"");if(arguments.length<2){for(var b=X(this.node()),B=-1,K=r.length;++B=0&&(r=A.slice(b+1),A=A.slice(0,b)),{type:A,name:r}})}(u+""),K=b.length;if(!(arguments.length<2)){for(st=A?Se:It,B=0;B{}};function Bt(){for(var b,u=0,A=arguments.length,r={};u=0&&(b=r.slice(B+1),r=r.slice(0,B)),r&&!A.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:b}})}(u+"",r),K=-1,Ae=b.length;if(!(arguments.length<2)){if(null!=A&&"function"!=typeof A)throw new Error("invalid callback: "+A);for(;++K0)for(var B,K,r=new Array(B),b=0;b>8&15|A>>4&240,A>>4&15|240&A,(15&A)<<4|15&A,1):8===r?Rr(A>>24&255,A>>16&255,A>>8&255,(255&A)/255):4===r?Rr(A>>12&15|A>>8&240,A>>8&15|A>>4&240,A>>4&15|240&A,((15&A)<<4|15&A)/255):null):(A=Hn.exec(u))?new Ia(A[1],A[2],A[3],1):(A=_a.exec(u))?new Ia(255*A[1]/100,255*A[2]/100,255*A[3]/100,1):(A=Tn.exec(u))?Rr(A[1],A[2],A[3],A[4]):(A=Vn.exec(u))?Rr(255*A[1]/100,255*A[2]/100,255*A[3]/100,A[4]):(A=xo.exec(u))?ao(A[1],A[2]/100,A[3]/100,1):(A=zn.exec(u))?ao(A[1],A[2]/100,A[3]/100,A[4]):ia.hasOwnProperty(u)?Do(ia[u]):"transparent"===u?new Ia(NaN,NaN,NaN,0):null}function Do(u){return new Ia(u>>16&255,u>>8&255,255&u,1)}function Rr(u,A,r,b){return b<=0&&(u=A=r=NaN),new Ia(u,A,r,b)}function Yr(u,A,r,b){return 1===arguments.length?function Nr(u){return u instanceof pi||(u=Ta(u)),u?new Ia((u=u.rgb()).r,u.g,u.b,u.opacity):new Ia}(u):new Ia(u,A,r,b??1)}function Ia(u,A,r,b){this.r=+u,this.g=+A,this.b=+r,this.opacity=+b}function wa(){return`#${or(this.r)}${or(this.g)}${or(this.b)}`}function no(){const u=jr(this.opacity);return`${1===u?"rgb(":"rgba("}${pr(this.r)}, ${pr(this.g)}, ${pr(this.b)}${1===u?")":`, ${u})`}`}function jr(u){return isNaN(u)?1:Math.max(0,Math.min(1,u))}function pr(u){return Math.max(0,Math.min(255,Math.round(u)||0))}function or(u){return((u=pr(u))<16?"0":"")+u.toString(16)}function ao(u,A,r,b){return b<=0?u=A=r=NaN:r<=0||r>=1?u=A=NaN:A<=0&&(u=NaN),new Aa(u,A,r,b)}function ro(u){if(u instanceof Aa)return new Aa(u.h,u.s,u.l,u.opacity);if(u instanceof pi||(u=Ta(u)),!u)return new Aa;if(u instanceof Aa)return u;var A=(u=u.rgb()).r/255,r=u.g/255,b=u.b/255,B=Math.min(A,r,b),K=Math.max(A,r,b),Ae=NaN,st=K-B,jt=(K+B)/2;return st?(Ae=A===K?(r-b)/st+6*(r0&&jt<1?0:Ae,new Aa(Ae,st,jt,u.opacity)}function Aa(u,A,r,b){this.h=+u,this.s=+A,this.l=+r,this.opacity=+b}function Kr(u){return(u=(u||0)%360)<0?u+360:u}function Fr(u){return Math.max(0,Math.min(1,u||0))}function Wa(u,A,r){return 255*(u<60?A+(r-A)*u/60:u<180?r:u<240?A+(r-A)*(240-u)/60:A)}function Hr(u,A,r,b,B){var K=u*u,Ae=K*u;return((1-3*u+3*K-Ae)*A+(4-6*K+3*Ae)*r+(1+3*u+3*K-3*Ae)*b+Ae*B)/6}er(pi,Ta,{copy(u){return Object.assign(new this.constructor,this,u)},displayable(){return this.rgb().displayable()},hex:Co,formatHex:Co,formatHex8:function Pr(){return this.rgb().formatHex8()},formatHsl:function xr(){return ro(this).formatHsl()},formatRgb:jn,toString:jn}),er(Ia,Yr,Jt(pi,{brighter(u){return u=null==u?ri:Math.pow(ri,u),new Ia(this.r*u,this.g*u,this.b*u,this.opacity)},darker(u){return u=null==u?.7:Math.pow(.7,u),new Ia(this.r*u,this.g*u,this.b*u,this.opacity)},rgb(){return this},clamp(){return new Ia(pr(this.r),pr(this.g),pr(this.b),jr(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:wa,formatHex:wa,formatHex8:function Io(){return`#${or(this.r)}${or(this.g)}${or(this.b)}${or(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:no,toString:no})),er(Aa,function ko(u,A,r,b){return 1===arguments.length?ro(u):new Aa(u,A,r,b??1)},Jt(pi,{brighter(u){return u=null==u?ri:Math.pow(ri,u),new Aa(this.h,this.s,this.l*u,this.opacity)},darker(u){return u=null==u?.7:Math.pow(.7,u),new Aa(this.h,this.s,this.l*u,this.opacity)},rgb(){var u=this.h%360+360*(this.h<0),A=isNaN(u)||isNaN(this.s)?0:this.s,r=this.l,b=r+(r<.5?r:1-r)*A,B=2*r-b;return new Ia(Wa(u>=240?u-240:u+120,B,b),Wa(u,B,b),Wa(u<120?u+240:u-120,B,b),this.opacity)},clamp(){return new Aa(Kr(this.h),Fr(this.s),Fr(this.l),jr(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const u=jr(this.opacity);return`${1===u?"hsl(":"hsla("}${Kr(this.h)}, ${100*Fr(this.s)}%, ${100*Fr(this.l)}%${1===u?")":`, ${u})`}`}}));const sr=u=>()=>u;function Qr(u,A){var r=A-u;return r?function gr(u,A){return function(r){return u+r*A}}(u,r):sr(isNaN(u)?A:u)}const qr=function u(A){var r=function oo(u){return 1==(u=+u)?Qr:function(A,r){return r-A?function Cr(u,A,r){return u=Math.pow(u,r),A=Math.pow(A,r)-u,r=1/r,function(b){return Math.pow(u+b*A,r)}}(A,r,u):sr(isNaN(A)?r:A)}}(A);function b(B,K){var Ae=r((B=Yr(B)).r,(K=Yr(K)).r),st=r(B.g,K.g),jt=r(B.b,K.b),Wt=Qr(B.opacity,K.opacity);return function(ci){return B.r=Ae(ci),B.g=st(ci),B.b=jt(ci),B.opacity=Wt(ci),B+""}}return b.gamma=u,b}(1);function cr(u){return function(A){var Ae,st,r=A.length,b=new Array(r),B=new Array(r),K=new Array(r);for(Ae=0;Ae=1?(r=1,A-1):Math.floor(r*A),B=u[b],K=u[b+1];return Hr((r-b/A)*A,b>0?u[b-1]:2*B-K,B,K,br&&(K=A.slice(r,K),st[Ae]?st[Ae]+=K:st[++Ae]=K),(b=b[0])===(B=B[0])?st[Ae]?st[Ae]+=B:st[++Ae]=B:(st[++Ae]=null,jt.push({i:Ae,x:On(b,B)})),r=ya.lastIndex;return r=0&&u._call.call(void 0,A),u=u._next;--ca}()}finally{ca=0,function Sr(){for(var u,r,A=ct,b=1/0;A;)A._call?(b>A._time&&(b=A._time),u=A,A=A._next):(r=A._next,A._next=null,A=u?u._next=r:ct=r);et=u,Xo(b)}(),kt=0}}function Uo(){var u=on.now(),A=u-Ze;A>Za&&(wi-=A,Ze=u)}function Xo(u){ca||(Wi&&(Wi=clearTimeout(Wi)),u-kt>24?(u<1/0&&(Wi=setTimeout(ds,u-on.now()-wi)),_n&&(_n=clearInterval(_n))):(_n||(Ze=on.now(),_n=setInterval(Uo,Za)),ca=1,va(ds)))}function Ds(u,A,r){var b=new so;return b.restart(B=>{b.stop(),u(B+A)},A=null==A?0:+A,r),b}so.prototype=Ws.prototype={constructor:so,restart:function(u,A,r){if("function"!=typeof u)throw new TypeError("callback is not a function");r=(null==r?Ei():+r)+(null==A?0:+A),!this._next&&et!==this&&(et?et._next=this:ct=this,et=this),this._call=u,this._time=r,Xo()},stop:function(){this._call&&(this._call=null,this._time=1/0,Xo())}};var Pc=gi("start","end","cancel","interrupt"),Zs=[],$o=0,qn=1,ki=2,Ua=3,co=4,Fi=5,No=6;function Mo(u,A,r,b,B,K){var Ae=u.__transition;if(Ae){if(r in Ae)return}else u.__transition={};!function Go(u,A,r){var B,b=u.__transition;function Ae(Wt){var ci,fi,_i,Ti;if(r.state!==qn)return jt();for(ci in b)if((Ti=b[ci]).name===r.name){if(Ti.state===Ua)return Ds(Ae);Ti.state===co?(Ti.state=No,Ti.timer.stop(),Ti.on.call("interrupt",u,u.__data__,Ti.index,Ti.group),delete b[ci]):+ci$o)throw new Error("too late; already scheduled");return r}function Er(u,A){var r=dr(u,A);if(r.state>Ua)throw new Error("too late; already running");return r}function dr(u,A){var r=u.__transition;if(!r||!(r=r[A]))throw new Error("transition not found");return r}var ks,Ys=180/Math.PI,Fo={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Is(u,A,r,b,B,K){var Ae,st,jt;return(Ae=Math.sqrt(u*u+A*A))&&(u/=Ae,A/=Ae),(jt=u*r+A*b)&&(r-=u*jt,b-=A*jt),(st=Math.sqrt(r*r+b*b))&&(r/=st,b/=st,jt/=st),u*b180?ci+=360:ci-Wt>180&&(Wt+=360),_i.push({i:fi.push(B(fi)+"rotate(",null,b)-2,x:On(Wt,ci)})):ci&&fi.push(B(fi)+"rotate("+ci+b)}(Wt.rotate,ci.rotate,fi,_i),function st(Wt,ci,fi,_i){Wt!==ci?_i.push({i:fi.push(B(fi)+"skewX(",null,b)-2,x:On(Wt,ci)}):ci&&fi.push(B(fi)+"skewX("+ci+b)}(Wt.skewX,ci.skewX,fi,_i),function jt(Wt,ci,fi,_i,Ti,Ji){if(Wt!==fi||ci!==_i){var vn=Ti.push(B(Ti)+"scale(",null,",",null,")");Ji.push({i:vn-4,x:On(Wt,fi)},{i:vn-2,x:On(ci,_i)})}else(1!==fi||1!==_i)&&Ti.push(B(Ti)+"scale("+fi+","+_i+")")}(Wt.scaleX,Wt.scaleY,ci.scaleX,ci.scaleY,fi,_i),Wt=ci=null,function(Ti){for(var Li,Ji=-1,vn=_i.length;++Ji=0&&(A=A.slice(0,r)),!A||"start"===A})}(A)?lc:Er;return function(){var Ae=K(this,u),st=Ae.on;st!==b&&(B=(b=st).copy()).on(A,r),Ae.on=B}}(r,u,A))},attr:function ji(u,A){var r=Fe(u),b="transform"===r?us:fs;return this.attrTween(u,"function"==typeof A?(r.local?La:xa)(r,b,la(this,"attr."+u,A)):null==A?(r.local?hc:Rc)(r):(r.local?Xi:Wn)(r,b,A))},attrTween:function Te(u,A){var r="attr."+u;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==A)return this.tween(r,null);if("function"!=typeof A)throw new Error;var b=Fe(u);return this.tween(r,(b.local?ne:te)(b,A))},style:function Nc(u,A,r){var b="transform"==(u+="")?es:fs;return null==A?this.styleTween(u,function ho(u,A){var r,b,B;return function(){var K=ht(this,u),Ae=(this.style.removeProperty(u),ht(this,u));return K===Ae?null:K===r&&Ae===b?B:B=A(r=K,b=Ae)}}(u,b)).on("end.style."+u,zr(u)):"function"==typeof A?this.styleTween(u,function Wo(u,A,r){var b,B,K;return function(){var Ae=ht(this,u),st=r(this),jt=st+"";return null==st&&(this.style.removeProperty(u),jt=st=ht(this,u)),Ae===jt?null:Ae===b&&jt===B?K:(B=jt,K=A(b=Ae,st))}}(u,b,la(this,"style."+u,A))).each(function Ul(u,A){var r,b,B,st,K="style."+A,Ae="end."+K;return function(){var jt=Er(this,u),Wt=jt.on,ci=null==jt.value[K]?st||(st=zr(A)):void 0;(Wt!==r||B!==ci)&&(b=(r=Wt).copy()).on(Ae,B=ci),jt.on=b}}(this._id,u)):this.styleTween(u,function ol(u,A,r){var b,K,B=r+"";return function(){var Ae=ht(this,u);return Ae===B?null:Ae===b?K:K=A(b=Ae,r)}}(u,b,A),r).on("end.style."+u,null)},styleTween:function Os(u,A,r){var b="style."+(u+="");if(arguments.length<2)return(b=this.tween(b))&&b._value;if(null==A)return this.tween(b,null);if("function"!=typeof A)throw new Error;return this.tween(b,function Gl(u,A,r){var b,B;function K(){var Ae=A.apply(this,arguments);return Ae!==B&&(b=(B=Ae)&&function Ar(u,A,r){return function(b){this.style.setProperty(u,A.call(this,b),r)}}(u,Ae,r)),b}return K._value=A,K}(u,A,r??""))},text:function cl(u){return this.tween("text","function"==typeof u?function sl(u){return function(){var A=u(this);this.textContent=A??""}}(la(this,"text",u)):function Fc(u){return function(){this.textContent=u}}(null==u?"":u+""))},textTween:function Wl(u){var A="text";if(arguments.length<1)return(A=this.tween(A))&&A._value;if(null==u)return this.tween(A,null);if("function"!=typeof u)throw new Error;return this.tween(A,function z1(u){var A,r;function b(){var B=u.apply(this,arguments);return B!==r&&(A=(r=B)&&function H1(u){return function(A){this.textContent=u.call(this,A)}}(B)),A}return b._value=u,b}(u))},remove:function ra(){return this.on("end.remove",function ua(u){return function(){var A=this.parentNode;for(var r in this.__transition)if(+r!==u)return;A&&A.removeChild(this)}}(this._id))},tween:function Ho(u,A){var r=this._id;if(u+="",arguments.length<2){for(var Ae,b=dr(this.node(),r).tween,B=0,K=b.length;Bki&&b.stateA?1:u>=A?0:NaN}function rn(u,A){return null==u||null==A?NaN:Au?1:A>=u?0:NaN}function an(u){let A,r,b;function B(st,jt,Wt=0,ci=st.length){if(Wt>>1;r(st[fi],jt)<0?Wt=fi+1:ci=fi}while(WtDi(u(st),jt),b=(st,jt)=>u(st)-jt):(A=u===Di||u===rn?u:fa,r=u,b=u),{left:B,center:function Ae(st,jt,Wt=0,ci=st.length){const fi=B(st,jt,Wt,ci-1);return fi>Wt&&b(st[fi-1],jt)>-b(st[fi],jt)?fi-1:fi},right:function K(st,jt,Wt=0,ci=st.length){if(Wt>>1;r(st[fi],jt)<=0?Wt=fi+1:ci=fi}while(Wt=ar?10:K>=ps?5:K>=is?2:1;let st,jt,Wt;return B<0?(Wt=Math.pow(10,-B)/Ae,st=Math.round(u*Wt),jt=Math.round(A*Wt),st/WtA&&--jt,Wt=-Wt):(Wt=Math.pow(10,B)*Ae,st=Math.round(u/Wt),jt=Math.round(A/Wt),st*WtA&&--jt),jt(u(K=new Date(+K)),K),B.ceil=K=>(u(K=new Date(K-1)),A(K,1),u(K),K),B.round=K=>{const Ae=B(K),st=B.ceil(K);return K-Ae(A(K=new Date(+K),null==Ae?1:Math.floor(Ae)),K),B.range=(K,Ae,st)=>{const jt=[];if(K=B.ceil(K),st=null==st?1:Math.floor(st),!(K0))return jt;let Wt;do{jt.push(Wt=new Date(+K)),A(K,st),u(K)}while(WtKa(Ae=>{if(Ae>=Ae)for(;u(Ae),!K(Ae);)Ae.setTime(Ae-1)},(Ae,st)=>{if(Ae>=Ae)if(st<0)for(;++st<=0;)for(;A(Ae,-1),!K(Ae););else for(;--st>=0;)for(;A(Ae,1),!K(Ae););}),r&&(B.count=(K,Ae)=>(Yl.setTime(+K),mc.setTime(+Ae),u(Yl),u(mc),Math.floor(r(Yl,mc))),B.every=K=>(K=Math.floor(K),isFinite(K)&&K>0?K>1?B.filter(b?Ae=>b(Ae)%K==0:Ae=>B.count(0,Ae)%K==0):B:null)),B}const ml=Ka(()=>{},(u,A)=>{u.setTime(+u+A)},(u,A)=>A-u);ml.every=u=>(u=Math.floor(u),isFinite(u)&&u>0?u>1?Ka(A=>{A.setTime(Math.floor(A/u)*u)},(A,r)=>{A.setTime(+A+r*u)},(A,r)=>(r-A)/u):ml:null);const Wc=Ka(u=>{u.setTime(u-u.getMilliseconds())},(u,A)=>{u.setTime(+u+A*Eo)},(u,A)=>(A-u)/Eo,u=>u.getUTCSeconds()),pc=Ka(u=>{u.setTime(u-u.getMilliseconds()-u.getSeconds()*Eo)},(u,A)=>{u.setTime(+u+A*ur)},(u,A)=>(A-u)/ur,u=>u.getMinutes()),D0=Ka(u=>{u.setUTCSeconds(0,0)},(u,A)=>{u.setTime(+u+A*ur)},(u,A)=>(A-u)/ur,u=>u.getUTCMinutes()),Z1=Ka(u=>{u.setTime(u-u.getMilliseconds()-u.getSeconds()*Eo-u.getMinutes()*ur)},(u,A)=>{u.setTime(+u+A*To)},(u,A)=>(A-u)/To,u=>u.getHours()),l2=Ka(u=>{u.setUTCMinutes(0,0,0)},(u,A)=>{u.setTime(+u+A*To)},(u,A)=>(A-u)/To,u=>u.getUTCHours()),Y1=Ka(u=>u.setHours(0,0,0,0),(u,A)=>u.setDate(u.getDate()+A),(u,A)=>(A-u-(A.getTimezoneOffset()-u.getTimezoneOffset())*ur)/$r,u=>u.getDate()-1),K1=(Ka(u=>{u.setUTCHours(0,0,0,0)},(u,A)=>{u.setUTCDate(u.getUTCDate()+A)},(u,A)=>(A-u)/$r,u=>u.getUTCDate()-1),Ka(u=>{u.setUTCHours(0,0,0,0)},(u,A)=>{u.setUTCDate(u.getUTCDate()+A)},(u,A)=>(A-u)/$r,u=>Math.floor(u/$r)));function Qs(u){return Ka(A=>{A.setDate(A.getDate()-(A.getDay()+7-u)%7),A.setHours(0,0,0,0)},(A,r)=>{A.setDate(A.getDate()+7*r)},(A,r)=>(r-A-(r.getTimezoneOffset()-A.getTimezoneOffset())*ur)/fl)}const d2=Qs(0);function Zn(u){return Ka(A=>{A.setUTCDate(A.getUTCDate()-(A.getUTCDay()+7-u)%7),A.setUTCHours(0,0,0,0)},(A,r)=>{A.setUTCDate(A.getUTCDate()+7*r)},(A,r)=>(r-A)/fl)}Qs(1),Qs(2),Qs(3),Qs(4),Qs(5),Qs(6);const gl=Zn(0),$1=(Zn(1),Zn(2),Zn(3),Zn(4),Zn(5),Zn(6),Ka(u=>{u.setDate(1),u.setHours(0,0,0,0)},(u,A)=>{u.setMonth(u.getMonth()+A)},(u,A)=>A.getMonth()-u.getMonth()+12*(A.getFullYear()-u.getFullYear()),u=>u.getMonth())),jl=Ka(u=>{u.setUTCDate(1),u.setUTCHours(0,0,0,0)},(u,A)=>{u.setUTCMonth(u.getUTCMonth()+A)},(u,A)=>A.getUTCMonth()-u.getUTCMonth()+12*(A.getUTCFullYear()-u.getUTCFullYear()),u=>u.getUTCMonth()),qs=Ka(u=>{u.setMonth(0,1),u.setHours(0,0,0,0)},(u,A)=>{u.setFullYear(u.getFullYear()+A)},(u,A)=>A.getFullYear()-u.getFullYear(),u=>u.getFullYear());qs.every=u=>isFinite(u=Math.floor(u))&&u>0?Ka(A=>{A.setFullYear(Math.floor(A.getFullYear()/u)*u),A.setMonth(0,1),A.setHours(0,0,0,0)},(A,r)=>{A.setFullYear(A.getFullYear()+r*u)}):null;const Js=Ka(u=>{u.setUTCMonth(0,1),u.setUTCHours(0,0,0,0)},(u,A)=>{u.setUTCFullYear(u.getUTCFullYear()+A)},(u,A)=>A.getUTCFullYear()-u.getUTCFullYear(),u=>u.getUTCFullYear());function ed(u,A,r,b,B,K){const Ae=[[Wc,1,Eo],[Wc,5,5*Eo],[Wc,15,15*Eo],[Wc,30,30*Eo],[K,1,ur],[K,5,5*ur],[K,15,15*ur],[K,30,30*ur],[B,1,To],[B,3,3*To],[B,6,6*To],[B,12,12*To],[b,1,$r],[b,2,2*$r],[r,1,fl],[A,1,Ns],[A,3,3*Ns],[u,1,W1]];function jt(Wt,ci,fi){const _i=Math.abs(ci-Wt)/fi,Ti=an(([,,Li])=>Li).right(Ae,_i);if(Ti===Ae.length)return u.every(gs(Wt/W1,ci/W1,fi));if(0===Ti)return ml.every(Math.max(gs(Wt,ci,fi),1));const[Ji,vn]=Ae[_i/Ae[Ti-1][2]isFinite(u=Math.floor(u))&&u>0?Ka(A=>{A.setUTCFullYear(Math.floor(A.getUTCFullYear()/u)*u),A.setUTCMonth(0,1),A.setUTCHours(0,0,0,0)},(A,r)=>{A.setUTCFullYear(A.getUTCFullYear()+r*u)}):null;const[Iu,p2]=ed(Js,jl,gl,K1,l2,D0),[G0,g2]=ed(qs,$1,d2,Y1,Z1,pc);var Kl=new Date,Ql=new Date;function Fs(u,A,r,b){function B(K){return u(K=0===arguments.length?new Date:new Date(+K)),K}return B.floor=function(K){return u(K=new Date(+K)),K},B.ceil=function(K){return u(K=new Date(K-1)),A(K,1),u(K),K},B.round=function(K){var Ae=B(K),st=B.ceil(K);return K-Ae0))return jt;do{jt.push(Wt=new Date(+K)),A(K,st),u(K)}while(Wt=Ae)for(;u(Ae),!K(Ae);)Ae.setTime(Ae-1)},function(Ae,st){if(Ae>=Ae)if(st<0)for(;++st<=0;)for(;A(Ae,-1),!K(Ae););else for(;--st>=0;)for(;A(Ae,1),!K(Ae););})},r&&(B.count=function(K,Ae){return Kl.setTime(+K),Ql.setTime(+Ae),u(Kl),u(Ql),Math.floor(r(Kl,Ql))},B.every=function(K){return K=Math.floor(K),isFinite(K)&&K>0?K>1?B.filter(b?function(Ae){return b(Ae)%K==0}:function(Ae){return B.count(0,Ae)%K==0}):B:null}),B}const _l=6e4,vl=60*_l*24,gc=7*vl;function Hs(u){return Fs(function(A){A.setUTCDate(A.getUTCDate()-(A.getUTCDay()+7-u)%7),A.setUTCHours(0,0,0,0)},function(A,r){A.setUTCDate(A.getUTCDate()+7*r)},function(A,r){return(r-A)/gc})}var ql=Hs(0),jc=Hs(1),vs=(Hs(2),Hs(3),Hs(4));const _c=(Hs(5),Hs(6),Fs(function(u){u.setUTCHours(0,0,0,0)},function(u,A){u.setUTCDate(u.getUTCDate()+A)},function(u,A){return(A-u)/vl},function(u){return u.getUTCDate()-1}));function vc(u){return Fs(function(A){A.setDate(A.getDate()-(A.getDay()+7-u)%7),A.setHours(0,0,0,0)},function(A,r){A.setDate(A.getDate()+7*r)},function(A,r){return(r-A-(r.getTimezoneOffset()-A.getTimezoneOffset())*_l)/gc})}var id=vc(0),bl=vc(1),Xs=(vc(2),vc(3),vc(4));const yl=(vc(5),vc(6),Fs(u=>u.setHours(0,0,0,0),(u,A)=>u.setDate(u.getDate()+A),(u,A)=>(A-u-(A.getTimezoneOffset()-u.getTimezoneOffset())*_l)/vl,u=>u.getDate()-1));var t1=Fs(function(u){u.setMonth(0,1),u.setHours(0,0,0,0)},function(u,A){u.setFullYear(u.getFullYear()+A)},function(u,A){return A.getFullYear()-u.getFullYear()},function(u){return u.getFullYear()});t1.every=function(u){return isFinite(u=Math.floor(u))&&u>0?Fs(function(A){A.setFullYear(Math.floor(A.getFullYear()/u)*u),A.setMonth(0,1),A.setHours(0,0,0,0)},function(A,r){A.setFullYear(A.getFullYear()+r*u)}):null};const $s=t1;var xl=Fs(function(u){u.setUTCMonth(0,1),u.setUTCHours(0,0,0,0)},function(u,A){u.setUTCFullYear(u.getUTCFullYear()+A)},function(u,A){return A.getUTCFullYear()-u.getUTCFullYear()},function(u){return u.getUTCFullYear()});xl.every=function(u){return isFinite(u=Math.floor(u))&&u>0?Fs(function(A){A.setUTCFullYear(Math.floor(A.getUTCFullYear()/u)*u),A.setUTCMonth(0,1),A.setUTCHours(0,0,0,0)},function(A,r){A.setUTCFullYear(A.getUTCFullYear()+r*u)}):null};const zs=xl;function n1(u){if(0<=u.y&&u.y<100){var A=new Date(-1,u.m,u.d,u.H,u.M,u.S,u.L);return A.setFullYear(u.y),A}return new Date(u.y,u.m,u.d,u.H,u.M,u.S,u.L)}function od(u){if(0<=u.y&&u.y<100){var A=new Date(Date.UTC(-1,u.m,u.d,u.H,u.M,u.S,u.L));return A.setUTCFullYear(u.y),A}return new Date(Date.UTC(u.y,u.m,u.d,u.H,u.M,u.S,u.L))}function Cl(u,A,r){return{y:u,m:A,d:r,H:0,M:0,S:0,L:0}}var sd={"-":"",_:" ",0:"0"},fr=/^\s*\d+/,a1=/^%/,r1=/[\\^$*+?|[\]().{}]/g;function $n(u,A,r){var b=u<0?"-":"",B=(b?-u:u)+"",K=B.length;return b+(K[A.toLowerCase(),r]))}function Q0(u,A,r){var b=fr.exec(A.slice(r,r+1));return b?(u.w=+b[0],r+b[0].length):-1}function s1(u,A,r){var b=fr.exec(A.slice(r,r+1));return b?(u.u=+b[0],r+b[0].length):-1}function q0(u,A,r){var b=fr.exec(A.slice(r,r+2));return b?(u.U=+b[0],r+b[0].length):-1}function w2(u,A,r){var b=fr.exec(A.slice(r,r+2));return b?(u.V=+b[0],r+b[0].length):-1}function wl(u,A,r){var b=fr.exec(A.slice(r,r+2));return b?(u.W=+b[0],r+b[0].length):-1}function c1(u,A,r){var b=fr.exec(A.slice(r,r+4));return b?(u.y=+b[0],r+b[0].length):-1}function cd(u,A,r){var b=fr.exec(A.slice(r,r+2));return b?(u.y=+b[0]+(+b[0]>68?1900:2e3),r+b[0].length):-1}function M2(u,A,r){var b=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(A.slice(r,r+6));return b?(u.Z=b[1]?0:-(b[2]+(b[3]||"00")),r+b[0].length):-1}function ld(u,A,r){var b=fr.exec(A.slice(r,r+1));return b?(u.q=3*b[0]-3,r+b[0].length):-1}function yc(u,A,r){var b=fr.exec(A.slice(r,r+2));return b?(u.m=b[0]-1,r+b[0].length):-1}function dd(u,A,r){var b=fr.exec(A.slice(r,r+2));return b?(u.d=+b[0],r+b[0].length):-1}function J0(u,A,r){var b=fr.exec(A.slice(r,r+3));return b?(u.m=0,u.d=+b[0],r+b[0].length):-1}function hd(u,A,r){var b=fr.exec(A.slice(r,r+2));return b?(u.H=+b[0],r+b[0].length):-1}function X0(u,A,r){var b=fr.exec(A.slice(r,r+2));return b?(u.M=+b[0],r+b[0].length):-1}function $0(u,A,r){var b=fr.exec(A.slice(r,r+2));return b?(u.S=+b[0],r+b[0].length):-1}function po(u,A,r){var b=fr.exec(A.slice(r,r+3));return b?(u.L=+b[0],r+b[0].length):-1}function Xc(u,A,r){var b=fr.exec(A.slice(r,r+6));return b?(u.L=Math.floor(b[0]/1e3),r+b[0].length):-1}function eh(u,A,r){var b=a1.exec(A.slice(r,r+1));return b?r+b[0].length:-1}function S2(u,A,r){var b=fr.exec(A.slice(r));return b?(u.Q=+b[0],r+b[0].length):-1}function th(u,A,r){var b=fr.exec(A.slice(r));return b?(u.s=+b[0],r+b[0].length):-1}function E2(u,A){return $n(u.getDate(),A,2)}function ih(u,A){return $n(u.getHours(),A,2)}function nh(u,A){return $n(u.getHours()%12||12,A,2)}function T2(u,A){return $n(1+yl.count($s(u),u),A,3)}function A2(u,A){return $n(u.getMilliseconds(),A,3)}function ah(u,A){return A2(u,A)+"000"}function rh(u,A){return $n(u.getMonth()+1,A,2)}function L2(u,A){return $n(u.getMinutes(),A,2)}function l1(u,A){return $n(u.getSeconds(),A,2)}function bs(u){var A=u.getDay();return 0===A?7:A}function Ml(u,A){return $n(id.count($s(u)-1,u),A,2)}function ud(u){var A=u.getDay();return A>=4||0===A?Xs(u):Xs.ceil(u)}function D2(u,A){return u=ud(u),$n(Xs.count($s(u),u)+(4===$s(u).getDay()),A,2)}function fd(u){return u.getDay()}function Gu(u,A){return $n(bl.count($s(u)-1,u),A,2)}function I2(u,A){return $n(u.getFullYear()%100,A,2)}function Wu(u,A){return $n((u=ud(u)).getFullYear()%100,A,2)}function md(u,A){return $n(u.getFullYear()%1e4,A,4)}function d1(u,A){var r=u.getDay();return $n((u=r>=4||0===r?Xs(u):Xs.ceil(u)).getFullYear()%1e4,A,4)}function Zu(u){var A=u.getTimezoneOffset();return(A>0?"-":(A*=-1,"+"))+$n(A/60|0,"0",2)+$n(A%60,"0",2)}function oh(u,A){return $n(u.getUTCDate(),A,2)}function pd(u,A){return $n(u.getUTCHours(),A,2)}function sh(u,A){return $n(u.getUTCHours()%12||12,A,2)}function ch(u,A){return $n(1+_c.count(zs(u),u),A,3)}function k2(u,A){return $n(u.getUTCMilliseconds(),A,3)}function lh(u,A){return k2(u,A)+"000"}function O2(u,A){return $n(u.getUTCMonth()+1,A,2)}function h1(u,A){return $n(u.getUTCMinutes(),A,2)}function P2(u,A){return $n(u.getUTCSeconds(),A,2)}function gd(u){var A=u.getUTCDay();return 0===A?7:A}function R2(u,A){return $n(ql.count(zs(u)-1,u),A,2)}function Qa(u){var A=u.getUTCDay();return A>=4||0===A?vs(u):vs.ceil(u)}function _d(u,A){return u=Qa(u),$n(vs.count(zs(u),u)+(4===zs(u).getUTCDay()),A,2)}function dh(u){return u.getUTCDay()}function N2(u,A){return $n(jc.count(zs(u)-1,u),A,2)}function vd(u,A){return $n(u.getUTCFullYear()%100,A,2)}function Yu(u,A){return $n((u=Qa(u)).getUTCFullYear()%100,A,2)}function ju(u,A){return $n(u.getUTCFullYear()%1e4,A,4)}function hh(u,A){var r=u.getUTCDay();return $n((u=r>=4||0===r?vs(u):vs.ceil(u)).getUTCFullYear()%1e4,A,4)}function Ku(){return"+0000"}function F2(){return"%"}function Lr(u){return+u}function uh(u){return Math.floor(+u/1e3)}function yd(u){return null===u?NaN:+u}!function fh(u){(function C2(u){var A=u.dateTime,r=u.date,b=u.time,B=u.periods,K=u.days,Ae=u.shortDays,st=u.months,jt=u.shortMonths,Wt=Jc(B),ci=o1(B),fi=Jc(K),_i=o1(K),Ti=Jc(Ae),Ji=o1(Ae),vn=Jc(st),Li=o1(st),un=Jc(jt),Sn=o1(jt),dn={a:function Na(mn){return Ae[mn.getDay()]},A:function vo(mn){return K[mn.getDay()]},b:function ba(mn){return jt[mn.getMonth()]},B:function vr(mn){return st[mn.getMonth()]},c:null,d:E2,e:E2,f:ah,g:Wu,G:d1,H:ih,I:nh,j:T2,L:A2,m:rh,M:L2,p:function br(mn){return B[+(mn.getHours()>=12)]},q:function yr(mn){return 1+~~(mn.getMonth()/3)},Q:Lr,s:uh,S:l1,u:bs,U:Ml,V:D2,w:fd,W:Gu,x:null,X:null,y:I2,Y:md,Z:Zu,"%":F2},Fn={a:function Rl(mn){return Ae[mn.getUTCDay()]},A:function Nl(mn){return K[mn.getUTCDay()]},b:function Fl(mn){return jt[mn.getUTCMonth()]},B:function Gs(mn){return st[mn.getUTCMonth()]},c:null,d:oh,e:oh,f:lh,g:Yu,G:hh,H:pd,I:sh,j:ch,L:k2,m:O2,M:h1,p:function bo(mn){return B[+(mn.getUTCHours()>=12)]},q:function Hl(mn){return 1+~~(mn.getUTCMonth()/3)},Q:Lr,s:uh,S:P2,u:gd,U:R2,V:_d,w:dh,W:N2,x:null,X:null,y:vd,Y:ju,Z:Ku,"%":F2},Rn={a:function Fa(mn,Yn,na){var Ki=Ti.exec(Yn.slice(na));return Ki?(mn.w=Ji.get(Ki[0].toLowerCase()),na+Ki[0].length):-1},A:function En(mn,Yn,na){var Ki=fi.exec(Yn.slice(na));return Ki?(mn.w=_i.get(Ki[0].toLowerCase()),na+Ki[0].length):-1},b:function Or(mn,Yn,na){var Ki=un.exec(Yn.slice(na));return Ki?(mn.m=Sn.get(Ki[0].toLowerCase()),na+Ki[0].length):-1},B:function ga(mn,Yn,na){var Ki=vn.exec(Yn.slice(na));return Ki?(mn.m=Li.get(Ki[0].toLowerCase()),na+Ki[0].length):-1},c:function Ha(mn,Yn,na){return Ra(mn,A,Yn,na)},d:dd,e:dd,f:Xc,g:cd,G:c1,H:hd,I:hd,j:J0,L:po,m:yc,M:X0,p:function _o(mn,Yn,na){var Ki=Wt.exec(Yn.slice(na));return Ki?(mn.p=ci.get(Ki[0].toLowerCase()),na+Ki[0].length):-1},q:ld,Q:S2,s:th,S:$0,u:s1,U:q0,V:w2,w:Q0,W:wl,x:function cs(mn,Yn,na){return Ra(mn,r,Yn,na)},X:function Xa(mn,Yn,na){return Ra(mn,b,Yn,na)},y:cd,Y:c1,Z:M2,"%":eh};function bn(mn,Yn){return function(na){var yo,kn,rr,Ki=[],$a=-1,Sa=0,Lo=mn.length;for(na instanceof Date||(na=new Date(+na));++$a53)return null;"w"in Ki||(Ki.w=1),"Z"in Ki?(Lo=(Sa=od(Cl(Ki.y,0,1))).getUTCDay(),Sa=Lo>4||0===Lo?jc.ceil(Sa):jc(Sa),Sa=_c.offset(Sa,7*(Ki.V-1)),Ki.y=Sa.getUTCFullYear(),Ki.m=Sa.getUTCMonth(),Ki.d=Sa.getUTCDate()+(Ki.w+6)%7):(Lo=(Sa=n1(Cl(Ki.y,0,1))).getDay(),Sa=Lo>4||0===Lo?bl.ceil(Sa):bl(Sa),Sa=yl.offset(Sa,7*(Ki.V-1)),Ki.y=Sa.getFullYear(),Ki.m=Sa.getMonth(),Ki.d=Sa.getDate()+(Ki.w+6)%7)}else("W"in Ki||"U"in Ki)&&("w"in Ki||(Ki.w="u"in Ki?Ki.u%7:"W"in Ki?1:0),Lo="Z"in Ki?od(Cl(Ki.y,0,1)).getUTCDay():n1(Cl(Ki.y,0,1)).getDay(),Ki.m=0,Ki.d="W"in Ki?(Ki.w+6)%7+7*Ki.W-(Lo+5)%7:Ki.w+7*Ki.U-(Lo+6)%7);return"Z"in Ki?(Ki.H+=Ki.Z/100|0,Ki.M+=Ki.Z%100,od(Ki)):n1(Ki)}}function Ra(mn,Yn,na,Ki){for(var yo,kn,$a=0,Sa=Yn.length,Lo=na.length;$a=Lo)return-1;if(37===(yo=Yn.charCodeAt($a++))){if(yo=Yn.charAt($a++),!(kn=Rn[yo in sd?Yn.charAt($a++):yo])||(Ki=kn(mn,na,Ki))<0)return-1}else if(yo!=na.charCodeAt(Ki++))return-1}return Ki}return dn.x=bn(r,dn),dn.X=bn(b,dn),dn.c=bn(A,dn),Fn.x=bn(r,Fn),Fn.X=bn(b,Fn),Fn.c=bn(A,Fn),{format:function(mn){var Yn=bn(mn+="",dn);return Yn.toString=function(){return mn},Yn},parse:function(mn){var Yn=Pa(mn+="",!1);return Yn.toString=function(){return mn},Yn},utcFormat:function(mn){var Yn=bn(mn+="",Fn);return Yn.toString=function(){return mn},Yn},utcParse:function(mn){var Yn=Pa(mn+="",!0);return Yn.toString=function(){return mn},Yn}}})(u)}({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 xd=an(Di).right,Vr=(an(yd),xd);function Sl(u,A){return u=+u,A=+A,function(r){return Math.round(u*(1-r)+A*r)}}function B2(u){return+u}var ec=[0,1];function xc(u){return u}function El(u,A){return(A-=u=+u)?function(r){return(r-u)/A}:function V2(u){return function(){return u}}(isNaN(A)?NaN:.5)}function ph(u,A,r){var b=u[0],B=u[1],K=A[0],Ae=A[1];return BA&&(r=u,u=A,A=r),function(b){return Math.max(u,Math.min(A,b))}}(u[0],u[_i-1])),st=_i>2?g1:ph,jt=Wt=null,fi}function fi(_i){return null==_i||isNaN(_i=+_i)?K:(jt||(jt=st(u.map(b),A,r)))(b(Ae(_i)))}return fi.invert=function(_i){return Ae(B((Wt||(Wt=st(A,u.map(b),On)))(_i)))},fi.domain=function(_i){return arguments.length?(u=Array.from(_i,B2),ci()):u.slice()},fi.range=function(_i){return arguments.length?(A=Array.from(_i),ci()):A.slice()},fi.rangeRound=function(_i){return A=Array.from(_i),r=Sl,ci()},fi.clamp=function(_i){return arguments.length?(Ae=!!_i||xc,ci()):Ae!==xc},fi.interpolate=function(_i){return arguments.length?(r=_i,ci()):r},fi.unknown=function(_i){return arguments.length?(K=_i,fi):K},function(_i,Ti){return b=_i,B=Ti,ci()}}()(xc,xc)}function wc(u,A){switch(arguments.length){case 0:break;case 1:this.range(u);break;default:this.range(A).domain(u)}return this}var Br,vh=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function tl(u){if(!(A=vh.exec(u)))throw new Error("invalid format: "+u);var A;return new wd({fill:A[1],align:A[2],sign:A[3],symbol:A[4],zero:A[5],width:A[6],comma:A[7],precision:A[8]&&A[8].slice(1),trim:A[9],type:A[10]})}function wd(u){this.fill=void 0===u.fill?" ":u.fill+"",this.align=void 0===u.align?">":u.align+"",this.sign=void 0===u.sign?"-":u.sign+"",this.symbol=void 0===u.symbol?"":u.symbol+"",this.zero=!!u.zero,this.width=void 0===u.width?void 0:+u.width,this.comma=!!u.comma,this.precision=void 0===u.precision?void 0:+u.precision,this.trim=!!u.trim,this.type=void 0===u.type?"":u.type+""}function Tl(u,A){if((r=(u=A?u.toExponential(A-1):u.toExponential()).indexOf("e"))<0)return null;var r,b=u.slice(0,r);return[b.length>1?b[0]+b.slice(2):b,+u.slice(r+1)]}function Mc(u){return(u=Tl(Math.abs(u)))?u[1]:NaN}function bh(u,A){var r=Tl(u,A);if(!r)return u+"";var b=r[0],B=r[1];return B<0?"0."+new Array(-B).join("0")+b:b.length>B+1?b.slice(0,B+1)+"."+b.slice(B+1):b+new Array(B-b.length+2).join("0")}tl.prototype=wd.prototype,wd.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 xs={"%":(u,A)=>(100*u).toFixed(A),b:u=>Math.round(u).toString(2),c:u=>u+"",d:function W2(u){return Math.abs(u=Math.round(u))>=1e21?u.toLocaleString("en").replace(/,/g,""):u.toString(10)},e:(u,A)=>u.toExponential(A),f:(u,A)=>u.toFixed(A),g:(u,A)=>u.toPrecision(A),o:u=>Math.round(u).toString(8),p:(u,A)=>bh(100*u,A),r:bh,s:function _1(u,A){var r=Tl(u,A);if(!r)return u+"";var b=r[0],B=r[1],K=B-(Br=3*Math.max(-8,Math.min(8,Math.floor(B/3))))+1,Ae=b.length;return K===Ae?b:K>Ae?b+new Array(K-Ae+1).join("0"):K>0?b.slice(0,K)+"."+b.slice(K):"0."+new Array(1-K).join("0")+Tl(u,Math.max(0,A+K-1))[0]},X:u=>Math.round(u).toString(16).toUpperCase(),x:u=>Math.round(u).toString(16)};function Z2(u){return u}var v1,Ll,b1,Y2=Array.prototype.map,Td=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Ch(u){var A=u.domain;return u.ticks=function(r){var b=A();return function mo(u,A,r){if(!((r=+r)>0))return[];if((u=+u)==(A=+A))return[u];const b=A=B))return[];const st=K-B+1,jt=new Array(st);if(b)if(Ae<0)for(let Wt=0;Wt0;){if((Wt=Gc(Ae,st,r))===jt)return b[B]=Ae,b[K]=st,A(b);if(Wt>0)Ae=Math.floor(Ae/Wt)*Wt,st=Math.ceil(st/Wt)*Wt;else{if(!(Wt<0))break;Ae=Math.ceil(Ae*Wt)/Wt,st=Math.floor(st*Wt)/Wt}jt=Wt}return u},u}function tc(){var u=Cd();return u.copy=function(){return function $c(u,A){return A.domain(u.domain()).range(u.range()).interpolate(u.interpolate()).clamp(u.clamp()).unknown(u.unknown())}(u,tc())},wc.apply(u,arguments),Ch(u)}function K2(u,A,r){u=+u,A=+A,r=(B=arguments.length)<2?(A=u,u=0,1):B<3?1:+r;for(var b=-1,B=0|Math.max(0,Math.ceil((A-u)/r)),K=new Array(B);++b0&&st>0&&(jt+st+1>b&&(st=Math.max(1,b-jt)),K.push(r.substring(B-=st,B+st)),!((jt+=st+1)>b));)st=u[Ae=(Ae+1)%u.length];return K.reverse().join(A)}}(Y2.call(u.grouping,Number),u.thousands+""),r=void 0===u.currency?"":u.currency[0]+"",b=void 0===u.currency?"":u.currency[1]+"",B=void 0===u.decimal?".":u.decimal+"",K=void 0===u.numerals?Z2:function Al(u){return function(A){return A.replace(/[0-9]/g,function(r){return u[+r]})}}(Y2.call(u.numerals,String)),Ae=void 0===u.percent?"%":u.percent+"",st=void 0===u.minus?"\u2212":u.minus+"",jt=void 0===u.nan?"NaN":u.nan+"";function Wt(fi){var _i=(fi=tl(fi)).fill,Ti=fi.align,Ji=fi.sign,vn=fi.symbol,Li=fi.zero,un=fi.width,Sn=fi.comma,dn=fi.precision,Fn=fi.trim,Rn=fi.type;"n"===Rn?(Sn=!0,Rn="g"):xs[Rn]||(void 0===dn&&(dn=12),Fn=!0,Rn="g"),(Li||"0"===_i&&"="===Ti)&&(Li=!0,_i="0",Ti="=");var bn="$"===vn?r:"#"===vn&&/[boxX]/.test(Rn)?"0"+Rn.toLowerCase():"",Pa="$"===vn?b:/[%p]/.test(Rn)?Ae:"",Ra=xs[Rn],_o=/[defgprs%]/.test(Rn);function Fa(En){var Ha,cs,Xa,Or=bn,ga=Pa;if("c"===Rn)ga=Ra(En)+ga,En="";else{var Na=(En=+En)<0||1/En<0;if(En=isNaN(En)?jt:Ra(Math.abs(En),dn),Fn&&(En=function Ed(u){e:for(var B,A=u.length,r=1,b=-1;r0&&(b=0)}return b>0?u.slice(0,b)+u.slice(B+1):u}(En)),Na&&0==+En&&"+"!==Ji&&(Na=!1),Or=(Na?"("===Ji?Ji:st:"-"===Ji||"("===Ji?"":Ji)+Or,ga=("s"===Rn?Td[8+Br/3]:"")+ga+(Na&&"("===Ji?")":""),_o)for(Ha=-1,cs=En.length;++Ha(Xa=En.charCodeAt(Ha))||Xa>57){ga=(46===Xa?B+En.slice(Ha+1):En.slice(Ha))+ga,En=En.slice(0,Ha);break}}Sn&&!Li&&(En=A(En,1/0));var vo=Or.length+En.length+ga.length,ba=vo>1)+Or+En+ga+ba.slice(vo);break;default:En=ba+Or+En+ga}return K(En)}return dn=void 0===dn?6:/[gprs]/.test(Rn)?Math.max(1,Math.min(21,dn)):Math.max(0,Math.min(20,dn)),Fa.toString=function(){return fi+""},Fa}return{format:Wt,formatPrefix:function ci(fi,_i){var Ti=Wt(((fi=tl(fi)).type="f",fi)),Ji=3*Math.max(-8,Math.min(8,Math.floor(Mc(_i)/3))),vn=Math.pow(10,-Ji),Li=Td[8+Ji/3];return function(un){return Ti(vn*un)+Li}}}}(u),Ll=v1.format,b1=v1.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});class Ld extends Map{constructor(A,r=Q2){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),null!=A)for(const[b,B]of A)this.set(b,B)}get(A){return super.get(Dl(this,A))}has(A){return super.has(Dl(this,A))}set(A,r){return super.set(Sc(this,A),r)}delete(A){return super.delete(Cs(this,A))}}class qu extends Set{constructor(A,r=Q2){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),null!=A)for(const b of A)this.add(b)}has(A){return super.has(Dl(this,A))}add(A){return super.add(Sc(this,A))}delete(A){return super.delete(Cs(this,A))}}function Dl({_intern:u,_key:A},r){const b=A(r);return u.has(b)?u.get(b):r}function Sc({_intern:u,_key:A},r){const b=A(r);return u.has(b)?u.get(b):(u.set(b,r),r)}function Cs({_intern:u,_key:A},r){const b=A(r);return u.has(b)&&(r=u.get(b),u.delete(b)),r}function Q2(u){return null!==u&&"object"==typeof u?u.valueOf():u}const Dd=Symbol("implicit");function y1(){var u=new Ld,A=[],r=[],b=Dd;function B(K){let Ae=u.get(K);if(void 0===Ae){if(b!==Dd)return b;u.set(K,Ae=A.push(K)-1)}return r[Ae%r.length]}return B.domain=function(K){if(!arguments.length)return A.slice();A=[],u=new Ld;for(const Ae of K)u.has(Ae)||u.set(Ae,A.push(Ae)-1);return B},B.range=function(K){return arguments.length?(r=Array.from(K),B):r.slice()},B.unknown=function(K){return arguments.length?(b=K,B):b},B.copy=function(){return y1(A,r).unknown(b)},wc.apply(B,arguments),B}function nl(){var K,Ae,u=y1().unknown(void 0),A=u.domain,r=u.range,b=0,B=1,st=!1,jt=0,Wt=0,ci=.5;function fi(){var _i=A().length,Ti=B=1)return+r(u[b-1],b-1,u);var b,B=(b-1)*A,K=Math.floor(B),Ae=+r(u[K],K,u);return Ae+(+r(u[K+1],K+1,u)-Ae)*(B-K)}}function kd(){var b,u=[],A=[],r=[];function B(){var Ae=0,st=Math.max(1,A.length);for(r=new Array(st-1);++Ae0?r[st-1]:u[0],st1)("ngIfElse",b)}}function R(u,A){if(1&u&&(t.O4$(),t.YNc(0,w1,2,2,"ng-container",5)),2&u){const r=t.oxw(2).$implicit,b=t.oxw();t.Q6J("ngIf",b.tickChunks(r))}}function N(u,A){if(1&u&&(t.O4$(),t._uU(0)),2&u){const r=t.oxw().ngIf,b=t.oxw(2);t.hij(" ",b.tickTrim(r)," ")}}function S(u,A){if(1&u&&(t.O4$(),t.ynx(0),t.TgZ(1,"title"),t._uU(2),t.qZA(),t.TgZ(3,"text",6),t.YNc(4,ic,1,0,"ng-container",7),t.qZA(),t.YNc(5,R,1,1,"ng-template",null,8,t.W1O),t.YNc(7,N,1,1,"ng-template",null,9,t.W1O),t.BQk()),2&u){const r=A.ngIf,b=t.MAs(6),B=t.MAs(8),K=t.oxw(2);t.xp6(2),t.Oqu(r),t.xp6(1),t.Udp("font-size","12px"),t.uIk("dy",K.dy)("x",K.x1)("y",K.y1)("text-anchor",K.textAnchor),t.xp6(1),t.Q6J("ngIf",K.wrapTicks)("ngIfThen",b)("ngIfElse",B)}}function z(u,A){if(1&u&&(t.O4$(),t.TgZ(0,"g",4),t.YNc(1,S,9,10,"ng-container",5),t.qZA()),2&u){const r=A.$implicit,b=t.oxw();t.uIk("transform",b.transform(r)),t.xp6(1),t.Q6J("ngIf",b.tickFormat(r))}}function U(u,A){if(1&u&&(t.O4$(),t._UZ(0,"path",13)),2&u){const r=t.oxw();t.uIk("d",r.referenceAreaPath)("transform",r.gridLineTransform())}}function Ee(u,A){if(1&u&&(t.O4$(),t._UZ(0,"line",15)),2&u){const r=t.oxw(3);t.uIk("x2",r.gridLineWidth)}}function Mt(u,A){if(1&u&&(t.O4$(),t._UZ(0,"line",15)),2&u){const r=t.oxw(3);t.uIk("x2",-r.gridLineWidth)}}function Xt(u,A){if(1&u&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Ee,1,1,"line",14),t.YNc(2,Mt,1,1,"line",14),t.qZA()),2&u){const r=t.oxw(2);t.uIk("transform",r.gridLineTransform()),t.xp6(1),t.Q6J("ngIf",r.orient===r.Orientation.Left),t.xp6(1),t.Q6J("ngIf",r.orient===r.Orientation.Right)}}function oi(u,A){if(1&u&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Xt,3,3,"g",5),t.qZA()),2&u){const r=A.$implicit,b=t.oxw();t.uIk("transform",b.transform(r)),t.xp6(1),t.Q6J("ngIf",b.showGridLines)}}function Ci(u,A){if(1&u&&(t.O4$(),t.TgZ(0,"g")(1,"title"),t._uU(2),t.qZA(),t.TgZ(3,"text",17),t._uU(4),t.qZA()()),2&u){const r=t.oxw(2).$implicit,b=t.oxw();t.xp6(2),t.Oqu(b.tickTrim(b.tickFormat(r.value))),t.xp6(1),t.uIk("dy",b.dy)("y",-6)("x",b.gridLineWidth)("text-anchor",b.textAnchor),t.xp6(1),t.hij(" ",r.name," ")}}function Zi(u,A){if(1&u&&(t.O4$(),t.TgZ(0,"g"),t._UZ(1,"line",16),t.YNc(2,Ci,5,6,"g",5),t.qZA()),2&u){const r=t.oxw().$implicit,b=t.oxw();t.uIk("transform",b.transform(r.value)),t.xp6(1),t.uIk("x2",b.gridLineWidth)("transform",b.gridLineTransform()),t.xp6(1),t.Q6J("ngIf",b.showRefLabels)}}function Vi(u,A){if(1&u&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Zi,3,4,"g",5),t.qZA()),2&u){const r=t.oxw();t.xp6(1),t.Q6J("ngIf",r.showRefLines)}}const Ln=["ngx-charts-y-axis",""];function In(u,A){if(1&u){const r=t.EpF();t.O4$(),t.TgZ(0,"g",2),t.NdJ("dimensionsChanged",function(B){t.CHM(r);const K=t.oxw();return t.KtG(K.emitTicksWidth(B))}),t.qZA()}if(2&u){const r=t.oxw();t.Q6J("trimTicks",r.trimTicks)("maxTickLength",r.maxTickLength)("tickFormatting",r.tickFormatting)("tickArguments",r.tickArguments)("tickValues",r.ticks)("tickStroke",r.tickStroke)("scale",r.yScale)("orient",r.yOrient)("showGridLines",r.showGridLines)("gridLineWidth",r.dims.width)("referenceLines",r.referenceLines)("showRefLines",r.showRefLines)("showRefLabels",r.showRefLabels)("height",r.dims.height)("wrapTicks",r.wrapTicks)}}function pn(u,A){if(1&u&&(t.O4$(),t._UZ(0,"g",3)),2&u){const r=t.oxw();t.Q6J("label",r.labelText)("offset",r.labelOffset)("orient",r.yOrient)("height",r.dims.height)("width",r.dims.width)}}const Cn=["ngx-charts-svg-linear-gradient",""];function ea(u,A){if(1&u&&(t.O4$(),t._UZ(0,"stop")),2&u){const r=A.$implicit;t.Udp("stop-color",r.color)("stop-opacity",r.opacity),t.uIk("offset",r.offset+"%")}}const kr=["ngx-charts-grid-panel",""],nc=["ngx-charts-grid-panel-series",""];function Qo(u,A){if(1&u&&(t.O4$(),t._UZ(0,"g",1)),2&u){const r=A.$implicit;t.ekj("grid-panel",!0)("odd","odd"===r.class)("even","even"===r.class),t.Q6J("height",r.height)("width",r.width)("x",r.x)("y",r.y)}}const Ms=["tooltipTemplate"],E1=function(u,A){return[u,A]},Ph=".ngx-charts-outer{animation:chartFadeIn linear .6s}@keyframes chartFadeIn{0%{opacity:0}20%{opacity:0}to{opacity:1}}.ngx-charts{float:left;overflow:visible}.ngx-charts .circle,.ngx-charts .cell,.ngx-charts .bar,.ngx-charts .arc{cursor:pointer}.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover,.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .card.active,.ngx-charts .card:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .bar:focus,.ngx-charts .cell:focus,.ngx-charts .arc:focus,.ngx-charts .card:focus{outline:none}.ngx-charts .bar.hidden,.ngx-charts .cell.hidden,.ngx-charts .arc.hidden,.ngx-charts .card.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .line-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .polar-series-path.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .area-series.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:#0000000d}\n",K3=["ngx-charts-bar",""];function Q3(u,A){if(1&u&&(t.O4$(),t.TgZ(0,"defs"),t._UZ(1,"g",2),t.qZA()),2&u){const r=t.oxw();t.xp6(1),t.Q6J("orientation",r.orientation)("name",r.gradientId)("stops",r.gradientStops)}}const q3=["ngx-charts-bar-label",""],d0=["ngx-charts-series-vertical",""];function T1(u,A){if(1&u){const r=t.EpF();t.O4$(),t.TgZ(0,"g",2),t.NdJ("select",function(B){t.CHM(r);const K=t.oxw(2);return t.KtG(K.onClick(B))})("activate",function(B){t.CHM(r);const K=t.oxw(2);return t.KtG(K.activate.emit(B))})("deactivate",function(B){t.CHM(r);const K=t.oxw(2);return t.KtG(K.deactivate.emit(B))}),t.qZA()}if(2&u){const r=A.$implicit,b=t.oxw(2);t.Q6J("@animationState","active")("@.disabled",!b.animations)("width",r.width)("height",r.height)("x",r.x)("y",r.y)("fill",r.color)("stops",r.gradientStops)("data",r.data)("orientation",b.barOrientation.Vertical)("roundEdges",r.roundEdges)("gradient",b.gradient)("ariaLabel",r.ariaLabel)("isActive",b.isActive(r.data))("tooltipDisabled",b.tooltipDisabled)("tooltipPlacement",b.tooltipPlacement)("tooltipType",b.tooltipType)("tooltipTitle",b.tooltipTemplate?void 0:r.tooltipText)("tooltipTemplate",b.tooltipTemplate)("tooltipContext",r.data)("noBarWhenZero",b.noBarWhenZero)("animations",b.animations)}}function i4(u,A){if(1&u&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,T1,1,22,"g",1),t.qZA()),2&u){const r=t.oxw();t.xp6(1),t.Q6J("ngForOf",r.bars)("ngForTrackBy",r.trackBy)}}function Uh(u,A){if(1&u){const r=t.EpF();t.O4$(),t.TgZ(0,"g",2),t.NdJ("select",function(B){t.CHM(r);const K=t.oxw(2);return t.KtG(K.onClick(B))})("activate",function(B){t.CHM(r);const K=t.oxw(2);return t.KtG(K.activate.emit(B))})("deactivate",function(B){t.CHM(r);const K=t.oxw(2);return t.KtG(K.deactivate.emit(B))}),t.qZA()}if(2&u){const r=A.$implicit,b=t.oxw(2);t.Q6J("width",r.width)("height",r.height)("x",r.x)("y",r.y)("fill",r.color)("stops",r.gradientStops)("data",r.data)("orientation",b.barOrientation.Vertical)("roundEdges",r.roundEdges)("gradient",b.gradient)("ariaLabel",r.ariaLabel)("isActive",b.isActive(r.data))("tooltipDisabled",b.tooltipDisabled)("tooltipPlacement",b.tooltipPlacement)("tooltipType",b.tooltipType)("tooltipTitle",b.tooltipTemplate?void 0:r.tooltipText)("tooltipTemplate",b.tooltipTemplate)("tooltipContext",r.data)("noBarWhenZero",b.noBarWhenZero)("animations",b.animations)}}function uf(u,A){if(1&u&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Uh,1,20,"g",1),t.qZA()),2&u){const r=t.oxw();t.xp6(1),t.Q6J("ngForOf",r.bars)("ngForTrackBy",r.trackBy)}}function n4(u,A){if(1&u){const r=t.EpF();t.O4$(),t.TgZ(0,"g",4),t.NdJ("dimensionsChanged",function(B){const Ae=t.CHM(r).index,st=t.oxw(2);return t.KtG(st.dataLabelHeightChanged.emit({size:B,index:Ae}))}),t.qZA()}if(2&u){const r=A.$implicit,b=t.oxw(2);t.Q6J("barX",r.x)("barY",r.y)("barWidth",r.width)("barHeight",r.height)("value",r.total)("valueFormatting",b.dataLabelFormatting)("orientation",b.barOrientation.Vertical)}}function ff(u,A){if(1&u&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,n4,1,7,"g",3),t.qZA()),2&u){const r=t.oxw();t.xp6(1),t.Q6J("ngForOf",r.barsForDataLabels)("ngForTrackBy",r.trackDataLabelBy)}}function Ud(u,A){if(1&u){const r=t.EpF();t.O4$(),t.TgZ(0,"g",5),t.NdJ("dimensionsChanged",function(B){t.CHM(r);const K=t.oxw();return t.KtG(K.updateXAxisHeight(B))}),t.qZA()}if(2&u){const r=t.oxw();t.Q6J("xScale",r.xScale)("dims",r.dims)("showGridLines",r.showGridLines)("showLabel",r.showXAxisLabel)("labelText",r.xAxisLabel)("trimTicks",r.trimXAxisTicks)("rotateTicks",r.rotateXAxisTicks)("maxTickLength",r.maxXAxisTickLength)("tickFormatting",r.xAxisTickFormatting)("ticks",r.xAxisTicks)("xAxisOffset",r.dataLabelMaxHeight.negative)("wrapTicks",r.wrapTicks)}}function a4(u,A){if(1&u){const r=t.EpF();t.O4$(),t.TgZ(0,"g",6),t.NdJ("dimensionsChanged",function(B){t.CHM(r);const K=t.oxw();return t.KtG(K.updateYAxisWidth(B))}),t.qZA()}if(2&u){const r=t.oxw();t.Q6J("yScale",r.yScale)("dims",r.dims)("showGridLines",r.showGridLines)("showLabel",r.showYAxisLabel)("labelText",r.yAxisLabel)("trimTicks",r.trimYAxisTicks)("maxTickLength",r.maxYAxisTickLength)("tickFormatting",r.yAxisTickFormatting)("ticks",r.yAxisTicks)("wrapTicks",r.wrapTicks)}}function fp(u,A){if(1&u){const r=t.EpF();t.O4$(),t.TgZ(0,"g",6),t.NdJ("dimensionsChanged",function(B){t.CHM(r);const K=t.oxw();return t.KtG(K.updateXAxisHeight(B))}),t.qZA()}if(2&u){const r=t.oxw();t.Q6J("xScale",r.groupScale)("dims",r.dims)("showLabel",r.showXAxisLabel)("labelText",r.xAxisLabel)("trimTicks",r.trimXAxisTicks)("rotateTicks",r.rotateXAxisTicks)("maxTickLength",r.maxXAxisTickLength)("tickFormatting",r.xAxisTickFormatting)("ticks",r.xAxisTicks)("xAxisOffset",r.dataLabelMaxHeight.negative)("wrapTicks",r.wrapTicks)}}function r4(u,A){if(1&u){const r=t.EpF();t.O4$(),t.TgZ(0,"g",7),t.NdJ("dimensionsChanged",function(B){t.CHM(r);const K=t.oxw();return t.KtG(K.updateYAxisWidth(B))}),t.qZA()}if(2&u){const r=t.oxw();t.Q6J("yScale",r.valueScale)("dims",r.dims)("showGridLines",r.showGridLines)("showLabel",r.showYAxisLabel)("labelText",r.yAxisLabel)("trimTicks",r.trimYAxisTicks)("maxTickLength",r.maxYAxisTickLength)("tickFormatting",r.yAxisTickFormatting)("ticks",r.yAxisTicks)("wrapTicks",r.wrapTicks)}}function o4(u,A){if(1&u){const r=t.EpF();t.O4$(),t.TgZ(0,"g",9),t.NdJ("select",function(B){const Ae=t.CHM(r).$implicit,st=t.oxw(2);return t.KtG(st.onClick(B,Ae))})("activate",function(B){const Ae=t.CHM(r).$implicit,st=t.oxw(2);return t.KtG(st.onActivate(B,Ae))})("deactivate",function(B){const Ae=t.CHM(r).$implicit,st=t.oxw(2);return t.KtG(st.onDeactivate(B,Ae))})("dataLabelHeightChanged",function(B){const Ae=t.CHM(r).index,st=t.oxw(2);return t.KtG(st.onDataLabelMaxHeightChanged(B,Ae))}),t.qZA()}if(2&u){const r=A.$implicit,b=t.oxw(2);t.Q6J("@animationState","active")("activeEntries",b.activeEntries)("xScale",b.innerScale)("yScale",b.valueScale)("colors",b.colors)("series",r.series)("dims",b.dims)("gradient",b.gradient)("tooltipDisabled",b.tooltipDisabled)("tooltipTemplate",b.tooltipTemplate)("showDataLabel",b.showDataLabel)("dataLabelFormatting",b.dataLabelFormatting)("seriesName",r.name)("roundEdges",b.roundEdges)("animations",b.animations)("noBarWhenZero",b.noBarWhenZero),t.uIk("transform",b.groupTransform(r))}}function s4(u,A){if(1&u&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,o4,1,17,"g",8),t.qZA()),2&u){const r=t.oxw();t.xp6(1),t.Q6J("ngForOf",r.results)("ngForTrackBy",r.trackBy)}}function c4(u,A){if(1&u){const r=t.EpF();t.O4$(),t.TgZ(0,"g",9),t.NdJ("select",function(B){const Ae=t.CHM(r).$implicit,st=t.oxw(2);return t.KtG(st.onClick(B,Ae))})("activate",function(B){const Ae=t.CHM(r).$implicit,st=t.oxw(2);return t.KtG(st.onActivate(B,Ae))})("deactivate",function(B){const Ae=t.CHM(r).$implicit,st=t.oxw(2);return t.KtG(st.onDeactivate(B,Ae))})("dataLabelHeightChanged",function(B){const Ae=t.CHM(r).index,st=t.oxw(2);return t.KtG(st.onDataLabelMaxHeightChanged(B,Ae))}),t.qZA()}if(2&u){const r=A.$implicit,b=t.oxw(2);t.Q6J("activeEntries",b.activeEntries)("xScale",b.innerScale)("yScale",b.valueScale)("colors",b.colors)("series",r.series)("dims",b.dims)("gradient",b.gradient)("tooltipDisabled",b.tooltipDisabled)("tooltipTemplate",b.tooltipTemplate)("showDataLabel",b.showDataLabel)("dataLabelFormatting",b.dataLabelFormatting)("seriesName",r.name)("roundEdges",b.roundEdges)("animations",b.animations)("noBarWhenZero",b.noBarWhenZero),t.uIk("transform",b.groupTransform(r))}}function l4(u,A){if(1&u&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,c4,1,16,"g",8),t.qZA()),2&u){const r=t.oxw();t.xp6(1),t.Q6J("ngForOf",r.results)("ngForTrackBy",r.trackBy)}}function R4(u,A,r){r=r||{};let b,B,K,Ae=null,st=0;function jt(){st=!1===r.leading?0:+new Date,Ae=null,K=u.apply(b,B)}return function(){const Wt=+new Date;!st&&!1===r.leading&&(st=Wt);const ci=A-(Wt-st);return b=this,B=arguments,ci<=0?(clearTimeout(Ae),Ae=null,st=Wt,K=u.apply(b,B)):!Ae&&!1!==r.trailing&&(Ae=setTimeout(jt,ci)),K}}function Gf(u,A){return function(b,B,K){return{configurable:!0,enumerable:K.enumerable,get:function(){return Object.defineProperty(this,B,{configurable:!0,enumerable:K.enumerable,value:R4(K.value,u,A)}),this[B]}}}}var Jn=(()=>{return(u=Jn||(Jn={})).Top="top",u.Bottom="bottom",u.Left="left",u.Right="right",u.Center="center",Jn;var u})();const Lc=7;function Jh(u,A,r){return r===Jn.Top?u.top-Lc:r===Jn.Bottom?u.top+u.height-A.height+Lc:r===Jn.Center?u.top+u.height/2-A.height/2:void 0}function Xh(u,A,r){return r===Jn.Left?u.left-Lc:r===Jn.Right?u.left+u.width-A.width+Lc:r===Jn.Center?u.left+u.width/2-A.width/2:void 0}class Gr{static calculateVerticalAlignment(A,r,b){let B=Jh(A,r,b);return B+r.height>window.innerHeight&&(B=window.innerHeight-r.height),B}static calculateVerticalCaret(A,r,b,B){let K;B===Jn.Top&&(K=A.height/2-b.height/2+Lc),B===Jn.Bottom&&(K=r.height-A.height/2-b.height/2-Lc),B===Jn.Center&&(K=r.height/2-b.height/2);const Ae=Jh(A,r,B);return Ae+r.height>window.innerHeight&&(K+=Ae+r.height-window.innerHeight),K}static calculateHorizontalAlignment(A,r,b){let B=Xh(A,r,b);return B+r.width>window.innerWidth&&(B=window.innerWidth-r.width),B}static calculateHorizontalCaret(A,r,b,B){let K;B===Jn.Left&&(K=A.width/2-b.width/2+Lc),B===Jn.Right&&(K=r.width-A.width/2-b.width/2-Lc),B===Jn.Center&&(K=r.width/2-b.width/2);const Ae=Xh(A,r,B);return Ae+r.width>window.innerWidth&&(K+=Ae+r.width-window.innerWidth),K}static shouldFlip(A,r,b,B){let K=!1;return b===Jn.Right&&A.left+A.width+r.width+B>window.innerWidth&&(K=!0),b===Jn.Left&&A.left-r.width-B<0&&(K=!0),b===Jn.Top&&A.top-r.height-B<0&&(K=!0),b===Jn.Bottom&&A.top+A.height+r.height+B>window.innerHeight&&(K=!0),K}static positionCaret(A,r,b,B,K){let Ae=0,st=0;return A===Jn.Right?(st=-7,Ae=Gr.calculateVerticalCaret(b,r,B,K)):A===Jn.Left?(st=r.width,Ae=Gr.calculateVerticalCaret(b,r,B,K)):A===Jn.Top?(Ae=r.height,st=Gr.calculateHorizontalCaret(b,r,B,K)):A===Jn.Bottom&&(Ae=-7,st=Gr.calculateHorizontalCaret(b,r,B,K)),{top:Ae,left:st}}static positionContent(A,r,b,B,K){let Ae=0,st=0;return A===Jn.Right?(st=b.left+b.width+B,Ae=Gr.calculateVerticalAlignment(b,r,K)):A===Jn.Left?(st=b.left-r.width-B,Ae=Gr.calculateVerticalAlignment(b,r,K)):A===Jn.Top?(Ae=b.top-r.height-B,st=Gr.calculateHorizontalAlignment(b,r,K)):A===Jn.Bottom&&(Ae=b.top+b.height+B,st=Gr.calculateHorizontalAlignment(b,r,K)),{top:Ae,left:st}}static determinePlacement(A,r,b,B){if(Gr.shouldFlip(b,r,A,B)){if(A===Jn.Right)return Jn.Left;if(A===Jn.Left)return Jn.Right;if(A===Jn.Top)return Jn.Bottom;if(A===Jn.Bottom)return Jn.Top}return A}}let N4=(()=>{class u{constructor(r,b,B){this.element=r,this.renderer=b,this.platformId=B}get cssClasses(){let r="ngx-charts-tooltip-content";return r+=` position-${this.placement}`,r+=` type-${this.type}`,r+=` ${this.cssClass}`,r}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,e.NF)(this.platformId))return;const r=this.element.nativeElement,b=this.host.nativeElement.getBoundingClientRect();if(!b.height&&!b.width)return;const B=r.getBoundingClientRect();this.checkFlip(b,B),this.positionContent(r,b,B),this.showCaret&&this.positionCaret(b,B),setTimeout(()=>this.renderer.addClass(r,"animate"),1)}positionContent(r,b,B){const{top:K,left:Ae}=Gr.positionContent(this.placement,B,b,this.spacing,this.alignment);this.renderer.setStyle(r,"top",`${K}px`),this.renderer.setStyle(r,"left",`${Ae}px`)}positionCaret(r,b){const B=this.caretElm.nativeElement,K=B.getBoundingClientRect(),{top:Ae,left:st}=Gr.positionCaret(this.placement,b,r,K,this.alignment);this.renderer.setStyle(B,"top",`${Ae}px`),this.renderer.setStyle(B,"left",`${st}px`)}checkFlip(r,b){this.placement=Gr.determinePlacement(this.placement,b,r,this.spacing)}onWindowResize(){this.position()}}return u.\u0275fac=function(r){return new(r||u)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.Lbi))},u.\u0275cmp=t.Xpm({type:u,selectors:[["ngx-tooltip-content"]],viewQuery:function(r,b){if(1&r&&t.Gf(Eh,5),2&r){let B;t.iGM(B=t.CRH())&&(b.caretElm=B.first)}},hostVars:2,hostBindings:function(r,b){1&r&&t.NdJ("resize",function(){return b.onWindowResize()},!1,t.Jf7),2&r&&t.Tol(b.cssClasses)},inputs:{host:"host",showCaret:"showCaret",type:"type",placement:"placement",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(r,b){1&r&&(t.TgZ(0,"div"),t._UZ(1,"span",0,1),t.TgZ(3,"div",2),t.YNc(4,X2,2,4,"span",3),t.YNc(5,Th,1,1,"span",4),t.qZA()()),2&r&&(t.xp6(1),t.Gre("tooltip-caret position-",b.placement,""),t.Q6J("hidden",!b.showCaret),t.xp6(3),t.Q6J("ngIf",!b.title),t.xp6(1),t.Q6J("ngIf",b.title))},dependencies:[e.O5,e.tP],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background: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,_.gn)([Gf(100)],u.prototype,"onWindowResize",null),u})();class F4{constructor(A){this.injectionService=A,this.defaults={},this.components=new Map}getByType(A=this.type){return this.components.get(A)}create(A){return this.createByType(this.type,A)}createByType(A,r){r=this.assignDefaults(r);const b=this.injectComponent(A,r);return this.register(A,b),b}destroy(A){const r=this.components.get(A.componentType);if(r&&r.length){const b=r.indexOf(A);b>-1&&(r[b].destroy(),r.splice(b,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(A){const r=this.components.get(A);if(r&&r.length){let b=r.length-1;for(;b>=0;)this.destroy(r[b--])}}injectComponent(A,r){return this.injectionService.appendComponent(A,r)}assignDefaults(A){const r={...this.defaults.inputs},b={...this.defaults.outputs};return!A.inputs&&!A.outputs&&(A={inputs:A}),r&&(A.inputs={...r,...A.inputs}),b&&(A.outputs={...b,...A.outputs}),A}register(A,r){this.components.has(A)||this.components.set(A,[]),this.components.get(A).push(r)}}let Wf=(()=>{class u{constructor(r,b,B){this.applicationRef=r,this.componentFactoryResolver=b,this.injector=B}static setGlobalRootViewContainer(r){u.globalRootViewContainer=r}getRootViewContainer(){if(this._container)return this._container;if(u.globalRootViewContainer)return u.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(r){this._container=r}getComponentRootNode(r){return function $h(u){return u.element}(r)?r.element.nativeElement:r.hostView&&r.hostView.rootNodes.length>0?r.hostView.rootNodes[0]:r.location.nativeElement}getRootViewContainerNode(r){return this.getComponentRootNode(r)}projectComponentBindings(r,b){if(b){if(void 0!==b.inputs){const B=Object.getOwnPropertyNames(b.inputs);for(const K of B)r.instance[K]=b.inputs[K]}if(void 0!==b.outputs){const B=Object.getOwnPropertyNames(b.outputs);for(const K of B)r.instance[K]=b.outputs[K]}}return r}appendComponent(r,b={},B){B||(B=this.getRootViewContainer());const K=this.getComponentRootNode(B),Ae=new T.u0(K,this.componentFactoryResolver,this.applicationRef,this.injector),st=new T.C5(r),jt=Ae.attach(st);return this.projectComponentBindings(jt,b),jt}}return u.globalRootViewContainer=null,u.\u0275fac=function(r){return new(r||u)(t.LFG(t.z2F),t.LFG(t._Vd),t.LFG(t.zs3))},u.\u0275prov=t.Yz7({token:u,factory:u.\u0275fac}),u})(),_0=(()=>{class u extends F4{constructor(r){super(r),this.type=N4}}return u.\u0275fac=function(r){return new(r||u)(t.LFG(Wf))},u.\u0275prov=t.Yz7({token:u,factory:u.\u0275fac}),u})();var Dc=(()=>{return(u=Dc||(Dc={})).Right="right",u.Below="below",Dc;var u})(),Ss=(()=>{return(u=Ss||(Ss={})).ScaleLegend="scaleLegend",u.Legend="legend",Ss;var u})(),xn=(()=>{return(u=xn||(xn={})).Time="time",u.Linear="linear",u.Ordinal="ordinal",u.Quantile="quantile",xn;var u})();let Bs=(()=>{class u{constructor(){this.horizontal=!1}ngOnChanges(r){const b=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${b})`}gradientString(r,b){b.push(1);const B=[];return r.reverse().forEach((K,Ae)=>{B.push(`${K} ${Math.round(100*b[Ae])}%`)}),B.join(", ")}}return u.\u0275fac=function(r){return new(r||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["ngx-charts-scale-legend"]],inputs:{valueRange:"valueRange",colors:"colors",height:"height",width:"width",horizontal:"horizontal"},features:[t.TTD],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(r,b){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"span"),t._uU(3),t.qZA()(),t._UZ(4,"div",2),t.TgZ(5,"div",1)(6,"span"),t._uU(7),t.qZA()()()),2&r&&(t.Udp("height",b.horizontal?void 0:b.height,"px")("width",b.width,"px"),t.ekj("horizontal-legend",b.horizontal),t.xp6(3),t.Oqu(b.valueRange[1].toLocaleString()),t.xp6(1),t.Udp("background",b.gradient),t.xp6(3),t.Oqu(b.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}),u})();function Jd(u){return u instanceof Date?u.toLocaleDateString():u.toLocaleString()}let Us=(()=>{class u{constructor(){this.isActive=!1,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.toggle=new t.vpe}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return u.\u0275fac=function(r){return new(r||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(r,b){1&r&&t.NdJ("mouseenter",function(){return b.onMouseEnter()})("mouseleave",function(){return b.onMouseLeave()})},inputs:{color:"color",label:"label",formattedLabel:"formattedLabel",isActive:"isActive"},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(r,b){1&r&&(t.TgZ(0,"span",0),t.NdJ("click",function(){return b.select.emit(b.formattedLabel)}),t.TgZ(1,"span",1),t.NdJ("click",function(){return b.toggle.emit(b.formattedLabel)}),t.qZA(),t.TgZ(2,"span",2),t._uU(3),t.qZA()()),2&r&&(t.ekj("active",b.isActive),t.Q6J("title",b.formattedLabel),t.xp6(1),t.Udp("background-color",b.color),t.xp6(2),t.hij(" ",b.trimmedLabel," "))},encapsulation:2,changeDetection:0}),u})(),Es=(()=>{class u{constructor(r){this.cd=r,this.horizontal=!1,this.labelClick=new t.vpe,this.labelActivate=new t.vpe,this.labelDeactivate=new t.vpe,this.legendEntries=[]}ngOnChanges(r){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const r=[];for(const b of this.data){const B=Jd(b);-1===r.findIndex(Ae=>Ae.label===B)&&r.push({label:b,formattedLabel:B,color:this.colors.getColor(b)})}return r}isActive(r){return!!this.activeEntries&&void 0!==this.activeEntries.find(B=>r.label===B.name)}activate(r){this.labelActivate.emit(r)}deactivate(r){this.labelDeactivate.emit(r)}trackBy(r,b){return b.label}}return u.\u0275fac=function(r){return new(r||u)(t.Y36(t.sBO))},u.\u0275cmp=t.Xpm({type:u,selectors:[["ngx-charts-legend"]],inputs:{data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries",horizontal:"horizontal"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[t.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(r,b){1&r&&(t.TgZ(0,"div"),t.YNc(1,Ah,3,1,"header",0),t.TgZ(2,"div",1)(3,"ul",2),t.YNc(4,$2,2,4,"li",3),t.qZA()()()),2&r&&(t.Udp("width",b.width,"px"),t.xp6(1),t.Q6J("ngIf",(null==b.title?null:b.title.length)>0),t.xp6(2),t.Udp("max-height",b.height-45,"px"),t.ekj("horizontal-legend",b.horizontal),t.xp6(1),t.Q6J("ngForOf",b.legendEntries)("ngForTrackBy",b.trackBy))},dependencies:[Us,e.O5,e.sg],styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{white-space:nowrap;overflow:hidden;margin-left:10px;margin-bottom:5px;font-size:14px;font-weight:700}.chart-legend ul,.chart-legend li{padding:0;margin:0;list-style:none}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{line-height:85%;list-style:none;text-align:left;float:left;width:100%;border-radius:3px;overflow-y:auto;overflow-x:hidden;white-space:nowrap;background: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}),u})(),ss=(()=>{class u{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new t.vpe,this.legendLabelActivate=new t.vpe,this.legendLabelDeactivate=new t.vpe,this.LegendPosition=Dc,this.LegendType=Ss}ngOnChanges(r){this.update()}update(){let r=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||this.legendOptions.position===Dc.Right)&&(r=this.legendType===Ss.ScaleLegend?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-r)/12),this.legendWidth=this.legendOptions&&this.legendOptions.position!==Dc.Right?this.chartWidth:Math.floor(this.view[0]*r/12)}getLegendType(){return this.legendOptions.scaleType===xn.Linear?Ss.ScaleLegend:Ss.Legend}}return u.\u0275fac=function(r){return new(r||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["ngx-charts-chart"]],inputs:{view:"view",showLegend:"showLegend",legendOptions:"legendOptions",legendType:"legendType",activeEntries:"activeEntries",animations:"animations"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[t._Bn([_0]),t.TTD],ngContentSelectors:t0,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(r,b){1&r&&(t.F$t(),t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1),t.Hsn(2),t.qZA(),t.YNc(3,Lh,1,5,"ngx-charts-scale-legend",2),t.YNc(4,e0,1,7,"ngx-charts-legend",3),t.qZA()),2&r&&(t.Udp("width",b.view[0],"px")("height",b.view[1],"px"),t.xp6(1),t.uIk("width",b.chartWidth)("height",b.view[1]),t.xp6(2),t.Q6J("ngIf",b.showLegend&&b.legendType===b.LegendType.ScaleLegend),t.xp6(1),t.Q6J("ngIf",b.showLegend&&b.legendType===b.LegendType.Legend))},dependencies:[Bs,Es,e.O5],encapsulation:2,changeDetection:0}),u})(),Zf=(()=>{class u{constructor(r,b){this.element=r,this.zone=b,this.visible=new t.vpe,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const r=()=>{if(!this.element)return;const{offsetHeight:b,offsetWidth:B}=this.element.nativeElement;b&&B?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>r(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>r())})}}return u.\u0275fac=function(r){return new(r||u)(t.Y36(t.SBq),t.Y36(t.R0b))},u.\u0275dir=t.lG2({type:u,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),u})();function eu(u){return"[object Date]"===toString.call(u)}let tu=(()=>{class u{constructor(r,b,B,K){this.chartElement=r,this.zone=b,this.cd=B,this.platformId=K,this.scheme="cool",this.schemeType=xn.Ordinal,this.animations=!0,this.select=new t.vpe}ngOnInit(){(0,e.PM)(this.platformId)&&(this.animations=!1)}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new Zf(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(r){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const r=this.getContainerDims();r&&(this.width=r.width,this.height=r.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let r,b;const B=this.chartElement.nativeElement;if((0,e.NF)(this.platformId)&&null!==B.parentNode){const K=B.parentNode.getBoundingClientRect();r=K.width,b=K.height}return r&&b?{width:r,height:b}:null}formatDates(){for(let r=0;r{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=b}cloneData(r){const b=[];for(const B of r){const K={name:B.name};if(void 0!==B.value&&(K.value=B.value),void 0!==B.series){K.series=[];for(const Ae of B.series){const st=Object.assign({},Ae);K.series.push(st)}}void 0!==B.extra&&(K.extra=JSON.parse(JSON.stringify(B.extra))),b.push(K)}return b}}return u.\u0275fac=function(r){return new(r||u)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(t.Lbi))},u.\u0275cmp=t.Xpm({type:u,selectors:[["base-chart"]],inputs:{results:"results",view:"view",scheme:"scheme",schemeType:"schemeType",customColors:"customColors",animations:"animations"},outputs:{select:"select"},features:[t.TTD],decls:1,vars:0,template:function(r,b){1&r&&t._UZ(0,"div")},encapsulation:2}),u})();var Wr=(()=>{return(u=Wr||(Wr={})).Top="top",u.Bottom="bottom",u.Left="left",u.Right="right",Wr;var u})();let iu=(()=>{class u{constructor(r){this.textHeight=25,this.margin=5,this.element=r.nativeElement}ngOnChanges(r){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case Wr.Top:case Wr.Bottom:this.y=this.offset,this.x=this.width/2;break;case Wr.Left:this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case Wr.Right:this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return u.\u0275fac=function(r){return new(r||u)(t.Y36(t.SBq))},u.\u0275cmp=t.Xpm({type:u,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[t.TTD],attrs:Dh,decls:2,vars:6,template:function(r,b){1&r&&(t.O4$(),t.TgZ(0,"text"),t._uU(1),t.qZA()),2&r&&(t.uIk("stroke-width",b.strokeWidth)("x",b.x)("y",b.y)("text-anchor",b.textAnchor)("transform",b.transform),t.xp6(1),t.hij(" ",b.label," "))},encapsulation:2,changeDetection:0}),u})();function Xd(u,A=16){return"string"!=typeof u?"number"==typeof u?u+"":"":(u=u.trim()).length<=A?u:`${u.slice(0,A)}...`}function P1(u,A){if(u.length>A){const r=[],b=Math.floor(u.length/A);for(let B=0;B{const st=(K.pop()||"")+" ";return st.length+Ae.length>A?[...K,st.trim(),Ae.trim()]:[...K,st+Ae]},[]);else{let K=0;for(;Kr&&(B=B.splice(0,r),B[B.length-1]+="..."),B}var Ts=(()=>{return(u=Ts||(Ts={})).Start="start",u.Middle="middle",u.End="end",Ts;var u})();let Yf=(()=>{class u{constructor(r){this.platformId=r,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.wrapTicks=!1,this.dimensionsChanged=new t.vpe,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor=Ts.Middle,this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.approxHeight=10,this.maxPossibleLengthForTickIfWrapped=16}get isWrapTicksSupported(){return this.wrapTicks&&this.scale.step}ngOnChanges(r){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,e.NF)(this.platformId))return void this.dimensionsChanged.emit({height:this.approxHeight});const r=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);r!==this.height&&(this.height=r,this.dimensionsChanged.emit({height:this.height}),setTimeout(()=>this.updateDims()))}update(){const r=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:r.tickFormat?r.tickFormat.apply(r,this.tickArguments):function(B){return"Date"===B.constructor.name?B.toLocaleDateString():B.toLocaleString()};const b=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(B){return this.scale(B)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",b&&0!==b?(this.textTransform=`rotate(${b})`,this.textAnchor=Ts.End,this.verticalSpacing=10):this.textAnchor=Ts.Middle,setTimeout(()=>this.updateDims())}getRotationAngle(r){let b=0;this.maxTicksLength=0;for(let fi=0;fithis.maxTicksLength&&(this.maxTicksLength=Ti)}const Ae=7*Math.min(this.maxTicksLength,this.maxAllowedLength);let st=Ae;const jt=Math.floor(this.width/r.length);for(;st>jt&&b>-90;)b-=30,st=Math.cos(b*(Math.PI/180))*Ae;let Wt=14;if(this.isWrapTicksSupported){const fi=this.ticks.reduce((Ti,Ji)=>Ji.length>Ti.length?Ji:Ti,"");Wt=14*(this.tickChunks(fi).length||1),this.maxPossibleLengthForTickIfWrapped=this.getMaxPossibleLengthForTick(fi)}const ci=0!==b?Math.max(Math.abs(Math.sin(b*Math.PI/180))*this.maxTickLength*7,10):Wt;return this.approxHeight=Math.min(ci,200),b}getTicks(){let r;const b=this.getMaxTicks(20),B=this.getMaxTicks(100);return this.tickValues?r=this.tickValues:this.scale.ticks?r=this.scale.ticks.apply(this.scale,[B]):(r=this.scale.domain(),r=P1(r,b)),r}getMaxTicks(r){return Math.floor(this.width/r)}tickTransform(r){return"translate("+this.adjustedScale(r)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(r){return this.trimTicks?Xd(r,this.maxTickLength):r}getMaxPossibleLengthForTick(r){if(this.scale.bandwidth){const B=Math.floor(this.scale.bandwidth()/7),K=r.slice(0,B);return Math.max(K.length,this.maxTickLength)}return this.maxTickLength}tickChunks(r){if(r.toString().length>this.maxTickLength&&this.scale.bandwidth){let B=this.rotateTicks?Math.floor(this.scale.step()/14):5;if(B<=1)return[this.tickTrim(r)];let K=Math.max(this.maxPossibleLengthForTickIfWrapped,this.maxTickLength);return(0,e.NF)(this.platformId)||(K=Math.floor(Math.min(this.approxHeight/5,Math.max(this.maxPossibleLengthForTickIfWrapped,this.maxTickLength)))),B=Math.min(B,5),nu(r,K,B<1?1:B)}return[this.tickTrim(r)]}}return u.\u0275fac=function(r){return new(r||u)(t.Y36(t.Lbi))},u.\u0275cmp=t.Xpm({type:u,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(r,b){if(1&r&&t.Gf(x1,5),2&r){let B;t.iGM(B=t.CRH())&&(b.ticksElement=B.first)}},inputs:{scale:"scale",orient:"orient",tickArguments:"tickArguments",tickValues:"tickValues",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",gridLineHeight:"gridLineHeight",width:"width",rotateTicks:"rotateTicks",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[t.TTD],attrs:Nn,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],[4,"ngIf"],["stroke-width","0.01","font-size","12px"],[4,"ngIf","ngIfThen","ngIfElse"],["tmplMultilineTick",""],["tmplSinglelineTick",""],["x","0",4,"ngFor","ngForOf"],["x","0"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(r,b){1&r&&(t.O4$(),t.TgZ(0,"g",null,0),t.YNc(2,n0,2,2,"g",1),t.qZA(),t.YNc(3,r0,2,2,"g",2)),2&r&&(t.xp6(2),t.Q6J("ngForOf",b.ticks),t.xp6(1),t.Q6J("ngForOf",b.ticks))},dependencies:[e.sg,e.O5],encapsulation:2,changeDetection:0}),u})(),jf=(()=>{class u{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient=Wr.Bottom,this.xAxisOffset=0,this.wrapTicks=!1,this.dimensionsChanged=new t.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=Wr}ngOnChanges(r){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,typeof this.xAxisTickCount<"u"&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:r}){const b=r+25+5;b!==this.labelOffset&&(this.labelOffset=b,setTimeout(()=>{this.dimensionsChanged.emit({height:r})},0))}}return u.\u0275fac=function(r){return new(r||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(r,b){if(1&r&&t.Gf(Yf,5),2&r){let B;t.iGM(B=t.CRH())&&(b.ticksComponent=B.first)}},inputs:{xScale:"xScale",dims:"dims",trimTicks:"trimTicks",rotateTicks:"rotateTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickCount:"xAxisTickCount",xOrient:"xOrient",xAxisOffset:"xAxisOffset",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[t.TTD],attrs:o0,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","wrapTicks","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","wrapTicks","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(r,b){1&r&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Xu,1,13,"g",0),t.YNc(2,Hd,1,5,"g",1),t.qZA()),2&r&&(t.uIk("class",b.xAxisClassName)("transform",b.transform),t.xp6(1),t.Q6J("ngIf",b.xScale),t.xp6(1),t.Q6J("ngIf",b.showLabel))},dependencies:[Yf,iu,e.O5],encapsulation:2,changeDetection:0}),u})();function Ic(u,A,r,b,B,[K,Ae,st,jt]){let Wt="";return Wt=`M${[u+B,A]}`,Wt+="h"+((r=0===(r=Math.floor(r))?1:r)-2*B),Wt+=Ae?`a${[B,B]} 0 0 1 ${[B,B]}`:`h${B}v${B}`,Wt+="v"+((b=0===(b=Math.floor(b))?1:b)-2*B),Wt+=jt?`a${[B,B]} 0 0 1 ${[-B,B]}`:`v${B}h${-B}`,Wt+="h"+(2*B-r),Wt+=st?`a${[B,B]} 0 0 1 ${[-B,-B]}`:`h${-B}v${-B}`,Wt+="v"+(2*B-b),Wt+=K?`a${[B,B]} 0 0 1 ${[B,-B]}`:`v${-B}h${B}`,Wt+="z",Wt}let au=(()=>{class u{constructor(r){this.platformId=r,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.wrapTicks=!1,this.dimensionsChanged=new t.vpe,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor=Ts.Middle,this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.Orientation=Wr}ngOnChanges(r){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,e.NF)(this.platformId))return this.width=this.getApproximateAxisWidth(),void this.dimensionsChanged.emit({width:this.width});const r=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);r!==this.width&&(this.width=r,this.dimensionsChanged.emit({width:r}),setTimeout(()=>this.updateDims()))}update(){const r=this.scale,b=this.orient===Wr.Top||this.orient===Wr.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:r.tickFormat?r.tickFormat.apply(r,this.tickArguments):function(B){return"Date"===B.constructor.name?B.toLocaleDateString():B.toLocaleString()},this.adjustedScale=r.bandwidth?B=>{const K=r(B)+.5*r.bandwidth();if(this.wrapTicks&&B.toString().length>this.maxTickLength){const Ae=this.tickChunks(B).length;if(1===Ae)return K;const Wt=.5*r.bandwidth()-8*Ae*.5;return r(B)+Wt}return K}:r,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case Wr.Top:case Wr.Bottom:this.transform=function(B){return"translate("+this.adjustedScale(B)+",0)"},this.textAnchor=Ts.Middle,this.y2=this.innerTickSize*b,this.y1=this.tickSpacing*b,this.dy=b<0?"0em":".71em";break;case Wr.Left:this.transform=function(B){return"translate(0,"+this.adjustedScale(B)+")"},this.textAnchor=Ts.End,this.x2=this.innerTickSize*-b,this.x1=this.tickSpacing*-b,this.dy=".32em";break;case Wr.Right:this.transform=function(B){return"translate(0,"+this.adjustedScale(B)+")"},this.textAnchor=Ts.Start,this.x2=this.innerTickSize*-b,this.x1=this.tickSpacing*-b,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(r=>r.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(r=>r.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=Ic(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let r;const b=this.getMaxTicks(20),B=this.getMaxTicks(50);return this.tickValues?r=this.tickValues:this.scale.ticks?r=this.scale.ticks.apply(this.scale,[B]):(r=this.scale.domain(),r=P1(r,b)),r}getMaxTicks(r){return Math.floor(this.height/r)}tickTransform(r){return`translate(${this.adjustedScale(r)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(r){return this.trimTicks?Xd(r,this.maxTickLength):r}getApproximateAxisWidth(){return 7*Math.max(...this.ticks.map(B=>this.tickTrim(this.tickFormat(B)).length))}tickChunks(r){if(r.toString().length>this.maxTickLength&&this.scale.bandwidth){const b=this.maxTickLength,B=Math.floor(this.scale.bandwidth()/15);return B<=1?[this.tickTrim(r)]:nu(r,b,Math.min(B,5))}return[this.tickFormat(r)]}}return u.\u0275fac=function(r){return new(r||u)(t.Y36(t.Lbi))},u.\u0275cmp=t.Xpm({type:u,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(r,b){if(1&r&&t.Gf(x1,5),2&r){let B;t.iGM(B=t.CRH())&&(b.ticksElement=B.first)}},inputs:{scale:"scale",orient:"orient",tickArguments:"tickArguments",tickValues:"tickValues",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[t.TTD],attrs:zd,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],[4,"ngIf"],["stroke-width","0.01"],[4,"ngIf","ngIfThen","ngIfElse"],["tmplMultilineTick",""],["tmplSinglelineTick",""],[4,"ngIf","ngIfElse"],["x","0",4,"ngFor","ngForOf"],["x","0"],[1,"reference-area"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(r,b){1&r&&(t.O4$(),t.TgZ(0,"g",null,0),t.YNc(2,z,2,2,"g",1),t.qZA(),t.YNc(3,U,1,2,"path",2),t.YNc(4,oi,2,2,"g",3),t.YNc(5,Vi,2,1,"g",3)),2&r&&(t.xp6(2),t.Q6J("ngForOf",b.ticks),t.xp6(1),t.Q6J("ngIf",b.referenceLineLength>1&&b.refMax&&b.refMin&&b.showRefLines),t.xp6(1),t.Q6J("ngForOf",b.ticks),t.xp6(1),t.Q6J("ngForOf",b.referenceLines))},dependencies:[e.sg,e.O5],encapsulation:2,changeDetection:0}),u})(),R1=(()=>{class u{constructor(){this.showGridLines=!1,this.yOrient=Wr.Left,this.yAxisOffset=0,this.wrapTicks=!1,this.dimensionsChanged=new t.vpe,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(r){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),this.yOrient===Wr.Right?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):this.transform=`translate(${this.offset} , 0)`,void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:r}){r!==this.labelOffset&&this.yOrient===Wr.Right?(this.labelOffset=r+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:r})},0)):r!==this.labelOffset&&(this.labelOffset=r,setTimeout(()=>{this.dimensionsChanged.emit({width:r})},0))}}return u.\u0275fac=function(r){return new(r||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(r,b){if(1&r&&t.Gf(au,5),2&r){let B;t.iGM(B=t.CRH())&&(b.ticksComponent=B.first)}},inputs:{yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showGridLines:"showGridLines",showLabel:"showLabel",labelText:"labelText",yAxisTickCount:"yAxisTickCount",yOrient:"yOrient",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels",yAxisOffset:"yAxisOffset",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[t.TTD],attrs:Ln,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","wrapTicks","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(r,b){1&r&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,In,1,15,"g",0),t.YNc(2,pn,1,5,"g",1),t.qZA()),2&r&&(t.uIk("class",b.yAxisClassName)("transform",b.transform),t.xp6(1),t.Q6J("ngIf",b.yScale),t.xp6(1),t.Q6J("ngIf",b.showLabel))},dependencies:[au,iu,e.O5],encapsulation:2,changeDetection:0}),u})(),Kf=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[e.ez]]}),u})();var al=(()=>{return(u=al||(al={})).popover="popover",u.tooltip="tooltip",al;var u})(),oc=(()=>{return(u=oc||(oc={}))[u.all="all"]="all",u[u.focus="focus"]="focus",u[u.mouseover="mouseover"]="mouseover",oc;var u})();let $d=(()=>{class u{constructor(r,b,B){this.tooltipService=r,this.viewContainerRef=b,this.renderer=B,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Jn.Top,this.tooltipAlignment=Jn.Center,this.tooltipType=al.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=oc.all,this.tooltipImmediateExit=!1,this.show=new t.vpe,this.hide=new t.vpe}get listensForFocus(){return this.tooltipShowEvent===oc.all||this.tooltipShowEvent===oc.focus}get listensForHover(){return this.tooltipShowEvent===oc.all||this.tooltipShowEvent===oc.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(r){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(r))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(r){if(this.component||this.tooltipDisabled)return;const b=r?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?400:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const B=this.createBoundOptions();this.component=this.tooltipService.create(B),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},b)}addHideListeners(r){this.mouseEnterContentEvent=this.renderer.listen(r,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(r,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",b=>{r.contains(b.target)||this.hideTooltip()}))}hideTooltip(r=!1){if(!this.component)return;const b=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),r?b():this.timeout=setTimeout(b,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return u.\u0275fac=function(r){return new(r||u)(t.Y36(_0),t.Y36(t.s_b),t.Y36(t.Qsj))},u.\u0275dir=t.lG2({type:u,selectors:[["","ngx-tooltip",""]],hostBindings:function(r,b){1&r&&t.NdJ("focusin",function(){return b.onFocus()})("blur",function(){return b.onBlur()})("mouseenter",function(){return b.onMouseEnter()})("mouseleave",function(K){return b.onMouseLeave(K.target)})("click",function(){return b.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipTemplate:"tooltipTemplate",tooltipShowEvent:"tooltipShowEvent",tooltipContext:"tooltipContext",tooltipImmediateExit:"tooltipImmediateExit"},outputs:{show:"show",hide:"hide"}}),u})(),N1=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({providers:[Wf,_0],imports:[[e.ez]]}),u})();const b0={};function rl(){let u=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return u=`a${u}`,b0[u]?rl():(b0[u]=!0,u)}var Ja=(()=>{return(u=Ja||(Ja={})).Vertical="vertical",u.Horizontal="horizontal",Ja;var u})();let e2=(()=>{class u{constructor(){this.orientation=Ja.Vertical}ngOnChanges(r){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%",this.orientation===Ja.Horizontal?this.x2="100%":this.orientation===Ja.Vertical&&(this.y1="100%")}}return u.\u0275fac=function(r){return new(r||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[t.TTD],attrs:Cn,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(r,b){1&r&&(t.O4$(),t.TgZ(0,"linearGradient",0),t.YNc(1,ea,1,5,"stop",1),t.qZA()),2&r&&(t.Q6J("id",b.name),t.uIk("x1",b.x1)("y1",b.y1)("x2",b.x2)("y2",b.y2),t.xp6(1),t.Q6J("ngForOf",b.stops))},dependencies:[e.sg],encapsulation:2,changeDetection:0}),u})(),x0=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{width:"width",height:"height",x:"x",y:"y"},attrs:kr,decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(r,b){1&r&&(t.O4$(),t._UZ(0,"rect",0)),2&r&&t.uIk("height",b.height)("width",b.width)("x",b.x)("y",b.y)},encapsulation:2,changeDetection:0}),u})();var Ol=(()=>{return(u=Ol||(Ol={})).Odd="odd",u.Even="even",Ol;var u})();let ru,qf=(()=>{class u{ngOnChanges(r){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(r=>{let b,B,K,Ae,st,jt=Ol.Odd;if(this.orient===Ja.Vertical){const Wt=this.xScale(r.name);Number.parseInt((Wt/this.xScale.step()).toString(),10)%2==1&&(jt=Ol.Even),b=this.xScale.bandwidth()*this.xScale.paddingInner(),B=this.xScale.bandwidth()+b,K=this.dims.height,Ae=this.xScale(r.name)-b/2,st=0}else if(this.orient===Ja.Horizontal){const Wt=this.yScale(r.name);Number.parseInt((Wt/this.yScale.step()).toString(),10)%2==1&&(jt=Ol.Even),b=this.yScale.bandwidth()*this.yScale.paddingInner(),B=this.dims.width,K=this.yScale.bandwidth()+b,Ae=0,st=this.yScale(r.name)-b/2}return{name:r.name,class:jt,height:K,width:B,x:Ae,y:st}})}}return u.\u0275fac=function(r){return new(r||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["g","ngx-charts-grid-panel-series",""]],inputs:{data:"data",dims:"dims",xScale:"xScale",yScale:"yScale",orient:"orient"},features:[t.TTD],attrs:nc,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(r,b){1&r&&t.YNc(0,Qo,1,10,"g",0),2&r&&t.Q6J("ngForOf",b.gridPanels)},dependencies:[x0,e.sg],encapsulation:2,changeDetection:0}),u})();typeof window<"u"?ru=window:typeof global<"u"&&(ru=global);let As=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[e.ez,Kf,N1],e.ez,Kf,N1]}),u})();function n3({width:u,height:A,margins:r,showXAxis:b=!1,showYAxis:B=!1,xAxisHeight:K=0,yAxisWidth:Ae=0,showXLabel:st=!1,showYLabel:jt=!1,showLegend:Wt=!1,legendType:ci=xn.Ordinal,legendPosition:fi=Dc.Right,columns:_i=12}){let Ti=r[3],Ji=u,vn=A-r[0]-r[2];return Wt&&fi===Dc.Right&&(_i-=ci===xn.Ordinal?2:1),Ji=Ji*_i/12,Ji=Ji-r[1]-r[3],b&&(vn-=5,vn-=K,st&&(vn-=30)),B&&(Ji-=5,Ji-=Ae,Ti+=Ae,Ti+=10,jt&&(Ji-=30,Ti+=30)),Ji=Math.max(0,Ji),vn=Math.max(0,vn),{width:Math.floor(Ji),height:Math.floor(vn),xOffset:Math.floor(Ti)}}const a3=[{name:"vivid",selectable:!0,group:xn.Ordinal,domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:xn.Ordinal,domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:xn.Ordinal,domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:xn.Ordinal,domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:xn.Linear,domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:xn.Linear,domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:xn.Linear,domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:xn.Ordinal,domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:xn.Ordinal,domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:xn.Ordinal,domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:xn.Ordinal,domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:xn.Ordinal,domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:xn.Ordinal,domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:xn.Ordinal,domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:xn.Ordinal,domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class su{constructor(A,r,b,B){"string"==typeof A&&(A=a3.find(K=>K.name===A)),this.colorDomain=A.domain,this.scaleType=r,this.domain=b,this.customColors=B,this.scale=this.generateColorScheme(A,r,this.domain)}generateColorScheme(A,r,b){let B;switch("string"==typeof A&&(A=a3.find(K=>K.name===A)),r){case xn.Quantile:B=kd().range(A.domain).domain(b);break;case xn.Ordinal:B=y1().range(A.domain).domain(b);break;case xn.Linear:{const K=[...A.domain];1===K.length&&(K.push(K[0]),this.colorDomain=K);const Ae=K2(0,1,1/K.length);B=tc().range(K).domain(Ae)}}return B}getColor(A){if(null==A)throw new Error("Value can not be null");if(this.scaleType===xn.Linear){const r=tc().domain(this.domain).range([0,1]);return this.scale(r(A))}{if("function"==typeof this.customColors)return this.customColors(A);const r=A.toString();let b;return this.customColors&&this.customColors.length>0&&(b=this.customColors.find(B=>B.name.toLowerCase()===r.toLowerCase())),b?b.value:this.scale(A)}}getLinearGradientStops(A,r){void 0===r&&(r=this.domain[0]);const b=tc().domain(this.domain).range([0,1]),B=nl().domain(this.colorDomain).range([0,1]),K=this.getColor(A),Ae=b(r),st=this.getColor(r),jt=b(A);let Wt=1,ci=Ae;const fi=[];for(fi.push({color:st,offset:Ae,originalOffset:Ae,opacity:1});ci=(jt-B.bandwidth()).toFixed(4))break;fi.push({color:_i,offset:Ti,opacity:1}),ci=Ti,Wt++}}if(fi[fi.length-1].offset<100&&fi.push({color:K,offset:jt,opacity:1}),jt===Ae)fi[0].offset=0,fi[1].offset=100;else if(100!==fi[fi.length-1].offset)for(const _i of fi)_i.offset=(_i.offset-Ae)/(jt-Ae)*100;return fi}}let Pl=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[As]]}),u})(),o3=(()=>{class u{constructor(r){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.hasGradient=!1,this.hideBar=!1,this.element=r.nativeElement}ngOnChanges(r){r.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+rl().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl(),this.checkToHideBar()}loadAnimation(){this.path=this.getStartingPath(),setTimeout(this.update.bind(this),100)}updatePathEl(){const r=function dt(u){return"string"==typeof u?new Yi([[document.querySelector(u)]],[document.documentElement]):new Yi([[u]],en)}(this.element).select(".bar"),b=this.getPath();this.animations?r.transition().duration(500).attr("d",b):r.attr("d",b)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.getStartOpacity()},{offset:100,color:this.fill,opacity:1}]}getStartingPath(){if(!this.animations)return this.getPath();let b,r=this.getRadius();return this.roundEdges?this.orientation===Ja.Vertical?(r=Math.min(this.height,r),b=Ic(this.x,this.y+this.height,this.width,1,0,this.edges)):this.orientation===Ja.Horizontal&&(r=Math.min(this.width,r),b=Ic(this.x,this.y,1,this.height,0,this.edges)):this.orientation===Ja.Vertical?b=Ic(this.x,this.y+this.height,this.width,1,0,this.edges):this.orientation===Ja.Horizontal&&(b=Ic(this.x,this.y,1,this.height,0,this.edges)),b}getPath(){let b,r=this.getRadius();return this.roundEdges?this.orientation===Ja.Vertical?(r=Math.min(this.height,r),b=Ic(this.x,this.y,this.width,this.height,r,this.edges)):this.orientation===Ja.Horizontal&&(r=Math.min(this.width,r),b=Ic(this.x,this.y,this.width,this.height,r,this.edges)):b=Ic(this.x,this.y,this.width,this.height,r,this.edges),b}getRadius(){let r=0;return this.roundEdges&&this.height>5&&this.width>5&&(r=Math.floor(Math.min(5,this.height/2,this.width/2))),r}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let r=[!1,!1,!1,!1];return this.roundEdges&&(this.orientation===Ja.Vertical?r=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:this.orientation===Ja.Horizontal&&(r=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),r}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&(this.orientation===Ja.Vertical&&0===this.height||this.orientation===Ja.Horizontal&&0===this.width)}}return u.\u0275fac=function(r){return new(r||u)(t.Y36(t.SBq))},u.\u0275cmp=t.Xpm({type:u,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(r,b){1&r&&t.NdJ("mouseenter",function(){return b.onMouseEnter()})("mouseleave",function(){return b.onMouseLeave()})},inputs:{fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",stops:"stops",animations:"animations",ariaLabel:"ariaLabel",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[t.TTD],attrs:K3,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(r,b){1&r&&(t.YNc(0,Q3,2,3,"defs",0),t.O4$(),t.TgZ(1,"path",1),t.NdJ("click",function(){return b.select.emit(b.data)}),t.qZA()),2&r&&(t.Q6J("ngIf",b.hasGradient),t.xp6(1),t.ekj("active",b.isActive)("hidden",b.hideBar),t.uIk("d",b.path)("aria-label",b.ariaLabel)("fill",b.hasGradient?b.gradientFill:b.fill))},dependencies:[e2,e.O5],encapsulation:2,changeDetection:0}),u})();var sc=(()=>{return(u=sc||(sc={})).Standard="standard",u.Normalized="normalized",u.Stacked="stacked",sc;var u})(),Jo=(()=>{return(u=Jo||(Jo={})).positive="positive",u.negative="negative",Jo;var u})();let Op=(()=>{class u{constructor(r){this.dimensionsChanged=new t.vpe,this.horizontalPadding=2,this.verticalPadding=5,this.element=r.nativeElement}ngOnChanges(r){this.update()}getSize(){return{height:this.element.getBoundingClientRect().height,width:this.element.getBoundingClientRect().width,negative:this.value<0}}ngAfterViewInit(){this.dimensionsChanged.emit(this.getSize())}update(){this.formatedValue=this.valueFormatting?this.valueFormatting(this.value):Jd(this.value),"horizontal"===this.orientation?(this.x=this.barX+this.barWidth,this.value<0?(this.x=this.x-this.horizontalPadding,this.textAnchor="end"):(this.x=this.x+this.horizontalPadding,this.textAnchor="start"),this.y=this.barY+this.barHeight/2):(this.x=this.barX+this.barWidth/2,this.y=this.barY+this.barHeight,this.value<0?(this.y=this.y+this.verticalPadding,this.textAnchor="end"):(this.y=this.y-this.verticalPadding,this.textAnchor="start"),this.transform=`rotate(-45, ${this.x} , ${this.y})`)}}return u.\u0275fac=function(r){return new(r||u)(t.Y36(t.SBq))},u.\u0275cmp=t.Xpm({type:u,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:[t.TTD],attrs:q3,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(r,b){1&r&&(t.O4$(),t.TgZ(0,"text",0),t._uU(1),t.qZA()),2&r&&(t.uIk("text-anchor",b.textAnchor)("transform",b.transform)("x",b.x)("y",b.y),t.xp6(1),t.hij(" ",b.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),u})(),Mn=(()=>{class u{constructor(r){this.platformId=r,this.type=sc.Standard,this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.dataLabelHeightChanged=new t.vpe,this.barsForDataLabels=[],this.barOrientation=Ja,this.isSSR=!1}ngOnInit(){(0,e.PM)(this.platformId)&&(this.isSSR=!0)}ngOnChanges(r){this.update()}update(){let r;this.updateTooltipSettings(),this.series.length&&(r=this.xScale.bandwidth()),r=Math.round(r);const b=Math.max(this.yScale.domain()[0],0),B={[Jo.positive]:0,[Jo.negative]:0};let Ae,K=Jo.positive;this.type===sc.Normalized&&(Ae=this.series.map(st=>st.value).reduce((st,jt)=>st+jt,0)),this.bars=this.series.map((st,jt)=>{let Wt=st.value;const ci=this.getLabel(st),fi=Jd(ci);K=Wt>0?Jo.positive:Jo.negative;const Ti={value:Wt,label:ci,roundEdges:this.roundEdges,data:st,width:r,formattedLabel:fi,height:0,x:0,y:0};if(this.type===sc.Standard)Ti.height=Math.abs(this.yScale(Wt)-this.yScale(b)),Ti.x=this.xScale(ci),Ti.y=this.yScale(Wt<0?0:Wt);else if(this.type===sc.Stacked){const vn=B[K],Li=vn+Wt;B[K]+=Wt,Ti.height=this.yScale(vn)-this.yScale(Li),Ti.x=0,Ti.y=this.yScale(Li),Ti.offset0=vn,Ti.offset1=Li}else if(this.type===sc.Normalized){let vn=B[K],Li=vn+Wt;B[K]+=Wt,Ae>0?(vn=100*vn/Ae,Li=100*Li/Ae):(vn=0,Li=0),Ti.height=this.yScale(vn)-this.yScale(Li),Ti.x=0,Ti.y=this.yScale(Li),Ti.offset0=vn,Ti.offset1=Li,Wt=(Li-vn).toFixed(2)+"%"}this.colors.scaleType===xn.Ordinal?Ti.color=this.colors.getColor(ci):this.type===sc.Standard?(Ti.color=this.colors.getColor(Wt),Ti.gradientStops=this.colors.getLinearGradientStops(Wt)):(Ti.color=this.colors.getColor(Ti.offset1),Ti.gradientStops=this.colors.getLinearGradientStops(Ti.offset1,Ti.offset0));let Ji=fi;return Ti.ariaLabel=fi+" "+Wt.toLocaleString(),null!=this.seriesName&&(Ji=`${this.seriesName} \u2022 ${fi}`,Ti.data.series=this.seriesName,Ti.ariaLabel=this.seriesName+" "+Ti.ariaLabel),Ti.tooltipText=this.tooltipDisabled?void 0:`\n ${function v0(u){return u.toLocaleString().replace(/[&'`"<>]/g,A=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[A]))}(Ji)}\n ${this.dataLabelFormatting?this.dataLabelFormatting(Wt):Wt.toLocaleString()}\n `,Ti}),this.updateDataLabels()}updateDataLabels(){if(this.type===sc.Stacked){this.barsForDataLabels=[];const r={};r.series=this.seriesName;const b=this.series.map(K=>K.value).reduce((K,Ae)=>Ae>0?K+Ae:K,0),B=this.series.map(K=>K.value).reduce((K,Ae)=>Ae<0?K+Ae:K,0);r.total=b+B,r.x=0,r.y=0,r.height=this.yScale(r.total>0?b:B),r.width=this.xScale.bandwidth(),this.barsForDataLabels.push(r)}else this.barsForDataLabels=this.series.map(r=>{const b={};return b.series=this.seriesName??r.label,b.total=r.value,b.x=this.xScale(r.label),b.y=this.yScale(0),b.height=this.yScale(b.total)-this.yScale(0),b.width=this.xScale.bandwidth(),b})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:Jn.Top,this.tooltipType=this.tooltipDisabled?void 0:al.tooltip}isActive(r){return!!this.activeEntries&&void 0!==this.activeEntries.find(B=>r.name===B.name&&r.value===B.value)}onClick(r){this.select.emit(r)}getLabel(r){return r.label?r.label:r.name}trackBy(r,b){return b.label}trackDataLabelBy(r,b){return r+"#"+b.series+"#"+b.total}}return u.\u0275fac=function(r){return new(r||u)(t.Y36(t.Lbi))},u.\u0275cmp=t.Xpm({type:u,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{dims:"dims",type:"type",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipDisabled:"tooltipDisabled",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",animations:"animations",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},features:[t.TTD],attrs:d0,decls:3,vars:3,consts:[[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar","","ngx-tooltip","",3,"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(r,b){1&r&&(t.YNc(0,i4,2,2,"g",0),t.YNc(1,uf,2,2,"g",0),t.YNc(2,ff,2,2,"g",0)),2&r&&(t.Q6J("ngIf",!b.isSSR),t.xp6(1),t.Q6J("ngIf",b.isSSR),t.xp6(1),t.Q6J("ngIf",b.showDataLabel))},dependencies:[o3,Op,e.O5,e.sg,$d],encapsulation:2,data:{animation:[(0,h.X$)("animationState",[(0,h.eR)(":leave",[(0,h.oB)({opacity:1}),(0,h.jt)(500,(0,h.oB)({opacity:0}))])])]},changeDetection:0}),u})(),c3=(()=>{class u extends tu{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=Dc.Right,this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.wrapTicks=!1,this.activate=new t.vpe,this.deactivate=new t.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=n3({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 r=this.xDomain.length/(this.dims.width/this.barPadding+1);return nl().range([0,this.dims.width]).paddingInner(r).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const r=tc().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?r.nice():r}getXDomain(){return this.results.map(r=>r.label)}getYDomain(){const r=this.results.map(K=>K.value);let b=this.yScaleMin?Math.min(this.yScaleMin,...r):Math.min(0,...r);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(b=Math.min(b,...this.yAxisTicks));let B=this.yScaleMax?Math.max(this.yScaleMax,...r):Math.max(0,...r);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(B=Math.max(B,...this.yAxisTicks)),[b,B]}onClick(r){this.select.emit(r)}setColors(){let r;r=this.schemeType===xn.Ordinal?this.xDomain:this.yDomain,this.colors=new su(this.scheme,this.schemeType,r,this.customColors)}getLegendOptions(){const r={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return r.scaleType===xn.Ordinal?(r.domain=this.xDomain,r.colors=this.colors,r.title=this.legendTitle):(r.domain=this.yDomain,r.colors=this.colors.scale),r}updateYAxisWidth({width:r}){this.yAxisWidth=r,this.update()}updateXAxisHeight({height:r}){this.xAxisHeight=r,this.update()}onDataLabelMaxHeightChanged(r){r.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,r.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,r.size.height),r.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(r,b=!1){r=this.results.find(K=>b?K.label===r.name:K.name===r.name),!(this.activeEntries.findIndex(K=>K.name===r.name&&K.value===r.value&&K.series===r.series)>-1)&&(this.activeEntries=[r,...this.activeEntries],this.activate.emit({value:r,entries:this.activeEntries}))}onDeactivate(r,b=!1){r=this.results.find(K=>b?K.label===r.name:K.name===r.name);const B=this.activeEntries.findIndex(K=>K.name===r.name&&K.value===r.value&&K.series===r.series);this.activeEntries.splice(B,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:r,entries:this.activeEntries})}}return u.\u0275fac=function(){let A;return function(b){return(A||(A=t.n5z(u)))(b||u)}}(),u.\u0275cmp=t.Xpm({type:u,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(r,b,B){if(1&r&&t.Suo(B,Ms,5),2&r){let K;t.iGM(K=t.CRH())&&(b.tooltipTemplate=K.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",gradient:"gradient",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero",wrapTicks:"wrapTicks"},outputs:{activate:"activate",deactivate:"deactivate"},features:[t.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","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","wrapTicks","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","wrapTicks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","wrapTicks","dimensionsChanged"]],template:function(r,b){1&r&&(t.TgZ(0,"ngx-charts-chart",0),t.NdJ("legendLabelClick",function(K){return b.onClick(K)})("legendLabelActivate",function(K){return b.onActivate(K,!0)})("legendLabelDeactivate",function(K){return b.onDeactivate(K,!0)}),t.O4$(),t.TgZ(1,"g",1),t.YNc(2,Ud,1,12,"g",2),t.YNc(3,a4,1,10,"g",3),t.TgZ(4,"g",4),t.NdJ("activate",function(K){return b.onActivate(K)})("deactivate",function(K){return b.onDeactivate(K)})("select",function(K){return b.onClick(K)})("dataLabelHeightChanged",function(K){return b.onDataLabelMaxHeightChanged(K)}),t.qZA()()()),2&r&&(t.Q6J("view",t.WLB(22,E1,b.width,b.height))("showLegend",b.legend)("legendOptions",b.legendOptions)("activeEntries",b.activeEntries)("animations",b.animations),t.xp6(1),t.uIk("transform",b.transform),t.xp6(1),t.Q6J("ngIf",b.xAxis),t.xp6(1),t.Q6J("ngIf",b.yAxis),t.xp6(1),t.Q6J("xScale",b.xScale)("yScale",b.yScale)("colors",b.colors)("series",b.results)("dims",b.dims)("gradient",b.gradient)("tooltipDisabled",b.tooltipDisabled)("tooltipTemplate",b.tooltipTemplate)("showDataLabel",b.showDataLabel)("dataLabelFormatting",b.dataLabelFormatting)("activeEntries",b.activeEntries)("roundEdges",b.roundEdges)("animations",b.animations)("noBarWhenZero",b.noBarWhenZero))},dependencies:[ss,jf,R1,Mn,e.O5],styles:[Ph],encapsulation:2,changeDetection:0}),u})(),J4=(()=>{class u extends tu{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=Dc.Right,this.tooltipDisabled=!1,this.scaleType=xn.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.wrapTicks=!1,this.activate=new t.vpe,this.deactivate=new t.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0},this.isSSR=!1,this.barOrientation=Ja,this.trackBy=(r,b)=>b.name}ngOnInit(){(0,e.PM)(this.platformId)&&(this.isSSR=!0)}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=n3({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.groupScale=this.getGroupScale(),this.innerScale=this.getInnerScale(),this.valueScale=this.getValueScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}onDataLabelMaxHeightChanged(r,b){r.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,r.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,r.size.height),b===this.results.length-1&&setTimeout(()=>this.update())}getGroupScale(){const r=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return nl().rangeRound([0,this.dims.width]).paddingInner(r).paddingOuter(r/2).domain(this.groupDomain)}getInnerScale(){const r=this.groupScale.bandwidth(),b=this.innerDomain.length/(r/this.barPadding+1);return nl().rangeRound([0,r]).paddingInner(b).domain(this.innerDomain)}getValueScale(){const r=tc().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?r.nice():r}getGroupDomain(){const r=[];for(const b of this.results)r.includes(b.label)||r.push(b.label);return r}getInnerDomain(){const r=[];for(const b of this.results)for(const B of b.series)r.includes(B.label)||r.push(B.label);return r}getValueDomain(){const r=[];for(const K of this.results)for(const Ae of K.series)r.includes(Ae.value)||r.push(Ae.value);return[Math.min(0,...r),this.yScaleMax?Math.max(this.yScaleMax,...r):Math.max(0,...r)]}groupTransform(r){return`translate(${this.groupScale(r.label)}, 0)`}onClick(r,b){b&&(r.series=b.name),this.select.emit(r)}setColors(){let r;r=this.schemeType===xn.Ordinal?this.innerDomain:this.valueDomain,this.colors=new su(this.scheme,this.schemeType,r,this.customColors)}getLegendOptions(){const r={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return r.scaleType===xn.Ordinal?(r.domain=this.innerDomain,r.colors=this.colors,r.title=this.legendTitle):(r.domain=this.valueDomain,r.colors=this.colors.scale),r}updateYAxisWidth({width:r}){this.yAxisWidth=r,this.update()}updateXAxisHeight({height:r}){this.xAxisHeight=r,this.update()}onActivate(r,b,B=!1){const K=Object.assign({},r);b&&(K.series=b.name);const Ae=this.results.map(st=>st.series).flat().filter(st=>B?st.label===K.name:st.name===K.name&&st.series===K.series);this.activeEntries=[...Ae],this.activate.emit({value:K,entries:this.activeEntries})}onDeactivate(r,b,B=!1){const K=Object.assign({},r);b&&(K.series=b.name),this.activeEntries=this.activeEntries.filter(Ae=>B?Ae.label!==K.name:!(Ae.name===K.name&&Ae.series===K.series)),this.deactivate.emit({value:K,entries:this.activeEntries})}}return u.\u0275fac=function(){let A;return function(b){return(A||(A=t.n5z(u)))(b||u)}}(),u.\u0275cmp=t.Xpm({type:u,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(r,b,B){if(1&r&&t.Suo(B,Ms,5),2&r){let K;t.iGM(K=t.CRH())&&(b.tooltipTemplate=K.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",scaleType:"scaleType",gradient:"gradient",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",groupPadding:"groupPadding",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero",wrapTicks:"wrapTicks"},outputs:{activate:"activate",deactivate:"deactivate"},features:[t.qOj],decls:7,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","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","wrapTicks","dimensionsChanged",4,"ngIf"],[4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","wrapTicks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","wrapTicks","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",4,"ngFor","ngForOf","ngForTrackBy"],["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(r,b){1&r&&(t.TgZ(0,"ngx-charts-chart",0),t.NdJ("legendLabelActivate",function(K){return b.onActivate(K,void 0,!0)})("legendLabelDeactivate",function(K){return b.onDeactivate(K,void 0,!0)})("legendLabelClick",function(K){return b.onClick(K)}),t.O4$(),t.TgZ(1,"g",1),t._UZ(2,"g",2),t.YNc(3,fp,1,11,"g",3),t.YNc(4,r4,1,10,"g",4),t.YNc(5,s4,2,2,"g",5),t.qZA(),t.YNc(6,l4,2,2,"g",5),t.qZA()),2&r&&(t.Q6J("view",t.WLB(15,E1,b.width,b.height))("showLegend",b.legend)("legendOptions",b.legendOptions)("activeEntries",b.activeEntries)("animations",b.animations),t.xp6(1),t.uIk("transform",b.transform),t.xp6(1),t.Q6J("xScale",b.groupScale)("yScale",b.valueScale)("data",b.results)("dims",b.dims)("orient",b.barOrientation.Vertical),t.xp6(1),t.Q6J("ngIf",b.xAxis),t.xp6(1),t.Q6J("ngIf",b.yAxis),t.xp6(1),t.Q6J("ngIf",!b.isSSR),t.xp6(1),t.Q6J("ngIf",b.isSSR))},dependencies:[ss,qf,jf,R1,Mn,e.O5,e.sg],styles:[Ph],encapsulation:2,data:{animation:[(0,h.X$)("animationState",[(0,h.eR)(":leave",[(0,h.oB)({opacity:1,transform:"*"}),(0,h.jt)(500,(0,h.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),u})(),l3=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[As]]}),u})();Sh();let d3=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[As]]}),u})(),u3=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[As]]}),u})(),im=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[As]]}),u})(),m3=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[As]]}),u})();Math;let S0=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[As]]}),u})(),_3=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[As,S0,m3]]}),u})(),b3=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[As]]}),u})(),lm=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[As]]}),u})(),x3=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[As,S0,l3]]}),u})(),um=(()=>{class u{constructor(){!function hm(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[As,Pl,l3,d3,u3,im,m3,_3,b3,S0,lm,x3]}),u})()},658:(We,q,m)=>{"use strict";function t(L,D,H,V,Y,j,Q){try{var J=L[j](Q),ee=J.value}catch(me){return void H(me)}J.done?D(ee):Promise.resolve(ee).then(V,Y)}m.d(q,{uU:()=>w,OF:()=>C});var _=m(4650),T=m(6895),s=m(3259);function y(L,D){if(1&L&&_._UZ(0,"canvas",1),2&L){const H=_.oxw();_.Q6J("qrCode",H.value)("qrCodeErrorCorrectionLevel",H.errorCorrectionLevel)("qrCodeCenterImageSrc",H.centerImageSrc)("qrCodeCenterImageWidth",H.centerImageSize)("qrCodeCenterImageHeight",H.centerImageSize)("qrCodeMargin",H.margin)("width",H.size)("height",H.size)("darkColor",H.darkColor)("lightColor",H.lightColor)}}const h=/^#(?:[0-9a-fA-F]{3,4}){1,2}$/;let P=(()=>{class L{constructor(H){this.viewContainerRef=H,this.errorCorrectionLevel=L.DEFAULT_ERROR_CORRECTION_LEVEL,this.darkColor="#000000FF",this.lightColor="#FFFFFFFF",this.margin=16}ngOnChanges(){var H=this;return function e(L){return function(){var D=this,H=arguments;return new Promise(function(V,Y){var j=L.apply(D,H);function Q(ee){t(j,V,Y,Q,J,"next",ee)}function J(ee){t(j,V,Y,Q,J,"throw",ee)}Q(void 0)})}}(function*(){if(!H.value)return;H.version&&H.version>40?(console.warn("[qrCode] max version is 40, clamping"),H.version=40):H.version&&H.version<1?(console.warn("[qrCode] min version is 1, clamping"),H.version=1):void 0!==H.version&&isNaN(H.version)&&(console.warn("[qrCode] version should be set to a number, defaulting to auto"),H.version=void 0);const V=H.viewContainerRef.element.nativeElement;if(!V)return;const Y=V.getContext("2d");Y&&Y.clearRect(0,0,Y.canvas.width,Y.canvas.height);const j=H.errorCorrectionLevel??L.DEFAULT_ERROR_CORRECTION_LEVEL,Q=h.test(H.darkColor)?H.darkColor:void 0,J=h.test(H.lightColor)?H.lightColor:void 0;(0,_.X6Q)()&&(!Q&&H.darkColor&&console.error("[ng-qrcode] darkColor set to invalid value, must be RGBA hex color string, eg: #3050A1FF"),!J&&H.lightColor&&console.error("[ng-qrcode] lightColor set to invalid value, must be RGBA hex color string, eg: #3050A130")),yield s.toCanvas(V,H.value,{version:H.version,errorCorrectionLevel:j,width:H.width,margin:H.margin,color:{dark:Q,light:J}});const ee=H.centerImageSrc,me=d(H.centerImageWidth,L.DEFAULT_CENTER_IMAGE_SIZE),re=d(H.centerImageHeight,L.DEFAULT_CENTER_IMAGE_SIZE);if(ee&&Y){H.centerImage||(H.centerImage=new Image(me,re));const ie=H.centerImage;ee!==H.centerImage.src&&(ie.src=ee),me!==H.centerImage.width&&(ie.width=me),re!==H.centerImage.height&&(ie.height=re);const se=()=>{Y.drawImage(ie,V.width/2-me/2,V.height/2-re/2,me,re)};ie.onload=se,ie.complete&&se()}})()}}return L.DEFAULT_ERROR_CORRECTION_LEVEL="M",L.DEFAULT_CENTER_IMAGE_SIZE=40,L.\u0275fac=function(H){return new(H||L)(_.Y36(_.s_b))},L.\u0275dir=_.lG2({type:L,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:[_.TTD]}),L})();function d(L,D){return void 0===L||""===L?D:"string"==typeof L?parseInt(L,10):L}let w=(()=>{class L{}return L.\u0275fac=function(H){return new(H||L)},L.\u0275cmp=_.Xpm({type:L,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(H,V){1&H&&_.YNc(0,y,1,10,"canvas",0),2&H&&_.Q6J("ngIf",V.value)},dependencies:[T.O5,P],encapsulation:2}),L})(),C=(()=>{class L{}return L.\u0275fac=function(H){return new(H||L)},L.\u0275mod=_.oAB({type:L}),L.\u0275inj=_.cJS({imports:[T.ez]}),L})()},6839:(We,q,m)=>{"use strict";m.d(q,{op:()=>Gt,Vv:()=>$t,$V:()=>Je,Xd:()=>ii});var t=m(7579),e=m(4968),_=m(6451),T=m(3601),s=m(2722),y=m(1884),h=m(9718),P=m(4650),d=m(6895);function w(pt){return getComputedStyle(pt)}function C(pt,ot){for(var ft in ot){var St=ot[ft];"number"==typeof St&&(St+="px"),pt.style[ft]=St}return pt}function L(pt){var ot=document.createElement("div");return ot.className=pt,ot}var D=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function H(pt,ot){if(!D)throw new Error("No element matching method supported");return D.call(pt,ot)}function V(pt){pt.remove?pt.remove():pt.parentNode&&pt.parentNode.removeChild(pt)}function Y(pt,ot){return Array.prototype.filter.call(pt.children,function(ft){return H(ft,ot)})}var j={main:"ps",rtl:"ps__rtl",element:{thumb:function(pt){return"ps__thumb-"+pt},rail:function(pt){return"ps__rail-"+pt},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(pt){return"ps--active-"+pt},scrolling:function(pt){return"ps--scrolling-"+pt}}},Q={x:null,y:null};function J(pt,ot){var ft=pt.element.classList,St=j.state.scrolling(ot);ft.contains(St)?clearTimeout(Q[ot]):ft.add(St)}function ee(pt,ot){Q[ot]=setTimeout(function(){return pt.isAlive&&pt.element.classList.remove(j.state.scrolling(ot))},pt.settings.scrollingThreshold)}var re=function(ot){this.element=ot,this.handlers={}},ie={isEmpty:{configurable:!0}};re.prototype.bind=function(ot,ft){typeof this.handlers[ot]>"u"&&(this.handlers[ot]=[]),this.handlers[ot].push(ft),this.element.addEventListener(ot,ft,!1)},re.prototype.unbind=function(ot,ft){var St=this;this.handlers[ot]=this.handlers[ot].filter(function(gt){return!(!ft||gt===ft)||(St.element.removeEventListener(ot,gt,!1),!1)})},re.prototype.unbindAll=function(){for(var ot in this.handlers)this.unbind(ot)},ie.isEmpty.get=function(){var pt=this;return Object.keys(this.handlers).every(function(ot){return 0===pt.handlers[ot].length})},Object.defineProperties(re.prototype,ie);var se=function(){this.eventElements=[]};function ce(pt){if("function"==typeof window.CustomEvent)return new CustomEvent(pt);var ot=document.createEvent("CustomEvent");return ot.initCustomEvent(pt,!1,!1,void 0),ot}function Ce(pt,ot,ft,St,gt){var $e;if(void 0===St&&(St=!0),void 0===gt&&(gt=!1),"top"===ot)$e=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==ot)throw new Error("A proper axis should be provided");$e=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function M(pt,ot,ft,St,gt){var $e=ft[0],_t=ft[1],vt=ft[2],He=ft[3],Et=ft[4],At=ft[5];void 0===St&&(St=!0),void 0===gt&&(gt=!1);var Qt=pt.element;pt.reach[He]=null,Qt[vt]<1&&(pt.reach[He]="start"),Qt[vt]>pt[$e]-pt[_t]-1&&(pt.reach[He]="end"),ot&&(Qt.dispatchEvent(ce("ps-scroll-"+He)),ot<0?Qt.dispatchEvent(ce("ps-scroll-"+Et)):ot>0&&Qt.dispatchEvent(ce("ps-scroll-"+At)),St&&function me(pt,ot){J(pt,ot),ee(pt,ot)}(pt,He)),pt.reach[He]&&(ot||gt)&&Qt.dispatchEvent(ce("ps-"+He+"-reach-"+pt.reach[He]))}(pt,ft,$e,St,gt)}function i(pt){return parseInt(pt,10)||0}se.prototype.eventElement=function(ot){var ft=this.eventElements.filter(function(St){return St.element===ot})[0];return ft||(ft=new re(ot),this.eventElements.push(ft)),ft},se.prototype.bind=function(ot,ft,St){this.eventElement(ot).bind(ft,St)},se.prototype.unbind=function(ot,ft,St){var gt=this.eventElement(ot);gt.unbind(ft,St),gt.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(gt),1)},se.prototype.unbindAll=function(){this.eventElements.forEach(function(ot){return ot.unbindAll()}),this.eventElements=[]},se.prototype.once=function(ot,ft,St){var gt=this.eventElement(ot),$e=function(_t){gt.unbind(ft,$e),St(_t)};gt.bind(ft,$e)};var l={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator&&navigator.userAgent)};function v(pt){var ot=pt.element,ft=Math.floor(ot.scrollTop),St=ot.getBoundingClientRect();pt.containerWidth=Math.round(St.width),pt.containerHeight=Math.round(St.height),pt.contentWidth=ot.scrollWidth,pt.contentHeight=ot.scrollHeight,ot.contains(pt.scrollbarXRail)||(Y(ot,j.element.rail("x")).forEach(function(gt){return V(gt)}),ot.appendChild(pt.scrollbarXRail)),ot.contains(pt.scrollbarYRail)||(Y(ot,j.element.rail("y")).forEach(function(gt){return V(gt)}),ot.appendChild(pt.scrollbarYRail)),!pt.settings.suppressScrollX&&pt.containerWidth+pt.settings.scrollXMarginOffset=pt.railXWidth-pt.scrollbarXWidth&&(pt.scrollbarXLeft=pt.railXWidth-pt.scrollbarXWidth),pt.scrollbarYTop>=pt.railYHeight-pt.scrollbarYHeight&&(pt.scrollbarYTop=pt.railYHeight-pt.scrollbarYHeight),function k(pt,ot){var ft={width:ot.railXWidth},St=Math.floor(pt.scrollTop);ft.left=ot.isRtl?ot.negativeScrollAdjustment+pt.scrollLeft+ot.containerWidth-ot.contentWidth:pt.scrollLeft,ot.isScrollbarXUsingBottom?ft.bottom=ot.scrollbarXBottom-St:ft.top=ot.scrollbarXTop+St,C(ot.scrollbarXRail,ft);var gt={top:St,height:ot.railYHeight};ot.isScrollbarYUsingRight?gt.right=ot.isRtl?ot.contentWidth-(ot.negativeScrollAdjustment+pt.scrollLeft)-ot.scrollbarYRight-ot.scrollbarYOuterWidth-9:ot.scrollbarYRight-pt.scrollLeft:gt.left=ot.isRtl?ot.negativeScrollAdjustment+pt.scrollLeft+2*ot.containerWidth-ot.contentWidth-ot.scrollbarYLeft-ot.scrollbarYOuterWidth:ot.scrollbarYLeft+pt.scrollLeft,C(ot.scrollbarYRail,gt),C(ot.scrollbarX,{left:ot.scrollbarXLeft,width:ot.scrollbarXWidth-ot.railBorderXWidth}),C(ot.scrollbarY,{top:ot.scrollbarYTop,height:ot.scrollbarYHeight-ot.railBorderYWidth})}(ot,pt),pt.scrollbarXActive?ot.classList.add(j.state.active("x")):(ot.classList.remove(j.state.active("x")),pt.scrollbarXWidth=0,pt.scrollbarXLeft=0,ot.scrollLeft=!0===pt.isRtl?pt.contentWidth:0),pt.scrollbarYActive?ot.classList.add(j.state.active("y")):(ot.classList.remove(j.state.active("y")),pt.scrollbarYHeight=0,pt.scrollbarYTop=0,ot.scrollTop=0)}function I(pt,ot){return pt.settings.minScrollbarLength&&(ot=Math.max(ot,pt.settings.minScrollbarLength)),pt.settings.maxScrollbarLength&&(ot=Math.min(ot,pt.settings.maxScrollbarLength)),ot}function g(pt,ot){var ft=ot[0],St=ot[1],gt=ot[2],$e=ot[3],_t=ot[4],vt=ot[5],He=ot[6],Et=ot[7],At=ot[8],Qt=pt.element,zi=null,Ni=null,Mi=null;function Gi(Se){Se.touches&&Se.touches[0]&&(Se[gt]=Se.touches[0].pageY),Qt[He]=zi+Mi*(Se[gt]-Ni),J(pt,Et),v(pt),Se.stopPropagation(),Se.type.startsWith("touch")&&Se.changedTouches.length>1&&Se.preventDefault()}function Xe(){ee(pt,Et),pt[At].classList.remove(j.state.clicking),pt.event.unbind(pt.ownerDocument,"mousemove",Gi)}function It(Se,wt){zi=Qt[He],wt&&Se.touches&&(Se[gt]=Se.touches[0].pageY),Ni=Se[gt],Mi=(pt[St]-pt[ft])/(pt[$e]-pt[vt]),wt?pt.event.bind(pt.ownerDocument,"touchmove",Gi):(pt.event.bind(pt.ownerDocument,"mousemove",Gi),pt.event.once(pt.ownerDocument,"mouseup",Xe),Se.preventDefault()),pt[At].classList.add(j.state.clicking),Se.stopPropagation()}pt.event.bind(pt[_t],"mousedown",function(Se){It(Se)}),pt.event.bind(pt[_t],"touchstart",function(Se){It(Se,!0)})}var nt={"click-rail":function x(pt){pt.event.bind(pt.scrollbarY,"mousedown",function(ft){return ft.stopPropagation()}),pt.event.bind(pt.scrollbarYRail,"mousedown",function(ft){var St=ft.pageY-window.pageYOffset-pt.scrollbarYRail.getBoundingClientRect().top;pt.element.scrollTop+=(St>pt.scrollbarYTop?1:-1)*pt.containerHeight,v(pt),ft.stopPropagation()}),pt.event.bind(pt.scrollbarX,"mousedown",function(ft){return ft.stopPropagation()}),pt.event.bind(pt.scrollbarXRail,"mousedown",function(ft){var St=ft.pageX-window.pageXOffset-pt.scrollbarXRail.getBoundingClientRect().left;pt.element.scrollLeft+=(St>pt.scrollbarXLeft?1:-1)*pt.containerWidth,v(pt),ft.stopPropagation()})},"drag-thumb":function n(pt){g(pt,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),g(pt,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function W(pt){var ot=pt.element;pt.event.bind(pt.ownerDocument,"keydown",function($e){if(!($e.isDefaultPrevented&&$e.isDefaultPrevented()||$e.defaultPrevented)&&(H(ot,":hover")||H(pt.scrollbarX,":focus")||H(pt.scrollbarY,":focus"))){var _t=document.activeElement?document.activeElement:pt.ownerDocument.activeElement;if(_t){if("IFRAME"===_t.tagName)_t=_t.contentDocument.activeElement;else for(;_t.shadowRoot;)_t=_t.shadowRoot.activeElement;if(function a(pt){return H(pt,"input,[contenteditable]")||H(pt,"select,[contenteditable]")||H(pt,"textarea,[contenteditable]")||H(pt,"button,[contenteditable]")}(_t))return}var vt=0,He=0;switch($e.which){case 37:vt=$e.metaKey?-pt.contentWidth:$e.altKey?-pt.containerWidth:-30;break;case 38:He=$e.metaKey?pt.contentHeight:$e.altKey?pt.containerHeight:30;break;case 39:vt=$e.metaKey?pt.contentWidth:$e.altKey?pt.containerWidth:30;break;case 40:He=$e.metaKey?-pt.contentHeight:$e.altKey?-pt.containerHeight:-30;break;case 32:He=$e.shiftKey?pt.containerHeight:-pt.containerHeight;break;case 33:He=pt.containerHeight;break;case 34:He=-pt.containerHeight;break;case 36:He=pt.contentHeight;break;case 35:He=-pt.contentHeight;break;default:return}pt.settings.suppressScrollX&&0!==vt||pt.settings.suppressScrollY&&0!==He||(ot.scrollTop-=He,ot.scrollLeft+=vt,v(pt),function gt($e,_t){var vt=Math.floor(ot.scrollTop);if(0===$e){if(!pt.scrollbarYActive)return!1;if(0===vt&&_t>0||vt>=pt.contentHeight-pt.containerHeight&&_t<0)return!pt.settings.wheelPropagation}var He=ot.scrollLeft;if(0===_t){if(!pt.scrollbarXActive)return!1;if(0===He&&$e<0||He>=pt.contentWidth-pt.containerWidth&&$e>0)return!pt.settings.wheelPropagation}return!0}(vt,He)&&$e.preventDefault())}})},wheel:function O(pt){var ot=pt.element;function $e(_t){var vt=function St(_t){var vt=_t.deltaX,He=-1*_t.deltaY;return(typeof vt>"u"||typeof He>"u")&&(vt=-1*_t.wheelDeltaX/6,He=_t.wheelDeltaY/6),_t.deltaMode&&1===_t.deltaMode&&(vt*=10,He*=10),vt!=vt&&He!=He&&(vt=0,He=_t.wheelDelta),_t.shiftKey?[-He,-vt]:[vt,He]}(_t),He=vt[0],Et=vt[1];if(!function gt(_t,vt,He){if(!l.isWebKit&&ot.querySelector("select:focus"))return!0;if(!ot.contains(_t))return!1;for(var Et=_t;Et&&Et!==ot;){if(Et.classList.contains(j.element.consuming))return!0;var At=w(Et);if(He&&At.overflowY.match(/(scroll|auto)/)){var Qt=Et.scrollHeight-Et.clientHeight;if(Qt>0&&(Et.scrollTop>0&&He<0||Et.scrollTop0))return!0}if(vt&&At.overflowX.match(/(scroll|auto)/)){var zi=Et.scrollWidth-Et.clientWidth;if(zi>0&&(Et.scrollLeft>0&&vt<0||Et.scrollLeft0))return!0}Et=Et.parentNode}return!1}(_t.target,He,Et)){var At=!1;pt.settings.useBothWheelAxes?pt.scrollbarYActive&&!pt.scrollbarXActive?(Et?ot.scrollTop-=Et*pt.settings.wheelSpeed:ot.scrollTop+=He*pt.settings.wheelSpeed,At=!0):pt.scrollbarXActive&&!pt.scrollbarYActive&&(He?ot.scrollLeft+=He*pt.settings.wheelSpeed:ot.scrollLeft-=Et*pt.settings.wheelSpeed,At=!0):(ot.scrollTop-=Et*pt.settings.wheelSpeed,ot.scrollLeft+=He*pt.settings.wheelSpeed),v(pt),At=At||function ft(_t,vt){var He=Math.floor(ot.scrollTop),Et=0===ot.scrollTop,At=He+ot.offsetHeight===ot.scrollHeight,Qt=0===ot.scrollLeft,zi=ot.scrollLeft+ot.offsetWidth===ot.scrollWidth;return!(Math.abs(vt)>Math.abs(_t)?Et||At:Qt||zi)||!pt.settings.wheelPropagation}(He,Et),At&&!_t.ctrlKey&&(_t.stopPropagation(),_t.preventDefault())}}typeof window.onwheel<"u"?pt.event.bind(ot,"wheel",$e):typeof window.onmousewheel<"u"&&pt.event.bind(ot,"mousewheel",$e)},touch:function G(pt){if(l.supportsTouch||l.supportsIePointer){var ot=pt.element,gt={},$e=0,_t={},vt=null;l.supportsTouch?(pt.event.bind(ot,"touchstart",At),pt.event.bind(ot,"touchmove",zi),pt.event.bind(ot,"touchend",Ni)):l.supportsIePointer&&(window.PointerEvent?(pt.event.bind(ot,"pointerdown",At),pt.event.bind(ot,"pointermove",zi),pt.event.bind(ot,"pointerup",Ni)):window.MSPointerEvent&&(pt.event.bind(ot,"MSPointerDown",At),pt.event.bind(ot,"MSPointerMove",zi),pt.event.bind(ot,"MSPointerUp",Ni)))}function St(Mi,Gi){ot.scrollTop-=Gi,ot.scrollLeft-=Mi,v(pt)}function He(Mi){return Mi.targetTouches?Mi.targetTouches[0]:Mi}function Et(Mi){return!(Mi.pointerType&&"pen"===Mi.pointerType&&0===Mi.buttons||!(Mi.targetTouches&&1===Mi.targetTouches.length||Mi.pointerType&&"mouse"!==Mi.pointerType&&Mi.pointerType!==Mi.MSPOINTER_TYPE_MOUSE))}function At(Mi){if(Et(Mi)){var Gi=He(Mi);gt.pageX=Gi.pageX,gt.pageY=Gi.pageY,$e=(new Date).getTime(),null!==vt&&clearInterval(vt)}}function zi(Mi){if(Et(Mi)){var Gi=He(Mi),Xe={pageX:Gi.pageX,pageY:Gi.pageY},It=Xe.pageX-gt.pageX,Se=Xe.pageY-gt.pageY;if(function Qt(Mi,Gi,Xe){if(!ot.contains(Mi))return!1;for(var It=Mi;It&&It!==ot;){if(It.classList.contains(j.element.consuming))return!0;var Se=w(It);if(Xe&&Se.overflowY.match(/(scroll|auto)/)){var wt=It.scrollHeight-It.clientHeight;if(wt>0&&(It.scrollTop>0&&Xe<0||It.scrollTop0))return!0}if(Gi&&Se.overflowX.match(/(scroll|auto)/)){var Zt=It.scrollWidth-It.clientWidth;if(Zt>0&&(It.scrollLeft>0&&Gi<0||It.scrollLeft0))return!0}It=It.parentNode}return!1}(Mi.target,It,Se))return;St(It,Se),gt=Xe;var wt=(new Date).getTime(),Zt=wt-$e;Zt>0&&(_t.x=It/Zt,_t.y=Se/Zt,$e=wt),function ft(Mi,Gi){var Xe=Math.floor(ot.scrollTop),It=ot.scrollLeft,Se=Math.abs(Mi),wt=Math.abs(Gi);if(wt>Se){if(Gi<0&&Xe===pt.contentHeight-pt.containerHeight||Gi>0&&0===Xe)return 0===window.scrollY&&Gi>0&&l.isChrome}else if(Se>wt&&(Mi<0&&It===pt.contentWidth-pt.containerWidth||Mi>0&&0===It))return!0;return!0}(It,Se)&&Mi.preventDefault()}}function Ni(){pt.settings.swipeEasing&&(clearInterval(vt),vt=setInterval(function(){pt.isInitialized?clearInterval(vt):_t.x||_t.y?Math.abs(_t.x)<.01&&Math.abs(_t.y)<.01?clearInterval(vt):pt.element?(St(30*_t.x,30*_t.y),_t.x*=.8,_t.y*=.8):clearInterval(vt):clearInterval(vt)},10))}}},Ue=function(ot,ft){var St=this;if(void 0===ft&&(ft={}),"string"==typeof ot&&(ot=document.querySelector(ot)),!ot||!ot.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var gt in this.element=ot,ot.classList.add(j.main),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},ft)this.settings[gt]=ft[gt];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var At,Et,$e=function(){return ot.classList.add(j.state.focus)},_t=function(){return ot.classList.remove(j.state.focus)};this.isRtl="rtl"===w(ot).direction,!0===this.isRtl&&ot.classList.add(j.rtl),this.isNegativeScroll=(Et=ot.scrollLeft,ot.scrollLeft=-1,At=ot.scrollLeft<0,ot.scrollLeft=Et,At),this.negativeScrollAdjustment=this.isNegativeScroll?ot.scrollWidth-ot.clientWidth:0,this.event=new se,this.ownerDocument=ot.ownerDocument||document,this.scrollbarXRail=L(j.element.rail("x")),ot.appendChild(this.scrollbarXRail),this.scrollbarX=L(j.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",$e),this.event.bind(this.scrollbarX,"blur",_t),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var vt=w(this.scrollbarXRail);this.scrollbarXBottom=parseInt(vt.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=i(vt.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=i(vt.borderLeftWidth)+i(vt.borderRightWidth),C(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=i(vt.marginLeft)+i(vt.marginRight),C(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=L(j.element.rail("y")),ot.appendChild(this.scrollbarYRail),this.scrollbarY=L(j.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",$e),this.event.bind(this.scrollbarY,"blur",_t),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var He=w(this.scrollbarYRail);this.scrollbarYRight=parseInt(He.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=i(He.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function f(pt){var ot=w(pt);return i(ot.width)+i(ot.paddingLeft)+i(ot.paddingRight)+i(ot.borderLeftWidth)+i(ot.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=i(He.borderTopWidth)+i(He.borderBottomWidth),C(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=i(He.marginTop)+i(He.marginBottom),C(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:ot.scrollLeft<=0?"start":ot.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:ot.scrollTop<=0?"start":ot.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(Et){return nt[Et](St)}),this.lastScrollTop=Math.floor(ot.scrollTop),this.lastScrollLeft=ot.scrollLeft,this.event.bind(this.element,"scroll",function(Et){return St.onScroll(Et)}),v(this)};Ue.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,C(this.scrollbarXRail,{display:"block"}),C(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=i(w(this.scrollbarXRail).marginLeft)+i(w(this.scrollbarXRail).marginRight),this.railYMarginHeight=i(w(this.scrollbarYRail).marginTop)+i(w(this.scrollbarYRail).marginBottom),C(this.scrollbarXRail,{display:"none"}),C(this.scrollbarYRail,{display:"none"}),v(this),Ce(this,"top",0,!1,!0),Ce(this,"left",0,!1,!0),C(this.scrollbarXRail,{display:""}),C(this.scrollbarYRail,{display:""}))},Ue.prototype.onScroll=function(ot){this.isAlive&&(v(this),Ce(this,"top",this.element.scrollTop-this.lastScrollTop),Ce(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Ue.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),V(this.scrollbarX),V(this.scrollbarY),V(this.scrollbarXRail),V(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},Ue.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(ot){return!ot.match(/^ps([-_].+|)$/)}).join(" ")};const at=Ue;var ye=function(){if(typeof Map<"u")return Map;function pt(ot,ft){var St=-1;return ot.some(function(gt,$e){return gt[0]===ft&&(St=$e,!0)}),St}return function(){function ot(){this.__entries__=[]}return Object.defineProperty(ot.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),ot.prototype.get=function(ft){var St=pt(this.__entries__,ft),gt=this.__entries__[St];return gt&>[1]},ot.prototype.set=function(ft,St){var gt=pt(this.__entries__,ft);~gt?this.__entries__[gt][1]=St:this.__entries__.push([ft,St])},ot.prototype.delete=function(ft){var St=this.__entries__,gt=pt(St,ft);~gt&&St.splice(gt,1)},ot.prototype.has=function(ft){return!!~pt(this.__entries__,ft)},ot.prototype.clear=function(){this.__entries__.splice(0)},ot.prototype.forEach=function(ft,St){void 0===St&&(St=null);for(var gt=0,$e=this.__entries__;gt<$e.length;gt++){var _t=$e[gt];ft.call(St,_t[1],_t[0])}},ot}()}(),xe=typeof window<"u"&&typeof document<"u"&&window.document===document,fe=typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")(),Oe="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(fe):function(pt){return setTimeout(function(){return pt(Date.now())},1e3/60)},oe=2,De=20,he=["top","right","bottom","left","width","height","size","weight"],Me=typeof MutationObserver<"u",pe=function(){function pt(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function Fe(pt,ot){var ft=!1,St=!1,gt=0;function $e(){ft&&(ft=!1,pt()),St&&vt()}function _t(){Oe($e)}function vt(){var He=Date.now();if(ft){if(He-gt0},pt.prototype.connect_=function(){!xe||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Me?(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)},pt.prototype.disconnect_=function(){!xe||!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)},pt.prototype.onTransitionEnd_=function(ot){var ft=ot.propertyName,St=void 0===ft?"":ft;he.some(function($e){return!!~St.indexOf($e)})&&this.refresh()},pt.getInstance=function(){return this.instance_||(this.instance_=new pt),this.instance_},pt.instance_=null,pt}(),Ve=function(pt,ot){for(var ft=0,St=Object.keys(ot);ft"u")&&Element instanceof Object){if(!(ot instanceof Qe(ot).Element))throw new TypeError('parameter 1 is not of type "Element".');var ft=this.observations_;ft.has(ot)||(ft.set(ot,new Ie(ot)),this.controller_.addObserver(this),this.controller_.refresh())}},pt.prototype.unobserve=function(ot){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(ot instanceof Qe(ot).Element))throw new TypeError('parameter 1 is not of type "Element".');var ft=this.observations_;ft.has(ot)&&(ft.delete(ot),ft.size||this.controller_.removeObserver(this))}},pt.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},pt.prototype.gatherActive=function(){var ot=this;this.clearActive(),this.observations_.forEach(function(ft){ft.isActive()&&ot.activeObservations_.push(ft)})},pt.prototype.broadcastActive=function(){if(this.hasActive()){var ot=this.callbackCtx_,ft=this.activeObservations_.map(function(St){return new X(St.target,St.broadcastRect())});this.callback_.call(ot,ft,ot),this.clearActive()}},pt.prototype.clearActive=function(){this.activeObservations_.splice(0)},pt.prototype.hasActive=function(){return this.activeObservations_.length>0},pt}(),Tt=typeof WeakMap<"u"?new WeakMap:new ye,it=function pt(ot){if(!(this instanceof pt))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var ft=pe.getInstance(),St=new mt(ot,ft,this);Tt.set(this,St)};["observe","unobserve","disconnect"].forEach(function(pt){it.prototype[pt]=function(){var ot;return(ot=Tt.get(this))[pt].apply(ot,arguments)}});const zt=typeof fe.ResizeObserver<"u"?fe.ResizeObserver:it;function xt(pt,ot){if(1&pt&&(P.TgZ(0,"div",3),P._UZ(1,"div",4)(2,"div",5)(3,"div",6)(4,"div",7),P.qZA()),2&pt){const ft=P.oxw();P.ekj("ps-at-top",ft.states.top)("ps-at-left",ft.states.left)("ps-at-right",ft.states.right)("ps-at-bottom",ft.states.bottom),P.xp6(1),P.ekj("ps-indicator-show",ft.indicatorY&&ft.interaction),P.xp6(1),P.ekj("ps-indicator-show",ft.indicatorX&&ft.interaction),P.xp6(1),P.ekj("ps-indicator-show",ft.indicatorX&&ft.interaction),P.xp6(1),P.ekj("ps-indicator-show",ft.indicatorY&&ft.interaction)}}const Nt=["*"],Gt=new P.OlP("PERFECT_SCROLLBAR_CONFIG");class ke{constructor(ot,ft,St,gt){this.x=ot,this.y=ft,this.w=St,this.h=gt}}class ${constructor(ot,ft){this.x=ot,this.y=ft}}const ue=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class Le{constructor(ot={}){this.assign(ot)}assign(ot={}){for(const ft in ot)this[ft]=ot[ft]}}let Je=(()=>{class pt{constructor(ft,St,gt,$e,_t){this.zone=ft,this.differs=St,this.elementRef=gt,this.platformId=$e,this.defaults=_t,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new t.x,this.disabled=!1,this.psScrollY=new P.vpe,this.psScrollX=new P.vpe,this.psScrollUp=new P.vpe,this.psScrollDown=new P.vpe,this.psScrollLeft=new P.vpe,this.psScrollRight=new P.vpe,this.psYReachEnd=new P.vpe,this.psYReachStart=new P.vpe,this.psXReachEnd=new P.vpe,this.psXReachStart=new P.vpe}ngOnInit(){if(!this.disabled&&(0,d.NF)(this.platformId)){const ft=new Le(this.defaults);ft.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new at(this.elementRef.nativeElement,ft)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new zt(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{ue.forEach(St=>{const gt=St.replace(/([A-Z])/g,$e=>`-${$e.toLowerCase()}`);(0,e.R)(this.elementRef.nativeElement,gt).pipe((0,T.e)(20),(0,s.R)(this.ngDestroy)).subscribe($e=>{this[St].emit($e)})})})}}ngOnDestroy(){(0,d.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&typeof window<"u"&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&(0,d.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(ft){ft.disabled&&!ft.disabled.isFirstChange()&&(0,d.NF)(this.platformId)&&ft.disabled.currentValue!==ft.disabled.previousValue&&(!0===ft.disabled.currentValue?this.ngOnDestroy():!1===ft.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){typeof window<"u"&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{if(!this.disabled&&this.configDiff)try{this.zone.runOutsideAngular(()=>{this.instance&&this.instance.update()})}catch{}},0))}geometry(ft="scroll"){return new ke(this.elementRef.nativeElement[ft+"Left"],this.elementRef.nativeElement[ft+"Top"],this.elementRef.nativeElement[ft+"Width"],this.elementRef.nativeElement[ft+"Height"])}position(ft=!1){return!ft&&this.instance?new $(this.instance.reach.x||0,this.instance.reach.y||0):new $(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(ft="any"){const St=this.elementRef.nativeElement;return"any"===ft?St.classList.contains("ps--active-x")||St.classList.contains("ps--active-y"):"both"===ft?St.classList.contains("ps--active-x")&&St.classList.contains("ps--active-y"):St.classList.contains("ps--active-"+ft)}scrollTo(ft,St,gt){this.disabled||(null==St&&null==gt?this.animateScrolling("scrollTop",ft,gt):(null!=ft&&this.animateScrolling("scrollLeft",ft,gt),null!=St&&this.animateScrolling("scrollTop",St,gt)))}scrollToX(ft,St){this.animateScrolling("scrollLeft",ft,St)}scrollToY(ft,St){this.animateScrolling("scrollTop",ft,St)}scrollToTop(ft,St){this.animateScrolling("scrollTop",ft||0,St)}scrollToLeft(ft,St){this.animateScrolling("scrollLeft",ft||0,St)}scrollToRight(ft,St){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(ft||0),St)}scrollToBottom(ft,St){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(ft||0),St)}scrollToElement(ft,St,gt){if("string"==typeof ft&&(ft=this.elementRef.nativeElement.querySelector(ft)),ft){const $e=ft.getBoundingClientRect(),_t=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",$e.left-_t.left+this.elementRef.nativeElement.scrollLeft+(St||0),gt),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",$e.top-_t.top+this.elementRef.nativeElement.scrollTop+(St||0),gt)}}animateScrolling(ft,St,gt){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),!gt||typeof window>"u")this.elementRef.nativeElement[ft]=St;else if(St!==this.elementRef.nativeElement[ft]){let $e=0,_t=0,vt=performance.now(),He=this.elementRef.nativeElement[ft];const Et=(He-St)/2,At=Qt=>{_t+=Math.PI/(gt/(Qt-vt)),$e=Math.round(St+Et+Et*Math.cos(_t)),this.elementRef.nativeElement[ft]===He&&(_t>=Math.PI?this.animateScrolling(ft,St,0):(this.elementRef.nativeElement[ft]=$e,He=this.elementRef.nativeElement[ft],vt=Qt,this.animation=window.requestAnimationFrame(At)))};window.requestAnimationFrame(At)}}}return pt.\u0275fac=function(ft){return new(ft||pt)(P.Y36(P.R0b),P.Y36(P.aQg),P.Y36(P.SBq),P.Y36(P.Lbi),P.Y36(Gt,8))},pt.\u0275dir=P.lG2({type:pt,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:[P.TTD]}),pt})(),$t=(()=>{class pt{constructor(ft,St,gt){this.zone=ft,this.cdRef=St,this.platformId=gt,this.states={},this.indicatorX=!1,this.indicatorY=!1,this.interaction=!1,this.scrollPositionX=0,this.scrollPositionY=0,this.scrollDirectionX=0,this.scrollDirectionY=0,this.usePropagationX=!1,this.usePropagationY=!1,this.allowPropagationX=!1,this.allowPropagationY=!1,this.stateTimeout=null,this.ngDestroy=new t.x,this.stateUpdate=new t.x,this.disabled=!1,this.usePSClass=!0,this.autoPropagation=!1,this.scrollIndicators=!1,this.psScrollY=new P.vpe,this.psScrollX=new P.vpe,this.psScrollUp=new P.vpe,this.psScrollDown=new P.vpe,this.psScrollLeft=new P.vpe,this.psScrollRight=new P.vpe,this.psYReachEnd=new P.vpe,this.psYReachStart=new P.vpe,this.psXReachEnd=new P.vpe,this.psXReachStart=new P.vpe}ngOnInit(){(0,d.NF)(this.platformId)&&(this.stateUpdate.pipe((0,s.R)(this.ngDestroy),(0,y.x)((ft,St)=>ft===St&&!this.stateTimeout)).subscribe(ft=>{this.stateTimeout&&typeof window<"u"&&(window.clearTimeout(this.stateTimeout),this.stateTimeout=null),"x"===ft||"y"===ft?(this.interaction=!1,"x"===ft?(this.indicatorX=!1,this.states.left=!1,this.states.right=!1,this.autoPropagation&&this.usePropagationX&&(this.allowPropagationX=!1)):"y"===ft&&(this.indicatorY=!1,this.states.top=!1,this.states.bottom=!1,this.autoPropagation&&this.usePropagationY&&(this.allowPropagationY=!1))):("left"===ft||"right"===ft?(this.states.left=!1,this.states.right=!1,this.states[ft]=!0,this.autoPropagation&&this.usePropagationX&&(this.indicatorX=!0)):("top"===ft||"bottom"===ft)&&(this.states.top=!1,this.states.bottom=!1,this.states[ft]=!0,this.autoPropagation&&this.usePropagationY&&(this.indicatorY=!0)),this.autoPropagation&&typeof window<"u"&&(this.stateTimeout=window.setTimeout(()=>{this.indicatorX=!1,this.indicatorY=!1,this.stateTimeout=null,this.interaction&&(this.states.left||this.states.right)&&(this.allowPropagationX=!0),this.interaction&&(this.states.top||this.states.bottom)&&(this.allowPropagationY=!0),this.cdRef.markForCheck()},500))),this.cdRef.markForCheck(),this.cdRef.detectChanges()}),this.zone.runOutsideAngular(()=>{if(this.directiveRef){const ft=this.directiveRef.elementRef.nativeElement;(0,e.R)(ft,"wheel").pipe((0,s.R)(this.ngDestroy)).subscribe(St=>{!this.disabled&&this.autoPropagation&&this.checkPropagation(St,St.deltaX,St.deltaY)}),(0,e.R)(ft,"touchmove").pipe((0,s.R)(this.ngDestroy)).subscribe(St=>{if(!this.disabled&&this.autoPropagation){const gt=St.touches[0].clientX,$e=St.touches[0].clientY;this.checkPropagation(St,gt-this.scrollPositionX,$e-this.scrollPositionY),this.scrollPositionX=gt,this.scrollPositionY=$e}}),(0,_.T)((0,e.R)(ft,"ps-scroll-x").pipe((0,h.h)("x")),(0,e.R)(ft,"ps-scroll-y").pipe((0,h.h)("y")),(0,e.R)(ft,"ps-x-reach-end").pipe((0,h.h)("right")),(0,e.R)(ft,"ps-y-reach-end").pipe((0,h.h)("bottom")),(0,e.R)(ft,"ps-x-reach-start").pipe((0,h.h)("left")),(0,e.R)(ft,"ps-y-reach-start").pipe((0,h.h)("top"))).pipe((0,s.R)(this.ngDestroy)).subscribe(St=>{!this.disabled&&(this.autoPropagation||this.scrollIndicators)&&this.stateUpdate.next(St)})}}),window.setTimeout(()=>{ue.forEach(ft=>{this.directiveRef&&(this.directiveRef[ft]=this[ft])})},0))}ngOnDestroy(){(0,d.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.unsubscribe(),this.stateTimeout&&typeof window<"u"&&window.clearTimeout(this.stateTimeout))}ngDoCheck(){if((0,d.NF)(this.platformId)&&!this.disabled&&this.autoPropagation&&this.directiveRef){const ft=this.directiveRef.elementRef.nativeElement;this.usePropagationX=ft.classList.contains("ps--active-x"),this.usePropagationY=ft.classList.contains("ps--active-y")}}checkPropagation(ft,St,gt){this.interaction=!0;const $e=St<0?-1:1,_t=gt<0?-1:1;(this.usePropagationX&&this.usePropagationY||this.usePropagationX&&(!this.allowPropagationX||this.scrollDirectionX!==$e)||this.usePropagationY&&(!this.allowPropagationY||this.scrollDirectionY!==_t))&&(ft.preventDefault(),ft.stopPropagation()),St&&(this.scrollDirectionX=$e),gt&&(this.scrollDirectionY=_t),this.stateUpdate.next("interaction"),this.cdRef.detectChanges()}}return pt.\u0275fac=function(ft){return new(ft||pt)(P.Y36(P.R0b),P.Y36(P.sBO),P.Y36(P.Lbi))},pt.\u0275cmp=P.Xpm({type:pt,selectors:[["perfect-scrollbar"]],viewQuery:function(ft,St){if(1&ft&&P.Gf(Je,7),2&ft){let gt;P.iGM(gt=P.CRH())&&(St.directiveRef=gt.first)}},hostVars:4,hostBindings:function(ft,St){2&ft&&P.ekj("ps-show-limits",St.autoPropagation)("ps-show-active",St.scrollIndicators)},inputs:{disabled:"disabled",usePSClass:"usePSClass",autoPropagation:"autoPropagation",scrollIndicators:"scrollIndicators",config:"config"},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],ngContentSelectors:Nt,decls:4,vars:5,consts:[[2,"position","static",3,"perfectScrollbar","disabled"],[1,"ps-content"],["class","ps-overlay",3,"ps-at-top","ps-at-left","ps-at-right","ps-at-bottom",4,"ngIf"],[1,"ps-overlay"],[1,"ps-indicator-top"],[1,"ps-indicator-left"],[1,"ps-indicator-right"],[1,"ps-indicator-bottom"]],template:function(ft,St){1&ft&&(P.F$t(),P.TgZ(0,"div",0)(1,"div",1),P.Hsn(2),P.qZA(),P.YNc(3,xt,5,16,"div",2),P.qZA()),2&ft&&(P.ekj("ps",St.usePSClass),P.Q6J("perfectScrollbar",St.config)("disabled",St.disabled),P.xp6(3),P.Q6J("ngIf",St.scrollIndicators))},dependencies:[Je,d.O5],styles:["perfect-scrollbar{position:relative;display:block;overflow:hidden;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar[hidden]{display:none}perfect-scrollbar[fxflex]{display:flex;flex-direction:column;height:auto;min-width:0;min-height:0}perfect-scrollbar[fxflex]>.ps{flex:1 1 auto;width:auto;height:auto;min-width:0;min-height:0;-webkit-box-flex:1}perfect-scrollbar[fxlayout]>.ps,perfect-scrollbar[fxlayout]>.ps>.ps-content{display:flex;flex:1 1 auto;flex-direction:inherit;align-items:inherit;align-content:inherit;justify-content:inherit;width:100%;height:100%;-webkit-box-align:inherit;-webkit-box-flex:1;-webkit-box-pack:inherit}perfect-scrollbar[fxlayout=row]>.ps,perfect-scrollbar[fxlayout=row]>.ps>.ps-content{flex-direction:row!important}perfect-scrollbar[fxlayout=column]>.ps,perfect-scrollbar[fxlayout=column]>.ps>.ps-content{flex-direction:column!important}perfect-scrollbar>.ps{position:static;display:block;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar>.ps textarea{-ms-overflow-style:scrollbar}perfect-scrollbar>.ps>.ps-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:block;overflow:hidden;pointer-events:none}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{position:absolute;opacity:0;transition:opacity .3s ease-in-out}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{left:0;min-width:100%;min-height:24px}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{top:0;min-width:24px;min-height:100%}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left{left:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{right:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{bottom:0}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y{top:0!important;right:0!important;left:auto!important;width:10px;cursor:default;transition:width .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y:hover,perfect-scrollbar>.ps.ps--active-y>.ps__rail-y.ps--clicking{width:15px}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x{top:auto!important;bottom:0!important;left:0!important;height:10px;cursor:default;transition:height .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x:hover,perfect-scrollbar>.ps.ps--active-x>.ps__rail-x.ps--clicking{height:15px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-y{margin:0 0 10px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-x{margin:0 10px 0 0}perfect-scrollbar>.ps.ps--scrolling-y>.ps__rail-y,perfect-scrollbar>.ps.ps--scrolling-x>.ps__rail-x{opacity:.9;background-color:#eee}perfect-scrollbar.ps-show-always>.ps.ps--active-y>.ps__rail-y,perfect-scrollbar.ps-show-always>.ps.ps--active-x>.ps__rail-x{opacity:.6}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-top) .ps-indicator-top{opacity:1;background:linear-gradient(to bottom,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-bottom) .ps-indicator-bottom{opacity:1;background:linear-gradient(to top,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-left) .ps-indicator-left{opacity:1;background:linear-gradient(to right,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-right) .ps-indicator-right{opacity:1;background:linear-gradient(to left,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top{background:linear-gradient(to bottom,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom{background:linear-gradient(to top,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left{background:linear-gradient(to right,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right{background:linear-gradient(to left,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right.ps-indicator-show{opacity:1}\n",".ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;height:15px;bottom:0px;position:absolute}.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;width:15px;right:0;position:absolute}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y,.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y{opacity:.6}.ps .ps__rail-x:hover,.ps .ps__rail-y:hover,.ps .ps__rail-x:focus,.ps .ps__rail-y:focus,.ps .ps__rail-x.ps--clicking,.ps .ps__rail-y.ps--clicking{background-color:#eee;opacity:.9}.ps__thumb-x{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px;position:absolute}.ps__thumb-y{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px;position:absolute}.ps__rail-x:hover>.ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x.ps--clicking .ps__thumb-x{background-color:#999;height:11px}.ps__rail-y:hover>.ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y.ps--clicking .ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style: none){.ps{overflow:auto!important}}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){.ps{overflow:auto!important}}\n"],encapsulation:2}),pt})(),ii=(()=>{class pt{}return pt.\u0275fac=function(ft){return new(ft||pt)},pt.\u0275mod=P.oAB({type:pt}),pt.\u0275inj=P.cJS({imports:[[d.ez],d.ez]}),pt})()},7582:(We,q,m)=>{"use strict";function s(n,g,W,O){var nt,G=arguments.length,ge=G<3?g:null===O?O=Object.getOwnPropertyDescriptor(g,W):O;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ge=Reflect.decorate(n,g,W,O);else for(var Ue=n.length-1;Ue>=0;Ue--)(nt=n[Ue])&&(ge=(G<3?nt(ge):G>3?nt(g,W,ge):nt(g,W))||ge);return G>3&&ge&&Object.defineProperty(g,W,ge),ge}function L(n,g,W,O){return new(W||(W=Promise))(function(ge,nt){function Ue(xe){try{ye(O.next(xe))}catch(fe){nt(fe)}}function at(xe){try{ye(O.throw(xe))}catch(fe){nt(fe)}}function ye(xe){xe.done?ge(xe.value):function G(ge){return ge instanceof W?ge:new W(function(nt){nt(ge)})}(xe.value).then(Ue,at)}ye((O=O.apply(n,g||[])).next())})}function me(n){return this instanceof me?(this.v=n,this):new me(n)}function re(n,g,W){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var G,O=W.apply(n,g||[]),ge=[];return G={},nt("next"),nt("throw"),nt("return"),G[Symbol.asyncIterator]=function(){return this},G;function nt(Oe){O[Oe]&&(G[Oe]=function(oe){return new Promise(function(Fe,De){ge.push([Oe,oe,Fe,De])>1||Ue(Oe,oe)})})}function Ue(Oe,oe){try{!function at(Oe){Oe.value instanceof me?Promise.resolve(Oe.value.v).then(ye,xe):fe(ge[0][2],Oe)}(O[Oe](oe))}catch(Fe){fe(ge[0][3],Fe)}}function ye(Oe){Ue("next",Oe)}function xe(Oe){Ue("throw",Oe)}function fe(Oe,oe){Oe(oe),ge.shift(),ge.length&&Ue(ge[0][0],ge[0][1])}}function se(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var W,g=n[Symbol.asyncIterator];return g?g.call(n):(n=function Y(n){var g="function"==typeof Symbol&&Symbol.iterator,W=g&&n[g],O=0;if(W)return W.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&O>=n.length&&(n=void 0),{value:n&&n[O++],done:!n}}};throw new TypeError(g?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),W={},O("next"),O("throw"),O("return"),W[Symbol.asyncIterator]=function(){return this},W);function O(ge){W[ge]=n[ge]&&function(nt){return new Promise(function(Ue,at){!function G(ge,nt,Ue,at){Promise.resolve(at).then(function(ye){ge({value:ye,done:Ue})},nt)}(Ue,at,(nt=n[ge](nt)).done,nt.value)})}}}m.d(q,{FC:()=>re,KL:()=>se,gn:()=>s,mG:()=>L,qq:()=>me}),"function"==typeof SuppressedError&&SuppressedError},4946:We=>{"use strict";We.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:We=>{"use strict";We.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:We=>{"use strict";We.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:We=>{"use strict";We.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:We=>{"use strict";We.exports={i8:"6.5.4"}},2562:We=>{"use strict";We.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"}')}},We=>{We(We.s=5415)}]); \ No newline at end of file diff --git a/frontend/main.cfc23a64d6563418.js b/frontend/main.cfc23a64d6563418.js deleted file mode 100644 index ee279d29..00000000 --- a/frontend/main.cfc23a64d6563418.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[179],{429:(We,q,m)=>{"use strict";m.d(q,{$A:()=>ge,$W:()=>me,BL:()=>W,CX:()=>w,EG:()=>V,EK:()=>M,El:()=>ie,HI:()=>a,HJ:()=>D,Hc:()=>_,I8:()=>z,JK:()=>ht,Lu:()=>Y,Ly:()=>pe,Mf:()=>s,Nr:()=>fe,OG:()=>O,QJ:()=>ye,RX:()=>L,Rd:()=>Oe,SN:()=>C,Sf:()=>U,TM:()=>l,UH:()=>Ve,UR:()=>k,VD:()=>Pe,W:()=>d,WM:()=>xe,WO:()=>v,Wi:()=>he,X3:()=>ce,YP:()=>oe,YX:()=>g,Z8:()=>re,ZH:()=>lt,Zu:()=>rt,_9:()=>qe,_E:()=>J,aL:()=>Fe,as:()=>x,cQ:()=>i,d7:()=>yt,dh:()=>Ke,e9:()=>be,eF:()=>P,eM:()=>Qe,en:()=>Ie,g3:()=>j,g6:()=>De,i9:()=>Ut,kL:()=>I,mI:()=>T,n7:()=>nt,oV:()=>f,pW:()=>n,pd:()=>h,u0:()=>at,uT:()=>Ge,v_:()=>Ue,wD:()=>y,xS:()=>Q,yl:()=>de,z:()=>Ce});var t=m(9653),e=m(7731);const _=(0,t.PH)(e.AB.UPDATE_API_CALL_STATUS_CLN,(0,t.Ky)()),T=(0,t.PH)(e.AB.RESET_CLN_STORE,(0,t.Ky)()),s=(0,t.PH)(e.AB.SET_CHILD_NODE_SETTINGS_CLN,(0,t.Ky)()),y=(0,t.PH)(e.AB.FETCH_PAGE_SETTINGS_CLN),h=(0,t.PH)(e.AB.SET_PAGE_SETTINGS_CLN,(0,t.Ky)()),P=(0,t.PH)(e.AB.SAVE_PAGE_SETTINGS_CLN,(0,t.Ky)()),d=(0,t.PH)(e.AB.FETCH_INFO_CLN,(0,t.Ky)()),w=(0,t.PH)(e.AB.SET_INFO_CLN,(0,t.Ky)()),C=(0,t.PH)(e.AB.FETCH_FEES_CLN),L=(0,t.PH)(e.AB.SET_FEES_CLN,(0,t.Ky)()),D=(0,t.PH)(e.AB.FETCH_FEE_RATES_CLN,(0,t.Ky)()),z=(0,t.PH)(e.AB.SET_FEE_RATES_CLN,(0,t.Ky)()),V=(0,t.PH)(e.AB.FETCH_BALANCE_CLN),Y=(0,t.PH)(e.AB.SET_BALANCE_CLN,(0,t.Ky)()),j=(0,t.PH)(e.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),Q=(0,t.PH)(e.AB.SET_LOCAL_REMOTE_BALANCE_CLN,(0,t.Ky)()),J=(0,t.PH)(e.AB.GET_NEW_ADDRESS_CLN,(0,t.Ky)()),me=((0,t.PH)(e.AB.SET_NEW_ADDRESS_CLN,(0,t.Ky)()),(0,t.PH)(e.AB.FETCH_PEERS_CLN)),re=(0,t.PH)(e.AB.SET_PEERS_CLN,(0,t.Ky)()),ie=(0,t.PH)(e.AB.SAVE_NEW_PEER_CLN,(0,t.Ky)()),ce=((0,t.PH)(e.AB.NEWLY_ADDED_PEER_CLN,(0,t.Ky)()),(0,t.PH)(e.AB.ADD_PEER_CLN,(0,t.Ky)())),Ce=(0,t.PH)(e.AB.DETACH_PEER_CLN,(0,t.Ky)()),M=(0,t.PH)(e.AB.REMOVE_PEER_CLN,(0,t.Ky)()),i=(0,t.PH)(e.AB.FETCH_PAYMENTS_CLN),a=(0,t.PH)(e.AB.SET_PAYMENTS_CLN,(0,t.Ky)()),f=(0,t.PH)(e.AB.SEND_PAYMENT_CLN,(0,t.Ky)()),l=(0,t.PH)(e.AB.SEND_PAYMENT_STATUS_CLN,(0,t.Ky)()),v=(0,t.PH)(e.AB.GET_QUERY_ROUTES_CLN,(0,t.Ky)()),I=(0,t.PH)(e.AB.SET_QUERY_ROUTES_CLN,(0,t.Ky)()),k=(0,t.PH)(e.AB.FETCH_CHANNELS_CLN),x=(0,t.PH)(e.AB.SET_CHANNELS_CLN,(0,t.Ky)()),n=(0,t.PH)(e.AB.UPDATE_CHANNEL_CLN,(0,t.Ky)()),g=(0,t.PH)(e.AB.SAVE_NEW_CHANNEL_CLN,(0,t.Ky)()),W=(0,t.PH)(e.AB.CLOSE_CHANNEL_CLN,(0,t.Ky)()),O=(0,t.PH)(e.AB.REMOVE_CHANNEL_CLN,(0,t.Ky)()),U=(0,t.PH)(e.AB.PEER_LOOKUP_CLN,(0,t.Ky)()),ge=(0,t.PH)(e.AB.CHANNEL_LOOKUP_CLN,(0,t.Ky)()),nt=(0,t.PH)(e.AB.INVOICE_LOOKUP_CLN,(0,t.Ky)()),Ue=(0,t.PH)(e.AB.SET_LOOKUP_CLN,(0,t.Ky)()),at=(0,t.PH)(e.AB.GET_FORWARDING_HISTORY_CLN,(0,t.Ky)()),ye=(0,t.PH)(e.AB.SET_FORWARDING_HISTORY_CLN,(0,t.Ky)()),xe=(0,t.PH)(e.AB.FETCH_INVOICES_CLN,(0,t.Ky)()),fe=(0,t.PH)(e.AB.SET_INVOICES_CLN,(0,t.Ky)()),Oe=(0,t.PH)(e.AB.SAVE_NEW_INVOICE_CLN,(0,t.Ky)()),oe=(0,t.PH)(e.AB.ADD_INVOICE_CLN,(0,t.Ky)()),Fe=(0,t.PH)(e.AB.UPDATE_INVOICE_CLN,(0,t.Ky)()),De=(0,t.PH)(e.AB.DELETE_EXPIRED_INVOICE_CLN,(0,t.Ky)()),he=(0,t.PH)(e.AB.SET_CHANNEL_TRANSACTION_CLN,(0,t.Ky)()),pe=((0,t.PH)(e.AB.SET_CHANNEL_TRANSACTION_RES_CLN,(0,t.Ky)()),(0,t.PH)(e.AB.FETCH_UTXOS_CLN)),Ve=(0,t.PH)(e.AB.SET_UTXOS_CLN,(0,t.Ky)()),Qe=(0,t.PH)(e.AB.FETCH_OFFER_INVOICE_CLN,(0,t.Ky)()),Pe=(0,t.PH)(e.AB.SET_OFFER_INVOICE_CLN,(0,t.Ky)()),de=(0,t.PH)(e.AB.FETCH_OFFERS_CLN),rt=(0,t.PH)(e.AB.SET_OFFERS_CLN,(0,t.Ky)()),Ke=(0,t.PH)(e.AB.SAVE_NEW_OFFER_CLN,(0,t.Ky)()),lt=(0,t.PH)(e.AB.ADD_OFFER_CLN,(0,t.Ky)()),Ut=(0,t.PH)(e.AB.DISABLE_OFFER_CLN,(0,t.Ky)()),ht=(0,t.PH)(e.AB.UPDATE_OFFER_CLN,(0,t.Ky)()),Ge=(0,t.PH)(e.AB.FETCH_OFFER_BOOKMARKS_CLN),yt=(0,t.PH)(e.AB.SET_OFFER_BOOKMARKS_CLN,(0,t.Ky)()),be=(0,t.PH)(e.AB.ADD_UPDATE_OFFER_BOOKMARK_CLN,(0,t.Ky)()),qe=(0,t.PH)(e.AB.DELETE_OFFER_BOOKMARK_CLN,(0,t.Ky)()),Ie=(0,t.PH)(e.AB.REMOVE_OFFER_BOOKMARK_CLN,(0,t.Ky)())},4947:(We,q,m)=>{"use strict";m.d(q,{J:()=>se});var t=m(493),e=m(7579),_=m(9646),T=m(5577),s=m(2722),y=m(4004),h=m(262),P=m(1786),d=m(5566),w=m(7731),C=m(7861),L=m(429),D=m(9828),z=m(1462),V=m(4650),Y=m(529),j=m(9653),Q=m(5986),J=m(62),ee=m(5043),me=m(9116),re=m(7998),ie=m(6895);let se=(()=>{var ce;class Ce{constructor(i,a,f,l,v,I,k,x,n){this.actions=i,this.httpClient=a,this.store=f,this.sessionService=l,this.commonService=v,this.logger=I,this.router=k,this.wsService=x,this.location=n,this.CHILD_API_URL=w.T5+"/cln",this.API_VERION="",this.CLN_VERISON="",this.flgInitialized=!1,this.unSubs=[new e.x,new e.x,new e.x],this.infoFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_INFO_CLN),(0,T.z)(g=>(this.flgInitialized=!1,this.store.dispatch((0,C.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,L.Hc)({payload:{action:"FetchInfo",status:w.Bn.INITIATED}})),this.store.dispatch((0,C.ac)({payload:w.m6.GET_NODE_INFO})),this.httpClient.get(this.CHILD_API_URL+w.vv.GETINFO_API).pipe((0,s.R)(this.actions.pipe((0,t.l4)(w.pg.SET_SELECTED_NODE))),(0,y.U)(W=>(this.logger.info(W),this.API_VERION=W.api_version||"",this.CLN_VERISON=W.version||"",W.chains&&W.chains.length&&W.chains[0]&&"object"==typeof W.chains[0]&&W.chains[0].hasOwnProperty("chain")&&W?.chains[0].chain&&W?.chains[0].chain.toLowerCase().indexOf("bitcoin")<0&&W?.chains[0].chain.toLowerCase().indexOf("liquid")<0?(this.store.dispatch((0,L.Hc)({payload:{action:"FetchInfo",status:w.Bn.COMPLETED}})),this.store.dispatch((0,C.uO)({payload:w.m6.GET_NODE_INFO})),this.store.dispatch((0,C.ts)()),setTimeout(()=>{this.store.dispatch((0,C.qR)({payload:{data:{type:w.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}}))},500),{type:w.pg.LOGOUT}):(this.initializeRemainingData(W,g.payload.loadPage),this.store.dispatch((0,L.Hc)({payload:{action:"FetchInfo",status:w.Bn.COMPLETED}})),this.store.dispatch((0,C.uO)({payload:w.m6.GET_NODE_INFO})),{type:w.AB.SET_INFO_CLN,payload:W||{}}))),(0,h.K)(W=>{const O=this.commonService.extractErrorCode(W),U="ETIMEDOUT"===O?"Unable to Connect to Core Lightning Server.":this.commonService.extractErrorMessage(W);return this.router.navigate(["/error"],{state:{errorCode:O,errorMessage:U}}),this.handleErrorWithoutAlert("FetchInfo",w.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:O,error:U}),(0,_.of)({type:w.pg.VOID})})))))),this.fetchFeesCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_FEES_CLN),(0,T.z)(()=>(this.store.dispatch((0,L.Hc)({payload:{action:"FetchFees",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.FEES_API))),(0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,L.Hc)({payload:{action:"FetchFees",status:w.Bn.COMPLETED}})),{type:w.AB.SET_FEES_CLN,payload:g||{}})),(0,h.K)(g=>(this.handleErrorWithoutAlert("FetchFees",w.m6.NO_SPINNER,"Fetching Fees Failed.",g),(0,_.of)({type:w.pg.VOID}))))),this.fetchFeeRatesCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_FEE_RATES_CLN),(0,T.z)(g=>(this.store.dispatch((0,L.Hc)({payload:{action:"FetchFeeRates"+g.payload,status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.NETWORK_API+"/feeRates/"+g.payload).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.Hc)({payload:{action:"FetchFeeRates"+g.payload,status:w.Bn.COMPLETED}})),{type:w.AB.SET_FEE_RATES_CLN,payload:W||{}})),(0,h.K)(W=>(this.handleErrorWithoutAlert("FetchFeeRates"+g.payload,w.m6.NO_SPINNER,"Fetching Fee Rates Failed.",W),(0,_.of)({type:w.pg.VOID})))))))),this.fetchBalanceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_BALANCE_CLN),(0,T.z)(()=>(this.store.dispatch((0,L.Hc)({payload:{action:"FetchBalance",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.BALANCE_API))),(0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,L.Hc)({payload:{action:"FetchBalance",status:w.Bn.COMPLETED}})),{type:w.AB.SET_BALANCE_CLN,payload:g||{}})),(0,h.K)(g=>(this.handleErrorWithoutAlert("FetchBalance",w.m6.NO_SPINNER,"Fetching Balances Failed.",g),(0,_.of)({type:w.pg.VOID}))))),this.fetchLocalRemoteBalanceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),(0,T.z)(()=>(this.store.dispatch((0,L.Hc)({payload:{action:"FetchLocalRemoteBalance",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.CHANNELS_API+"/localRemoteBalance"))),(0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,L.Hc)({payload:{action:"FetchLocalRemoteBalance",status:w.Bn.COMPLETED}})),{type:w.AB.SET_LOCAL_REMOTE_BALANCE_CLN,payload:g||{}})),(0,h.K)(g=>(this.handleErrorWithoutAlert("FetchLocalRemoteBalance",w.m6.NO_SPINNER,"Fetching Balances Failed.",g),(0,_.of)({type:w.pg.VOID}))))),this.getNewAddressCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.GET_NEW_ADDRESS_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:w.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+w.vv.ON_CHAIN_API+"?type="+g.payload.addressCode).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,C.uO)({payload:w.m6.GENERATE_NEW_ADDRESS})),{type:w.AB.SET_NEW_ADDRESS_CLN,payload:W&&W.address?W.address:{}})),(0,h.K)(W=>(this.handleErrorWithAlert("GenerateNewAddress",w.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+w.vv.ON_CHAIN_API+"?type="+g.payload.addressId,W),(0,_.of)({type:w.pg.VOID})))))))),this.setNewAddressCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_NEW_ADDRESS_CLN),(0,y.U)(g=>(this.logger.info(g.payload),g.payload))),{dispatch:!1}),this.peersFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_PEERS_CLN),(0,T.z)(()=>(this.store.dispatch((0,L.Hc)({payload:{action:"FetchPeers",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.PEERS_API).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,L.Hc)({payload:{action:"FetchPeers",status:w.Bn.COMPLETED}})),{type:w.AB.SET_PEERS_CLN,payload:g||[]})),(0,h.K)(g=>(this.handleErrorWithoutAlert("FetchPeers",w.m6.NO_SPINNER,"Fetching Peers Failed.",g),(0,_.of)({type:w.pg.VOID})))))))),this.saveNewPeerCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_NEW_PEER_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:w.m6.CONNECT_PEER})),this.store.dispatch((0,L.Hc)({payload:{action:"SaveNewPeer",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.vv.PEERS_API,{id:g.payload.id}).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.Hc)({payload:{action:"SaveNewPeer",status:w.Bn.COMPLETED}})),this.store.dispatch((0,C.uO)({payload:w.m6.CONNECT_PEER})),this.store.dispatch((0,L.Z8)({payload:W||[]})),{type:w.AB.NEWLY_ADDED_PEER_CLN,payload:{peer:W.find(O=>0===g.payload.id.indexOf(O.id?O.id:""))}})),(0,h.K)(W=>(this.handleErrorWithoutAlert("SaveNewPeer",w.m6.CONNECT_PEER,"Peer Connection Failed.",W),(0,_.of)({type:w.pg.VOID})))))))),this.detachPeerCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.DETACH_PEER_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:w.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+w.vv.PEERS_API+"/"+g.payload.id+"?force="+g.payload.force).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,C.uO)({payload:w.m6.DISCONNECT_PEER})),this.store.dispatch((0,C.jW)({payload:"Peer Disconnected Successfully!"})),{type:w.AB.REMOVE_PEER_CLN,payload:{id:g.payload.id}})),(0,h.K)(W=>(this.handleErrorWithAlert("PeerDisconnect",w.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+w.vv.PEERS_API+"/"+g.payload.id,W),(0,_.of)({type:w.pg.VOID})))))))),this.channelsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_CHANNELS_CLN),(0,T.z)(()=>{this.store.dispatch((0,L.Hc)({payload:{action:"FetchChannels",status:w.Bn.INITIATED}}));const g=this.commonService.isVersionCompatible(this.CLN_VERISON,"23.02")&&this.commonService.isVersionCompatible(this.API_VERION,"0.10.3")?"/listPeerChannels":"/listChannels";return this.httpClient.get(this.CHILD_API_URL+w.vv.CHANNELS_API+g)}),(0,y.U)(g=>{this.logger.info(g),this.store.dispatch((0,L.Hc)({payload:{action:"FetchChannels",status:w.Bn.COMPLETED}}));const W={activeChannels:[],pendingChannels:[],inactiveChannels:[]};return g.forEach(O=>{O.id&&(O.peer_id=O.id),O.connected&&(O.peer_connected=O.connected),"CHANNELD_NORMAL"===O.state?O.peer_connected?W.activeChannels.push(O):W.inactiveChannels.push(O):W.pendingChannels.push(O)}),{type:w.AB.SET_CHANNELS_CLN,payload:W}}),(0,h.K)(g=>(this.handleErrorWithoutAlert("FetchChannels",w.m6.NO_SPINNER,"Fetching Channels Failed.",g),(0,_.of)({type:w.pg.VOID}))))),this.openNewChannelCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_NEW_CHANNEL_CLN),(0,T.z)(g=>{this.store.dispatch((0,C.ac)({payload:w.m6.OPEN_CHANNEL})),this.store.dispatch((0,L.Hc)({payload:{action:"SaveNewChannel",status:w.Bn.INITIATED}}));const W={id:g.payload.peerId,satoshis:g.payload.satoshis,feeRate:g.payload.feeRate,announce:g.payload.announce};return g.payload.minconf&&(W.minconf=g.payload.minconf),g.payload.utxos&&(W.utxos=g.payload.utxos),g.payload.requestAmount&&(W.request_amt=g.payload.requestAmount),g.payload.compactLease&&(W.compact_lease=g.payload.compactLease),this.httpClient.post(this.CHILD_API_URL+w.vv.CHANNELS_API,W).pipe((0,y.U)(O=>(this.logger.info(O),this.store.dispatch((0,L.Hc)({payload:{action:"SaveNewChannel",status:w.Bn.COMPLETED}})),this.store.dispatch((0,C.uO)({payload:w.m6.OPEN_CHANNEL})),this.store.dispatch((0,C.jW)({payload:"Channel Added Successfully!"})),this.store.dispatch((0,L.EG)()),this.store.dispatch((0,L.Ly)()),{type:w.AB.FETCH_CHANNELS_CLN})),(0,h.K)(O=>(this.handleErrorWithoutAlert("SaveNewChannel",w.m6.OPEN_CHANNEL,"Opening Channel Failed.",O),(0,_.of)({type:w.pg.VOID}))))}))),this.updateChannelCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.UPDATE_CHANNEL_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:w.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+w.vv.CHANNELS_API+"/setChannelFee",{id:g.payload.channelId,base:g.payload.baseFeeMsat,ppm:g.payload.feeRate}).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,C.uO)({payload:w.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,C.jW)("all"===g.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:w.AB.FETCH_CHANNELS_CLN})),(0,h.K)(W=>(this.handleErrorWithAlert("UpdateChannel",w.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+w.vv.CHANNELS_API,W),(0,_.of)({type:w.pg.VOID})))))))),this.closeChannelCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.CLOSE_CHANNEL_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:g.payload.force?w.m6.FORCE_CLOSE_CHANNEL:w.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+w.vv.CHANNELS_API+"/"+g.payload.channelId+(g.payload.force?"?force="+g.payload.force:"")).pipe((0,y.U)(O=>(this.logger.info(O),this.store.dispatch((0,C.uO)({payload:g.payload.force?w.m6.FORCE_CLOSE_CHANNEL:w.m6.CLOSE_CHANNEL})),this.store.dispatch((0,L.UR)()),this.store.dispatch((0,L.g3)()),this.store.dispatch((0,C.jW)({payload:"Channel Closed Successfully!"})),{type:w.AB.REMOVE_CHANNEL_CLN,payload:g.payload})),(0,h.K)(O=>(this.handleErrorWithAlert("CloseChannel",g.payload.force?w.m6.FORCE_CLOSE_CHANNEL:w.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+w.vv.CHANNELS_API,O),(0,_.of)({type:w.pg.VOID})))))))),this.paymentsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_PAYMENTS_CLN),(0,T.z)(()=>(this.store.dispatch((0,L.Hc)({payload:{action:"FetchPayments",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.PAYMENTS_API))),(0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,L.Hc)({payload:{action:"FetchPayments",status:w.Bn.COMPLETED}})),{type:w.AB.SET_PAYMENTS_CLN,payload:g||[]})),(0,h.K)(g=>(this.handleErrorWithoutAlert("FetchPayments",w.m6.NO_SPINNER,"Fetching Payments Failed.",g),(0,_.of)({type:w.pg.VOID}))))),this.fetchOfferInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_OFFER_INVOICE_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:w.m6.FETCH_INVOICE})),this.store.dispatch((0,L.Hc)({payload:{action:"FetchOfferInvoice",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.vv.OFFERS_API+"/fetchOfferInvoice",g.payload).pipe((0,y.U)(W=>{this.logger.info(W),setTimeout(()=>{this.store.dispatch((0,L.Hc)({payload:{action:"FetchOfferInvoice",status:w.Bn.COMPLETED}})),this.store.dispatch((0,C.uO)({payload:w.m6.FETCH_INVOICE})),this.store.dispatch((0,L.VD)({payload:W||{}}))},500)}),(0,h.K)(W=>(this.handleErrorWithoutAlert("FetchOfferInvoice",w.m6.FETCH_INVOICE,"Offer Invoice Fetch Failed",W),(0,_.of)({type:w.pg.VOID}))))))),{dispatch:!1}),this.setOfferInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_OFFER_INVOICE_CLN),(0,y.U)(g=>(this.logger.info(g.payload),g.payload))),{dispatch:!1}),this.sendPaymentCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SEND_PAYMENT_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:g.payload.uiMessage})),this.store.dispatch((0,L.Hc)({payload:{action:"SendPayment",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.vv.PAYMENTS_API,g.payload).pipe((0,y.U)(W=>{this.logger.info(W),this.store.dispatch((0,L.Hc)({payload:{action:"SendPayment",status:w.Bn.COMPLETED}}));let O="Payment Sent Successfully!";W.saveToDBError&&(O="Payment Sent Successfully but Offer Saving to Database Failed."),W.saveToDBResponse&&"NA"!==W.saveToDBResponse&&(this.store.dispatch((0,L.e9)({payload:W.saveToDBResponse})),O="Payment Sent Successfully and Offer Saved to Database."),setTimeout(()=>{this.store.dispatch((0,L.UR)()),this.store.dispatch((0,L.EG)()),this.store.dispatch((0,L.cQ)()),this.store.dispatch((0,C.uO)({payload:g.payload.uiMessage})),this.store.dispatch((0,C.jW)({payload:O})),this.store.dispatch((0,L.TM)({payload:W.paymentResponse}))},1e3)}),(0,h.K)(W=>(this.logger.error("Error: "+JSON.stringify(W)),g.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",g.payload.uiMessage,"Send Payment Failed.",W):this.handleErrorWithAlert("SendPayment",g.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+w.vv.PAYMENTS_API,W),(0,_.of)({type:w.pg.VOID}))))))),{dispatch:!1}),this.queryRoutesFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.GET_QUERY_ROUTES_CLN),(0,T.z)(g=>(this.store.dispatch((0,L.Hc)({payload:{action:"GetQueryRoutes",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.NETWORK_API+"/getRoute/"+g.payload.destPubkey+"/"+g.payload.amount).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.Hc)({payload:{action:"GetQueryRoutes",status:w.Bn.COMPLETED}})),{type:w.AB.SET_QUERY_ROUTES_CLN,payload:W})),(0,h.K)(W=>(this.store.dispatch((0,L.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",w.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+w.vv.NETWORK_API+"/getRoute/"+g.payload.destPubkey+"/"+g.payload.amount,W),(0,_.of)({type:w.pg.VOID})))))))),this.setQueryRoutesCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_QUERY_ROUTES_CLN),(0,y.U)(g=>g.payload)),{dispatch:!1}),this.peerLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.PEER_LOOKUP_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:w.m6.SEARCHING_NODE})),this.store.dispatch((0,L.Hc)({payload:{action:"Lookup",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.NETWORK_API+"/listNode/"+g.payload).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.Hc)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),this.store.dispatch((0,C.uO)({payload:w.m6.SEARCHING_NODE})),{type:w.AB.SET_LOOKUP_CLN,payload:W})),(0,h.K)(W=>(this.handleErrorWithAlert("Lookup",w.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+w.vv.NETWORK_API+"/listNode/"+g.payload,W),(0,_.of)({type:w.pg.VOID})))))))),this.channelLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.CHANNEL_LOOKUP_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:g.payload.uiMessage})),this.store.dispatch((0,L.Hc)({payload:{action:"Lookup",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.NETWORK_API+"/listChannel/"+g.payload.shortChannelID).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.Hc)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),this.store.dispatch((0,C.uO)({payload:g.payload.uiMessage})),{type:w.AB.SET_LOOKUP_CLN,payload:W})),(0,h.K)(W=>(g.payload.showError?this.handleErrorWithAlert("Lookup",g.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+w.vv.NETWORK_API+"/listChannel/"+g.payload.shortChannelID,W):this.store.dispatch((0,C.uO)({payload:g.payload.uiMessage})),this.store.dispatch((0,L.v_)({payload:[]})),(0,_.of)({type:w.pg.VOID})))))))),this.invoiceLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.INVOICE_LOOKUP_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:w.m6.SEARCHING_INVOICE})),this.store.dispatch((0,L.Hc)({payload:{action:"Lookup",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.INVOICES_API+"?label="+g.payload).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.Hc)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),this.store.dispatch((0,C.uO)({payload:w.m6.SEARCHING_INVOICE})),W.invoices&&W.invoices.length&&W.invoices.length>0&&this.store.dispatch((0,L.aL)({payload:W.invoices[0]})),{type:w.AB.SET_LOOKUP_CLN,payload:W.invoices&&W.invoices.length&&W.invoices.length>0?W.invoices[0]:W})),(0,h.K)(W=>(this.handleErrorWithoutAlert("Lookup",w.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",W),this.store.dispatch((0,C.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,_.of)({type:w.pg.VOID})))))))),this.setLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_LOOKUP_CLN),(0,y.U)(g=>(this.logger.info(g.payload),g.payload))),{dispatch:!1}),this.fetchForwardingHistoryCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.GET_FORWARDING_HISTORY_CLN),(0,T.z)(g=>{const W=g.payload.status.charAt(0).toUpperCase();return this.store.dispatch((0,L.Hc)({payload:{action:"FetchForwardingHistory"+W,status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.CHANNELS_API+"/listForwards?status="+g.payload.status).pipe((0,y.U)(O=>(this.logger.info(O),this.store.dispatch((0,L.Hc)({payload:{action:"FetchForwardingHistory"+W,status:w.Bn.COMPLETED}})),g.payload.status===w.OO.FAILED?this.store.dispatch((0,L.QJ)({payload:{status:w.OO.FAILED,totalForwards:O.length,listForwards:O}})):g.payload.status===w.OO.LOCAL_FAILED?this.store.dispatch((0,L.QJ)({payload:{status:w.OO.LOCAL_FAILED,totalForwards:O.length,listForwards:O}})):g.payload.status===w.OO.SETTLED&&this.store.dispatch((0,L.QJ)({payload:{status:w.OO.SETTLED,totalForwards:O.length,listForwards:O}})),{type:w.pg.VOID})),(0,h.K)(O=>(this.handleErrorWithAlert("FetchForwardingHistory"+W,w.m6.NO_SPINNER,"Get "+g.payload.status+" Forwarding History Failed",this.CHILD_API_URL+w.vv.CHANNELS_API+"/listForwards?status="+g.payload.status,O),(0,_.of)({type:w.pg.VOID}))))}))),this.deleteExpiredInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.DELETE_EXPIRED_INVOICE_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:w.m6.DELETE_INVOICE})),this.httpClient.delete(this.CHILD_API_URL+w.vv.INVOICES_API+(g.payload?"?maxexpiry="+g.payload:"")).pipe((0,y.U)(O=>(this.logger.info(O),this.store.dispatch((0,C.uO)({payload:w.m6.DELETE_INVOICE})),this.store.dispatch((0,C.jW)({payload:"Invoices Deleted Successfully!"})),{type:w.AB.FETCH_INVOICES_CLN,payload:{num_max_invoices:1e6,reversed:!0}})),(0,h.K)(O=>(this.handleErrorWithAlert("DeleteInvoices",w.m6.DELETE_INVOICE,"Delete Invoice Failed",this.CHILD_API_URL+w.vv.INVOICES_API,O),(0,_.of)({type:w.pg.VOID})))))))),this.saveNewInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_NEW_INVOICE_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:w.m6.ADD_INVOICE})),this.store.dispatch((0,L.Hc)({payload:{action:"SaveNewInvoice",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.vv.INVOICES_API,{label:g.payload.label,amount:g.payload.amount,description:g.payload.description,expiry:g.payload.expiry,private:g.payload.private}).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.Hc)({payload:{action:"SaveNewInvoice",status:w.Bn.COMPLETED}})),this.store.dispatch((0,C.uO)({payload:w.m6.ADD_INVOICE})),W.amount_msat=g.payload.amount,W.label=g.payload.label,W.expires_at=Math.round((new Date).getTime()/1e3+g.payload.expiry),W.description=g.payload.description,W.status="unpaid",setTimeout(()=>{this.store.dispatch((0,C.qR)({payload:{data:{invoice:W,newlyAdded:!0,component:d.y}}}))},200),{type:w.AB.ADD_INVOICE_CLN,payload:W})),(0,h.K)(W=>(this.handleErrorWithoutAlert("SaveNewInvoice",w.m6.ADD_INVOICE,"Add Invoice Failed.",W),(0,_.of)({type:w.pg.VOID})))))))),this.saveNewOfferCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_NEW_OFFER_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:w.m6.CREATE_OFFER})),this.store.dispatch((0,L.Hc)({payload:{action:"SaveNewOffer",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.vv.OFFERS_API,{amount:g.payload.amount,description:g.payload.description,issuer:g.payload.issuer}).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.Hc)({payload:{action:"SaveNewOffer",status:w.Bn.COMPLETED}})),this.store.dispatch((0,C.uO)({payload:w.m6.CREATE_OFFER})),setTimeout(()=>{this.store.dispatch((0,C.qR)({payload:{data:{offer:W,newlyAdded:!0,component:z.k}}}))},100),{type:w.AB.ADD_OFFER_CLN,payload:W})),(0,h.K)(W=>(this.handleErrorWithoutAlert("SaveNewOffer",w.m6.CREATE_OFFER,"Create Offer Failed.",W),(0,_.of)({type:w.pg.VOID})))))))),this.invoicesFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_INVOICES_CLN),(0,T.z)(g=>(this.store.dispatch((0,L.Hc)({payload:{action:"FetchInvoices",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.INVOICES_API+"?num_max_invoices="+(g.payload.num_max_invoices?g.payload.num_max_invoices:1e6)+"&index_offset="+(g.payload.index_offset?g.payload.index_offset:0)+"&reversed="+(!g.payload.reversed||g.payload.reversed)).pipe((0,y.U)(ge=>(this.logger.info(ge),this.store.dispatch((0,L.Hc)({payload:{action:"FetchInvoices",status:w.Bn.COMPLETED}})),{type:w.AB.SET_INVOICES_CLN,payload:ge})),(0,h.K)(ge=>(this.handleErrorWithoutAlert("FetchInvoices",w.m6.NO_SPINNER,"Fetching Invoices Failed.",ge),(0,_.of)({type:w.pg.VOID})))))))),this.offersFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_OFFERS_CLN),(0,T.z)(g=>(this.store.dispatch((0,L.Hc)({payload:{action:"FetchOffers",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.OFFERS_API).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.Hc)({payload:{action:"FetchOffers",status:w.Bn.COMPLETED}})),{type:w.AB.SET_OFFERS_CLN,payload:W.offers?W.offers:[]})),(0,h.K)(W=>(this.handleErrorWithoutAlert("FetchOffers",w.m6.NO_SPINNER,"Fetching Offers Failed.",W),(0,_.of)({type:w.pg.VOID})))))))),this.offersDisableCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.DISABLE_OFFER_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:w.m6.DISABLE_OFFER})),this.store.dispatch((0,L.Hc)({payload:{action:"DisableOffer",status:w.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+w.vv.OFFERS_API+"/"+g.payload.offer_id).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.Hc)({payload:{action:"DisableOffer",status:w.Bn.COMPLETED}})),this.store.dispatch((0,C.uO)({payload:w.m6.DISABLE_OFFER})),this.store.dispatch((0,C.jW)({payload:"Offer Disabled Successfully!"})),{type:w.AB.UPDATE_OFFER_CLN,payload:{offer:W}})),(0,h.K)(W=>(this.handleErrorWithoutAlert("DisableOffer",w.m6.DISABLE_OFFER,"Disabling Offer Failed.",W),(0,_.of)({type:w.pg.VOID})))))))),this.offerBookmarksFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_OFFER_BOOKMARKS_CLN),(0,T.z)(g=>(this.store.dispatch((0,L.Hc)({payload:{action:"FetchOfferBookmarks",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.OFFERS_API+"/offerbookmarks").pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.Hc)({payload:{action:"FetchOfferBookmarks",status:w.Bn.COMPLETED}})),{type:w.AB.SET_OFFER_BOOKMARKS_CLN,payload:W||[]})),(0,h.K)(W=>(this.handleErrorWithoutAlert("FetchOfferBookmarks",w.m6.NO_SPINNER,"Fetching Offer Bookmarks Failed.",W),(0,_.of)({type:w.pg.VOID})))))))),this.peidOffersDeleteCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.DELETE_OFFER_BOOKMARK_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:w.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,L.Hc)({payload:{action:"DeleteOfferBookmark",status:w.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+w.vv.OFFERS_API+"/offerbookmark/"+g.payload.bolt12).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.Hc)({payload:{action:"DeleteOfferBookmark",status:w.Bn.COMPLETED}})),this.store.dispatch((0,C.uO)({payload:w.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,C.jW)({payload:"Offer Bookmark Deleted Successfully!"})),{type:w.AB.REMOVE_OFFER_BOOKMARK_CLN,payload:{bolt12:g.payload.bolt12}})),(0,h.K)(W=>(this.handleErrorWithAlert("DeleteOfferBookmark",w.m6.DELETE_OFFER_BOOKMARK,"Deleting Offer Bookmark Failed.",this.CHILD_API_URL+w.vv.OFFERS_API+"/offerbookmark/"+g.payload.bolt12,W),(0,_.of)({type:w.pg.VOID})))))))),this.SetChannelTransactionCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_CHANNEL_TRANSACTION_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:w.m6.SEND_FUNDS})),this.store.dispatch((0,L.Hc)({payload:{action:"SetChannelTransaction",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.vv.ON_CHAIN_API,g.payload).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.Hc)({payload:{action:"SetChannelTransaction",status:w.Bn.COMPLETED}})),this.store.dispatch((0,C.uO)({payload:w.m6.SEND_FUNDS})),this.store.dispatch((0,L.EG)()),this.store.dispatch((0,L.Ly)()),{type:w.AB.SET_CHANNEL_TRANSACTION_RES_CLN,payload:W})),(0,h.K)(W=>(this.handleErrorWithoutAlert("SetChannelTransaction",w.m6.SEND_FUNDS,"Sending Fund Failed.",W),(0,_.of)({type:w.pg.VOID})))))))),this.utxosFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_UTXOS_CLN),(0,T.z)(()=>(this.store.dispatch((0,L.Hc)({payload:{action:"FetchUTXOs",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.ON_CHAIN_API+"/utxos"))),(0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,L.Hc)({payload:{action:"FetchUTXOs",status:w.Bn.COMPLETED}})),g.outputs.forEach(W=>{W.value&&(W.amount_msat=W.value)}),{type:w.AB.SET_UTXOS_CLN,payload:g.outputs||[]})),(0,h.K)(g=>(this.handleErrorWithoutAlert("FetchUTXOs",w.m6.NO_SPINNER,"Fetching UTXOs Failed.",g),(0,_.of)({type:w.pg.VOID}))))),this.pageSettingsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_PAGE_SETTINGS_CLN),(0,T.z)(()=>(this.store.dispatch((0,L.Hc)({payload:{action:"FetchPageSettings",status:w.Bn.INITIATED}})),this.httpClient.get(w.vv.PAGE_SETTINGS_API).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,L.Hc)({payload:{action:"FetchPageSettings",status:w.Bn.COMPLETED}})),{type:w.AB.SET_PAGE_SETTINGS_CLN,payload:g||[]})),(0,h.K)(g=>(this.handleErrorWithoutAlert("FetchPageSettings",w.m6.NO_SPINNER,"Fetching Page Settings Failed.",g),(0,_.of)({type:w.pg.VOID})))))))),this.savePageSettingsCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_PAGE_SETTINGS_CLN),(0,T.z)(g=>(this.store.dispatch((0,C.ac)({payload:w.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,L.Hc)({payload:{action:"SavePageSettings",status:w.Bn.INITIATED}})),this.httpClient.post(w.vv.PAGE_SETTINGS_API,g.payload).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.Hc)({payload:{action:"SavePageSettings",status:w.Bn.COMPLETED}})),this.store.dispatch((0,C.uO)({payload:w.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,C.jW)({payload:"Page Layout Updated Successfully!"})),{type:w.AB.SET_PAGE_SETTINGS_CLN,payload:W||[]})),(0,h.K)(W=>(this.handleErrorWithAlert("SavePageSettings",w.m6.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",w.vv.PAGE_SETTINGS_API,W),(0,_.of)({type:w.pg.VOID})))))))),this.store.select(D.yA).pipe((0,s.R)(this.unSubs[0])).subscribe(g=>{g.FetchInfo.status!==w.Bn.COMPLETED&&g.FetchInfo.status!==w.Bn.ERROR||g.FetchFees.status!==w.Bn.COMPLETED&&g.FetchFees.status!==w.Bn.ERROR||g.FetchChannels.status!==w.Bn.COMPLETED&&g.FetchChannels.status!==w.Bn.ERROR||g.FetchBalance.status!==w.Bn.COMPLETED&&g.FetchBalance.status!==w.Bn.ERROR||g.FetchLocalRemoteBalance.status!==w.Bn.COMPLETED&&g.FetchLocalRemoteBalance.status!==w.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,C.uO)({payload:w.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.clWSMessages.pipe((0,s.R)(this.unSubs[1])).subscribe(g=>{if(this.logger.info("Received new message from the service: "+JSON.stringify(g)),g)switch(g.event){case w.nM.INVOICE:this.logger.info(g),g&&g.data&&g.data.label&&this.store.dispatch((0,L.aL)({payload:g.data}));break;case w.nM.SEND_PAYMENT:case w.nM.BLOCK_HEIGHT:this.logger.info(g);break;default:this.logger.info("Received Event from WS: "+JSON.stringify(g))}})}initializeRemainingData(i,a){this.sessionService.setItem("clnUnlocked","true");const f={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,C.ac)({payload:w.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,C._V)({payload:f}));let l=this.location.path();l.includes("/lnd/")?l=l?.replace("/lnd/","/cln/"):l.includes("/ecl/")&&(l=l?.replace("/ecl/","/cln/")),(l.includes("/login")||l.includes("/error")||""===l||"HOME"===a||l.includes("?access-key="))&&(l="/cln/home"),this.router.navigate([l]),this.store.dispatch((0,L.WM)({payload:{num_max_invoices:1e6,index_offset:0,reversed:!0}})),this.store.dispatch((0,L.SN)()),this.store.dispatch((0,L.UR)()),this.store.dispatch((0,L.EG)()),this.store.dispatch((0,L.g3)()),this.store.dispatch((0,L.HJ)({payload:"perkw"})),this.store.dispatch((0,L.HJ)({payload:"perkb"})),this.store.dispatch((0,L.$W)()),this.store.dispatch((0,L.Ly)()),this.store.dispatch((0,L.cQ)())}handleErrorWithoutAlert(i,a,f,l){if(this.logger.error("ERROR IN: "+i+"\n"+JSON.stringify(l)),401===l.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,C.ts)()),this.store.dispatch((0,C.kS)()),this.store.dispatch((0,C.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,C.uO)({payload:a}));const v=this.commonService.extractErrorMessage(l,f);this.store.dispatch((0,L.Hc)({payload:{action:i,status:w.Bn.ERROR,statusCode:l.status.toString(),message:v}}))}}handleErrorWithAlert(i,a,f,l,v){if(this.logger.error(v),401===v.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,C.ts)()),this.store.dispatch((0,C.kS)()),this.store.dispatch((0,C.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,C.uO)({payload:a}));const I=this.commonService.extractErrorMessage(v);this.store.dispatch((0,C.qR)({payload:{data:{type:"ERROR",alertTitle:f,message:{code:v.status,message:I,URL:l},component:P.H}}})),this.store.dispatch((0,L.Hc)({payload:{action:i,status:w.Bn.ERROR,statusCode:v.status.toString(),message:I,URL:l}}))}}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}}return(ce=Ce).\u0275fac=function(i){return new(i||ce)(V.LFG(t.eX),V.LFG(Y.eN),V.LFG(j.yh),V.LFG(Q.m),V.LFG(J.v),V.LFG(ee.mQ),V.LFG(me.F0),V.LFG(re.d),V.LFG(ie.Ye))},ce.\u0275prov=V.Yz7({token:ce,factory:ce.\u0275fac}),Ce})()},9828:(We,q,m)=>{"use strict";m.d(q,{AS:()=>T,Ao:()=>ie,Bo:()=>Q,EQ:()=>Ce,Hz:()=>se,JG:()=>w,OL:()=>me,PP:()=>P,Rn:()=>Y,T4:()=>z,Wi:()=>d,Wj:()=>j,Y_:()=>ce,ZW:()=>V,ey:()=>s,gc:()=>D,hx:()=>L,jK:()=>re,lK:()=>ee,lw:()=>_,xQ:()=>J,yA:()=>h,zm:()=>C});var t=m(9653);const e=(0,t.ZF)("cln"),_=(0,t.P1)(e,i=>i.nodeSettings),T=(0,t.P1)(e,i=>({pageSettings:i.pageSettings,apiCallStatus:i.apisCallStatus.FetchPageSettings})),s=(0,t.P1)(e,i=>i.information),h=((0,t.P1)(e,i=>i.apisCallStatus.FetchInfo),(0,t.P1)(e,i=>i.apisCallStatus)),P=(0,t.P1)(e,i=>({payments:i.payments,apiCallStatus:i.apisCallStatus.FetchPayments})),d=(0,t.P1)(e,i=>({peers:i.peers,apiCallStatus:i.apisCallStatus.FetchPeers})),w=(0,t.P1)(e,i=>({fees:i.fees,apiCallStatus:i.apisCallStatus.FetchFees})),C=(0,t.P1)(e,i=>({feeRatesPerKB:i.feeRatesPerKB,apiCallStatus:i.apisCallStatus.FetchFeeRatesperkb})),L=(0,t.P1)(e,i=>({feeRatesPerKW:i.feeRatesPerKW,apiCallStatus:i.apisCallStatus.FetchFeeRatesperkw})),D=(0,t.P1)(e,i=>({listInvoices:i.invoices,apiCallStatus:i.apisCallStatus.FetchInvoices})),z=(0,t.P1)(e,i=>({utxos:i.utxos,apiCallStatus:i.apisCallStatus.FetchUTXOs})),V=(0,t.P1)(e,i=>({activeChannels:i.activeChannels,pendingChannels:i.pendingChannels,inactiveChannels:i.inactiveChannels,apiCallStatus:i.apisCallStatus.FetchChannels})),Y=(0,t.P1)(e,i=>({balance:i.balance,apiCallStatus:i.apisCallStatus.FetchBalance})),j=(0,t.P1)(e,i=>({localRemoteBalance:i.localRemoteBalance,apiCallStatus:i.apisCallStatus.FetchLocalRemoteBalance})),Q=(0,t.P1)(e,i=>({forwardingHistory:i.forwardingHistory,apiCallStatus:i.apisCallStatus.FetchForwardingHistoryS})),J=(0,t.P1)(e,i=>({failedForwardingHistory:i.failedForwardingHistory,apiCallStatus:i.apisCallStatus.FetchForwardingHistoryF})),ee=(0,t.P1)(e,i=>({localFailedForwardingHistory:i.localFailedForwardingHistory,apiCallStatus:i.apisCallStatus.FetchForwardingHistoryL})),me=(0,t.P1)(e,i=>({information:i.information,nodeSettings:i.nodeSettings,balance:i.balance})),re=(0,t.P1)(e,i=>({information:i.information,balance:i.balance,numPeers:i.peers.length})),ie=(0,t.P1)(e,i=>({information:i.information,balance:i.balance})),se=(0,t.P1)(e,i=>({information:i.information,nodeSettings:i.nodeSettings,apisCallStatus:[i.apisCallStatus.FetchInfo,i.apisCallStatus.FetchForwardingHistoryS]})),ce=(0,t.P1)(e,i=>({offers:i.offers,apiCallStatus:i.apisCallStatus.FetchOffers})),Ce=(0,t.P1)(e,i=>({offersBookmarks:i.offersBookmarks,apiCallStatus:i.apisCallStatus.FetchOfferBookmarks}))},5566:(We,q,m)=>{"use strict";m.d(q,{y:()=>De});var t=m(5412),e=m(2687),_=m(7579),T=m(2722),s=m(7731),y=m(9828),h=m(4650),P=m(5043),d=m(62),w=m(7009),C=m(9653),L=m(6895),D=m(2216),z=m(1576),V=m(5829),Y=m(4859),j=m(3546),Q=m(4850),J=m(1572),ee=m(266),me=m(658),re=m(5199),ie=m(3390);function se(he,Me){if(1&he&&h._UZ(0,"qr-code",33),2&he){const pe=h.oxw();h.Q6J("value",(null==pe.invoice?null:pe.invoice.bolt11)||(null==pe.invoice?null:pe.invoice.bolt12))("size",pe.qrWidth)("errorCorrectionLevel","L")}}function ce(he,Me){1&he&&(h.TgZ(0,"span",34),h._uU(1,"N/A"),h.qZA())}const Ce=function(he){return{"mr-0":he}};function M(he,Me){if(1&he&&h._UZ(0,"span",35),2&he){const pe=h.oxw();h.Q6J("ngClass",h.VKq(1,Ce,pe.screenSize===pe.screenSizeEnum.XS))}}function i(he,Me){if(1&he&&h._UZ(0,"span",36),2&he){const pe=h.oxw();h.Q6J("ngClass",h.VKq(1,Ce,pe.screenSize===pe.screenSizeEnum.XS))}}function a(he,Me){if(1&he&&h._UZ(0,"span",37),2&he){const pe=h.oxw();h.Q6J("ngClass",h.VKq(1,Ce,pe.screenSize===pe.screenSizeEnum.XS))}}function f(he,Me){if(1&he&&h._UZ(0,"qr-code",33),2&he){const pe=h.oxw();h.Q6J("value",(null==pe.invoice?null:pe.invoice.bolt11)||(null==pe.invoice?null:pe.invoice.bolt12))("size",pe.qrWidth)("errorCorrectionLevel","L")}}function l(he,Me){1&he&&(h.TgZ(0,"span",38),h._uU(1,"QR Code Not Applicable"),h.qZA())}function v(he,Me){1&he&&h._UZ(0,"mat-divider",39)}function I(he,Me){if(1&he&&(h.TgZ(0,"div",19)(1,"div",40),h._UZ(2,"fa-icon",41),h.TgZ(3,"span"),h._uU(4),h.qZA()()()),2&he){const pe=h.oxw();h.xp6(2),h.Q6J("icon",pe.faExclamationTriangle),h.xp6(2),h.Oqu(null==pe.invoice?null:pe.invoice.warning_capacity)}}function k(he,Me){1&he&&(h.ynx(0),h._uU(1," (zero amount) "),h.BQk())}function x(he,Me){1&he&&h._UZ(0,"span",47)}const n=function(){return[]};function g(he,Me){if(1&he&&(h.TgZ(0,"div",43)(1,"div",44)(2,"span",45),h._uU(3),h.ALo(4,"number"),h.qZA(),h.YNc(5,x,1,0,"span",46),h.qZA()()),2&he){const pe=h.oxw(2);h.xp6(3),h.hij("",h.lcZ(4,2,(null==pe.invoice?null:pe.invoice.amount_received_msat)/1e3)," Sats"),h.xp6(2),h.Q6J("ngForOf",h.DdM(4,n).constructor(35))}}function W(he,Me){if(1&he&&(h.TgZ(0,"div"),h._uU(1),h.ALo(2,"number"),h.qZA()),2&he){const pe=h.oxw(2);h.xp6(1),h.hij("",h.lcZ(2,1,(null==pe.invoice?null:pe.invoice.amount_received_msat)/1e3)," Sats")}}function O(he,Me){if(1&he&&(h.ynx(0),h.YNc(1,g,6,5,"div",42),h.YNc(2,W,3,3,"div",23),h.BQk()),2&he){const pe=h.oxw();h.xp6(1),h.Q6J("ngIf",pe.flgInvoicePaid),h.xp6(1),h.Q6J("ngIf",!pe.flgInvoicePaid)}}function U(he,Me){1&he&&(h.TgZ(0,"span"),h._uU(1,"-"),h.qZA())}function ge(he,Me){1&he&&h._UZ(0,"mat-spinner",49),2&he&&h.Q6J("diameter",20)}function nt(he,Me){if(1&he&&(h.ynx(0),h.YNc(1,U,2,0,"span",23),h.YNc(2,ge,1,1,"mat-spinner",48),h.BQk()),2&he){const pe=h.oxw();h.xp6(1),h.Q6J("ngIf","unpaid"!==(null==pe.invoice?null:pe.invoice.status)||!pe.flgVersionCompatible),h.xp6(1),h.Q6J("ngIf","unpaid"===(null==pe.invoice?null:pe.invoice.status)&&pe.flgVersionCompatible)}}function Ue(he,Me){if(1&he&&(h.TgZ(0,"div"),h._UZ(1,"mat-divider",25),h.TgZ(2,"div",19)(3,"div",26)(4,"h4",21),h._uU(5,"Payment Hash"),h.qZA(),h.TgZ(6,"span",24),h._uU(7),h.qZA()()(),h._UZ(8,"mat-divider",25),h.TgZ(9,"div",19)(10,"div",26)(11,"h4",21),h._uU(12,"Label"),h.qZA(),h.TgZ(13,"span",24),h._uU(14),h.qZA()()(),h._UZ(15,"mat-divider",25),h.qZA()),2&he){const pe=h.oxw();h.xp6(7),h.Oqu(null==pe.invoice?null:pe.invoice.payment_hash),h.xp6(7),h.Oqu(null==pe.invoice?null:pe.invoice.label)}}function at(he,Me){1&he&&(h.TgZ(0,"p"),h._uU(1,"Show Advanced"),h.qZA())}function ye(he,Me){1&he&&(h.TgZ(0,"p"),h._uU(1,"Hide Advanced"),h.qZA())}function xe(he,Me){if(1&he){const pe=h.EpF();h.TgZ(0,"button",50),h.NdJ("copied",function(Qe){h.CHM(pe);const Pe=h.oxw();return h.KtG(Pe.onCopyPayment(Qe))}),h._uU(1,"Copy Invoice"),h.qZA()}if(2&he){const pe=h.oxw();h.Q6J("payload",(null==pe.invoice?null:pe.invoice.bolt11)||(null==pe.invoice?null:pe.invoice.bolt12))}}function fe(he,Me){if(1&he){const pe=h.EpF();h.TgZ(0,"button",51),h.NdJ("click",function(){h.CHM(pe);const Qe=h.oxw();return h.KtG(Qe.onClose())}),h._uU(1,"OK"),h.qZA()}}const Oe=function(he){return{"display-none":he}},oe=function(he){return{"xs-scroll-y":he}},Fe=function(he,Me){return{"mt-2":he,"mt-1":Me}};let De=(()=>{var he;class Me{constructor(Ve,Qe,Pe,de,rt,Ke){this.dialogRef=Ve,this.data=Qe,this.logger=Pe,this.commonService=de,this.snackBar=rt,this.store=Ke,this.faReceipt=e.dLy,this.faExclamationTriangle=e.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.cu,this.flgInvoicePaid=!1,this.unSubs=[new _.x,new _.x,new _.x,new _.x,new _.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS&&(this.qrWidth=220),this.store.select(y.gc).pipe((0,T.R)(this.unSubs[1])).subscribe(Ve=>{const Qe=this.invoice.status,de=(Ve.listInvoices.invoices||[])?.find(rt=>rt.payment_hash===this.invoice.payment_hash)||null;de&&(this.invoice=de),Qe!==this.invoice.status&&"paid"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(Ve)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(Ve){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+Ve)}ngOnDestroy(){this.unSubs.forEach(Ve=>{Ve.next(null),Ve.complete()})}}return(he=Me).\u0275fac=function(Ve){return new(Ve||he)(h.Y36(t.so),h.Y36(t.WI),h.Y36(P.mQ),h.Y36(d.v),h.Y36(w.ux),h.Y36(C.yh))},he.\u0275cmp=h.Xpm({type:he,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 center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"overflow-wrap","foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["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"],["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(Ve,Qe){if(1&Ve&&(h.TgZ(0,"div",0)(1,"div",1),h.YNc(2,se,1,3,"qr-code",2),h.YNc(3,ce,2,0,"span",3),h.qZA(),h.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),h._UZ(7,"fa-icon",7),h.TgZ(8,"span",8),h._uU(9),h.YNc(10,M,1,3,"span",9),h.YNc(11,i,1,3,"span",10),h.YNc(12,a,1,3,"span",11),h.qZA()(),h.TgZ(13,"button",12),h.NdJ("click",function(){return Qe.onClose()}),h._uU(14,"X"),h.qZA()(),h.TgZ(15,"mat-card-content",13)(16,"div",14)(17,"div",15),h.YNc(18,f,1,3,"qr-code",2),h.YNc(19,l,2,0,"span",16),h.qZA(),h.YNc(20,v,1,0,"mat-divider",17),h.YNc(21,I,5,2,"div",18),h.TgZ(22,"div",19)(23,"div",20)(24,"h4",21),h._uU(25),h.qZA(),h.TgZ(26,"span",22),h._uU(27),h.ALo(28,"number"),h.YNc(29,k,2,0,"ng-container",23),h.qZA()(),h.TgZ(30,"div",20)(31,"h4",21),h._uU(32,"Amount Received"),h.qZA(),h.TgZ(33,"span",24),h.YNc(34,O,3,2,"ng-container",23),h.YNc(35,nt,3,2,"ng-container",23),h.qZA()()(),h._UZ(36,"mat-divider",25),h.TgZ(37,"div",19)(38,"div",20)(39,"h4",21),h._uU(40,"Date Expiry"),h.qZA(),h.TgZ(41,"span",22),h._uU(42),h.ALo(43,"date"),h.qZA()(),h.TgZ(44,"div",20)(45,"h4",21),h._uU(46,"Date Settled"),h.qZA(),h.TgZ(47,"span",22),h._uU(48),h.ALo(49,"date"),h.qZA()()(),h._UZ(50,"mat-divider",25),h.TgZ(51,"div",19)(52,"div",26)(53,"h4",21),h._uU(54,"Description"),h.qZA(),h.TgZ(55,"span",22),h._uU(56),h.qZA()()(),h._UZ(57,"mat-divider",25),h.TgZ(58,"div",19)(59,"div",26)(60,"h4",21),h._uU(61),h.qZA(),h.TgZ(62,"span",24),h._uU(63),h.qZA()()(),h.YNc(64,Ue,16,2,"div",23),h.TgZ(65,"div",27)(66,"button",28),h.NdJ("click",function(){return Qe.onShowAdvanced()}),h.YNc(67,at,2,0,"p",29),h.YNc(68,ye,2,0,"ng-template",null,30,h.W1O),h.qZA(),h.YNc(70,xe,2,1,"button",31),h.YNc(71,fe,2,0,"button",32),h.qZA()()()()()),2&Ve){const Pe=h.MAs(69);h.xp6(1),h.Q6J("fxLayoutAlign",null!=Qe.invoice&&Qe.invoice.bolt11&&""!==(null==Qe.invoice?null:Qe.invoice.bolt11)||null!=Qe.invoice&&Qe.invoice.bolt12&&""!==(null==Qe.invoice?null:Qe.invoice.bolt12)?"center start":"center center")("ngClass",h.VKq(40,Oe,Qe.screenSize===Qe.screenSizeEnum.XS||Qe.screenSize===Qe.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==Qe.invoice?null:Qe.invoice.bolt11)&&""!==(null==Qe.invoice?null:Qe.invoice.bolt11)||(null==Qe.invoice?null:Qe.invoice.bolt12)&&""!==(null==Qe.invoice?null:Qe.invoice.bolt12)),h.xp6(1),h.Q6J("ngIf",!(null!=Qe.invoice&&Qe.invoice.bolt11||null!=Qe.invoice&&Qe.invoice.bolt12)),h.xp6(4),h.Q6J("icon",Qe.faReceipt),h.xp6(2),h.hij(" ",Qe.screenSize===Qe.screenSizeEnum.XS?Qe.newlyAdded?"Created":"Invoice":Qe.newlyAdded?"Invoice Created":"Invoice Information"," "),h.xp6(1),h.Q6J("ngIf","paid"===(null==Qe.invoice?null:Qe.invoice.status)),h.xp6(1),h.Q6J("ngIf","unpaid"===(null==Qe.invoice?null:Qe.invoice.status)),h.xp6(1),h.Q6J("ngIf","expired"===(null==Qe.invoice?null:Qe.invoice.status)),h.xp6(3),h.Q6J("ngClass",h.VKq(42,oe,Qe.screenSize===Qe.screenSizeEnum.XS)),h.xp6(2),h.Q6J("fxLayoutAlign",null!=Qe.invoice&&Qe.invoice.bolt11&&""!==(null==Qe.invoice?null:Qe.invoice.bolt11)||null!=Qe.invoice&&Qe.invoice.bolt12&&""!==(null==Qe.invoice?null:Qe.invoice.bolt12)?"center start":"center center")("ngClass",h.VKq(44,Oe,Qe.screenSize!==Qe.screenSizeEnum.XS&&Qe.screenSize!==Qe.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==Qe.invoice?null:Qe.invoice.bolt11)&&""!==(null==Qe.invoice?null:Qe.invoice.bolt11)||(null==Qe.invoice?null:Qe.invoice.bolt12)&&""!==(null==Qe.invoice?null:Qe.invoice.bolt12)),h.xp6(1),h.Q6J("ngIf",!(null!=Qe.invoice&&Qe.invoice.bolt11||null!=Qe.invoice&&Qe.invoice.bolt12)),h.xp6(1),h.Q6J("ngIf",Qe.screenSize===Qe.screenSizeEnum.XS||Qe.screenSize===Qe.screenSizeEnum.SM),h.xp6(1),h.Q6J("ngIf",null==Qe.invoice?null:Qe.invoice.warning_capacity),h.xp6(4),h.Oqu(Qe.screenSize===Qe.screenSizeEnum.XS?"Amount":"Amount Requested"),h.xp6(2),h.hij(" ",h.lcZ(28,32,(null==Qe.invoice?null:Qe.invoice.amount_msat)/1e3||0)," Sats"),h.xp6(2),h.Q6J("ngIf",!(null!=Qe.invoice&&Qe.invoice.amount_msat)||"0"===(null==Qe.invoice?null:Qe.invoice.amount_msat)),h.xp6(5),h.Q6J("ngIf","paid"===(null==Qe.invoice?null:Qe.invoice.status)),h.xp6(1),h.Q6J("ngIf","paid"!==(null==Qe.invoice?null:Qe.invoice.status)),h.xp6(7),h.Oqu(h.xi3(43,34,1e3*(null==Qe.invoice?null:Qe.invoice.expires_at),"dd/MMM/y HH:mm")),h.xp6(6),h.Oqu(h.xi3(49,37,1e3*(null==Qe.invoice?null:Qe.invoice.paid_at),"dd/MMM/y HH:mm")||"-"),h.xp6(8),h.Oqu((null==Qe.invoice?null:Qe.invoice.description)||"-"),h.xp6(5),h.hij("",null!=Qe.invoice&&Qe.invoice.bolt12?"Bolt12":null!=Qe.invoice&&Qe.invoice.bolt11&&!Qe.invoice.label.includes("keysend-")?"Bolt11":"Keysend"," Invoice"),h.xp6(2),h.Oqu((null==Qe.invoice?null:Qe.invoice.bolt11)||(null==Qe.invoice?null:Qe.invoice.bolt12)),h.xp6(1),h.Q6J("ngIf",Qe.showAdvanced),h.xp6(1),h.Q6J("ngClass",h.WLB(46,Fe,!Qe.showAdvanced,Qe.showAdvanced)),h.xp6(2),h.Q6J("ngIf",!Qe.showAdvanced)("ngIfElse",Pe),h.xp6(3),h.Q6J("ngIf",(null==Qe.invoice?null:Qe.invoice.bolt11)&&""!==(null==Qe.invoice?null:Qe.invoice.bolt11)||(null==Qe.invoice?null:Qe.invoice.bolt12)&&""!==(null==Qe.invoice?null:Qe.invoice.bolt12)),h.xp6(1),h.Q6J("ngIf",!(null!=Qe.invoice&&Qe.invoice.bolt11||null!=Qe.invoice&&Qe.invoice.bolt12))}},dependencies:[L.mk,L.sg,L.O5,D.BN,z.xw,z.Wh,z.yH,V.oO,Y.lW,j.dn,j.dk,Q.d,J.Ou,ee.gM,me.uU,re.y,ie.h,L.JJ,L.uU]}),Me})()},1462:(We,q,m)=>{"use strict";m.d(q,{k:()=>U});var t=m(5412),e=m(2687),_=m(7579),T=m(2722),s=m(7731),y=m(4650),h=m(5043),P=m(62),d=m(7009),w=m(8104),C=m(6895),L=m(2216),D=m(1576),z=m(5829),V=m(4859),Y=m(3546),j=m(4850),Q=m(658),J=m(5199),ee=m(3390);function me(ge,nt){if(1&ge&&y._UZ(0,"qr-code",28),2&ge){const Ue=y.oxw();y.Q6J("value",null==Ue.offer?null:Ue.offer.bolt12)("size",Ue.qrWidth)("errorCorrectionLevel","L")}}function re(ge,nt){1&ge&&(y.TgZ(0,"span",29),y._uU(1,"N/A"),y.qZA())}function ie(ge,nt){if(1&ge&&y._UZ(0,"qr-code",28),2&ge){const Ue=y.oxw();y.Q6J("value",null==Ue.offer?null:Ue.offer.bolt12)("size",Ue.qrWidth)("errorCorrectionLevel","L")}}function se(ge,nt){1&ge&&(y.TgZ(0,"span",30),y._uU(1,"QR Code Not Applicable"),y.qZA())}function ce(ge,nt){1&ge&&y._UZ(0,"mat-divider",31),2&ge&&y.Q6J("inset",!0)}function Ce(ge,nt){1&ge&&y._UZ(0,"mat-divider",19)}function M(ge,nt){if(1&ge&&(y.TgZ(0,"div",15)(1,"div",16)(2,"h4",17),y._uU(3,"Used"),y.qZA(),y.TgZ(4,"span",18),y._uU(5),y.qZA()(),y.TgZ(6,"div",16)(7,"h4",17),y._uU(8,"Single Use"),y.qZA(),y.TgZ(9,"span",18),y._uU(10),y.qZA()()()),2&ge){const Ue=y.oxw(2);y.xp6(5),y.hij(" ",null!=Ue.offer&&Ue.offer.used?null!=Ue.offer&&Ue.offer.used?"Yes":"No":"N/K"," "),y.xp6(5),y.hij(" ",null!=Ue.offer&&Ue.offer.single_use?null!=Ue.offer&&Ue.offer.single_use?"Yes":"No":"N/K"," ")}}function i(ge,nt){1&ge&&y._UZ(0,"mat-divider",19)}function a(ge,nt){if(1&ge&&(y.TgZ(0,"div",15)(1,"div",20)(2,"h4",17),y._uU(3,"Issuer"),y.qZA(),y.TgZ(4,"span",34),y._uU(5),y.qZA()()()),2&ge){const Ue=y.oxw(2);y.xp6(5),y.Oqu(null==Ue.offerDecoded?null:Ue.offerDecoded.offer_issuer)}}function f(ge,nt){1&ge&&y._UZ(0,"mat-divider",19)}function l(ge,nt){if(1&ge&&(y.TgZ(0,"div",15)(1,"div",20)(2,"h4",17),y._uU(3,"Label"),y.qZA(),y.TgZ(4,"span",18),y._uU(5),y.qZA()()()),2&ge){const Ue=y.oxw(2);y.xp6(5),y.Oqu(Ue.offer.label)}}function v(ge,nt){if(1&ge&&(y.TgZ(0,"div"),y.YNc(1,Ce,1,0,"mat-divider",32),y.YNc(2,M,11,2,"div",33),y.YNc(3,i,1,0,"mat-divider",32),y.YNc(4,a,6,1,"div",33),y.YNc(5,f,1,0,"mat-divider",32),y.YNc(6,l,6,1,"div",33),y._UZ(7,"mat-divider",19),y.TgZ(8,"div",15)(9,"div",20)(10,"h4",17),y._uU(11,"Offer ID"),y.qZA(),y.TgZ(12,"span",18),y._uU(13),y.qZA()()(),y._UZ(14,"mat-divider",19),y.TgZ(15,"div",15)(16,"div",20)(17,"h4",17),y._uU(18,"Offer Node ID"),y.qZA(),y.TgZ(19,"span",18),y._uU(20),y.qZA()()(),y._UZ(21,"mat-divider",19),y.qZA()),2&ge){const Ue=y.oxw();y.xp6(1),y.Q6J("ngIf",(null==Ue.offer?null:Ue.offer.used)||(null==Ue.offer?null:Ue.offer.single_use)),y.xp6(1),y.Q6J("ngIf",(null==Ue.offer?null:Ue.offer.used)||(null==Ue.offer?null:Ue.offer.single_use)),y.xp6(1),y.Q6J("ngIf",null==Ue.offerDecoded?null:Ue.offerDecoded.issuer),y.xp6(1),y.Q6J("ngIf",null==Ue.offerDecoded?null:Ue.offerDecoded.issuer),y.xp6(1),y.Q6J("ngIf",Ue.offer.label),y.xp6(1),y.Q6J("ngIf",Ue.offer.label),y.xp6(7),y.Oqu(Ue.offerDecoded.offer_id),y.xp6(7),y.Oqu(null==Ue.offerDecoded?null:Ue.offerDecoded.offer_node_id)}}function I(ge,nt){1&ge&&(y.TgZ(0,"p"),y._uU(1,"Show Advanced"),y.qZA())}function k(ge,nt){1&ge&&(y.TgZ(0,"p"),y._uU(1,"Hide Advanced"),y.qZA())}function x(ge,nt){if(1&ge){const Ue=y.EpF();y.TgZ(0,"button",35),y.NdJ("copied",function(ye){y.CHM(Ue);const xe=y.oxw();return y.KtG(xe.onCopyOffer(ye))}),y._uU(1,"Copy Offer"),y.qZA()}if(2&ge){const Ue=y.oxw();y.Q6J("payload",null==Ue.offer?null:Ue.offer.bolt12)}}function n(ge,nt){if(1&ge){const Ue=y.EpF();y.TgZ(0,"button",36),y.NdJ("click",function(){y.CHM(Ue);const ye=y.oxw();return y.KtG(ye.onClose())}),y._uU(1,"OK"),y.qZA()}}const g=function(ge){return{"display-none":ge}},W=function(ge){return{"xs-scroll-y":ge}},O=function(ge,nt){return{"mt-2":ge,"mt-1":nt}};let U=(()=>{var ge;class nt{constructor(at,ye,xe,fe,Oe,oe){this.dialogRef=at,this.data=ye,this.logger=xe,this.commonService=fe,this.snackBar=Oe,this.dataService=oe,this.faReceipt=e.dLy,this.faExclamationTriangle=e.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.offerDecoded={},this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.cu,this.flgOfferPaid=!1,this.unSubs=[new _.x,new _.x,new _.x,new _.x,new _.x]}ngOnInit(){this.offer=this.data.offer,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS&&(this.qrWidth=220),this.dataService.decodePayment(this.offer.bolt12,!0).pipe((0,T.R)(this.unSubs[1])).subscribe(at=>{this.offerDecoded=at,this.offerDecoded.offer_id&&!this.offerDecoded.offer_amount_msat&&(this.offerDecoded.offer_amount_msat=0)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyOffer(at){this.snackBar.open("Offer copied."),this.logger.info("Copied Text: "+at)}ngOnDestroy(){this.unSubs.forEach(at=>{at.next(null),at.complete()})}}return(ge=nt).\u0275fac=function(at){return new(at||ge)(y.Y36(t.so),y.Y36(t.WI),y.Y36(h.mQ),y.Y36(P.v),y.Y36(d.ux),y.Y36(w.D))},ge.\u0275cmp=y.Xpm({type:ge,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 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(at,ye){if(1&at&&(y.TgZ(0,"div",0)(1,"div",1),y.YNc(2,me,1,3,"qr-code",2),y.YNc(3,re,2,0,"span",3),y.qZA(),y.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),y._UZ(7,"fa-icon",7),y.TgZ(8,"span",8),y._uU(9),y.qZA()(),y.TgZ(10,"button",9),y.NdJ("click",function(){return ye.onClose()}),y._uU(11,"X"),y.qZA()(),y.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),y.YNc(15,ie,1,3,"qr-code",2),y.YNc(16,se,2,0,"span",13),y.qZA(),y.YNc(17,ce,1,1,"mat-divider",14),y.TgZ(18,"div",15)(19,"div",16)(20,"h4",17),y._uU(21,"Amount Requested (Sats)"),y.qZA(),y.TgZ(22,"span",18),y._uU(23),y.ALo(24,"number"),y.qZA()(),y.TgZ(25,"div",16)(26,"h4",17),y._uU(27,"Valid"),y.qZA(),y.TgZ(28,"span",18),y._uU(29),y.qZA()()(),y._UZ(30,"mat-divider",19),y.TgZ(31,"div",15)(32,"div",20)(33,"h4",17),y._uU(34,"Description"),y.qZA(),y.TgZ(35,"span",18),y._uU(36),y.qZA()()(),y._UZ(37,"mat-divider",19),y.TgZ(38,"div",15)(39,"div",20)(40,"h4",17),y._uU(41,"Offer"),y.qZA(),y.TgZ(42,"span",18),y._uU(43),y.qZA()()(),y.YNc(44,v,22,8,"div",21),y.TgZ(45,"div",22)(46,"button",23),y.NdJ("click",function(){return ye.onShowAdvanced()}),y.YNc(47,I,2,0,"p",24),y.YNc(48,k,2,0,"ng-template",null,25,y.W1O),y.qZA(),y.YNc(50,x,2,1,"button",26),y.YNc(51,n,2,0,"button",27),y.qZA()()()()()),2&at){const xe=y.MAs(49);y.xp6(1),y.Q6J("fxLayoutAlign",null!=ye.offer&&ye.offer.bolt12&&""!==(null==ye.offer?null:ye.offer.bolt12)?"center start":"center center")("ngClass",y.VKq(24,g,ye.screenSize===ye.screenSizeEnum.XS||ye.screenSize===ye.screenSizeEnum.SM)),y.xp6(1),y.Q6J("ngIf",(null==ye.offer?null:ye.offer.bolt12)&&""!==(null==ye.offer?null:ye.offer.bolt12)),y.xp6(1),y.Q6J("ngIf",!(null!=ye.offer&&ye.offer.bolt12)||""===(null==ye.offer?null:ye.offer.bolt12)),y.xp6(4),y.Q6J("icon",ye.faReceipt),y.xp6(2),y.Oqu(ye.screenSize===ye.screenSizeEnum.XS?ye.newlyAdded?"Created":"Offer":ye.newlyAdded?"Offer Created":"Offer Information"),y.xp6(3),y.Q6J("ngClass",y.VKq(26,W,ye.screenSize===ye.screenSizeEnum.XS)),y.xp6(2),y.Q6J("fxLayoutAlign",null!=ye.offer&&ye.offer.bolt12&&""!==(null==ye.offer?null:ye.offer.bolt12)?"center start":"center center")("ngClass",y.VKq(28,g,ye.screenSize!==ye.screenSizeEnum.XS&&ye.screenSize!==ye.screenSizeEnum.SM)),y.xp6(1),y.Q6J("ngIf",(null==ye.offer?null:ye.offer.bolt12)&&""!==(null==ye.offer?null:ye.offer.bolt12)),y.xp6(1),y.Q6J("ngIf",!(null!=ye.offer&&ye.offer.bolt12)||""===(null==ye.offer?null:ye.offer.bolt12)),y.xp6(1),y.Q6J("ngIf",ye.screenSize===ye.screenSizeEnum.XS||ye.screenSize===ye.screenSizeEnum.SM),y.xp6(6),y.hij(" ",null!=ye.offerDecoded&&ye.offerDecoded.offer_amount_msat&&0!==(null==ye.offerDecoded?null:ye.offerDecoded.offer_amount_msat)?y.lcZ(24,22,(null==ye.offerDecoded?null:ye.offerDecoded.offer_amount_msat)/1e3):"Open Offer"," "),y.xp6(6),y.hij(" ",null!=ye.offerDecoded&&ye.offerDecoded.valid?null!=ye.offerDecoded&&ye.offerDecoded.valid?"Yes":"No":"N/K"," "),y.xp6(7),y.hij(" ",null==ye.offerDecoded?null:ye.offerDecoded.offer_description," "),y.xp6(7),y.Oqu(null==ye.offer?null:ye.offer.bolt12),y.xp6(1),y.Q6J("ngIf",ye.showAdvanced),y.xp6(1),y.Q6J("ngClass",y.WLB(30,O,!ye.showAdvanced,ye.showAdvanced)),y.xp6(2),y.Q6J("ngIf",!ye.showAdvanced)("ngIfElse",xe),y.xp6(3),y.Q6J("ngIf",(null==ye.offer?null:ye.offer.bolt12)&&""!==(null==ye.offer?null:ye.offer.bolt12)),y.xp6(1),y.Q6J("ngIf",!(null!=ye.offer&&ye.offer.bolt12)||""===(null==ye.offer?null:ye.offer.bolt12))}},dependencies:[C.mk,C.O5,L.BN,D.xw,D.Wh,D.yH,z.oO,V.lW,Y.dn,Y.dk,j.d,Q.uU,J.y,ee.h,C.JJ]}),nt})()},2994:(We,q,m)=>{"use strict";m.d(q,{$W:()=>me,BL:()=>v,Bw:()=>Q,CX:()=>w,DJ:()=>he,EK:()=>M,El:()=>ie,Fd:()=>T,GD:()=>Ce,HG:()=>ee,HI:()=>x,Iy:()=>nt,Lf:()=>ge,Nr:()=>ye,OG:()=>I,On:()=>J,QZ:()=>_,RX:()=>L,SN:()=>C,Sf:()=>oe,TM:()=>O,TW:()=>V,UR:()=>D,WM:()=>at,WO:()=>n,YP:()=>fe,YX:()=>f,Z$:()=>xe,Z8:()=>re,Zr:()=>s,_E:()=>i,aL:()=>Oe,cQ:()=>k,eF:()=>P,eN:()=>z,i:()=>Y,iL:()=>j,iz:()=>d,kL:()=>g,mC:()=>U,n7:()=>Fe,oV:()=>W,pW:()=>l,pd:()=>h,ti:()=>Me,wD:()=>y});var t=m(9653),e=m(7731);const _=(0,t.PH)(e.lr.UPDATE_API_CALL_STATUS_ECL,(0,t.Ky)()),T=(0,t.PH)(e.lr.RESET_ECL_STORE,(0,t.Ky)()),s=(0,t.PH)(e.lr.SET_CHILD_NODE_SETTINGS_ECL,(0,t.Ky)()),y=(0,t.PH)(e.lr.FETCH_PAGE_SETTINGS_ECL),h=(0,t.PH)(e.lr.SET_PAGE_SETTINGS_ECL,(0,t.Ky)()),P=(0,t.PH)(e.lr.SAVE_PAGE_SETTINGS_ECL,(0,t.Ky)()),d=(0,t.PH)(e.lr.FETCH_INFO_ECL,(0,t.Ky)()),w=(0,t.PH)(e.lr.SET_INFO_ECL,(0,t.Ky)()),C=(0,t.PH)(e.lr.FETCH_FEES_ECL),L=(0,t.PH)(e.lr.SET_FEES_ECL,(0,t.Ky)()),D=(0,t.PH)(e.lr.FETCH_CHANNELS_ECL,(0,t.Ky)()),z=(0,t.PH)(e.lr.SET_ACTIVE_CHANNELS_ECL,(0,t.Ky)()),V=(0,t.PH)(e.lr.SET_PENDING_CHANNELS_ECL,(0,t.Ky)()),Y=(0,t.PH)(e.lr.SET_INACTIVE_CHANNELS_ECL,(0,t.Ky)()),j=(0,t.PH)(e.lr.FETCH_ONCHAIN_BALANCE_ECL),Q=(0,t.PH)(e.lr.SET_ONCHAIN_BALANCE_ECL,(0,t.Ky)()),J=(0,t.PH)(e.lr.SET_LIGHTNING_BALANCE_ECL,(0,t.Ky)()),ee=(0,t.PH)(e.lr.SET_CHANNELS_STATUS_ECL,(0,t.Ky)()),me=(0,t.PH)(e.lr.FETCH_PEERS_ECL),re=(0,t.PH)(e.lr.SET_PEERS_ECL,(0,t.Ky)()),ie=(0,t.PH)(e.lr.SAVE_NEW_PEER_ECL,(0,t.Ky)()),Ce=((0,t.PH)(e.lr.NEWLY_ADDED_PEER_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.ADD_PEER_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.DETACH_PEER_ECL,(0,t.Ky)())),M=(0,t.PH)(e.lr.REMOVE_PEER_ECL,(0,t.Ky)()),i=(0,t.PH)(e.lr.GET_NEW_ADDRESS_ECL),f=((0,t.PH)(e.lr.SET_NEW_ADDRESS_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.SAVE_NEW_CHANNEL_ECL,(0,t.Ky)())),l=(0,t.PH)(e.lr.UPDATE_CHANNEL_ECL,(0,t.Ky)()),v=(0,t.PH)(e.lr.CLOSE_CHANNEL_ECL,(0,t.Ky)()),I=(0,t.PH)(e.lr.REMOVE_CHANNEL_ECL,(0,t.Ky)()),k=(0,t.PH)(e.lr.FETCH_PAYMENTS_ECL),x=(0,t.PH)(e.lr.SET_PAYMENTS_ECL,(0,t.Ky)()),n=(0,t.PH)(e.lr.GET_QUERY_ROUTES_ECL,(0,t.Ky)()),g=(0,t.PH)(e.lr.SET_QUERY_ROUTES_ECL,(0,t.Ky)()),W=(0,t.PH)(e.lr.SEND_PAYMENT_ECL,(0,t.Ky)()),O=(0,t.PH)(e.lr.SEND_PAYMENT_STATUS_ECL,(0,t.Ky)()),U=(0,t.PH)(e.lr.FETCH_TRANSACTIONS_ECL),ge=(0,t.PH)(e.lr.SET_TRANSACTIONS_ECL,(0,t.Ky)()),nt=(0,t.PH)(e.lr.SEND_ONCHAIN_FUNDS_ECL,(0,t.Ky)()),at=((0,t.PH)(e.lr.SEND_ONCHAIN_FUNDS_RES_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.FETCH_INVOICES_ECL)),ye=(0,t.PH)(e.lr.SET_INVOICES_ECL,(0,t.Ky)()),xe=(0,t.PH)(e.lr.CREATE_INVOICE_ECL,(0,t.Ky)()),fe=(0,t.PH)(e.lr.ADD_INVOICE_ECL,(0,t.Ky)()),Oe=(0,t.PH)(e.lr.UPDATE_INVOICE_ECL,(0,t.Ky)()),oe=(0,t.PH)(e.lr.PEER_LOOKUP_ECL,(0,t.Ky)()),Fe=(0,t.PH)(e.lr.INVOICE_LOOKUP_ECL,(0,t.Ky)()),he=((0,t.PH)(e.lr.SET_LOOKUP_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.UPDATE_CHANNEL_STATE_ECL,(0,t.Ky)())),Me=(0,t.PH)(e.lr.UPDATE_RELAYED_PAYMENT_ECL,(0,t.Ky)())},3289:(We,q,m)=>{"use strict";m.d(q,{o:()=>ie});var t=m(493),e=m(7579),_=m(9646),T=m(5577),s=m(2722),y=m(4004),h=m(262),P=m(1786),d=m(7731),w=m(7861),C=m(7766),L=m(2994),D=m(2501),z=m(4650),V=m(529),Y=m(9653),j=m(5986),Q=m(62),J=m(5043),ee=m(9116),me=m(7998),re=m(6895);let ie=(()=>{var se;class ce{constructor(M,i,a,f,l,v,I,k,x){this.actions=M,this.httpClient=i,this.store=a,this.sessionService=f,this.commonService=l,this.logger=v,this.router=I,this.wsService=k,this.location=x,this.CHILD_API_URL=d.T5+"/ecl",this.flgInitialized=!1,this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.rawChannelsList=[],this.unSubs=[new e.x,new e.x,new e.x],this.infoFetchECL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_INFO_ECL),(0,T.z)(n=>(this.flgInitialized=!1,this.store.dispatch((0,w.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,w.ac)({payload:d.m6.GET_NODE_INFO})),this.store.dispatch((0,L.QZ)({payload:{action:"FetchInfo",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.GETINFO_API).pipe((0,s.R)(this.actions.pipe((0,t.l4)(d.pg.SET_SELECTED_NODE))),(0,y.U)(g=>(this.logger.info(g),this.initializeRemainingData(g,n.payload.loadPage),this.store.dispatch((0,L.QZ)({payload:{action:"FetchInfo",status:d.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:d.m6.GET_NODE_INFO})),{type:d.lr.SET_INFO_ECL,payload:g||{}})),(0,h.K)(g=>{const W=this.commonService.extractErrorCode(g),O=503===W?"Unable to Connect to Eclair Server.":this.commonService.extractErrorMessage(g);return this.router.navigate(["/error"],{state:{errorCode:W,errorMessage:O}}),this.handleErrorWithoutAlert("FetchInfo",d.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:W,error:O}),(0,_.of)({type:d.pg.VOID})})))))),this.fetchFees=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_FEES_ECL),(0,T.z)(()=>(this.store.dispatch((0,L.QZ)({payload:{action:"FetchFees",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.FEES_API+"/fees").pipe((0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,L.QZ)({payload:{action:"FetchFees",status:d.Bn.COMPLETED}})),{type:d.lr.SET_FEES_ECL,payload:n||{}})),(0,h.K)(n=>(this.handleErrorWithoutAlert("FetchFees",d.m6.NO_SPINNER,"Fetching Fees Failed.",n),(0,_.of)({type:d.pg.VOID})))))))),this.fetchPayments=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_PAYMENTS_ECL),(0,T.z)(()=>(this.store.dispatch((0,L.QZ)({payload:{action:"FetchPayments",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.FEES_API+"/payments").pipe((0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,L.QZ)({payload:{action:"FetchPayments",status:d.Bn.COMPLETED}})),{type:d.lr.SET_PAYMENTS_ECL,payload:n||{}})),(0,h.K)(n=>(this.handleErrorWithoutAlert("FetchPayments",d.m6.NO_SPINNER,"Fetching Payments Failed.",n),(0,_.of)({type:d.pg.VOID})))))))),this.channelsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_CHANNELS_ECL),(0,T.z)(n=>(this.store.dispatch((0,L.QZ)({payload:{action:"FetchChannels",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.CHANNELS_API).pipe((0,y.U)(g=>(this.logger.info(g),this.rawChannelsList=g,this.setChannelsAndStatusAndBalances(),this.store.dispatch((0,L.QZ)({payload:{action:"FetchChannels",status:d.Bn.COMPLETED}})),n.payload&&n.payload.fetchPayments&&this.store.dispatch((0,L.cQ)()),{type:d.pg.VOID})),(0,h.K)(g=>(this.handleErrorWithoutAlert("FetchChannels",d.m6.NO_SPINNER,"Fetching Channels Failed.",g),(0,_.of)({type:d.pg.VOID})))))))),this.fetchOnchainBalance=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_ONCHAIN_BALANCE_ECL),(0,T.z)(()=>(this.store.dispatch((0,L.QZ)({payload:{action:"FetchOnchainBalance",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.ON_CHAIN_API+"/balance"))),(0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,L.QZ)({payload:{action:"FetchOnchainBalance",status:d.Bn.COMPLETED}})),{type:d.lr.SET_ONCHAIN_BALANCE_ECL,payload:n||{}})),(0,h.K)(n=>(this.handleErrorWithoutAlert("FetchOnchainBalance",d.m6.NO_SPINNER,"Fetching Onchain Balances Failed.",n),(0,_.of)({type:d.pg.VOID}))))),this.peersFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_PEERS_ECL),(0,T.z)(()=>(this.store.dispatch((0,L.QZ)({payload:{action:"FetchPeers",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.PEERS_API).pipe((0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,L.QZ)({payload:{action:"FetchPeers",status:d.Bn.COMPLETED}})),{type:d.lr.SET_PEERS_ECL,payload:n||[]})),(0,h.K)(n=>(this.handleErrorWithoutAlert("FetchPeers",d.m6.NO_SPINNER,"Fetching Peers Failed.",n),(0,_.of)({type:d.pg.VOID})))))))),this.getNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.GET_NEW_ADDRESS_ECL),(0,T.z)(()=>(this.store.dispatch((0,w.ac)({payload:d.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+d.vv.ON_CHAIN_API).pipe((0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,w.uO)({payload:d.m6.GENERATE_NEW_ADDRESS})),{type:d.lr.SET_NEW_ADDRESS_ECL,payload:n})),(0,h.K)(n=>(this.handleErrorWithAlert("GetNewAddress",d.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+d.vv.ON_CHAIN_API,n),(0,_.of)({type:d.pg.VOID})))))))),this.setNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SET_NEW_ADDRESS_ECL),(0,y.U)(n=>(this.logger.info(n.payload),n.payload))),{dispatch:!1}),this.saveNewPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SAVE_NEW_PEER_ECL),(0,T.z)(n=>(this.store.dispatch((0,w.ac)({payload:d.m6.CONNECT_PEER})),this.store.dispatch((0,L.QZ)({payload:{action:"SaveNewPeer",status:d.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+d.vv.PEERS_API+(n.payload.id.includes("@")?"?uri=":"?nodeId=")+n.payload.id,{}).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,L.QZ)({payload:{action:"SaveNewPeer",status:d.Bn.COMPLETED}})),g=g||[],this.store.dispatch((0,w.uO)({payload:d.m6.CONNECT_PEER})),this.store.dispatch((0,L.Z8)({payload:g})),{type:d.lr.NEWLY_ADDED_PEER_ECL,payload:{peer:g.find(W=>W.nodeId===(n.payload.id.includes("@")?n.payload.id.substring(0,n.payload.id.indexOf("@")):n.payload.id))}})),(0,h.K)(g=>(this.handleErrorWithoutAlert("SaveNewPeer",d.m6.CONNECT_PEER,"Peer Connection Failed.",g),(0,_.of)({type:d.pg.VOID})))))))),this.detachPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.DETACH_PEER_ECL),(0,T.z)(n=>(this.store.dispatch((0,w.ac)({payload:d.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+d.vv.PEERS_API+"/"+n.payload.nodeId).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,w.uO)({payload:d.m6.DISCONNECT_PEER})),this.store.dispatch((0,w.jW)({payload:"Disconnecting Peer!"})),{type:d.lr.REMOVE_PEER_ECL,payload:{nodeId:n.payload.nodeId}})),(0,h.K)(g=>(this.handleErrorWithAlert("DisconnectPeer",d.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+d.vv.PEERS_API+"/"+n.payload.nodeId,g),(0,_.of)({type:d.pg.VOID})))))))),this.openNewChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SAVE_NEW_CHANNEL_ECL),(0,T.z)(n=>{this.store.dispatch((0,w.ac)({payload:d.m6.OPEN_CHANNEL})),this.store.dispatch((0,L.QZ)({payload:{action:"SaveNewChannel",status:d.Bn.INITIATED}}));const g={nodeId:n.payload.nodeId,fundingSatoshis:n.payload.amount,announceChannel:!n.payload.private};return n.payload.feeRate&&n.payload.feeRate>0&&(g.fundingFeerateSatByte=n.payload.feeRate),this.httpClient.post(this.CHILD_API_URL+d.vv.CHANNELS_API,g).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,L.QZ)({payload:{action:"SaveNewChannel",status:d.Bn.COMPLETED}})),this.store.dispatch((0,L.$W)()),this.store.dispatch((0,L.iL)()),this.store.dispatch((0,w.uO)({payload:d.m6.OPEN_CHANNEL})),this.store.dispatch((0,w.jW)({payload:"Channel Added Successfully!"})),{type:d.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,h.K)(W=>(this.handleErrorWithoutAlert("SaveNewChannel",d.m6.OPEN_CHANNEL,"Opening Channel Failed.",W),(0,_.of)({type:d.pg.VOID}))))}))),this.updateChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.UPDATE_CHANNEL_ECL),(0,T.z)(n=>{this.store.dispatch((0,w.ac)({payload:d.m6.UPDATE_CHAN_POLICY}));let g="?feeBaseMsat="+n.payload.baseFeeMsat+"&feeProportionalMillionths="+n.payload.feeRate;return g=n.payload.nodeIds?g+"&nodeIds="+n.payload.nodeIds:n.payload.nodeId?g+"&nodeId="+n.payload.nodeId:n.payload.channelIds?g+"&channelIds="+n.payload.channelIds:g+"&channelId="+n.payload.channelId,this.httpClient.post(this.CHILD_API_URL+d.vv.CHANNELS_API+"/updateRelayFee"+g,{}).pipe((0,y.U)(W=>(this.logger.info(W),this.store.dispatch((0,w.uO)({payload:d.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,w.jW)(n.payload.nodeIds||n.payload.channelIds?{payload:"Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:d.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,h.K)(W=>(this.handleErrorWithAlert("UpdateChannels",d.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+d.vv.CHANNELS_API,W),(0,_.of)({type:d.pg.VOID}))))}))),this.closeChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.CLOSE_CHANNEL_ECL),(0,T.z)(n=>(this.store.dispatch((0,w.ac)({payload:n.payload.force?d.m6.FORCE_CLOSE_CHANNEL:d.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+d.vv.CHANNELS_API+"?channelId="+n.payload.channelId+"&force="+n.payload.force).pipe((0,y.U)(g=>(this.logger.info(g),setTimeout(()=>{this.store.dispatch((0,w.uO)({payload:n.payload.force?d.m6.FORCE_CLOSE_CHANNEL:d.m6.CLOSE_CHANNEL})),this.store.dispatch((0,L.UR)({payload:{fetchPayments:!1}})),this.store.dispatch((0,w.jW)({payload:n.payload.force?"Channel Force Closed Successfully!":"Channel Closed Successfully!"}))},2e3),{type:d.pg.VOID})),(0,h.K)(g=>(this.handleErrorWithAlert("CloseChannel",n.payload.force?d.m6.FORCE_CLOSE_CHANNEL:d.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+d.vv.CHANNELS_API,g),(0,_.of)({type:d.pg.VOID})))))))),this.queryRoutesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.GET_QUERY_ROUTES_ECL),(0,T.z)(n=>this.httpClient.get(this.CHILD_API_URL+d.vv.PAYMENTS_API+"/route?nodeId="+n.payload.nodeId+"&amountMsat="+n.payload.amount).pipe((0,y.U)(g=>(this.logger.info(g),{type:d.lr.SET_QUERY_ROUTES_ECL,payload:g})),(0,h.K)(g=>(this.store.dispatch((0,L.kL)({payload:[]})),this.handleErrorWithAlert("GetQueryRoutes",d.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+d.vv.PAYMENTS_API+"/route?nodeId="+n.payload.nodeId+"&amountMsat="+n.payload.amount,g),(0,_.of)({type:d.pg.VOID}))))))),this.setQueryRoutes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SET_QUERY_ROUTES_ECL),(0,y.U)(n=>n.payload)),{dispatch:!1}),this.sendPayment=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SEND_PAYMENT_ECL),(0,T.z)(n=>(this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.store.dispatch((0,w.ac)({payload:d.m6.SEND_PAYMENT})),this.store.dispatch((0,L.QZ)({payload:{action:"SendPayment",status:d.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+d.vv.PAYMENTS_API,n.payload).pipe((0,y.U)(g=>(this.logger.info(g),this.latestPaymentRes=g,setTimeout(()=>{this.flgReceivedPaymentUpdateFromWS||this.handleSendPaymentStatus("Payment Submitted!")},3e3),{type:d.pg.VOID})),(0,h.K)(g=>(this.logger.error("Error: "+JSON.stringify(g)),n.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",d.m6.SEND_PAYMENT,"Send Payment Failed.",g):this.handleErrorWithAlert("SendPayment",d.m6.SEND_PAYMENT,"Send Payment Failed",this.CHILD_API_URL+d.vv.PAYMENTS_API,g),(0,_.of)({type:d.pg.VOID})))))))),this.transactionsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_TRANSACTIONS_ECL),(0,T.z)(()=>(this.store.dispatch((0,L.QZ)({payload:{action:"FetchTransactions",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.ON_CHAIN_API+"/transactions?count=1000&skip=0"))),(0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,L.QZ)({payload:{action:"FetchTransactions",status:d.Bn.COMPLETED}})),{type:d.lr.SET_TRANSACTIONS_ECL,payload:n||[]})),(0,h.K)(n=>(this.handleErrorWithoutAlert("FetchTransactions",d.m6.NO_SPINNER,"Fetching Transactions Failed.",n),(0,_.of)({type:d.pg.VOID}))))),this.SendOnchainFunds=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SEND_ONCHAIN_FUNDS_ECL),(0,T.z)(n=>(this.store.dispatch((0,w.ac)({payload:d.m6.SEND_FUNDS})),this.store.dispatch((0,L.QZ)({payload:{action:"SendOnchainFunds",status:d.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+d.vv.ON_CHAIN_API,n.payload).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,L.QZ)({payload:{action:"SendOnchainFunds",status:d.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:d.m6.SEND_FUNDS})),this.store.dispatch((0,L.iL)()),{type:d.lr.SEND_ONCHAIN_FUNDS_RES_ECL,payload:g})),(0,h.K)(g=>(this.handleErrorWithoutAlert("SendOnchainFunds",d.m6.SEND_FUNDS,"Sending Fund Failed.",g),(0,_.of)({type:d.pg.VOID})))))))),this.createInvoice=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.CREATE_INVOICE_ECL),(0,T.z)(n=>(this.store.dispatch((0,w.ac)({payload:d.m6.CREATE_INVOICE})),this.store.dispatch((0,L.QZ)({payload:{action:"CreateInvoice",status:d.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+d.vv.INVOICES_API,n.payload).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,L.QZ)({payload:{action:"CreateInvoice",status:d.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:d.m6.CREATE_INVOICE})),g.timestamp=Math.round((new Date).getTime()/1e3),g.expiresAt=Math.round(g.timestamp+n.payload.expireIn),g.description=n.payload.description,g.status="unpaid",setTimeout(()=>{this.store.dispatch((0,w.qR)({payload:{data:{invoice:g,newlyAdded:!0,component:C.R}}}))},200),{type:d.lr.ADD_INVOICE_ECL,payload:g})),(0,h.K)(g=>(this.handleErrorWithoutAlert("CreateInvoice",d.m6.CREATE_INVOICE,"Create Invoice Failed.",g),(0,_.of)({type:d.pg.VOID})))))))),this.invoicesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_INVOICES_ECL),(0,T.z)(()=>(this.store.dispatch((0,L.QZ)({payload:{action:"FetchInvoices",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.INVOICES_API).pipe((0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,L.QZ)({payload:{action:"FetchInvoices",status:d.Bn.COMPLETED}})),{type:d.lr.SET_INVOICES_ECL,payload:n})),(0,h.K)(n=>(this.handleErrorWithoutAlert("FetchInvoices",d.m6.NO_SPINNER,"Fetching Invoices Failed.",n),(0,_.of)({type:d.pg.VOID})))))))),this.peerLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.PEER_LOOKUP_ECL),(0,T.z)(n=>(this.store.dispatch((0,w.ac)({payload:d.m6.SEARCHING_NODE})),this.store.dispatch((0,L.QZ)({payload:{action:"Lookup",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.NETWORK_API+"/nodes/"+n.payload).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,L.QZ)({payload:{action:"Lookup",status:d.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:d.m6.SEARCHING_NODE})),{type:d.lr.SET_LOOKUP_ECL,payload:g})),(0,h.K)(g=>(this.handleErrorWithAlert("Lookup",d.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+d.vv.NETWORK_API+"/nodes/"+n.payload,g),(0,_.of)({type:d.pg.VOID})))))))),this.invoiceLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.INVOICE_LOOKUP_ECL),(0,T.z)(n=>(this.store.dispatch((0,w.ac)({payload:d.m6.SEARCHING_INVOICE})),this.store.dispatch((0,L.QZ)({payload:{action:"Lookup",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.INVOICES_API+"/"+n.payload).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,L.QZ)({payload:{action:"Lookup",status:d.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:d.m6.SEARCHING_INVOICE})),this.store.dispatch((0,L.aL)({payload:g})),{type:d.lr.SET_LOOKUP_ECL,payload:g})),(0,h.K)(g=>(this.handleErrorWithoutAlert("Lookup",d.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",g),this.store.dispatch((0,w.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,_.of)({type:d.pg.VOID})))))))),this.setLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SET_LOOKUP_ECL),(0,y.U)(n=>(this.logger.info(n.payload),n.payload))),{dispatch:!1}),this.pageSettingsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_PAGE_SETTINGS_ECL),(0,T.z)(()=>(this.store.dispatch((0,L.QZ)({payload:{action:"FetchPageSettings",status:d.Bn.INITIATED}})),this.httpClient.get(d.vv.PAGE_SETTINGS_API).pipe((0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,L.QZ)({payload:{action:"FetchPageSettings",status:d.Bn.COMPLETED}})),{type:d.lr.SET_PAGE_SETTINGS_ECL,payload:n||[]})),(0,h.K)(n=>(this.handleErrorWithoutAlert("FetchPageSettings",d.m6.NO_SPINNER,"Fetching Page Settings Failed.",n),(0,_.of)({type:d.pg.VOID})))))))),this.savePageSettingsCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SAVE_PAGE_SETTINGS_ECL),(0,T.z)(n=>(this.store.dispatch((0,w.ac)({payload:d.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,L.QZ)({payload:{action:"SavePageSettings",status:d.Bn.INITIATED}})),this.httpClient.post(d.vv.PAGE_SETTINGS_API,n.payload).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,L.QZ)({payload:{action:"SavePageSettings",status:d.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:d.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,w.jW)({payload:"Page Layout Updated Successfully!"})),{type:d.lr.SET_PAGE_SETTINGS_ECL,payload:g||[]})),(0,h.K)(g=>(this.handleErrorWithAlert("SavePageSettings",d.m6.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",d.vv.PAGE_SETTINGS_API,g),(0,_.of)({type:d.pg.VOID})))))))),this.handleSendPaymentStatus=n=>{this.store.dispatch((0,L.QZ)({payload:{action:"SendPayment",status:d.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:d.m6.SEND_PAYMENT})),this.store.dispatch((0,L.TM)({payload:this.latestPaymentRes})),this.store.dispatch((0,L.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,w.jW)({payload:n}))},this.store.select(D.yA).pipe((0,s.R)(this.unSubs[0])).subscribe(n=>{n.FetchInfo.status!==d.Bn.COMPLETED&&n.FetchInfo.status!==d.Bn.ERROR||n.FetchFees.status!==d.Bn.COMPLETED&&n.FetchFees.status!==d.Bn.ERROR||n.FetchOnchainBalance.status!==d.Bn.COMPLETED&&n.FetchOnchainBalance.status!==d.Bn.ERROR||n.FetchChannels.status!==d.Bn.COMPLETED&&n.FetchChannels.status!==d.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,w.uO)({payload:d.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.eclWSMessages.pipe((0,s.R)(this.unSubs[1])).subscribe(n=>{this.logger.info("Received new message from the service: "+JSON.stringify(n));let g="";if(n)switch(n.type){case d.$v.PAYMENT_SENT:n&&n.id&&this.latestPaymentRes===n.id&&(this.flgReceivedPaymentUpdateFromWS=!0,g="Payment Sent: "+(n.paymentHash?"with payment hash "+n.paymentHash:JSON.stringify(n)),this.handleSendPaymentStatus(g));break;case d.$v.PAYMENT_FAILED:n&&n.id&&this.latestPaymentRes===n.id&&(this.flgReceivedPaymentUpdateFromWS=!0,g="Payment Failed: "+(n.failures&&n.failures.length&&n.failures.length>0&&n.failures[0].t?n.failures[0].t:n.failures&&n.failures.length&&n.failures.length>0&&n.failures[0].e&&n.failures[0].e.failureMessage?n.failures[0].e.failureMessage:JSON.stringify(n)),this.handleSendPaymentStatus(g));break;case d.$v.PAYMENT_RECEIVED:this.store.dispatch((0,L.aL)({payload:n}));break;case d.$v.PAYMENT_RELAYED:delete n.source,n.amountIn=Math.round((n.amountIn||0)/1e3),n.amountOut=Math.round((n.amountOut||0)/1e3),n.timestamp.unix&&(n.timestamp=1e3*n.timestamp.unix),this.store.dispatch((0,L.ti)({payload:n}));break;case d.$v.CHANNEL_STATE_CHANGED:"NORMAL"===n.currentState||"CLOSED"===n.currentState?(this.rawChannelsList=this.rawChannelsList?.map(W=>(W.channelId===n.channelId&&W.nodeId===n.remoteNodeId&&(W.state=n.currentState),W)),this.setChannelsAndStatusAndBalances()):this.store.dispatch((0,L.DJ)({payload:n}));break;default:this.logger.info("Received Event from WS: "+JSON.stringify(n))}})}setChannelsAndStatusAndBalances(){let M=0,i=0,a=0,f={localBalance:0,remoteBalance:0},l=[];const v=[],I=[],k={active:{channels:0,capacity:0},inactive:{channels:0,capacity:0},pending:{channels:0,capacity:0}};this.rawChannelsList.forEach((x,n)=>{x&&("NORMAL"===x.state?(M=(x.toLocal||0)+(x.toRemote||0),i+=x.toLocal||0,a+=x.toRemote||0,x.balancedness=0===M?1:+(1-Math.abs(((x.toLocal||0)-(x.toRemote||0))/M)).toFixed(3),l.push(x),k.active.channels=k.active.channels+1,k.active.capacity=k.active.capacity+(x.toLocal||0)):x.state?.includes("WAIT")||x.state?.includes("CLOSING")||x.state?.includes("SYNCING")?(x.state=x.state?.replace(/_/g," "),v.push(x),k.pending.channels=k.pending.channels+1,k.pending.capacity=k.pending.capacity+(x.toLocal||0)):(x.state=x.state?.replace(/_/g," "),I.push(x),k.inactive.channels=k.inactive.channels+1,k.inactive.capacity=k.inactive.capacity+(x.toLocal||0)))}),f={localBalance:i,remoteBalance:a},l=this.commonService.sortDescByKey(l,"balancedness"),this.logger.info("Active Channels: "+JSON.stringify(l)),this.logger.info("Pending Channels: "+JSON.stringify(v)),this.logger.info("Inactive Channels: "+JSON.stringify(I)),this.logger.info("Lightning Balances: "+JSON.stringify(f)),this.logger.info("Channels Status: "+JSON.stringify(k)),this.logger.info("Channel, status and balances: "+JSON.stringify({active:l,pending:v,inactive:I,balances:f,status:k})),this.store.dispatch((0,L.eN)({payload:l})),this.store.dispatch((0,L.TW)({payload:v})),this.store.dispatch((0,L.i)({payload:I})),this.store.dispatch((0,L.On)({payload:f})),this.store.dispatch((0,L.HG)({payload:k}))}initializeRemainingData(M,i){this.sessionService.setItem("eclUnlocked","true");const a={identity_pubkey:M.nodeId,alias:M.alias,testnet:"testnet"===M.network,chains:M.publicAddresses,uris:M.uris,version:M.version,numberOfPendingChannels:0};this.store.dispatch((0,w.ac)({payload:d.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,w._V)({payload:a}));let f=this.location.path();f.includes("/lnd/")?f=f?.replace("/lnd/","/ecl/"):f.includes("/cln/")&&(f=f?.replace("/cln/","/ecl/")),(f.includes("/login")||f.includes("/error")||""===f||"HOME"===i||f.includes("?access-key="))&&(f="/ecl/home"),this.router.navigate([f]),this.store.dispatch((0,L.WM)()),this.store.dispatch((0,L.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,L.SN)()),this.store.dispatch((0,L.iL)()),this.store.dispatch((0,L.$W)())}handleErrorWithoutAlert(M,i,a,f){this.logger.error("ERROR IN: "+M+"\n"+JSON.stringify(f)),401===f.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:i})),this.store.dispatch((0,L.QZ)({payload:{action:M,status:d.Bn.ERROR,statusCode:f.status.toString(),message:this.commonService.extractErrorMessage(f,a)}})))}handleErrorWithAlert(M,i,a,f,l){if(this.logger.error(l),401===l.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:i}));const v=this.commonService.extractErrorMessage(l);this.store.dispatch((0,w.qR)({payload:{data:{type:"ERROR",alertTitle:a,message:{code:l.status,message:v,URL:f},component:P.H}}})),this.store.dispatch((0,L.QZ)({payload:{action:M,status:d.Bn.ERROR,statusCode:l.status.toString(),message:v,URL:f}}))}}ngOnDestroy(){this.unSubs.forEach(M=>{M.next(null),M.complete()})}}return(se=ce).\u0275fac=function(M){return new(M||se)(z.LFG(t.eX),z.LFG(V.eN),z.LFG(Y.yh),z.LFG(j.m),z.LFG(Q.v),z.LFG(J.mQ),z.LFG(ee.F0),z.LFG(me.d),z.LFG(re.Ye))},se.\u0275prov=z.Yz7({token:se,factory:se.\u0275fac}),ce})()},2501:(We,q,m)=>{"use strict";m.d(q,{Bo:()=>j,Ef:()=>Y,JG:()=>w,LR:()=>_,PP:()=>d,T$:()=>y,Xz:()=>z,dx:()=>V,kY:()=>Q,nF:()=>T,yA:()=>P,yD:()=>s});var t=m(9653);const e=(0,t.ZF)("ecl"),_=(0,t.P1)(e,J=>J.nodeSettings),T=(0,t.P1)(e,J=>({pageSettings:J.pageSettings,apiCallStatus:J.apisCallStatus.FetchPageSettings})),s=(0,t.P1)(e,J=>J.information),y=(0,t.P1)(e,J=>({information:J.information,apiCallStatus:J.apisCallStatus.FetchInfo})),P=((0,t.P1)(e,J=>J.apisCallStatus.FetchInfo),(0,t.P1)(e,J=>J.apisCallStatus)),d=(0,t.P1)(e,J=>({payments:J.payments,apiCallStatus:J.apisCallStatus.FetchPayments})),w=(0,t.P1)(e,J=>({fees:J.fees,apiCallStatus:J.apisCallStatus.FetchFees})),z=((0,t.P1)(e,J=>({activeChannels:J.activeChannels,apiCallStatus:J.apisCallStatus.FetchChannels})),(0,t.P1)(e,J=>({pendingChannels:J.pendingChannels,apiCallStatus:J.apisCallStatus.FetchChannels})),(0,t.P1)(e,J=>({inactiveChannels:J.inactiveChannels,apiCallStatus:J.apisCallStatus.FetchChannels})),(0,t.P1)(e,J=>({activeChannels:J.activeChannels,pendingChannels:J.pendingChannels,inactiveChannels:J.inactiveChannels,lightningBalance:J.lightningBalance,channelsStatus:J.channelsStatus,apiCallStatus:J.apisCallStatus.FetchChannels}))),V=(0,t.P1)(e,J=>({transactions:J.transactions,apiCallStatus:J.apisCallStatus.FetchTransactions})),Y=(0,t.P1)(e,J=>({invoices:J.invoices,apiCallStatus:J.apisCallStatus.FetchInvoices})),j=(0,t.P1)(e,J=>({peers:J.peers,apiCallStatus:J.apisCallStatus.FetchPeers})),Q=(0,t.P1)(e,J=>({onchainBalance:J.onchainBalance,apiCallStatus:J.apisCallStatus.FetchOnchainBalance}))},7766:(We,q,m)=>{"use strict";m.d(q,{R:()=>ye});var t=m(5412),e=m(2687),_=m(7579),T=m(2722),s=m(7731),y=m(2501),h=m(4650),P=m(5043),d=m(62),w=m(7009),C=m(9653),L=m(6895),D=m(2216),z=m(1576),V=m(5829),Y=m(4859),j=m(3546),Q=m(4850),J=m(1572),ee=m(658),me=m(5199),re=m(3390);function ie(xe,fe){if(1&xe&&h._UZ(0,"qr-code",29),2&xe){const Oe=h.oxw();h.Q6J("value",null==Oe.invoice?null:Oe.invoice.serialized)("size",Oe.qrWidth)("errorCorrectionLevel","L")}}function se(xe,fe){1&xe&&(h.TgZ(0,"span",30),h._uU(1,"N/A"),h.qZA())}function ce(xe,fe){if(1&xe&&h._UZ(0,"qr-code",29),2&xe){const Oe=h.oxw();h.Q6J("value",null==Oe.invoice?null:Oe.invoice.serialized)("size",Oe.qrWidth)("errorCorrectionLevel","L")}}function Ce(xe,fe){1&xe&&(h.TgZ(0,"span",31),h._uU(1,"QR Code Not Applicable"),h.qZA())}function M(xe,fe){1&xe&&h._UZ(0,"mat-divider",32),2&xe&&h.Q6J("inset",!0)}function i(xe,fe){1&xe&&(h.ynx(0),h._uU(1," (zero amount) "),h.BQk())}function a(xe,fe){1&xe&&h._UZ(0,"span",38)}const f=function(){return[]};function l(xe,fe){if(1&xe&&(h.TgZ(0,"div",34)(1,"div",35)(2,"span",36),h._uU(3),h.ALo(4,"number"),h.qZA(),h.YNc(5,a,1,0,"span",37),h.qZA()()),2&xe){const Oe=h.oxw(2);h.xp6(3),h.hij("",h.lcZ(4,2,null==Oe.invoice?null:Oe.invoice.amountSettled)," Sats"),h.xp6(2),h.Q6J("ngForOf",h.DdM(4,f).constructor(35))}}function v(xe,fe){if(1&xe&&(h.TgZ(0,"div"),h._uU(1),h.ALo(2,"number"),h.qZA()),2&xe){const Oe=h.oxw(2);h.xp6(1),h.hij("",h.lcZ(2,1,null==Oe.invoice?null:Oe.invoice.amountSettled)," Sats")}}function I(xe,fe){if(1&xe&&(h.ynx(0),h.YNc(1,l,6,5,"div",33),h.YNc(2,v,3,3,"div",19),h.BQk()),2&xe){const Oe=h.oxw();h.xp6(1),h.Q6J("ngIf",Oe.flgInvoicePaid),h.xp6(1),h.Q6J("ngIf",!Oe.flgInvoicePaid)}}function k(xe,fe){1&xe&&(h.TgZ(0,"span"),h._uU(1,"-"),h.qZA())}function x(xe,fe){1&xe&&h._UZ(0,"mat-spinner",40),2&xe&&h.Q6J("diameter",20)}function n(xe,fe){if(1&xe&&(h.ynx(0),h.YNc(1,k,2,0,"span",19),h.YNc(2,x,1,1,"mat-spinner",39),h.BQk()),2&xe){const Oe=h.oxw();h.xp6(1),h.Q6J("ngIf","unpaid"!==(null==Oe.invoice?null:Oe.invoice.status)||!Oe.flgVersionCompatible),h.xp6(1),h.Q6J("ngIf","unpaid"===(null==Oe.invoice?null:Oe.invoice.status)&&Oe.flgVersionCompatible)}}function g(xe,fe){if(1&xe&&(h.TgZ(0,"div"),h._UZ(1,"mat-divider",20),h.TgZ(2,"div",15)(3,"div",41)(4,"h4",17),h._uU(5,"Date Expiry"),h.qZA(),h.TgZ(6,"span",18),h._uU(7),h.ALo(8,"date"),h.qZA()(),h.TgZ(9,"div",42)(10,"h4",17),h._uU(11,"Date Settled"),h.qZA(),h.TgZ(12,"span",21),h._uU(13),h.ALo(14,"date"),h.qZA()()(),h._UZ(15,"mat-divider",20),h.TgZ(16,"div",15)(17,"div",22)(18,"h4",17),h._uU(19,"Payment Hash"),h.qZA(),h.TgZ(20,"span",21),h._uU(21),h.qZA()()(),h._UZ(22,"mat-divider",20),h.TgZ(23,"div",15)(24,"div",22)(25,"h4",17),h._uU(26,"Node ID"),h.qZA(),h.TgZ(27,"span",21),h._uU(28),h.qZA()()(),h._UZ(29,"mat-divider",20),h.qZA()),2&xe){const Oe=h.oxw();h.xp6(7),h.Oqu(h.xi3(8,4,1e3*(null==Oe.invoice?null:Oe.invoice.expiresAt),"dd/MMM/y HH:mm")),h.xp6(6),h.Oqu(h.xi3(14,7,1e3*(null==Oe.invoice?null:Oe.invoice.receivedAt),"dd/MMM/y HH:mm")),h.xp6(8),h.Oqu(null==Oe.invoice?null:Oe.invoice.paymentHash),h.xp6(7),h.Oqu(null==Oe.invoice?null:Oe.invoice.nodeId)}}function W(xe,fe){1&xe&&(h.TgZ(0,"p"),h._uU(1,"Show Advanced"),h.qZA())}function O(xe,fe){1&xe&&(h.TgZ(0,"p"),h._uU(1,"Hide Advanced"),h.qZA())}function U(xe,fe){if(1&xe){const Oe=h.EpF();h.TgZ(0,"button",43),h.NdJ("copied",function(Fe){h.CHM(Oe);const De=h.oxw();return h.KtG(De.onCopyPayment(Fe))}),h._uU(1,"Copy Invoice"),h.qZA()}if(2&xe){const Oe=h.oxw();h.Q6J("payload",null==Oe.invoice?null:Oe.invoice.serialized)}}function ge(xe,fe){if(1&xe){const Oe=h.EpF();h.TgZ(0,"button",44),h.NdJ("click",function(){h.CHM(Oe);const Fe=h.oxw();return h.KtG(Fe.onClose())}),h._uU(1,"OK"),h.qZA()}}const nt=function(xe){return{"display-none":xe}},Ue=function(xe){return{"xs-scroll-y":xe}},at=function(xe,fe){return{"mt-2":xe,"mt-1":fe}};let ye=(()=>{var xe;class fe{constructor(oe,Fe,De,he,Me,pe){this.dialogRef=oe,this.data=Fe,this.logger=De,this.commonService=he,this.snackBar=Me,this.store=pe,this.faReceipt=e.dLy,this.faExclamationTriangle=e.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.cu,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new _.x,new _.x,new _.x,new _.x,new _.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS&&(this.qrWidth=220),this.store.select(y.yD).pipe((0,T.R)(this.unSubs[0])).subscribe(oe=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(oe.version,"0.5.0")}),this.store.select(y.Ef).pipe((0,T.R)(this.unSubs[1])).subscribe(oe=>{const Fe=this.invoice.status,he=(oe.invoices&&oe.invoices.length>0?oe.invoices:[])?.find(Me=>Me.paymentHash===this.invoice.paymentHash)||null;he&&(this.invoice=he),Fe!==this.invoice.status&&"received"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(oe)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(oe){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+oe)}ngOnDestroy(){this.unSubs.forEach(oe=>{oe.next(null),oe.complete()})}}return(xe=fe).\u0275fac=function(oe){return new(oe||xe)(h.Y36(t.so),h.Y36(t.WI),h.Y36(P.mQ),h.Y36(d.v),h.Y36(w.ux),h.Y36(C.yh))},xe.\u0275cmp=h.Xpm({type:xe,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 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(oe,Fe){if(1&oe&&(h.TgZ(0,"div",0)(1,"div",1),h.YNc(2,ie,1,3,"qr-code",2),h.YNc(3,se,2,0,"span",3),h.qZA(),h.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),h._UZ(7,"fa-icon",7),h.TgZ(8,"span",8),h._uU(9),h.qZA()(),h.TgZ(10,"button",9),h.NdJ("click",function(){return Fe.onClose()}),h._uU(11,"X"),h.qZA()(),h.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),h.YNc(15,ce,1,3,"qr-code",2),h.YNc(16,Ce,2,0,"span",13),h.qZA(),h.YNc(17,M,1,1,"mat-divider",14),h.TgZ(18,"div",15)(19,"div",16)(20,"h4",17),h._uU(21,"Amount Requested"),h.qZA(),h.TgZ(22,"span",18),h._uU(23),h.ALo(24,"number"),h.YNc(25,i,2,0,"ng-container",19),h.qZA()(),h.TgZ(26,"div",16)(27,"h4",17),h._uU(28,"Amount Settled"),h.qZA(),h.TgZ(29,"span",18),h.YNc(30,I,3,2,"ng-container",19),h.YNc(31,n,3,2,"ng-container",19),h.qZA()()(),h._UZ(32,"mat-divider",20),h.TgZ(33,"div",15)(34,"div",16)(35,"h4",17),h._uU(36,"Date Created"),h.qZA(),h.TgZ(37,"span",21),h._uU(38),h.ALo(39,"date"),h.qZA()(),h.TgZ(40,"div",16)(41,"h4",17),h._uU(42,"Status"),h.qZA(),h.TgZ(43,"span",21),h._uU(44),h.ALo(45,"titlecase"),h.qZA()()(),h._UZ(46,"mat-divider",20),h.TgZ(47,"div",15)(48,"div",22)(49,"h4",17),h._uU(50,"Description"),h.qZA(),h.TgZ(51,"span",18),h._uU(52),h.qZA()()(),h._UZ(53,"mat-divider",20),h.TgZ(54,"div",15)(55,"div",22)(56,"h4",17),h._uU(57,"Invoice"),h.qZA(),h.TgZ(58,"span",21),h._uU(59),h.qZA()()(),h.YNc(60,g,30,10,"div",19),h.TgZ(61,"div",23)(62,"button",24),h.NdJ("click",function(){return Fe.onShowAdvanced()}),h.YNc(63,W,2,0,"p",25),h.YNc(64,O,2,0,"ng-template",null,26,h.W1O),h.qZA(),h.YNc(66,U,2,1,"button",27),h.YNc(67,ge,2,0,"button",28),h.qZA()()()()()),2&oe){const De=h.MAs(65);h.xp6(1),h.Q6J("fxLayoutAlign",null!=Fe.invoice&&Fe.invoice.serialized&&""!==(null==Fe.invoice?null:Fe.invoice.serialized)?"center start":"center center")("ngClass",h.VKq(33,nt,Fe.screenSize===Fe.screenSizeEnum.XS||Fe.screenSize===Fe.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==Fe.invoice?null:Fe.invoice.serialized)&&""!==(null==Fe.invoice?null:Fe.invoice.serialized)),h.xp6(1),h.Q6J("ngIf",!(null!=Fe.invoice&&Fe.invoice.serialized)||""===(null==Fe.invoice?null:Fe.invoice.serialized)),h.xp6(4),h.Q6J("icon",Fe.faReceipt),h.xp6(2),h.Oqu(Fe.screenSize===Fe.screenSizeEnum.XS?Fe.newlyAdded?"Created":"Invoice":Fe.newlyAdded?"Invoice Created":"Invoice Information"),h.xp6(3),h.Q6J("ngClass",h.VKq(35,Ue,Fe.screenSize===Fe.screenSizeEnum.XS)),h.xp6(2),h.Q6J("fxLayoutAlign",null!=Fe.invoice&&Fe.invoice.serialized&&""!==(null==Fe.invoice?null:Fe.invoice.serialized)?"center start":"center center")("ngClass",h.VKq(37,nt,Fe.screenSize!==Fe.screenSizeEnum.XS&&Fe.screenSize!==Fe.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==Fe.invoice?null:Fe.invoice.serialized)&&""!==(null==Fe.invoice?null:Fe.invoice.serialized)),h.xp6(1),h.Q6J("ngIf",!(null!=Fe.invoice&&Fe.invoice.serialized)||""===(null==Fe.invoice?null:Fe.invoice.serialized)),h.xp6(1),h.Q6J("ngIf",Fe.screenSize===Fe.screenSizeEnum.XS||Fe.screenSize===Fe.screenSizeEnum.SM),h.xp6(6),h.hij("",h.lcZ(24,26,(null==Fe.invoice?null:Fe.invoice.amount)||0)," Sats"),h.xp6(2),h.Q6J("ngIf",!(null!=Fe.invoice&&Fe.invoice.amount)||"0"===(null==Fe.invoice?null:Fe.invoice.amount)),h.xp6(5),h.Q6J("ngIf",null==Fe.invoice?null:Fe.invoice.amountSettled),h.xp6(1),h.Q6J("ngIf",!(null!=Fe.invoice&&Fe.invoice.amountSettled)),h.xp6(7),h.Oqu(h.xi3(39,28,1e3*(null==Fe.invoice?null:Fe.invoice.timestamp),"dd/MMM/y HH:mm")),h.xp6(6),h.Oqu(h.lcZ(45,31,null==Fe.invoice?null:Fe.invoice.status)),h.xp6(8),h.Oqu((null==Fe.invoice?null:Fe.invoice.description)||"-"),h.xp6(7),h.Oqu((null==Fe.invoice?null:Fe.invoice.serialized)||"N/A"),h.xp6(1),h.Q6J("ngIf",Fe.showAdvanced),h.xp6(1),h.Q6J("ngClass",h.WLB(39,at,!Fe.showAdvanced,Fe.showAdvanced)),h.xp6(2),h.Q6J("ngIf",!Fe.showAdvanced)("ngIfElse",De),h.xp6(3),h.Q6J("ngIf",(null==Fe.invoice?null:Fe.invoice.serialized)&&""!==(null==Fe.invoice?null:Fe.invoice.serialized)),h.xp6(1),h.Q6J("ngIf",!(null!=Fe.invoice&&Fe.invoice.serialized)||""===(null==Fe.invoice?null:Fe.invoice.serialized))}},dependencies:[L.mk,L.sg,L.O5,D.BN,z.xw,z.Wh,z.yH,V.oO,Y.lW,j.dn,j.dk,Q.d,J.Ou,ee.uU,me.y,re.h,L.JJ,L.rS,L.uU]}),fe})()},6523:(We,q,m)=>{"use strict";m.d(q,{$A:()=>Ie,$W:()=>C,BL:()=>k,B_:()=>ge,Bl:()=>re,CX:()=>w,Cp:()=>g,EK:()=>Y,El:()=>D,Fr:()=>Gt,HI:()=>Me,JT:()=>s,Jl:()=>ie,Jo:()=>Nt,Lf:()=>oe,Ll:()=>T,Ly:()=>Fe,Nr:()=>ye,OG:()=>x,PC:()=>_,QJ:()=>je,RX:()=>me,Rd:()=>j,Rv:()=>se,SN:()=>ee,Sf:()=>qe,TW:()=>a,UH:()=>De,UR:()=>Ce,Vv:()=>n,WM:()=>at,WO:()=>zt,Wi:()=>Ke,YP:()=>J,YX:()=>I,Z7:()=>i,Z8:()=>L,Zh:()=>f,_E:()=>de,_L:()=>l,aL:()=>xe,as:()=>M,cQ:()=>he,dV:()=>Qe,eF:()=>P,fu:()=>Ut,kL:()=>xt,ks:()=>ce,mC:()=>Oe,n7:()=>X,oV:()=>pe,pW:()=>v,pd:()=>h,qY:()=>fe,sQ:()=>d,tb:()=>U,u0:()=>it,vV:()=>nt,wD:()=>y,xG:()=>be,y2:()=>Ge,yZ:()=>mt,z:()=>V});var t=m(9653),e=m(7731);const _=(0,t.PH)(e.uR.UPDATE_API_CALL_STATUS_LND,(0,t.Ky)()),T=(0,t.PH)(e.uR.RESET_LND_STORE,(0,t.Ky)()),s=(0,t.PH)(e.uR.SET_CHILD_NODE_SETTINGS_LND,(0,t.Ky)()),y=(0,t.PH)(e.uR.FETCH_PAGE_SETTINGS_LND),h=(0,t.PH)(e.uR.SET_PAGE_SETTINGS_LND,(0,t.Ky)()),P=(0,t.PH)(e.uR.SAVE_PAGE_SETTINGS_LND,(0,t.Ky)()),d=(0,t.PH)(e.uR.FETCH_INFO_LND,(0,t.Ky)()),w=(0,t.PH)(e.uR.SET_INFO_LND,(0,t.Ky)()),C=(0,t.PH)(e.uR.FETCH_PEERS_LND),L=(0,t.PH)(e.uR.SET_PEERS_LND,(0,t.Ky)()),D=(0,t.PH)(e.uR.SAVE_NEW_PEER_LND,(0,t.Ky)()),V=((0,t.PH)(e.uR.NEWLY_ADDED_PEER_LND,(0,t.Ky)()),(0,t.PH)(e.uR.DETACH_PEER_LND,(0,t.Ky)())),Y=(0,t.PH)(e.uR.REMOVE_PEER_LND,(0,t.Ky)()),j=(0,t.PH)(e.uR.SAVE_NEW_INVOICE_LND,(0,t.Ky)()),J=((0,t.PH)(e.uR.NEWLY_SAVED_INVOICE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.ADD_INVOICE_LND,(0,t.Ky)())),ee=(0,t.PH)(e.uR.FETCH_FEES_LND),me=(0,t.PH)(e.uR.SET_FEES_LND,(0,t.Ky)()),re=(0,t.PH)(e.uR.FETCH_BLOCKCHAIN_BALANCE_LND),ie=(0,t.PH)(e.uR.SET_BLOCKCHAIN_BALANCE_LND,(0,t.Ky)()),se=(0,t.PH)(e.uR.FETCH_NETWORK_LND),ce=(0,t.PH)(e.uR.SET_NETWORK_LND,(0,t.Ky)()),Ce=(0,t.PH)(e.uR.FETCH_CHANNELS_LND),M=(0,t.PH)(e.uR.SET_CHANNELS_LND,(0,t.Ky)()),i=(0,t.PH)(e.uR.FETCH_PENDING_CHANNELS_LND),a=(0,t.PH)(e.uR.SET_PENDING_CHANNELS_LND,(0,t.Ky)()),f=(0,t.PH)(e.uR.FETCH_CLOSED_CHANNELS_LND),l=(0,t.PH)(e.uR.SET_CLOSED_CHANNELS_LND,(0,t.Ky)()),v=(0,t.PH)(e.uR.UPDATE_CHANNEL_LND,(0,t.Ky)()),I=(0,t.PH)(e.uR.SAVE_NEW_CHANNEL_LND,(0,t.Ky)()),k=(0,t.PH)(e.uR.CLOSE_CHANNEL_LND,(0,t.Ky)()),x=(0,t.PH)(e.uR.REMOVE_CHANNEL_LND,(0,t.Ky)()),n=(0,t.PH)(e.uR.BACKUP_CHANNELS_LND,(0,t.Ky)()),g=(0,t.PH)(e.uR.VERIFY_CHANNEL_LND,(0,t.Ky)()),U=((0,t.PH)(e.uR.BACKUP_CHANNELS_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.VERIFY_CHANNEL_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.RESTORE_CHANNELS_LIST_LND)),ge=(0,t.PH)(e.uR.SET_RESTORE_CHANNELS_LIST_LND,(0,t.Ky)()),nt=(0,t.PH)(e.uR.RESTORE_CHANNELS_LND,(0,t.Ky)()),at=((0,t.PH)(e.uR.RESTORE_CHANNELS_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.FETCH_INVOICES_LND,(0,t.Ky)())),ye=(0,t.PH)(e.uR.SET_INVOICES_LND,(0,t.Ky)()),xe=(0,t.PH)(e.uR.UPDATE_INVOICE_LND,(0,t.Ky)()),fe=(0,t.PH)(e.uR.UPDATE_PAYMENT_LND,(0,t.Ky)()),Oe=(0,t.PH)(e.uR.FETCH_TRANSACTIONS_LND),oe=(0,t.PH)(e.uR.SET_TRANSACTIONS_LND,(0,t.Ky)()),Fe=(0,t.PH)(e.uR.FETCH_UTXOS_LND),De=(0,t.PH)(e.uR.SET_UTXOS_LND,(0,t.Ky)()),he=(0,t.PH)(e.uR.FETCH_PAYMENTS_LND,(0,t.Ky)()),Me=(0,t.PH)(e.uR.SET_PAYMENTS_LND,(0,t.Ky)()),pe=(0,t.PH)(e.uR.SEND_PAYMENT_LND,(0,t.Ky)()),Qe=((0,t.PH)(e.uR.SEND_PAYMENT_STATUS_LND,(0,t.Ky)()),(0,t.PH)(e.uR.FETCH_GRAPH_NODE_LND,(0,t.Ky)())),de=((0,t.PH)(e.uR.SET_GRAPH_NODE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.GET_NEW_ADDRESS_LND,(0,t.Ky)())),Ke=((0,t.PH)(e.uR.SET_NEW_ADDRESS_LND,(0,t.Ky)()),(0,t.PH)(e.uR.SET_CHANNEL_TRANSACTION_LND,(0,t.Ky)())),Ut=((0,t.PH)(e.uR.SET_CHANNEL_TRANSACTION_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.GEN_SEED_LND,(0,t.Ky)())),Ge=((0,t.PH)(e.uR.GEN_SEED_RESPONSE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.INIT_WALLET_LND,(0,t.Ky)())),be=((0,t.PH)(e.uR.INIT_WALLET_RESPONSE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.UNLOCK_WALLET_LND,(0,t.Ky)())),qe=(0,t.PH)(e.uR.PEER_LOOKUP_LND,(0,t.Ky)()),Ie=(0,t.PH)(e.uR.CHANNEL_LOOKUP_LND,(0,t.Ky)()),X=(0,t.PH)(e.uR.INVOICE_LOOKUP_LND,(0,t.Ky)()),mt=(0,t.PH)(e.uR.PAYMENT_LOOKUP_LND,(0,t.Ky)()),it=((0,t.PH)(e.uR.SET_LOOKUP_LND,(0,t.Ky)()),(0,t.PH)(e.uR.GET_FORWARDING_HISTORY_LND,(0,t.Ky)())),je=(0,t.PH)(e.uR.SET_FORWARDING_HISTORY_LND,(0,t.Ky)()),zt=(0,t.PH)(e.uR.GET_QUERY_ROUTES_LND,(0,t.Ky)()),xt=(0,t.PH)(e.uR.SET_QUERY_ROUTES_LND,(0,t.Ky)()),Nt=(0,t.PH)(e.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),Gt=(0,t.PH)(e.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,(0,t.Ky)())},711:(We,q,m)=>{"use strict";m.d(q,{l:()=>ce});var t=m(493),e=m(7579),_=m(9646),T=m(5577),s=m(2722),y=m(4004),h=m(262),P=m(1365),d=m(8627),w=m(1786),C=m(7731),L=m(7861),D=m(6523),z=m(6529),V=m(4650),Y=m(529),j=m(9653),Q=m(5043),J=m(62),ee=m(5986),me=m(5412),re=m(9116),ie=m(7998),se=m(6895);let ce=(()=>{var Ce;class M{constructor(a,f,l,v,I,k,x,n,g,W){this.actions=a,this.httpClient=f,this.store=l,this.logger=v,this.commonService=I,this.sessionService=k,this.dialog=x,this.router=n,this.wsService=g,this.location=W,this.CHILD_API_URL=C.T5+"/lnd",this.invoicesPageSettings=C.gK.find(O=>"transactions"===O.pageId)?.tables.find(O=>"invoices"===O.tableId),this.paymentsPageSettings=C.gK.find(O=>"transactions"===O.pageId)?.tables.find(O=>"payments"===O.tableId),this.flgInitialized=!1,this.unSubs=[new e.x,new e.x],this.infoFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.FETCH_INFO_LND),(0,T.z)(O=>(this.flgInitialized=!1,this.store.dispatch((0,L.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,L.ts)()),this.store.dispatch((0,L.ac)({payload:C.m6.GET_NODE_INFO})),this.store.dispatch((0,D.PC)({payload:{action:"FetchInfo",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.GETINFO_API).pipe((0,s.R)(this.actions.pipe((0,t.l4)(C.pg.SET_SELECTED_NODE))),(0,y.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&&U.chains[0].chain.toLowerCase().indexOf("bitcoin")<0)?(this.store.dispatch((0,D.PC)({payload:{action:"FetchInfo",status:C.Bn.COMPLETED}})),this.store.dispatch((0,L.ts)()),this.store.dispatch((0,L.qR)({payload:{data:{type:C.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}})),{type:C.pg.LOGOUT}):U.identity_pubkey?(U.lnImplementation="LND",this.initializeRemainingData(U,O.payload.loadPage),this.store.dispatch((0,D.PC)({payload:{action:"FetchInfo",status:C.Bn.COMPLETED}})),this.store.dispatch((0,L.ts)()),{type:C.uR.SET_INFO_LND,payload:U||{}}):(this.store.dispatch((0,D.PC)({payload:{action:"FetchInfo",status:C.Bn.COMPLETED}})),this.store.dispatch((0,L.ts)()),this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),{type:C.uR.SET_INFO_LND,payload:{}}))),(0,h.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",C.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,D.sQ)({payload:{loadPage:"HOME"}}))},2e3);else{const ge=this.commonService.extractErrorCode(U),nt=503===ge?"Unable to Connect to LND Server.":this.commonService.extractErrorMessage(U);this.router.navigate(["/error"],{state:{errorCode:ge,errorMessage:nt}}),this.handleErrorWithoutAlert("FetchInfo",C.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:ge,error:nt})}return(0,_.of)({type:C.pg.VOID})})))))),this.peersFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.FETCH_PEERS_LND),(0,T.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchPeers",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.PEERS_API).pipe((0,y.U)(O=>(this.logger.info(O),this.store.dispatch((0,D.PC)({payload:{action:"FetchPeers",status:C.Bn.COMPLETED}})),{type:C.uR.SET_PEERS_LND,payload:O||[]})),(0,h.K)(O=>(this.handleErrorWithoutAlert("FetchPeers",C.m6.NO_SPINNER,"Fetching Peers Failed.",O),(0,_.of)({type:C.pg.VOID})))))))),this.saveNewPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.SAVE_NEW_PEER_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:C.m6.CONNECT_PEER})),this.store.dispatch((0,D.PC)({payload:{action:"SaveNewPeer",status:C.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+C.vv.PEERS_API,{pubkey:O.payload.pubkey,host:O.payload.host,perm:O.payload.perm}).pipe((0,y.U)(U=>(this.logger.info(U),this.store.dispatch((0,D.PC)({payload:{action:"SaveNewPeer",status:C.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:C.m6.CONNECT_PEER})),this.store.dispatch((0,D.Z8)({payload:U||[]})),{type:C.uR.NEWLY_ADDED_PEER_LND,payload:{peer:U[0]}})),(0,h.K)(U=>(this.handleErrorWithoutAlert("SaveNewPeer",C.m6.CONNECT_PEER,"Peer Connection Failed.",U),(0,_.of)({type:C.pg.VOID})))))))),this.detachPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.DETACH_PEER_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:C.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+C.vv.PEERS_API+"/"+O.payload.pubkey).pipe((0,y.U)(U=>(this.logger.info(U),this.store.dispatch((0,L.uO)({payload:C.m6.DISCONNECT_PEER})),this.store.dispatch((0,L.jW)({payload:"Peer Disconnected Successfully."})),{type:C.uR.REMOVE_PEER_LND,payload:{pubkey:O.payload.pubkey}})),(0,h.K)(U=>(this.handleErrorWithAlert("DetachPeer",C.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+C.vv.PEERS_API+"/"+O.payload.pubkey,U),(0,_.of)({type:C.pg.VOID})))))))),this.saveNewInvoice=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.SAVE_NEW_INVOICE_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:O.payload.uiMessage})),this.store.dispatch((0,D.PC)({payload:{action:"SaveNewInvoice",status:C.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+C.vv.INVOICES_API,{memo:O.payload.memo,value:O.payload.value,private:O.payload.private,expiry:O.payload.expiry,is_amp:O.payload.is_amp}).pipe((0,y.U)(U=>(this.logger.info(U),this.store.dispatch((0,D.PC)({payload:{action:"SaveNewInvoice",status:C.Bn.COMPLETED}})),this.store.dispatch((0,D.WM)({payload:{num_max_invoices:O.payload.pageSize,reversed:!0}})),O.payload.openModal?(U.memo=O.payload.memo,U.value=O.payload.value,U.expiry=O.payload.expiry,U.private=O.payload.private,U.is_amp=O.payload.is_amp,U.cltv_expiry="144",U.creation_date=Math.round((new Date).getTime()/1e3).toString(),setTimeout(()=>{this.store.dispatch((0,L.qR)({payload:{data:{invoice:U,newlyAdded:!0,component:d.v}}}))},200),{type:C.pg.CLOSE_SPINNER,payload:O.payload.uiMessage}):{type:C.uR.NEWLY_SAVED_INVOICE_LND,payload:{paymentRequest:U.payment_request}})),(0,h.K)(U=>(this.handleErrorWithoutAlert("SaveNewInvoice",O.payload.uiMessage,"Add Invoice Failed.",U),(0,_.of)({type:C.pg.VOID})))))))),this.openNewChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.SAVE_NEW_CHANNEL_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:C.m6.OPEN_CHANNEL})),this.store.dispatch((0,D.PC)({payload:{action:"SaveNewChannel",status:C.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+C.vv.CHANNELS_API,{node_pubkey:O.payload.selectedPeerPubkey,local_funding_amount:O.payload.fundingAmount,private:O.payload.private,trans_type:O.payload.transType,trans_type_value:O.payload.transTypeValue,spend_unconfirmed:O.payload.spendUnconfirmed}).pipe((0,y.U)(U=>(this.logger.info(U),this.store.dispatch((0,D.PC)({payload:{action:"SaveNewChannel",status:C.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:C.m6.OPEN_CHANNEL})),this.store.dispatch((0,D.Bl)()),this.store.dispatch((0,D.UR)()),this.store.dispatch((0,D.Vv)({payload:{uiMessage:C.m6.NO_SPINNER,channelPoint:"ALL",showMessage:"Channel Added Successfully!"}})),{type:C.uR.FETCH_PENDING_CHANNELS_LND})),(0,h.K)(U=>(this.handleErrorWithoutAlert("SaveNewChannel",C.m6.OPEN_CHANNEL,"Opening Channel Failed.",U),(0,_.of)({type:C.pg.VOID})))))))),this.updateChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.UPDATE_CHANNEL_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:C.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+C.vv.CHANNELS_API+"/chanPolicy",{baseFeeMsat:O.payload.baseFeeMsat,feeRate:O.payload.feeRate,timeLockDelta:O.payload.timeLockDelta,max_htlc_msat:O.payload.maxHtlcMsat,min_htlc_msat:O.payload.minHtlcMsat,chanPoint:O.payload.chanPoint}).pipe((0,y.U)(U=>(this.logger.info(U),this.store.dispatch((0,L.uO)({payload:C.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,L.jW)("all"===O.payload.chanPoint?{payload:"All Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:C.uR.FETCH_CHANNELS_LND})),(0,h.K)(U=>(this.handleErrorWithAlert("UpdateChannels",C.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+C.vv.CHANNELS_API+"/chanPolicy",U),(0,_.of)({type:C.pg.VOID})))))))),this.closeChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.CLOSE_CHANNEL_LND),(0,T.z)(O=>{this.store.dispatch((0,L.ac)({payload:O.payload.forcibly?C.m6.FORCE_CLOSE_CHANNEL:C.m6.CLOSE_CHANNEL}));let U=this.CHILD_API_URL+C.vv.CHANNELS_API+"/"+O.payload.channelPoint+"?force="+O.payload.forcibly;return O.payload.targetConf&&(U=U+"&target_conf="+O.payload.targetConf),O.payload.satPerByte&&(U=U+"&sat_per_byte="+O.payload.satPerByte),this.httpClient.delete(U).pipe((0,y.U)(ge=>(this.logger.info(ge),this.store.dispatch((0,L.uO)({payload:O.payload.forcibly?C.m6.FORCE_CLOSE_CHANNEL:C.m6.CLOSE_CHANNEL})),this.store.dispatch((0,D.UR)()),this.store.dispatch((0,D.Z7)()),this.store.dispatch((0,D.Vv)({payload:{uiMessage:C.m6.NO_SPINNER,channelPoint:"ALL",showMessage:ge.message}})),{type:C.pg.VOID})),(0,h.K)(ge=>(this.handleErrorWithAlert("CloseChannel",O.payload.forcibly?C.m6.FORCE_CLOSE_CHANNEL:C.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+C.vv.CHANNELS_API+"/"+O.payload.channelPoint+"?force="+O.payload.forcibly,ge),(0,_.of)({type:C.pg.VOID}))))}))),this.backupChannels=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.BACKUP_CHANNELS_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:O.payload.uiMessage})),this.store.dispatch((0,D.PC)({payload:{action:"BackupChannels",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.CHANNELS_BACKUP_API+"/"+O.payload.channelPoint).pipe((0,y.U)(U=>(this.logger.info(U),this.store.dispatch((0,D.PC)({payload:{action:"BackupChannels",status:C.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:O.payload.uiMessage})),this.store.dispatch((0,L.jW)({payload:O.payload.showMessage+" "+U.message})),{type:C.uR.BACKUP_CHANNELS_RES_LND,payload:U.message})),(0,h.K)(U=>(this.handleErrorWithAlert("BackupChannels",O.payload.uiMessage,O.payload.showMessage+" Unable to Backup Channel. Try again later.",this.CHILD_API_URL+C.vv.CHANNELS_BACKUP_API+"/"+O.payload.channelPoint,U),(0,_.of)({type:C.pg.VOID})))))))),this.verifyChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.VERIFY_CHANNEL_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:C.m6.VERIFY_CHANNEL})),this.store.dispatch((0,D.PC)({payload:{action:"VerifyChannel",status:C.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+C.vv.CHANNELS_BACKUP_API+"/verify/"+O.payload.channelPoint,{}).pipe((0,y.U)(U=>(this.logger.info(U),this.store.dispatch((0,D.PC)({payload:{action:"VerifyChannel",status:C.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:C.m6.VERIFY_CHANNEL})),this.store.dispatch((0,L.jW)({payload:U.message})),{type:C.uR.VERIFY_CHANNEL_RES_LND,payload:U.message})),(0,h.K)(U=>(this.handleErrorWithAlert("VerifyChannel",C.m6.VERIFY_CHANNEL,"Unable to Verify Channel. Try again later.",this.CHILD_API_URL+C.vv.CHANNELS_BACKUP_API+"/verify/"+O.payload.channelPoint,U),(0,_.of)({type:C.pg.VOID})))))))),this.restoreChannels=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.RESTORE_CHANNELS_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:C.m6.RESTORE_CHANNEL})),this.store.dispatch((0,D.PC)({payload:{action:"RestoreChannels",status:C.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+C.vv.CHANNELS_BACKUP_API+"/restore/"+O.payload.channelPoint,{}).pipe((0,y.U)(U=>(this.logger.info(U),this.store.dispatch((0,D.PC)({payload:{action:"RestoreChannels",status:C.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:C.m6.RESTORE_CHANNEL})),this.store.dispatch((0,L.jW)({payload:U.message})),this.store.dispatch((0,D.B_)({payload:U.list})),{type:C.uR.RESTORE_CHANNELS_RES_LND,payload:U.message})),(0,h.K)(U=>(this.handleErrorWithAlert("RestoreChannels",C.m6.RESTORE_CHANNEL,"Unable to Restore Channel. Try again later.",this.CHILD_API_URL+C.vv.CHANNELS_BACKUP_API+"/restore/"+O.payload.channelPoint,U),(0,_.of)({type:C.pg.VOID})))))))),this.fetchFees=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.FETCH_FEES_LND),(0,T.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchFees",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.FEES_API))),(0,y.U)(O=>(this.logger.info(O),this.store.dispatch((0,D.PC)({payload:{action:"FetchFees",status:C.Bn.COMPLETED}})),O.forwarding_events_history&&(this.store.dispatch((0,D.QJ)({payload:O.forwarding_events_history})),delete O.forwarding_events_history),{type:C.uR.SET_FEES_LND,payload:O||{}})),(0,h.K)(O=>(this.handleErrorWithoutAlert("FetchFees",C.m6.NO_SPINNER,"Fetching Fees Failed.",O),(0,_.of)({type:C.pg.VOID}))))),this.balanceBlockchainFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.FETCH_BLOCKCHAIN_BALANCE_LND),(0,T.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchBalance",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.BALANCE_API))),(0,y.U)(O=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchBalance",status:C.Bn.COMPLETED}})),this.logger.info(O),{type:C.uR.SET_BLOCKCHAIN_BALANCE_LND,payload:O||{total_balance:""}})),(0,h.K)(O=>(this.handleErrorWithoutAlert("FetchBalance",C.m6.NO_SPINNER,"Fetching Blockchain Balance Failed.",O),(0,_.of)({type:C.pg.VOID}))))),this.networkInfoFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.FETCH_NETWORK_LND),(0,T.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchNetwork",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.NETWORK_API+"/info"))),(0,y.U)(O=>(this.logger.info(O),this.store.dispatch((0,D.PC)({payload:{action:"FetchNetwork",status:C.Bn.COMPLETED}})),{type:C.uR.SET_NETWORK_LND,payload:O||{}})),(0,h.K)(O=>(this.handleErrorWithoutAlert("FetchNetwork",C.m6.NO_SPINNER,"Fetching Network Failed.",O),(0,_.of)({type:C.pg.VOID}))))),this.channelsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.FETCH_CHANNELS_LND),(0,T.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchChannels",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.CHANNELS_API).pipe((0,y.U)(O=>(this.logger.info(O),this.store.dispatch((0,D.PC)({payload:{action:"FetchChannels",status:C.Bn.COMPLETED}})),{type:C.uR.SET_CHANNELS_LND,payload:O.channels||[]})),(0,h.K)(O=>(this.handleErrorWithoutAlert("FetchChannels",C.m6.NO_SPINNER,"Fetching Channels Failed.",O),(0,_.of)({type:C.pg.VOID})))))))),this.channelsPendingFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.FETCH_PENDING_CHANNELS_LND),(0,T.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchPendingChannels",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.CHANNELS_API+"/pending").pipe((0,y.U)(O=>{this.logger.info(O),this.store.dispatch((0,D.PC)({payload:{action:"FetchPendingChannels",status:C.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 O&&(U.total_limbo_balance=O.total_limbo_balance,O.pending_closing_channels&&(U.closing.num_channels=O.pending_closing_channels.length,U.total_channels=U.total_channels+O.pending_closing_channels.length,O.pending_closing_channels.forEach(ge=>{U.closing.limbo_balance=+U.closing.limbo_balance+(ge.channel.local_balance?+ge.channel.local_balance:0)})),O.pending_force_closing_channels&&(U.force_closing.num_channels=O.pending_force_closing_channels.length,U.total_channels=U.total_channels+O.pending_force_closing_channels.length,O.pending_force_closing_channels.forEach(ge=>{U.force_closing.limbo_balance=+U.force_closing.limbo_balance+(ge.channel.local_balance?+ge.channel.local_balance:0)})),O.pending_open_channels&&(U.open.num_channels=O.pending_open_channels.length,U.total_channels=U.total_channels+O.pending_open_channels.length,O.pending_open_channels.forEach(ge=>{U.open.limbo_balance=+U.open.limbo_balance+(ge.channel.local_balance?+ge.channel.local_balance:0)})),O.waiting_close_channels&&(U.waiting_close.num_channels=O.waiting_close_channels.length,U.total_channels=U.total_channels+O.waiting_close_channels.length,O.waiting_close_channels.forEach(ge=>{U.waiting_close.limbo_balance=+U.waiting_close.limbo_balance+(ge.channel.local_balance?+ge.channel.local_balance:0)}))),{type:C.uR.SET_PENDING_CHANNELS_LND,payload:O?{pendingChannels:O,pendingChannelsSummary:U}:{pendingChannels:{},pendingChannelsSummary:U}}}),(0,h.K)(O=>(this.handleErrorWithoutAlert("FetchPendingChannels",C.m6.NO_SPINNER,"Fetching Pending Channels Failed.",O),(0,_.of)({type:C.pg.VOID})))))))),this.channelsClosedFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.FETCH_CLOSED_CHANNELS_LND),(0,T.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchClosedChannels",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.CHANNELS_API+"/closed").pipe((0,y.U)(O=>(this.logger.info(O),this.store.dispatch((0,D.PC)({payload:{action:"FetchClosedChannels",status:C.Bn.COMPLETED}})),{type:C.uR.SET_CLOSED_CHANNELS_LND,payload:O.channels||[]})),(0,h.K)(O=>(this.handleErrorWithoutAlert("FetchClosedChannels",C.m6.NO_SPINNER,"Fetching Closed Channels Failed.",O),(0,_.of)({type:C.pg.VOID})))))))),this.invoicesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.FETCH_INVOICES_LND),(0,T.z)(O=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchInvoices",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.INVOICES_API+"?num_max_invoices="+(O.payload.num_max_invoices?O.payload.num_max_invoices:100)+"&index_offset="+(O.payload.index_offset?O.payload.index_offset:0)+"&reversed="+(!!O.payload.reversed&&O.payload.reversed)).pipe((0,y.U)(Ue=>(this.logger.info(Ue),this.store.dispatch((0,D.PC)({payload:{action:"FetchInvoices",status:C.Bn.COMPLETED}})),O.payload.reversed&&!O.payload.index_offset&&(Ue.total_invoices=+(Ue.last_index_offset||0)),{type:C.uR.SET_INVOICES_LND,payload:Ue})),(0,h.K)(Ue=>(this.handleErrorWithoutAlert("FetchInvoices",C.m6.NO_SPINNER,"Fetching Invoices Failed.",Ue),(0,_.of)({type:C.pg.VOID})))))))),this.transactionsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.FETCH_TRANSACTIONS_LND),(0,T.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchTransactions",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.TRANSACTIONS_API))),(0,y.U)(O=>(this.logger.info(O),this.store.dispatch((0,D.PC)({payload:{action:"FetchTransactions",status:C.Bn.COMPLETED}})),{type:C.uR.SET_TRANSACTIONS_LND,payload:O||[]})),(0,h.K)(O=>(this.handleErrorWithoutAlert("FetchTransactions",C.m6.NO_SPINNER,"Fetching Transactions Failed.",O),(0,_.of)({type:C.pg.VOID}))))),this.utxosFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.FETCH_UTXOS_LND),(0,P.M)(this.store.select(z.Q5)),(0,T.z)(([O,U])=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchUTXOs",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.WALLET_API+"/getUTXOs?max_confs="+(U&&U.block_height?U.block_height:1e9)))),(0,y.U)(O=>(this.logger.info(O),this.store.dispatch((0,D.PC)({payload:{action:"FetchUTXOs",status:C.Bn.COMPLETED}})),{type:C.uR.SET_UTXOS_LND,payload:O||[]})),(0,h.K)(O=>(this.handleErrorWithoutAlert("FetchUTXOs",C.m6.NO_SPINNER,"Fetching UTXOs Failed.",O),(0,_.of)({type:C.pg.VOID}))))),this.paymentsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.FETCH_PAYMENTS_LND),(0,T.z)(O=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchPayments",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.PAYMENTS_API+"?max_payments="+(O.payload.max_payments?O.payload.max_payments:100)+"&index_offset="+(O.payload.index_offset?O.payload.index_offset:0)+"&reversed="+(!!O.payload.reversed&&O.payload.reversed)).pipe((0,y.U)(Ue=>(this.logger.info(Ue),this.store.dispatch((0,D.PC)({payload:{action:"FetchPayments",status:C.Bn.COMPLETED}})),this.commonService.sortByKey(Ue.payments||[],this.paymentsPageSettings?.sortBy||"creation_date","number",this.paymentsPageSettings?.sortOrder),{type:C.uR.SET_PAYMENTS_LND,payload:Ue})),(0,h.K)(Ue=>(this.handleErrorWithoutAlert("FetchPayments",C.m6.NO_SPINNER,"Fetching Payments Failed.",Ue),(0,_.of)({type:C.uR.SET_PAYMENTS_LND,payload:{payments:[]}})))))))),this.sendPayment=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.SEND_PAYMENT_LND),(0,T.z)(O=>{this.store.dispatch((0,L.ac)({payload:O.payload.uiMessage})),this.store.dispatch((0,D.PC)({payload:{action:"SendPayment",status:C.Bn.INITIATED}}));const U={};return U.paymentReq=O.payload.paymentReq,O.payload.paymentAmount&&(U.paymentAmount=O.payload.paymentAmount),O.payload.outgoingChannel&&(U.outgoingChannel=O.payload.outgoingChannel.chan_id),O.payload.allowSelfPayment&&(U.allowSelfPayment=O.payload.allowSelfPayment),O.payload.lastHopPubkey&&(U.lastHopPubkey=O.payload.lastHopPubkey),O.payload.feeLimitType&&O.payload.feeLimitType!==C.Vc[0].id&&(U.feeLimit={},U.feeLimit[O.payload.feeLimitType]=O.payload.feeLimit),this.httpClient.post(this.CHILD_API_URL+C.vv.CHANNELS_API+"/transactions",U).pipe((0,y.U)(ge=>{if(this.logger.info(ge),this.store.dispatch((0,L.uO)({payload:O.payload.uiMessage})),this.store.dispatch((0,D.PC)({payload:{action:"SendPayment",status:C.Bn.COMPLETED}})),ge.payment_error)return O.payload.allowSelfPayment?(this.store.dispatch((0,D.WM)({payload:{num_max_invoices:this.invoicesPageSettings?.recordsPerPage,reversed:!0}})),{type:C.uR.SEND_PAYMENT_STATUS_LND,payload:ge}):(O.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",O.payload.uiMessage,"Send Payment Failed.",ge.payment_error):this.handleErrorWithAlert("SendPayment",O.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+C.vv.CHANNELS_API+"/transactions",ge.payment_error),{type:C.pg.VOID});if(this.store.dispatch((0,L.uO)({payload:O.payload.uiMessage})),this.store.dispatch((0,D.PC)({payload:{action:"SendPayment",status:C.Bn.COMPLETED}})),this.store.dispatch((0,D.UR)()),this.store.dispatch((0,D.cQ)({payload:{max_payments:this.paymentsPageSettings?.recordsPerPage,reversed:!0}})),O.payload.allowSelfPayment)this.store.dispatch((0,D.WM)({payload:{num_max_invoices:this.invoicesPageSettings?.recordsPerPage,reversed:!0}}));else{let nt="Payment Sent Successfully.";ge.payment_route&&ge.payment_route.total_fees_msat&&(nt="Payment sent successfully with the total fee "+ge.payment_route.total_fees_msat+" (mSats)."),this.store.dispatch((0,L.jW)({payload:nt}))}return{type:C.uR.SEND_PAYMENT_STATUS_LND,payload:ge}}),(0,h.K)(ge=>(this.logger.error("Error: "+JSON.stringify(ge)),O.payload.allowSelfPayment?(this.handleErrorWithoutAlert("SendPayment",O.payload.uiMessage,"Send Payment Failed.",ge),this.store.dispatch((0,D.WM)({payload:{num_max_invoices:this.invoicesPageSettings?.recordsPerPage,reversed:!0}})),(0,_.of)({type:C.uR.SEND_PAYMENT_STATUS_LND,payload:{error:this.commonService.extractErrorMessage(ge)}})):(O.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",O.payload.uiMessage,"Send Payment Failed.",ge):this.handleErrorWithAlert("SendPayment",O.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+C.vv.CHANNELS_API+"/transactions",ge),(0,_.of)({type:C.pg.VOID})))))}))),this.graphNodeFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.FETCH_GRAPH_NODE_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:C.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,D.PC)({payload:{action:"FetchGraphNode",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.NETWORK_API+"/node/"+O.payload.pubkey).pipe((0,y.U)(U=>(this.logger.info(U),this.store.dispatch((0,L.uO)({payload:C.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,D.PC)({payload:{action:"FetchGraphNode",status:C.Bn.COMPLETED}})),{type:C.uR.SET_GRAPH_NODE_LND,payload:U&&U.node?{node:U.node}:{node:null}})),(0,h.K)(U=>(this.handleErrorWithoutAlert("FetchGraphNode",C.m6.GET_NODE_ADDRESS,"Fetching Graph Node Failed.",U),(0,_.of)({type:C.pg.VOID})))))))),this.setGraphNode=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.SET_GRAPH_NODE_LND),(0,y.U)(O=>(this.logger.info(O.payload),O.payload))),{dispatch:!1}),this.getNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.GET_NEW_ADDRESS_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:C.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+C.vv.NEW_ADDRESS_API+"?type="+O.payload.addressId).pipe((0,y.U)(U=>(this.logger.info(U),this.store.dispatch((0,L.uO)({payload:C.m6.GENERATE_NEW_ADDRESS})),{type:C.uR.SET_NEW_ADDRESS_LND,payload:U&&U.address?U.address:{}})),(0,h.K)(U=>(this.handleErrorWithAlert("GetNewAddress",C.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+C.vv.NEW_ADDRESS_API+"?type="+O.payload.addressId,U),(0,_.of)({type:C.pg.VOID})))))))),this.setNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.SET_NEW_ADDRESS_LND),(0,y.U)(O=>(this.logger.info(O.payload),O.payload))),{dispatch:!1}),this.SetChannelTransaction=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.SET_CHANNEL_TRANSACTION_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:C.m6.SEND_FUNDS})),this.store.dispatch((0,D.PC)({payload:{action:"SetChannelTransaction",status:C.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+C.vv.TRANSACTIONS_API,{amount:O.payload.amount,address:O.payload.address,sendAll:O.payload.sendAll,fees:O.payload.fees,blocks:O.payload.blocks}).pipe((0,y.U)(U=>(this.logger.info(U),this.store.dispatch((0,D.PC)({payload:{action:"SetChannelTransaction",status:C.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:C.m6.SEND_FUNDS})),this.store.dispatch((0,D.mC)()),this.store.dispatch((0,D.Bl)()),this.store.dispatch((0,D.UR)()),{type:C.uR.SET_CHANNEL_TRANSACTION_RES_LND,payload:U})),(0,h.K)(U=>(this.handleErrorWithoutAlert("SetChannelTransaction",C.m6.SEND_FUNDS,"Sending Fund Failed.",U),(0,_.of)({type:C.pg.VOID})))))))),this.fetchForwardingHistory=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.GET_FORWARDING_HISTORY_LND),(0,T.z)(O=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchForwardingHistory",status:C.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+C.vv.SWITCH_API,{num_max_events:O.payload.num_max_events,index_offset:O.payload.index_offset,end_time:O.payload.end_time,start_time:O.payload.start_time}).pipe((0,y.U)(ge=>(this.logger.info(ge),this.store.dispatch((0,D.PC)({payload:{action:"FetchForwardingHistory",status:C.Bn.COMPLETED}})),{type:C.uR.SET_FORWARDING_HISTORY_LND,payload:ge})),(0,h.K)(ge=>(this.handleErrorWithAlert("FetchForwardingHistory",C.m6.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+C.vv.SWITCH_API,ge),(0,_.of)({type:C.pg.VOID})))))))),this.queryRoutesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.GET_QUERY_ROUTES_LND),(0,T.z)(O=>{let U=this.CHILD_API_URL+C.vv.NETWORK_API+"/routes/"+O.payload.destPubkey+"/"+O.payload.amount;return O.payload.outgoingChanId&&(U=U+"?outgoing_chan_id="+O.payload.outgoingChanId),this.httpClient.get(U).pipe((0,y.U)(ge=>(this.logger.info(ge),{type:C.uR.SET_QUERY_ROUTES_LND,payload:ge})),(0,h.K)(ge=>(this.store.dispatch((0,D.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",C.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+C.vv.NETWORK_API,ge),(0,_.of)({type:C.pg.VOID}))))}))),this.setQueryRoutes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.SET_QUERY_ROUTES_LND),(0,y.U)(O=>O.payload)),{dispatch:!1}),this.genSeed=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.GEN_SEED_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:C.m6.GEN_SEED})),this.httpClient.get(this.CHILD_API_URL+C.vv.WALLET_API+"/genseed/"+O.payload).pipe((0,y.U)(U=>(this.logger.info("Generated GenSeed!"),this.logger.info(U),this.store.dispatch((0,L.uO)({payload:C.m6.GEN_SEED})),{type:C.uR.GEN_SEED_RESPONSE_LND,payload:U.cipher_seed_mnemonic})),(0,h.K)(U=>(this.handleErrorWithAlert("GenSeed",C.m6.GEN_SEED,"Genseed Generation Failed",this.CHILD_API_URL+C.vv.WALLET_API+"/genseed/"+O.payload,U),(0,_.of)({type:C.pg.VOID})))))))),this.updateSelNodeOptions=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.pg.UPDATE_SELECTED_NODE_OPTIONS),(0,T.z)(()=>this.httpClient.get(this.CHILD_API_URL+C.vv.WALLET_API+"/updateSelNodeOptions").pipe((0,y.U)(O=>(this.logger.info("Update Sel Node Successfull"),this.logger.info(O),{type:C.pg.VOID})),(0,h.K)(O=>(this.handleErrorWithAlert("UpdateSelectedNodeOptions",C.m6.NO_SPINNER,"Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!","Update Macaroon",O),(0,_.of)({type:C.pg.VOID}))))))),this.genSeedResponse=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.GEN_SEED_RESPONSE_LND),(0,y.U)(O=>O.payload)),{dispatch:!1}),this.initWalletRes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.INIT_WALLET_RESPONSE_LND),(0,y.U)(O=>O.payload)),{dispatch:!1}),this.initWallet=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.INIT_WALLET_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:C.m6.INITIALIZE_WALLET})),this.httpClient.post(this.CHILD_API_URL+C.vv.WALLET_API+"/wallet/initwallet",{wallet_password:O.payload.pwd,cipher_seed_mnemonic:O.payload.cipher?O.payload.cipher:"",aezeed_passphrase:O.payload.passphrase?O.payload.passphrase:""}).pipe((0,y.U)(U=>(this.logger.info(U),this.store.dispatch((0,L.uO)({payload:C.m6.INITIALIZE_WALLET})),{type:C.uR.INIT_WALLET_RESPONSE_LND,payload:U})),(0,h.K)(U=>(this.handleErrorWithAlert("InitWallet",C.m6.INITIALIZE_WALLET,"Wallet Initialization Failed",this.CHILD_API_URL+C.vv.WALLET_API+"/initwallet",U),(0,_.of)({type:C.pg.VOID})))))))),this.unlockWallet=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.UNLOCK_WALLET_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:C.m6.UNLOCK_WALLET})),this.httpClient.post(this.CHILD_API_URL+C.vv.WALLET_API+"/wallet/unlockwallet",{wallet_password:O.payload.pwd}).pipe((0,y.U)(U=>(this.logger.info(U),this.logger.info("Successfully Unlocked!"),this.sessionService.setItem("lndUnlocked","true"),this.store.dispatch((0,L.uO)({payload:C.m6.UNLOCK_WALLET})),this.store.dispatch((0,L.ac)({payload:C.m6.WAIT_SYNC_NODE})),setTimeout(()=>{this.store.dispatch((0,L.uO)({payload:C.m6.WAIT_SYNC_NODE})),this.store.dispatch((0,D.sQ)({payload:{loadPage:"HOME"}}))},5e3),{type:C.pg.VOID})),(0,h.K)(U=>(this.handleErrorWithAlert("UnlockWallet",C.m6.UNLOCK_WALLET,"Unlock Wallet Failed",this.CHILD_API_URL+C.vv.WALLET_API+"/unlockwallet",U),(0,_.of)({type:C.pg.VOID}))))))),{dispatch:!1}),this.peerLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.PEER_LOOKUP_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:C.m6.SEARCHING_NODE})),this.store.dispatch((0,D.PC)({payload:{action:"Lookup",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.NETWORK_API+"/node/"+O.payload).pipe((0,y.U)(U=>(this.logger.info(U),this.store.dispatch((0,L.uO)({payload:C.m6.SEARCHING_NODE})),this.store.dispatch((0,D.PC)({payload:{action:"Lookup",status:C.Bn.COMPLETED}})),{type:C.uR.SET_LOOKUP_LND,payload:U})),(0,h.K)(U=>(this.handleErrorWithAlert("Lookup",C.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+C.vv.NETWORK_API+"/node/"+O.payload,U),(0,_.of)({type:C.pg.VOID})))))))),this.channelLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.CHANNEL_LOOKUP_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:O.payload.uiMessage})),this.store.dispatch((0,D.PC)({payload:{action:"Lookup",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.NETWORK_API+"/edge/"+O.payload.channelID).pipe((0,y.U)(U=>(this.logger.info(U),this.store.dispatch((0,L.uO)({payload:O.payload.uiMessage})),this.store.dispatch((0,D.PC)({payload:{action:"Lookup",status:C.Bn.COMPLETED}})),{type:C.uR.SET_LOOKUP_LND,payload:U})),(0,h.K)(U=>(this.handleErrorWithAlert("Lookup",O.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+C.vv.NETWORK_API+"/edge/"+O.payload.channelID,U),(0,_.of)({type:C.pg.VOID})))))))),this.invoiceLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.INVOICE_LOOKUP_LND),(0,T.z)(O=>{this.store.dispatch((0,L.ac)({payload:C.m6.SEARCHING_INVOICE})),this.store.dispatch((0,D.PC)({payload:{action:"Lookup",status:C.Bn.INITIATED}}));let U=this.CHILD_API_URL+C.vv.INVOICES_API+"/lookup";return U=O.payload.paymentAddress&&""!==O.payload.paymentAddress?U+"?payment_addr="+O.payload.paymentAddress:U+"?payment_hash="+O.payload.paymentHash,this.httpClient.get(U).pipe((0,y.U)(ge=>(this.logger.info(ge),this.store.dispatch((0,L.uO)({payload:C.m6.SEARCHING_INVOICE})),this.store.dispatch((0,D.PC)({payload:{action:"Lookup",status:C.Bn.COMPLETED}})),this.store.dispatch((0,D.aL)({payload:ge})),{type:C.uR.SET_LOOKUP_LND,payload:ge})),(0,h.K)(ge=>(this.store.dispatch((0,D.PC)({payload:{action:"Lookup",status:C.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",C.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",ge),O.payload.openSnackBar&&this.store.dispatch((0,L.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,_.of)({type:C.uR.SET_LOOKUP_LND,payload:{error:ge}}))))}))),this.paymentLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.PAYMENT_LOOKUP_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:C.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,D.PC)({payload:{action:"Lookup",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.PAYMENTS_API+"/lookup/"+O.payload).pipe((0,y.U)(U=>(this.logger.info(U),this.store.dispatch((0,L.uO)({payload:C.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,D.PC)({payload:{action:"Lookup",status:C.Bn.COMPLETED}})),this.store.dispatch((0,D.qY)({payload:U})),{type:C.uR.SET_LOOKUP_LND,payload:U})),(0,h.K)(U=>(this.store.dispatch((0,D.PC)({payload:{action:"Lookup",status:C.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",C.m6.SEARCHING_PAYMENT,"Payment Lookup Failed",U),(0,_.of)({type:C.uR.SET_LOOKUP_LND,payload:{error:U}})))))))),this.setLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.SET_LOOKUP_LND),(0,y.U)(O=>(this.logger.info(O.payload),O.payload))),{dispatch:!1}),this.getRestoreChannelList=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.RESTORE_CHANNELS_LIST_LND),(0,T.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"RestoreChannelsList",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.CHANNELS_BACKUP_API+"/restore/list").pipe((0,y.U)(O=>(this.logger.info(O),this.store.dispatch((0,D.PC)({payload:{action:"RestoreChannelsList",status:C.Bn.COMPLETED}})),{type:C.uR.SET_RESTORE_CHANNELS_LIST_LND,payload:O||{all_restore_exists:!1,files:[]}})),(0,h.K)(O=>(this.handleErrorWithAlert("RestoreChannelsList",C.m6.NO_SPINNER,"Restore Channels List Failed",this.CHILD_API_URL+C.vv.CHANNELS_BACKUP_API,O),(0,_.of)({type:C.pg.VOID})))))))),this.setRestoreChannelList=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.SET_RESTORE_CHANNELS_LIST_LND),(0,y.U)(O=>(this.logger.info(O.payload),O.payload))),{dispatch:!1}),this.allLightningTransactionsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),(0,T.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchLightningTransactions",status:C.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.vv.PAYMENTS_API+"/alltransactions").pipe((0,y.U)(O=>(this.logger.info(O),this.store.dispatch((0,D.PC)({payload:{action:"FetchLightningTransactions",status:C.Bn.COMPLETED}})),{type:C.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,payload:O})),(0,h.K)(O=>(this.handleErrorWithoutAlert("FetchLightningTransactions",C.m6.NO_SPINNER,"Fetching All Lightning Transaction Failed.",O),(0,_.of)({type:C.pg.VOID})))))))),this.pageSettingsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.FETCH_PAGE_SETTINGS_LND),(0,T.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchPageSettings",status:C.Bn.INITIATED}})),this.httpClient.get(C.vv.PAGE_SETTINGS_API).pipe((0,y.U)(O=>(this.logger.info(O),this.store.dispatch((0,D.PC)({payload:{action:"FetchPageSettings",status:C.Bn.COMPLETED}})),this.invoicesPageSettings=O&&Object.keys(O).length>0?O.find(U=>"transactions"===U.pageId)?.tables.find(U=>"invoices"===U.tableId):C.gK.find(U=>"transactions"===U.pageId)?.tables.find(U=>"invoices"===U.tableId),this.paymentsPageSettings=O&&Object.keys(O).length>0?O.find(U=>"transactions"===U.pageId)?.tables.find(U=>"payments"===U.tableId):C.gK.find(U=>"transactions"===U.pageId)?.tables.find(U=>"payments"===U.tableId),{type:C.uR.SET_PAGE_SETTINGS_LND,payload:O||[]})),(0,h.K)(O=>(this.handleErrorWithoutAlert("FetchPageSettings",C.m6.NO_SPINNER,"Fetching Page Settings Failed.",O),(0,_.of)({type:C.pg.VOID})))))))),this.savePageSettings=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(C.uR.SAVE_PAGE_SETTINGS_LND),(0,T.z)(O=>(this.store.dispatch((0,L.ac)({payload:C.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,D.PC)({payload:{action:"SavePageSettings",status:C.Bn.INITIATED}})),this.httpClient.post(C.vv.PAGE_SETTINGS_API,O.payload).pipe((0,y.U)(U=>{this.logger.info(U),this.store.dispatch((0,D.PC)({payload:{action:"SavePageSettings",status:C.Bn.COMPLETED}})),this.store.dispatch((0,L.uO)({payload:C.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,L.jW)({payload:"Page Layout Updated Successfully!"}));const ge=(U.find(Ue=>"transactions"===Ue.pageId)?.tables.find(Ue=>"invoices"===Ue.tableId)||C.gK.find(Ue=>"transactions"===Ue.pageId)?.tables.find(Ue=>"invoices"===Ue.tableId)).recordsPerPage,nt=(U.find(Ue=>"transactions"===Ue.pageId)?.tables.find(Ue=>"payments"===Ue.tableId)||C.gK.find(Ue=>"transactions"===Ue.pageId)?.tables.find(Ue=>"payments"===Ue.tableId)).recordsPerPage;return this.invoicesPageSettings&&ge!==this.invoicesPageSettings?.recordsPerPage&&(this.invoicesPageSettings.recordsPerPage=ge,this.store.dispatch((0,D.WM)({payload:{num_max_invoices:this.invoicesPageSettings?.recordsPerPage,reversed:!0}}))),this.paymentsPageSettings&&nt!==this.paymentsPageSettings?.recordsPerPage&&(this.paymentsPageSettings.recordsPerPage=nt),{type:C.uR.SET_PAGE_SETTINGS_LND,payload:U||[]}}),(0,h.K)(U=>(this.handleErrorWithAlert("SavePageSettings",C.m6.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",C.vv.PAGE_SETTINGS_API,U),(0,_.of)({type:C.pg.VOID})))))))),this.store.select(z.yA).pipe((0,s.R)(this.unSubs[0])).subscribe(O=>{O.FetchInfo.status!==C.Bn.COMPLETED&&O.FetchInfo.status!==C.Bn.ERROR||O.FetchFees.status!==C.Bn.COMPLETED&&O.FetchFees.status!==C.Bn.ERROR||O.FetchBalanceBlockchain.status!==C.Bn.COMPLETED&&O.FetchBalanceBlockchain.status!==C.Bn.ERROR||O.FetchAllChannels.status!==C.Bn.COMPLETED&&O.FetchAllChannels.status!==C.Bn.ERROR||O.FetchPendingChannels.status!==C.Bn.COMPLETED&&O.FetchPendingChannels.status!==C.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,L.uO)({payload:C.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.lndWSMessages.pipe((0,s.R)(this.unSubs[1])).subscribe(O=>{this.logger.info("Received new message from the service: "+JSON.stringify(O)),O&&(O.type===C.g8.INVOICE?(this.logger.info(O),O&&O.result&&O.result.payment_request&&this.store.dispatch((0,D.aL)({payload:O.result}))):this.logger.info("Received Event from WS: "+JSON.stringify(O)))})}initializeRemainingData(a,f){this.sessionService.setItem("lndUnlocked","true");const l={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,L.ac)({payload:C.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,L._V)({payload:l}));let v=this.location.path();v.includes("/cln/")?v=v?.replace("/cln/","/lnd/"):v.includes("/ecl/")&&(v=v?.replace("/ecl/","/lnd/")),(v.includes("/unlock")||v.includes("/login")||v.includes("/error")||""===v||"HOME"===f||v.includes("?access-key="))&&(v="/lnd/home"),this.router.navigate([v]),this.store.dispatch((0,D.Bl)()),this.store.dispatch((0,D.UR)()),this.store.dispatch((0,D.Z7)()),this.store.dispatch((0,D.Zh)()),this.store.dispatch((0,D.$W)()),this.store.dispatch((0,D.Rv)()),this.store.dispatch((0,D.SN)()),this.store.dispatch((0,D.cQ)({payload:{max_payments:1e5,reversed:!0}})),this.store.dispatch((0,D.WM)({payload:{num_max_invoices:this.invoicesPageSettings?.recordsPerPage,reversed:!0}}))}handleErrorWithoutAlert(a,f,l,v){this.logger.error("ERROR IN: "+a+"\n"+JSON.stringify(v)),401===v.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,L.ts)()),this.store.dispatch((0,L.kS)()),this.store.dispatch((0,L.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,L.uO)({payload:f})),this.store.dispatch((0,D.PC)({payload:{action:a,status:C.Bn.ERROR,statusCode:v.status.toString(),message:this.commonService.extractErrorMessage(v,l)}})))}handleErrorWithAlert(a,f,l,v,I){if(this.logger.error(I),401===I.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,L.ts)()),this.store.dispatch((0,L.kS)()),this.store.dispatch((0,L.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,L.uO)({payload:f}));const k=this.commonService.extractErrorMessage(I);this.store.dispatch((0,L.qR)({payload:{data:{type:"ERROR",alertTitle:l,message:{code:I.status,message:k,URL:v},component:w.H}}})),this.store.dispatch((0,D.PC)({payload:{action:a,status:C.Bn.ERROR,statusCode:I.status.toString(),message:k,URL:v}}))}}ngOnDestroy(){this.unSubs.forEach(a=>{a.next(null),a.complete()})}}return(Ce=M).\u0275fac=function(a){return new(a||Ce)(V.LFG(t.eX),V.LFG(Y.eN),V.LFG(j.yh),V.LFG(Q.mQ),V.LFG(J.v),V.LFG(ee.m),V.LFG(me.uw),V.LFG(re.F0),V.LFG(ie.d),V.LFG(se.Ye))},Ce.\u0275prov=V.Yz7({token:Ce,factory:Ce.\u0275fac}),M})()},6529:(We,q,m)=>{"use strict";m.d(q,{$k:()=>_,Bo:()=>P,Ef:()=>D,JG:()=>w,N7:()=>me,P2:()=>j,PP:()=>d,Pr:()=>T,Q5:()=>s,T4:()=>ee,Wi:()=>C,ZW:()=>z,_f:()=>ie,bx:()=>se,dx:()=>L,l5:()=>re,ni:()=>Y,qU:()=>Q,yA:()=>h});var t=m(9653);const e=(0,t.ZF)("lnd"),_=(0,t.P1)(e,ce=>ce.nodeSettings),T=(0,t.P1)(e,ce=>({pageSettings:ce.pageSettings,apiCallStatus:ce.apisCallStatus.FetchPageSettings})),s=(0,t.P1)(e,ce=>ce.information),h=((0,t.P1)(e,ce=>({information:ce.information,apiCallStatus:ce.apisCallStatus.FetchInfo})),(0,t.P1)(e,ce=>ce.apisCallStatus)),P=(0,t.P1)(e,ce=>({forwardingHistory:ce.forwardingHistory,apiCallStatus:ce.apisCallStatus.FetchForwardingHistory})),d=(0,t.P1)(e,ce=>({listPayments:ce.listPayments,apiCallStatus:ce.apisCallStatus.FetchPayments})),w=(0,t.P1)(e,ce=>({fees:ce.fees,apiCallStatus:ce.apisCallStatus.FetchFees})),C=(0,t.P1)(e,ce=>({peers:ce.peers,apiCallStatus:ce.apisCallStatus.FetchPeers})),L=(0,t.P1)(e,ce=>({transactions:ce.transactions,apiCallStatus:ce.apisCallStatus.FetchTransactions})),D=(0,t.P1)(e,ce=>({listInvoices:ce.listInvoices,apiCallStatus:ce.apisCallStatus.FetchInvoices})),z=(0,t.P1)(e,ce=>({channels:ce.channels,channelsSummary:ce.channelsSummary,lightningBalance:ce.lightningBalance,apiCallStatus:ce.apisCallStatus.FetchAllChannels})),Y=((0,t.P1)(e,ce=>({channelsSummary:ce.channelsSummary,pendingChannels:ce.pendingChannels,closedChannels:ce.closedChannels,apiCallStatus:ce.apisCallStatus.FetchAllChannels})),(0,t.P1)(e,ce=>({pendingChannels:ce.pendingChannels,pendingChannelsSummary:ce.pendingChannelsSummary,apiCallStatus:ce.apisCallStatus.FetchPendingChannels}))),j=(0,t.P1)(e,ce=>({closedChannels:ce.closedChannels,apiCallStatus:ce.apisCallStatus.FetchClosedChannels})),Q=(0,t.P1)(e,ce=>({blockchainBalance:ce.blockchainBalance,apiCallStatus:ce.apisCallStatus.FetchBalanceBlockchain})),ee=((0,t.P1)(e,ce=>({lightningBalance:ce.lightningBalance,apiCallStatus:ce.apisCallStatus.FetchAllChannels})),(0,t.P1)(e,ce=>({utxos:ce.utxos,apiCallStatus:ce.apisCallStatus.FetchUTXOs}))),me=(0,t.P1)(e,ce=>({networkInfo:ce.networkInfo,apiCallStatus:ce.apisCallStatus.FetchNetwork})),re=(0,t.P1)(e,ce=>({allLightningTransactions:ce.allLightningTransactions,apiCallStatus:ce.apisCallStatus.FetchLightningTransactions})),ie=(0,t.P1)(e,ce=>({channels:ce.channels,pendingChannels:ce.pendingChannels,closedChannels:ce.closedChannels})),se=(0,t.P1)(e,ce=>({information:ce.information,nodeSettings:ce.nodeSettings,apiCallStatus:ce.apisCallStatus.FetchInfo}))},8627:(We,q,m)=>{"use strict";m.d(q,{v:()=>rt});var t=m(5412),e=m(2687),_=m(7579),T=m(2722),s=m(7731),y=m(6529),h=m(4650),P=m(5043),d=m(62),w=m(7009),C=m(9653),L=m(6895),D=m(2216),z=m(1576),V=m(5829),Y=m(4859),j=m(3546),Q=m(752),J=m(7392),ee=m(4850),me=m(1572),re=m(266),ie=m(658),se=m(5199),ce=m(3390);const Ce=["scrollContainer"];function M(Ke,lt){if(1&Ke&&h._UZ(0,"qr-code",33),2&Ke){const Ut=h.oxw();h.Q6J("value",null==Ut.invoice?null:Ut.invoice.payment_request)("size",Ut.qrWidth)("errorCorrectionLevel","L")}}function i(Ke,lt){1&Ke&&(h.TgZ(0,"span",34),h._uU(1,"N/A"),h.qZA())}function a(Ke,lt){if(1&Ke&&h._UZ(0,"qr-code",33),2&Ke){const Ut=h.oxw();h.Q6J("value",null==Ut.invoice?null:Ut.invoice.payment_request)("size",Ut.qrWidth)("errorCorrectionLevel","L")}}function f(Ke,lt){1&Ke&&(h.TgZ(0,"span",35),h._uU(1,"QR Code Not Applicable"),h.qZA())}function l(Ke,lt){1&Ke&&h._UZ(0,"mat-divider",22),2&Ke&&h.Q6J("inset",!0)}function v(Ke,lt){1&Ke&&(h.ynx(0),h._uU(1," (zero amount) "),h.BQk())}function I(Ke,lt){1&Ke&&h._UZ(0,"span",41)}const k=function(){return[]};function x(Ke,lt){if(1&Ke&&(h.TgZ(0,"div",37)(1,"div",38)(2,"span",39),h._uU(3),h.ALo(4,"number"),h.qZA(),h.YNc(5,I,1,0,"span",40),h.qZA()()),2&Ke){const Ut=h.oxw(2);h.xp6(3),h.hij("",h.lcZ(4,2,null==Ut.invoice?null:Ut.invoice.amt_paid_sat)," Sats"),h.xp6(2),h.Q6J("ngForOf",h.DdM(4,k).constructor(35))}}function n(Ke,lt){if(1&Ke&&(h.TgZ(0,"div"),h._uU(1),h.ALo(2,"number"),h.qZA()),2&Ke){const Ut=h.oxw(2);h.xp6(1),h.hij("",h.lcZ(2,1,null==Ut.invoice?null:Ut.invoice.amt_paid_sat)," Sats")}}function g(Ke,lt){if(1&Ke&&(h.ynx(0),h.YNc(1,x,6,5,"div",36),h.YNc(2,n,3,3,"div",21),h.BQk()),2&Ke){const Ut=h.oxw();h.xp6(1),h.Q6J("ngIf",Ut.flgInvoicePaid),h.xp6(1),h.Q6J("ngIf",!Ut.flgInvoicePaid)}}function W(Ke,lt){1&Ke&&(h.TgZ(0,"span"),h._uU(1,"-"),h.qZA())}function O(Ke,lt){1&Ke&&h._UZ(0,"mat-spinner",43),2&Ke&&h.Q6J("diameter",20)}function U(Ke,lt){if(1&Ke&&(h.ynx(0),h.YNc(1,W,2,0,"span",21),h.YNc(2,O,1,1,"mat-spinner",42),h.BQk()),2&Ke){const Ut=h.oxw();h.xp6(1),h.Q6J("ngIf","OPEN"!==(null==Ut.invoice?null:Ut.invoice.state)||!Ut.flgVersionCompatible),h.xp6(1),h.Q6J("ngIf","OPEN"===(null==Ut.invoice?null:Ut.invoice.state)&&Ut.flgVersionCompatible)}}function ge(Ke,lt){1&Ke&&h.GkF(0)}function nt(Ke,lt){if(1&Ke&&(h.TgZ(0,"div"),h.YNc(1,ge,1,0,"ng-container",44),h.qZA()),2&Ke){h.oxw();const Ut=h.MAs(79);h.xp6(1),h.Q6J("ngTemplateOutlet",Ut)}}function Ue(Ke,lt){if(1&Ke){const Ut=h.EpF();h.TgZ(0,"div",45)(1,"button",46),h.NdJ("click",function(){h.CHM(Ut);const Ge=h.oxw();return h.KtG(Ge.onScrollDown())}),h.TgZ(2,"mat-icon",47),h._uU(3,"arrow_downward"),h.qZA()()()}}function at(Ke,lt){1&Ke&&(h.TgZ(0,"p"),h._uU(1,"Show Advanced"),h.qZA())}function ye(Ke,lt){1&Ke&&(h.TgZ(0,"p"),h._uU(1,"Hide Advanced"),h.qZA())}function xe(Ke,lt){if(1&Ke){const Ut=h.EpF();h.TgZ(0,"button",48),h.NdJ("copied",function(Ge){h.CHM(Ut);const yt=h.oxw();return h.KtG(yt.onCopyPayment(Ge))}),h._uU(1),h.qZA()}if(2&Ke){const Ut=h.oxw();h.Q6J("payload",null==Ut.invoice?null:Ut.invoice.payment_request),h.xp6(1),h.Oqu(Ut.screenSize===Ut.screenSizeEnum.XS?"Copy Payment":"Copy Payment Request")}}function fe(Ke,lt){if(1&Ke){const Ut=h.EpF();h.TgZ(0,"button",49),h.NdJ("click",function(){h.CHM(Ut);const Ge=h.oxw();return h.KtG(Ge.onClose())}),h._uU(1,"OK"),h.qZA()}}const Oe=function(Ke){return{"mr-0":Ke}};function oe(Ke,lt){if(1&Ke&&h._UZ(0,"span",64),2&Ke){const Ut=h.oxw(4);h.Q6J("ngClass",h.VKq(1,Oe,Ut.screenSize===Ut.screenSizeEnum.XS))}}function Fe(Ke,lt){if(1&Ke&&h._UZ(0,"span",65),2&Ke){const Ut=h.oxw(4);h.Q6J("ngClass",h.VKq(1,Oe,Ut.screenSize===Ut.screenSizeEnum.XS))}}function De(Ke,lt){if(1&Ke&&h._UZ(0,"span",66),2&Ke){const Ut=h.oxw(4);h.Q6J("ngClass",h.VKq(1,Oe,Ut.screenSize===Ut.screenSizeEnum.XS))}}function he(Ke,lt){if(1&Ke&&(h.TgZ(0,"div",53)(1,"div",58)(2,"span",59),h.YNc(3,oe,1,3,"span",60),h.YNc(4,Fe,1,3,"span",61),h.YNc(5,De,1,3,"span",62),h._uU(6),h.qZA(),h.TgZ(7,"span",63),h._uU(8),h.ALo(9,"number"),h.qZA()(),h._UZ(10,"mat-divider",22),h.qZA()),2&Ke){const Ut=lt.$implicit,ht=h.oxw(3);h.xp6(3),h.Q6J("ngIf","SETTLED"===Ut.state),h.xp6(1),h.Q6J("ngIf","ACCEPTED"===Ut.state),h.xp6(1),h.Q6J("ngIf","CANCELED"===Ut.state),h.xp6(1),h.hij(" ",Ut.chan_id," "),h.xp6(2),h.Oqu(h.xi3(9,6,+Ut.amt_msat/1e3||0,ht.getDecimalFormat(Ut))),h.xp6(2),h.Q6J("inset",!0)}}function Me(Ke,lt){if(1&Ke){const Ut=h.EpF();h.TgZ(0,"div",17)(1,"mat-expansion-panel",51),h.NdJ("opened",function(){h.CHM(Ut);const Ge=h.oxw(2);return h.KtG(Ge.flgOpened=!0)})("closed",function(){h.CHM(Ut);const Ge=h.oxw(2);return h.KtG(Ge.onExpansionClosed())}),h.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title")(4,"h4",52),h._uU(5,"HTLCs"),h.qZA()()(),h.TgZ(6,"div",53)(7,"div",54)(8,"span",55),h._uU(9,"Channel ID"),h.qZA(),h.TgZ(10,"span",56),h._uU(11,"Amount (Sats)"),h.qZA()(),h._UZ(12,"mat-divider",22),h.YNc(13,he,11,9,"div",57),h.qZA()()()}if(2&Ke){const Ut=h.oxw(2);h.xp6(12),h.Q6J("inset",!0),h.xp6(1),h.Q6J("ngForOf",null==Ut.invoice?null:Ut.invoice.htlcs)}}function pe(Ke,lt){1&Ke&&h._UZ(0,"mat-divider",22),2&Ke&&h.Q6J("inset",!0)}function Ve(Ke,lt){if(1&Ke&&(h._UZ(0,"mat-divider",22),h.TgZ(1,"div",17)(2,"div",23)(3,"h4",19),h._uU(4,"Preimage"),h.qZA(),h.TgZ(5,"span",24),h._uU(6),h.qZA()()(),h._UZ(7,"mat-divider",22),h.TgZ(8,"div",17)(9,"div",18)(10,"h4",19),h._uU(11,"State"),h.qZA(),h.TgZ(12,"span",24),h._uU(13),h.qZA()(),h.TgZ(14,"div",18)(15,"h4",19),h._uU(16,"Expiry"),h.qZA(),h.TgZ(17,"span",24),h._uU(18),h.ALo(19,"date"),h.qZA()()(),h._UZ(20,"mat-divider",22),h.TgZ(21,"div",17)(22,"div",18)(23,"h4",19),h._uU(24,"Private Routing Hints"),h.qZA(),h.TgZ(25,"span",24),h._uU(26),h.qZA()(),h.TgZ(27,"div",18)(28,"h4",19),h._uU(29,"AMP Invoice"),h.qZA(),h.TgZ(30,"span",24),h._uU(31),h.qZA()()(),h._UZ(32,"mat-divider",22),h.YNc(33,Me,14,2,"div",50),h.YNc(34,pe,1,1,"mat-divider",14)),2&Ke){const Ut=h.oxw();h.Q6J("inset",!0),h.xp6(6),h.Oqu((null==Ut.invoice?null:Ut.invoice.r_preimage)||"-"),h.xp6(1),h.Q6J("inset",!0),h.xp6(6),h.Oqu(null==Ut.invoice?null:Ut.invoice.state),h.xp6(5),h.Oqu(h.xi3(19,11,1e3*(+(null==Ut.invoice?null:Ut.invoice.creation_date)+ +(null==Ut.invoice?null:Ut.invoice.expiry)),"dd/MMM/y HH:mm")),h.xp6(2),h.Q6J("inset",!0),h.xp6(6),h.Oqu(null!=Ut.invoice&&Ut.invoice.private?"Yes":"No"),h.xp6(5),h.Oqu(null!=Ut.invoice&&Ut.invoice.is_amp?"Yes":"No"),h.xp6(1),h.Q6J("inset",!0),h.xp6(1),h.Q6J("ngIf",(null==Ut.invoice?null:Ut.invoice.htlcs)&&(null==Ut.invoice?null:Ut.invoice.htlcs.length)>0),h.xp6(1),h.Q6J("ngIf",(null==Ut.invoice?null:Ut.invoice.htlcs)&&(null==Ut.invoice?null:Ut.invoice.htlcs.length)>0)}}const Qe=function(Ke){return{"display-none":Ke}},Pe=function(Ke){return{"xs-scroll-y":Ke}},de=function(Ke){return{"h-50":Ke}};let rt=(()=>{var Ke;class lt{constructor(ht,Ge,yt,be,qe,Ie){this.dialogRef=ht,this.data=Ge,this.logger=yt,this.commonService=be,this.snackBar=qe,this.store=Ie,this.faReceipt=e.dLy,this.showAdvanced=!1,this.newlyAdded=!1,this.invoice=null,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.cu,this.flgOpened=!1,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new _.x,new _.x,new _.x,new _.x,new _.x]}set container(ht){ht&&(this.scrollContainer=ht)}ngOnInit(){this.invoice=JSON.parse(JSON.stringify(this.data.invoice)),this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS&&(this.qrWidth=220),this.store.select(y.Q5).pipe((0,T.R)(this.unSubs[0])).subscribe(Ge=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(Ge.version,"0.11.0")});const ht=JSON.parse(JSON.stringify(this.invoice));this.store.select(y.Ef).pipe((0,T.R)(this.unSubs[1])).subscribe(Ge=>{const yt=this.invoice?.state,qe=(Ge.listInvoices.invoices||[]).find(Ie=>Ie.r_hash===ht.r_hash)||null;qe&&(this.invoice=qe),yt!==this.invoice?.state&&"SETTLED"===this.invoice?.state&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(Ge)})}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(ht){this.snackBar.open("Payment request copied."),this.logger.info("Copied Text: "+ht)}getDecimalFormat(ht){return ht.amt_msat<1e3?"1.0-4":"1.0-0"}ngOnDestroy(){this.unSubs.forEach(ht=>{ht.next(null),ht.complete()})}}return(Ke=lt).\u0275fac=function(ht){return new(ht||Ke)(h.Y36(t.so),h.Y36(t.WI),h.Y36(P.mQ),h.Y36(d.v),h.Y36(w.ux),h.Y36(C.yh))},Ke.\u0275cmp=h.Xpm({type:Ke,selectors:[["rtl-invoice-information"]],viewQuery:function(ht,Ge){if(1&ht&&h.Gf(Ce,5),2&ht){let yt;h.iGM(yt=h.CRH())&&(Ge.container=yt.first)}},decls:80,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 center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],[3,"ngClass"],["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"],["advancedBlock",""],[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"],[4,"ngTemplateOutlet"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container","padding-gap-x-large"],["mat-mini-fab","","aria-label","Scroll Down","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"flat-expansion-panel",3,"opened","closed"],["fxLayoutAlign","start center","fxFlex","100",1,"font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100",1,"mt-minus-1"],["fxFlex","60",1,"foreground-secondary-text","font-bold-500"],["fxFlex","40",1,"foreground-secondary-text","font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100"],["fxFlex","60",1,"foreground-secondary-text"],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Accepted","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Cancelled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["fxFlex","40",1,"foreground-secondary-text"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Accepted","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Cancelled","matTooltipPosition","right",1,"dot","red",3,"ngClass"]],template:function(ht,Ge){if(1&ht&&(h.TgZ(0,"div",0)(1,"div",1),h.YNc(2,M,1,3,"qr-code",2),h.YNc(3,i,2,0,"span",3),h.qZA(),h.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),h._UZ(7,"fa-icon",7),h.TgZ(8,"span",8),h._uU(9),h.qZA()(),h.TgZ(10,"button",9),h.NdJ("click",function(){return Ge.onClose()}),h._uU(11,"X"),h.qZA()(),h.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),h.YNc(15,a,1,3,"qr-code",2),h.YNc(16,f,2,0,"span",13),h.qZA(),h.YNc(17,l,1,1,"mat-divider",14),h.TgZ(18,"div",15,16)(20,"div",17)(21,"div",18)(22,"h4",19),h._uU(23),h.qZA(),h.TgZ(24,"span",20),h._uU(25),h.ALo(26,"number"),h.YNc(27,v,2,0,"ng-container",21),h.qZA()(),h.TgZ(28,"div",18)(29,"h4",19),h._uU(30,"Amount Settled"),h.qZA(),h.TgZ(31,"span",20),h.YNc(32,g,3,2,"ng-container",21),h.YNc(33,U,3,2,"ng-container",21),h.qZA()()(),h._UZ(34,"mat-divider",22),h.TgZ(35,"div",17)(36,"div",18)(37,"h4",19),h._uU(38,"Date Created"),h.qZA(),h.TgZ(39,"span",20),h._uU(40),h.ALo(41,"date"),h.qZA()(),h.TgZ(42,"div",18)(43,"h4",19),h._uU(44,"Date Settled"),h.qZA(),h.TgZ(45,"span",20),h._uU(46),h.ALo(47,"date"),h.qZA()()(),h._UZ(48,"mat-divider",22),h.TgZ(49,"div",17)(50,"div",23)(51,"h4",19),h._uU(52,"Memo"),h.qZA(),h.TgZ(53,"span",20),h._uU(54),h.qZA()()(),h._UZ(55,"mat-divider",22),h.TgZ(56,"div",17)(57,"div",23)(58,"h4",19),h._uU(59,"Payment Request"),h.qZA(),h.TgZ(60,"span",24),h._uU(61),h.qZA()()(),h._UZ(62,"mat-divider",22),h.TgZ(63,"div",17)(64,"div",23)(65,"h4",19),h._uU(66,"Payment Hash"),h.qZA(),h.TgZ(67,"span",24),h._uU(68),h.qZA()()(),h.YNc(69,nt,2,1,"div",21),h.qZA()()(),h.YNc(70,Ue,4,0,"div",25),h.TgZ(71,"div",26)(72,"button",27),h.NdJ("click",function(){return Ge.onShowAdvanced()}),h.YNc(73,at,2,0,"p",28),h.YNc(74,ye,2,0,"ng-template",null,29,h.W1O),h.qZA(),h.YNc(76,xe,2,2,"button",30),h.YNc(77,fe,2,0,"button",31),h.qZA()()(),h.YNc(78,Ve,35,14,"ng-template",null,32,h.W1O)),2&ht){const yt=h.MAs(75);h.xp6(1),h.Q6J("fxLayoutAlign",null!=Ge.invoice&&Ge.invoice.payment_request&&""!==(null==Ge.invoice?null:Ge.invoice.payment_request)?"center start":"center center")("ngClass",h.VKq(41,Qe,Ge.screenSize===Ge.screenSizeEnum.XS||Ge.screenSize===Ge.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==Ge.invoice?null:Ge.invoice.payment_request)&&""!==(null==Ge.invoice?null:Ge.invoice.payment_request)),h.xp6(1),h.Q6J("ngIf",!(null!=Ge.invoice&&Ge.invoice.payment_request)||""===(null==Ge.invoice?null:Ge.invoice.payment_request)),h.xp6(4),h.Q6J("icon",Ge.faReceipt),h.xp6(2),h.Oqu(Ge.screenSize===Ge.screenSizeEnum.XS?Ge.newlyAdded?"Created":"Invoice":Ge.newlyAdded?"Invoice Created":"Invoice Information"),h.xp6(3),h.Q6J("ngClass",h.VKq(43,Pe,Ge.screenSize===Ge.screenSizeEnum.XS)),h.xp6(2),h.Q6J("fxLayoutAlign",null!=Ge.invoice&&Ge.invoice.payment_request&&""!==(null==Ge.invoice?null:Ge.invoice.payment_request)?"center start":"center center")("ngClass",h.VKq(45,Qe,Ge.screenSize!==Ge.screenSizeEnum.XS&&Ge.screenSize!==Ge.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==Ge.invoice?null:Ge.invoice.payment_request)&&""!==(null==Ge.invoice?null:Ge.invoice.payment_request)),h.xp6(1),h.Q6J("ngIf",!(null!=Ge.invoice&&Ge.invoice.payment_request)||""===(null==Ge.invoice?null:Ge.invoice.payment_request)),h.xp6(1),h.Q6J("ngIf",Ge.screenSize===Ge.screenSizeEnum.XS||Ge.screenSize===Ge.screenSizeEnum.SM),h.xp6(1),h.Q6J("ngClass",h.VKq(47,de,(null==Ge.invoice?null:Ge.invoice.htlcs)&&(null==Ge.invoice?null:Ge.invoice.htlcs.length)>0&&Ge.showAdvanced)),h.xp6(5),h.Oqu(Ge.screenSize===Ge.screenSizeEnum.XS?"Amount":"Amount Requested"),h.xp6(2),h.hij("",h.lcZ(26,33,(null==Ge.invoice?null:Ge.invoice.value)||0)," Sats"),h.xp6(2),h.Q6J("ngIf",!(null!=Ge.invoice&&Ge.invoice.value)||"0"===(null==Ge.invoice?null:Ge.invoice.value)),h.xp6(5),h.Q6J("ngIf",(null==Ge.invoice?null:Ge.invoice.amt_paid_sat)&&"OPEN"!==(null==Ge.invoice?null:Ge.invoice.state)),h.xp6(1),h.Q6J("ngIf",!(null!=Ge.invoice&&Ge.invoice.amt_paid_sat)||"0"===(null==Ge.invoice?null:Ge.invoice.amt_paid_sat)),h.xp6(1),h.Q6J("inset",!0),h.xp6(6),h.Oqu(h.xi3(41,35,1e3*(null==Ge.invoice?null:Ge.invoice.creation_date),"dd/MMM/y HH:mm")),h.xp6(6),h.Oqu(0!=+(null==Ge.invoice?null:Ge.invoice.settle_date)?h.xi3(47,38,1e3*+(null==Ge.invoice?null:Ge.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),h.xp6(2),h.Q6J("inset",!0),h.xp6(6),h.Oqu(null==Ge.invoice?null:Ge.invoice.memo),h.xp6(1),h.Q6J("inset",!0),h.xp6(6),h.Oqu((null==Ge.invoice?null:Ge.invoice.payment_request)||"N/A"),h.xp6(1),h.Q6J("inset",!0),h.xp6(6),h.Oqu((null==Ge.invoice?null:Ge.invoice.r_hash)||""),h.xp6(1),h.Q6J("ngIf",Ge.showAdvanced),h.xp6(1),h.Q6J("ngIf",(null==Ge.invoice?null:Ge.invoice.htlcs)&&(null==Ge.invoice?null:Ge.invoice.htlcs.length)>0&&Ge.showAdvanced&&Ge.flgOpened),h.xp6(3),h.Q6J("ngIf",!Ge.showAdvanced)("ngIfElse",yt),h.xp6(3),h.Q6J("ngIf",(null==Ge.invoice?null:Ge.invoice.payment_request)&&""!==(null==Ge.invoice?null:Ge.invoice.payment_request)),h.xp6(1),h.Q6J("ngIf",!(null!=Ge.invoice&&Ge.invoice.payment_request)||""===(null==Ge.invoice?null:Ge.invoice.payment_request))}},dependencies:[L.mk,L.sg,L.O5,L.tP,D.BN,z.xw,z.Wh,z.yH,V.oO,Y.lW,Y.nh,j.dn,j.dk,Q.ib,Q.yz,Q.yK,J.Hw,ee.d,me.Ou,re.gM,ie.uU,se.y,ce.h,L.JJ,L.uU]}),lt})()},7772:(We,q,m)=>{"use strict";m.d(q,{J:()=>_,_:()=>e});var t=m(7340);const e=[(0,t.X$)("opacityAnimation",[(0,t.eR)(":enter",[(0,t.oB)({opacity:0}),(0,t.jt)("1000ms ease-in",(0,t.oB)({opacity:1}))]),(0,t.eR)(":leave",[(0,t.jt)("0ms",(0,t.oB)({opacity:0}))])])],_=[(0,t.X$)("fadeIn",[(0,t.eR)("void => *",[]),(0,t.eR)("* => void",[]),(0,t.eR)("* => *",[(0,t.jt)(800,(0,t.F4)([(0,t.oB)({opacity:0,transform:"translateY(100%)"}),(0,t.oB)({opacity:1,transform:"translateY(0%)"})]))])])]},8878:(We,q,m)=>{"use strict";m.d(q,{g:()=>e});var t=m(7340);const e=(0,t.X$)("routeAnimation",[(0,t.eR)("* => *",[(0,t.IO)(":enter, :leave",(0,t.oB)({position:"fixed",width:"100%"}),{optional:!0}),(0,t.ru)([(0,t.IO)(":enter",[(0,t.oB)({transform:"translateX(100%)"}),(0,t.jt)("1000ms ease-in-out",(0,t.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,t.IO)(":leave",[(0,t.oB)({transform:"translateX(0%)"}),(0,t.jt)("1000ms ease-in-out",(0,t.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])])},113:(We,q,m)=>{"use strict";m.d(q,{l:()=>e});var t=m(7340);const e=[(0,t.X$)("sliderAnimation",[(0,t.SB)("*",(0,t.oB)({transform:"translateX(0)"})),(0,t.eR)("void => backward",[(0,t.oB)({transform:"translateX(-100%"}),(0,t.jt)("800ms")]),(0,t.eR)("backward => void",[(0,t.jt)("0ms",(0,t.oB)({transform:"translateX(100%)"}))]),(0,t.eR)("void => forward",[(0,t.oB)({transform:"translateX(100%"}),(0,t.jt)("800ms")]),(0,t.eR)("forward => void",[(0,t.jt)("0ms",(0,t.oB)({transform:"translateX(-100%)"}))])])]},1786:(We,q,m)=>{"use strict";m.d(q,{H:()=>C});var t=m(5412),e=m(4650),_=m(5043),T=m(6895),s=m(1576),y=m(4859),h=m(3546),P=m(4850),d=m(3390);function w(L,D){if(1&L&&(e.TgZ(0,"p",14),e._uU(1),e.qZA()),2&L){const z=e.oxw();e.xp6(1),e.Oqu(z.data.titleMessage)}}let C=(()=>{var L;class D{constructor(V,Y,j){this.dialogRef=V,this.data=Y,this.logger=j,this.errorMessage=""}ngOnInit(){this.errorMessage=this.data.message&&this.data.message.message&&"object"==typeof this.data.message.message?JSON.stringify(this.data.message.message):this.data.message&&this.data.message.message?this.data.message.message:"",!this.data.message&&!this.data.titleMessage&&!this.data.message&&(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.data.message)}onClose(){this.dialogRef.close(!1)}}return(L=D).\u0275fac=function(V){return new(V||L)(e.Y36(t.so),e.Y36(t.WI),e.Y36(_.mQ))},L.\u0275cmp=e.Xpm({type:L,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 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(V,Y){1&V&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5),e.qZA()(),e.TgZ(6,"button",5),e.NdJ("click",function(){return Y.onClose()}),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"div",7),e.YNc(10,w,2,1,"p",8),e.TgZ(11,"h4",9),e._uU(12,"Error Code"),e.qZA(),e.TgZ(13,"span"),e._uU(14),e.qZA(),e._UZ(15,"mat-divider",10),e.TgZ(16,"h4",9),e._uU(17,"Error Message"),e.qZA(),e.TgZ(18,"span",11),e._uU(19),e.qZA(),e._UZ(20,"mat-divider",10),e.TgZ(21,"h4",9),e._uU(22,"API URL"),e.qZA(),e.TgZ(23,"span",11),e._uU(24),e.qZA(),e._UZ(25,"mat-divider",10),e.TgZ(26,"div",12)(27,"button",13),e._uU(28,"OK"),e.qZA()()()()()()),2&V&&(e.xp6(5),e.Oqu(Y.data.alertTitle||"ERROR"),e.xp6(5),e.Q6J("ngIf",Y.data.titleMessage),e.xp6(4),e.Oqu(Y.data.message.code),e.xp6(5),e.Oqu(Y.errorMessage),e.xp6(5),e.Oqu(Y.data.message.URL),e.xp6(3),e.Q6J("mat-dialog-close",!1))},dependencies:[T.O5,s.xw,s.Wh,s.yH,t.ZT,y.lW,h.dn,h.dk,P.d,d.h],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),D})()},2615:(We,q,m)=>{"use strict";m.d(q,{a:()=>Gi});var t=m(4006),e=m(7579),_=m(2722),T=m(5412),s=m(2687),y=m(7772),h=m(7731),P=m(6529),d=m(4650),w=m(9653),C=m(9107),L=m(6895),D=m(5043),z=m(9116),V=m(62),Y=m(1576),j=m(5829),Q=m(4859),J=m(3546),ee=m(752),me=m(7392),re=m(4144),ie=m(9549),se=m(3162),ce=m(1948),Ce=m(455),M=m(266),i=m(8425),a=m(3390),f=m(4850);function l(Xe,It){1&Xe&&d.GkF(0)}function v(Xe,It){1&Xe&&d.GkF(0)}const I=function(Xe){return{"h-5":Xe}};function k(Xe,It){if(1&Xe&&(d.TgZ(0,"mat-expansion-panel",3)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",4),d._uU(4),d.ALo(5,"number"),d.qZA()()(),d.YNc(6,v,1,0,"ng-container",0),d.qZA()),2&Xe){const Se=d.oxw(),wt=d.MAs(4);d.Q6J("expanded",Se.panelExpanded)("ngClass",d.VKq(7,I,!Se.flgShowPanel)),d.xp6(4),d.AsE("Quote for ",Se.termCaption," amount (",d.lcZ(5,5,Se.quote.amount)," Sats)"),d.xp6(2),d.Q6J("ngTemplateOutlet",wt)}}function x(Xe,It){if(1&Xe&&(d.TgZ(0,"div",19)(1,"h4",8),d._uU(2," Prepay Amount (Sats) "),d.TgZ(3,"mat-icon",20),d._uU(4,"info_outline"),d.qZA()(),d.TgZ(5,"span",10),d._uU(6),d.ALo(7,"number"),d.qZA()()),2&Xe){const Se=d.oxw(2);d.xp6(6),d.Oqu(d.lcZ(7,1,null==Se.quote?null:Se.quote.prepay_amt_sat))}}function n(Xe,It){1&Xe&&d._UZ(0,"mat-divider",13)}function g(Xe,It){if(1&Xe&&(d.TgZ(0,"div",6)(1,"div",21)(2,"h4",8),d._uU(3," Swap Server Node Pubkey "),d.TgZ(4,"mat-icon",22),d._uU(5,"info_outline"),d.qZA()(),d.TgZ(6,"span",10),d._uU(7),d.qZA()()()),2&Xe){const Se=d.oxw(2);d.xp6(7),d.Oqu(null==Se.quote?null:Se.quote.swap_payment_dest)}}function W(Xe,It){if(1&Xe&&(d.TgZ(0,"div",5)(1,"div",6)(2,"div",7)(3,"h4",8),d._uU(4," Swap Fee (Sats) "),d.TgZ(5,"mat-icon",9),d._uU(6,"info_outline"),d.qZA()(),d.TgZ(7,"span",10),d._uU(8),d.ALo(9,"number"),d.qZA()(),d.TgZ(10,"div",7)(11,"h4",8),d._uU(12),d.TgZ(13,"mat-icon",11),d._uU(14,"info_outline"),d.qZA()(),d.TgZ(15,"span",10),d._uU(16),d.ALo(17,"number"),d.qZA()(),d.YNc(18,x,8,3,"div",12),d.qZA(),d._UZ(19,"mat-divider",13),d.TgZ(20,"div",6)(21,"div",14)(22,"h4",8),d._uU(23," Max Off-chain Swap Routing Fee (Sats) "),d.TgZ(24,"mat-icon",15),d._uU(25,"info_outline"),d.qZA()(),d.TgZ(26,"span",10),d._uU(27),d.ALo(28,"number"),d.qZA()(),d.TgZ(29,"div",14)(30,"h4",8),d._uU(31," Max Off-chain Prepay Routing Fee (Sats) "),d.TgZ(32,"mat-icon",16),d._uU(33,"info_outline"),d.qZA()(),d.TgZ(34,"span",10),d._uU(35,"36"),d.qZA()()(),d.YNc(36,n,1,0,"mat-divider",17),d.YNc(37,g,8,1,"div",18),d.qZA()),2&Xe){const Se=d.oxw();d.xp6(2),d.Q6J("fxFlex",null!=Se.quote&&Se.quote.prepay_amt_sat?"30":"50"),d.xp6(6),d.Oqu(d.lcZ(9,9,null==Se.quote?null:Se.quote.swap_fee_sat)),d.xp6(2),d.Q6J("fxFlex",null!=Se.quote&&Se.quote.prepay_amt_sat?"35":"50"),d.xp6(2),d.hij(" ",null!=Se.quote&&Se.quote.htlc_sweep_fee_sat?"HTLC Sweep Fee (Sats)":null!=Se.quote&&Se.quote.htlc_publish_fee_sat?"HTLC Publish Fee (Sats)":""," "),d.xp6(4),d.Oqu(d.lcZ(17,11,null!=Se.quote&&Se.quote.htlc_sweep_fee_sat?Se.quote.htlc_sweep_fee_sat:null!=Se.quote&&Se.quote.htlc_publish_fee_sat?Se.quote.htlc_publish_fee_sat:0)),d.xp6(2),d.Q6J("ngIf",null==Se.quote?null:Se.quote.prepay_amt_sat),d.xp6(9),d.Oqu(d.lcZ(28,13,(null==Se.quote?null:Se.quote.amount)*((null!=Se.quote&&Se.quote.off_chain_swap_routing_fee_percentage?null==Se.quote?null:Se.quote.off_chain_swap_routing_fee_percentage:2)/100))),d.xp6(9),d.Q6J("ngIf",""!==(null==Se.quote?null:Se.quote.swap_payment_dest)),d.xp6(1),d.Q6J("ngIf",""!==(null==Se.quote?null:Se.quote.swap_payment_dest))}}let O=(()=>{var Xe;class It{constructor(){this.quote={},this.termCaption="",this.showPanel=!0,this.panelExpanded=!1,this.flgShowPanel=!1}ngOnInit(){setTimeout(()=>{this.flgShowPanel=!0},1200)}}return(Xe=It).\u0275fac=function(wt){return new(wt||Xe)},Xe.\u0275cmp=d.Xpm({type:Xe,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(wt,Zt){if(1&wt&&(d.YNc(0,l,1,0,"ng-container",0),d.YNc(1,k,7,9,"ng-template",null,1,d.W1O),d.YNc(3,W,38,15,"ng-template",null,2,d.W1O)),2&wt){const si=d.MAs(2),Ai=d.MAs(4);d.Q6J("ngTemplateOutlet",Zt.showPanel?si:Ai)}},dependencies:[L.mk,L.O5,L.tP,Y.xw,Y.Wh,Y.yH,j.oO,ee.ib,ee.yz,ee.yK,me.Hw,f.d,M.gM,L.JJ]}),It})();function U(Xe,It){1&Xe&&d.GkF(0)}function ge(Xe,It){if(1&Xe&&(d.TgZ(0,"div",3)(1,"span",4),d._uU(2),d.qZA()()),2&Xe){const Se=d.oxw();d.xp6(2),d.Oqu(null!=Se.loopStatus&&Se.loopStatus.error?null==Se.loopStatus?null:Se.loopStatus.error:"Unknown Error.")}}function nt(Xe,It){if(1&Xe&&(d.TgZ(0,"div",3)(1,"div",5)(2,"div",6)(3,"h4",7),d._uU(4,"ID"),d.qZA(),d.TgZ(5,"span",4),d._uU(6),d.qZA()()(),d._UZ(7,"mat-divider",8),d.TgZ(8,"div",5)(9,"div",6)(10,"h4",7),d._uU(11,"HTLC Address"),d.qZA(),d.TgZ(12,"span",4),d._uU(13),d.qZA()()()()),2&Xe){const Se=d.oxw();d.xp6(6),d.Oqu(null==Se.loopStatus?null:Se.loopStatus.id_bytes),d.xp6(7),d.Oqu(null==Se.loopStatus?null:Se.loopStatus.htlc_address)}}let Ue=(()=>{var Xe;class It{constructor(){}}return(Xe=It).\u0275fac=function(wt){return new(wt||Xe)},Xe.\u0275cmp=d.Xpm({type:Xe,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(wt,Zt){if(1&wt&&(d.YNc(0,U,1,0,"ng-container",0),d.YNc(1,ge,3,1,"ng-template",null,1,d.W1O),d.YNc(3,nt,14,2,"ng-template",null,2,d.W1O)),2&wt){const si=d.MAs(2),Ai=d.MAs(4);d.Q6J("ngTemplateOutlet",null!=Zt.loopStatus&&Zt.loopStatus.error?si:Ai)}},dependencies:[L.tP,Y.xw,Y.Wh,Y.yH,f.d]}),It})();var at=m(113);function ye(Xe,It){1&Xe&&d.GkF(0)}const xe=function(Xe,It){return{"small-svg":Xe,"large-svg":It}};function fe(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(Zt){d.CHM(Se);const si=d.oxw();return d.KtG(si.onSwipe(Zt))}),d.O4$(),d.TgZ(1,"svg",7)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),d._UZ(8,"circle",12)(9,"path",13),d.qZA(),d.TgZ(10,"g",14),d._UZ(11,"ellipse",15)(12,"ellipse",16)(13,"rect",17)(14,"rect",18)(15,"rect",19)(16,"rect",20)(17,"rect",21)(18,"rect",22)(19,"rect",23)(20,"rect",24)(21,"rect",25)(22,"rect",26)(23,"rect",27)(24,"rect",28)(25,"rect",29),d.qZA()()()()(),d.kcU(),d.TgZ(26,"div",30)(27,"mat-card-title"),d._uU(28,"Loop In explained."),d.qZA()(),d.TgZ(29,"div",31)(30,"mat-card-subtitle",32),d._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),d.qZA()()()}if(2&Xe){const Se=d.oxw();d.Q6J("@sliderAnimation",Se.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,xe,Se.screenSize===Se.screenSizeEnum.XS,Se.screenSize!==Se.screenSizeEnum.XS))}}function Oe(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(Zt){d.CHM(Se);const si=d.oxw();return d.KtG(si.onSwipe(Zt))}),d.O4$(),d.TgZ(1,"svg",33)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"defs")(5,"linearGradient",34),d._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),d.qZA()(),d.TgZ(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40),d._UZ(13,"rect",41)(14,"rect",42)(15,"rect",43)(16,"circle",44)(17,"rect",45)(18,"rect",46)(19,"circle",47)(20,"rect",48)(21,"rect",49)(22,"rect",50)(23,"rect",51)(24,"rect",52)(25,"circle",53)(26,"circle",54)(27,"circle",55),d.qZA(),d.TgZ(28,"g",56)(29,"g",57)(30,"g",58),d._UZ(31,"path",59)(32,"rect",60)(33,"polygon",61),d.TgZ(34,"g",62),d._UZ(35,"path",63),d.qZA(),d._UZ(36,"rect",64)(37,"rect",65)(38,"rect",66)(39,"rect",67)(40,"rect",68)(41,"rect",69)(42,"rect",70)(43,"path",71)(44,"path",72),d.qZA(),d.TgZ(45,"g",73),d._UZ(46,"path",74)(47,"path",75)(48,"path",76)(49,"path",77)(50,"path",78)(51,"path",79)(52,"path",80)(53,"path",81)(54,"path",82)(55,"path",83)(56,"path",84)(57,"circle",85)(58,"circle",86),d.qZA(),d._UZ(59,"path",87),d.qZA()()()()()(),d.kcU(),d.TgZ(60,"div",30)(61,"mat-card-title"),d._uU(62,"Step 1: Deciding to Loop In"),d.qZA()(),d.TgZ(63,"div",31)(64,"mat-card-subtitle",32),d._uU(65," Your outgoing capacity is depleted and you want to regain it without opening new channels. "),d.qZA()()()}if(2&Xe){const Se=d.oxw();d.Q6J("@sliderAnimation",Se.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,xe,Se.screenSize===Se.screenSizeEnum.XS,Se.screenSize!==Se.screenSizeEnum.XS))}}function oe(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(Zt){d.CHM(Se);const si=d.oxw();return d.KtG(si.onSwipe(Zt))}),d.O4$(),d.TgZ(1,"svg",88)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"defs")(5,"linearGradient",89),d._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),d.qZA()(),d.TgZ(9,"g",90)(10,"g",91)(11,"g",92)(12,"g",93)(13,"g",94),d._UZ(14,"circle",95)(15,"path",96),d.TgZ(16,"g",97),d._UZ(17,"polygon",98)(18,"polygon",99)(19,"path",100),d.qZA(),d.TgZ(20,"g",101),d._UZ(21,"polygon",102)(22,"path",103)(23,"rect",104)(24,"path",105)(25,"rect",106)(26,"rect",107)(27,"rect",108)(28,"rect",109)(29,"circle",110)(30,"path",111),d.TgZ(31,"g",112)(32,"g",113),d._UZ(33,"g",114),d.qZA(),d._UZ(34,"g",115),d.qZA()()(),d.TgZ(35,"g",116)(36,"g",40),d._UZ(37,"rect",117)(38,"rect",42)(39,"rect",43)(40,"circle",118)(41,"rect",45)(42,"rect",46)(43,"circle",119)(44,"rect",48)(45,"rect",49)(46,"rect",50)(47,"rect",51)(48,"rect",52)(49,"circle",120)(50,"circle",54)(51,"circle",55)(52,"circle",121),d.qZA(),d.TgZ(53,"g",56)(54,"g",57)(55,"g",58),d._UZ(56,"path",59)(57,"rect",60)(58,"polygon",61),d.TgZ(59,"g",122),d._UZ(60,"path",63),d.qZA(),d._UZ(61,"rect",123)(62,"rect",124)(63,"rect",125)(64,"rect",126)(65,"rect",127)(66,"rect",128)(67,"rect",129)(68,"path",130)(69,"path",72),d.qZA(),d.TgZ(70,"g",73),d._UZ(71,"path",131)(72,"path",132)(73,"path",133)(74,"path",134)(75,"path",135)(76,"path",136)(77,"path",80)(78,"path",81)(79,"path",137)(80,"path",83)(81,"path",138)(82,"circle",85)(83,"circle",86),d.qZA(),d._UZ(84,"path",139),d.qZA()()()(),d._UZ(85,"path",140)(86,"path",141),d.qZA()()()(),d.kcU(),d.TgZ(87,"div",30)(88,"mat-card-title"),d._uU(89,"Step 2: Send payment out"),d.qZA()(),d.TgZ(90,"div",31)(91,"mat-card-subtitle",32),d._uU(92," Your node sends funds on-chain to loop server to be swapped with off-chain liquidity. "),d.qZA()()()}if(2&Xe){const Se=d.oxw();d.Q6J("@sliderAnimation",Se.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,xe,Se.screenSize===Se.screenSizeEnum.XS,Se.screenSize!==Se.screenSizeEnum.XS))}}function Fe(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(Zt){d.CHM(Se);const si=d.oxw();return d.KtG(si.onSwipe(Zt))}),d.O4$(),d.TgZ(1,"svg",142)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"g",90)(5,"g",143)(6,"g",144)(7,"g")(8,"g",145)(9,"g",146),d._UZ(10,"circle",12)(11,"path",147),d.qZA(),d.TgZ(12,"g",14),d._UZ(13,"ellipse",148)(14,"ellipse",16)(15,"rect",17)(16,"rect",18)(17,"rect",19)(18,"rect",20)(19,"rect",21)(20,"rect",22)(21,"rect",23)(22,"rect",24)(23,"rect",25)(24,"rect",26)(25,"rect",27)(26,"rect",28)(27,"rect",29),d.qZA()(),d.TgZ(28,"g",149),d._UZ(29,"polygon",150)(30,"polygon",99)(31,"path",151),d.qZA(),d.TgZ(32,"g",152),d._UZ(33,"polygon",102)(34,"path",103)(35,"rect",104)(36,"path",105)(37,"rect",106)(38,"rect",107)(39,"rect",108)(40,"rect",109)(41,"circle",110)(42,"path",111),d.TgZ(43,"g",112)(44,"g",113),d._UZ(45,"g",114),d.qZA(),d._UZ(46,"g",115),d.qZA()()(),d._UZ(47,"path",153),d.qZA()()()(),d.kcU(),d.TgZ(48,"div",30)(49,"mat-card-title"),d._uU(50,"Step 3: Recieve Funds Off-chain"),d.qZA()(),d.TgZ(51,"div",31)(52,"mat-card-subtitle",32),d._uU(53," Loop server sends equivalent funds off-chain to your node by making a lightning payment to you. "),d.qZA()()()}if(2&Xe){const Se=d.oxw();d.Q6J("@sliderAnimation",Se.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,xe,Se.screenSize===Se.screenSizeEnum.XS,Se.screenSize!==Se.screenSizeEnum.XS))}}function De(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(Zt){d.CHM(Se);const si=d.oxw();return d.KtG(si.onSwipe(Zt))}),d.O4$(),d.TgZ(1,"svg",154)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"defs")(5,"linearGradient",34),d._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),d.qZA()(),d.TgZ(9,"g",90)(10,"g",155)(11,"g",156)(12,"g",157)(13,"g",158)(14,"g",40),d._UZ(15,"rect",159)(16,"rect",160)(17,"rect",161)(18,"circle",162)(19,"rect",163)(20,"rect",164)(21,"circle",165)(22,"rect",166)(23,"rect",167)(24,"rect",168)(25,"rect",169)(26,"circle",170)(27,"circle",171),d.qZA(),d.TgZ(28,"g",172),d._UZ(29,"path",173)(30,"rect",174)(31,"polygon",175)(32,"circle",176)(33,"path",177)(34,"rect",178)(35,"rect",179)(36,"rect",180)(37,"rect",181)(38,"rect",182)(39,"rect",183)(40,"rect",184)(41,"path",185)(42,"path",186),d.qZA(),d._UZ(43,"path",187),d.qZA()(),d._UZ(44,"circle",188),d.qZA()()()(),d.kcU(),d.TgZ(45,"div",30)(46,"mat-card-title"),d._uU(47,"Done!"),d.qZA()(),d.TgZ(48,"div",31)(49,"mat-card-subtitle",32),d._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. "),d.qZA()()()}if(2&Xe){const Se=d.oxw();d.Q6J("@sliderAnimation",Se.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,xe,Se.screenSize===Se.screenSizeEnum.XS,Se.screenSize!==Se.screenSizeEnum.XS))}}let he=(()=>{var Xe;class It{constructor(wt){this.commonService=wt,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new d.vpe,this.screenSize="",this.screenSizeEnum=h.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(wt){2===wt.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===wt.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return(Xe=It).\u0275fac=function(wt){return new(wt||Xe)(d.Y36(V.v))},Xe.\u0275cmp=d.Xpm({type:Xe,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(wt,Zt){if(1&wt&&(d.YNc(0,ye,1,0,"ng-container",0),d.YNc(1,fe,32,5,"ng-template",null,1,d.W1O),d.YNc(3,Oe,66,5,"ng-template",null,2,d.W1O),d.YNc(5,oe,93,5,"ng-template",null,3,d.W1O),d.YNc(7,Fe,54,5,"ng-template",null,4,d.W1O),d.YNc(9,De,51,5,"ng-template",null,5,d.W1O)),2&wt){const si=d.MAs(2),Ai=d.MAs(4),Oi=d.MAs(6),Qi=d.MAs(8),en=d.MAs(10);d.Q6J("ngTemplateOutlet",1===Zt.stepNumber?si:2===Zt.stepNumber?Ai:3===Zt.stepNumber?Oi:4===Zt.stepNumber?Qi:en)}},dependencies:[L.mk,L.tP,Y.xw,Y.Wh,Y.yH,j.oO,J.$j,J.n5],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:[at.l]}}),It})();function Me(Xe,It){1&Xe&&d.GkF(0)}const pe=function(Xe,It){return{"small-svg":Xe,"large-svg":It}};function Ve(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(Zt){d.CHM(Se);const si=d.oxw();return d.KtG(si.onSwipe(Zt))}),d.O4$(),d.TgZ(1,"svg",7)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),d._UZ(8,"circle",12)(9,"path",13),d.qZA(),d.TgZ(10,"g",14),d._UZ(11,"ellipse",15)(12,"ellipse",16)(13,"rect",17)(14,"rect",18)(15,"rect",19)(16,"rect",20)(17,"rect",21)(18,"rect",22)(19,"rect",23)(20,"rect",24)(21,"rect",25)(22,"rect",26)(23,"rect",27)(24,"rect",28)(25,"rect",29),d.qZA()()()()(),d.kcU(),d.TgZ(26,"div",30)(27,"mat-card-title"),d._uU(28,"Loop Out explained."),d.qZA()(),d.TgZ(29,"div",31)(30,"mat-card-subtitle",32),d._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),d.qZA()()()}if(2&Xe){const Se=d.oxw();d.Q6J("@sliderAnimation",Se.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,pe,Se.screenSize===Se.screenSizeEnum.XS,Se.screenSize!==Se.screenSizeEnum.XS))}}function Qe(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(Zt){d.CHM(Se);const si=d.oxw();return d.KtG(si.onSwipe(Zt))}),d.O4$(),d.TgZ(1,"svg",33)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"defs")(5,"linearGradient",34),d._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),d.qZA()(),d.TgZ(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40)(13,"g",41)(14,"g",42),d._UZ(15,"rect",43)(16,"rect",44)(17,"rect",45)(18,"circle",46)(19,"rect",47)(20,"rect",48)(21,"circle",49)(22,"rect",50)(23,"rect",51)(24,"rect",52)(25,"rect",53)(26,"circle",54)(27,"circle",55),d.qZA(),d.TgZ(28,"g",56),d._UZ(29,"path",57)(30,"rect",58)(31,"polygon",59)(32,"circle",60)(33,"path",61)(34,"rect",62)(35,"rect",63)(36,"rect",64)(37,"rect",65)(38,"rect",66)(39,"rect",67)(40,"rect",68)(41,"path",69)(42,"path",70),d.qZA(),d._UZ(43,"path",71),d.qZA()(),d._UZ(44,"circle",72),d.qZA()()()(),d.kcU(),d.TgZ(45,"div",30)(46,"mat-card-title"),d._uU(47,"Step 1: Deciding to Loop Out"),d.qZA()(),d.TgZ(48,"div",31)(49,"mat-card-subtitle",32),d._uU(50," You have a channel with a local balance amount and you want to gain inbound liquidity. "),d.qZA()()()}if(2&Xe){const Se=d.oxw();d.Q6J("@sliderAnimation",Se.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,pe,Se.screenSize===Se.screenSizeEnum.XS,Se.screenSize!==Se.screenSizeEnum.XS))}}function Pe(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(Zt){d.CHM(Se);const si=d.oxw();return d.KtG(si.onSwipe(Zt))}),d.O4$(),d.TgZ(1,"svg",73)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"defs")(5,"linearGradient",74),d._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),d.qZA()(),d.TgZ(9,"g",8)(10,"g",75)(11,"g",76),d._UZ(12,"circle",77)(13,"path",78),d.TgZ(14,"g",79),d._UZ(15,"polygon",80)(16,"polygon",81)(17,"path",82),d.qZA(),d.TgZ(18,"g",83),d._UZ(19,"polygon",84)(20,"path",85)(21,"rect",86)(22,"path",87)(23,"rect",88)(24,"rect",89)(25,"rect",90)(26,"rect",91)(27,"circle",92)(28,"path",93),d.TgZ(29,"g",94)(30,"g",95),d._UZ(31,"g",96),d.qZA(),d._UZ(32,"g",97),d.qZA(),d._UZ(33,"path",98),d.qZA(),d.TgZ(34,"g",99)(35,"g",41)(36,"g",42),d._UZ(37,"rect",43)(38,"rect",44)(39,"rect",45)(40,"circle",46)(41,"rect",47)(42,"rect",48)(43,"circle",49)(44,"rect",50)(45,"rect",51)(46,"rect",52)(47,"rect",53)(48,"circle",100)(49,"circle",54)(50,"circle",55)(51,"circle",101),d.qZA(),d.TgZ(52,"g",56),d._UZ(53,"path",57)(54,"rect",102)(55,"polygon",103)(56,"circle",104)(57,"path",61)(58,"rect",105)(59,"rect",106)(60,"rect",107)(61,"rect",108)(62,"rect",109)(63,"rect",110)(64,"rect",68)(65,"path",69)(66,"path",70),d.qZA(),d._UZ(67,"path",111),d.qZA()()()()()(),d.kcU(),d.TgZ(68,"div",30)(69,"mat-card-title"),d._uU(70,"Step 2: Send lightning payment"),d.qZA()(),d.TgZ(71,"div",31)(72,"mat-card-subtitle",32),d._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. "),d.qZA()()()}if(2&Xe){const Se=d.oxw();d.Q6J("@sliderAnimation",Se.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,pe,Se.screenSize===Se.screenSizeEnum.XS,Se.screenSize!==Se.screenSizeEnum.XS))}}function de(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(Zt){d.CHM(Se);const si=d.oxw();return d.KtG(si.onSwipe(Zt))}),d.O4$(),d.TgZ(1,"svg",112)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"g",8)(5,"g",113)(6,"g",114)(7,"g",115)(8,"g",116),d._UZ(9,"circle",12)(10,"path",117),d.qZA(),d.TgZ(11,"g",14),d._UZ(12,"ellipse",118)(13,"ellipse",16)(14,"rect",17)(15,"rect",18)(16,"rect",19)(17,"rect",20)(18,"rect",21)(19,"rect",22)(20,"rect",23)(21,"rect",24)(22,"rect",25)(23,"rect",26)(24,"rect",27)(25,"rect",28)(26,"rect",29),d.qZA()(),d.TgZ(27,"g",119),d._UZ(28,"polygon",80)(29,"polygon",120)(30,"path",82),d.qZA(),d.TgZ(31,"g",121),d._UZ(32,"polygon",84)(33,"path",85)(34,"rect",86)(35,"path",87)(36,"rect",88)(37,"rect",89)(38,"rect",90)(39,"rect",91)(40,"circle",122)(41,"path",93),d.TgZ(42,"g",94)(43,"g",95),d._UZ(44,"g",96),d.qZA(),d._UZ(45,"g",97),d.qZA(),d._UZ(46,"path",123),d.qZA()()()()(),d.kcU(),d.TgZ(47,"div",30)(48,"mat-card-title"),d._uU(49,"Step 3: Receive funds back"),d.qZA()(),d.TgZ(50,"div",31)(51,"mat-card-subtitle",32),d._uU(52," Loop service then sends you a payment on-chain for the amount same as the lightning payment minus the fee. "),d.qZA()()()}if(2&Xe){const Se=d.oxw();d.Q6J("@sliderAnimation",Se.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,pe,Se.screenSize===Se.screenSizeEnum.XS,Se.screenSize!==Se.screenSizeEnum.XS))}}function rt(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(Zt){d.CHM(Se);const si=d.oxw();return d.KtG(si.onSwipe(Zt))}),d.O4$(),d.TgZ(1,"svg",124)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"defs")(5,"linearGradient",34),d._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),d.qZA()(),d.TgZ(9,"g",8)(10,"g",125)(11,"g",126)(12,"g",42),d._UZ(13,"rect",127)(14,"rect",128)(15,"rect",129)(16,"circle",130)(17,"rect",131)(18,"rect",132)(19,"circle",133)(20,"rect",134)(21,"rect",135)(22,"rect",136)(23,"rect",137)(24,"rect",138)(25,"circle",139)(26,"circle",140)(27,"circle",141),d.qZA(),d.TgZ(28,"g",142)(29,"g",143)(30,"g",144),d._UZ(31,"path",145)(32,"rect",146)(33,"polygon",147),d.TgZ(34,"g",148),d._UZ(35,"path",149),d.qZA(),d._UZ(36,"rect",150)(37,"rect",151)(38,"rect",152)(39,"rect",153)(40,"rect",154)(41,"rect",155)(42,"rect",156)(43,"path",157)(44,"path",158),d.qZA(),d.TgZ(45,"g",159),d._UZ(46,"path",160)(47,"path",161)(48,"path",162)(49,"path",163)(50,"path",164)(51,"path",165)(52,"path",166)(53,"path",167)(54,"path",168)(55,"path",169)(56,"path",170)(57,"circle",171)(58,"circle",172),d.qZA(),d._UZ(59,"path",173),d.qZA()()()()()(),d.kcU(),d.TgZ(60,"div",30)(61,"mat-card-title"),d._uU(62,"Done!"),d.qZA()(),d.TgZ(63,"div",31)(64,"mat-card-subtitle",32),d._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. "),d.qZA()()()}if(2&Xe){const Se=d.oxw();d.Q6J("@sliderAnimation",Se.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,pe,Se.screenSize===Se.screenSizeEnum.XS,Se.screenSize!==Se.screenSizeEnum.XS))}}let Ke=(()=>{var Xe;class It{constructor(wt){this.commonService=wt,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new d.vpe,this.screenSize="",this.screenSizeEnum=h.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(wt){2===wt.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===wt.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return(Xe=It).\u0275fac=function(wt){return new(wt||Xe)(d.Y36(V.v))},Xe.\u0275cmp=d.Xpm({type:Xe,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(wt,Zt){if(1&wt&&(d.YNc(0,Me,1,0,"ng-container",0),d.YNc(1,Ve,32,5,"ng-template",null,1,d.W1O),d.YNc(3,Qe,51,5,"ng-template",null,2,d.W1O),d.YNc(5,Pe,74,5,"ng-template",null,3,d.W1O),d.YNc(7,de,53,5,"ng-template",null,4,d.W1O),d.YNc(9,rt,66,5,"ng-template",null,5,d.W1O)),2&wt){const si=d.MAs(2),Ai=d.MAs(4),Oi=d.MAs(6),Qi=d.MAs(8),en=d.MAs(10);d.Q6J("ngTemplateOutlet",1===Zt.stepNumber?si:2===Zt.stepNumber?Ai:3===Zt.stepNumber?Oi:4===Zt.stepNumber?Qi:en)}},dependencies:[L.mk,L.tP,Y.xw,Y.Wh,Y.yH,j.oO,J.$j,J.n5],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:[at.l]}}),It})();const lt=["stepper"];function Ut(Xe,It){if(1&Xe&&(d.TgZ(0,"div",48)(1,"p",49)(2,"strong"),d._uU(3,"Channel Peer:\xa0"),d.qZA(),d._uU(4),d.ALo(5,"titlecase"),d.qZA(),d.TgZ(6,"p",50)(7,"strong"),d._uU(8,"Channel ID:\xa0"),d.qZA(),d._uU(9),d.qZA(),d._UZ(10,"p",50),d.qZA()),2&Xe){const Se=d.oxw(2);d.xp6(4),d.Oqu(d.lcZ(5,2,Se.channel.remote_alias)),d.xp6(5),d.Oqu(Se.channel.chan_id)}}function ht(Xe,It){if(1&Xe&&d._uU(0),2&Xe){const Se=d.oxw(2);d.Oqu(Se.inputFormLabel)}}function Ge(Xe,It){1&Xe&&(d.TgZ(0,"mat-error"),d._uU(1,"Amount is required."),d.qZA())}function yt(Xe,It){if(1&Xe&&(d.TgZ(0,"mat-error"),d._uU(1),d.ALo(2,"number"),d.qZA()),2&Xe){const Se=d.oxw(2);d.xp6(1),d.hij("Amount must be greater than or equal to ",d.lcZ(2,1,Se.minQuote.amount),".")}}function be(Xe,It){if(1&Xe&&(d.TgZ(0,"mat-error"),d._uU(1),d.ALo(2,"number"),d.qZA()),2&Xe){const Se=d.oxw(2);d.xp6(1),d.hij("Amount must be less than or equal to ",d.lcZ(2,1,Se.maxQuote.amount),".")}}function qe(Xe,It){1&Xe&&(d.TgZ(0,"mat-error"),d._uU(1,"Confirmation target is required."),d.qZA())}function Ie(Xe,It){1&Xe&&(d.TgZ(0,"mat-error"),d._uU(1,"Confirmation target must be a positive number."),d.qZA())}function X(Xe,It){1&Xe&&(d.TgZ(0,"mat-error"),d._uU(1,"Percentage is required."),d.qZA())}function mt(Xe,It){1&Xe&&(d.TgZ(0,"mat-error"),d._uU(1,"Percentage must be a positive number."),d.qZA())}function Tt(Xe,It){if(1&Xe&&(d.TgZ(0,"mat-form-field",50)(1,"mat-label"),d._uU(2,"Max Off-chain Routing Fee (%)"),d.qZA(),d._UZ(3,"input",51),d.YNc(4,X,2,0,"mat-error",25),d.YNc(5,mt,2,0,"mat-error",25),d.qZA()),2&Xe){const Se=d.oxw(2);d.xp6(3),d.Q6J("step",1),d.xp6(1),d.Q6J("ngIf",null==Se.inputFormGroup.controls.routingFeePercent.errors?null:Se.inputFormGroup.controls.routingFeePercent.errors.required),d.xp6(1),d.Q6J("ngIf",null==Se.inputFormGroup.controls.routingFeePercent.errors?null:Se.inputFormGroup.controls.routingFeePercent.errors.min)}}function it(Xe,It){1&Xe&&(d.TgZ(0,"div",52)(1,"mat-slide-toggle",53),d._uU(2,"Fast"),d.qZA(),d.TgZ(3,"mat-icon",54),d._uU(4,"info_outline"),d.qZA()())}function je(Xe,It){if(1&Xe&&d._uU(0),2&Xe){const Se=d.oxw(2);d.Oqu(Se.quoteFormLabel)}}function zt(Xe,It){1&Xe&&(d.TgZ(0,"p",55)(1,"mat-icon",56),d._uU(2,"close"),d.qZA(),d._uU(3,"Local balance amount is insufficient for swap."),d.qZA())}function xt(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"button",57),d.NdJ("click",function(){d.CHM(Se);const Zt=d.oxw(2);return d.KtG(Zt.onValidateAmount())}),d._uU(1,"Next"),d.qZA()}}function Nt(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"button",58),d.NdJ("click",function(){d.CHM(Se);const Zt=d.oxw(2);return d.KtG(Zt.onLoop())}),d._uU(1),d.qZA()}if(2&Xe){const Se=d.oxw(2);d.xp6(1),d.hij("Initiate ",Se.loopDirectionCaption,"")}}function Gt(Xe,It){if(1&Xe&&d._uU(0),2&Xe){const Se=d.oxw(3);d.Oqu(Se.addressFormLabel)}}function ke(Xe,It){1&Xe&&(d.TgZ(0,"mat-error"),d._uU(1,"Address is required."),d.qZA())}function $(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"mat-step",16)(1,"form",17),d.YNc(2,Gt,1,1,"ng-template",18),d.TgZ(3,"div",59)(4,"mat-radio-group",60),d.NdJ("change",function(Zt){d.CHM(Se);const si=d.oxw(2);return d.KtG(si.onAddressTypeChange(Zt))}),d.TgZ(5,"mat-radio-button",61),d._uU(6,"Node Local Address"),d.qZA(),d.TgZ(7,"mat-radio-button",62),d._uU(8,"External Address"),d.qZA()(),d.TgZ(9,"mat-form-field",63)(10,"mat-label"),d._uU(11,"Address"),d.qZA(),d._UZ(12,"input",64),d.YNc(13,ke,2,0,"mat-error",25),d.qZA()(),d.TgZ(14,"div",29)(15,"button",65),d.NdJ("click",function(){d.CHM(Se);const Zt=d.oxw(2);return d.KtG(Zt.onLoop())}),d._uU(16),d.qZA()()()()}if(2&Xe){const Se=d.oxw(2);d.Q6J("stepControl",Se.addressFormGroup)("editable",Se.flgEditable),d.xp6(1),d.Q6J("formGroup",Se.addressFormGroup),d.xp6(11),d.Q6J("required","external"===Se.addressFormGroup.controls.addressType.value),d.xp6(1),d.Q6J("ngIf",null==Se.addressFormGroup.controls.address.errors?null:Se.addressFormGroup.controls.address.errors.required),d.xp6(3),d.hij("Initiate ",Se.loopDirectionCaption,"")}}function ue(Xe,It){if(1&Xe&&d._uU(0),2&Xe){const Se=d.oxw(2);d.hij("",Se.loopDirectionCaption," Status")}}function Ae(Xe,It){if(1&Xe&&(d.TgZ(0,"mat-icon",66),d._uU(1),d.qZA()),2&Xe){const Se=d.oxw(2);d.xp6(1),d.Oqu(Se.loopStatus&&null!=Se.loopStatus&&Se.loopStatus.id_bytes?"check":"close")}}function Je(Xe,It){1&Xe&&d._UZ(0,"div")}function $t(Xe,It){1&Xe&&d._UZ(0,"mat-progress-bar",67)}function Vt(Xe,It){if(1&Xe&&(d.TgZ(0,"h4",68),d._uU(1),d.qZA()),2&Xe){const Se=d.oxw(2);d.xp6(1),d.Oqu(Se.loopStatus&&Se.loopStatus.error?Se.loopDirectionCaption+" failed.":Se.loopStatus&&Se.loopStatus.id_bytes&&Se.channel?Se.loopDirectionCaption+" request placed successfully. You can check the status of the request on the 'Loop' menu.":Se.loopDirectionCaption+" request placed successfully.")}}function ii(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"button",69),d.NdJ("click",function(){d.CHM(Se);const Zt=d.oxw(2);return d.KtG(Zt.goToLoop())}),d._uU(1,"Check Status"),d.qZA()}}function pt(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"button",70),d.NdJ("click",function(){d.CHM(Se);const Zt=d.oxw(2);return d.KtG(Zt.onRestart())}),d._uU(1,"Start Again"),d.qZA()}}function ot(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),d._uU(5),d.qZA()(),d.TgZ(6,"div",8)(7,"button",9),d.NdJ("click",function(){d.CHM(Se);const Zt=d.oxw();return d.KtG(Zt.showInfo())}),d._uU(8,"?"),d.qZA(),d.TgZ(9,"button",10),d.NdJ("click",function(){d.CHM(Se);const Zt=d.oxw();return d.KtG(Zt.onClose())}),d._uU(10,"X"),d.qZA()()(),d.TgZ(11,"mat-card-content",11)(12,"div",12),d.YNc(13,Ut,11,4,"div",13),d.TgZ(14,"mat-vertical-stepper",14,15),d.NdJ("selectionChange",function(Zt){d.CHM(Se);const si=d.oxw();return d.KtG(si.stepSelectionChanged(Zt))}),d.TgZ(16,"mat-step",16)(17,"form",17),d.YNc(18,ht,1,1,"ng-template",18),d.TgZ(19,"div",19),d._UZ(20,"rtl-loop-quote",20)(21,"rtl-loop-quote",20),d.qZA(),d.TgZ(22,"div",21)(23,"mat-form-field",22)(24,"mat-label"),d._uU(25,"Amount"),d.qZA(),d._UZ(26,"input",23),d.TgZ(27,"mat-hint"),d._uU(28),d.ALo(29,"number"),d.ALo(30,"number"),d.qZA(),d.TgZ(31,"span",24),d._uU(32,"Sats"),d.qZA(),d.YNc(33,Ge,2,0,"mat-error",25),d.YNc(34,yt,3,3,"mat-error",25),d.YNc(35,be,3,3,"mat-error",25),d.qZA(),d.TgZ(36,"mat-form-field",22)(37,"mat-label"),d._uU(38,"Sweep Confirmation Target"),d.qZA(),d._UZ(39,"input",26),d.YNc(40,qe,2,0,"mat-error",25),d.YNc(41,Ie,2,0,"mat-error",25),d.qZA(),d.YNc(42,Tt,6,3,"mat-form-field",27),d.qZA(),d.YNc(43,it,5,0,"div",28),d.TgZ(44,"div",29)(45,"button",30),d.NdJ("click",function(){d.CHM(Se);const Zt=d.oxw();return d.KtG(Zt.onEstimateQuote())}),d._uU(46,"Estimate Quote"),d.qZA()()()(),d.TgZ(47,"mat-step",16)(48,"form",17),d.YNc(49,je,1,1,"ng-template",18),d._UZ(50,"rtl-loop-quote",31),d.YNc(51,zt,4,0,"p",32),d.TgZ(52,"div",29),d.YNc(53,xt,2,0,"button",33),d.YNc(54,Nt,2,1,"button",34),d.qZA()()(),d.YNc(55,$,17,6,"mat-step",35),d.TgZ(56,"mat-step",36)(57,"form",17),d.YNc(58,ue,1,1,"ng-template",18),d.TgZ(59,"div",37)(60,"mat-expansion-panel",38)(61,"mat-expansion-panel-header")(62,"mat-panel-title")(63,"span",39),d._uU(64),d.YNc(65,Ae,2,1,"mat-icon",40),d.qZA()()(),d.YNc(66,Je,1,0,"div",41),d.qZA(),d.YNc(67,$t,1,0,"mat-progress-bar",42),d.qZA(),d.YNc(68,Vt,2,1,"h4",43),d.TgZ(69,"div",29),d.YNc(70,ii,2,0,"button",44),d.YNc(71,pt,2,0,"button",45),d.qZA()()()(),d.TgZ(72,"div",46)(73,"button",47),d._uU(74,"Close"),d.qZA()()()()()()}if(2&Xe){const Se=d.oxw(),wt=d.MAs(2);d.Q6J("@opacityAnimation",void 0),d.xp6(3),d.Q6J("fxFlex",Se.screenSize===Se.screenSizeEnum.XS||Se.screenSize===Se.screenSizeEnum.SM?"83":"91"),d.xp6(2),d.Oqu(Se.channel?"Channel "+Se.loopDirectionCaption:Se.loopDirectionCaption),d.xp6(1),d.Q6J("fxFlex",Se.screenSize===Se.screenSizeEnum.XS||Se.screenSize===Se.screenSizeEnum.SM?"17":"9"),d.xp6(7),d.Q6J("ngIf",Se.channel),d.xp6(1),d.Q6J("linear",!0),d.xp6(2),d.Q6J("stepControl",Se.inputFormGroup)("editable",Se.flgEditable),d.xp6(1),d.Q6J("formGroup",Se.inputFormGroup),d.xp6(3),d.Q6J("quote",Se.minQuote)("termCaption","min")("panelExpanded",!1)("showPanel",!0),d.xp6(1),d.Q6J("quote",Se.maxQuote)("termCaption","max")("panelExpanded",!1)("showPanel",!0),d.xp6(2),d.Q6J("fxFlex",Se.direction===Se.LoopTypeEnum.LOOP_OUT?"35":"48"),d.xp6(3),d.Q6J("step",1e3),d.xp6(2),d.AsE("Range: ",d.lcZ(29,51,Se.minQuote.amount),"-",d.lcZ(30,53,Se.maxQuote.amount),""),d.xp6(5),d.Q6J("ngIf",null==Se.inputFormGroup.controls.amount.errors?null:Se.inputFormGroup.controls.amount.errors.required),d.xp6(1),d.Q6J("ngIf",null==Se.inputFormGroup.controls.amount.errors?null:Se.inputFormGroup.controls.amount.errors.min),d.xp6(1),d.Q6J("ngIf",null==Se.inputFormGroup.controls.amount.errors?null:Se.inputFormGroup.controls.amount.errors.max),d.xp6(1),d.Q6J("fxFlex",Se.direction===Se.LoopTypeEnum.LOOP_OUT?"30":"48"),d.xp6(3),d.Q6J("step",1),d.xp6(1),d.Q6J("ngIf",null==Se.inputFormGroup.controls.sweepConfTarget.errors?null:Se.inputFormGroup.controls.sweepConfTarget.errors.required),d.xp6(1),d.Q6J("ngIf",null==Se.inputFormGroup.controls.sweepConfTarget.errors?null:Se.inputFormGroup.controls.sweepConfTarget.errors.min),d.xp6(1),d.Q6J("ngIf",Se.direction===Se.LoopTypeEnum.LOOP_OUT),d.xp6(1),d.Q6J("ngIf",Se.direction===Se.LoopTypeEnum.LOOP_OUT),d.xp6(4),d.Q6J("stepControl",Se.quoteFormGroup)("editable",Se.flgEditable),d.xp6(1),d.Q6J("formGroup",Se.quoteFormGroup),d.xp6(2),d.Q6J("quote",Se.quote)("showPanel",!1),d.xp6(1),d.Q6J("ngIf",Se.inputFormGroup.controls.amount.value>Se.localBalanceToCompare),d.xp6(2),d.Q6J("ngIf",Se.direction===Se.LoopTypeEnum.LOOP_OUT),d.xp6(1),d.Q6J("ngIf",Se.direction===Se.LoopTypeEnum.LOOP_IN),d.xp6(1),d.Q6J("ngIf",Se.direction===Se.LoopTypeEnum.LOOP_OUT),d.xp6(1),d.Q6J("stepControl",Se.statusFormGroup),d.xp6(1),d.Q6J("formGroup",Se.statusFormGroup),d.xp6(3),d.Q6J("expanded",!!Se.loopStatus),d.xp6(4),d.Oqu(Se.loopStatus?Se.loopStatus.id_bytes?Se.loopDirectionCaption+" request details":Se.loopDirectionCaption+" error details":"Waiting for "+Se.loopDirectionCaption+" request..."),d.xp6(1),d.Q6J("ngIf",Se.loopStatus),d.xp6(1),d.Q6J("ngIf",!Se.loopStatus)("ngIfElse",wt),d.xp6(1),d.Q6J("ngIf",!Se.loopStatus),d.xp6(1),d.Q6J("ngIf",Se.loopStatus),d.xp6(2),d.Q6J("ngIf",Se.loopStatus&&Se.loopStatus.id_bytes&&Se.channel),d.xp6(1),d.Q6J("ngIf",Se.loopStatus&&(Se.loopStatus.error||!Se.loopStatus.id_bytes)),d.xp6(2),d.Q6J("mat-dialog-close",!1)}}function ft(Xe,It){if(1&Xe&&d._UZ(0,"rtl-loop-status",71),2&Xe){const Se=d.oxw();d.Q6J("loopStatus",Se.loopStatus)}}function St(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"rtl-loop-out-info-graphics",88),d.NdJ("stepNumberChange",function(Zt){d.CHM(Se);const si=d.oxw(2);return d.KtG(si.stepNumber=Zt)}),d.qZA()}if(2&Xe){const Se=d.oxw(2);d.Q6J("animationDirection",Se.animationDirection)("stepNumber",Se.stepNumber)}}function gt(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"rtl-loop-in-info-graphics",88),d.NdJ("stepNumberChange",function(Zt){d.CHM(Se);const si=d.oxw(2);return d.KtG(si.stepNumber=Zt)}),d.qZA()}if(2&Xe){const Se=d.oxw(2);d.Q6J("animationDirection",Se.animationDirection)("stepNumber",Se.stepNumber)}}const $e=function(Xe,It){return{"dot-primary":Xe,"dot-primary-lighter":It}};function _t(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"span",89),d.NdJ("click",function(){const si=d.CHM(Se).$implicit,Ai=d.oxw(2);return d.KtG(Ai.onStepChanged(si))}),d._UZ(1,"p",90),d.qZA()}if(2&Xe){const Se=It.$implicit,wt=d.oxw(2);d.xp6(1),d.Q6J("ngClass",d.WLB(1,$e,wt.stepNumber===Se,wt.stepNumber!==Se))}}function vt(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"button",91),d.NdJ("click",function(){d.CHM(Se);const Zt=d.oxw(2);return d.KtG(Zt.onReadMore())}),d._uU(1,"Read More"),d.qZA()}}function He(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"button",92),d.NdJ("click",function(){d.CHM(Se);const Zt=d.oxw(2);return d.KtG(Zt.onStepChanged(4))}),d._uU(1,"Back"),d.qZA()}}function Et(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"button",93),d.NdJ("click",function(){d.CHM(Se);const Zt=d.oxw(2);return Zt.flgShowInfo=!1,d.KtG(Zt.stepNumber=1)}),d._uU(1,"Close"),d.qZA()}}function At(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"button",94),d.NdJ("click",function(){d.CHM(Se);const Zt=d.oxw(2);return Zt.flgShowInfo=!1,d.KtG(Zt.stepNumber=1)}),d._uU(1,"Close"),d.qZA()}}function Qt(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"button",95),d.NdJ("click",function(){d.CHM(Se);const Zt=d.oxw(2);return d.KtG(Zt.onStepChanged(Zt.stepNumber-1))}),d._uU(1,"Back"),d.qZA()}}function zi(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"button",96),d.NdJ("click",function(){d.CHM(Se);const Zt=d.oxw(2);return d.KtG(Zt.onStepChanged(Zt.stepNumber+1))}),d._uU(1,"Next"),d.qZA()}}const Ni=function(){return[1,2,3,4,5]};function Mi(Xe,It){if(1&Xe){const Se=d.EpF();d.TgZ(0,"div",72)(1,"div",19)(2,"mat-card-header",73)(3,"div",74),d._UZ(4,"span",7),d.qZA(),d.TgZ(5,"div",75)(6,"button",76),d.NdJ("click",function(){d.CHM(Se);const Zt=d.oxw();return Zt.flgShowInfo=!1,d.KtG(Zt.stepNumber=1)}),d._uU(7,"X"),d.qZA()()(),d.TgZ(8,"mat-card-content",77),d.YNc(9,St,1,2,"rtl-loop-out-info-graphics",78),d.YNc(10,gt,1,2,"rtl-loop-in-info-graphics",78),d.qZA(),d.TgZ(11,"div",79),d.YNc(12,_t,2,4,"span",80),d.qZA(),d.TgZ(13,"div",81),d.YNc(14,vt,2,0,"button",82),d.YNc(15,He,2,0,"button",83),d.YNc(16,Et,2,0,"button",84),d.YNc(17,At,2,0,"button",85),d.YNc(18,Qt,2,0,"button",86),d.YNc(19,zi,2,0,"button",87),d.qZA()()()}if(2&Xe){const Se=d.oxw();d.Q6J("@opacityAnimation",void 0),d.xp6(9),d.Q6J("ngIf",Se.direction===Se.LoopTypeEnum.LOOP_OUT),d.xp6(1),d.Q6J("ngIf",Se.direction===Se.LoopTypeEnum.LOOP_IN),d.xp6(2),d.Q6J("ngForOf",d.DdM(10,Ni)),d.xp6(2),d.Q6J("ngIf",5===Se.stepNumber),d.xp6(1),d.Q6J("ngIf",5===Se.stepNumber),d.xp6(1),d.Q6J("ngIf",5===Se.stepNumber),d.xp6(1),d.Q6J("ngIf",Se.stepNumber<5),d.xp6(1),d.Q6J("ngIf",Se.stepNumber>1&&Se.stepNumber<5),d.xp6(1),d.Q6J("ngIf",Se.stepNumber<5)}}let Gi=(()=>{var Xe;class It{constructor(wt,Zt,si,Ai,Oi,Qi,en,Yi,Yt){this.dialogRef=wt,this.data=Zt,this.store=si,this.loopService=Ai,this.formBuilder=Oi,this.decimalPipe=Qi,this.logger=en,this.router=Yi,this.commonService=Yt,this.faInfoCircle=s.sqG,this.LoopTypeEnum=h.$I,this.direction=h.$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=h.cu,this.animationDirection="forward",this.flgEditable=!0,this.localBalanceToCompare=null,this.unSubs=[new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.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||h.$I.LOOP_OUT,this.loopDirectionCaption=this.direction===h.$I.LOOP_IN?"Loop in":"Loop out",this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.minQuote.amount,[t.kI.required,t.kI.min(this.minQuote.amount||0),t.kI.max(this.maxQuote.amount||0)]],sweepConfTarget:[6,[t.kI.required,t.kI.min(1)]],routingFeePercent:[2,[t.kI.required,t.kI.min(0)]],fast:[!1,[t.kI.required]]}),this.inputFormGroup.setErrors({Invalid:!0}),this.quoteFormGroup=this.formBuilder.group({}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[t.kI.required]],address:[{value:"",disabled:!0}]}),this.direction===h.$I.LOOP_OUT&&this.addressFormGroup.setErrors({Invalid:!0}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges(),this.store.select(P.ZW).pipe((0,_.R)(this.unSubs[6])).subscribe(wt=>{this.localBalanceToCompare=this.channel&&this.channel.local_balance?+this.channel.local_balance:wt.lightningBalance&&wt.lightningBalance.local?+wt.lightningBalance.local:null})}onFormValueChanges(){this.inputFormGroup.valueChanges.pipe((0,_.R)(this.unSubs[4])).subscribe(wt=>{this.inputFormGroup.setErrors({Invalid:!0})}),this.direction===h.$I.LOOP_OUT&&this.addressFormGroup.valueChanges.pipe((0,_.R)(this.unSubs[5])).subscribe(wt=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(wt){"external"===wt.value?(this.addressFormGroup.controls.address.setValidators([t.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.localBalanceToCompare&&this.inputFormGroup.controls.amount.value<=this.localBalanceToCompare&&this.stepper.next()}onLoop(){if(!this.inputFormGroup.controls.amount.value||this.minQuote.amount&&this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2||this.direction===h.$I.LOOP_OUT&&(!this.inputFormGroup.controls.routingFeePercent.value||this.inputFormGroup.controls.routingFeePercent.value<0)||this.direction===h.$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===h.$I.LOOP_IN)this.loopService.loopIn(this.inputFormGroup.controls.amount.value,+(this.quote.swap_fee_sat||0),+(this.quote.htlc_publish_fee_sat||0),"",!0).pipe((0,_.R)(this.unSubs[0])).subscribe({next:wt=>{this.loopStatus=wt,this.loopService.listSwaps(),this.flgEditable=!0},error:wt=>{this.loopStatus={error:wt},this.flgEditable=!0,this.logger.error(wt)}});else{const wt=Math.ceil(this.inputFormGroup.controls.amount.value*(this.inputFormGroup.controls.routingFeePercent.value/100)),Zt="external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"",si=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,wt,+(this.quote.htlc_sweep_fee_sat||0),this.prepayRoutingFee,+(this.quote.prepay_amt_sat||0),+(this.quote.swap_fee_sat||0),si,Zt).pipe((0,_.R)(this.unSubs[1])).subscribe({next:Ai=>{this.loopStatus=Ai,this.loopService.listSwaps(),this.flgEditable=!0},error:Ai=>{this.loopStatus={error:Ai},this.flgEditable=!0,this.logger.error(Ai)}})}}onEstimateQuote(){if(!this.inputFormGroup.controls.amount.value||this.minQuote.amount&&this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2)return!0;const wt=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.direction===h.$I.LOOP_IN?this.loopService.getLoopInQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,wt).pipe((0,_.R)(this.unSubs[2])).subscribe(Zt=>{this.quote=Zt,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,wt).pipe((0,_.R)(this.unSubs[3])).subscribe(Zt=>{this.quote=Zt,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(wt){switch(wt.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===h.$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===h.$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===h.$I.LOOP_OUT&&1!==wt.selectedIndex&&wt.selectedIndex{wt.next(null),wt.complete()})}}return(Xe=It).\u0275fac=function(wt){return new(wt||Xe)(d.Y36(T.so),d.Y36(T.WI),d.Y36(w.yh),d.Y36(C.W),d.Y36(t.QS),d.Y36(L.JJ),d.Y36(D.mQ),d.Y36(z.F0),d.Y36(V.v))},Xe.\u0275cmp=d.Xpm({type:Xe,selectors:[["rtl-loop-modal"]],viewQuery:function(wt,Zt){if(1&wt&&d.Gf(lt,5),2&wt){let si;d.iGM(si=d.CRH())&&(Zt.stepper=si.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","","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["matInput","","type","number","tabindex","2","formControlName","sweepConfTarget","required","",3,"step"],["fxFlex","30",4,"ngIf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","class","mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","5","type","button",3,"click"],[3,"quote","showPanel"],["fxFlex","100","class","color-warn mt-2","fxLayoutAlign","start center",4,"ngIf"],["mat-button","","color","primary","tabindex","6","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","7","type","button",3,"click",4,"ngIf"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[4,"ngIf","ngIfElse"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxLayoutAlign","start","class","font-bold-500 mt-2",4,"ngIf"],["mat-button","","color","primary","tabindex","12","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-button","","color","primary","tabindex","14","type","button","default","",3,"mat-dialog-close"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","40"],["fxFlex","30"],["matInput","","type","number","tabindex","3","formControlName","routingFeePercent","required","",3,"step"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["tabindex","4","color","primary","formControlName","fast","fxFlex","none"],["matTooltip","Swap immediately (Might end up paying a higher on-chain fee)","matTooltipPosition","above","fxFlex","none",1,"info-icon"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn","mt-2"],[1,"mr-1","icon-small"],["mat-button","","color","primary","tabindex","6","type","button",3,"click"],["mat-button","","color","primary","tabindex","7","type","button",3,"click"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-1"],["color","primary","name","addressType","formControlName","addressType","fxFlex","100","fxLayoutAlign","space-between stretch",3,"change"],["fxFlex","48","tabindex","8","value","local"],["fxFlex","48","tabindex","9","value","external"],["fxLayout","column","fxFlex","100",1,"mt-1"],["matInput","","tabindex","10","formControlName","address",3,"required"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-2"],["mat-button","","color","primary","tabindex","12","type","button",3,"click"],["mat-button","","color","primary","tabindex","13","type","button",3,"click"],["fxLayout","column",3,"loopStatus"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["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,"animationDirection","stepNumber","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,"animationDirection","stepNumber","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(wt,Zt){1&wt&&(d.YNc(0,ot,75,55,"div",0),d.YNc(1,ft,1,1,"ng-template",null,1,d.W1O),d.YNc(3,Mi,20,11,"div",2)),2&wt&&(d.Q6J("ngIf",!Zt.flgShowInfo),d.xp6(3),d.Q6J("ngIf",Zt.flgShowInfo))},dependencies:[L.mk,L.sg,L.O5,t._Y,t.Fj,t.wV,t.JJ,t.JL,t.Q7,t.sg,t.u,Y.xw,Y.Wh,Y.yH,j.oO,T.ZT,Q.lW,J.dn,J.dk,ee.ib,ee.yz,ee.yK,me.Hw,re.Nt,ie.KE,ie.hX,ie.bx,ie.TO,ie.R9,se.pW,ce.VQ,ce.U0,Ce.Rr,M.gM,i.C0,i.VY,i.Vq,a.h,O,Ue,he,Ke,L.JJ,L.rS],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:30rem;min-height:30rem;overflow-x:hidden}"],data:{animation:[y._]}}),It})()},9442:(We,q,m)=>{"use strict";m.d(q,{w:()=>P});var t=m(2687),e=m(4650),_=m(9116),T=m(2216),s=m(1576),y=m(4859),h=m(3546);let P=(()=>{var d;class w{constructor(L){this.router=L,this.faTimes=t.NBC}goToHelp(){this.router.navigate(["/help"])}}return(d=w).\u0275fac=function(L){return new(L||d)(e.Y36(_.F0))},d.\u0275cmp=e.Xpm({type:d,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(L,D){1&L&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Page Not Found"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"div",5)(8,"div",6),e._uU(9,"This page does not exist!"),e.qZA(),e.TgZ(10,"span",7)(11,"button",8),e.NdJ("click",function(){return D.goToHelp()}),e._uU(12,"Go To Help"),e.qZA()()()()()()),2&L&&(e.xp6(1),e.Q6J("icon",D.faTimes))},dependencies:[T.BN,s.xw,s.Wh,s.yH,y.lW,h.a8,h.dn],encapsulation:2}),w})()},3390:(We,q,m)=>{"use strict";m.d(q,{h:()=>e});var t=m(4650);let e=(()=>{var _;class T{constructor(y){this.el=y}ngAfterContentInit(){setTimeout(()=>{this.el.nativeElement.focus()},500)}}return(_=T).\u0275fac=function(y){return new(y||_)(t.Y36(t.SBq))},_.\u0275dir=t.lG2({type:_,selectors:[["","autoFocus",""]],inputs:{appAutoFocus:"appAutoFocus"}}),T})()},5199:(We,q,m)=>{"use strict";m.d(q,{y:()=>e});var t=m(4650);let e=(()=>{var _;class T{constructor(){this.copied=new t.vpe}onClick(y){y.preventDefault(),this.payload&&navigator.clipboard&&navigator.clipboard.writeText(this.payload.toString()).then(()=>{this.copied.emit(this.payload.toString())},h=>{this.copied.emit("Error could not copy text: "+JSON.stringify(h))})}}return(_=T).\u0275fac=function(y){return new(y||_)},_.\u0275dir=t.lG2({type:_,selectors:[["","rtlClipboard",""]],hostBindings:function(y,h){1&y&&t.NdJ("click",function(d){return h.onClick(d)})},inputs:{payload:"payload"},outputs:{copied:"copied"}}),T})()},9843:(We,q,m)=>{"use strict";m.d(q,{F:()=>_});var t=m(4006),e=m(4650);let _=(()=>{var T;class s{validate(h){return this.max?t.kI.max(+this.max)(h):null}}return(T=s).\u0275fac=function(h){return new(h||T)},T.\u0275dir=e.lG2({type:T,selectors:[["input","max",""]],inputs:{max:"max"},features:[e._Bn([{provide:t.Cf,useExisting:T,multi:!0}])]}),s})()},6534:(We,q,m)=>{"use strict";m.d(q,{q:()=>_});var t=m(4006),e=m(4650);let _=(()=>{var T;class s{validate(h){return this.min?t.kI.min(+this.min)(h):null}}return(T=s).\u0275fac=function(h){return new(h||T)},T.\u0275dir=e.lG2({type:T,selectors:[["input","min",""]],inputs:{min:"min"},features:[e._Bn([{provide:t.Cf,useExisting:T,multi:!0}])]}),s})()},9445:(We,q,m)=>{"use strict";m.d(q,{D3:()=>s,al:()=>e,h9:()=>_,i1:()=>T});var t=m(4650);let e=(()=>{var y;class h{transform(d,w){return d?.replace(/^[0]+/g,"")}}return(y=h).\u0275fac=function(d){return new(d||y)},y.\u0275pipe=t.Yjl({name:"removeleadingzeros",type:y,pure:!0}),h})(),_=(()=>{var y;class h{transform(d,w){return d?.replace(/(?:^\w|[A-Z]|\b\w)/g,(C,L)=>C.toUpperCase())?.replace(/\s+/g,"")?.replace(/-/g," ")}}return(y=h).\u0275fac=function(d){return new(d||y)},y.\u0275pipe=t.Yjl({name:"camelcase",type:y,pure:!0}),h})(),T=(()=>{var y;class h{transform(d,w,C){return d.replace(/(?:^\w|[A-Z]|\b\w)/g,(L,D)=>" "+L.toUpperCase())}}return(y=h).\u0275fac=function(d){return new(d||y)},y.\u0275pipe=t.Yjl({name:"camelCaseWithSpaces",type:y,pure:!0}),h})(),s=(()=>{var y;class h{transform(d,w,C){return d=d?d.toLowerCase().replace(/\s+/g,"")?.replace(/-/g," "):"",w&&(d=d.replace(new RegExp(w,"g")," ")),C&&(d=d.replace(new RegExp(C,"g")," ")),d.replace(/(?:^\w|[A-Z]|\b\w)/g,(L,D)=>L.toUpperCase())}}return(y=h).\u0275fac=function(d){return new(d||y)},y.\u0275pipe=t.Yjl({name:"camelcaseWithReplace",type:y,pure:!0}),h})()},1643:(We,q,m)=>{"use strict";m.d(q,{QM:()=>y,a1:()=>s,eQ:()=>h,fY:()=>P});var t=m(4650),e=m(9116),_=m(5986),T=m(4004);function s(){return()=>{const d=(0,t.f3M)(e.F0),w=(0,t.f3M)(e.gz),C=(0,t.f3M)(_.m);return!(!C.getItem("token")||w.snapshot.url&&w.snapshot.url.length&&"settings"!==w.snapshot.url[0].path&&"auth"!==w.snapshot.url[0].path&&"true"===C.getItem("defaultPassword")&&(d.navigate(["/settings/auth"]),1))}}function y(){return()=>!!(0,t.f3M)(_.m).watchSession().pipe((0,T.U)(w=>w.lndUnlocked))}function h(){return()=>!!(0,t.f3M)(_.m).watchSession().pipe((0,T.U)(w=>w.clnUnlocked))}function P(){return()=>!!(0,t.f3M)(_.m).watchSession().pipe((0,T.U)(w=>w.eclUnlocked))}},62:(We,q,m)=>{"use strict";m.d(q,{v:()=>C});var t=m(1135),e=m(9646),_=m(2843),T=m(5698),s=m(4004),y=m(262),h=m(7731),P=m(4650),d=m(8104),w=m(5043);let C=(()=>{var L;class D{constructor(V,Y){this.dataService=V,this.logger=Y,this.currencyUnits=[],this.CurrencyUnitEnum=h.NT,this.conversionData={data:null,last_fetched:null},this.ratesAPIStatus=h.Bn.UN_INITIATED,this.screenSize=h.cu.MD,this.containerSize={width:0,height:0},this.containerSizeUpdated=new t.X(this.containerSize)}getScreenSize(){return this.screenSize}setScreenSize(V){this.screenSize=V}getContainerSize(){return this.containerSize}setContainerSize(V,Y){this.containerSize={width:V,height:Y},this.logger.info("Container Size: "+JSON.stringify(this.containerSize)),this.containerSizeUpdated.next(this.containerSize)}sortByKey(V,Y,j,Q="asc"){return V.sort("number"===j?"desc"===Q?(J,ee)=>+J[Y]>+ee[Y]?-1:1:(J,ee)=>+J[Y]>+ee[Y]?1:-1:"desc"===Q?(J,ee)=>J[Y]>ee[Y]?-1:1:(J,ee)=>J[Y]>ee[Y]?1:-1)}sortDescByKey(V,Y){return V.sort((j,Q)=>{const J=+j[Y],ee=+Q[Y];return J>ee?-1:J{const J=+j[Y],ee=+Q[Y];return Jee?1:0})}camelCase(V){return V?.replace(/(?:^\w|[A-Z]|\b\w)/g,(Y,j)=>Y.toUpperCase())?.replace(/\s+/g,"")?.replace(/-/g," ")}titleCase(V,Y,j){return Y&&j&&""!==Y&&""!==j&&(V=V?.replace(new RegExp(Y,"g"),j)),V.indexOf("!\n")>0||V.indexOf(".\n")>0?V.split("\n")?.reduce((Q,J)=>Q+J.charAt(0).toUpperCase()+J.substring(1).toLowerCase()+"\n",""):V.indexOf(" ")>0?V.split(" ")?.reduce((Q,J)=>Q+J.charAt(0).toUpperCase()+J.substring(1).toLowerCase()+" ",""):V.charAt(0).toUpperCase()+V.substring(1).toLowerCase()}convertCurrency(V,Y,j,Q,J){const ee=(new Date).valueOf();return J&&Q&&this.ratesAPIStatus!==h.Bn.INITIATED&&(Y===h.NT.OTHER||j===h.NT.OTHER)?this.conversionData.data&&this.conversionData.last_fetched&&ee(this.ratesAPIStatus=h.Bn.COMPLETED,this.conversionData.data=me&&"object"==typeof me?me:me&&"string"==typeof me?JSON.parse(me):{},this.conversionData.last_fetched=ee,this.convertWithFiat(V,Y,Q))),(0,y.K)(me=>(this.ratesAPIStatus=h.Bn.ERROR,(0,_._)(()=>this.extractErrorMessage(me,"Currency Conversion Error.")))))):(0,e.of)(this.convertWithoutFiat(V,Y))}convertWithoutFiat(V,Y){const j={};switch(j[h.NT.SATS]=0,j[h.NT.BTC]=0,Y){case h.NT.SATS:j[h.NT.SATS]=V,j[h.NT.BTC]=1e-8*V;break;case h.NT.BTC:j[h.NT.SATS]=1e8*V,j[h.NT.BTC]=V}return j}convertWithFiat(V,Y,j){const Q={unit:j,symbol:this.conversionData.data[j].symbol};switch(Q[h.NT.SATS]=0,Q[h.NT.BTC]=0,Q[h.NT.OTHER]=0,Y){case h.NT.SATS:Q[h.NT.SATS]=V,Q[h.NT.BTC]=1e-8*V,Q[h.NT.OTHER]=1e-8*V*this.conversionData.data[j].last;break;case h.NT.BTC:Q[h.NT.SATS]=1e8*V,Q[h.NT.BTC]=V,Q[h.NT.OTHER]=V*this.conversionData.data[j].last;break;case h.NT.OTHER:Q[h.NT.SATS]=V/this.conversionData.data[j].last*1e8,Q[h.NT.BTC]=V/this.conversionData.data[j].last,Q[h.NT.OTHER]=V}return Q}convertTime(V,Y,j){switch(Y){case h.Qk.SECS:switch(j){case h.Qk.MINS:V/=60;break;case h.Qk.HOURS:V/=h.k_;break;case h.Qk.DAYS:V/=24*h.k_}break;case h.Qk.MINS:switch(j){case h.Qk.SECS:V*=60;break;case h.Qk.HOURS:V/=60;break;case h.Qk.DAYS:V/=1440}break;case h.Qk.HOURS:switch(j){case h.Qk.SECS:V*=h.k_;break;case h.Qk.MINS:V*=60;break;case h.Qk.DAYS:V/=24}break;case h.Qk.DAYS:switch(j){case h.Qk.SECS:V=V*h.k_*24;break;case h.Qk.MINS:V=60*V*24;break;case h.Qk.HOURS:V*=24}}return V}downloadFile(V,Y,j=".json",Q=".csv"){let J=new Blob;J=".json"===j?new Blob(["\ufeff"+this.convertToCSV(V)],{type:"text/csv;charset=utf-8;"}):new Blob([V.toString()],{type:"text/plain;charset=utf-8"});const ee=document.createElement("a"),me=URL.createObjectURL(J);-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&ee.setAttribute("target","_blank"),ee.setAttribute("href",me),ee.setAttribute("download",Y+Q),ee.style.visibility="hidden",document.body.appendChild(ee),ee.click(),document.body.removeChild(ee)}convertToCSV(V){const Y=[];let j="",Q="",J="";return"object"!=typeof V&&(V=JSON.parse(V)),V.forEach((me,re)=>{for(const ie in me)Y.findIndex(se=>se===ie)<0&&Y.push(ie)}),J=Y.join(",")+"\r\n",V.forEach(me=>{j="",Y.forEach(re=>{me.hasOwnProperty(re)?Array.isArray(me[re])?(Q="",me[re].forEach((ie,se)=>{Q+="object"==typeof ie?"("+JSON.stringify(ie)?.replace(/\,/g,";")+")":"("+ie+")"}),j+=Q+","):j+="object"==typeof me[re]?JSON.stringify(me[re])?.replace(/\,/g,";")+",":me[re]+",":j+=","}),J+=j.slice(0,-1)+"\r\n"}),J}isVersionCompatible(V,Y){if(V){const j=V.match(/v?(?\d+(?:\.\d+)*)/);if(j&&j.groups&&j.groups.version){this.logger.info("Current Version: "+j.groups.version),this.logger.info("Checking Compatiblility with Version: "+Y);const Q=j.groups.version.split(".")||[],J=Y.split(".");return+Q[0]>+J[0]||+Q[0]==+J[0]&&+Q[1]>+J[1]||+Q[0]==+J[0]&&+Q[1]==+J[1]&&+Q[2]>=+J[2]}return this.logger.error("Invalid Version String: "+V),!1}return!1}extractErrorMessage(V,Y="Unknown Error."){const j=this.titleCase(V.error&&V.error.text&&"string"==typeof V.error.text&&V.error.text.includes('')?"API Route Does Not Exist.":V.error&&V.error.error&&V.error.error.error&&V.error.error.error.error&&V.error.error.error.error.error&&"string"==typeof V.error.error.error.error.error?V.error.error.error.error.error:V.error&&V.error.error&&V.error.error.error&&V.error.error.error.error&&"string"==typeof V.error.error.error.error?V.error.error.error.error:V.error&&V.error.error&&V.error.error.error&&"string"==typeof V.error.error.error?V.error.error.error:V.error&&V.error.error&&"string"==typeof V.error.error?V.error.error:V.error&&"string"==typeof V.error?V.error:V.error&&V.error.error&&V.error.error.error&&V.error.error.error.error&&V.error.error.error.error.message&&"string"==typeof V.error.error.error.error.message?V.error.error.error.error.message:V.error&&V.error.error&&V.error.error.error&&V.error.error.error.message&&"string"==typeof V.error.error.error.message?V.error.error.error.message:V.error&&V.error.error&&V.error.error.message&&"string"==typeof V.error.error.message?V.error.error.message:V.error&&V.error.message&&"string"==typeof V.error.message?V.error.message:V.message&&"string"==typeof V.message?V.message:Y);return this.logger.info("Error Message: "+j),j}extractErrorCode(V,Y=500){const j=V.error&&V.error.error&&V.error.error.message&&V.error.error.message.code?V.error.error.message.code:V.error&&V.error.error&&V.error.error.code?V.error.error.code:V.error&&V.error.code?V.error.code:V.code?V.code:V.status?V.status:Y;return this.logger.info("Error Code: "+j),j}extractErrorNumber(V,Y=500){const j=V.error&&V.error.error&&V.error.error.errno?V.error.error.errno:V.error&&V.error.errno?V.error.errno:V.errno?V.errno:V.status?V.status:Y;return this.logger.info("Error Number: "+j),j}ngOnDestroy(){this.containerSizeUpdated.next(null),this.containerSizeUpdated.complete()}}return(L=D).\u0275fac=function(V){return new(V||L)(P.LFG(d.D),P.LFG(w.mQ))},L.\u0275prov=P.Yz7({token:L,factory:L.\u0275fac}),D})()},7731:(We,q,m)=>{"use strict";m.d(q,{$I:()=>g,$Y:()=>s,$v:()=>me,AB:()=>Fe,At:()=>Ge,Bn:()=>at,Df:()=>he,Dr:()=>j,Er:()=>C,Fq:()=>n,Gi:()=>f,HW:()=>v,H_:()=>Me,IV:()=>z,IX:()=>xe,JX:()=>nt,LO:()=>L,NT:()=>a,OJ:()=>Ce,OO:()=>Qe,Pi:()=>lt,Qk:()=>M,Qw:()=>O,T5:()=>h,TJ:()=>V,Vc:()=>Q,Xk:()=>Ie,Xr:()=>fe,Xz:()=>w,Zs:()=>x,_t:()=>Y,c3:()=>qe,cu:()=>l,g8:()=>ie,gB:()=>Ve,gG:()=>ht,gK:()=>yt,gg:()=>U,hG:()=>be,hZ:()=>pe,hc:()=>W,kO:()=>Ue,k_:()=>T,lr:()=>De,m6:()=>ye,nM:()=>re,n_:()=>ce,ol:()=>se,op:()=>ge,p7:()=>k,pg:()=>Oe,pt:()=>_,q4:()=>y,uA:()=>d,uR:()=>oe,vn:()=>J,vv:()=>P,wZ:()=>ee,x$:()=>I,zZ:()=>Ut});var t=m(4650),e=m(8739);function _(X){const mt=new e.ye;return mt.itemsPerPageLabel=X+" per page:",mt}const T=3600,s=24*T*7,y="0.14.1-beta",h=(0,t.X6Q)()?"http://localhost:3000/rtl/api":"./api",P={AUTHENTICATE_API:h+"/authenticate",CONF_API:h+"/conf",PAGE_SETTINGS_API:h+"/pagesettings",BALANCE_API:"/balance",FEES_API:"/fees",PEERS_API:"/peers",CHANNELS_API:"/channels",CHANNELS_BACKUP_API:"/channels/backup",GETINFO_API:"/getinfo",WALLET_API:"/wallet",NETWORK_API:"/network",NEW_ADDRESS_API:"/newaddress",TRANSACTIONS_API:"/transactions",PAYMENTS_API:"/payments",INVOICES_API:"/invoices",SWITCH_API:"/switch",ON_CHAIN_API:"/onchain",MESSAGE_API:"/message",OFFERS_API:"/offers",UTILITY_API:"/utility",LOOP_API:"/loop",BOLTZ_API:"/boltz",Web_SOCKET_API:"/ws"},d=["Sats","BTC"],w={Sats:"1.0-0",BTC:"1.6-6",OTHER:"1.2-2"},C=[{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"}],L=["SECS","MINS","HOURS","DAYS"],z=10,V=[5,10,25,100],Y=[{addressId:"0",addressCode:"bech32",addressTp:"Bech32 (P2WKH)",addressDetails:"Pay to witness key hash"},{addressId:"1",addressCode:"p2sh-segwit",addressTp:"P2SH (NP2WKH)",addressDetails:"Pay to nested witness key hash (default)"},{addressId:"4",addressCode:"p2tr",addressTp:"Taproot (P2TR)",addressDetails:"Pay to taproot pubkey"}],j=[{id:"0",name:"Priority (Default)"},{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],Q=[{id:"none",name:"No Fee Limit",placeholder:"No Limit"},{id:"fixed",name:"Fixed Limit (Sats)",placeholder:"Fixed Limit in Sats"},{id:"percent",name:"Percentage of Payment Amount",placeholder:"Percentage Limit"}],J=[{feeRateId:"urgent",feeRateType:"Urgent"},{feeRateId:"normal",feeRateType:"Normal"},{feeRateId:"slow",feeRateType:"Slow"},{feeRateId:"customperkb",feeRateType:"Custom (Sats/vByte)"}],ee={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 me=(()=>{return(X=me||(me={})).PAYMENT_RECEIVED="payment-received",X.PAYMENT_RELAYED="payment-relayed",X.PAYMENT_SENT="payment-sent",X.PAYMENT_SETTLING_ONCHAIN="payment-settling-onchain",X.PAYMENT_FAILED="payment-failed",X.CHANNEL_OPENED="channel-opened",X.CHANNEL_STATE_CHANGED="channel-state-changed",X.CHANNEL_CLOSED="channel-closed",me;var X})(),re=(()=>{return(X=re||(re={})).INVOICE="invoice",X.BLOCK_HEIGHT="block-height",X.SEND_PAYMENT="send-payment",re;var X})(),ie=(()=>((ie||(ie={})).INVOICE="invoice",ie))(),se=(()=>{return(X=se||(se={})).OPERATOR="OPERATOR",X.MERCHANT="MERCHANT",X.ALL="ALL",se;var X})(),ce=(()=>{return(X=ce||(ce={})).INFORMATION="Information",X.WARNING="Warning",X.ERROR="Error",X.SUCCESS="Success",X.CONFIRM="Confirm",ce;var X})(),Ce=(()=>{return(X=Ce||(Ce={})).JWT="JWT",X.PASSWORD="PASSWORD",Ce;var X})(),M=(()=>{return(X=M||(M={})).SECS="SECS",X.MINS="MINS",X.HOURS="HOURS",X.DAYS="DAYS",M;var X})(),a=(()=>{return(X=a||(a={})).SATS="Sats",X.BTC="BTC",X.OTHER="OTHER",a;var X})(),f=(()=>{return(X=f||(f={})).ARRAY="ARRAY",X.NUMBER="NUMBER",X.STRING="STRING",X.BOOLEAN="BOOLEAN",X.PASSWORD="PASSWORD",X.DATE="DATE",X.DATE_TIME="DATE_TIME",f;var X})(),l=(()=>{return(X=l||(l={})).XS="XS",X.SM="SM",X.MD="MD",X.LG="LG",X.XL="XL",l;var X})();const v={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"}},I={WITNESS_PUBKEY_HASH:{name:"Witness Pubkey Hash",tooltip:""},NESTED_PUBKEY_HASH:{name:"Nested Pubkey Hash",tooltip:""},UNUSED_WITNESS_PUBKEY_HASH:{name:"Unused Witness Pubkey Hash",tooltip:""},UNUSED_NESTED_PUBKEY_HASH:{name:"Unused Nested Pubkey Hash",tooltip:""},TAPROOT_PUBKEY:{name:"Taproot Pubkey Hash",tooltip:""}};var k=(()=>{return(X=k||(k={})).WIRE_INVALID_ONION_VERSION="Invalid Onion Version",X.WIRE_INVALID_ONION_HMAC="Invalid Onion HMAC",X.WIRE_INVALID_ONION_KEY="Invalid Onion Key",X.WIRE_TEMPORARY_CHANNEL_FAILURE="Temporary Channel Failure",X.WIRE_PERMANENT_CHANNEL_FAILURE="Permanent Channel Failure",X.WIRE_REQUIRED_CHANNEL_FEATURE_MISSING="Missing Required Channel Feature",X.WIRE_UNKNOWN_NEXT_PEER="Unknown Next Peer",X.WIRE_AMOUNT_BELOW_MINIMUM="Amount Below Minimum",X.WIRE_FEE_INSUFFICIENT="Insufficient Fee",X.WIRE_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",X.WIRE_EXPIRY_TOO_FAR="Expiry Too Far",X.WIRE_EXPIRY_TOO_SOON="Expiry Too Soon",X.WIRE_CHANNEL_DISABLED="Channel Disabled",X.WIRE_INVALID_ONION_PAYLOAD="Invalid Onion Payload",X.WIRE_INVALID_REALM="Invalid Realm",X.WIRE_PERMANENT_NODE_FAILURE="Permanent Node Failure",X.WIRE_TEMPORARY_NODE_FAILURE="Temporary Node Failure",X.WIRE_REQUIRED_NODE_FEATURE_MISSING="Missing Required Node Feature",X.WIRE_INVALID_ONION_BLINDING="Invalid Onion Binding",X.WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS="Incorrect or Unknow Payment Details",X.WIRE_MPP_TIMEOUT="MPP Timeout",X.WIRE_FINAL_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",X.WIRE_FINAL_INCORRECT_HTLC_AMOUNT="Incorrect HTLC Amount",k;var X})(),x=(()=>{return(X=x||(x={})).CHANNELD_NORMAL="Active",X.OPENINGD="Opening",X.CHANNELD_AWAITING_LOCKIN="Pending Open",X.CHANNELD_SHUTTING_DOWN="Shutting Down",X.CLOSINGD_SIGEXCHANGE="Closing: Sig Exchange",X.CLOSINGD_COMPLETE="Closed",X.AWAITING_UNILATERAL="Awaiting Unilateral Close",X.FUNDING_SPEND_SEEN="Funding Spend Seen",X.ONCHAIN="Onchain",X.DUALOPEND_OPEN_INIT="Dual Open Initialized",X.DUALOPEND_AWAITING_LOCKIN="Dual Pending Open",x;var X})(),n=(()=>{return(X=n||(n={})).INITIATED="Initiated",X.PREIMAGE_REVEALED="Preimage Revealed",X.HTLC_PUBLISHED="HTLC Published",X.SUCCESS="Successful",X.FAILED="Failed",X.INVOICE_SETTLED="Invoice Settled",n;var X})(),g=(()=>{return(X=g||(g={})).LOOP_OUT="LOOP_OUT",X.LOOP_IN="LOOP_IN",g;var X})(),W=(()=>{return(X=W||(W={})).SWAP_OUT="SWAP_OUT",X.SWAP_IN="SWAP_IN",W;var X})(),O=(()=>{return(X=O||(O={}))["swap.created"]="Swap Created",X["swap.expired"]="Swap Expired",X["invoice.set"]="Invoice Set",X["invoice.paid"]="Invoice Paid",X["invoice.pending"]="Invoice Pending",X["invoice.settled"]="Invoice Settled",X["invoice.failedToPay"]="Invoice Failed To Pay",X["channel.created"]="Channel Created",X["transaction.failed"]="Transaction Failed",X["transaction.mempool"]="Transaction Mempool",X["transaction.claimed"]="Transaction Claimed",X["transaction.refunded"]="Transaction Refunded",X["transaction.confirmed"]="Transaction Confirmed",X["swap.refunded"]="Swap Refunded",X["swap.abandoned"]="Swap Abandoned",O;var X})();const U=[{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}],ge=["MONTHLY","YEARLY"];var nt=(()=>{return(X=nt||(nt={})).LOOP="LOOP",X.BOLTZ="BOLTZ",X.OFFERS="OFFERS",X.PEERSWAP="PEERSWAP",nt;var X})();const Ue=["password","changeme","moneyprintergobrrr"];var at=(()=>{return(X=at||(at={})).UN_INITIATED="UN_INITIATED",X.INITIATED="INITIATED",X.COMPLETED="COMPLETED",X.ERROR="ERROR",at;var X})();const ye={NO_SPINNER:"No Spinner...",GET_NODE_INFO:"Getting Node Information...",INITALIZE_NODE_DATA:"Initializing Node Data...",GENERATE_NEW_ADDRESS:"Getting New Address...",SEND_FUNDS:"Sending Funds...",UPDATE_CHAN_POLICY:"Updating Channel Policy...",GET_CHAN_POLICY:"Fetching Channel Policy...",GET_REMOTE_POLICY:"Fetching Remote Policy...",CLOSE_CHANNEL:"Closing Channel...",FORCE_CLOSE_CHANNEL:"Force Closing Channel...",OPEN_CHANNEL:"Opening Channel...",CONNECT_PEER:"Connecting Peer...",DISCONNECT_PEER:"Disconnecting Peer...",ADD_INVOICE:"Adding Invoice...",CREATE_INVOICE:"Creating Invoice...",DELETE_INVOICE:"Deleting Invoices...",DECODE_PAYMENT:"Decoding Payment...",DECODE_OFFER:"Decoding Offer...",DECODE_PAYMENTS:"Decoding Payments...",FETCH_INVOICE:"Fetching Invoice...",GET_SENT_PAYMENTS:"Getting Sent Payments...",SEND_PAYMENT:"Sending Payment...",SEND_KEYSEND:"Sending Keysend Payment...",SEARCHING_NODE:"Searching Node...",SEARCHING_CHANNEL:"Searching Channel...",SEARCHING_INVOICE:"Searching Invoice...",SEARCHING_PAYMENT:"Searching Payment...",BACKUP_CHANNEL:"Backup Channels...",VERIFY_CHANNEL:"Verify Channel...",DOWNLOAD_BACKUP_FILE:"Downloading Backup File...",RESTORE_CHANNEL:"Restoring Channels...",GET_TERMS_QUOTES:"Getting Terms and Quotes...",LABEL_UTXO:"Labelling UTXO...",GET_NODE_ADDRESS:"Getting Node Address...",GEN_SEED:"Generating Seed...",INITIALIZE_WALLET:"Initializing Wallet...",UNLOCK_WALLET:"Unlocking Wallet...",WAIT_SYNC_NODE:"Waiting for Node Sync...",UPDATE_BOLTZ_SETTINGS:"Updating Boltz Service Settings...",UPDATE_LOOP_SETTINGS:"Updating Loop Service Settings...",UPDATE_PEERSWAP_SETTINGS:"Updating Peerswap Service Settings...",UPDATE_SETTING:"Updating Setting...",UPDATE_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_INFO:"Getting Loop Info...",GET_LOOP_SWAPS:"Getting List Swaps...",GET_FORWARDING_HISTORY:"Getting Forwarding History...",GET_LOOKUP_DETAILS:"Getting Lookup Details...",GET_RTL_CONFIG:"Getting RTL Config...",VERIFY_TOKEN:"Verify Token...",DISABLE_OFFER:"Disabling Offer...",CREATE_OFFER:"Creating Offer...",DELETE_OFFER_BOOKMARK:"Deleting Bookmark...",GET_FUNDER_POLICY:"Getting Or Updating Funder Policy...",GET_LIST_CONFIGS:"Getting Configurations List...",LIST_NETWORK_NODES:"Getting Network Nodes List...",GET_PAGE_SETTINGS:"Getting Page Settings...",SET_PAGE_SETTINGS:"Setting Page Settings...",UPDATE_PAGE_SETTINGS:"Updating Page Layout...",REBALANCE_CHANNEL:"Rebalancing Channel...",LOG_OUT:"Logging Out..."};var xe=(()=>{return(X=xe||(xe={})).INVOICE="INVOICE",X.OFFER="OFFER",X.KEYSEND="KEYSEND",xe;var X})(),fe=(()=>{return(X=fe||(fe={})).FEES="FEES",X.EVENTS="EVENTS",fe;var X})(),Oe=(()=>{return(X=Oe||(Oe={})).VOID="VOID",X.SET_API_URL_ECL="SET_API_URL_ECL",X.UPDATE_SELECTED_NODE_OPTIONS="UPDATE_SELECTED_NODE_OPTIONS",X.UPDATE_API_CALL_STATUS_ROOT="UPDATE_API_CALL_STATUS_ROOT",X.RESET_ROOT_STORE="RESET_ROOT_STORE",X.CLOSE_ALL_DIALOGS="CLOSE_ALL_DIALOGS",X.OPEN_SNACK_BAR="OPEN_SNACKBAR",X.OPEN_SPINNER="OPEN_SPINNER",X.CLOSE_SPINNER="CLOSE_SPINNER",X.OPEN_ALERT="OPEN_ALERT",X.CLOSE_ALERT="CLOSE_ALERT",X.OPEN_CONFIRMATION="OPEN_CONFIRMATION",X.CLOSE_CONFIRMATION="CLOSE_CONFIRMATION",X.SHOW_PUBKEY="SHOW_PUBKEY",X.FETCH_CONFIG="FETCH_CONFIG",X.SHOW_CONFIG="SHOW_CONFIG",X.FETCH_STORE="FETCH_STORE",X.SET_STORE="SET_STORE",X.FETCH_RTL_CONFIG="FETCH_RTL_CONFIG",X.SET_RTL_CONFIG="SET_RTL_CONFIG",X.SAVE_SSO="SAVE_SSO",X.SAVE_SETTINGS="SAVE_SETTINGS",X.TWO_FA_SAVE_SETTINGS="TWO_FA_SAVE_SETTINGS",X.SET_SELECTED_NODE="SET_SELECTED_NODE",X.UPDATE_ROOT_NODE_SETTINGS="UPDATE_ROOT_NODE_SETTINGS",X.UPDATE_SERVICE_SETTINGS="UPDATE_SERVICE_SETTINGS",X.SET_NODE_DATA="SET_NODE_DATA",X.IS_AUTHORIZED="IS_AUTHORIZED",X.IS_AUTHORIZED_RES="IS_AUTHORIZED_RES",X.LOGIN="LOGIN",X.VERIFY_TWO_FA="VERIFY_TWO_FA",X.LOGOUT="LOGOUT",X.RESET_PASSWORD="RESET_PASSWORD",X.RESET_PASSWORD_RES="RESET_PASSWORD_RES",X.FETCH_FILE="FETCH_FILE",X.SHOW_FILE="SHOW_FILE",Oe;var X})(),oe=(()=>{return(X=oe||(oe={})).RESET_LND_STORE="RESET_LND_STORE",X.UPDATE_API_CALL_STATUS_LND="UPDATE_API_CALL_STATUS_LND",X.SET_CHILD_NODE_SETTINGS_LND="SET_CHILD_NODE_SETTINGS_LND",X.FETCH_PAGE_SETTINGS_LND="FETCH_PAGE_SETTINGS_LND",X.SET_PAGE_SETTINGS_LND="SET_PAGE_SETTINGS_LND",X.SAVE_PAGE_SETTINGS_LND="SAVE_PAGE_SETTINGS_LND",X.FETCH_INFO_LND="FETCH_INFO_LND",X.SET_INFO_LND="SET_INFO_LND",X.FETCH_PEERS_LND="FETCH_PEERS_LND",X.SET_PEERS_LND="SET_PEERS_LND",X.SAVE_NEW_PEER_LND="SAVE_NEW_PEER_LND",X.NEWLY_ADDED_PEER_LND="NEWLY_ADDED_PEER_LND",X.DETACH_PEER_LND="DETACH_PEER_LND",X.REMOVE_PEER_LND="REMOVE_PEER_LND",X.SAVE_NEW_INVOICE_LND="SAVE_NEW_INVOICE_LND",X.NEWLY_SAVED_INVOICE_LND="NEWLY_SAVED_INVOICE_LND",X.ADD_INVOICE_LND="ADD_INVOICE_LND",X.FETCH_FEES_LND="FETCH_FEES_LND",X.SET_FEES_LND="SET_FEES_LND",X.FETCH_BLOCKCHAIN_BALANCE_LND="FETCH_BLOCKCHAIN_BALANCE_LND",X.SET_BLOCKCHAIN_BALANCE_LND="SET_BLOCKCHAIN_BALANCE_LND",X.FETCH_NETWORK_LND="FETCH_NETWORK_LND",X.SET_NETWORK_LND="SET_NETWORK_LND",X.FETCH_CHANNELS_LND="FETCH_CHANNELS_LND",X.FETCH_PENDING_CHANNELS_LND="FETCH_PENDING_CHANNELS_LND",X.FETCH_CLOSED_CHANNELS_LND="FETCH_CLOSED_CHANNELS_LND",X.SET_CHANNELS_LND="SET_CHANNELS_LND",X.SET_PENDING_CHANNELS_LND="SET_PENDING_CHANNELS_LND",X.SET_CLOSED_CHANNELS_LND="SET_CLOSED_CHANNELS_LND",X.UPDATE_CHANNEL_LND="UPDATE_CHANNEL_LND",X.SAVE_NEW_CHANNEL_LND="SAVE_NEW_CHANNEL_LND",X.CLOSE_CHANNEL_LND="CLOSE_CHANNEL_LND",X.REMOVE_CHANNEL_LND="REMOVE_CHANNEL_LND",X.BACKUP_CHANNELS_LND="BACKUP_CHANNELS_LND",X.VERIFY_CHANNEL_LND="VERIFY_CHANNEL_LND",X.BACKUP_CHANNELS_RES_LND="BACKUP_CHANNELS_RES_LND",X.VERIFY_CHANNEL_RES_LND="VERIFY_CHANNEL_RES_LND",X.RESTORE_CHANNELS_LIST_LND="RESTORE_CHANNELS_LIST_LND",X.SET_RESTORE_CHANNELS_LIST_LND="SET_RESTORE_CHANNELS_LIST_LND",X.RESTORE_CHANNELS_LND="RESTORE_CHANNELS_LND",X.RESTORE_CHANNELS_RES_LND="RESTORE_CHANNELS_RES_LND",X.FETCH_INVOICES_LND="FETCH_INVOICES_LND",X.SET_INVOICES_LND="SET_INVOICES_LND",X.UPDATE_INVOICE_LND="UPDATE_INVOICE_LND",X.UPDATE_PAYMENT_LND="UPDATE_PAYMENT_LND",X.SET_TOTAL_INVOICES_LND="SET_TOTAL_INVOICES_LND",X.FETCH_TRANSACTIONS_LND="FETCH_TRANSACTIONS_LND",X.SET_TRANSACTIONS_LND="SET_TRANSACTIONS_LND",X.FETCH_UTXOS_LND="FETCH_UTXOS_LND",X.SET_UTXOS_LND="SET_UTXOS_LND",X.FETCH_PAYMENTS_LND="FETCH_PAYMENTS_LND",X.SET_PAYMENTS_LND="SET_PAYMENTS_LND",X.SEND_PAYMENT_LND="SEND_PAYMENT_LND",X.SEND_PAYMENT_STATUS_LND="SEND_PAYMENT_STATUS_LND",X.FETCH_GRAPH_NODE_LND="FETCH_GRAPH_NODE_LND",X.SET_GRAPH_NODE_LND="SET_GRAPH_NODE_LND",X.GET_NEW_ADDRESS_LND="GET_NEW_ADDRESS_LND",X.SET_NEW_ADDRESS_LND="SET_NEW_ADDRESS_LND",X.SET_CHANNEL_TRANSACTION_LND="SET_CHANNEL_TRANSACTION_LND",X.SET_CHANNEL_TRANSACTION_RES_LND="SET_CHANNEL_TRANSACTION_RES_LND",X.GEN_SEED_LND="GEN_SEED_LND",X.GEN_SEED_RESPONSE_LND="GEN_SEED_RESPONSE_LND",X.INIT_WALLET_LND="INIT_WALLET_LND",X.INIT_WALLET_RESPONSE_LND="INIT_WALLET_RESPONSE_LND",X.UNLOCK_WALLET_LND="UNLOCK_WALLET_LND",X.PEER_LOOKUP_LND="PEER_LOOKUP_LND",X.CHANNEL_LOOKUP_LND="CHANNEL_LOOKUP_LND",X.INVOICE_LOOKUP_LND="INVOICE_LOOKUP_LND",X.PAYMENT_LOOKUP_LND="PAYMENT_LOOKUP_LND",X.SET_LOOKUP_LND="SET_LOOKUP_LND",X.GET_FORWARDING_HISTORY_LND="GET_FORWARDING_HISTORY_LND",X.SET_FORWARDING_HISTORY_LND="SET_FORWARDING_HISTORY_LND",X.GET_QUERY_ROUTES_LND="GET_QUERY_ROUTES_LND",X.SET_QUERY_ROUTES_LND="SET_QUERY_ROUTES_LND",X.GET_ALL_LIGHTNING_TRANSATIONS_LND="GET_ALL_LIGHTNING_TRANSATIONS_LND",X.SET_ALL_LIGHTNING_TRANSATIONS_LND="SET_ALL_LIGHTNING_TRANSATIONS_LND",oe;var X})(),Fe=(()=>{return(X=Fe||(Fe={})).RESET_CLN_STORE="RESET_CLN_STORE",X.UPDATE_API_CALL_STATUS_CLN="UPDATE_API_CALL_STATUS_CLN",X.SET_CHILD_NODE_SETTINGS_CLN="SET_CHILD_NODE_SETTINGS_CLN",X.FETCH_PAGE_SETTINGS_CLN="FETCH_PAGE_SETTINGS_CLN",X.SET_PAGE_SETTINGS_CLN="SET_PAGE_SETTINGS_CLN",X.SAVE_PAGE_SETTINGS_CLN="SAVE_PAGE_SETTINGS_CLN",X.FETCH_INFO_CLN="FETCH_INFO_CL_CLN",X.SET_INFO_CLN="SET_INFO_CLN",X.FETCH_FEES_CLN="FETCH_FEES_CLN",X.SET_FEES_CLN="SET_FEES_CLN",X.FETCH_FEE_RATES_CLN="FETCH_FEE_RATES_CLN",X.SET_FEE_RATES_CLN="SET_FEE_RATES_CLN",X.FETCH_BALANCE_CLN="FETCH_BALANCE_CLN",X.SET_BALANCE_CLN="SET_BALANCE_CLN",X.FETCH_LOCAL_REMOTE_BALANCE_CLN="FETCH_LOCAL_REMOTE_BALANCE_CLN",X.SET_LOCAL_REMOTE_BALANCE_CLN="SET_LOCAL_REMOTE_BALANCE_CLN",X.GET_NEW_ADDRESS_CLN="GET_NEW_ADDRESS_CLN",X.SET_NEW_ADDRESS_CLN="SET_NEW_ADDRESS_CLN",X.FETCH_UTXOS_CLN="FETCH_UTXOS_CLN",X.SET_UTXOS_CLN="SET_UTXOS_CLN",X.FETCH_PEERS_CLN="FETCH_PEERS_CLN",X.SET_PEERS_CLN="SET_PEERS_CLN",X.SAVE_NEW_PEER_CLN="SAVE_NEW_PEER_CLN",X.NEWLY_ADDED_PEER_CLN="NEWLY_ADDED_PEER_CLN",X.ADD_PEER_CLN="ADD_PEER_CLN",X.DETACH_PEER_CLN="DETACH_PEER_CLN",X.REMOVE_PEER_CLN="REMOVE_PEER_CLN",X.FETCH_CHANNELS_CLN="FETCH_CHANNELS_CLN",X.SET_CHANNELS_CLN="SET_CHANNELS_CLN",X.UPDATE_CHANNEL_CLN="UPDATE_CHANNEL_CLN",X.SAVE_NEW_CHANNEL_CLN="SAVE_NEW_CHANNEL_CLN",X.CLOSE_CHANNEL_CLN="CLOSE_CHANNEL_CLN",X.REMOVE_CHANNEL_CLN="REMOVE_CHANNEL_CLN",X.FETCH_PAYMENTS_CLN="FETCH_PAYMENTS_CLN",X.SET_PAYMENTS_CLN="SET_PAYMENTS_CLN",X.SEND_PAYMENT_CLN="SEND_PAYMENT_CLN",X.SEND_PAYMENT_STATUS_CLN="SEND_PAYMENT_STATUS_CLN",X.GET_QUERY_ROUTES_CLN="GET_QUERY_ROUTES_CLN",X.SET_QUERY_ROUTES_CLN="SET_QUERY_ROUTES_CLN",X.PEER_LOOKUP_CLN="PEER_LOOKUP_CLN",X.CHANNEL_LOOKUP_CLN="CHANNEL_LOOKUP_CLN",X.INVOICE_LOOKUP_CLN="INVOICE_LOOKUP_CLN",X.SET_LOOKUP_CLN="SET_LOOKUP_CLN",X.GET_FORWARDING_HISTORY_CLN="GET_FORWARDING_HISTORY_CLN",X.SET_FORWARDING_HISTORY_CLN="SET_FORWARDING_HISTORY_CLN",X.GET_FAILED_FORWARDING_HISTORY_CLN="GET_FAILED_FORWARDING_HISTORY_CLN",X.SET_FAILED_FORWARDING_HISTORY_CLN="SET_FAILED_FORWARDING_HISTORY_CLN",X.GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",X.SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",X.FETCH_INVOICES_CLN="FETCH_INVOICES_CLN",X.SET_INVOICES_CLN="SET_INVOICES_CLN",X.SAVE_NEW_INVOICE_CLN="SAVE_NEW_INVOICE_CLN",X.ADD_INVOICE_CLN="ADD_INVOICE_CLN",X.UPDATE_INVOICE_CLN="UPDATE_INVOICE_CLN",X.DELETE_EXPIRED_INVOICE_CLN="DELETE_EXPIRED_INVOICE_CLN",X.SET_CHANNEL_TRANSACTION_CLN="SET_CHANNEL_TRANSACTION_CLN",X.SET_CHANNEL_TRANSACTION_RES_CLN="SET_CHANNEL_TRANSACTION_RES_CLN",X.FETCH_OFFER_INVOICE_CLN="FETCH_OFFER_INVOICE_CLN",X.SET_OFFER_INVOICE_CLN="SET_OFFER_INVOICE_CLN",X.FETCH_OFFERS_CLN="FETCH_OFFERS_CLN",X.SET_OFFERS_CLN="SET_OFFERS_CLN",X.SAVE_NEW_OFFER_CLN="SAVE_NEW_OFFER_CLN",X.ADD_OFFER_CLN="ADD_OFFER_CLN",X.DISABLE_OFFER_CLN="DISABLE_OFFER_CLN",X.UPDATE_OFFER_CLN="UPDATE_OFFER_CLN",X.FETCH_OFFER_BOOKMARKS_CLN="FETCH_OFFER_BOOKMARKS_CLN",X.SET_OFFER_BOOKMARKS_CLN="SET_OFFER_BOOKMARKS_CLN",X.ADD_UPDATE_OFFER_BOOKMARK_CLN="ADD_UPDATE_OFFER_BOOKMARK_CLN",X.DELETE_OFFER_BOOKMARK_CLN="DELETE_OFFER_BOOKMARK_CLN",X.REMOVE_OFFER_BOOKMARK_CLN="REMOVE_OFFER_BOOKMARK_CL",Fe;var X})(),De=(()=>{return(X=De||(De={})).RESET_ECL_STORE="RESET_ECL_STORE",X.UPDATE_API_CALL_STATUS_ECL="UPDATE_API_CALL_STATUS_ECL",X.SET_CHILD_NODE_SETTINGS_ECL="SET_CHILD_NODE_SETTINGS_ECL",X.FETCH_PAGE_SETTINGS_ECL="FETCH_PAGE_SETTINGS_ECL",X.SET_PAGE_SETTINGS_ECL="SET_PAGE_SETTINGS_ECL",X.SAVE_PAGE_SETTINGS_ECL="SAVE_PAGE_SETTINGS_ECL",X.FETCH_INFO_ECL="FETCH_INFO_ECL",X.SET_INFO_ECL="SET_INFO_ECL",X.FETCH_FEES_ECL="FETCH_FEES_ECL",X.SET_FEES_ECL="SET_FEES_ECL",X.FETCH_CHANNELS_ECL="FETCH_CHANNELS_ECL",X.SET_ACTIVE_CHANNELS_ECL="SET_ACTIVE_CHANNELS_ECL",X.SET_PENDING_CHANNELS_ECL="SET_PENDING_CHANNELS_ECL",X.SET_INACTIVE_CHANNELS_ECL="SET_INACTIVE_CHANNELS_ECL",X.FETCH_ONCHAIN_BALANCE_ECL="FETCH_ONCHAIN_BALANCE_ECL",X.SET_ONCHAIN_BALANCE_ECL="SET_ONCHAIN_BALANCE_ECL",X.FETCH_LIGHTNING_BALANCE_ECL="FETCH_LIGHTNING_BALANCE_ECL",X.SET_LIGHTNING_BALANCE_ECL="SET_LIGHTNING_BALANCE_ECL",X.SET_CHANNELS_STATUS_ECL="SET_CHANNELS_STATUS_ECL",X.FETCH_PEERS_ECL="FETCH_PEERS_ECL",X.SET_PEERS_ECL="SET_PEERS_ECL",X.SAVE_NEW_PEER_ECL="SAVE_NEW_PEER_ECL",X.NEWLY_ADDED_PEER_ECL="NEWLY_ADDED_PEER_ECL",X.ADD_PEER_ECL="ADD_PEER_ECL",X.DETACH_PEER_ECL="DETACH_PEER_ECL",X.REMOVE_PEER_ECL="REMOVE_PEER_ECL",X.GET_NEW_ADDRESS_ECL="GET_NEW_ADDRESS_ECL",X.SET_NEW_ADDRESS_ECL="SET_NEW_ADDRESS_ECL",X.SAVE_NEW_CHANNEL_ECL="SAVE_NEW_CHANNEL_ECL",X.UPDATE_CHANNEL_ECL="UPDATE_CHANNEL_ECL",X.CLOSE_CHANNEL_ECL="CLOSE_CHANNEL_ECL",X.REMOVE_CHANNEL_ECL="REMOVE_CHANNEL_ECL",X.FETCH_PAYMENTS_ECL="FETCH_PAYMENTS_ECL",X.SET_PAYMENTS_ECL="SET_PAYMENTS_ECL",X.GET_QUERY_ROUTES_ECL="GET_QUERY_ROUTES_ECL",X.SET_QUERY_ROUTES_ECL="SET_QUERY_ROUTES_ECL",X.SEND_PAYMENT_ECL="SEND_PAYMENT_ECL",X.SEND_PAYMENT_STATUS_ECL="SEND_PAYMENT_STATUS_ECL",X.FETCH_TRANSACTIONS_ECL="FETCH_TRANSACTIONS_ECL",X.SET_TRANSACTIONS_ECL="SET_TRANSACTIONS_ECL",X.SEND_ONCHAIN_FUNDS_ECL="SEND_ONCHAIN_FUNDS_ECL",X.SEND_ONCHAIN_FUNDS_RES_ECL="SEND_ONCHAIN_FUNDS_RES_ECL",X.FETCH_INVOICES_ECL="FETCH_INVOICES_ECL",X.SET_INVOICES_ECL="SET_INVOICES_ECL",X.SET_TOTAL_INVOICES_ECL="SET_TOTAL_INVOICES_ECL",X.CREATE_INVOICE_ECL="CREATE_INVOICE_ECL",X.ADD_INVOICE_ECL="ADD_INVOICE_ECL",X.UPDATE_INVOICE_ECL="UPDATE_INVOICE_ECL",X.PEER_LOOKUP_ECL="PEER_LOOKUP_ECL",X.INVOICE_LOOKUP_ECL="INVOICE_LOOKUP_ECL",X.SET_LOOKUP_ECL="SET_LOOKUP_ECL",X.UPDATE_CHANNEL_STATE_ECL="UPDATE_CHANNEL_STATE_ECL",X.UPDATE_RELAYED_PAYMENT_ECL="UPDATE_RELAYED_PAYMENT_ECL",De;var X})();const he=[{range:{min:0,max:1},description:"Requires or supports extra channel re-establish fields"},{range:{min:4,max:5},description:"Commits to a shutdown script pubkey when opening channel"},{range:{min:6,max:7},description:"More sophisticated gossip control"},{range:{min:8,max:9},description:"Requires/supports variable-length routing onion payloads"},{range:{min:10,max:11},description:"Gossip queries can include additional information"},{range:{min:12,max:13},description:"Static key for remote output"},{range:{min:14,max:15},description:"Node supports payment secret field"},{range:{min:16,max:17},description:"Node can receive basic multi-part payments"},{range:{min:18,max:19},description:"Node can create large channels"},{range:{min:20,max:21},description:"Anchor outputs"},{range:{min:22,max:23},description:"Anchor commitment type with zero fee HTLC transactions"},{range:{min:26,max:27},description:"Future segwit versions allowed in shutdown"},{range:{min:30,max:31},description:"AMP support"},{range:{min:44,max:45},description:"Explicit commitment type"}];var Me=(()=>{return(X=Me||(Me={})).gossip_queries_ex="Gossip queries including additional information",X.option_anchor_outputs="Anchor outputs",X.option_data_loss_protect="Extra channel re-establish fields",X.var_onion_optin="Variable-length routing onion payloads",X.option_static_remotekey="Static key for remote output",X.option_support_large_channel="Create large channels",X.option_anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",X.payment_secret="Payment secret field",X.option_shutdown_anysegwit="Future segwit versions allowed in shutdown",X.basic_mpp="Basic multi-part payments",X.gossip_queries="More sophisticated gossip control",X.option_upfront_shutdown_script="Shutdown script pubkey when opening channel",X.anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",X.amp="AMP",Me;var X})(),pe=(()=>{return(X=pe||(pe={}))["data-loss-protect"]="Extra channel re-establish fields",X["upfront-shutdown-script"]="Shutdown script pubkey when opening channel",X["gossip-queries"]="More sophisticated gossip control",X["tlv-onion"]="Variable-length routing onion payloads",X["ext-gossip-queries"]="Gossip queries can include additional information",X["static-remote-key"]="Static key for remote output",X["payment-addr"]="Payment secret field",X["multi-path-payments"]="Basic multi-part payments",X["wumbo-channels"]="Wumbo Channels",X.anchors="Anchor outputs",X["anchors-zero-fee-htlc-tx"]="Anchor commitment type with zero fee HTLC transactions",X.amp="AMP",pe;var X})();const Ve=[{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 Qe=(()=>{return(X=Qe||(Qe={})).OFFERED="offered",X.SETTLED="settled",X.FAILED="failed",X.LOCAL_FAILED="local_failed",Qe;var X})(),lt=(()=>{return(X=lt||(lt={})).ASCENDING="asc",X.DESCENDING="desc",lt;var X})();const Ut=["asc","desc"],ht=[{pageId:"on_chain",tables:[{tableId:"utxos",recordsPerPage:z,sortBy:"blockheight",sortOrder:lt.DESCENDING,columnSelectionSM:["txid","value"],columnSelection:["txid","output","value","blockheight"]},{tableId:"dust_utxos",recordsPerPage:z,sortBy:"blockheight",sortOrder:lt.DESCENDING,columnSelectionSM:["txid","value"],columnSelection:["txid","output","value","blockheight"]}]},{pageId:"peers_channels",tables:[{tableId:"open_channels",recordsPerPage:z,sortBy:"msatoshi_to_us",sortOrder:lt.DESCENDING,columnSelectionSM:["alias","msatoshi_to_us","msatoshi_to_them"],columnSelection:["short_channel_id","alias","msatoshi_to_us","msatoshi_to_them","balancedness"]},{tableId:"pending_inactive_channels",recordsPerPage:z,sortBy:"state",sortOrder:lt.DESCENDING,columnSelectionSM:["alias","state"],columnSelection:["alias","connected","state","msatoshi_total"]},{tableId:"peers",recordsPerPage:z,sortBy:"alias",sortOrder:lt.ASCENDING,columnSelectionSM:["alias","id"],columnSelection:["alias","id","netaddr"]},{tableId:"active_HTLCs",recordsPerPage:z,sortBy:"expiry",sortOrder:lt.DESCENDING,columnSelectionSM:["amount_msat","direction","expiry"],columnSelection:["amount_msat","direction","expiry","state"]}]},{pageId:"liquidity_ads",tables:[{tableId:"liquidity_ads",recordsPerPage:z,sortBy:"channel_opening_fee",sortOrder:lt.ASCENDING,columnSelectionSM:["alias","channel_opening_fee"],columnSelection:["alias","last_timestamp","lease_fee","routing_fee","channel_opening_fee"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:z,sortBy:"created_at",sortOrder:lt.DESCENDING,columnSelectionSM:["created_at","msatoshi"],columnSelection:["created_at","type","payment_hash","msatoshi_sent","msatoshi"]},{tableId:"invoices",recordsPerPage:z,sortBy:"expires_at",sortOrder:lt.DESCENDING,columnSelectionSM:["expires_at","msatoshi"],columnSelection:["expires_at","paid_at","type","description","msatoshi","msatoshi_received"]},{tableId:"offers",recordsPerPage:z,sortBy:"offer_id",sortOrder:lt.DESCENDING,columnSelectionSM:["offer_id","single_use"],columnSelection:["offer_id","single_use","used"]},{tableId:"offer_bookmarks",recordsPerPage:z,sortBy:"lastUpdatedAt",sortOrder:lt.DESCENDING,columnSelectionSM:["lastUpdatedAt","amountMSat"],columnSelection:["lastUpdatedAt","title","description","amountMSat"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:z,sortBy:"received_time",sortOrder:lt.DESCENDING,columnSelectionSM:["received_time","in_msatoshi","out_msatoshi"],columnSelection:["received_time","resolved_time","in_channel_alias","out_channel_alias","in_msatoshi","out_msatoshi","fee"]},{tableId:"routing_peers",recordsPerPage:z,sortBy:"total_fee",sortOrder:lt.DESCENDING,columnSelectionSM:["alias","events","total_fee"],columnSelection:["channel_id","alias","events","total_amount","total_fee"]},{tableId:"failed",recordsPerPage:z,sortBy:"received_time",sortOrder:lt.DESCENDING,columnSelectionSM:["received_time","in_channel_alias","in_msatoshi"],columnSelection:["received_time","resolved_time","in_channel_alias","out_channel_alias","in_msatoshi","out_msatoshi","fee"]},{tableId:"local_failed",recordsPerPage:z,sortBy:"received_time",sortOrder:lt.DESCENDING,columnSelectionSM:["received_time","in_channel_alias","in_msatoshi"],columnSelection:["received_time","in_channel_alias","in_msatoshi","style","failreason"]}]},{pageId:"reports",tables:[{tableId:"routing",recordsPerPage:z,sortBy:"received_time",sortOrder:lt.DESCENDING,columnSelectionSM:["received_time","in_msatoshi","out_msatoshi"],columnSelection:["received_time","resolved_time","in_channel_alias","out_channel_alias","in_msatoshi","out_msatoshi","fee"]},{tableId:"transactions",recordsPerPage:z,sortBy:"date",sortOrder:lt.DESCENDING,columnSelectionSM:["date","amount_paid","amount_received"],columnSelection:["date","amount_paid","num_payments","amount_received","num_invoices"]}]},{pageId:"graph_lookup",tables:[{tableId:"query_routes",recordsPerPage:z,sortBy:"msatoshi",sortOrder:lt.DESCENDING,columnSelectionSM:["alias","direction","msatoshi"],columnSelection:["alias","channel","direction","delay","msatoshi"]}]}],Ge={on_chain:{utxos:{maxColumns:7,allowedColumns:[{column:"txid",label:"Transaction ID"},{column:"address"},{column:"scriptpubkey",label:"Script Pubkey"},{column:"output"},{column:"value"},{column:"blockheight"},{column:"reserved"}]},dust_utxos:{maxColumns:7,allowedColumns:[{column:"txid",label:"Transaction ID"},{column:"address"},{column:"scriptpubkey",label:"Script Pubkey"},{column:"output"},{column:"value"},{column:"blockheight"},{column:"reserved"}]}},peers_channels:{open_channels:{maxColumns:8,allowedColumns:[{column:"short_channel_id"},{column:"alias"},{column:"id"},{column:"channel_id"},{column:"funding_txid",label:"Funding Transaction ID"},{column:"connected"},{column:"our_channel_reserve_satoshis",label:"Local Reserve"},{column:"their_channel_reserve_satoshis",label:"Remote Reserve"},{column:"msatoshi_total",label:"Total"},{column:"spendable_msatoshi",label:"Spendable"},{column:"msatoshi_to_us",label:"Local Balance"},{column:"msatoshi_to_them",label:"Remote Balance"},{column:"balancedness",label:"Balance Score"}]},pending_inactive_channels:{maxColumns:8,allowedColumns:[{column:"alias"},{column:"id"},{column:"channel_id"},{column:"funding_txid",label:"Funding Transaction ID"},{column:"connected"},{column:"state"},{column:"our_channel_reserve_satoshis",label:"Local Reserve"},{column:"their_channel_reserve_satoshis",label:"Remote Reserve"},{column:"msatoshi_total",label:"Total"},{column:"spendable_msatoshi",label:"Spendable"},{column:"msatoshi_to_us",label:"Local Balance"},{column:"msatoshi_to_them",label:"Remote Balance"}]},peers:{maxColumns:3,allowedColumns:[{column:"alias"},{column:"id"},{column:"netaddr",label:"Network Address"}]},active_HTLCs:{maxColumns:7,allowedColumns:[{column:"amount_msat",label:"Amount (Sats)"},{column:"direction"},{column:"id",label:"HTLC ID"},{column:"state"},{column:"expiry"},{column:"payment_hash"},{column:"local_trimmed"}]}},liquidity_ads:{liquidity_ads:{maxColumns:8,allowedColumns:[{column:"alias"},{column:"nodeid",label:"Node ID"},{column:"last_timestamp",label:"Last Announcement At"},{column:"compact_lease"},{column:"lease_fee"},{column:"routing_fee"},{column:"channel_opening_fee"},{column:"funding_weight"}]}},transactions:{payments:{maxColumns:7,allowedColumns:[{column:"created_at",label:"Created At"},{column:"type"},{column:"payment_hash"},{column:"bolt11",label:"Invoice"},{column:"destination"},{column:"memo"},{column:"label"},{column:"msatoshi_sent",label:"Sats Sent"},{column:"msatoshi",label:"Sats Received"}]},invoices:{maxColumns:7,allowedColumns:[{column:"expires_at",label:"Expiry Date"},{column:"paid_at",label:"Date Settled"},{column:"type"},{column:"description"},{column:"label"},{column:"payment_hash"},{column:"bolt11",label:"Invoice"},{column:"msatoshi",label:"Amount"},{column:"msatoshi_received",label:"Amount Settled"}]},offers:{maxColumns:4,allowedColumns:[{column:"offer_id",label:"Offer ID"},{column:"single_use"},{column:"used"},{column:"bolt12",label:"Invoice"}]},offer_bookmarks:{maxColumns:6,allowedColumns:[{column:"lastUpdatedAt",label:"Updated At"},{column:"title"},{column:"description"},{column:"issuer"},{column:"bolt12",label:"Invoice"},{column:"amountMSat",label:"Amount"}]}},routing:{forwarding_history:{maxColumns:8,allowedColumns:[{column:"received_time"},{column:"resolved_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"payment_hash"},{column:"in_msatoshi",label:"Amount In"},{column:"out_msatoshi",label:"Amount Out"},{column:"fee"}]},routing_peers:{maxColumns:5,allowedColumns:[{column:"channel_id"},{column:"alias",label:"Peer Alias"},{column:"events"},{column:"total_amount",label:"Amount"},{column:"total_fee",label:"Fee"}]},failed:{maxColumns:7,allowedColumns:[{column:"received_time"},{column:"resolved_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"in_msatoshi",label:"Amount In"},{column:"out_msatoshi",label:"Amount Out"},{column:"fee"}]},local_failed:{maxColumns:6,allowedColumns:[{column:"received_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"in_msatoshi",label:"Amount In"},{column:"style"},{column:"failreason",label:"Fail Reason"}]}},reports:{routing:{maxColumns:8,allowedColumns:[{column:"received_time"},{column:"resolved_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"payment_hash"},{column:"in_msatoshi",label:"Amount In"},{column:"out_msatoshi",label:"Amount Out"},{column:"fee"}]},transactions:{maxColumns:5,allowedColumns:[{column:"date"},{column:"amount_paid"},{column:"num_payments",label:"# Payments"},{column:"amount_received"},{column:"num_invoices",label:"# Invoices"}]}},graph_lookup:{query_routes:{maxColumns:6,allowedColumns:[{column:"id"},{column:"alias"},{column:"channel"},{column:"direction"},{column:"delay"},{column:"msatoshi",label:"Amount"}]}}},yt=[{pageId:"on_chain",tables:[{tableId:"utxos",recordsPerPage:z,sortBy:"tx_id",sortOrder:lt.DESCENDING,columnSelectionSM:["output","amount_sat"],columnSelection:["tx_id","output","label","amount_sat","confirmations"]},{tableId:"transactions",recordsPerPage:z,sortBy:"time_stamp",sortOrder:lt.DESCENDING,columnSelectionSM:["time_stamp","amount","num_confirmations"],columnSelection:["time_stamp","label","amount","total_fees","block_height","num_confirmations"]},{tableId:"dust_utxos",recordsPerPage:z,sortBy:"tx_id",sortOrder:lt.DESCENDING,columnSelectionSM:["output","amount_sat"],columnSelection:["tx_id","output","label","amount_sat","confirmations"]}]},{pageId:"peers_channels",tables:[{tableId:"open",recordsPerPage:z,sortBy:"balancedness",sortOrder:lt.DESCENDING,columnSelectionSM:["remote_alias","local_balance"],columnSelection:["remote_alias","uptime_str","total_satoshis_sent","total_satoshis_received","local_balance","remote_balance","balancedness"]},{tableId:"pending_open",sortBy:"capacity",sortOrder:lt.DESCENDING,columnSelectionSM:["remote_alias","capacity"],columnSelection:["remote_alias","commit_fee","commit_weight","capacity"]},{tableId:"pending_force_closing",sortBy:"limbo_balance",sortOrder:lt.DESCENDING,columnSelectionSM:["remote_alias","limbo_balance"],columnSelection:["remote_alias","recovered_balance","limbo_balance","capacity"]},{tableId:"pending_closing",sortBy:"capacity",sortOrder:lt.DESCENDING,columnSelectionSM:["remote_alias","capacity"],columnSelection:["remote_alias","local_balance","remote_balance","capacity"]},{tableId:"pending_waiting_close",sortBy:"limbo_balance",sortOrder:lt.DESCENDING,columnSelectionSM:["remote_alias","limbo_balance"],columnSelection:["remote_alias","limbo_balance","local_balance","remote_balance"]},{tableId:"closed",recordsPerPage:z,sortBy:"close_type",sortOrder:lt.DESCENDING,columnSelectionSM:["remote_alias","settled_balance"],columnSelection:["close_type","remote_alias","capacity","close_height","settled_balance"]},{tableId:"active_HTLCs",recordsPerPage:z,sortBy:"incoming",sortOrder:lt.ASCENDING,columnSelectionSM:["amount","incoming","expiration_height"],columnSelection:["amount","incoming","expiration_height","hash_lock"]},{tableId:"peers",recordsPerPage:z,sortBy:"alias",sortOrder:lt.DESCENDING,columnSelectionSM:["alias","sat_sent","sat_recv"],columnSelection:["alias","pub_key","sat_sent","sat_recv","ping_time"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:z,sortBy:"creation_date",sortOrder:lt.DESCENDING,columnSelectionSM:["creation_date","fee","value"],columnSelection:["creation_date","payment_hash","fee","value","hops"]},{tableId:"invoices",recordsPerPage:z,sortBy:"creation_date",sortOrder:lt.DESCENDING,columnSelectionSM:["creation_date","settle_date","value"],columnSelection:["creation_date","settle_date","memo","value","amt_paid_sat"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:z,sortBy:"timestamp",sortOrder:lt.DESCENDING,columnSelectionSM:["timestamp","amt_in","amt_out"],columnSelection:["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat"]},{tableId:"routing_peers",recordsPerPage:z,sortBy:"total_amount",sortOrder:lt.DESCENDING,columnSelectionSM:["alias","events","total_amount"],columnSelection:["chan_id","alias","events","total_amount"]},{tableId:"non_routing_peers",recordsPerPage:z,sortBy:"remote_alias",sortOrder:lt.DESCENDING,columnSelectionSM:["remote_alias","local_balance","remote_balance"],columnSelection:["chan_id","remote_alias","total_satoshis_received","total_satoshis_sent","local_balance","remote_balance"]}]},{pageId:"reports",tables:[{tableId:"routing",recordsPerPage:z,sortBy:"timestamp",sortOrder:lt.DESCENDING,columnSelectionSM:["timestamp","amt_in","amt_out"],columnSelection:["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat"]},{tableId:"transactions",recordsPerPage:z,sortBy:"date",sortOrder:lt.DESCENDING,columnSelectionSM:["date","amount_paid","amount_received"],columnSelection:["date","amount_paid","num_payments","amount_received","num_invoices"]}]},{pageId:"graph_lookup",tables:[{tableId:"query_routes",recordsPerPage:z,sortBy:"hop_sequence",sortOrder:lt.ASCENDING,columnSelectionSM:["hop_sequence","pubkey_alias","fee_msat"],columnSelection:["hop_sequence","pubkey_alias","chan_capacity","amt_to_forward_msat","fee_msat"]}]},{pageId:"loop",tables:[{tableId:"loop",recordsPerPage:z,sortBy:"initiation_time",sortOrder:lt.DESCENDING,columnSelectionSM:["state","amt"],columnSelection:["state","initiation_time","amt","cost_server","cost_offchain","cost_onchain"]}]},{pageId:"boltz",tables:[{tableId:"swap_out",recordsPerPage:z,sortBy:"status",sortOrder:lt.DESCENDING,columnSelectionSM:["status","id","onchainAmount"],columnSelection:["status","id","claimAddress","onchainAmount","timeoutBlockHeight"]},{tableId:"swap_in",recordsPerPage:z,sortBy:"status",sortOrder:lt.DESCENDING,columnSelectionSM:["status","id","expectedAmount"],columnSelection:["status","id","lockupAddress","expectedAmount","timeoutBlockHeight"]}]}],be={on_chain:{utxos:{maxColumns:7,allowedColumns:[{column:"tx_id",label:"Transaction ID"},{column:"output"},{column:"label"},{column:"address_type"},{column:"address"},{column:"amount_sat",label:"Amount"},{column:"confirmations"}]},transactions:{maxColumns:7,allowedColumns:[{column:"time_stamp",label:"Date/Time"},{column:"label"},{column:"block_hash"},{column:"tx_hash",label:"Transaction Hash"},{column:"amount"},{column:"total_fees",label:"Fees"},{column:"block_height"},{column:"num_confirmations",label:"Confirmations"}]},dust_utxos:{maxColumns:7,allowedColumns:[{column:"tx_id",label:"Transaction ID"},{column:"output"},{column:"label"},{column:"address_type"},{column:"address"},{column:"amount_sat"},{column:"confirmations"}]}},peers_channels:{open:{maxColumns:8,allowedColumns:[{column:"remote_alias",label:"Peer"},{column:"remote_pubkey",label:"Pubkey"},{column:"channel_point"},{column:"chan_id",label:"Channel ID"},{column:"initiator"},{column:"static_remote_key"},{column:"uptime_str",label:"Uptime"},{column:"lifetime_str",label:"Lifetime"},{column:"commit_fee"},{column:"commit_weight"},{column:"fee_per_kw",label:"Fee/KW"},{column:"num_updates",label:"Updates"},{column:"unsettled_balance"},{column:"capacity"},{column:"local_chan_reserve_sat",label:"Local Reserve"},{column:"remote_chan_reserve_sat",label:"Remote Reserve"},{column:"total_satoshis_sent",label:"Sats Sent"},{column:"total_satoshis_received",label:"Sats Received"},{column:"local_balance"},{column:"remote_balance"},{column:"balancedness",label:"Balance Score"}]},pending_open:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"confirmation_height"},{column:"commit_fee"},{column:"commit_weight"},{column:"fee_per_kw",label:"Fee/KW"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},pending_force_closing:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"closing_txid",label:"Closing Tx ID"},{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"limbo_balance"},{column:"maturity_height"},{column:"blocks_til_maturity",label:"Blocks till Maturity"},{column:"recovered_balance"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},pending_closing:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"closing_txid",label:"Closing Tx ID"},{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},pending_waiting_close:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"closing_txid",label:"Closing Tx ID"},{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"limbo_balance"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},closed:{maxColumns:7,allowedColumns:[{column:"close_type"},{column:"remote_alias",label:"Peer"},{column:"remote_pubkey",label:"Pubkey"},{column:"channel_point"},{column:"chan_id",label:"Channel ID"},{column:"closing_tx_hash",label:"Closing Tx Hash"},{column:"chain_hash"},{column:"open_initiator"},{column:"close_initiator"},{column:"time_locked_balance",label:"Timelocked Balance"},{column:"capacity"},{column:"close_height"},{column:"settled_balance"}]},active_HTLCs:{maxColumns:7,allowedColumns:[{column:"amount"},{column:"incoming"},{column:"forwarding_channel"},{column:"htlc_index"},{column:"forwarding_htlc_index"},{column:"expiration_height"},{column:"hash_lock"}]},peers:{maxColumns:8,allowedColumns:[{column:"alias"},{column:"pub_key",label:"Public Key"},{column:"address"},{column:"sync_type"},{column:"inbound"},{column:"bytes_sent"},{column:"bytes_recv",label:"Bytes Received"},{column:"sat_sent",label:"Sats Sent"},{column:"sat_recv",label:"Sats Received"},{column:"ping_time"}]}},transactions:{payments:{maxColumns:8,allowedColumns:[{column:"creation_date"},{column:"payment_hash"},{column:"payment_request"},{column:"payment_preimage"},{column:"description"},{column:"description_hash"},{column:"failure_reason"},{column:"payment_index"},{column:"fee"},{column:"value"},{column:"hops"}]},invoices:{maxColumns:9,allowedColumns:[{column:"private"},{column:"is_keysend",label:"Keysend"},{column:"is_amp",label:"AMP"},{column:"creation_date",label:"Date Created"},{column:"settle_date",label:"Date Settled"},{column:"memo"},{column:"r_preimage",label:"Preimage"},{column:"r_hash",label:"Preimage Hash"},{column:"payment_addr",label:"Payment Address"},{column:"payment_request"},{column:"description_hash"},{column:"expiry"},{column:"cltv_expiry"},{column:"add_index"},{column:"settle_index"},{column:"value",label:"Amount"},{column:"amt_paid_sat",label:"Amount Settled"}]}},routing:{forwarding_history:{maxColumns:6,allowedColumns:[{column:"timestamp"},{column:"alias_in",label:"Inbound Alias"},{column:"chan_id_in",label:"Inbound Channel"},{column:"alias_out",label:"Outbound Alias"},{column:"chan_id_out",label:"Outbound Channel"},{column:"amt_in",label:"Inbound Amount"},{column:"amt_out",label:"Outbound Amount"},{column:"fee_msat",label:"Fee"}]},routing_peers:{maxColumns:4,allowedColumns:[{column:"chan_id",label:"Channel ID"},{column:"alias",label:"Peer Alias"},{column:"events"},{column:"total_amount"}]},non_routing_peers:{maxColumns:8,allowedColumns:[{column:"chan_id",label:"Channel ID"},{column:"remote_alias",label:"Peer Alias"},{column:"remote_pubkey",label:"Peer Pubkey"},{column:"channel_point"},{column:"uptime_str",label:"Uptime"},{column:"lifetime_str",label:"Lifetime"},{column:"commit_fee"},{column:"commit_weight"},{column:"fee_per_kw",label:"Fee/KW"},{column:"num_updates",label:"Updates"},{column:"unsettled_balance"},{column:"capacity"},{column:"local_chan_reserve_sat",label:"Local Reserve"},{column:"remote_chan_reserve_sat",label:"Remote Reserve"},{column:"total_satoshis_sent",label:"Sats Sent"},{column:"total_satoshis_received",label:"Sats Received"},{column:"local_balance"},{column:"remote_balance"}]}},reports:{routing:{maxColumns:6,allowedColumns:[{column:"timestamp"},{column:"alias_in",label:"Inbound Alias"},{column:"chan_id_in",label:"Inbound Channel"},{column:"alias_out",label:"Outbound Alias"},{column:"chan_id_out",label:"Outbound Channel"},{column:"amt_in",label:"Inbound Amount"},{column:"amt_out",label:"Outbound Amount"},{column:"fee_msat",label:"Fee"}]},transactions:{maxColumns:5,allowedColumns:[{column:"date"},{column:"amount_paid"},{column:"num_payments",label:"# Payments"},{column:"amount_received"},{column:"num_invoices",label:"# Invoices"}]}},graph_lookup:{query_routes:{maxColumns:8,disablePageSize:!0,allowedColumns:[{column:"hop_sequence",label:"Hop"},{column:"pubkey_alias",label:"Peer"},{column:"pub_key",label:"Peer Pubkey"},{column:"chan_id",label:"Channel ID"},{column:"tlv_payload"},{column:"expiry"},{column:"chan_capacity",label:"Capacity"},{column:"amt_to_forward_msat",label:"Amount To Fwd"},{column:"fee_msat",label:"Fee"}]}},loop:{loop:{maxColumns:8,allowedColumns:[{column:"state"},{column:"initiation_time"},{column:"last_update_time"},{column:"amt",label:"Amount"},{column:"cost_server"},{column:"cost_offchain"},{column:"cost_onchain"},{column:"htlc_address"},{column:"id"},{column:"id_bytes",label:"ID (Bytes)"}]}},boltz:{swap_out:{maxColumns:7,allowedColumns:[{column:"status"},{column:"id",label:"Swap ID"},{column:"claimAddress",label:"Claim Address"},{column:"onchainAmount",label:"Onchain Amount"},{column:"error"},{column:"privateKey",label:"Private Key"},{column:"preimage"},{column:"redeemScript",label:"Redeem Script"},{column:"invoice"},{column:"timeoutBlockHeight",label:"Timeout Block Height"},{column:"lockupTransactionId",label:"Lockup Tx ID"},{column:"claimTransactionId",label:"Claim Tx ID"}]},swap_in:{maxColumns:7,allowedColumns:[{column:"status"},{column:"id",label:"Swap ID"},{column:"lockupAddress",label:"Lockup Address"},{column:"expectedAmount",label:"Expected Amount"},{column:"error"},{column:"privateKey",label:"Private Key"},{column:"preimage"},{column:"redeemScript",label:"Redeem Script"},{column:"invoice"},{column:"timeoutBlockHeight",label:"Timeout Block Height"},{column:"lockupTransactionId",label:"Lockup Tx ID"},{column:"refundTransactionId",label:"Refund Tx ID"}]}}},qe=[{pageId:"on_chain",tables:[{tableId:"transaction",recordsPerPage:z,sortBy:"timestamp",sortOrder:lt.DESCENDING,columnSelectionSM:["timestamp","amount"],columnSelection:["timestamp","address","amount","fees","confirmations"]}]},{pageId:"peers_channels",tables:[{tableId:"open_channels",recordsPerPage:z,sortBy:"alias",sortOrder:lt.DESCENDING,columnSelectionSM:["alias","toLocal","toRemote"],columnSelection:["shortChannelId","alias","feeBaseMsat","feeProportionalMillionths","toLocal","toRemote","balancedness"]},{tableId:"pending_channels",recordsPerPage:z,sortBy:"alias",sortOrder:lt.DESCENDING,columnSelectionSM:["state","alias","toLocal"],columnSelection:["state","alias","toLocal","toRemote"]},{tableId:"inactive_channels",recordsPerPage:z,sortBy:"alias",sortOrder:lt.DESCENDING,columnSelectionSM:["state","alias","toLocal"],columnSelection:["state","shortChannelId","alias","toLocal","toRemote","balancedness"]},{tableId:"peers",recordsPerPage:z,sortBy:"alias",sortOrder:lt.ASCENDING,columnSelectionSM:["alias","nodeId"],columnSelection:["alias","nodeId","address","channels"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:z,sortBy:"firstPartTimestamp",sortOrder:lt.DESCENDING,columnSelectionSM:["firstPartTimestamp","recipientAmount"],columnSelection:["firstPartTimestamp","id","recipientNodeAlias","recipientAmount"]},{tableId:"invoices",recordsPerPage:z,sortBy:"receivedAt",sortOrder:lt.DESCENDING,columnSelectionSM:["timestamp","amount","amountSettled"],columnSelection:["timestamp","receivedAt","description","amount","amountSettled"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:z,sortBy:"timestamp",sortOrder:lt.DESCENDING,columnSelectionSM:["timestamp","amountIn","fee"],columnSelection:["timestamp","fromChannelAlias","toChannelAlias","amountIn","amountOut","fee"]},{tableId:"routing_peers",recordsPerPage:z,sortBy:"totalFee",sortOrder:lt.DESCENDING,columnSelectionSM:["alias","events","totalFee"],columnSelection:["channelId","alias","events","totalAmount","totalFee"]}]},{pageId:"reports",tables:[{tableId:"routing",recordsPerPage:z,sortBy:"timestamp",sortOrder:lt.DESCENDING,columnSelectionSM:["timestamp","amountIn","fee"],columnSelection:["timestamp","fromChannelAlias","toChannelAlias","amountIn","amountOut","fee"]},{tableId:"transactions",recordsPerPage:z,sortBy:"date",sortOrder:lt.DESCENDING,columnSelectionSM:["date","amount_paid","amount_received"],columnSelection:["date","amount_paid","num_payments","amount_received","num_invoices"]}]}],Ie={on_chain:{transaction:{maxColumns:6,allowedColumns:[{column:"timestamp",label:"Date/Time"},{column:"address"},{column:"blockHash"},{column:"txid",label:"Transaction ID"},{column:"amount"},{column:"fees"},{column:"confirmations"}]}},peers_channels:{open_channels:{maxColumns:8,allowedColumns:[{column:"shortChannelId"},{column:"channelId"},{column:"alias"},{column:"nodeId"},{column:"isInitiator",label:"Initiator"},{column:"feeBaseMsat",label:"Base Fee"},{column:"feeProportionalMillionths",label:"Fee Rate"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"},{column:"balancedness",label:"Balance Score"}]},pending_channels:{maxColumns:7,allowedColumns:[{column:"state"},{column:"channelId"},{column:"alias"},{column:"nodeId"},{column:"isInitiator",label:"Initiator"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"}]},inactive_channels:{maxColumns:8,allowedColumns:[{column:"state"},{column:"shortChannelId"},{column:"channelId"},{column:"alias"},{column:"nodeId"},{column:"isInitiator",label:"Initiator"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"},{column:"balancedness",label:"Balance Score"}]},peers:{maxColumns:4,allowedColumns:[{column:"alias"},{column:"nodeId"},{column:"address",label:"Netwrok Address"},{column:"channels"}]}},transactions:{payments:{maxColumns:7,allowedColumns:[{column:"firstPartTimestamp",label:"Date/Time"},{column:"id"},{column:"recipientNodeId",label:"Destination Node ID"},{column:"recipientNodeAlias",label:"Destination"},{column:"description"},{column:"paymentHash"},{column:"paymentPreimage",label:"Preimage"},{column:"recipientAmount",label:"Amount"}]},invoices:{maxColumns:7,allowedColumns:[{column:"timestamp",label:"Date Created"},{column:"expiresAt",label:"Date Expiry"},{column:"receivedAt",label:"Date Settled"},{column:"nodeId",label:"Node ID"},{column:"description"},{column:"paymentHash"},{column:"amount"},{column:"amountSettled",label:"Amount Settled"}]}},routing:{forwarding_history:{maxColumns:7,allowedColumns:[{column:"timestamp",label:"Date/Time"},{column:"fromChannelId",label:"In Channel ID"},{column:"fromShortChannelId",label:"In Channel Short ID"},{column:"fromChannelAlias",label:"In Channel"},{column:"toChannelId",label:"Out Channel ID"},{column:"toShortChannelId",label:"Out Channel Short ID"},{column:"toChannelAlias",label:"Out Channel"},{column:"paymentHash"},{column:"amountIn"},{column:"amountOut"},{column:"fee",label:"Fee Earned"}]},routing_peers:{maxColumns:5,allowedColumns:[{column:"channelId"},{column:"alias",label:"Peer Alias"},{column:"events"},{column:"totalAmount",label:"Amount"},{column:"totalFee",label:"Fee"}]}},reports:{routing:{maxColumns:7,allowedColumns:[{column:"timestamp",label:"Date/Time"},{column:"fromChannelId",label:"In Channel ID"},{column:"fromShortChannelId",label:"In Channel Short ID"},{column:"fromChannelAlias",label:"In Channel"},{column:"toChannelId",label:"Out Channel ID"},{column:"toShortChannelId",label:"Out Channel Short ID"},{column:"toChannelAlias",label:"Out Channel"},{column:"paymentHash"},{column:"amountIn"},{column:"amountOut"},{column:"fee",label:"Fee Earned"}]},transactions:{maxColumns:5,allowedColumns:[{column:"date"},{column:"amount_paid"},{column:"num_payments",label:"# Payments"},{column:"amount_received"},{column:"num_invoices",label:"# Invoices"}]}}}},8104:(We,q,m)=>{"use strict";m.d(q,{D:()=>ie});var t=m(529),e=m(1135),_=m(7579),T=m(2843),s=m(9646),y=m(590),h=m(5577),P=m(2722),d=m(4004),w=m(262),C=m(1365),L=m(7731),D=m(1786),z=m(7861),V=m(6523),Y=m(6529),j=m(9828),Q=m(4650),J=m(9653),ee=m(5043),me=m(7009),re=m(6895);let ie=(()=>{var se;class ce{constructor(M,i,a,f,l){this.httpClient=M,this.store=i,this.logger=a,this.snackBar=f,this.titleCasePipe=l,this.APIUrl=L.T5,this.lnImplementation="",this.lnImplementationUpdated=new e.X(null),this.unSubs=[new _.x,new _.x,new _.x,new _.x,new _.x,new _.x,new _.x,new _.x,new _.x,new _.x,new _.x,new _.x,new _.x],this.mapAliases=(v,I)=>(v&&v.length>0?v.forEach((k,x)=>{if(I&&I.length>0)for(let n=0;n{let f=this.APIUrl+"/"+a+L.vv.PAYMENTS_API+"/decode/"+M;return"cln"===a&&(f=this.APIUrl+"/"+a+L.vv.UTILITY_API+"/decode/"+M),this.store.dispatch((0,z.ac)({payload:L.m6.DECODE_PAYMENT})),this.httpClient.get(f).pipe((0,P.R)(this.unSubs[0]),(0,d.U)(l=>(this.store.dispatch((0,z.uO)({payload:L.m6.DECODE_PAYMENT})),l)),(0,w.K)(l=>(i?this.handleErrorWithoutAlert("Decode Payment",L.m6.DECODE_PAYMENT,l):this.handleErrorWithAlert("decodePaymentData",L.m6.DECODE_PAYMENT,"Decode Payment Failed",f,l),(0,T._)(()=>new Error(this.extractErrorMessage(l))))))}))}decodePayments(M){return this.lnImplementationUpdated.pipe((0,y.P)(),(0,h.z)(i=>{let a="",f="";return"ecl"===i?(a=this.APIUrl+"/"+i+L.vv.PAYMENTS_API+"/getsentinfos",f=L.m6.GET_SENT_PAYMENTS):"cln"===i?(a=this.APIUrl+"/"+i+L.vv.UTILITY_API,f=L.m6.DECODE_PAYMENTS):(a=this.APIUrl+"/"+i+L.vv.PAYMENTS_API,f=L.m6.DECODE_PAYMENTS),this.store.dispatch((0,z.ac)({payload:f})),this.httpClient.post(a,{payments:M}).pipe((0,P.R)(this.unSubs[1]),(0,d.U)(l=>(this.store.dispatch((0,z.uO)({payload:f})),l)),(0,w.K)(l=>(this.handleErrorWithAlert("decodePaymentsData",f,f+" Failed",a,l),(0,T._)(()=>new Error(this.extractErrorMessage(l))))))}))}getAliasesFromPubkeys(M,i){return this.lnImplementationUpdated.pipe((0,y.P)(),(0,h.z)(a=>{if(i){const f=(new t.LE).set("pubkeys",M);return this.httpClient.get(this.APIUrl+"/"+a+L.vv.NETWORK_API+"/nodes",{params:f})}return this.httpClient.get(this.APIUrl+"/"+a+L.vv.NETWORK_API+"/node/"+M)}))}signMessage(M){return this.lnImplementationUpdated.pipe((0,y.P)(),(0,h.z)(i=>{let a=this.APIUrl+"/"+i+L.vv.MESSAGE_API+"/sign";return"cln"===i&&(a=this.APIUrl+"/"+i+L.vv.UTILITY_API+"/sign"),this.store.dispatch((0,z.ac)({payload:L.m6.SIGN_MESSAGE})),this.httpClient.post(a,{message:M}).pipe((0,P.R)(this.unSubs[2]),(0,d.U)(f=>(this.store.dispatch((0,z.uO)({payload:L.m6.SIGN_MESSAGE})),f)),(0,w.K)(f=>(this.handleErrorWithAlert("signMessageData",L.m6.SIGN_MESSAGE,"Sign Message Failed",a,f),(0,T._)(()=>new Error(this.extractErrorMessage(f))))))}))}verifyMessage(M,i){return this.lnImplementationUpdated.pipe((0,y.P)(),(0,h.z)(a=>{let f=this.APIUrl+"/"+a+L.vv.MESSAGE_API+"/verify";return"cln"===a&&(f=this.APIUrl+"/"+a+L.vv.UTILITY_API+"/verify"),this.store.dispatch((0,z.ac)({payload:L.m6.VERIFY_MESSAGE})),this.httpClient.post(f,{message:M,signature:i}).pipe((0,P.R)(this.unSubs[3]),(0,d.U)(l=>(this.store.dispatch((0,z.uO)({payload:L.m6.VERIFY_MESSAGE})),l)),(0,w.K)(l=>(this.handleErrorWithAlert("verifyMessageData",L.m6.VERIFY_MESSAGE,"Verify Message Failed",f,l),(0,T._)(()=>new Error(this.extractErrorMessage(l))))))}))}bumpFee(M,i,a,f){return this.lnImplementationUpdated.pipe((0,y.P)(),(0,h.z)(l=>{const v={txid:M,outputIndex:i};return a&&(v.targetConf=a),f&&(v.satPerByte=f),this.store.dispatch((0,z.ac)({payload:L.m6.BUMP_FEE})),this.httpClient.post(this.APIUrl+"/"+l+L.vv.WALLET_API+"/bumpfee",v).pipe((0,P.R)(this.unSubs[4]),(0,d.U)(I=>(this.store.dispatch((0,z.uO)({payload:L.m6.BUMP_FEE})),this.snackBar.open("Successfully bumped the fee. Use the block explorer to verify transaction."),I)),(0,w.K)(I=>(this.handleErrorWithoutAlert("Bump Fee",L.m6.BUMP_FEE,I),(0,T._)(()=>new Error(this.extractErrorMessage(I))))))}))}labelUTXO(M,i,a=!0){return this.lnImplementationUpdated.pipe((0,y.P)(),(0,h.z)(f=>{const l={txid:M,label:i,overwrite:a};return this.store.dispatch((0,z.ac)({payload:L.m6.LABEL_UTXO})),this.httpClient.post(this.APIUrl+"/"+f+L.vv.WALLET_API+"/label",l).pipe((0,P.R)(this.unSubs[5]),(0,d.U)(v=>(this.store.dispatch((0,z.uO)({payload:L.m6.LABEL_UTXO})),v)),(0,w.K)(v=>(this.handleErrorWithoutAlert("Lease UTXO",L.m6.LABEL_UTXO,v),(0,T._)(()=>new Error(this.extractErrorMessage(v))))))}))}leaseUTXO(M,i){return this.lnImplementationUpdated.pipe((0,y.P)(),(0,h.z)(a=>{const f={txid:M,outputIndex:i};return this.store.dispatch((0,z.ac)({payload:L.m6.LEASE_UTXO})),this.httpClient.post(this.APIUrl+"/"+a+L.vv.WALLET_API+"/lease",f).pipe((0,P.R)(this.unSubs[6]),(0,d.U)(l=>{this.store.dispatch((0,z.uO)({payload:L.m6.LEASE_UTXO})),this.store.dispatch((0,V.mC)()),this.store.dispatch((0,V.Ly)());const v=new Date(1e3*l.expiration);return Math.round(v.getTime())-60*v.getTimezoneOffset()}),(0,w.K)(l=>(this.handleErrorWithoutAlert("Lease UTXO",L.m6.LEASE_UTXO,l),(0,T._)(()=>new Error(this.extractErrorMessage(l))))))}))}getForwardingHistory(M,i,a,f){if("LND"===M){const l={end_time:a,start_time:i};return this.store.dispatch((0,z.ac)({payload:L.m6.GET_FORWARDING_HISTORY})),this.httpClient.post(this.APIUrl+"/lnd"+L.vv.SWITCH_API,l).pipe((0,P.R)(this.unSubs[7]),(0,C.M)(this.store.select(Y._f)),(0,h.z)(([v,I])=>{if(v.forwarding_events){const k=[...I.channels,...I.closedChannels];v.forwarding_events.forEach(x=>{if(k&&k.length>0)for(let n=0;n(this.handleErrorWithAlert("getForwardingHistoryData",L.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/lnd"+L.vv.SWITCH_API,v),(0,T._)(()=>new Error(this.extractErrorMessage(v))))))}return"CLN"===M?(this.store.dispatch((0,z.ac)({payload:L.m6.GET_FORWARDING_HISTORY})),this.httpClient.get(this.APIUrl+"/cln"+L.vv.CHANNELS_API+"/listForwards?status="+f).pipe((0,P.R)(this.unSubs[8]),(0,C.M)(this.store.select(j.ZW)),(0,h.z)(([l,v])=>{const I=this.mapAliases(l,[...v.activeChannels,...v.pendingChannels,...v.inactiveChannels]);return this.store.dispatch((0,z.uO)({payload:L.m6.GET_FORWARDING_HISTORY})),(0,s.of)(I)}),(0,w.K)(l=>(this.handleErrorWithAlert("getForwardingHistoryData",L.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/cln"+L.vv.CHANNELS_API+"/listForwards?status="+f+"&start="+i+"&end="+a,l),(0,T._)(()=>new Error(this.extractErrorMessage(l))))))):(0,s.of)({})}listNetworkNodes(M=""){return this.lnImplementationUpdated.pipe((0,y.P)(),(0,h.z)(i=>(this.store.dispatch((0,z.ac)({payload:L.m6.LIST_NETWORK_NODES})),this.httpClient.get(this.APIUrl+"/"+i+L.vv.NETWORK_API+"/listNodes"+M).pipe((0,P.R)(this.unSubs[9]),(0,h.z)(a=>(this.store.dispatch((0,z.uO)({payload:L.m6.LIST_NETWORK_NODES})),(0,s.of)(a))),(0,w.K)(a=>(this.handleErrorWithoutAlert("List Network Nodes",L.m6.LIST_NETWORK_NODES,a),(0,T._)(()=>this.extractErrorMessage(a))))))))}listConfigs(){return this.lnImplementationUpdated.pipe((0,y.P)(),(0,h.z)(M=>(this.store.dispatch((0,z.ac)({payload:L.m6.GET_LIST_CONFIGS})),this.httpClient.get(this.APIUrl+"/"+M+L.vv.UTILITY_API+"/listConfigs").pipe((0,P.R)(this.unSubs[10]),(0,h.z)(i=>(this.store.dispatch((0,z.uO)({payload:L.m6.GET_LIST_CONFIGS})),(0,s.of)(i))),(0,w.K)(i=>(this.handleErrorWithoutAlert("List Configurations",L.m6.GET_LIST_CONFIGS,i),(0,T._)(()=>this.extractErrorMessage(i))))))))}getOrUpdateFunderPolicy(M,i,a,f,l,v){return this.lnImplementationUpdated.pipe((0,y.P)(),(0,h.z)(I=>{const k=M?{policy:M,policy_mod:i,lease_fee_base_msat:a,lease_fee_basis:f,channel_fee_max_base_msat:l,channel_fee_max_proportional_thousandths:v}:null;return this.store.dispatch((0,z.ac)({payload:L.m6.GET_FUNDER_POLICY})),this.httpClient.post(this.APIUrl+"/"+I+L.vv.CHANNELS_API+"/funderUpdate",k).pipe((0,P.R)(this.unSubs[11]),(0,d.U)(x=>(this.store.dispatch((0,z.uO)({payload:L.m6.GET_FUNDER_POLICY})),k&&this.store.dispatch((0,z.jW)({payload:"Funder Policy Updated Successfully with Compact Lease: "+x.compact_lease+"!"})),x)),(0,w.K)(x=>(this.handleErrorWithoutAlert("Funder Policy",L.m6.GET_FUNDER_POLICY,x),(0,T._)(()=>new Error(this.extractErrorMessage(x))))))}))}circularRebalance(M,i="",a="",f="",l="",v=[],I="shortChannelId"){return this.httpClient.post(this.APIUrl+"/"+this.lnImplementation+L.vv.CHANNELS_API+"/circularRebalance",{amountMsat:M,sourceShortChannelId:i,sourceNodeId:a,targetShortChannelId:f,targetNodeId:l,ignoreNodeIds:v,format:I}).pipe((0,P.R)(this.unSubs[12]),(0,d.U)(n=>n),(0,w.K)(n=>(this.handleErrorWithoutAlert("Rebalance Channel",L.m6.REBALANCE_CHANNEL,n),(0,T._)(()=>n.error))))}extractErrorMessage(M,i="Unknown Error."){return this.titleCasePipe.transform(M.error.text&&"string"==typeof M.error.text&&M.error.text.includes('')?"API Route Does Not Exist.":M.error&&M.error.error&&M.error.error.error&&M.error.error.error.error&&M.error.error.error.error.error&&"string"==typeof M.error.error.error.error.error?M.error.error.error.error.error:M.error&&M.error.error&&M.error.error.error&&M.error.error.error.error&&"string"==typeof M.error.error.error.error?M.error.error.error.error:M.error&&M.error.error&&M.error.error.error&&"string"==typeof M.error.error.error?M.error.error.error:M.error&&M.error.error&&"string"==typeof M.error.error?M.error.error:M.error&&"string"==typeof M.error?M.error:M.error&&M.error.error&&M.error.error.error&&M.error.error.error.error&&M.error.error.error.error.message&&"string"==typeof M.error.error.error.error.message?M.error.error.error.error.message:M.error&&M.error.error&&M.error.error.error&&M.error.error.error.message&&"string"==typeof M.error.error.error.message?M.error.error.error.message:M.error&&M.error.error&&M.error.error.message&&"string"==typeof M.error.error.message?M.error.error.message:M.error&&M.error.message&&"string"==typeof M.error.message?M.error.message:M.message&&"string"==typeof M.message?M.message:i)}handleErrorWithoutAlert(M,i,a){a.error.text&&"string"==typeof a.error.text&&a.error.text.includes('')&&(a={status:403,error:{message:"API Route Does Not Exist."}}),this.logger.error("ERROR IN: "+M+"\n"+JSON.stringify(a)),401===a.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,z.ts)()),this.store.dispatch((0,z.kS)()),this.store.dispatch((0,z.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,z.uO)({payload:i})),this.store.dispatch((0,z.qi)({payload:{action:M,status:L.Bn.ERROR,statusCode:a.status.toString(),message:this.extractErrorMessage(a)}})))}handleErrorWithAlert(M,i,a,f,l){if(this.logger.error(l),401===l.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,z.ts)()),this.store.dispatch((0,z.kS)()),this.store.dispatch((0,z.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,z.uO)({payload:i}));const v=this.extractErrorMessage(l);this.store.dispatch((0,z.qR)({payload:{data:{type:"ERROR",alertTitle:a,message:{code:l.status?l.status:"Unknown Error",message:v,URL:f},component:D.H}}})),this.store.dispatch((0,z.qi)({payload:{action:M,status:L.Bn.ERROR,statusCode:l.status.toString(),message:v,URL:f}}))}}ngOnDestroy(){this.unSubs.forEach(M=>{M.next(null),M.complete()})}}return(se=ce).\u0275fac=function(M){return new(M||se)(Q.LFG(t.eN),Q.LFG(J.yh),Q.LFG(ee.mQ),Q.LFG(me.ux),Q.LFG(re.rS))},se.\u0275prov=Q.Yz7({token:se,factory:se.\u0275fac}),ce})()},5043:(We,q,m)=>{"use strict";m.d(q,{LG:()=>y,mQ:()=>s});var t=m(4650);const e=(0,t.X6Q)(),_=()=>null;let s=(()=>{var h;class P{invokeConsoleMethod(w,C){}}return(h=P).\u0275fac=function(w){return new(w||h)},h.\u0275prov=t.Yz7({token:h,factory:h.\u0275fac}),P})(),y=(()=>{var h;class P{get info(){return e?console.log.bind(console):_}get warn(){return e?console.warn.bind(console):_}get error(){return e?console.error.bind(console):_}invokeConsoleMethod(w,C){(console[w]||console.log||_).apply(console,[C])}}return(h=P).\u0275fac=function(w){return new(w||h)},h.\u0275prov=t.Yz7({token:h,factory:h.\u0275fac}),P})()},9107:(We,q,m)=>{"use strict";m.d(q,{W:()=>Y});var t=m(529),e=m(1135),_=m(7579),T=m(9646),s=m(2843),y=m(2722),h=m(262),P=m(4004),d=m(7731),w=m(1786),C=m(7861),L=m(4650),D=m(5043),z=m(9653),V=m(62);let Y=(()=>{var j;class Q{constructor(ee,me,re,ie){this.httpClient=ee,this.logger=me,this.store=re,this.commonService=ie,this.loopUrl="",this.swaps=[],this.swapsChanged=new e.X([]),this.unSubs=[new _.x,new _.x,new _.x,new _.x,new _.x,new _.x,new _.x]}getLoopInfo(){return this.loopUrl=d.T5+d.vv.LOOP_API+"/info",this.httpClient.get(this.loopUrl)}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,C.ac)({payload:d.m6.GET_LOOP_SWAPS})),this.loopUrl=d.T5+d.vv.LOOP_API+"/swaps",this.httpClient.get(this.loopUrl).pipe((0,y.R)(this.unSubs[0])).subscribe({next:ee=>{this.store.dispatch((0,C.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,me,re,ie,se,ce,Ce,M,i,a){const f={amount:ee,targetConf:re,swapRoutingFee:ie,minerFee:se,prepayRoutingFee:ce,prepayAmt:Ce,swapFee:M,swapPublicationDeadline:i,destAddress:a};return""!==me&&(f.chanId=me),this.loopUrl=d.T5+d.vv.LOOP_API+"/out",this.httpClient.post(this.loopUrl,f).pipe((0,h.K)(l=>this.handleErrorWithoutAlert("Loop Out for Channel: "+me,d.m6.NO_SPINNER,l)))}getLoopOutTerms(){return this.loopUrl=d.T5+d.vv.LOOP_API+"/out/terms",this.httpClient.get(this.loopUrl).pipe((0,h.K)(ee=>this.handleErrorWithoutAlert("Loop Out Terms",d.m6.NO_SPINNER,ee)))}getLoopOutQuote(ee,me,re){let ie=new t.LE;return ie=ie.append("targetConf",me.toString()),ie=ie.append("swapPublicationDeadline",re.toString()),this.loopUrl=d.T5+d.vv.LOOP_API+"/out/quote/"+ee,this.store.dispatch((0,C.ac)({payload:d.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:ie}).pipe((0,y.R)(this.unSubs[1]),(0,P.U)(se=>(this.store.dispatch((0,C.uO)({payload:d.m6.GET_QUOTE})),se)),(0,h.K)(se=>this.handleErrorWithoutAlert("Loop Out Quote",d.m6.GET_QUOTE,se)))}getLoopOutTermsAndQuotes(ee){let me=new t.LE;return me=me.append("targetConf",ee.toString()),me=me.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=d.T5+d.vv.LOOP_API+"/out/termsAndQuotes",this.store.dispatch((0,C.ac)({payload:d.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:me}).pipe((0,y.R)(this.unSubs[2]),(0,P.U)(re=>(this.store.dispatch((0,C.uO)({payload:d.m6.GET_TERMS_QUOTES})),re)),(0,h.K)(re=>(0,T.of)(this.handleErrorWithAlert(d.m6.GET_TERMS_QUOTES,this.loopUrl,re))))}loopIn(ee,me,re,ie,se){const ce={amount:ee,swapFee:me,minerFee:re,lastHop:ie,externalHtlc:se};return this.loopUrl=d.T5+d.vv.LOOP_API+"/in",this.httpClient.post(this.loopUrl,ce).pipe((0,h.K)(Ce=>this.handleErrorWithoutAlert("Loop In",d.m6.NO_SPINNER,Ce)))}getLoopInTerms(){return this.loopUrl=d.T5+d.vv.LOOP_API+"/in/terms",this.httpClient.get(this.loopUrl).pipe((0,h.K)(ee=>this.handleErrorWithoutAlert("Loop In Terms",d.m6.NO_SPINNER,ee)))}getLoopInQuote(ee,me,re){let ie=new t.LE;return ie=ie.append("targetConf",me.toString()),ie=ie.append("swapPublicationDeadline",re.toString()),this.loopUrl=d.T5+d.vv.LOOP_API+"/in/quote/"+ee,this.store.dispatch((0,C.ac)({payload:d.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:ie}).pipe((0,y.R)(this.unSubs[3]),(0,P.U)(se=>(this.store.dispatch((0,C.uO)({payload:d.m6.GET_QUOTE})),se)),(0,h.K)(se=>this.handleErrorWithoutAlert("Loop In Qoute",d.m6.GET_QUOTE,se)))}getLoopInTermsAndQuotes(ee){let me=new t.LE;return me=me.append("targetConf",ee.toString()),me=me.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=d.T5+d.vv.LOOP_API+"/in/termsAndQuotes",this.store.dispatch((0,C.ac)({payload:d.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:me}).pipe((0,y.R)(this.unSubs[4]),(0,P.U)(re=>(this.store.dispatch((0,C.uO)({payload:d.m6.GET_TERMS_QUOTES})),re)),(0,h.K)(re=>(0,T.of)(this.handleErrorWithAlert(d.m6.GET_TERMS_QUOTES,this.loopUrl,re))))}getSwap(ee){return this.loopUrl=d.T5+d.vv.LOOP_API+"/swap/"+ee,this.httpClient.get(this.loopUrl).pipe((0,h.K)(me=>this.handleErrorWithoutAlert("Loop Get Swap for ID: "+ee,d.m6.NO_SPINNER,me)))}handleErrorWithoutAlert(ee,me,re){let ie="";return this.logger.error("ERROR IN: "+ee+"\n"+JSON.stringify(re)),this.store.dispatch((0,C.uO)({payload:me})),401===re.status?(ie="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,C.kS)())):503===re.status?(ie="Unable to Connect to Loop Server.",this.store.dispatch((0,C.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:re.status,message:"Unable to Connect to Loop Server",URL:ee},component:w.H}}}))):ie=this.commonService.extractErrorMessage(re),(0,s._)(()=>new Error(ie))}handleErrorWithAlert(ee,me,re){let ie="";if(this.logger.error(re),this.store.dispatch((0,C.uO)({payload:ee})),401===re.status)ie="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,C.kS)());else if(503===re.status)ie="Unable to Connect to Loop Server.",setTimeout(()=>{this.store.dispatch((0,C.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:re.status,message:"Unable to Connect to Loop Server",URL:me},component:w.H}}}))},100);else{ie=this.commonService.extractErrorMessage(re);const se=re.error&&re.error.error&&re.error.error.code?re.error.error.code:re.error&&re.error.code?re.error.code:re.code?re.code:re.status;setTimeout(()=>{this.store.dispatch((0,C.qR)({payload:{data:{type:d.n_.ERROR,alertTitle:"ERROR",message:{code:se,message:ie,URL:me},component:w.H}}}))},100)}return{message:ie}}ngOnDestroy(){this.unSubs.forEach(ee=>{ee.next(null),ee.complete()})}}return(j=Q).\u0275fac=function(ee){return new(ee||j)(L.LFG(t.eN),L.LFG(D.mQ),L.LFG(z.yh),L.LFG(V.v))},j.\u0275prov=L.Yz7({token:j,factory:j.\u0275fac}),Q})()},5986:(We,q,m)=>{"use strict";m.d(q,{m:()=>_});var t=m(7579),e=m(4650);let _=(()=>{var T;class s{constructor(){this.sessionSub=new t.x}watchSession(){return this.sessionSub.asObservable()}getItem(h){return sessionStorage.getItem(h)}getAllItems(){return sessionStorage}setItem(h,P){sessionStorage.setItem(h,P),this.sessionSub.next(sessionStorage)}removeItem(h){sessionStorage.removeItem(h),this.sessionSub.next(sessionStorage)}clearAll(){sessionStorage.clear(),this.sessionSub.next(sessionStorage)}}return(T=s).\u0275fac=function(h){return new(h||T)},T.\u0275prov=e.Yz7({token:T,factory:T.\u0275fac}),s})()},7998:(We,q,m)=>{"use strict";m.d(q,{d:()=>z});var t=m(1135),e=m(7579),_=m(2722),T=m(930),s=m(9751),y=m(727),h=m(4707);const P={url:"",deserializer:V=>JSON.parse(V.data),serializer:V=>JSON.stringify(V)};class w extends e.u{constructor(Y,j){if(super(),this._socket=null,Y instanceof s.y)this.destination=j,this.source=Y;else{const Q=this._config=Object.assign({},P);if(this._output=new e.x,"string"==typeof Y)Q.url=Y;else for(const J in Y)Y.hasOwnProperty(J)&&(Q[J]=Y[J]);if(!Q.WebSocketCtor&&WebSocket)Q.WebSocketCtor=WebSocket;else if(!Q.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new h.t}}lift(Y){const j=new w(this._config,this.destination);return j.operator=Y,j.source=this,j}_resetState(){this._socket=null,this.source||(this.destination=new h.t),this._output=new e.x}multiplex(Y,j,Q){const J=this;return new s.y(ee=>{try{J.next(Y())}catch(re){ee.error(re)}const me=J.subscribe({next:re=>{try{Q(re)&&ee.next(re)}catch(ie){ee.error(ie)}},error:re=>ee.error(re),complete:()=>ee.complete()});return()=>{try{J.next(j())}catch(re){ee.error(re)}me.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:Y,protocol:j,url:Q,binaryType:J}=this._config,ee=this._output;let me=null;try{me=j?new Y(Q,j):new Y(Q),this._socket=me,J&&(this._socket.binaryType=J)}catch(ie){return void ee.error(ie)}const re=new y.w0(()=>{this._socket=null,me&&1===me.readyState&&me.close()});me.onopen=ie=>{const{_socket:se}=this;if(!se)return me.close(),void this._resetState();const{openObserver:ce}=this._config;ce&&ce.next(ie);const Ce=this.destination;this.destination=T.Lv.create(M=>{if(1===me.readyState)try{const{serializer:i}=this._config;me.send(i(M))}catch(i){this.destination.error(i)}},M=>{const{closingObserver:i}=this._config;i&&i.next(void 0),M&&M.code?me.close(M.code,M.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:M}=this._config;M&&M.next(void 0),me.close(),this._resetState()}),Ce&&Ce instanceof h.t&&re.add(Ce.subscribe(this.destination))},me.onerror=ie=>{this._resetState(),ee.error(ie)},me.onclose=ie=>{me===this._socket&&this._resetState();const{closeObserver:se}=this._config;se&&se.next(ie),ie.wasClean?ee.complete():ee.error(ie)},me.onmessage=ie=>{try{const{deserializer:se}=this._config;ee.next(se(ie))}catch(se){ee.error(se)}}}_subscribe(Y){const{source:j}=this;return j?j.subscribe(Y):(this._socket||this._connectSocket(),this._output.subscribe(Y),Y.add(()=>{const{_socket:Q}=this;0===this._output.observers.length&&(Q&&(1===Q.readyState||0===Q.readyState)&&Q.close(),this._resetState())}),Y)}unsubscribe(){const{_socket:Y}=this;Y&&(1===Y.readyState||0===Y.readyState)&&Y.close(),this._resetState(),super.unsubscribe()}}var C=m(4650),L=m(5043),D=m(5986);let z=(()=>{var V;class Y{constructor(Q,J){this.logger=Q,this.sessionService=J,this.clWSMessages=new t.X(null),this.eclWSMessages=new t.X(null),this.lndWSMessages=new t.X(null),this.wsUrl="",this.nodeIndex="",this.RETRY_SECONDS=5,this.RECONNECT_TIMEOUT=null,this.unSubs=[new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x]}connectWebSocket(Q,J){(!this.socket||this.socket.closed)&&(this.wsUrl=Q,this.nodeIndex=J,this.logger.info("Websocket Url: "+this.wsUrl),this.socket=new w({url:Q,protocol:[this.sessionService.getItem("token")||"",J]}),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,_.R)(this.unSubs[1])).subscribe({next:Q=>{if((Q="string"==typeof Q?JSON.parse(Q):Q).error)this.handleError(Q.error);else switch(this.logger.info("Next Message from WS:"+JSON.stringify(Q)),Q.source){case"LND":this.lndWSMessages.next(Q);break;case"CLN":this.clWSMessages.next(Q);break;case"ECL":this.eclWSMessages.next(Q)}},error:Q=>this.handleError(Q),complete:()=>{this.logger.info("Web Socket Closed")}})}handleError(Q){this.logger.error(Q),this.clWSMessages.error(Q),this.eclWSMessages.error(Q),this.lndWSMessages.error(Q),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(V=Y).\u0275fac=function(Q){return new(Q||V)(C.LFG(L.mQ),C.LFG(D.m))},V.\u0275prov=C.Yz7({token:V,factory:V.\u0275fac}),Y})()},9470:(We,q,m)=>{"use strict";m.d(q,{m:()=>Ro});var t=m(6895),e=m(9116),_=m(4006),T=m(529),s=m(2216),y=m(4650),h=m(2233),P=m(5829),d=m(1576);m(1281);let wt=(()=>{class Ft{}return Ft.\u0275fac=function(Ct){return new(Ct||Ft)},Ft.\u0275mod=y.oAB({type:Ft}),Ft.\u0275inj=y.cJS({imports:[h.IR]}),Ft})(),si=(()=>{class Ft{constructor(Ct,ai){(0,t.PM)(ai)&&!Ct&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(Ct,ai=[]){return{ngModule:Ft,providers:Ct.serverLoaded?[{provide:h.WU,useValue:{...h.g5,...Ct}},{provide:h.Bs,useValue:ai,multi:!0},{provide:h.wY,useValue:!0}]:[{provide:h.WU,useValue:{...h.g5,...Ct}},{provide:h.Bs,useValue:ai,multi:!0}]}}}return Ft.\u0275fac=function(Ct){return new(Ct||Ft)(y.LFG(h.wY),y.LFG(y.Lbi))},Ft.\u0275mod=y.oAB({type:Ft}),Ft.\u0275inj=y.cJS({imports:[d.ae,P.aT,wt,d.ae,P.aT,wt]}),Ft})();var Ai=m(2289),Oi=m(3238),Qi=m(5412),en=m(7957),Yi=m(2673),Yt=m(4859);m(4761),m(5017);let Dn=(()=>{class Ft{}return Ft.\u0275fac=function(Ct){return new(Ct||Ft)},Ft.\u0275mod=y.oAB({type:Ft}),Ft.\u0275inj=y.cJS({imports:[Oi.BQ,Oi.si,Oi.BQ]}),Ft})();var oa=m(3546),Ea=m(6709),ta=m(9602),er=m(752),Jt=m(782),pi=m(7392),Kt=m(4144),ri=m(6338),xi=m(8255),Hi=m(8739),ln=m(3162),Gn=m(1572),Hn=m(1948),_a=m(4385),Tn=m(3267),Vn=m(455);m(7579);let Fr=(()=>{class Ft{}return Ft.\u0275fac=function(Ct){return new(Ct||Ft)},Ft.\u0275mod=y.oAB({type:Ft}),Ft.\u0275inj=y.cJS({imports:[Oi.BQ,t.ez,Oi.si]}),Ft})();var Wa=m(7009),Hr=m(6308),sa=m(8425),za=m(671),sr=m(3848),gr=m(3683),Cr=m(266),Oo=m(5423),oo=m(7331),Qr=m(3803),qr=m(658),cr=m(6839),Po=m(8184),wo=m(3353);let Va=(()=>{var Ft;class hi extends Po.Xj{constructor(ai,Ii){super(ai,Ii)}_createContainer(){super._createContainer(),this._containerElement&&(document.querySelector("#rtl-container")||document.body).appendChild(this._containerElement)}ngOnDestroy(){super.ngOnDestroy()}}return(Ft=hi).\u0275fac=function(ai){return new(ai||Ft)(y.Y36(t.K0),y.Y36(wo.t4))},Ft.\u0275dir=y.lG2({type:Ft,features:[y.qOj]}),hi})();var wr=m(5043),Qn=m(7731),On=m(9445);const lr={suppressScrollX:!1,suppressScrollY:!1};let Mr=(()=>{var Ft;class hi extends Oi.LF{constructor(ai,Ii){super(ai,Ii)}format(ai,Ii){if("input"===Ii){let nn=ai.getDate().toString();return nn=+nn<10?"0"+nn:nn,nn+"/"+Qn.gg[ai.getMonth()].name.toUpperCase()+"/"+ai.getFullYear()}return Qn.gg[ai.getMonth()].name.toUpperCase()+" "+ai.getFullYear()}}return(Ft=hi).\u0275fac=function(ai){return new(ai||Ft)(y.LFG(Oi.Ad,8),y.LFG(wo.t4))},Ft.\u0275prov=y.Yz7({token:Ft,factory:Ft.\u0275fac}),hi})();const ya={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 Ro=(()=>{var Ft;class hi{}return(Ft=hi).\u0275fac=function(ai){return new(ai||Ft)},Ft.\u0275mod=y.oAB({type:Ft}),Ft.\u0275inj=y.cJS({providers:[{provide:wr.mQ,useClass:wr.LG},{provide:cr.op,useValue:lr},{provide:Wa.Ve,useValue:{duration:2e3,verticalPosition:"bottom",panelClass:"rtl-snack-bar"}},{provide:Qi.Bq,useValue:{hasBackdrop:!0,autoFocus:!0,disableClose:!0,role:"dialog"}},{provide:Oi._A,useClass:Mr},{provide:Oi.sG,useValue:ya},{provide:Po.Xj,useClass:Va},t.JJ,t.rS,t.uU,On.al,On.h9,On.D3,On.i1],imports:[t.ez,_.u5,_.UX,s.uH,si,Ai.xu,Qi.Is,Yt.ot,Dn,oa.QW,Ea.p9,er.To,Jt.N6,ta.FA,Oi.XK,pi.Ps,Kt.c,ri.ie,xi.Tx,ln.Cv,Gn.Cq,Hn.Fk,Oo.dp,oo.Hi,_a.LD,Tn.SJ,Vn.rP,Hr.JX,za.p0,gr.g0,Cr.AV,Yi.g,Hi.TU,sa.T5,Fr,sr.Nh,Wa.ZX,en.Bb,Qr.a4,qr.OF,e.Bz,T.JF,cr.Xd,_.u5,_.UX,s.uH,si,Ai.xu,Qi.Is,Yt.ot,Dn,oa.QW,Ea.p9,er.To,Jt.N6,ta.FA,Oi.XK,pi.Ps,Kt.c,ri.ie,xi.Tx,ln.Cv,Gn.Cq,Hn.Fk,Oo.dp,oo.Hi,_a.LD,Tn.SJ,Vn.rP,Hr.JX,za.p0,gr.g0,Cr.AV,Yi.g,Hi.TU,sa.T5,Fr,sr.Nh,Wa.ZX,en.Bb,Qr.a4,qr.OF,cr.Xd]}),hi})()},7861:(We,q,m)=>{"use strict";m.d(q,{M6:()=>C,Q2:()=>V,QO:()=>l,Tm:()=>se,Uy:()=>re,XT:()=>ee,_V:()=>Ce,ac:()=>P,c0:()=>a,c1:()=>L,dc:()=>x,ey:()=>J,fk:()=>ie,jS:()=>ce,jW:()=>h,kS:()=>i,lC:()=>T,qR:()=>w,qi:()=>s,tj:()=>z,ts:()=>y,tw:()=>j,uO:()=>d,vI:()=>Q,x4:()=>I,yb:()=>D,zQ:()=>me});var t=m(9653),e=m(7731);(0,t.PH)(e.pg.VOID);const T=(0,t.PH)(e.pg.SET_API_URL_ECL,(0,t.Ky)()),s=(0,t.PH)(e.pg.UPDATE_API_CALL_STATUS_ROOT,(0,t.Ky)()),y=(0,t.PH)(e.pg.CLOSE_ALL_DIALOGS),h=(0,t.PH)(e.pg.OPEN_SNACK_BAR,(0,t.Ky)()),P=(0,t.PH)(e.pg.OPEN_SPINNER,(0,t.Ky)()),d=(0,t.PH)(e.pg.CLOSE_SPINNER,(0,t.Ky)()),w=(0,t.PH)(e.pg.OPEN_ALERT,(0,t.Ky)()),C=(0,t.PH)(e.pg.CLOSE_ALERT,(0,t.Ky)()),L=(0,t.PH)(e.pg.OPEN_CONFIRMATION,(0,t.Ky)()),D=(0,t.PH)(e.pg.CLOSE_CONFIRMATION,(0,t.Ky)()),z=(0,t.PH)(e.pg.SHOW_PUBKEY),V=(0,t.PH)(e.pg.FETCH_CONFIG,(0,t.Ky)()),j=((0,t.PH)(e.pg.SHOW_CONFIG,(0,t.Ky)()),(0,t.PH)(e.pg.UPDATE_SELECTED_NODE_OPTIONS)),Q=(0,t.PH)(e.pg.RESET_ROOT_STORE,(0,t.Ky)()),J=(0,t.PH)(e.pg.FETCH_RTL_CONFIG),ee=(0,t.PH)(e.pg.SET_RTL_CONFIG,(0,t.Ky)()),me=(0,t.PH)(e.pg.SAVE_SETTINGS,(0,t.Ky)()),re=(0,t.PH)(e.pg.TWO_FA_SAVE_SETTINGS,(0,t.Ky)()),ie=(0,t.PH)(e.pg.SET_SELECTED_NODE,(0,t.Ky)()),se=(0,t.PH)(e.pg.UPDATE_ROOT_NODE_SETTINGS,(0,t.Ky)()),ce=(0,t.PH)(e.pg.UPDATE_SERVICE_SETTINGS,(0,t.Ky)()),Ce=(0,t.PH)(e.pg.SET_NODE_DATA,(0,t.Ky)()),i=((0,t.PH)(e.pg.SAVE_SSO,(0,t.Ky)()),(0,t.PH)(e.pg.LOGOUT)),a=(0,t.PH)(e.pg.RESET_PASSWORD,(0,t.Ky)()),l=((0,t.PH)(e.pg.RESET_PASSWORD_RES,(0,t.Ky)()),(0,t.PH)(e.pg.IS_AUTHORIZED,(0,t.Ky)())),I=((0,t.PH)(e.pg.IS_AUTHORIZED_RES,(0,t.Ky)()),(0,t.PH)(e.pg.LOGIN,(0,t.Ky)())),x=((0,t.PH)(e.pg.VERIFY_TWO_FA,(0,t.Ky)()),(0,t.PH)(e.pg.FETCH_FILE,(0,t.Ky)()));(0,t.PH)(e.pg.SHOW_FILE,(0,t.Ky)())},3093:(We,q,m)=>{"use strict";m.d(q,{V:()=>Bt});var t=m(4650),e=m(493),_=m(7579),T=m(9646),s=m(9751),y=m(4128),h=m(4004),P=m(5698),d=m(1365),w=m(5577),C=m(262),L=m(2722),D=m(7731),z=m(5412),V=m(1576),Y=m(1572);let j=(()=>{var Ot;class vi{constructor(mi,gi){this.dialogRef=mi,this.data=gi}}return(Ot=vi).\u0275fac=function(mi){return new(mi||Ot)(t.Y36(z.so),t.Y36(z.WI))},Ot.\u0275cmp=t.Xpm({type:Ot,selectors:[["rtl-spinner-dialog"]],decls:4,vars:1,consts:[["fxLayout","column","fxLayoutAlign","center center",1,"spinner-container"],["color","primary","mode","indeterminate",1,"modal-spinner-message"]],template:function(mi,gi){1&mi&&(t.TgZ(0,"div",0),t._UZ(1,"mat-progress-spinner",1),t.TgZ(2,"h2"),t._uU(3),t.qZA()()),2&mi&&(t.xp6(3),t.Oqu(gi.data.titleMessage))},dependencies:[V.xw,V.Wh,Y.Ou],styles:["h2[_ngcontent-%COMP%]{text-align:center}"]}),vi})();var Q=m(5043),J=m(7009),ee=m(62),me=m(9116),re=m(6895),ie=m(5829),se=m(4859),ce=m(3546),Ce=m(7392),M=m(4850),i=m(266),a=m(658),f=m(6839),l=m(5199),v=m(3390);const I=["scrollContainer"];function k(Ot,vi){if(1&Ot&&t._UZ(0,"qr-code",15),2&Ot){const li=t.oxw();t.Q6J("value",li.showQRField)("size",200)("errorCorrectionLevel","L")}}function x(Ot,vi){1&Ot&&t.GkF(0)}const n=function(Ot){return{"h-40":Ot}};function g(Ot,vi){if(1&Ot&&(t.ynx(0),t.TgZ(1,"mat-card-content",16,17),t.YNc(3,x,1,0,"ng-container",18),t.qZA(),t.BQk()),2&Ot){const li=t.oxw(),mi=t.MAs(20);t.xp6(1),t.Q6J("ngClass",t.VKq(2,n,li.data.scrollable)),t.xp6(2),t.Q6J("ngTemplateOutlet",mi)}}function W(Ot,vi){1&Ot&&t.GkF(0)}function O(Ot,vi){if(1&Ot&&(t.ynx(0),t.TgZ(1,"mat-card-content",19),t.YNc(2,W,1,0,"ng-container",18),t.qZA(),t.BQk()),2&Ot){t.oxw();const li=t.MAs(20);t.xp6(2),t.Q6J("ngTemplateOutlet",li)}}function U(Ot,vi){1&Ot&&(t.TgZ(0,"mat-icon",23),t._uU(1,"arrow_downward"),t.qZA())}function ge(Ot,vi){1&Ot&&(t.TgZ(0,"mat-icon",23),t._uU(1,"arrow_upward"),t.qZA())}function nt(Ot,vi){if(1&Ot){const li=t.EpF();t.TgZ(0,"div",20)(1,"button",21),t.NdJ("click",function(){t.CHM(li);const gi=t.oxw();return t.KtG(gi.onScroll())}),t.YNc(2,U,2,0,"mat-icon",22),t.YNc(3,ge,2,0,"mat-icon",22),t.qZA()()}if(2&Ot){const li=t.oxw();t.xp6(2),t.Q6J("ngIf","DOWN"===li.scrollDirection),t.xp6(1),t.Q6J("ngIf","UP"===li.scrollDirection)}}function Ue(Ot,vi){1&Ot&&(t.TgZ(0,"button",24),t._uU(1,"OK"),t.qZA()),2&Ot&&t.Q6J("mat-dialog-close",!1)}function at(Ot,vi){1&Ot&&(t.TgZ(0,"button",25),t._uU(1,"Close"),t.qZA()),2&Ot&&t.Q6J("mat-dialog-close",!1)}function ye(Ot,vi){if(1&Ot){const li=t.EpF();t.TgZ(0,"button",26),t.NdJ("copied",function(gi){t.CHM(li);const Ui=t.oxw();return t.KtG(Ui.onCopyField(gi))}),t._uU(1),t.qZA()}if(2&Ot){const li=t.oxw();t.Q6J("payload",li.showCopyField),t.xp6(1),t.hij("Copy ",li.showCopyName,"")}}function xe(Ot,vi){1&Ot&&(t.TgZ(0,"button",25),t._uU(1,"Close"),t.qZA()),2&Ot&&t.Q6J("mat-dialog-close",!1)}function fe(Ot,vi){if(1&Ot){const li=t.EpF();t.TgZ(0,"button",26),t.NdJ("copied",function(gi){t.CHM(li);const Ui=t.oxw();return t.KtG(Ui.onCopyField(gi))}),t._uU(1),t.qZA()}if(2&Ot){const li=t.oxw();t.Q6J("payload",li.showQRField),t.xp6(1),t.hij("Copy ",li.showQRName,"")}}function Oe(Ot,vi){if(1&Ot&&t._UZ(0,"qr-code",15),2&Ot){const li=t.oxw(2);t.Q6J("value",li.showQRField)("size",200)("errorCorrectionLevel","L")}}function oe(Ot,vi){if(1&Ot&&(t.TgZ(0,"p",32),t._uU(1),t.qZA()),2&Ot){const li=t.oxw(2);t.xp6(1),t.Oqu(li.data.titleMessage)}}function Fe(Ot,vi){1&Ot&&t._UZ(0,"span",46),2&Ot&&t.Q6J("innerHTML",vi.$implicit,t.oJD)}function De(Ot,vi){if(1&Ot&&(t.ynx(0),t.YNc(1,Fe,1,1,"span",45),t.BQk()),2&Ot){const li=t.oxw(2).$implicit;t.xp6(1),t.Q6J("ngForOf",li.value)}}function he(Ot,vi){if(1&Ot&&(t.ynx(0),t._uU(1),t.ALo(2,"date"),t.BQk()),2&Ot){const li=t.oxw(2).$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*li.value,"dd/MMM/y HH:mm"))}}function Me(Ot,vi){if(1&Ot&&(t.ynx(0),t._uU(1),t.ALo(2,"number"),t.BQk()),2&Ot){const li=t.oxw(2).$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,li.value,li.digitsInfo?li.digitsInfo:"1.0-3"))}}function pe(Ot,vi){if(1&Ot&&(t.ynx(0),t._uU(1),t.BQk()),2&Ot){const li=t.oxw(2).$implicit;t.xp6(1),t.Oqu(li.value?"True":"False")}}function Ve(Ot,vi){1&Ot&&(t.TgZ(0,"mat-icon",51),t._uU(1,"info"),t.qZA())}const Qe=function(Ot){return{"failed-status":Ot}};function Pe(Ot,vi){if(1&Ot&&(t.TgZ(0,"p",49),t._uU(1),t.YNc(2,Ve,2,0,"mat-icon",50),t.qZA()),2&Ot){const li=t.oxw(3).$implicit,mi=t.oxw(4);t.Q6J("ngClass",t.VKq(3,Qe,li.value===mi.LoopStateEnum.FAILED)),t.xp6(1),t.hij(" ",li.value," "),t.xp6(1),t.Q6J("ngIf",li.value===mi.LoopStateEnum.FAILED)}}function de(Ot,vi){if(1&Ot){const li=t.EpF();t.TgZ(0,"p",54),t.NdJ("click",function(){t.CHM(li);const gi=t.oxw(8);return t.KtG(gi.onGoToLink())}),t._uU(1),t.qZA()}if(2&Ot){const li=t.oxw(4).$implicit,mi=t.oxw(4);t.s9C("matTooltip","Go To "+mi.goToName),t.xp6(1),t.hij(" ",li.value," ")}}function rt(Ot,vi){if(1&Ot&&t._uU(0),2&Ot){const li=t.oxw(4).$implicit;t.hij(" ",li.value," ")}}function Ke(Ot,vi){if(1&Ot&&(t.YNc(0,de,2,2,"p",52),t.YNc(1,rt,1,1,"ng-template",null,53,t.W1O)),2&Ot){const li=t.MAs(2),mi=t.oxw(3).$implicit,gi=t.oxw(4);t.Q6J("ngIf",mi.value===gi.goToFieldValue)("ngIfElse",li)}}function lt(Ot,vi){if(1&Ot&&(t.ynx(0),t.YNc(1,Pe,3,5,"p",47),t.YNc(2,Ke,3,2,"ng-template",null,48,t.W1O),t.BQk()),2&Ot){const li=t.MAs(3),mi=t.oxw(2).$implicit,gi=t.oxw(4);t.xp6(1),t.Q6J("ngIf","SWAP"===gi.data.openedBy&&"state"===mi.key)("ngIfElse",li)}}function Ut(Ot,vi){if(1&Ot&&(t.TgZ(0,"span")(1,"span",42),t.YNc(2,De,2,1,"ng-container",43),t.YNc(3,he,3,4,"ng-container",43),t.YNc(4,Me,3,4,"ng-container",43),t.YNc(5,pe,2,1,"ng-container",43),t.YNc(6,lt,4,2,"ng-container",44),t.qZA()()),2&Ot){const li=t.oxw().$implicit,mi=t.oxw(4);t.xp6(1),t.Q6J("ngSwitch",li.type),t.xp6(1),t.Q6J("ngSwitchCase",mi.dataTypeEnum.ARRAY),t.xp6(1),t.Q6J("ngSwitchCase",mi.dataTypeEnum.DATE_TIME),t.xp6(1),t.Q6J("ngSwitchCase",mi.dataTypeEnum.NUMBER),t.xp6(1),t.Q6J("ngSwitchCase",mi.dataTypeEnum.BOOLEAN)}}function ht(Ot,vi){1&Ot&&(t.TgZ(0,"span",55),t._uU(1,"\xa0"),t.qZA())}function Ge(Ot,vi){if(1&Ot&&(t.TgZ(0,"div",37)(1,"h4",38),t._uU(2),t.qZA(),t.YNc(3,Ut,7,5,"span",39),t.YNc(4,ht,2,0,"ng-template",null,40,t.W1O),t._UZ(6,"mat-divider",41),t.qZA()),2&Ot){const li=vi.$implicit,mi=t.MAs(5);t.s9C("fxFlex.gt-md",li.width),t.xp6(2),t.Oqu(li.title),t.xp6(1),t.Q6J("ngIf",li&&(!!li.value||0===li.value))("ngIfElse",mi)}}function yt(Ot,vi){if(1&Ot&&(t.TgZ(0,"div")(1,"div",35),t.YNc(2,Ge,7,4,"div",36),t.qZA()()),2&Ot){const li=vi.$implicit;t.xp6(2),t.Q6J("ngForOf",li)}}function be(Ot,vi){if(1&Ot&&(t.TgZ(0,"div",33),t.YNc(1,yt,3,1,"div",34),t.qZA()),2&Ot){const li=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",li.messageObjs)}}const qe=function(Ot){return{"display-none":Ot}};function Ie(Ot,vi){if(1&Ot&&(t.TgZ(0,"div",27)(1,"div",28),t.YNc(2,Oe,1,3,"qr-code",2),t.qZA(),t.TgZ(3,"div",29),t.YNc(4,oe,2,1,"p",30),t.YNc(5,be,2,1,"div",31),t.qZA()()),2&Ot){const li=t.oxw();t.xp6(1),t.Q6J("ngClass",t.VKq(4,qe,""===li.showQRField||li.screenSize!==li.screenSizeEnum.XS&&li.screenSize!==li.screenSizeEnum.SM)),t.xp6(1),t.Q6J("ngIf",""!==li.showQRField),t.xp6(2),t.Q6J("ngIf",li.data.titleMessage),t.xp6(1),t.Q6J("ngIf",(null==li.messageObjs?null:li.messageObjs.length)>0)}}let X=(()=>{var Ot;class vi{constructor(mi,gi,Ui,Un,Dn,oa,Ea){this.dialogRef=mi,this.data=gi,this.logger=Ui,this.snackBar=Un,this.commonService=Dn,this.renderer=oa,this.router=Ea,this.LoopStateEnum=D.Fq,this.goToFieldValue="",this.goToName="",this.goToLink="",this.showQRField="",this.showQRName="",this.showCopyName="",this.showCopyField="",this.errorMessage="",this.messageObjs=[],this.alertTypeEnum=D.n_,this.dataTypeEnum=D.Gi,this.screenSize="",this.screenSizeEnum=D.cu,this.scrollDirection="DOWN",this.shouldScroll=!0}set container(mi){mi&&(this.scrollContainer=mi,this.scrollContainer&&this.scrollContainer.nativeElement&&(this.unlistenEnd=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-end",gi=>{this.scrollDirection="UP"}),this.unlistenStart=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-start",gi=>{this.scrollDirection="DOWN"})))}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.messageObjs=this.data.message||[],this.goToFieldValue=this.data.goToFieldValue?this.data.goToFieldValue:"",this.goToName=this.data.goToName?this.data.goToName:"",this.goToLink=this.data.goToLink?this.data.goToLink:"",this.showQRField=this.data.showQRField?this.data.showQRField:"",this.showQRName=this.data.showQRName?this.data.showQRName:"",this.showCopyName=this.data.showCopyName?this.data.showCopyName:"",this.showCopyField=this.data.showCopyField?this.data.showCopyField:"",this.data.type===D.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(mi){this.snackBar.open((this.showQRName?this.showQRName:this.showCopyName)+" copied."),this.logger.info("Copied Text: "+mi)}onClose(){this.dialogRef.close(!1)}onGoToLink(){this.router.navigateByUrl(this.goToLink,{state:{lookupType:"0",lookupValue:this.goToFieldValue}}),this.onClose()}ngOnDestroy(){this.unlistenStart&&this.unlistenStart(),this.unlistenEnd&&this.unlistenEnd()}}return(Ot=vi).\u0275fac=function(mi){return new(mi||Ot)(t.Y36(z.so),t.Y36(z.WI),t.Y36(Q.mQ),t.Y36(J.ux),t.Y36(ee.v),t.Y36(t.Qsj),t.Y36(me.F0))},Ot.\u0275cmp=t.Xpm({type:Ot,selectors:[["rtl-alert-message"]],viewQuery:function(mi,gi){if(1&mi&&t.Gf(I,5),2&mi){let Ui;t.iGM(Ui=t.CRH())&&(gi.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 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"],["fxLayout","row","class","go-to-link",3,"matTooltip","click",4,"ngIf","ngIfElse"],["noStyleChild",""],["fxLayout","row",1,"go-to-link",3,"matTooltip","click"],["fxFlex","100",1,"foreground-secondary-text"]],template:function(mi,gi){1&mi&&(t.TgZ(0,"div",0)(1,"div",1),t.YNc(2,k,1,3,"qr-code",2),t.qZA(),t.TgZ(3,"div",3)(4,"mat-card-header",4)(5,"div",5)(6,"span",6),t._uU(7),t.qZA()(),t.TgZ(8,"button",7),t.NdJ("click",function(){return gi.onClose()}),t._uU(9,"X"),t.qZA()(),t.YNc(10,g,4,4,"ng-container",8),t.YNc(11,O,3,1,"ng-container",8),t.YNc(12,nt,4,2,"div",9),t.TgZ(13,"div",10),t.YNc(14,Ue,2,1,"button",11),t.YNc(15,at,2,1,"button",12),t.YNc(16,ye,2,2,"button",13),t.YNc(17,xe,2,1,"button",12),t.YNc(18,fe,2,2,"button",13),t.qZA()()(),t.YNc(19,Ie,6,6,"ng-template",null,14,t.W1O)),2&mi&&(t.xp6(1),t.Q6J("ngClass",t.VKq(12,qe,""===gi.showQRField||gi.screenSize===gi.screenSizeEnum.XS||gi.screenSize===gi.screenSizeEnum.SM)),t.xp6(1),t.Q6J("ngIf",""!==gi.showQRField),t.xp6(1),t.Q6J("fxFlex",""===gi.showQRField||gi.screenSize===gi.screenSizeEnum.XS||gi.screenSize===gi.screenSizeEnum.SM?"100":"70"),t.xp6(4),t.Oqu(gi.data.alertTitle||gi.alertTypeEnum[gi.data.type]),t.xp6(3),t.Q6J("ngIf",gi.data.scrollable),t.xp6(1),t.Q6J("ngIf",!gi.data.scrollable),t.xp6(1),t.Q6J("ngIf",gi.data.scrollable&&gi.shouldScroll),t.xp6(2),t.Q6J("ngIf",(!gi.showQRField||""===gi.showQRField)&&""===gi.showCopyName),t.xp6(1),t.Q6J("ngIf",""!==gi.showCopyName),t.xp6(1),t.Q6J("ngIf",""!==gi.showCopyName),t.xp6(1),t.Q6J("ngIf",""!==gi.showQRField),t.xp6(1),t.Q6J("ngIf",""!==gi.showQRField))},dependencies:[re.mk,re.sg,re.O5,re.tP,re.RF,re.n9,re.ED,V.xw,V.Wh,V.yH,ie.oO,z.ZT,se.lW,se.nh,ce.dn,ce.dk,Ce.Hw,M.d,i.gM,a.uU,f.$V,l.y,v.h,re.JJ,re.uU],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),vi})();var mt=m(2687),Tt=m(7861),it=m(9653),je=m(4006),zt=m(2216),xt=m(4144),Nt=m(9549),Gt=m(6534);function ke(Ot,vi){if(1&Ot&&(t.TgZ(0,"div",18),t._UZ(1,"fa-icon",19),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&Ot){const li=t.oxw();t.xp6(1),t.Q6J("icon",li.faExclamationTriangle),t.xp6(2),t.Oqu(li.warningMessage)}}function $(Ot,vi){if(1&Ot&&(t.TgZ(0,"div",20),t._UZ(1,"fa-icon",19),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&Ot){const li=t.oxw();t.xp6(1),t.Q6J("icon",li.faInfoCircle),t.xp6(2),t.Oqu(li.informationMessage)}}function ue(Ot,vi){if(1&Ot&&(t.TgZ(0,"p",21),t._uU(1),t.qZA()),2&Ot){const li=t.oxw();t.xp6(1),t.Oqu(li.data.titleMessage)}}function Ae(Ot,vi){1&Ot&&t._UZ(0,"div",36),2&Ot&&t.Q6J("innerHTML",vi.$implicit,t.oJD)}function Je(Ot,vi){if(1&Ot&&(t.ynx(0,34),t.YNc(1,Ae,1,1,"div",35),t.BQk()),2&Ot){const li=t.oxw(2).$implicit;t.xp6(1),t.Q6J("ngForOf",li.value)}}function $t(Ot,vi){if(1&Ot&&(t.ynx(0),t._uU(1),t.ALo(2,"date"),t.BQk()),2&Ot){const li=t.oxw(2).$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*li.value,"dd/MMM/y HH:mm"))}}function Vt(Ot,vi){if(1&Ot&&(t.ynx(0),t._uU(1),t.ALo(2,"number"),t.BQk()),2&Ot){const li=t.oxw(2).$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,li.value,"1.0-3"))}}function ii(Ot,vi){if(1&Ot&&(t.ynx(0),t._uU(1),t.BQk()),2&Ot){const li=t.oxw(2).$implicit;t.xp6(1),t.Oqu(!0===li.value?"True":"False")}}function pt(Ot,vi){if(1&Ot&&(t.ynx(0),t._uU(1),t.BQk()),2&Ot){const li=t.oxw(2).$implicit;t.xp6(1),t.Oqu(li.value)}}function ot(Ot,vi){if(1&Ot&&(t.TgZ(0,"span")(1,"span",30),t.YNc(2,Je,2,1,"ng-container",31),t.YNc(3,$t,3,4,"ng-container",32),t.YNc(4,Vt,3,4,"ng-container",32),t.YNc(5,ii,2,1,"ng-container",32),t.YNc(6,pt,2,1,"ng-container",33),t.qZA()()),2&Ot){const li=t.oxw().$implicit,mi=t.oxw(3);t.xp6(1),t.Q6J("ngSwitch",li.type),t.xp6(1),t.Q6J("ngSwitchCase",mi.dataTypeEnum.ARRAY),t.xp6(1),t.Q6J("ngSwitchCase",mi.dataTypeEnum.DATE_TIME),t.xp6(1),t.Q6J("ngSwitchCase",mi.dataTypeEnum.NUMBER),t.xp6(1),t.Q6J("ngSwitchCase",mi.dataTypeEnum.BOOLEAN)}}function ft(Ot,vi){1&Ot&&(t.TgZ(0,"span",37),t._uU(1,"\xa0"),t.qZA())}function St(Ot,vi){if(1&Ot&&(t.TgZ(0,"div",25)(1,"h4",26),t._uU(2),t.qZA(),t.YNc(3,ot,7,5,"span",27),t.YNc(4,ft,2,0,"ng-template",null,28,t.W1O),t._UZ(6,"mat-divider",29),t.qZA()),2&Ot){const li=vi.$implicit,mi=t.MAs(5);t.s9C("fxFlex.gt-md",li.width),t.xp6(2),t.Oqu(li.title),t.xp6(1),t.Q6J("ngIf",li&&(!!li.value||0===li.value))("ngIfElse",mi)}}function gt(Ot,vi){if(1&Ot&&(t.TgZ(0,"div")(1,"div",23),t.YNc(2,St,7,4,"div",24),t.qZA()()),2&Ot){const li=vi.$implicit;t.xp6(2),t.Q6J("ngForOf",li)}}function $e(Ot,vi){if(1&Ot&&(t.TgZ(0,"div"),t.YNc(1,gt,3,1,"div",22),t.qZA()),2&Ot){const li=t.oxw();t.xp6(1),t.Q6J("ngForOf",li.messageObjs)}}function _t(Ot,vi){if(1&Ot&&(t.TgZ(0,"p",21),t._uU(1),t.qZA()),2&Ot){const li=t.oxw(2);t.xp6(1),t.Oqu(li.data.titleMessage)}}function vt(Ot,vi){if(1&Ot&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&Ot){const li=t.oxw(2).$implicit;t.xp6(1),t.hij("",li.placeholder," is required.")}}function He(Ot,vi){if(1&Ot){const li=t.EpF();t.TgZ(0,"mat-form-field",41)(1,"mat-label"),t._uU(2),t.qZA(),t.TgZ(3,"input",42),t.NdJ("ngModelChange",function(gi){t.CHM(li);const Ui=t.oxw().$implicit;return t.KtG(Ui.inputValue=gi)}),t.ALo(4,"lowercase"),t.qZA(),t.YNc(5,vt,2,1,"mat-error",11),t.TgZ(6,"mat-hint"),t._uU(7),t.qZA()()}if(2&Ot){const li=t.oxw(),mi=li.$implicit,gi=li.index;t.Q6J("fxFlex",mi.width),t.xp6(2),t.Oqu(mi.placeholder),t.xp6(1),t.MGl("name","input",gi,""),t.Q6J("autoFocus",0===gi)("min",mi.min)("step",mi.step)("type",t.lcZ(4,11,mi.inputType))("tabindex",gi+1)("ngModel",mi.inputValue),t.xp6(2),t.Q6J("ngIf",!mi.inputValue),t.xp6(2),t.Oqu(mi.hintFunction?mi.hintFunction(mi.inputValue):mi.hintText)}}function Et(Ot,vi){if(1&Ot&&(t.ynx(0),t.YNc(1,He,8,13,"mat-form-field",40),t.BQk()),2&Ot){const li=vi.$implicit,mi=t.oxw(2);t.xp6(1),t.Q6J("ngIf",!li.advancedField||mi.showAdvanced)}}function At(Ot,vi){if(1&Ot&&(t.TgZ(0,"div",38),t.YNc(1,_t,2,1,"p",10),t.TgZ(2,"div",39),t.YNc(3,Et,2,1,"ng-container",22),t.qZA()()),2&Ot){const li=t.oxw();t.xp6(1),t.Q6J("ngIf",li.data.titleMessage),t.xp6(2),t.Q6J("ngForOf",li.getInputs)}}function Qt(Ot,vi){1&Ot&&(t.TgZ(0,"p"),t._uU(1,"Show Advanced"),t.qZA())}function zi(Ot,vi){1&Ot&&(t.TgZ(0,"p"),t._uU(1,"Hide Advanced"),t.qZA())}function Ni(Ot,vi){if(1&Ot){const li=t.EpF();t.TgZ(0,"button",43),t.NdJ("click",function(){t.CHM(li);const gi=t.oxw();return t.KtG(gi.onShowAdvanced())}),t.YNc(1,Qt,2,0,"p",27),t.YNc(2,zi,2,0,"ng-template",null,44,t.W1O),t.qZA()}if(2&Ot){const li=t.MAs(3),mi=t.oxw();t.xp6(1),t.Q6J("ngIf",!mi.showAdvanced)("ngIfElse",li)}}function Mi(Ot,vi){if(1&Ot){const li=t.EpF();t.TgZ(0,"button",45),t.NdJ("click",function(){t.CHM(li);const gi=t.oxw();return t.KtG(gi.onClose(gi.getInputs))}),t._uU(1),t.qZA()}if(2&Ot){const li=t.oxw();t.xp6(1),t.Oqu(li.yesBtnText)}}function Gi(Ot,vi){if(1&Ot){const li=t.EpF();t.TgZ(0,"button",46),t.NdJ("click",function(){t.CHM(li);const gi=t.oxw();return t.KtG(gi.onClose(!0))}),t._uU(1),t.qZA()}if(2&Ot){const li=t.oxw();t.xp6(1),t.Oqu(li.yesBtnText)}}let Xe=(()=>{var Ot;class vi{constructor(mi,gi,Ui,Un){this.dialogRef=mi,this.data=gi,this.logger=Ui,this.store=Un,this.faInfoCircle=mt.sqG,this.faExclamationTriangle=mt.eHv,this.informationMessage="",this.warningMessage="",this.noBtnText="No",this.yesBtnText="Yes",this.messageObjs=[],this.flgShowInput=!1,this.hasAdvanced=!1,this.alertTypeEnum=D.n_,this.dataTypeEnum=D.Gi,this.getInputs=[{placeholder:"",inputType:D.Gi.STRING,inputValue:"",hintText:"",hintFunction:null,advancedField:!1}],this.showAdvanced=!1}ngOnInit(){this.informationMessage=this.data.informationMessage||"",this.warningMessage=this.data.warningMessage||"",this.flgShowInput=!!this.data.flgShowInput,this.getInputs=this.data.getInputs||[],this.noBtnText=this.data.noBtnText?this.data.noBtnText:"No",this.yesBtnText=this.data.yesBtnText?this.data.yesBtnText:"Yes",this.hasAdvanced=!!this.data.hasAdvanced&&this.data.hasAdvanced,this.messageObjs=this.data.message,this.data.type===D.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection")}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onClose(mi){if(mi&&this.getInputs&&this.getInputs.some(gi=>typeof gi.inputValue>"u"))return!0;!this.showAdvanced&&mi.length&&(mi=mi?.reduce((gi,Ui)=>(Ui.advancedField||gi.push(Ui),gi),[])),this.store.dispatch((0,Tt.yb)({payload:mi}))}}return(Ot=vi).\u0275fac=function(mi){return new(mi||Ot)(t.Y36(z.so),t.Y36(z.WI),t.Y36(Q.mQ),t.Y36(it.yh))},Ot.\u0275cmp=t.Xpm({type:Ot,selectors:[["rtl-confirmation-message"]],decls:21,vars:10,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 center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","100","class","alert alert-warn",4,"ngIf"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],[4,"ngIf"],["fxLayout","column","class","bordered-box my-2 p-2",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],["mat-button","","color","primary","type","button","class","mr-1","tabindex","2",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","3","default","",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","4","default","",3,"click",4,"ngIf"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayoutAlign","start center",1,"pb-1"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],["emptyField",""],[1,"w-100","my-1"],[1,"foreground-secondary-text",3,"ngSwitch"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch"],[3,"innerHTML",4,"ngFor","ngForOf"],[3,"innerHTML"],["fxFlex","100",1,"foreground-secondary-text"],["fxLayout","column",1,"bordered-box","my-2","p-2"],["fxLayout","row wrap","fxLayoutAlign","space-between center"],[3,"fxFlex",4,"ngIf"],[3,"fxFlex"],["matInput","","required","",3,"autoFocus","name","min","step","type","tabindex","ngModel","ngModelChange"],["mat-button","","color","primary","type","button","tabindex","2",1,"mr-1",3,"click"],["hideAdvancedText",""],["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(mi,gi){1&mi&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return gi.onClose(!1)}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7),t.YNc(10,ke,4,2,"div",8),t.YNc(11,$,4,2,"div",9),t.YNc(12,ue,2,1,"p",10),t.YNc(13,$e,2,1,"div",11),t.YNc(14,At,4,2,"div",12),t.TgZ(15,"div",13)(16,"button",14),t.NdJ("click",function(){return gi.onClose(!1)}),t._uU(17),t.qZA(),t.YNc(18,Ni,4,2,"button",15),t.YNc(19,Mi,2,1,"button",16),t.YNc(20,Gi,2,1,"button",17),t.qZA()()()()()),2&mi&&(t.xp6(5),t.Oqu(gi.data.alertTitle||gi.alertTypeEnum[gi.data.type]),t.xp6(5),t.Q6J("ngIf",gi.warningMessage&&""!==gi.warningMessage),t.xp6(1),t.Q6J("ngIf",gi.informationMessage&&""!==gi.informationMessage),t.xp6(1),t.Q6J("ngIf",gi.data.titleMessage&&!gi.flgShowInput),t.xp6(1),t.Q6J("ngIf",(null==gi.messageObjs?null:gi.messageObjs.length)>0),t.xp6(1),t.Q6J("ngIf",gi.flgShowInput),t.xp6(3),t.Oqu(gi.noBtnText),t.xp6(1),t.Q6J("ngIf",gi.hasAdvanced),t.xp6(1),t.Q6J("ngIf",gi.flgShowInput),t.xp6(1),t.Q6J("ngIf",!gi.flgShowInput))},dependencies:[re.sg,re.O5,re.RF,re.n9,re.ED,je._Y,je.Fj,je.JJ,je.JL,je.Q7,je.On,je.F,zt.BN,V.xw,V.Wh,V.yH,se.lW,ce.dn,ce.dk,xt.Nt,Nt.KE,Nt.hX,Nt.bx,Nt.TO,M.d,v.h,Gt.q,re.i8,re.JJ,re.uU]}),vi})();var It=m(1786),Se=m(4385),wt=m(3238);function Zt(Ot,vi){if(1&Ot&&(t.TgZ(0,"mat-option",23),t._uU(1),t.qZA()),2&Ot){const li=vi.$implicit;t.Q6J("value",li),t.xp6(1),t.hij(" ",li.infoName," ")}}function si(Ot,vi){if(1&Ot){const li=t.EpF();t.TgZ(0,"div",13)(1,"mat-form-field",20)(2,"mat-select",21),t.NdJ("valueChange",function(gi){t.CHM(li);const Ui=t.oxw();return t.KtG(Ui.selInfoType=gi)}),t.YNc(3,Zt,2,2,"mat-option",22),t.qZA()()()}if(2&Ot){const li=t.oxw();t.xp6(2),t.Q6J("value",li.selInfoType),t.xp6(1),t.Q6J("ngForOf",li.infoTypes)}}const Ai=function(Ot){return{"display-none":Ot}};let Oi=(()=>{var Ot;class vi{constructor(mi,gi,Ui,Un,Dn){this.dialogRef=mi,this.data=gi,this.logger=Ui,this.snackBar=Un,this.commonService=Dn,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=D.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((mi,gi)=>{this.infoTypes.push({infoID:gi+1,infoKey:"node URI "+(gi+1),infoName:"Node URI "+(gi+1)})})),this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyPubkey(mi){this.snackBar.open(this.selInfoType.infoName+" copied."),this.logger.info("Copied Text: "+mi)}}return(Ot=vi).\u0275fac=function(mi){return new(mi||Ot)(t.Y36(z.so),t.Y36(z.WI),t.Y36(Q.mQ),t.Y36(J.ux),t.Y36(ee.v))},Ot.\u0275cmp=t.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 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"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","40","fxLayoutAlign","start end"],["tabindex","1",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(mi,gi){1&mi&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"qr-code",2),t.qZA(),t.TgZ(3,"div",3)(4,"mat-card-header",4)(5,"div",5),t._UZ(6,"fa-icon",6),t.TgZ(7,"span",7),t._uU(8),t.qZA()(),t.TgZ(9,"button",8),t.NdJ("click",function(){return gi.onClose()}),t._uU(10,"X"),t.qZA()(),t.TgZ(11,"mat-card-content",9)(12,"div",10)(13,"div",11),t._UZ(14,"qr-code",2),t.qZA(),t.YNc(15,si,4,2,"div",12),t.TgZ(16,"div",13)(17,"div",14)(18,"h4",15),t._uU(19),t.qZA(),t.TgZ(20,"span",16),t._uU(21),t.qZA()()(),t._UZ(22,"mat-divider",17),t.TgZ(23,"div",18)(24,"button",19),t.NdJ("copied",function(Un){return gi.onCopyPubkey(Un)}),t._uU(25),t.qZA()()()()()()),2&mi&&(t.xp6(1),t.Q6J("ngClass",t.VKq(15,Ai,gi.screenSize===gi.screenSizeEnum.XS||gi.screenSize===gi.screenSizeEnum.SM)),t.xp6(1),t.s9C("value",0===gi.selInfoType.infoID?gi.information.identity_pubkey:gi.information.uris[gi.selInfoType.infoID-1]),t.Q6J("size",gi.qrWidth)("errorCorrectionLevel","L"),t.xp6(4),t.Q6J("icon",gi.faReceipt),t.xp6(2),t.Oqu(gi.selInfoType.infoName),t.xp6(5),t.Q6J("ngClass",t.VKq(17,Ai,gi.screenSize!==gi.screenSizeEnum.XS&&gi.screenSize!==gi.screenSizeEnum.SM)),t.xp6(1),t.s9C("value",0===gi.selInfoType.infoID?gi.information.identity_pubkey:gi.information.uris[gi.selInfoType.infoID-1]),t.Q6J("size",gi.qrWidth)("errorCorrectionLevel","L"),t.xp6(1),t.Q6J("ngIf",gi.information.uris&&gi.information.uris.length>0),t.xp6(4),t.Oqu(gi.selInfoType.infoName),t.xp6(2),t.Oqu(0===gi.selInfoType.infoID?gi.information.identity_pubkey:gi.information.uris[gi.selInfoType.infoID-1]),t.xp6(3),t.s9C("payload",0===gi.selInfoType.infoID?gi.information.identity_pubkey:gi.information.uris[gi.selInfoType.infoID-1]),t.xp6(1),t.hij("Copy ",gi.selInfoType.infoKey,""))},dependencies:[re.mk,re.sg,re.O5,zt.BN,V.xw,V.Wh,V.yH,ie.oO,se.lW,ce.dn,ce.dk,Nt.KE,M.d,Se.gD,wt.ey,a.uU,l.y,v.h]}),vi})();var Qi=m(6523),en=m(429),Yi=m(2994),Yt=m(8377),qt=m(529),_e=m(7998),dt=m(5986),Dt=m(8104);let Bt=(()=>{var Ot;class vi{constructor(mi,gi,Ui,Un,Dn,oa,Ea,ta,er,Jt,pi){this.actions=mi,this.httpClient=gi,this.store=Ui,this.logger=Un,this.wsService=Dn,this.sessionService=oa,this.commonService=Ea,this.dataService=ta,this.dialog=er,this.snackBar=Jt,this.router=pi,this.screenSize="",this.alertWidth="55%",this.confirmWidth="70%",this.unSubs=[new _.x,new _.x],this.closeAllDialogs=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.CLOSE_ALL_DIALOGS),(0,h.U)(()=>{this.dialog.closeAll()})),{dispatch:!1}),this.openSnackBar=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.OPEN_SNACK_BAR),(0,h.U)(Kt=>{"string"==typeof Kt.payload?this.snackBar.open(Kt.payload):this.snackBar.open(Kt.payload.message,"","ERROR"===Kt.payload.type?{duration:Kt.payload.duration?Kt.payload.duration:2e3,panelClass:"rtl-warn-snack-bar"}:"WARN"===Kt.payload.type?{duration:Kt.payload.duration?Kt.payload.duration:2e3,panelClass:"rtl-accent-snack-bar"}:{duration:Kt.payload.duration?Kt.payload.duration:2e3,panelClass:"rtl-snack-bar"})})),{dispatch:!1}),this.openSpinner=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.OPEN_SPINNER),(0,h.U)(Kt=>{Kt.payload!==D.m6.NO_SPINNER&&(this.dialogRef=this.dialog.open(j,{panelClass:"spinner-dialog-panel",data:{titleMessage:Kt.payload}}))})),{dispatch:!1}),this.closeSpinner=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.CLOSE_SPINNER),(0,h.U)(Kt=>{if(Kt.payload!==D.m6.NO_SPINNER)try{this.dialogRef&&this.dialogRef.componentInstance&&this.dialogRef.componentInstance.data&&this.dialogRef.componentInstance.data.titleMessage&&this.dialogRef.componentInstance.data.titleMessage===Kt.payload?this.dialogRef.close():this.dialog.openDialogs.forEach(ri=>{ri.componentInstance&&ri.componentInstance.data&&ri.componentInstance.data.titleMessage&&ri.componentInstance.data.titleMessage===Kt.payload&&ri.close()})}catch(ri){this.logger.error(ri)}})),{dispatch:!1}),this.openAlert=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.OPEN_ALERT),(0,h.U)(Kt=>{const ri=JSON.parse(JSON.stringify(Kt.payload));ri.width||(ri.width=this.alertWidth),this.dialogRef=this.dialog.open(Kt.payload.data.component?Kt.payload.data.component:X,ri)})),{dispatch:!1}),this.closeAlert=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.CLOSE_ALERT),(0,h.U)(Kt=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(Kt.payload),Kt.payload))),{dispatch:!1}),this.openConfirm=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.OPEN_CONFIRMATION),(0,h.U)(Kt=>{const ri=JSON.parse(JSON.stringify(Kt.payload));ri.width||(ri.width=this.confirmWidth),this.dialogRef=this.dialog.open(Xe,ri)})),{dispatch:!1}),this.closeConfirm=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.CLOSE_CONFIRMATION),(0,P.q)(1),(0,h.U)(Kt=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(Kt.payload),Kt.payload))),{dispatch:!1}),this.showNodePubkey=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.SHOW_PUBKEY),(0,d.M)(this.store.select(Yt.R4)),(0,w.z)(([Kt,ri])=>(this.sessionService.getItem("token")&&ri.identity_pubkey?this.store.dispatch((0,Tt.qR)({payload:{data:{information:ri,component:Oi}}})):this.snackBar.open("Node Pubkey does not exist."),(0,T.of)({type:D.pg.VOID}))))),this.appConfigFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.FETCH_RTL_CONFIG),(0,w.z)(()=>(this.screenSize=this.commonService.getScreenSize(),this.screenSize===D.cu.XS||this.screenSize===D.cu.SM?(this.alertWidth="95%",this.confirmWidth="95%"):this.screenSize===D.cu.MD?(this.alertWidth="80%",this.confirmWidth="80%"):(this.alertWidth="50%",this.confirmWidth="53%"),this.store.dispatch((0,Tt.ac)({payload:D.m6.GET_RTL_CONFIG})),this.store.dispatch((0,Tt.qi)({payload:{action:"FetchRTLConfig",status:D.Bn.INITIATED}})),this.sessionService.getItem("token")?this.httpClient.get(D.vv.CONF_API+"/rtlconf"):this.httpClient.get(D.vv.CONF_API+"/rtlconfinit"))),(0,h.U)(Kt=>{this.logger.info(Kt),this.store.dispatch((0,Tt.uO)({payload:D.m6.GET_RTL_CONFIG})),this.store.dispatch((0,Tt.qi)({payload:{action:"FetchRTLConfig",status:D.Bn.COMPLETED}}));let ri=null;return Kt.nodes.forEach(xi=>{xi.settings.currencyUnits=[...D.uA,xi.settings?.currencyUnit?xi.settings?.currencyUnit:""],+(xi.index||-1)===Kt.selectedNodeIndex&&(ri=xi)}),ri?(this.store.dispatch((0,Tt.fk)({payload:{uiMessage:D.m6.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:ri,isInitialSetup:!0}})),{type:D.pg.SET_RTL_CONFIG,payload:Kt}):{type:D.pg.VOID}}),(0,C.K)(Kt=>(this.handleErrorWithAlert("FetchRTLConfig",D.m6.GET_RTL_CONFIG,"Fetch RTL Config Failed!",D.vv.CONF_API,Kt),(0,T.of)({type:D.pg.VOID}))))),this.settingSave=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.SAVE_SETTINGS),(0,w.z)(Kt=>{this.store.dispatch((0,Tt.ac)({payload:Kt.payload.uiMessage})),this.store.dispatch((0,Tt.qi)({payload:{action:"UpdateSettings",status:D.Bn.INITIATED}}));let ri=new s.y;if(Kt.payload.settings&&Kt.payload.defaultNodeIndex){const xi=this.httpClient.post(D.vv.CONF_API,{updatedSettings:Kt.payload.settings}),Hi=this.httpClient.post(D.vv.CONF_API+"/updateDefaultNode",{defaultNodeIndex:Kt.payload.defaultNodeIndex});ri=(0,y.D)([xi,Hi])}else Kt.payload.settings&&!Kt.payload.defaultNodeIndex?ri=this.httpClient.post(D.vv.CONF_API,{updatedSettings:Kt.payload.settings}):!Kt.payload.settings&&Kt.payload.defaultNodeIndex&&(ri=this.httpClient.post(D.vv.CONF_API+"/updateDefaultNode",{defaultNodeIndex:Kt.payload.defaultNodeIndex}));return ri.pipe((0,h.U)(xi=>(this.logger.info(xi),this.store.dispatch((0,Tt.qi)({payload:{action:"UpdateSettings",status:D.Bn.COMPLETED}})),this.store.dispatch((0,Tt.uO)({payload:Kt.payload.uiMessage})),{type:D.pg.OPEN_SNACK_BAR,payload:xi.length?xi[0].message+".":xi.message+"."})),(0,C.K)(xi=>(this.handleErrorWithAlert("UpdateSettings",Kt.payload.uiMessage,"Update Settings Failed!",D.vv.CONF_API,xi.length?xi[0]:xi),(0,T.of)({type:D.pg.VOID}))))}))),this.updateServicesettings=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.UPDATE_SERVICE_SETTINGS),(0,w.z)(Kt=>(this.store.dispatch((0,Tt.ac)({payload:Kt.payload.uiMessage})),this.store.dispatch((0,Tt.qi)({payload:{action:"UpdateServiceSettings",status:D.Bn.INITIATED}})),this.httpClient.post(D.vv.CONF_API+"/updateServiceSettings",Kt.payload).pipe((0,h.U)(ri=>(this.logger.info(ri),this.store.dispatch((0,Tt.qi)({payload:{action:"UpdateServiceSettings",status:D.Bn.COMPLETED}})),this.store.dispatch((0,Tt.uO)({payload:Kt.payload.uiMessage})),this.store.dispatch((0,Tt.Tm)({payload:Kt.payload})),{type:D.pg.OPEN_SNACK_BAR,payload:ri.message+"."})),(0,C.K)(ri=>(this.handleErrorWithAlert("UpdateServiceSettings",Kt.payload.uiMessage,"Update Service Settings Failed!",D.vv.CONF_API,ri),(0,T.of)({type:D.pg.VOID})))))))),this.twoFASettingSave=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.TWO_FA_SAVE_SETTINGS),(0,w.z)(Kt=>(this.store.dispatch((0,Tt.ac)({payload:D.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,Tt.qi)({payload:{action:"Update2FASettings",status:D.Bn.INITIATED}})),this.httpClient.post(D.vv.CONF_API+"/update2FA",{secret2fa:Kt.payload.secret2fa}))),(0,d.M)(this.store.select(Yt.Yj)),(0,h.U)(([Kt,ri])=>{this.logger.info(Kt),ri.enable2FA=!ri.enable2FA,this.store.dispatch((0,Tt.qi)({payload:{action:"Update2FASettings",status:D.Bn.COMPLETED}})),this.store.dispatch((0,Tt.uO)({payload:D.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,Tt.XT)({payload:ri}))}),(0,C.K)(Kt=>(this.handleErrorWithAlert("Update2FASettings",D.m6.UPDATE_UI_SETTINGS,"Update 2FA Settings Failed!",D.vv.CONF_API,Kt),(0,T.of)({type:D.pg.VOID})))),{dispatch:!1}),this.configFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.FETCH_CONFIG),(0,w.z)(Kt=>(this.store.dispatch((0,Tt.ac)({payload:D.m6.OPEN_CONFIG_FILE})),this.store.dispatch((0,Tt.qi)({payload:{action:"fetchConfig",status:D.Bn.INITIATED}})),this.httpClient.get(D.vv.CONF_API+"/config/"+Kt.payload).pipe((0,h.U)(ri=>(this.store.dispatch((0,Tt.qi)({payload:{action:"fetchConfig",status:D.Bn.COMPLETED}})),this.store.dispatch((0,Tt.uO)({payload:D.m6.OPEN_CONFIG_FILE})),{type:D.pg.SHOW_CONFIG,payload:ri})),(0,C.K)(ri=>(this.handleErrorWithAlert("fetchConfig",D.m6.OPEN_CONFIG_FILE,"Fetch Config Failed!",D.vv.CONF_API+"/config/"+Kt.payload,ri),(0,T.of)({type:D.pg.VOID})))))))),this.showLnConfig=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.SHOW_CONFIG),(0,h.U)(Kt=>Kt.payload)),{dispatch:!1}),this.isAuthorized=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.IS_AUTHORIZED),(0,w.z)(Kt=>(this.store.dispatch((0,Tt.qi)({payload:{action:"IsAuthorized",status:D.Bn.INITIATED}})),this.httpClient.post(D.vv.AUTHENTICATE_API,{authenticateWith:Kt.payload&&""!==Kt.payload.trim()?D.OJ.PASSWORD:D.OJ.JWT,authenticationValue:Kt.payload&&""!==Kt.payload.trim()?Kt.payload:this.sessionService.getItem("token")?this.sessionService.getItem("token"):""}).pipe((0,h.U)(ri=>(this.logger.info(ri),this.store.dispatch((0,Tt.qi)({payload:{action:"IsAuthorized",status:D.Bn.COMPLETED}})),this.logger.info("Successfully Authorized!"),{type:D.pg.IS_AUTHORIZED_RES,payload:ri})),(0,C.K)(ri=>(this.handleErrorWithAlert("IsAuthorized",D.m6.NO_SPINNER,"Authorization Failed",D.vv.AUTHENTICATE_API,ri),(0,T.of)({type:D.pg.IS_AUTHORIZED_RES,payload:"ERROR"})))))))),this.isAuthorizedRes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.IS_AUTHORIZED_RES),(0,h.U)(Kt=>Kt.payload)),{dispatch:!1}),this.authLogin=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.LOGIN),(0,d.M)(this.store.select(Yt.Yj)),(0,w.z)(([Kt,ri])=>(this.store.dispatch((0,Qi.Ll)({payload:null})),this.store.dispatch((0,en.mI)({payload:null})),this.store.dispatch((0,Yi.Fd)({payload:null})),this.store.dispatch((0,Tt.qi)({payload:{action:"Login",status:D.Bn.INITIATED}})),this.httpClient.post(D.vv.AUTHENTICATE_API,{authenticateWith:Kt.payload.password?D.OJ.PASSWORD:D.OJ.JWT,authenticationValue:Kt.payload.password?Kt.payload.password:this.sessionService.getItem("token")?this.sessionService.getItem("token"):"",twoFAToken:Kt.payload.twoFAToken?Kt.payload.twoFAToken:""}).pipe((0,h.U)(xi=>{this.logger.info(xi),this.store.dispatch((0,Tt.qi)({payload:{action:"Login",status:D.Bn.COMPLETED}})),this.setLoggedInDetails(Kt.payload.defaultPassword,xi)}),(0,C.K)(xi=>(this.logger.info("Redirecting to Login Error Page"),this.handleErrorWithoutAlert("Login",D.m6.NO_SPINNER,xi),+ri.sso.rtlSSO?this.router.navigate(["/error"],{state:{errorCode:"406",errorMessage:xi.error&&xi.error.error?xi.error.error:"Single Sign On Failed!"}}):this.router.navigate(["./login"]),(0,T.of)({type:D.pg.VOID}))))))),{dispatch:!1}),this.tokenVerify=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.VERIFY_TWO_FA),(0,w.z)(Kt=>(this.store.dispatch((0,Tt.ac)({payload:D.m6.VERIFY_TOKEN})),this.store.dispatch((0,Tt.qi)({payload:{action:"VerifyToken",status:D.Bn.INITIATED}})),this.httpClient.post(D.vv.AUTHENTICATE_API+"/token",{authentication2FA:Kt.payload.token}).pipe((0,h.U)(ri=>{this.logger.info(ri),this.store.dispatch((0,Tt.uO)({payload:D.m6.VERIFY_TOKEN})),this.store.dispatch((0,Tt.qi)({payload:{action:"VerifyToken",status:D.Bn.COMPLETED}})),this.logger.info("Token Successfully Verified!"),this.setLoggedInDetails(!1,Kt.payload.authResponse)}),(0,C.K)(ri=>(this.handleErrorWithAlert("VerifyToken",D.m6.VERIFY_TOKEN,"Authorization Failed!",D.vv.AUTHENTICATE_API+"/token",ri),(0,T.of)({type:D.pg.VOID}))))))),{dispatch:!1}),this.logOut=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.LOGOUT),(0,w.z)(Kt=>(this.store.dispatch((0,Tt.ac)({payload:D.m6.LOG_OUT})),Kt.sso&&+Kt.sso.rtlSSO?window.location.href=Kt.sso.logoutRedirectLink:this.router.navigate(["./login"]),this.sessionService.clearAll(),this.store.dispatch((0,Tt._V)({payload:{}})),this.store.dispatch((0,Tt.uO)({payload:D.m6.LOG_OUT})),this.logger.info("Logged out from browser"),this.httpClient.get(D.vv.AUTHENTICATE_API+"/logout").pipe((0,h.U)(ri=>{this.logger.info(ri),this.store.dispatch((0,Tt.uO)({payload:D.m6.LOG_OUT})),this.logger.info("Logged out from server")}))))),{dispatch:!1}),this.resetPassword=(0,e.GW)(()=>this.actions.pipe((0,L.R)(this.unSubs[1]),(0,e.l4)(D.pg.RESET_PASSWORD),(0,w.z)(Kt=>(this.store.dispatch((0,Tt.qi)({payload:{action:"ResetPassword",status:D.Bn.INITIATED}})),this.httpClient.post(D.vv.AUTHENTICATE_API+"/reset",{currPassword:Kt.payload.currPassword,newPassword:Kt.payload.newPassword}).pipe((0,L.R)(this.unSubs[0]),(0,h.U)(ri=>(this.logger.info(ri),this.store.dispatch((0,Tt.qi)({payload:{action:"ResetPassword",status:D.Bn.COMPLETED}})),this.sessionService.setItem("defaultPassword",!1),this.logger.info("Password Reset Successful!"),this.store.dispatch((0,Tt.jW)({payload:"Password Reset Successful!"})),this.SetToken(ri.token),{type:D.pg.RESET_PASSWORD_RES,payload:ri.token})),(0,C.K)(ri=>(this.handleErrorWithAlert("ResetPassword",D.m6.NO_SPINNER,"Password Reset Failed!",D.vv.AUTHENTICATE_API+"/reset",ri),(0,T.of)({type:D.pg.VOID})))))))),this.setSelectedNode=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.SET_SELECTED_NODE),(0,w.z)(Kt=>(this.store.dispatch((0,Tt.ac)({payload:Kt.payload.uiMessage})),this.store.dispatch((0,Tt.qi)({payload:{action:"UpdateSelNode",status:D.Bn.INITIATED}})),this.httpClient.get(D.vv.CONF_API+"/updateSelNode/"+Kt.payload.currentLnNode?.index+"/"+Kt.payload.prevLnNodeIndex).pipe((0,h.U)(ri=>(this.logger.info(ri),this.store.dispatch((0,Tt.qi)({payload:{action:"UpdateSelNode",status:D.Bn.COMPLETED}})),this.store.dispatch((0,Tt.uO)({payload:Kt.payload.uiMessage})),this.initializeNode(Kt.payload.currentLnNode,Kt.payload.isInitialSetup),{type:D.pg.VOID})),(0,C.K)(ri=>(this.handleErrorWithAlert("UpdateSelNode",Kt.payload.uiMessage,"Update Selected Node Failed!",D.vv.CONF_API+"/updateSelNode",ri),(0,T.of)({type:D.pg.VOID})))))))),this.fetchFile=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.FETCH_FILE),(0,w.z)(Kt=>{this.store.dispatch((0,Tt.ac)({payload:D.m6.DOWNLOAD_BACKUP_FILE})),this.store.dispatch((0,Tt.qi)({payload:{action:"FetchFile",status:D.Bn.INITIATED}}));const ri="?channel="+Kt.payload.channelPoint+(Kt.payload.path?"&path="+Kt.payload.path:"");return this.httpClient.get(D.vv.CONF_API+"/file"+ri).pipe((0,h.U)(xi=>(this.store.dispatch((0,Tt.qi)({payload:{action:"FetchFile",status:D.Bn.COMPLETED}})),this.store.dispatch((0,Tt.uO)({payload:D.m6.DOWNLOAD_BACKUP_FILE})),{type:D.pg.SHOW_FILE,payload:xi})),(0,C.K)(xi=>(this.handleErrorWithAlert("fetchFile",D.m6.DOWNLOAD_BACKUP_FILE,"Download Backup File Failed!",D.vv.CONF_API+"/file"+ri,{status:this.commonService.extractErrorNumber(xi),error:{error:this.commonService.extractErrorCode(xi)}}),(0,T.of)({type:D.pg.VOID}))))}))),this.showFile=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.pg.SHOW_FILE),(0,h.U)(Kt=>Kt.payload)),{dispatch:!1})}initializeNode(mi,gi){this.logger.info("Initializing node from RTL Effects.");const Ui=gi?"":"HOME",Un={userPersona:mi.settings.userPersona,channelBackupPath:mi.settings.channelBackupPath,unannouncedChannels:!!mi.settings.unannouncedChannels,selCurrencyUnit:mi.settings.currencyUnit,currencyUnits:D.uA,fiatConversion:mi.settings.fiatConversion,lnImplementation:mi.lnImplementation,swapServerUrl:mi.settings.swapServerUrl,boltzServerUrl:mi.settings.boltzServerUrl,enableOffers:mi.settings.enableOffers,enablePeerswap:mi.settings.enablePeerswap};if(mi.settings.fiatConversion&&mi.settings.currencyUnit&&(Un.currencyUnits=[...D.uA,mi.settings.currencyUnit]),this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("clnUnlocked"),this.sessionService.removeItem("eclUnlocked"),this.store.dispatch((0,Tt.vI)({payload:mi})),this.store.dispatch((0,Qi.Ll)({payload:Un})),this.store.dispatch((0,en.mI)({payload:Un})),this.store.dispatch((0,Yi.Fd)({payload:Un})),this.sessionService.getItem("token")){const Dn=mi.lnImplementation?mi.lnImplementation.toUpperCase():"LND";this.dataService.setLnImplementation(Dn);const oa=!(0,t.X6Q)()&&window.location.origin?window.location.origin+"/rtl/api":D.T5;switch(this.wsService.connectWebSocket(oa?.replace(/^http/,"ws")+D.vv.Web_SOCKET_API,mi.index?mi.index.toString():"-1"),Dn){case"CLN":this.store.dispatch((0,en.wD)()),this.store.dispatch((0,en.W)({payload:{loadPage:Ui}}));break;case"ECL":this.store.dispatch((0,Yi.wD)()),this.store.dispatch((0,Yi.iz)({payload:{loadPage:Ui}}));break;default:this.store.dispatch((0,Qi.wD)()),this.store.dispatch((0,Qi.sQ)({payload:{loadPage:Ui}}))}}}SetToken(mi){mi?(this.sessionService.setItem("lndUnlocked","true"),this.sessionService.setItem("token",mi)):(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("token"))}setLoggedInDetails(mi,gi){this.logger.info("Successfully Authorized!"),this.SetToken(gi.token),this.sessionService.setItem("defaultPassword",mi),mi?(this.store.dispatch((0,Tt.jW)({payload:"Reset your password."})),this.router.navigate(["/settings/auth"])):this.store.dispatch((0,Tt.ey)())}handleErrorWithoutAlert(mi,gi,Ui){this.logger.error("ERROR IN: "+mi+"\n"+JSON.stringify(Ui)),401===Ui.status&&"Login"!==mi?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Tt.ts)()),this.store.dispatch((0,Tt.kS)()),this.store.dispatch((0,Tt.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,Tt.uO)({payload:gi})),this.store.dispatch((0,Tt.qi)({payload:{action:mi,status:D.Bn.ERROR,statusCode:Ui.status?Ui.status.toString():"",message:this.commonService.extractErrorMessage(Ui)}})))}handleErrorWithAlert(mi,gi,Ui,Un,Dn){if(this.logger.error(Dn),0===Dn.status&&Dn.statusText&&"Unknown Error"===Dn.statusText&&(Dn={status:400,error:{message:"Unknown Error / CORS Origin Not Allowed"}}),401===Dn.status&&"Login"!==mi)this.logger.info("Redirecting to Login"),this.store.dispatch((0,Tt.ts)()),this.store.dispatch((0,Tt.kS)()),this.store.dispatch((0,Tt.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,Tt.uO)({payload:gi}));const oa=this.commonService.extractErrorMessage(Dn);this.store.dispatch((0,Tt.qR)({payload:{data:{type:"ERROR",alertTitle:Ui,message:{code:Dn.status?Dn.status:"Unknown Error",message:oa,URL:Un},component:It.H}}})),this.store.dispatch((0,Tt.qi)({payload:{action:mi,status:D.Bn.ERROR,statusCode:Dn.status?Dn.status.toString():"",message:oa,URL:Un}}))}}ngOnDestroy(){this.unSubs.forEach(mi=>{mi.next(null),mi.complete()})}}return(Ot=vi).\u0275fac=function(mi){return new(mi||Ot)(t.LFG(e.eX),t.LFG(qt.eN),t.LFG(it.yh),t.LFG(Q.mQ),t.LFG(_e.d),t.LFG(dt.m),t.LFG(ee.v),t.LFG(Dt.D),t.LFG(z.uw),t.LFG(J.ux),t.LFG(me.F0))},Ot.\u0275prov=t.Yz7({token:Ot,factory:Ot.\u0275fac}),vi})()},8377:(We,q,m)=>{"use strict";m.d(q,{R4:()=>y,Sr:()=>P,Yj:()=>s,dT:()=>T,gW:()=>d,ul:()=>h});var t=m(9653);const e=(0,t.ZF)("root"),T=((0,t.P1)(e,w=>w.apiURL),(0,t.P1)(e,w=>w.selNode)),s=(0,t.P1)(e,w=>w.appConfig),y=(0,t.P1)(e,w=>w.nodeData),h=(0,t.P1)(e,w=>w.apisCallStatus.Login),P=(0,t.P1)(e,w=>w.apisCallStatus.IsAuthorized),d=(0,t.P1)(e,w=>({nodeDate:w.nodeData,selNode:w.selNode}))},5415:(We,q,m)=>{"use strict";var t=m(1481),e=m(4650),_=m(7340);function s(R){return new e.vHH(3e3,!1)}function nt(){return typeof window<"u"&&typeof window.document<"u"}function Ue(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function at(R){switch(R.length){case 0:return new _.ZN;case 1:return R[0];default:return new _.ZE(R)}}function ye(R,N,S,H,G=new Map,Le=new Map){const Mt=[],Xt=[];let oi=-1,Ci=null;if(H.forEach(Zi=>{const Vi=Zi.get("offset"),Ln=Vi==oi,In=Ln&&Ci||new Map;Zi.forEach((pn,Cn)=>{let ea=Cn,pa=pn;if("offset"!==Cn)switch(ea=N.normalizePropertyName(ea,Mt),pa){case _.k1:pa=G.get(Cn);break;case _.l3:pa=Le.get(Cn);break;default:pa=N.normalizeStyleValue(Cn,ea,pa,Mt)}In.set(ea,pa)}),Ln||Xt.push(In),Ci=In,oi=Vi}),Mt.length)throw function a(R){return new e.vHH(3502,!1)}();return Xt}function xe(R,N,S,H){switch(N){case"start":R.onStart(()=>H(S&&fe(S,"start",R)));break;case"done":R.onDone(()=>H(S&&fe(S,"done",R)));break;case"destroy":R.onDestroy(()=>H(S&&fe(S,"destroy",R)))}}function fe(R,N,S){const Le=Oe(R.element,R.triggerName,R.fromState,R.toState,N||R.phaseName,S.totalTime??R.totalTime,!!S.disabled),Mt=R._data;return null!=Mt&&(Le._data=Mt),Le}function Oe(R,N,S,H,G="",Le=0,Mt){return{element:R,triggerName:N,fromState:S,toState:H,phaseName:G,totalTime:Le,disabled:!!Mt}}function oe(R,N,S){let H=R.get(N);return H||R.set(N,H=S),H}function Fe(R){const N=R.indexOf(":");return[R.substring(1,N),R.slice(N+1)]}let De=(R,N)=>!1,he=(R,N,S)=>[],Me=null;function pe(R){const N=R.parentNode||R.host;return N===Me?null:N}(Ue()||typeof Element<"u")&&(nt()?(Me=(()=>document.documentElement)(),De=(R,N)=>{for(;N;){if(N===R)return!0;N=pe(N)}return!1}):De=(R,N)=>R.contains(N),he=(R,N,S)=>{if(S)return Array.from(R.querySelectorAll(N));const H=R.querySelector(N);return H?[H]:[]});let Pe=null,de=!1;const Ut=De,ht=he;let yt=(()=>{class R{validateStyleProperty(S){return function rt(R){Pe||(Pe=function lt(){return typeof document<"u"?document.body:null}()||{},de=!!Pe.style&&"WebkitAppearance"in Pe.style);let N=!0;return Pe.style&&!function Qe(R){return"ebkit"==R.substring(1,6)}(R)&&(N=R in Pe.style,!N&&de&&(N="Webkit"+R.charAt(0).toUpperCase()+R.slice(1)in Pe.style)),N}(S)}matchesElement(S,H){return!1}containsElement(S,H){return Ut(S,H)}getParentElement(S){return pe(S)}query(S,H,G){return ht(S,H,G)}computeStyle(S,H,G){return G||""}animate(S,H,G,Le,Mt,Xt=[],oi){return new _.ZN(G,Le)}}return R.\u0275fac=function(S){return new(S||R)},R.\u0275prov=e.Yz7({token:R,factory:R.\u0275fac}),R})(),be=(()=>{class R{}return R.NOOP=new yt,R})();const qe=1e3,mt="ng-enter",Tt="ng-leave",it="ng-trigger",je=".ng-trigger",zt="ng-animating",xt=".ng-animating";function Nt(R){if("number"==typeof R)return R;const N=R.match(/^(-?[\.\d]+)(m?s)/);return!N||N.length<2?0:Gt(parseFloat(N[1]),N[2])}function Gt(R,N){return"s"===N?R*qe:R}function ke(R,N,S){return R.hasOwnProperty("duration")?R:function $(R,N,S){let G,Le=0,Mt="";if("string"==typeof R){const Xt=R.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Xt)return N.push(s()),{duration:0,delay:0,easing:""};G=Gt(parseFloat(Xt[1]),Xt[2]);const oi=Xt[3];null!=oi&&(Le=Gt(parseFloat(oi),Xt[4]));const Ci=Xt[5];Ci&&(Mt=Ci)}else G=R;if(!S){let Xt=!1,oi=N.length;G<0&&(N.push(function y(){return new e.vHH(3100,!1)}()),Xt=!0),Le<0&&(N.push(function h(){return new e.vHH(3101,!1)}()),Xt=!0),Xt&&N.splice(oi,0,s())}return{duration:G,delay:Le,easing:Mt}}(R,N,S)}function ue(R,N={}){return Object.keys(R).forEach(S=>{N[S]=R[S]}),N}function Ae(R){const N=new Map;return Object.keys(R).forEach(S=>{N.set(S,R[S])}),N}function Vt(R,N=new Map,S){if(S)for(let[H,G]of S)N.set(H,G);for(let[H,G]of R)N.set(H,G);return N}function ii(R,N,S){return S?N+":"+S+";":""}function pt(R){let N="";for(let S=0;S{const Le=At(G);S&&!S.has(G)&&S.set(G,R.style[Le]),R.style[Le]=H}),Ue()&&pt(R))}function ft(R,N){R.style&&(N.forEach((S,H)=>{const G=At(H);R.style[G]=""}),Ue()&&pt(R))}function St(R){return Array.isArray(R)?1==R.length?R[0]:(0,_.vP)(R):R}const $e=new RegExp("{{\\s*(.+?)\\s*}}","g");function _t(R){let N=[];if("string"==typeof R){let S;for(;S=$e.exec(R);)N.push(S[1]);$e.lastIndex=0}return N}function vt(R,N,S){const H=R.toString(),G=H.replace($e,(Le,Mt)=>{let Xt=N[Mt];return null==Xt&&(S.push(function d(R){return new e.vHH(3003,!1)}()),Xt=""),Xt.toString()});return G==H?R:G}function He(R){const N=[];let S=R.next();for(;!S.done;)N.push(S.value),S=R.next();return N}const Et=/-+([a-z0-9])/g;function At(R){return R.replace(Et,(...N)=>N[1].toUpperCase())}function Qt(R){return R.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Mi(R,N,S){switch(N.type){case 7:return R.visitTrigger(N,S);case 0:return R.visitState(N,S);case 1:return R.visitTransition(N,S);case 2:return R.visitSequence(N,S);case 3:return R.visitGroup(N,S);case 4:return R.visitAnimate(N,S);case 5:return R.visitKeyframes(N,S);case 6:return R.visitStyle(N,S);case 8:return R.visitReference(N,S);case 9:return R.visitAnimateChild(N,S);case 10:return R.visitAnimateRef(N,S);case 11:return R.visitQuery(N,S);case 12:return R.visitStagger(N,S);default:throw function w(R){return new e.vHH(3004,!1)}()}}function Gi(R,N){return window.getComputedStyle(R)[N]}const Oi="*";function Qi(R,N){const S=[];return"string"==typeof R?R.split(/\s*,\s*/).forEach(H=>function en(R,N,S){if(":"==R[0]){const oi=function Yi(R,N){switch(R){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(S,H)=>parseFloat(H)>parseFloat(S);case":decrement":return(S,H)=>parseFloat(H) *"}}(R,S);if("function"==typeof oi)return void N.push(oi);R=oi}const H=R.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==H||H.length<4)return S.push(function se(R){return new e.vHH(3015,!1)}()),N;const G=H[1],Le=H[2],Mt=H[3];N.push(_e(G,Mt));"<"==Le[0]&&!(G==Oi&&Mt==Oi)&&N.push(_e(Mt,G))}(H,S,N)):S.push(R),S}const Yt=new Set(["true","1"]),qt=new Set(["false","0"]);function _e(R,N){const S=Yt.has(R)||qt.has(R),H=Yt.has(N)||qt.has(N);return(G,Le)=>{let Mt=R==Oi||R==G,Xt=N==Oi||N==Le;return!Mt&&S&&"boolean"==typeof G&&(Mt=G?Yt.has(R):qt.has(R)),!Xt&&H&&"boolean"==typeof Le&&(Xt=Le?Yt.has(N):qt.has(N)),Mt&&Xt}}const Dt=new RegExp("s*:selfs*,?","g");function Bt(R,N,S,H){return new vi(R).build(N,S,H)}class vi{constructor(N){this._driver=N}build(N,S,H){const G=new gi(S);return this._resetContextStyleTimingState(G),Mi(this,St(N),G)}_resetContextStyleTimingState(N){N.currentQuerySelector="",N.collectedStyles=new Map,N.collectedStyles.set("",new Map),N.currentTime=0}visitTrigger(N,S){let H=S.queryCount=0,G=S.depCount=0;const Le=[],Mt=[];return"@"==N.name.charAt(0)&&S.errors.push(function L(){return new e.vHH(3006,!1)}()),N.definitions.forEach(Xt=>{if(this._resetContextStyleTimingState(S),0==Xt.type){const oi=Xt,Ci=oi.name;Ci.toString().split(/\s*,\s*/).forEach(Zi=>{oi.name=Zi,Le.push(this.visitState(oi,S))}),oi.name=Ci}else if(1==Xt.type){const oi=this.visitTransition(Xt,S);H+=oi.queryCount,G+=oi.depCount,Mt.push(oi)}else S.errors.push(function D(){return new e.vHH(3007,!1)}())}),{type:7,name:N.name,states:Le,transitions:Mt,queryCount:H,depCount:G,options:null}}visitState(N,S){const H=this.visitStyle(N.styles,S),G=N.options&&N.options.params||null;if(H.containsDynamicStyles){const Le=new Set,Mt=G||{};H.styles.forEach(Xt=>{Xt instanceof Map&&Xt.forEach(oi=>{_t(oi).forEach(Ci=>{Mt.hasOwnProperty(Ci)||Le.add(Ci)})})}),Le.size&&(He(Le.values()),S.errors.push(function z(R,N){return new e.vHH(3008,!1)}()))}return{type:0,name:N.name,style:H,options:G?{params:G}:null}}visitTransition(N,S){S.queryCount=0,S.depCount=0;const H=Mi(this,St(N.animation),S);return{type:1,matchers:Qi(N.expr,S.errors),animation:H,queryCount:S.queryCount,depCount:S.depCount,options:Dn(N.options)}}visitSequence(N,S){return{type:2,steps:N.steps.map(H=>Mi(this,H,S)),options:Dn(N.options)}}visitGroup(N,S){const H=S.currentTime;let G=0;const Le=N.steps.map(Mt=>{S.currentTime=H;const Xt=Mi(this,Mt,S);return G=Math.max(G,S.currentTime),Xt});return S.currentTime=G,{type:3,steps:Le,options:Dn(N.options)}}visitAnimate(N,S){const H=function Un(R,N){if(R.hasOwnProperty("duration"))return R;if("number"==typeof R)return oa(ke(R,N).duration,0,"");const S=R;if(S.split(/\s+/).some(Le=>"{"==Le.charAt(0)&&"{"==Le.charAt(1))){const Le=oa(0,0,"");return Le.dynamic=!0,Le.strValue=S,Le}const G=ke(S,N);return oa(G.duration,G.delay,G.easing)}(N.timings,S.errors);S.currentAnimateTimings=H;let G,Le=N.styles?N.styles:(0,_.oB)({});if(5==Le.type)G=this.visitKeyframes(Le,S);else{let Mt=N.styles,Xt=!1;if(!Mt){Xt=!0;const Ci={};H.easing&&(Ci.easing=H.easing),Mt=(0,_.oB)(Ci)}S.currentTime+=H.duration+H.delay;const oi=this.visitStyle(Mt,S);oi.isEmptyStep=Xt,G=oi}return S.currentAnimateTimings=null,{type:4,timings:H,style:G,options:null}}visitStyle(N,S){const H=this._makeStyleAst(N,S);return this._validateStyleAst(H,S),H}_makeStyleAst(N,S){const H=[],G=Array.isArray(N.styles)?N.styles:[N.styles];for(let Xt of G)"string"==typeof Xt?Xt===_.l3?H.push(Xt):S.errors.push(new e.vHH(3002,!1)):H.push(Ae(Xt));let Le=!1,Mt=null;return H.forEach(Xt=>{if(Xt instanceof Map&&(Xt.has("easing")&&(Mt=Xt.get("easing"),Xt.delete("easing")),!Le))for(let oi of Xt.values())if(oi.toString().indexOf("{{")>=0){Le=!0;break}}),{type:6,styles:H,easing:Mt,offset:N.offset,containsDynamicStyles:Le,options:null}}_validateStyleAst(N,S){const H=S.currentAnimateTimings;let G=S.currentTime,Le=S.currentTime;H&&Le>0&&(Le-=H.duration+H.delay),N.styles.forEach(Mt=>{"string"!=typeof Mt&&Mt.forEach((Xt,oi)=>{const Ci=S.collectedStyles.get(S.currentQuerySelector),Zi=Ci.get(oi);let Vi=!0;Zi&&(Le!=G&&Le>=Zi.startTime&&G<=Zi.endTime&&(S.errors.push(function j(R,N,S,H,G){return new e.vHH(3010,!1)}()),Vi=!1),Le=Zi.startTime),Vi&&Ci.set(oi,{startTime:Le,endTime:G}),S.options&&function gt(R,N,S){const H=N.params||{},G=_t(R);G.length&&G.forEach(Le=>{H.hasOwnProperty(Le)||S.push(function P(R){return new e.vHH(3001,!1)}())})}(Xt,S.options,S.errors)})})}visitKeyframes(N,S){const H={type:5,styles:[],options:null};if(!S.currentAnimateTimings)return S.errors.push(function Q(){return new e.vHH(3011,!1)}()),H;let Le=0;const Mt=[];let Xt=!1,oi=!1,Ci=0;const Zi=N.steps.map(pa=>{const Dr=this._makeStyleAst(pa,S);let to=null!=Dr.offset?Dr.offset:function Ui(R){if("string"==typeof R)return null;let N=null;if(Array.isArray(R))R.forEach(S=>{if(S instanceof Map&&S.has("offset")){const H=S;N=parseFloat(H.get("offset")),H.delete("offset")}});else if(R instanceof Map&&R.has("offset")){const S=R;N=parseFloat(S.get("offset")),S.delete("offset")}return N}(Dr.styles),Ir=0;return null!=to&&(Le++,Ir=Dr.offset=to),oi=oi||Ir<0||Ir>1,Xt=Xt||Ir0&&Le{const to=Ln>0?Dr==In?1:Ln*Dr:Mt[Dr],Ir=to*ea;S.currentTime=pn+Cn.delay+Ir,Cn.duration=Ir,this._validateStyleAst(pa,S),pa.offset=to,H.styles.push(pa)}),H}visitReference(N,S){return{type:8,animation:Mi(this,St(N.animation),S),options:Dn(N.options)}}visitAnimateChild(N,S){return S.depCount++,{type:9,options:Dn(N.options)}}visitAnimateRef(N,S){return{type:10,animation:this.visitReference(N.animation,S),options:Dn(N.options)}}visitQuery(N,S){const H=S.currentQuerySelector,G=N.options||{};S.queryCount++,S.currentQuery=N;const[Le,Mt]=function li(R){const N=!!R.split(/\s*,\s*/).find(S=>":self"==S);return N&&(R=R.replace(Dt,"")),R=R.replace(/@\*/g,je).replace(/@\w+/g,S=>je+"-"+S.slice(1)).replace(/:animating/g,xt),[R,N]}(N.selector);S.currentQuerySelector=H.length?H+" "+Le:Le,oe(S.collectedStyles,S.currentQuerySelector,new Map);const Xt=Mi(this,St(N.animation),S);return S.currentQuery=null,S.currentQuerySelector=H,{type:11,selector:Le,limit:G.limit||0,optional:!!G.optional,includeSelf:Mt,animation:Xt,originalSelector:N.selector,options:Dn(N.options)}}visitStagger(N,S){S.currentQuery||S.errors.push(function re(){return new e.vHH(3013,!1)}());const H="full"===N.timings?{duration:0,delay:0,easing:"full"}:ke(N.timings,S.errors,!0);return{type:12,animation:Mi(this,St(N.animation),S),timings:H,options:null}}}class gi{constructor(N){this.errors=N,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Dn(R){return R?(R=ue(R)).params&&(R.params=function mi(R){return R?ue(R):null}(R.params)):R={},R}function oa(R,N,S){return{duration:R,delay:N,easing:S}}function Ea(R,N,S,H,G,Le,Mt=null,Xt=!1){return{type:1,element:R,keyframes:N,preStyleProps:S,postStyleProps:H,duration:G,delay:Le,totalTime:G+Le,easing:Mt,subTimeline:Xt}}class ta{constructor(){this._map=new Map}get(N){return this._map.get(N)||[]}append(N,S){let H=this._map.get(N);H||this._map.set(N,H=[]),H.push(...S)}has(N){return this._map.has(N)}clear(){this._map.clear()}}const pi=new RegExp(":enter","g"),ri=new RegExp(":leave","g");function xi(R,N,S,H,G,Le=new Map,Mt=new Map,Xt,oi,Ci=[]){return(new Hi).buildKeyframes(R,N,S,H,G,Le,Mt,Xt,oi,Ci)}class Hi{buildKeyframes(N,S,H,G,Le,Mt,Xt,oi,Ci,Zi=[]){Ci=Ci||new ta;const Vi=new Gn(N,S,Ci,G,Le,Zi,[]);Vi.options=oi;const Ln=oi.delay?Nt(oi.delay):0;Vi.currentTimeline.delayNextStep(Ln),Vi.currentTimeline.setStyles([Mt],null,Vi.errors,oi),Mi(this,H,Vi);const In=Vi.timelines.filter(pn=>pn.containsAnimation());if(In.length&&Xt.size){let pn;for(let Cn=In.length-1;Cn>=0;Cn--){const ea=In[Cn];if(ea.element===S){pn=ea;break}}pn&&!pn.allowOnlyTimelineStyles()&&pn.setStyles([Xt],null,Vi.errors,oi)}return In.length?In.map(pn=>pn.buildKeyframes()):[Ea(S,[],[],[],0,Ln,"",!1)]}visitTrigger(N,S){}visitState(N,S){}visitTransition(N,S){}visitAnimateChild(N,S){const H=S.subInstructions.get(S.element);if(H){const G=S.createSubContext(N.options),Le=S.currentTimeline.currentTime,Mt=this._visitSubInstructions(H,G,G.options);Le!=Mt&&S.transformIntoNewTimeline(Mt)}S.previousNode=N}visitAnimateRef(N,S){const H=S.createSubContext(N.options);H.transformIntoNewTimeline(),this._applyAnimationRefDelays([N.options,N.animation.options],S,H),this.visitReference(N.animation,H),S.transformIntoNewTimeline(H.currentTimeline.currentTime),S.previousNode=N}_applyAnimationRefDelays(N,S,H){for(const G of N){const Le=G?.delay;if(Le){const Mt="number"==typeof Le?Le:Nt(vt(Le,G?.params??{},S.errors));H.delayNextStep(Mt)}}}_visitSubInstructions(N,S,H){let Le=S.currentTimeline.currentTime;const Mt=null!=H.duration?Nt(H.duration):null,Xt=null!=H.delay?Nt(H.delay):null;return 0!==Mt&&N.forEach(oi=>{const Ci=S.appendInstructionToTimeline(oi,Mt,Xt);Le=Math.max(Le,Ci.duration+Ci.delay)}),Le}visitReference(N,S){S.updateOptions(N.options,!0),Mi(this,N.animation,S),S.previousNode=N}visitSequence(N,S){const H=S.subContextCount;let G=S;const Le=N.options;if(Le&&(Le.params||Le.delay)&&(G=S.createSubContext(Le),G.transformIntoNewTimeline(),null!=Le.delay)){6==G.previousNode.type&&(G.currentTimeline.snapshotCurrentStyles(),G.previousNode=ln);const Mt=Nt(Le.delay);G.delayNextStep(Mt)}N.steps.length&&(N.steps.forEach(Mt=>Mi(this,Mt,G)),G.currentTimeline.applyStylesToKeyframe(),G.subContextCount>H&&G.transformIntoNewTimeline()),S.previousNode=N}visitGroup(N,S){const H=[];let G=S.currentTimeline.currentTime;const Le=N.options&&N.options.delay?Nt(N.options.delay):0;N.steps.forEach(Mt=>{const Xt=S.createSubContext(N.options);Le&&Xt.delayNextStep(Le),Mi(this,Mt,Xt),G=Math.max(G,Xt.currentTimeline.currentTime),H.push(Xt.currentTimeline)}),H.forEach(Mt=>S.currentTimeline.mergeTimelineCollectedStyles(Mt)),S.transformIntoNewTimeline(G),S.previousNode=N}_visitTiming(N,S){if(N.dynamic){const H=N.strValue;return ke(S.params?vt(H,S.params,S.errors):H,S.errors)}return{duration:N.duration,delay:N.delay,easing:N.easing}}visitAnimate(N,S){const H=S.currentAnimateTimings=this._visitTiming(N.timings,S),G=S.currentTimeline;H.delay&&(S.incrementTime(H.delay),G.snapshotCurrentStyles());const Le=N.style;5==Le.type?this.visitKeyframes(Le,S):(S.incrementTime(H.duration),this.visitStyle(Le,S),G.applyStylesToKeyframe()),S.currentAnimateTimings=null,S.previousNode=N}visitStyle(N,S){const H=S.currentTimeline,G=S.currentAnimateTimings;!G&&H.hasCurrentStyleProperties()&&H.forwardFrame();const Le=G&&G.easing||N.easing;N.isEmptyStep?H.applyEmptyStep(Le):H.setStyles(N.styles,Le,S.errors,S.options),S.previousNode=N}visitKeyframes(N,S){const H=S.currentAnimateTimings,G=S.currentTimeline.duration,Le=H.duration,Xt=S.createSubContext().currentTimeline;Xt.easing=H.easing,N.styles.forEach(oi=>{Xt.forwardTime((oi.offset||0)*Le),Xt.setStyles(oi.styles,oi.easing,S.errors,S.options),Xt.applyStylesToKeyframe()}),S.currentTimeline.mergeTimelineCollectedStyles(Xt),S.transformIntoNewTimeline(G+Le),S.previousNode=N}visitQuery(N,S){const H=S.currentTimeline.currentTime,G=N.options||{},Le=G.delay?Nt(G.delay):0;Le&&(6===S.previousNode.type||0==H&&S.currentTimeline.hasCurrentStyleProperties())&&(S.currentTimeline.snapshotCurrentStyles(),S.previousNode=ln);let Mt=H;const Xt=S.invokeQuery(N.selector,N.originalSelector,N.limit,N.includeSelf,!!G.optional,S.errors);S.currentQueryTotal=Xt.length;let oi=null;Xt.forEach((Ci,Zi)=>{S.currentQueryIndex=Zi;const Vi=S.createSubContext(N.options,Ci);Le&&Vi.delayNextStep(Le),Ci===S.element&&(oi=Vi.currentTimeline),Mi(this,N.animation,Vi),Vi.currentTimeline.applyStylesToKeyframe(),Mt=Math.max(Mt,Vi.currentTimeline.currentTime)}),S.currentQueryIndex=0,S.currentQueryTotal=0,S.transformIntoNewTimeline(Mt),oi&&(S.currentTimeline.mergeTimelineCollectedStyles(oi),S.currentTimeline.snapshotCurrentStyles()),S.previousNode=N}visitStagger(N,S){const H=S.parentContext,G=S.currentTimeline,Le=N.timings,Mt=Math.abs(Le.duration),Xt=Mt*(S.currentQueryTotal-1);let oi=Mt*S.currentQueryIndex;switch(Le.duration<0?"reverse":Le.easing){case"reverse":oi=Xt-oi;break;case"full":oi=H.currentStaggerTime}const Zi=S.currentTimeline;oi&&Zi.delayNextStep(oi);const Vi=Zi.currentTime;Mi(this,N.animation,S),S.previousNode=N,H.currentStaggerTime=G.currentTime-Vi+(G.startTime-H.currentTimeline.startTime)}}const ln={};class Gn{constructor(N,S,H,G,Le,Mt,Xt,oi){this._driver=N,this.element=S,this.subInstructions=H,this._enterClassName=G,this._leaveClassName=Le,this.errors=Mt,this.timelines=Xt,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ln,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=oi||new Hn(this._driver,S,0),Xt.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(N,S){if(!N)return;const H=N;let G=this.options;null!=H.duration&&(G.duration=Nt(H.duration)),null!=H.delay&&(G.delay=Nt(H.delay));const Le=H.params;if(Le){let Mt=G.params;Mt||(Mt=this.options.params={}),Object.keys(Le).forEach(Xt=>{(!S||!Mt.hasOwnProperty(Xt))&&(Mt[Xt]=vt(Le[Xt],Mt,this.errors))})}}_copyOptions(){const N={};if(this.options){const S=this.options.params;if(S){const H=N.params={};Object.keys(S).forEach(G=>{H[G]=S[G]})}}return N}createSubContext(N=null,S,H){const G=S||this.element,Le=new Gn(this._driver,G,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(G,H||0));return Le.previousNode=this.previousNode,Le.currentAnimateTimings=this.currentAnimateTimings,Le.options=this._copyOptions(),Le.updateOptions(N),Le.currentQueryIndex=this.currentQueryIndex,Le.currentQueryTotal=this.currentQueryTotal,Le.parentContext=this,this.subContextCount++,Le}transformIntoNewTimeline(N){return this.previousNode=ln,this.currentTimeline=this.currentTimeline.fork(this.element,N),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(N,S,H){const G={duration:S??N.duration,delay:this.currentTimeline.currentTime+(H??0)+N.delay,easing:""},Le=new _a(this._driver,N.element,N.keyframes,N.preStyleProps,N.postStyleProps,G,N.stretchStartingKeyframe);return this.timelines.push(Le),G}incrementTime(N){this.currentTimeline.forwardTime(this.currentTimeline.duration+N)}delayNextStep(N){N>0&&this.currentTimeline.delayNextStep(N)}invokeQuery(N,S,H,G,Le,Mt){let Xt=[];if(G&&Xt.push(this.element),N.length>0){N=(N=N.replace(pi,"."+this._enterClassName)).replace(ri,"."+this._leaveClassName);let Ci=this._driver.query(this.element,N,1!=H);0!==H&&(Ci=H<0?Ci.slice(Ci.length+H,Ci.length):Ci.slice(0,H)),Xt.push(...Ci)}return!Le&&0==Xt.length&&Mt.push(function ie(R){return new e.vHH(3014,!1)}()),Xt}}class Hn{constructor(N,S,H,G){this._driver=N,this.element=S,this.startTime=H,this._elementTimelineStylesLookup=G,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(S),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(S,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(N){const S=1===this._keyframes.size&&this._pendingStyles.size;this.duration||S?(this.forwardTime(this.currentTime+N),S&&this.snapshotCurrentStyles()):this.startTime+=N}fork(N,S){return this.applyStylesToKeyframe(),new Hn(this._driver,N,S||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(N){this.applyStylesToKeyframe(),this.duration=N,this._loadKeyframe()}_updateStyle(N,S){this._localTimelineStyles.set(N,S),this._globalTimelineStyles.set(N,S),this._styleSummary.set(N,{time:this.currentTime,value:S})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(N){N&&this._previousKeyframe.set("easing",N);for(let[S,H]of this._globalTimelineStyles)this._backFill.set(S,H||_.l3),this._currentKeyframe.set(S,_.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(N,S,H,G){S&&this._previousKeyframe.set("easing",S);const Le=G&&G.params||{},Mt=function Vn(R,N){const S=new Map;let H;return R.forEach(G=>{if("*"===G){H=H||N.keys();for(let Le of H)S.set(Le,_.l3)}else Vt(G,S)}),S}(N,this._globalTimelineStyles);for(let[Xt,oi]of Mt){const Ci=vt(oi,Le,H);this._pendingStyles.set(Xt,Ci),this._localTimelineStyles.has(Xt)||this._backFill.set(Xt,this._globalTimelineStyles.get(Xt)??_.l3),this._updateStyle(Xt,Ci)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((N,S)=>{this._currentKeyframe.set(S,N)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((N,S)=>{this._currentKeyframe.has(S)||this._currentKeyframe.set(S,N)}))}snapshotCurrentStyles(){for(let[N,S]of this._localTimelineStyles)this._pendingStyles.set(N,S),this._updateStyle(N,S)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const N=[];for(let S in this._currentKeyframe)N.push(S);return N}mergeTimelineCollectedStyles(N){N._styleSummary.forEach((S,H)=>{const G=this._styleSummary.get(H);(!G||S.time>G.time)&&this._updateStyle(H,S.value)})}buildKeyframes(){this.applyStylesToKeyframe();const N=new Set,S=new Set,H=1===this._keyframes.size&&0===this.duration;let G=[];this._keyframes.forEach((Xt,oi)=>{const Ci=Vt(Xt,new Map,this._backFill);Ci.forEach((Zi,Vi)=>{Zi===_.k1?N.add(Vi):Zi===_.l3&&S.add(Vi)}),H||Ci.set("offset",oi/this.duration),G.push(Ci)});const Le=N.size?He(N.values()):[],Mt=S.size?He(S.values()):[];if(H){const Xt=G[0],oi=new Map(Xt);Xt.set("offset",0),oi.set("offset",1),G=[Xt,oi]}return Ea(this.element,G,Le,Mt,this.duration,this.startTime,this.easing,!1)}}class _a extends Hn{constructor(N,S,H,G,Le,Mt,Xt=!1){super(N,S,Mt.delay),this.keyframes=H,this.preStyleProps=G,this.postStyleProps=Le,this._stretchStartingKeyframe=Xt,this.timings={duration:Mt.duration,delay:Mt.delay,easing:Mt.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let N=this.keyframes,{delay:S,duration:H,easing:G}=this.timings;if(this._stretchStartingKeyframe&&S){const Le=[],Mt=H+S,Xt=S/Mt,oi=Vt(N[0]);oi.set("offset",0),Le.push(oi);const Ci=Vt(N[0]);Ci.set("offset",Tn(Xt)),Le.push(Ci);const Zi=N.length-1;for(let Vi=1;Vi<=Zi;Vi++){let Ln=Vt(N[Vi]);const In=Ln.get("offset");Ln.set("offset",Tn((S+In*H)/Mt)),Le.push(Ln)}H=Mt,S=0,G="",N=Le}return Ea(this.element,N,this.preStyleProps,this.postStyleProps,H,S,G,!0)}}function Tn(R,N=3){const S=Math.pow(10,N-1);return Math.round(R*S)/S}class zn{}const Co=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Pr extends zn{normalizePropertyName(N,S){return At(N)}normalizeStyleValue(N,S,H,G){let Le="";const Mt=H.toString().trim();if(Co.has(S)&&0!==H&&"0"!==H)if("number"==typeof H)Le="px";else{const Xt=H.match(/^[+-]?[\d\.]+([a-z]*)$/);Xt&&0==Xt[1].length&&G.push(function C(R,N){return new e.vHH(3005,!1)}())}return Mt+Le}}function xr(R,N,S,H,G,Le,Mt,Xt,oi,Ci,Zi,Vi,Ln){return{type:0,element:R,triggerName:N,isRemovalTransition:G,fromState:S,fromStyles:Le,toState:H,toStyles:Mt,timelines:Xt,queriedElements:oi,preStyleProps:Ci,postStyleProps:Zi,totalTime:Vi,errors:Ln}}const jn={};class Ta{constructor(N,S,H){this._triggerName=N,this.ast=S,this._stateStyles=H}match(N,S,H,G){return function Rr(R,N,S,H,G){return R.some(Le=>Le(N,S,H,G))}(this.ast.matchers,N,S,H,G)}buildStyles(N,S,H){let G=this._stateStyles.get("*");return void 0!==N&&(G=this._stateStyles.get(N?.toString())||G),G?G.buildStyles(S,H):new Map}build(N,S,H,G,Le,Mt,Xt,oi,Ci,Zi){const Vi=[],Ln=this.ast.options&&this.ast.options.params||jn,pn=this.buildStyles(H,Xt&&Xt.params||jn,Vi),Cn=oi&&oi.params||jn,ea=this.buildStyles(G,Cn,Vi),pa=new Set,Dr=new Map,to=new Map,Ir="void"===G,Ec={params:Nr(Cn,Ln),delay:this.ast.options?.delay},as=Zi?[]:xi(N,S,this.ast.animation,Le,Mt,pn,ea,Ec,Ci,Vi);let kr=0;if(as.forEach(Qo=>{kr=Math.max(Qo.duration+Qo.delay,kr)}),Vi.length)return xr(S,this._triggerName,H,G,Ir,pn,ea,[],[],Dr,to,kr,Vi);as.forEach(Qo=>{const ws=Qo.element,kh=oe(Dr,ws,new Set);Qo.preStyleProps.forEach(ac=>kh.add(ac));const rs=oe(to,ws,new Set);Qo.postStyleProps.forEach(ac=>rs.add(ac)),ws!==S&&pa.add(ws)});const nc=He(pa.values());return xr(S,this._triggerName,H,G,Ir,pn,ea,as,nc,Dr,to,kr)}}function Nr(R,N){const S=ue(N);for(const H in R)R.hasOwnProperty(H)&&null!=R[H]&&(S[H]=R[H]);return S}class Yr{constructor(N,S,H){this.styles=N,this.defaultParams=S,this.normalizer=H}buildStyles(N,S){const H=new Map,G=ue(this.defaultParams);return Object.keys(N).forEach(Le=>{const Mt=N[Le];null!==Mt&&(G[Le]=Mt)}),this.styles.styles.forEach(Le=>{"string"!=typeof Le&&Le.forEach((Mt,Xt)=>{Mt&&(Mt=vt(Mt,G,S));const oi=this.normalizer.normalizePropertyName(Xt,S);Mt=this.normalizer.normalizeStyleValue(Xt,oi,Mt,S),H.set(Xt,Mt)})}),H}}class wa{constructor(N,S,H){this.name=N,this.ast=S,this._normalizer=H,this.transitionFactories=[],this.states=new Map,S.states.forEach(G=>{this.states.set(G.name,new Yr(G.style,G.options&&G.options.params||{},H))}),no(this.states,"true","1"),no(this.states,"false","0"),S.transitions.forEach(G=>{this.transitionFactories.push(new Ta(N,G,this.states))}),this.fallbackTransition=function Io(R,N,S){return new Ta(R,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Mt,Xt)=>!0],options:null,queryCount:0,depCount:0},N)}(N,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(N,S,H,G){return this.transitionFactories.find(Mt=>Mt.match(N,S,H,G))||null}matchStyles(N,S,H){return this.fallbackTransition.buildStyles(N,S,H)}}function no(R,N,S){R.has(N)?R.has(S)||R.set(S,R.get(N)):R.has(S)&&R.set(N,R.get(S))}const jr=new ta;class pr{constructor(N,S,H){this.bodyNode=N,this._driver=S,this._normalizer=H,this._animations=new Map,this._playersById=new Map,this.players=[]}register(N,S){const H=[],G=[],Le=Bt(this._driver,S,H,G);if(H.length)throw function f(R){return new e.vHH(3503,!1)}();this._animations.set(N,Le)}_buildPlayer(N,S,H){const G=N.element,Le=ye(0,this._normalizer,0,N.keyframes,S,H);return this._driver.animate(G,Le,N.duration,N.delay,N.easing,[],!0)}create(N,S,H={}){const G=[],Le=this._animations.get(N);let Mt;const Xt=new Map;if(Le?(Mt=xi(this._driver,S,Le,mt,Tt,new Map,new Map,H,jr,G),Mt.forEach(Zi=>{const Vi=oe(Xt,Zi.element,new Map);Zi.postStyleProps.forEach(Ln=>Vi.set(Ln,null))})):(G.push(function l(){return new e.vHH(3300,!1)}()),Mt=[]),G.length)throw function v(R){return new e.vHH(3504,!1)}();Xt.forEach((Zi,Vi)=>{Zi.forEach((Ln,In)=>{Zi.set(In,this._driver.computeStyle(Vi,In,_.l3))})});const Ci=at(Mt.map(Zi=>{const Vi=Xt.get(Zi.element);return this._buildPlayer(Zi,new Map,Vi)}));return this._playersById.set(N,Ci),Ci.onDestroy(()=>this.destroy(N)),this.players.push(Ci),Ci}destroy(N){const S=this._getPlayer(N);S.destroy(),this._playersById.delete(N);const H=this.players.indexOf(S);H>=0&&this.players.splice(H,1)}_getPlayer(N){const S=this._playersById.get(N);if(!S)throw function I(R){return new e.vHH(3301,!1)}();return S}listen(N,S,H,G){const Le=Oe(S,"","","");return xe(this._getPlayer(N),H,Le,G),()=>{}}command(N,S,H,G){if("register"==H)return void this.register(N,G[0]);if("create"==H)return void this.create(N,S,G[0]||{});const Le=this._getPlayer(N);switch(H){case"play":Le.play();break;case"pause":Le.pause();break;case"reset":Le.reset();break;case"restart":Le.restart();break;case"finish":Le.finish();break;case"init":Le.init();break;case"setPosition":Le.setPosition(parseFloat(G[0]));break;case"destroy":this.destroy(N)}}}const or="ng-animate-queued",ro="ng-animate-disabled",Fr=[],Wa={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Hr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},sa="__ng_removed";class za{get params(){return this.options.params}constructor(N,S=""){this.namespaceId=S;const H=N&&N.hasOwnProperty("value");if(this.value=function qr(R){return R??null}(H?N.value:N),H){const Le=ue(N);delete Le.value,this.options=Le}else this.options={};this.options.params||(this.options.params={})}absorbOptions(N){const S=N.params;if(S){const H=this.options.params;Object.keys(S).forEach(G=>{null==H[G]&&(H[G]=S[G])})}}}const sr="void",gr=new za(sr);class Cr{constructor(N,S,H){this.id=N,this.hostElement=S,this._engine=H,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+N,Qn(S,this._hostClassName)}listen(N,S,H,G){if(!this._triggers.has(S))throw function k(R,N){return new e.vHH(3302,!1)}();if(null==H||0==H.length)throw function x(R){return new e.vHH(3303,!1)}();if(!function Po(R){return"start"==R||"done"==R}(H))throw function n(R,N){return new e.vHH(3400,!1)}();const Le=oe(this._elementListeners,N,[]),Mt={name:S,phase:H,callback:G};Le.push(Mt);const Xt=oe(this._engine.statesByElement,N,new Map);return Xt.has(S)||(Qn(N,it),Qn(N,it+"-"+S),Xt.set(S,gr)),()=>{this._engine.afterFlush(()=>{const oi=Le.indexOf(Mt);oi>=0&&Le.splice(oi,1),this._triggers.has(S)||Xt.delete(S)})}}register(N,S){return!this._triggers.has(N)&&(this._triggers.set(N,S),!0)}_getTrigger(N){const S=this._triggers.get(N);if(!S)throw function g(R){return new e.vHH(3401,!1)}();return S}trigger(N,S,H,G=!0){const Le=this._getTrigger(S),Mt=new oo(this.id,S,N);let Xt=this._engine.statesByElement.get(N);Xt||(Qn(N,it),Qn(N,it+"-"+S),this._engine.statesByElement.set(N,Xt=new Map));let oi=Xt.get(S);const Ci=new za(H,this.id);if(!(H&&H.hasOwnProperty("value"))&&oi&&Ci.absorbOptions(oi.options),Xt.set(S,Ci),oi||(oi=gr),Ci.value!==sr&&oi.value===Ci.value){if(!function Ro(R,N){const S=Object.keys(R),H=Object.keys(N);if(S.length!=H.length)return!1;for(let G=0;G{ft(N,ea),ot(N,pa)})}return}const Ln=oe(this._engine.playersByElement,N,[]);Ln.forEach(Cn=>{Cn.namespaceId==this.id&&Cn.triggerName==S&&Cn.queued&&Cn.destroy()});let In=Le.matchTransition(oi.value,Ci.value,N,Ci.params),pn=!1;if(!In){if(!G)return;In=Le.fallbackTransition,pn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:N,triggerName:S,transition:In,fromState:oi,toState:Ci,player:Mt,isFallbackTransition:pn}),pn||(Qn(N,or),Mt.onStart(()=>{On(N,or)})),Mt.onDone(()=>{let Cn=this.players.indexOf(Mt);Cn>=0&&this.players.splice(Cn,1);const ea=this._engine.playersByElement.get(N);if(ea){let pa=ea.indexOf(Mt);pa>=0&&ea.splice(pa,1)}}),this.players.push(Mt),Ln.push(Mt),Mt}deregister(N){this._triggers.delete(N),this._engine.statesByElement.forEach(S=>S.delete(N)),this._elementListeners.forEach((S,H)=>{this._elementListeners.set(H,S.filter(G=>G.name!=N))})}clearElementCache(N){this._engine.statesByElement.delete(N),this._elementListeners.delete(N);const S=this._engine.playersByElement.get(N);S&&(S.forEach(H=>H.destroy()),this._engine.playersByElement.delete(N))}_signalRemovalForInnerTriggers(N,S){const H=this._engine.driver.query(N,je,!0);H.forEach(G=>{if(G[sa])return;const Le=this._engine.fetchNamespacesByElement(G);Le.size?Le.forEach(Mt=>Mt.triggerLeaveAnimation(G,S,!1,!0)):this.clearElementCache(G)}),this._engine.afterFlushAnimationsDone(()=>H.forEach(G=>this.clearElementCache(G)))}triggerLeaveAnimation(N,S,H,G){const Le=this._engine.statesByElement.get(N),Mt=new Map;if(Le){const Xt=[];if(Le.forEach((oi,Ci)=>{if(Mt.set(Ci,oi.value),this._triggers.has(Ci)){const Zi=this.trigger(N,Ci,sr,G);Zi&&Xt.push(Zi)}}),Xt.length)return this._engine.markElementAsRemoved(this.id,N,!0,S,Mt),H&&at(Xt).onDone(()=>this._engine.processLeaveNode(N)),!0}return!1}prepareLeaveAnimationListeners(N){const S=this._elementListeners.get(N),H=this._engine.statesByElement.get(N);if(S&&H){const G=new Set;S.forEach(Le=>{const Mt=Le.name;if(G.has(Mt))return;G.add(Mt);const oi=this._triggers.get(Mt).fallbackTransition,Ci=H.get(Mt)||gr,Zi=new za(sr),Vi=new oo(this.id,Mt,N);this._engine.totalQueuedPlayers++,this._queue.push({element:N,triggerName:Mt,transition:oi,fromState:Ci,toState:Zi,player:Vi,isFallbackTransition:!0})})}}removeNode(N,S){const H=this._engine;if(N.childElementCount&&this._signalRemovalForInnerTriggers(N,S),this.triggerLeaveAnimation(N,S,!0))return;let G=!1;if(H.totalAnimations){const Le=H.players.length?H.playersByQueriedElement.get(N):[];if(Le&&Le.length)G=!0;else{let Mt=N;for(;Mt=Mt.parentNode;)if(H.statesByElement.get(Mt)){G=!0;break}}}if(this.prepareLeaveAnimationListeners(N),G)H.markElementAsRemoved(this.id,N,!1,S);else{const Le=N[sa];(!Le||Le===Wa)&&(H.afterFlush(()=>this.clearElementCache(N)),H.destroyInnerAnimations(N),H._onRemovalComplete(N,S))}}insertNode(N,S){Qn(N,this._hostClassName)}drainQueuedTransitions(N){const S=[];return this._queue.forEach(H=>{const G=H.player;if(G.destroyed)return;const Le=H.element,Mt=this._elementListeners.get(Le);Mt&&Mt.forEach(Xt=>{if(Xt.name==H.triggerName){const oi=Oe(Le,H.triggerName,H.fromState.value,H.toState.value);oi._data=N,xe(H.player,Xt.phase,oi,Xt.callback)}}),G.markedForDestroy?this._engine.afterFlush(()=>{G.destroy()}):S.push(H)}),this._queue=[],S.sort((H,G)=>{const Le=H.transition.ast.depCount,Mt=G.transition.ast.depCount;return 0==Le||0==Mt?Le-Mt:this._engine.driver.containsElement(H.element,G.element)?1:-1})}destroy(N){this.players.forEach(S=>S.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,N)}elementContainsData(N){let S=!1;return this._elementListeners.has(N)&&(S=!0),S=!!this._queue.find(H=>H.element===N)||S,S}}class Oo{_onRemovalComplete(N,S){this.onRemovalComplete(N,S)}constructor(N,S,H){this.bodyNode=N,this.driver=S,this._normalizer=H,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=(G,Le)=>{}}get queuedPlayers(){const N=[];return this._namespaceList.forEach(S=>{S.players.forEach(H=>{H.queued&&N.push(H)})}),N}createNamespace(N,S){const H=new Cr(N,S,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,S)?this._balanceNamespaceList(H,S):(this.newHostElements.set(S,H),this.collectEnterElement(S)),this._namespaceLookup[N]=H}_balanceNamespaceList(N,S){const H=this._namespaceList,G=this.namespacesByHostElement;if(H.length-1>=0){let Mt=!1,Xt=this.driver.getParentElement(S);for(;Xt;){const oi=G.get(Xt);if(oi){const Ci=H.indexOf(oi);H.splice(Ci+1,0,N),Mt=!0;break}Xt=this.driver.getParentElement(Xt)}Mt||H.unshift(N)}else H.push(N);return G.set(S,N),N}register(N,S){let H=this._namespaceLookup[N];return H||(H=this.createNamespace(N,S)),H}registerTrigger(N,S,H){let G=this._namespaceLookup[N];G&&G.register(S,H)&&this.totalAnimations++}destroy(N,S){if(!N)return;const H=this._fetchNamespace(N);this.afterFlush(()=>{this.namespacesByHostElement.delete(H.hostElement),delete this._namespaceLookup[N];const G=this._namespaceList.indexOf(H);G>=0&&this._namespaceList.splice(G,1)}),this.afterFlushAnimationsDone(()=>H.destroy(S))}_fetchNamespace(N){return this._namespaceLookup[N]}fetchNamespacesByElement(N){const S=new Set,H=this.statesByElement.get(N);if(H)for(let G of H.values())if(G.namespaceId){const Le=this._fetchNamespace(G.namespaceId);Le&&S.add(Le)}return S}trigger(N,S,H,G){if(cr(S)){const Le=this._fetchNamespace(N);if(Le)return Le.trigger(S,H,G),!0}return!1}insertNode(N,S,H,G){if(!cr(S))return;const Le=S[sa];if(Le&&Le.setForRemoval){Le.setForRemoval=!1,Le.setForMove=!0;const Mt=this.collectedLeaveElements.indexOf(S);Mt>=0&&this.collectedLeaveElements.splice(Mt,1)}if(N){const Mt=this._fetchNamespace(N);Mt&&Mt.insertNode(S,H)}G&&this.collectEnterElement(S)}collectEnterElement(N){this.collectedEnterElements.push(N)}markElementAsDisabled(N,S){S?this.disabledNodes.has(N)||(this.disabledNodes.add(N),Qn(N,ro)):this.disabledNodes.has(N)&&(this.disabledNodes.delete(N),On(N,ro))}removeNode(N,S,H,G){if(cr(S)){const Le=N?this._fetchNamespace(N):null;if(Le?Le.removeNode(S,G):this.markElementAsRemoved(N,S,!1,G),H){const Mt=this.namespacesByHostElement.get(S);Mt&&Mt.id!==N&&Mt.removeNode(S,G)}}else this._onRemovalComplete(S,G)}markElementAsRemoved(N,S,H,G,Le){this.collectedLeaveElements.push(S),S[sa]={namespaceId:N,setForRemoval:G,hasAnimation:H,removedBeforeQueried:!1,previousTriggersValues:Le}}listen(N,S,H,G,Le){return cr(S)?this._fetchNamespace(N).listen(S,H,G,Le):()=>{}}_buildInstruction(N,S,H,G,Le){return N.transition.build(this.driver,N.element,N.fromState.value,N.toState.value,H,G,N.fromState.options,N.toState.options,S,Le)}destroyInnerAnimations(N){let S=this.driver.query(N,je,!0);S.forEach(H=>this.destroyActiveAnimationsForElement(H)),0!=this.playersByQueriedElement.size&&(S=this.driver.query(N,xt,!0),S.forEach(H=>this.finishActiveQueriedAnimationOnElement(H)))}destroyActiveAnimationsForElement(N){const S=this.playersByElement.get(N);S&&S.forEach(H=>{H.queued?H.markedForDestroy=!0:H.destroy()})}finishActiveQueriedAnimationOnElement(N){const S=this.playersByQueriedElement.get(N);S&&S.forEach(H=>H.finish())}whenRenderingDone(){return new Promise(N=>{if(this.players.length)return at(this.players).onDone(()=>N());N()})}processLeaveNode(N){const S=N[sa];if(S&&S.setForRemoval){if(N[sa]=Wa,S.namespaceId){this.destroyInnerAnimations(N);const H=this._fetchNamespace(S.namespaceId);H&&H.clearElementCache(N)}this._onRemovalComplete(N,S.setForRemoval)}N.classList?.contains(ro)&&this.markElementAsDisabled(N,!1),this.driver.query(N,".ng-animate-disabled",!0).forEach(H=>{this.markElementAsDisabled(H,!1)})}flush(N=-1){let S=[];if(this.newHostElements.size&&(this.newHostElements.forEach((H,G)=>this._balanceNamespaceList(H,G)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let H=0;HH()),this._flushFns=[],this._whenQuietFns.length){const H=this._whenQuietFns;this._whenQuietFns=[],S.length?at(S).onDone(()=>{H.forEach(G=>G())}):H.forEach(G=>G())}}reportError(N){throw function W(R){return new e.vHH(3402,!1)}()}_flushAnimations(N,S){const H=new ta,G=[],Le=new Map,Mt=[],Xt=new Map,oi=new Map,Ci=new Map,Zi=new Set;this.disabledNodes.forEach(fn=>{Zi.add(fn);const yn=this.driver.query(fn,".ng-animate-queued",!0);for(let wn=0;wn{const wn=mt+Cn++;pn.set(yn,wn),fn.forEach(Xn=>Qn(Xn,wn))});const ea=[],pa=new Set,Dr=new Set;for(let fn=0;fnpa.add(Xn)):Dr.add(yn))}const to=new Map,Ir=wr(Ln,Array.from(pa));Ir.forEach((fn,yn)=>{const wn=Tt+Cn++;to.set(yn,wn),fn.forEach(Xn=>Qn(Xn,wn))}),N.push(()=>{In.forEach((fn,yn)=>{const wn=pn.get(yn);fn.forEach(Xn=>On(Xn,wn))}),Ir.forEach((fn,yn)=>{const wn=to.get(yn);fn.forEach(Xn=>On(Xn,wn))}),ea.forEach(fn=>{this.processLeaveNode(fn)})});const Ec=[],as=[];for(let fn=this._namespaceList.length-1;fn>=0;fn--)this._namespaceList[fn].drainQueuedTransitions(S).forEach(wn=>{const Xn=wn.player,qa=wn.element;if(Ec.push(Xn),this.collectedEnterElements.length){const Ur=qa[sa];if(Ur&&Ur.setForMove){if(Ur.previousTriggersValues&&Ur.previousTriggersValues.has(wn.triggerName)){const Ms=Ur.previousTriggersValues.get(wn.triggerName),Vo=this.statesByElement.get(wn.element);if(Vo&&Vo.has(wn.triggerName)){const S1=Vo.get(wn.triggerName);S1.value=Ms,Vo.set(wn.triggerName,S1)}}return void Xn.destroy()}}const Ao=!Vi||!this.driver.containsElement(Vi,qa),go=to.get(qa),os=pn.get(qa),Oa=this._buildInstruction(wn,H,os,go,Ao);if(Oa.errors&&Oa.errors.length)return void as.push(Oa);if(Ao)return Xn.onStart(()=>ft(qa,Oa.fromStyles)),Xn.onDestroy(()=>ot(qa,Oa.toStyles)),void G.push(Xn);if(wn.isFallbackTransition)return Xn.onStart(()=>ft(qa,Oa.fromStyles)),Xn.onDestroy(()=>ot(qa,Oa.toStyles)),void G.push(Xn);const M1=[];Oa.timelines.forEach(Ur=>{Ur.stretchStartingKeyframe=!0,this.disabledNodes.has(Ur.element)||M1.push(Ur)}),Oa.timelines=M1,H.append(qa,Oa.timelines),Mt.push({instruction:Oa,player:Xn,element:qa}),Oa.queriedElements.forEach(Ur=>oe(Xt,Ur,[]).push(Xn)),Oa.preStyleProps.forEach((Ur,Ms)=>{if(Ur.size){let Vo=oi.get(Ms);Vo||oi.set(Ms,Vo=new Set),Ur.forEach((S1,l0)=>Vo.add(l0))}}),Oa.postStyleProps.forEach((Ur,Ms)=>{let Vo=Ci.get(Ms);Vo||Ci.set(Ms,Vo=new Set),Ur.forEach((S1,l0)=>Vo.add(l0))})});if(as.length){const fn=[];as.forEach(yn=>{fn.push(function U(R,N){return new e.vHH(3505,!1)}())}),Ec.forEach(yn=>yn.destroy()),this.reportError(fn)}const kr=new Map,nc=new Map;Mt.forEach(fn=>{const yn=fn.element;H.has(yn)&&(nc.set(yn,yn),this._beforeAnimationBuild(fn.player.namespaceId,fn.instruction,kr))}),G.forEach(fn=>{const yn=fn.element;this._getPreviousPlayers(yn,!1,fn.namespaceId,fn.triggerName,null).forEach(Xn=>{oe(kr,yn,[]).push(Xn),Xn.destroy()})});const Qo=ea.filter(fn=>Ft(fn,oi,Ci)),ws=new Map;Va(ws,this.driver,Dr,Ci,_.l3).forEach(fn=>{Ft(fn,oi,Ci)&&Qo.push(fn)});const rs=new Map;In.forEach((fn,yn)=>{Va(rs,this.driver,new Set(fn),oi,_.k1)}),Qo.forEach(fn=>{const yn=ws.get(fn),wn=rs.get(fn);ws.set(fn,new Map([...Array.from(yn?.entries()??[]),...Array.from(wn?.entries()??[])]))});const ac=[],c0=[],Vd={};Mt.forEach(fn=>{const{element:yn,player:wn,instruction:Xn}=fn;if(H.has(yn)){if(Zi.has(yn))return wn.onDestroy(()=>ot(yn,Xn.toStyles)),wn.disabled=!0,wn.overrideTotalTime(Xn.totalTime),void G.push(wn);let qa=Vd;if(nc.size>1){let go=yn;const os=[];for(;go=go.parentNode;){const Oa=nc.get(go);if(Oa){qa=Oa;break}os.push(go)}os.forEach(Oa=>nc.set(Oa,qa))}const Ao=this._buildAnimation(wn.namespaceId,Xn,kr,Le,rs,ws);if(wn.setRealPlayer(Ao),qa===Vd)ac.push(wn);else{const go=this.playersByElement.get(qa);go&&go.length&&(wn.parentPlayer=at(go)),G.push(wn)}}else ft(yn,Xn.fromStyles),wn.onDestroy(()=>ot(yn,Xn.toStyles)),c0.push(wn),Zi.has(yn)&&G.push(wn)}),c0.forEach(fn=>{const yn=Le.get(fn.element);if(yn&&yn.length){const wn=at(yn);fn.setRealPlayer(wn)}}),G.forEach(fn=>{fn.parentPlayer?fn.syncPlayerEvents(fn.parentPlayer):fn.destroy()});for(let fn=0;fn!Ao.destroyed);qa.length?lr(this,yn,qa):this.processLeaveNode(yn)}return ea.length=0,ac.forEach(fn=>{this.players.push(fn),fn.onDone(()=>{fn.destroy();const yn=this.players.indexOf(fn);this.players.splice(yn,1)}),fn.play()}),ac}elementContainsData(N,S){let H=!1;const G=S[sa];return G&&G.setForRemoval&&(H=!0),this.playersByElement.has(S)&&(H=!0),this.playersByQueriedElement.has(S)&&(H=!0),this.statesByElement.has(S)&&(H=!0),this._fetchNamespace(N).elementContainsData(S)||H}afterFlush(N){this._flushFns.push(N)}afterFlushAnimationsDone(N){this._whenQuietFns.push(N)}_getPreviousPlayers(N,S,H,G,Le){let Mt=[];if(S){const Xt=this.playersByQueriedElement.get(N);Xt&&(Mt=Xt)}else{const Xt=this.playersByElement.get(N);if(Xt){const oi=!Le||Le==sr;Xt.forEach(Ci=>{Ci.queued||!oi&&Ci.triggerName!=G||Mt.push(Ci)})}}return(H||G)&&(Mt=Mt.filter(Xt=>!(H&&H!=Xt.namespaceId||G&&G!=Xt.triggerName))),Mt}_beforeAnimationBuild(N,S,H){const Le=S.element,Mt=S.isRemovalTransition?void 0:N,Xt=S.isRemovalTransition?void 0:S.triggerName;for(const oi of S.timelines){const Ci=oi.element,Zi=Ci!==Le,Vi=oe(H,Ci,[]);this._getPreviousPlayers(Ci,Zi,Mt,Xt,S.toState).forEach(In=>{const pn=In.getRealPlayer();pn.beforeDestroy&&pn.beforeDestroy(),In.destroy(),Vi.push(In)})}ft(Le,S.fromStyles)}_buildAnimation(N,S,H,G,Le,Mt){const Xt=S.triggerName,oi=S.element,Ci=[],Zi=new Set,Vi=new Set,Ln=S.timelines.map(pn=>{const Cn=pn.element;Zi.add(Cn);const ea=Cn[sa];if(ea&&ea.removedBeforeQueried)return new _.ZN(pn.duration,pn.delay);const pa=Cn!==oi,Dr=function Mr(R){const N=[];return ya(R,N),N}((H.get(Cn)||Fr).map(kr=>kr.getRealPlayer())).filter(kr=>!!kr.element&&kr.element===Cn),to=Le.get(Cn),Ir=Mt.get(Cn),Ec=ye(0,this._normalizer,0,pn.keyframes,to,Ir),as=this._buildPlayer(pn,Ec,Dr);if(pn.subTimeline&&G&&Vi.add(Cn),pa){const kr=new oo(N,Xt,Cn);kr.setRealPlayer(as),Ci.push(kr)}return as});Ci.forEach(pn=>{oe(this.playersByQueriedElement,pn.element,[]).push(pn),pn.onDone(()=>function Qr(R,N,S){let H=R.get(N);if(H){if(H.length){const G=H.indexOf(S);H.splice(G,1)}0==H.length&&R.delete(N)}return H}(this.playersByQueriedElement,pn.element,pn))}),Zi.forEach(pn=>Qn(pn,zt));const In=at(Ln);return In.onDestroy(()=>{Zi.forEach(pn=>On(pn,zt)),ot(oi,S.toStyles)}),Vi.forEach(pn=>{oe(G,pn,[]).push(In)}),In}_buildPlayer(N,S,H){return S.length>0?this.driver.animate(N.element,S,N.duration,N.delay,N.easing,H):new _.ZN(N.duration,N.delay)}}class oo{constructor(N,S,H){this.namespaceId=N,this.triggerName=S,this.element=H,this._player=new _.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(N){this._containsRealPlayer||(this._player=N,this._queuedCallbacks.forEach((S,H)=>{S.forEach(G=>xe(N,H,void 0,G))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(N.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(N){this.totalTime=N}syncPlayerEvents(N){const S=this._player;S.triggerCallback&&N.onStart(()=>S.triggerCallback("start")),N.onDone(()=>this.finish()),N.onDestroy(()=>this.destroy())}_queueEvent(N,S){oe(this._queuedCallbacks,N,[]).push(S)}onDone(N){this.queued&&this._queueEvent("done",N),this._player.onDone(N)}onStart(N){this.queued&&this._queueEvent("start",N),this._player.onStart(N)}onDestroy(N){this.queued&&this._queueEvent("destroy",N),this._player.onDestroy(N)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(N){this.queued||this._player.setPosition(N)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(N){const S=this._player;S.triggerCallback&&S.triggerCallback(N)}}function cr(R){return R&&1===R.nodeType}function wo(R,N){const S=R.style.display;return R.style.display=N??"none",S}function Va(R,N,S,H,G){const Le=[];S.forEach(oi=>Le.push(wo(oi)));const Mt=[];H.forEach((oi,Ci)=>{const Zi=new Map;oi.forEach(Vi=>{const Ln=N.computeStyle(Ci,Vi,G);Zi.set(Vi,Ln),(!Ln||0==Ln.length)&&(Ci[sa]=Hr,Mt.push(Ci))}),R.set(Ci,Zi)});let Xt=0;return S.forEach(oi=>wo(oi,Le[Xt++])),Mt}function wr(R,N){const S=new Map;if(R.forEach(Xt=>S.set(Xt,[])),0==N.length)return S;const H=1,G=new Set(N),Le=new Map;function Mt(Xt){if(!Xt)return H;let oi=Le.get(Xt);if(oi)return oi;const Ci=Xt.parentNode;return oi=S.has(Ci)?Ci:G.has(Ci)?H:Mt(Ci),Le.set(Xt,oi),oi}return N.forEach(Xt=>{const oi=Mt(Xt);oi!==H&&S.get(oi).push(Xt)}),S}function Qn(R,N){R.classList?.add(N)}function On(R,N){R.classList?.remove(N)}function lr(R,N,S){at(S).onDone(()=>R.processLeaveNode(N))}function ya(R,N){for(let S=0;SG.add(Le)):N.set(R,H),S.delete(R),!0}class hi{constructor(N,S,H){this.bodyNode=N,this._driver=S,this._normalizer=H,this._triggerCache={},this.onRemovalComplete=(G,Le)=>{},this._transitionEngine=new Oo(N,S,H),this._timelineEngine=new pr(N,S,H),this._transitionEngine.onRemovalComplete=(G,Le)=>this.onRemovalComplete(G,Le)}registerTrigger(N,S,H,G,Le){const Mt=N+"-"+G;let Xt=this._triggerCache[Mt];if(!Xt){const oi=[],Ci=[],Zi=Bt(this._driver,Le,oi,Ci);if(oi.length)throw function i(R,N){return new e.vHH(3404,!1)}();Xt=function Ia(R,N,S){return new wa(R,N,S)}(G,Zi,this._normalizer),this._triggerCache[Mt]=Xt}this._transitionEngine.registerTrigger(S,G,Xt)}register(N,S){this._transitionEngine.register(N,S)}destroy(N,S){this._transitionEngine.destroy(N,S)}onInsert(N,S,H,G){this._transitionEngine.insertNode(N,S,H,G)}onRemove(N,S,H,G){this._transitionEngine.removeNode(N,S,G||!1,H)}disableAnimations(N,S){this._transitionEngine.markElementAsDisabled(N,S)}process(N,S,H,G){if("@"==H.charAt(0)){const[Le,Mt]=Fe(H);this._timelineEngine.command(Le,S,Mt,G)}else this._transitionEngine.trigger(N,S,H,G)}listen(N,S,H,G,Le){if("@"==H.charAt(0)){const[Mt,Xt]=Fe(H);return this._timelineEngine.listen(Mt,S,Xt,Le)}return this._transitionEngine.listen(N,S,H,G,Le)}flush(N=-1){this._transitionEngine.flush(N)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let ai=(()=>{class R{constructor(S,H,G){this._element=S,this._startStyles=H,this._endStyles=G,this._state=0;let Le=R.initialStylesByElement.get(S);Le||R.initialStylesByElement.set(S,Le=new Map),this._initialStyles=Le}start(){this._state<1&&(this._startStyles&&ot(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ot(this._element,this._initialStyles),this._endStyles&&(ot(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(R.initialStylesByElement.delete(this._element),this._startStyles&&(ft(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ft(this._element,this._endStyles),this._endStyles=null),ot(this._element,this._initialStyles),this._state=3)}}return R.initialStylesByElement=new WeakMap,R})();function Ii(R){let N=null;return R.forEach((S,H)=>{(function nn(R){return"display"===R||"position"===R})(H)&&(N=N||new Map,N.set(H,S))}),N}class aa{constructor(N,S,H,G){this.element=N,this.keyframes=S,this.options=H,this._specialStyles=G,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=H.duration,this._delay=H.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(N=>N()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const N=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,N,this.options),this._finalKeyframe=N.length?N[N.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(N){const S=[];return N.forEach(H=>{S.push(Object.fromEntries(H))}),S}_triggerWebAnimation(N,S,H){return N.animate(this._convertKeyframesToObject(S),H)}onStart(N){this._originalOnStartFns.push(N),this._onStartFns.push(N)}onDone(N){this._originalOnDoneFns.push(N),this._onDoneFns.push(N)}onDestroy(N){this._onDestroyFns.push(N)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(N=>N()),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,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_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(N=>N()),this._onDestroyFns=[])}setPosition(N){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=N*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const N=new Map;this.hasStarted()&&this._finalKeyframe.forEach((H,G)=>{"offset"!==G&&N.set(G,this._finished?H:Gi(this.element,G))}),this.currentSnapshot=N}triggerCallback(N){const S="start"===N?this._onStartFns:this._onDoneFns;S.forEach(H=>H()),S.length=0}}class ca{validateStyleProperty(N){return!0}validateAnimatableStyleProperty(N){return!0}matchesElement(N,S){return!1}containsElement(N,S){return Ut(N,S)}getParentElement(N){return pe(N)}query(N,S,H){return ht(N,S,H)}computeStyle(N,S,H){return window.getComputedStyle(N)[S]}animate(N,S,H,G,Le,Mt=[]){const oi={duration:H,delay:G,fill:0==G?"both":"forwards"};Le&&(oi.easing=Le);const Ci=new Map,Zi=Mt.filter(In=>In instanceof aa);(function zi(R,N){return 0===R||0===N})(H,G)&&Zi.forEach(In=>{In.currentSnapshot.forEach((pn,Cn)=>Ci.set(Cn,pn))});let Vi=function Je(R){return R.length?R[0]instanceof Map?R:R.map(N=>Ae(N)):[]}(S).map(In=>Vt(In));Vi=function Ni(R,N,S){if(S.size&&N.length){let H=N[0],G=[];if(S.forEach((Le,Mt)=>{H.has(Mt)||G.push(Mt),H.set(Mt,Le)}),G.length)for(let Le=1;LeMt.set(Xt,Gi(R,Xt)))}}return N}(N,Vi,Ci);const Ln=function Ct(R,N){let S=null,H=null;return Array.isArray(N)&&N.length?(S=Ii(N[0]),N.length>1&&(H=Ii(N[N.length-1]))):N instanceof Map&&(S=Ii(N)),S||H?new ai(R,S,H):null}(N,Vi);return new aa(N,Vi,oi,Ln)}}var Wi=m(6895);let _n=(()=>{class R extends _._j{constructor(S,H){super(),this._nextAnimationId=0,this._renderer=S.createRenderer(H.body,{id:"0",encapsulation:e.ifc.None,styles:[],data:{animation:[]}})}build(S){const H=this._nextAnimationId.toString();this._nextAnimationId++;const G=Array.isArray(S)?(0,_.vP)(S):S;return et(this._renderer,null,H,"register",[G]),new Za(H,this._renderer)}}return R.\u0275fac=function(S){return new(S||R)(e.LFG(e.FYo),e.LFG(Wi.K0))},R.\u0275prov=e.Yz7({token:R,factory:R.\u0275fac}),R})();class Za extends _.LC{constructor(N,S){super(),this._id=N,this._renderer=S}create(N,S){return new ct(this._id,N,S||{},this._renderer)}}class ct{constructor(N,S,H,G){this.id=N,this.element=S,this._renderer=G,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",H)}_listen(N,S){return this._renderer.listen(this.element,`@@${this.id}:${N}`,S)}_command(N,...S){return et(this._renderer,this.element,this.id,N,S)}onDone(N){this._listen("done",N)}onStart(N){this._listen("start",N)}onDestroy(N){this._listen("destroy",N)}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(N){this._command("setPosition",N)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function et(R,N,S,H,G){return R.setProperty(N,`@@${S}:${H}`,G)}const kt="@.disabled";let wi=(()=>{class R{constructor(S,H,G){this.delegate=S,this.engine=H,this._zone=G,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),H.onRemovalComplete=(Le,Mt)=>{const Xt=Mt?.parentNode(Le);Xt&&Mt.removeChild(Xt,Le)}}createRenderer(S,H){const Le=this.delegate.createRenderer(S,H);if(!(S&&H&&H.data&&H.data.animation)){let Zi=this._rendererCache.get(Le);return Zi||(Zi=new on("",Le,this.engine,()=>this._rendererCache.delete(Le)),this._rendererCache.set(Le,Zi)),Zi}const Mt=H.id,Xt=H.id+"-"+this._currentId;this._currentId++,this.engine.register(Xt,S);const oi=Zi=>{Array.isArray(Zi)?Zi.forEach(oi):this.engine.registerTrigger(Mt,Xt,S,Zi.name,Zi)};return H.data.animation.forEach(oi),new va(this,Xt,Le,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(S,H,G){S>=0&&SH(G)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(Le=>{const[Mt,Xt]=Le;Mt(Xt)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([H,G]))}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 R.\u0275fac=function(S){return new(S||R)(e.LFG(e.FYo),e.LFG(hi),e.LFG(e.R0b))},R.\u0275prov=e.Yz7({token:R,factory:R.\u0275fac}),R})();class on{constructor(N,S,H,G){this.namespaceId=N,this.delegate=S,this.engine=H,this._onDestroy=G,this.destroyNode=this.delegate.destroyNode?Le=>S.destroyNode(Le):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(N,S){return this.delegate.createElement(N,S)}createComment(N){return this.delegate.createComment(N)}createText(N){return this.delegate.createText(N)}appendChild(N,S){this.delegate.appendChild(N,S),this.engine.onInsert(this.namespaceId,S,N,!1)}insertBefore(N,S,H,G=!0){this.delegate.insertBefore(N,S,H),this.engine.onInsert(this.namespaceId,S,N,G)}removeChild(N,S,H){this.engine.onRemove(this.namespaceId,S,this.delegate,H)}selectRootElement(N,S){return this.delegate.selectRootElement(N,S)}parentNode(N){return this.delegate.parentNode(N)}nextSibling(N){return this.delegate.nextSibling(N)}setAttribute(N,S,H,G){this.delegate.setAttribute(N,S,H,G)}removeAttribute(N,S,H){this.delegate.removeAttribute(N,S,H)}addClass(N,S){this.delegate.addClass(N,S)}removeClass(N,S){this.delegate.removeClass(N,S)}setStyle(N,S,H,G){this.delegate.setStyle(N,S,H,G)}removeStyle(N,S,H){this.delegate.removeStyle(N,S,H)}setProperty(N,S,H){"@"==S.charAt(0)&&S==kt?this.disableAnimations(N,!!H):this.delegate.setProperty(N,S,H)}setValue(N,S){this.delegate.setValue(N,S)}listen(N,S,H){return this.delegate.listen(N,S,H)}disableAnimations(N,S){this.engine.disableAnimations(N,S)}}class va extends on{constructor(N,S,H,G,Le){super(S,H,G,Le),this.factory=N,this.namespaceId=S}setProperty(N,S,H){"@"==S.charAt(0)?"."==S.charAt(1)&&S==kt?this.disableAnimations(N,H=void 0===H||!!H):this.engine.process(this.namespaceId,N,S.slice(1),H):this.delegate.setProperty(N,S,H)}listen(N,S,H){if("@"==S.charAt(0)){const G=function Ei(R){switch(R){case"body":return document.body;case"document":return document;case"window":return window;default:return R}}(N);let Le=S.slice(1),Mt="";return"@"!=Le.charAt(0)&&([Le,Mt]=function An(R){const N=R.indexOf(".");return[R.substring(0,N),R.slice(N+1)]}(Le)),this.engine.listen(this.namespaceId,G,Le,Mt,Xt=>{this.factory.scheduleListenerCallback(Xt._data||-1,H,Xt)})}return this.delegate.listen(N,S,H)}}const ds=[{provide:_._j,useClass:_n},{provide:zn,useFactory:function Ws(){return new Pr}},{provide:hi,useClass:(()=>{class R extends hi{constructor(S,H,G,Le){super(S.body,H,G)}ngOnDestroy(){this.flush()}}return R.\u0275fac=function(S){return new(S||R)(e.LFG(Wi.K0),e.LFG(be),e.LFG(zn),e.LFG(e.z2F))},R.\u0275prov=e.Yz7({token:R,factory:R.\u0275fac}),R})()},{provide:e.FYo,useFactory:function Ba(R,N,S){return new wi(R,N,S)},deps:[t.se,hi,e.R0b]}],Uo=[{provide:be,useFactory:()=>new ca},{provide:e.QbO,useValue:"BrowserAnimations"},...ds],Sr=[{provide:be,useClass:yt},{provide:e.QbO,useValue:"NoopAnimations"},...ds];let Xo=(()=>{class R{static withConfig(S){return{ngModule:R,providers:S.disableAnimations?Sr:Uo}}}return R.\u0275fac=function(S){return new(S||R)},R.\u0275mod=e.oAB({type:R}),R.\u0275inj=e.cJS({providers:Uo,imports:[t.b2]}),R})();var $o=m(529),qn=m(2289),ki=m(9653),Ua=m(493),co=m(825),Fi=m(7579),No=m(6451),Mo=m(4968),lc=m(457),Er=m(4986),dr=m(2805);function Go(R=0,N=Er.z){return R<0&&(R=0),(0,dr.H)(R,R,N)}var lo=m(9646),hs=m(727),Ys=m(4482),Fo=m(5403),Is=m(8737),ks=m(3269),dc=m(9672),Ya=m(9300),es=m(8505),us=m(3900),sn=m(2722),ja=m(8746),Ho=m(1884),la=m(4004);class fs{}let Rc=(()=>{class R{constructor(S,H){this._ngZone=H,this.timerStart$=new Fi.x,this.idleDetected$=new Fi.x,this.timeout$=new Fi.x,this.idleMillisec=6e5,this.idleSensitivityMillisec=1e3,this.timeout=300,this.pingMillisec=12e4,this.isTimeout=!1,this.isInactivityTimer=!1,this.isIdleDetected=!1,S&&this.setConfig(S)}startWatching(){this.activityEvents$||(this.activityEvents$=(0,No.T)((0,Mo.R)(window,"mousemove"),(0,Mo.R)(window,"resize"),(0,Mo.R)(document,"keydown"))),this.idle$=(0,lc.D)(this.activityEvents$),this.idleSubscription&&this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.pipe(function js(R,...N){var S,H;const G=null!==(S=(0,ks.yG)(N))&&void 0!==S?S:Er.z,Le=null!==(H=N[0])&&void 0!==H?H:null,Mt=N[1]||1/0;return(0,Ys.e)((Xt,oi)=>{let Ci=[],Zi=!1;const Vi=pn=>{const{buffer:Cn,subs:ea}=pn;ea.unsubscribe(),(0,Is.P)(Ci,pn),oi.next(Cn),Zi&&Ln()},Ln=()=>{if(Ci){const pn=new hs.w0;oi.add(pn);const ea={buffer:[],subs:pn};Ci.push(ea),(0,dc.f)(pn,G,()=>Vi(ea),R)}};null!==Le&&Le>=0?(0,dc.f)(oi,G,Ln,Le,!0):Zi=!0,Ln();const In=(0,Fo.x)(oi,pn=>{const Cn=Ci.slice();for(const ea of Cn){const{buffer:pa}=ea;pa.push(pn),Mt<=pa.length&&Vi(ea)}},()=>{for(;Ci?.length;)oi.next(Ci.shift().buffer);In?.unsubscribe(),oi.complete(),oi.unsubscribe()},void 0,()=>Ci=null);Xt.subscribe(In)})}(this.idleSensitivityMillisec),(0,Ya.h)(S=>!S.length&&!this.isIdleDetected&&!this.isInactivityTimer),(0,es.b)(()=>{this.isIdleDetected=!0,this.idleDetected$.next(!0)}),(0,us.w)(()=>this._ngZone.runOutsideAngular(()=>Go(1e3).pipe((0,sn.R)((0,No.T)(this.activityEvents$,(0,dr.H)(this.idleMillisec).pipe((0,es.b)(()=>{this.isInactivityTimer=!0,this.timerStart$.next(!0)})))),(0,ja.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,Ho.x)(),(0,us.w)(S=>S?this.timer$:(0,lo.of)(null)))}onIdleStatusChanged(){return this.idleDetected$.asObservable()}onTimeout(){return this.timeout$.pipe((0,Ya.h)(S=>!!S),(0,es.b)(()=>this.isTimeout=!0),(0,la.U)(()=>!0))}getConfigValue(){return{idle:this.idleMillisec/1e3,idleSensitivity:this.idleSensitivityMillisec/1e3,timeout:this.timeout,ping:this.pingMillisec/1e3}}setConfigValues(S){!this.idleSubscription||this.idleSubscription.closed?this.setConfig(S):console.error("Call stopWatching() before set config values")}setConfig(S){S.idle&&(this.idleMillisec=1e3*S.idle),S.ping&&(this.pingMillisec=1e3*S.ping),S.idleSensitivity&&(this.idleSensitivityMillisec=1e3*S.idleSensitivity),S.timeout&&(this.timeout=S.timeout)}setCustomActivityEvents(S){!this.idleSubscription||this.idleSubscription.closed?this.activityEvents$=S:console.error("Call stopWatching() before set custom activity events")}setupTimer(S){this._ngZone.runOutsideAngular(()=>{this.timer$=(0,lo.of)(()=>new Date).pipe((0,la.U)(H=>H()),(0,us.w)(H=>Go(1e3).pipe((0,la.U)(()=>Math.round(((new Date).valueOf()-H.valueOf())/1e3)),(0,es.b)(G=>{G>=S&&this.timeout$.next(!0)}))))})}setupPing(S){this.ping$=Go(S).pipe((0,Ya.h)(()=>!this.isTimeout))}}return R.\u0275fac=function(S){return new(S||R)(e.LFG(fs,8),e.LFG(e.R0b))},R.\u0275prov=e.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})(),hc=(()=>{class R{static forRoot(S){return{ngModule:R,providers:[{provide:fs,useValue:S}]}}}return R.\u0275fac=function(S){return new(S||R)},R.\u0275mod=e.oAB({type:R}),R.\u0275inj=e.cJS({imports:[[]]}),R})();var Wn=m(9116),Xi=m(2687),xa=m(8377),La=m(2216),ji=m(1576),Kn=m(3546),ze=m(3848);const ne=function(){return{initial:!1}};function te(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",11),e.NdJ("click",function(){e.CHM(S);const G=e.oxw();return e.KtG(G.activeLink=G.links[1].link)}),e._uU(1),e.qZA()}if(2&R){const S=e.oxw();e.s9C("routerLink",S.links[1].link),e.Q6J("active",S.activeLink===S.links[1].link)("state",e.DdM(4,ne)),e.xp6(1),e.Oqu(S.links[1].name)}}function Ee(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",6),e.NdJ("click",function(){e.CHM(S);const G=e.oxw();return e.KtG(G.activeLink=G.links[2].link)}),e._uU(1),e.qZA()}if(2&R){const S=e.oxw();e.s9C("routerLink",S.links[2].link),e.Q6J("active",S.activeLink===S.links[2].link),e.xp6(1),e.Oqu(S.links[2].name)}}let tt=(()=>{var R;class N{constructor(H,G){this.store=H,this.router=G,this.faUserCog=Xi.gNZ,this.showBitcoind=!1,this.links=[{link:"app",name:"Application"},{link:"auth",name:"Authentication"},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new Fi.x,new Fi.x,new Fi.x]}ngOnInit(){const H=this.links.find(G=>this.router.url.includes(G.link));this.activeLink=H?H.link:this.links[0].link,this.router.events.pipe((0,sn.R)(this.unSubs[0]),(0,Ya.h)(G=>G instanceof Wn.Av)).subscribe({next:G=>{const Le=this.links.find(Mt=>G.urlAfterRedirects.includes(Mt.link));this.activeLink=Le?Le.link:this.links[0].link}}),this.store.select(xa.Yj).pipe((0,sn.R)(this.unSubs[1])).subscribe(G=>{this.appConfig=G}),this.store.select(xa.dT).pipe((0,sn.R)(this.unSubs[2])).subscribe(G=>{this.showBitcoind=!1,this.selNode=G,this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return(R=N).\u0275fac=function(H){return new(H||R)(e.Y36(ki.yh),e.Y36(Wn.F0))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-settings"]],decls:16,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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["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"],["tabPanel",""],["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(H,G){if(1&H&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Settings"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5)(8,"div",6),e.NdJ("click",function(){return G.activeLink=G.links[0].link}),e._uU(9),e.qZA(),e.YNc(10,te,2,5,"div",7),e.YNc(11,Ee,2,3,"div",8),e.qZA(),e._UZ(12,"mat-tab-nav-panel",null,9),e.TgZ(14,"div",10),e._UZ(15,"router-outlet"),e.qZA()()()()),2&H){const Le=e.MAs(13);e.xp6(1),e.Q6J("icon",G.faUserCog),e.xp6(6),e.Q6J("tabPanel",Le),e.xp6(1),e.s9C("routerLink",G.links[0].link),e.Q6J("active",G.activeLink===G.links[0].link),e.xp6(1),e.Oqu(G.links[0].name),e.xp6(1),e.Q6J("ngIf",!+G.appConfig.sso.rtlSSO),e.xp6(1),e.Q6J("ngIf",G.showBitcoind)}},dependencies:[Wi.O5,La.BN,ji.xw,ji.Wh,ji.yH,Kn.a8,Kn.dn,ze.BU,ze.sW,ze.Nj,Wn.lC,Wn.rH]}),N})();var Ne=m(7731),Rt=m(7861),ni=m(5043),ti=m(4006),bi=m(4859),Si=m(9549),Pi=m(4385),qi=m(3238),tn=m(6839),hn=m(3390);function da(R,N){if(1&R&&(e.TgZ(0,"mat-option",17),e._uU(1),e.qZA()),2&R){const S=N.$implicit;e.Q6J("value",S.index),e.xp6(1),e.AsE(" ",S.lnNode," (",S.lnImplementation,") ")}}function ma(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"form",2,3)(2,"div",4),e._UZ(3,"fa-icon",5),e.TgZ(4,"span",6),e._uU(5,"Default Node"),e.qZA()(),e.TgZ(6,"div",7)(7,"div",8),e._UZ(8,"fa-icon",9),e.TgZ(9,"span"),e._uU(10,"The setting will apply after RTL server restarts."),e.qZA()(),e.TgZ(11,"div",10)(12,"mat-form-field",11)(13,"mat-select",12),e.NdJ("ngModelChange",function(G){e.CHM(S);const Le=e.oxw();return e.KtG(Le.appConfig.defaultNodeIndex=G)}),e.YNc(14,da,2,3,"mat-option",13),e.qZA()()(),e.TgZ(15,"div",14)(16,"div",10)(17,"button",15),e.NdJ("click",function(){e.CHM(S);const G=e.oxw();return e.KtG(G.onResetSettings())}),e._uU(18,"Reset"),e.qZA(),e.TgZ(19,"button",16),e.NdJ("click",function(){e.CHM(S);const G=e.oxw();return e.KtG(G.onUpdateSettings())}),e._uU(20,"Update"),e.qZA()()()()()}if(2&R){const S=e.oxw();e.xp6(3),e.Q6J("icon",S.faWindowRestore),e.xp6(5),e.Q6J("icon",S.faInfoCircle),e.xp6(5),e.Q6J("ngModel",S.appConfig.defaultNodeIndex),e.xp6(1),e.Q6J("ngForOf",S.appConfig.nodes)}}let ka=(()=>{var R;class N{constructor(H,G){this.logger=H,this.store=G,this.faInfoCircle=Xi.sqG,this.faWindowRestore=Xi.wyP,this.faPlus=Xi.r8p,this.previousDefaultNode=0,this.unSubs=[new Fi.x,new Fi.x]}ngOnInit(){this.store.select(xa.Yj).pipe((0,sn.R)(this.unSubs[0])).subscribe(H=>{this.appConfig=H,this.previousDefaultNode=this.appConfig.defaultNodeIndex,this.logger.info(H)})}onAddNewNode(){this.logger.warn("ADD NEW NODE")}onUpdateSettings(){this.store.dispatch((0,Rt.zQ)({payload:{uiMessage:Ne.m6.UPDATE_DEFAULT_NODE_SETTING,defaultNodeIndex:this.appConfig.defaultNodeIndex?this.appConfig.defaultNodeIndex:this.appConfig&&this.appConfig.nodes&&this.appConfig.nodes.length&&this.appConfig.nodes.length>0&&this.appConfig.nodes[0].index?+this.appConfig.nodes[0].index:-1}}))}onResetSettings(){this.appConfig.defaultNodeIndex=this.previousDefaultNode}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(),H.complete()})}}return(R=N).\u0275fac=function(H){return new(H||R)(e.Y36(ni.mQ),e.Y36(ki.yh))},R.\u0275cmp=e.Xpm({type:R,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"],["fxLayout","column","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(H,G){1&H&&(e.TgZ(0,"div",0),e.YNc(1,ma,21,4,"form",1),e.qZA()),2&H&&(e.xp6(1),e.Q6J("ngIf",G.appConfig.nodes&&G.appConfig.nodes.length&&G.appConfig.nodes.length>0))},dependencies:[Wi.sg,Wi.O5,ti._Y,ti.JJ,ti.JL,ti.On,ti.F,La.BN,ji.xw,ji.Wh,ji.yH,bi.lW,Si.KE,Pi.gD,qi.ey,tn.$V,hn.h]}),N})();var ha=m(8012),ua=m(5698),ra=m(5412),Da=m(5768),Ma=m(3093),Tr=m(7009),hr=m(4144),ho=m(8425),zr=m(658),ol=m(5199);const Wo=["stepper"];function Ul(R,N){if(1&R&&e._uU(0),2&R){const S=e.oxw();e.Oqu(S.passwordFormLabel)}}function Nc(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}function Ar(R,N){if(1&R&&e._uU(0),2&R){const S=e.oxw(2);e.Oqu(S.secretFormLabel)}}function Gl(R,N){if(1&R&&e._UZ(0,"qr-code",33),2&R){const S=e.oxw(2);e.Q6J("value",S.otpauth)("size",180)("errorCorrectionLevel","L")}}function Os(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Secret Code is required."),e.qZA())}function Fc(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"mat-step",10)(1,"form",22),e.YNc(2,Ar,1,1,"ng-template",23),e.TgZ(3,"div",24),e.YNc(4,Gl,1,3,"qr-code",25),e.qZA(),e.TgZ(5,"div",26),e._UZ(6,"fa-icon",27),e.TgZ(7,"span"),e._uU(8,"You can use a compatible authentication app to get an authentication code when you log in to RTL. e.g.: Google Authenticator."),e.qZA()(),e.TgZ(9,"div",28)(10,"mat-form-field",13)(11,"mat-label"),e._uU(12,"Secret Code"),e.qZA(),e._UZ(13,"input",29),e.TgZ(14,"fa-icon",30),e.NdJ("copied",function(G){e.CHM(S);const Le=e.oxw();return e.KtG(Le.onCopySecret(G))}),e.qZA(),e.YNc(15,Os,2,0,"mat-error",15),e.qZA()(),e.TgZ(16,"div",31)(17,"button",32),e._uU(18,"Next"),e.qZA()()()()}if(2&R){const S=e.oxw();e.Q6J("stepControl",S.secretFormGroup)("editable",S.flgEditable),e.xp6(1),e.Q6J("formGroup",S.secretFormGroup),e.xp6(3),e.Q6J("ngIf",S.otpauth),e.xp6(2),e.Q6J("icon",S.faInfoCircle),e.xp6(8),e.Q6J("icon",S.faCopy)("payload",null==S.secretFormGroup||null==S.secretFormGroup.controls||null==S.secretFormGroup.controls.secret?null:S.secretFormGroup.controls.secret.value),e.xp6(1),e.Q6J("ngIf",null==S.secretFormGroup||null==S.secretFormGroup.controls||null==S.secretFormGroup.controls.secret||null==S.secretFormGroup.controls.secret.errors?null:S.secretFormGroup.controls.secret.errors.required)}}function sl(R,N){if(1&R&&e._uU(0),2&R){const S=e.oxw(2);e.Oqu(S.tokenFormLabel)}}function cl(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Token is required."),e.qZA())}function H1(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Token is invalid."),e.qZA())}function z1(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",7)(1,"div",28)(2,"mat-form-field",13)(3,"mat-label"),e._uU(4,"Token"),e.qZA(),e._UZ(5,"input",37),e.YNc(6,cl,2,0,"mat-error",15),e.YNc(7,H1,2,0,"mat-error",15),e.qZA()(),e.TgZ(8,"div",31)(9,"button",38),e.NdJ("click",function(){e.CHM(S);const G=e.oxw(2);return e.KtG(G.onVerifyToken())}),e._uU(10),e.qZA()()()}if(2&R){const S=e.oxw(2);e.xp6(6),e.Q6J("ngIf",null==S.tokenFormGroup||null==S.tokenFormGroup.controls||null==S.tokenFormGroup.controls.token||null==S.tokenFormGroup.controls.token.errors?null:S.tokenFormGroup.controls.token.errors.required),e.xp6(1),e.Q6J("ngIf",null==S.tokenFormGroup||null==S.tokenFormGroup.controls||null==S.tokenFormGroup.controls.token||null==S.tokenFormGroup.controls.token.errors?null:S.tokenFormGroup.controls.token.errors.notValid),e.xp6(3),e.Oqu(null!=S.tokenFormGroup&&null!=S.tokenFormGroup.controls&&null!=S.tokenFormGroup.controls.token&&null!=S.tokenFormGroup.controls.token.errors&&S.tokenFormGroup.controls.token.errors.notValid?"Retry":"Verify")}}function Wl(R,N){1&R&&(e.TgZ(0,"div")(1,"strong"),e._uU(2,"Success! You are all set."),e.qZA()())}function Hc(R,N){if(1&R&&(e.TgZ(0,"mat-step",34)(1,"form",35),e.YNc(2,sl,1,1,"ng-template",12),e.YNc(3,z1,11,3,"div",36),e.YNc(4,Wl,3,0,"div",15),e.qZA()()),2&R){const S=e.oxw();e.Q6J("stepControl",S.tokenFormGroup),e.xp6(1),e.Q6J("formGroup",S.tokenFormGroup),e.xp6(2),e.Q6J("ngIf",!S.flgValidated||!S.isTokenValid),e.xp6(1),e.Q6J("ngIf",S.flgValidated&&S.isTokenValid)}}function Ks(R,N){if(1&R&&e._uU(0),2&R){const S=e.oxw(2);e.Oqu(S.disableFormLabel)}}function tr(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",7)(1,"div",39),e._UZ(2,"fa-icon",27),e.TgZ(3,"span"),e._uU(4,"You are about to disable two-factor authentication security from RTL. Are you sure you want to turn it off?"),e.qZA()(),e.TgZ(5,"div",31)(6,"button",38),e.NdJ("click",function(){e.CHM(S);const G=e.oxw(2);return e.KtG(G.onVerifyToken())}),e._uU(7,"Disable"),e.qZA()()()}if(2&R){const S=e.oxw(2);e.xp6(2),e.Q6J("icon",S.faExclamationTriangle)}}function Zo(R,N){1&R&&(e.TgZ(0,"div")(1,"strong"),e._uU(2,"Two factor authentication removed from RTL."),e.qZA()())}function Ps(R,N){if(1&R&&(e.TgZ(0,"mat-step",34)(1,"form",35),e.YNc(2,Ks,1,1,"ng-template",12),e.YNc(3,tr,8,1,"div",36),e.YNc(4,Zo,3,0,"div",15),e.qZA()()),2&R){const S=e.oxw();e.Q6J("stepControl",S.disableFormGroup),e.xp6(1),e.Q6J("formGroup",S.disableFormGroup),e.xp6(2),e.Q6J("ngIf",!S.flgValidated||!S.isTokenValid),e.xp6(1),e.Q6J("ngIf",S.flgValidated&&S.isTokenValid)}}let Zl=(()=>{var R;class N{constructor(H,G,Le,Mt,Xt,oi){this.dialogRef=H,this.data=G,this.store=Le,this.formBuilder=Mt,this.rtlEffects=Xt,this.snackBar=oi,this.faExclamationTriangle=Xi.eHv,this.faCopy=Xi.kZ_,this.faInfoCircle=Xi.sqG,this.flgValidated=!1,this.isTokenValid=!0,this.otpauth="",this.appConfig=null,this.flgEditable=!0,this.showDisableStepper=!1,this.passwordFormLabel="Authenticate with your RTL password",this.secretFormLabel="Scan or copy the secret",this.tokenFormLabel="Verify your authentication is working",this.disableFormLabel="Disable two factor authentication",this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[ti.kI.required]],password:["",[ti.kI.required]]}),this.secretFormGroup=this.formBuilder.group({secret:[{value:"",disabled:!0},ti.kI.required]}),this.tokenFormGroup=this.formBuilder.group({token:["",ti.kI.required]}),this.disableFormGroup=this.formBuilder.group({}),this.unSubs=[new Fi.x,new Fi.x]}ngOnInit(){this.appConfig=this.data.appConfig||null,this.showDisableStepper=!!this.appConfig?.enable2FA,this.secretFormGroup=this.formBuilder.group({secret:[{value:this.appConfig?.enable2FA?"":this.generateSecret(),disabled:!0},ti.kI.required]})}generateSecret(){const H=Da.authenticator.generateSecret();return this.otpauth=Da.authenticator.keyuri("","Ride The Lightning (RTL)",H),H}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,Rt.QO)({payload:ha(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,ua.q)(1)).subscribe(H=>{"ERROR"!==H?(this.passwordFormGroup.controls.hiddenPassword.setValue(this.passwordFormGroup.controls.password.value),this.stepper.next()):(this.dialogRef.close(),this.snackBar.open("Unauthorized User. Logging out from RTL."))})}onCopySecret(H){this.snackBar.open("Secret code "+this.secretFormGroup.controls.secret.value+" copied.")}onVerifyToken(){if(this.appConfig?.enable2FA)this.store.dispatch((0,Rt.Uy)({payload:{secret2fa:""}})),this.generateSecret(),this.isTokenValid=!0;else{if(!this.tokenFormGroup.controls.token.value)return!0;if(this.isTokenValid=Da.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,Rt.Uy)({payload:{secret2fa:this.secretFormGroup.controls.secret.value}})),this.tokenFormGroup.controls.token.setValue("")}this.flgValidated=!0,this.appConfig&&(this.appConfig.enable2FA=!this.appConfig?.enable2FA)}stepSelectionChanged(H){switch(H.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password";break;case 1:case 2:this.passwordFormLabel="User authenticated successfully"}H.selectedIndex{H.next(),H.complete()})}}return(R=N).\u0275fac=function(H){return new(H||R)(e.Y36(ra.so),e.Y36(ra.WI),e.Y36(ki.yh),e.Y36(ti.QS),e.Y36(Ma.V),e.Y36(Tr.ux))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-two-factor-auth"]],viewQuery:function(H,G){if(1&H&&e.Gf(Wo,5),2&H){let Le;e.iGM(Le=e.CRH())&&(G.stepper=Le.first)}},decls:30,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 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",""],["fxLayout","column","fxFlex","100"],["autoFocus","","matInput","","type","password","tabindex","1","formControlName","password","required",""],[4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start"],[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","","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","","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(H,G){1&H&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5,"Setup Two Factor Authentication"),e.qZA()(),e.TgZ(6,"button",5),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"div",7)(10,"mat-vertical-stepper",8,9),e.NdJ("selectionChange",function(Mt){return G.stepSelectionChanged(Mt)}),e.TgZ(12,"mat-step",10)(13,"form",11),e.YNc(14,Ul,1,1,"ng-template",12),e.TgZ(15,"div",0)(16,"mat-form-field",13)(17,"mat-label"),e._uU(18,"Password"),e.qZA(),e._UZ(19,"input",14),e.YNc(20,Nc,2,0,"mat-error",15),e.qZA()(),e.TgZ(21,"div",16)(22,"button",17),e.NdJ("click",function(){return G.onAuthenticate()}),e._uU(23,"Confirm"),e.qZA()()()(),e.YNc(24,Fc,19,8,"mat-step",18),e.YNc(25,Hc,5,4,"mat-step",19),e.YNc(26,Ps,5,4,"mat-step",19),e.qZA(),e.TgZ(27,"div",20)(28,"button",21),e._uU(29),e.qZA()()()()()()),2&H&&(e.xp6(6),e.Q6J("mat-dialog-close",!1),e.xp6(4),e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",G.passwordFormGroup)("editable",G.flgEditable),e.xp6(1),e.Q6J("formGroup",G.passwordFormGroup),e.xp6(7),e.Q6J("ngIf",null==G.passwordFormGroup||null==G.passwordFormGroup.controls||null==G.passwordFormGroup.controls.password||null==G.passwordFormGroup.controls.password.errors?null:G.passwordFormGroup.controls.password.errors.required),e.xp6(4),e.Q6J("ngIf",!G.showDisableStepper),e.xp6(1),e.Q6J("ngIf",!G.showDisableStepper),e.xp6(1),e.Q6J("ngIf",G.showDisableStepper),e.xp6(2),e.Q6J("mat-dialog-close",!1),e.xp6(1),e.Oqu(G.flgValidated&&G.isTokenValid?"Close":"Cancel"))},dependencies:[Wi.O5,ti._Y,ti.Fj,ti.JJ,ti.JL,ti.Q7,ti.sg,ti.u,La.BN,ji.xw,ji.Wh,ji.yH,ra.ZT,bi.lW,Kn.dn,Kn.dk,hr.Nt,Si.KE,Si.hX,Si.TO,Si.R9,ho.C0,ho.VY,ho.Vq,ho.Ic,zr.uU,ol.y,hn.h]}),N})();var Ga=m(5986),Jr=m(4850);const ll=["authForm"];function dl(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Current password is required."),e.qZA())}function o2(R,N){if(1&R&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&R){const S=e.oxw(2);e.xp6(1),e.Oqu(S.errorMsg)}}function V1(R,N){if(1&R&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&R){const S=e.oxw(2);e.xp6(1),e.Oqu(S.errorConfirmMsg)}}function uc(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"form",11,12)(2,"div",13),e._UZ(3,"fa-icon",5),e.TgZ(4,"span",6),e._uU(5,"Password"),e.qZA()(),e.TgZ(6,"mat-form-field")(7,"mat-label"),e._uU(8,"Current Password"),e.qZA(),e.TgZ(9,"input",14),e.NdJ("ngModelChange",function(G){e.CHM(S);const Le=e.oxw();return e.KtG(Le.currPassword=G)}),e.qZA(),e.YNc(10,dl,2,0,"mat-error",15),e.qZA(),e.TgZ(11,"mat-form-field")(12,"mat-label"),e._uU(13,"New Password"),e.qZA(),e.TgZ(14,"input",16),e.NdJ("ngModelChange",function(G){e.CHM(S);const Le=e.oxw();return e.KtG(Le.newPassword=G)}),e.qZA(),e.YNc(15,o2,2,1,"mat-error",15),e.qZA(),e.TgZ(16,"mat-form-field")(17,"mat-label"),e._uU(18,"Confirm New Password"),e.qZA(),e.TgZ(19,"input",17),e.NdJ("ngModelChange",function(G){e.CHM(S);const Le=e.oxw();return e.KtG(Le.confirmPassword=G)}),e.qZA(),e.YNc(20,V1,2,1,"mat-error",15),e.qZA(),e.TgZ(21,"div",18)(22,"button",19),e.NdJ("click",function(){e.CHM(S);const G=e.oxw();return e.KtG(G.onResetPassword())}),e._uU(23,"Reset"),e.qZA(),e.TgZ(24,"button",20),e.NdJ("click",function(){e.CHM(S);const G=e.oxw();return e.KtG(G.onChangePassword())}),e._uU(25,"Change Password"),e.qZA()()()}if(2&R){const S=e.oxw();e.xp6(3),e.Q6J("icon",S.faLock),e.xp6(6),e.Q6J("ngModel",S.currPassword),e.xp6(1),e.Q6J("ngIf",!S.currPassword),e.xp6(4),e.Q6J("ngModel",S.newPassword),e.xp6(1),e.Q6J("ngIf",S.matchOldAndNewPasswords()),e.xp6(4),e.Q6J("ngModel",S.confirmPassword),e.xp6(1),e.Q6J("ngIf",S.matchNewPasswords())}}let ts=(()=>{var R;class N{constructor(H,G,Le,Mt,Xt){this.logger=H,this.store=G,this.actions=Le,this.router=Mt,this.sessionService=Xt,this.faInfoCircle=Xi.sqG,this.faUserLock=Xi.FJU,this.faUserClock=Xi.hnx,this.faLock=Xi.byT,this.currPassword="",this.newPassword="",this.confirmPassword="",this.errorMsg="",this.errorConfirmMsg="",this.initializeNodeData=!1,this.unSubs=[new Fi.x,new Fi.x,new Fi.x]}ngOnInit(){this.initializeNodeData="true"===this.sessionService.getItem("defaultPassword"),this.store.select(xa.Yj).pipe((0,sn.R)(this.unSubs[0])).subscribe(H=>{this.appConfig=H,this.logger.info(this.appConfig)}),this.store.select(xa.dT).pipe((0,sn.R)(this.unSubs[1])).subscribe(H=>{this.selNode=H}),this.actions.pipe((0,sn.R)(this.unSubs[2]),(0,Ya.h)(H=>H.type===Ne.pg.RESET_PASSWORD_RES)).subscribe(H=>{if(Ne.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||Ne.kO.includes(this.newPassword.toLowerCase()))return!0;this.store.dispatch((0,Rt.c0)({payload:{currPassword:ha(this.currPassword).toString(),newPassword:ha(this.newPassword).toString()}}))}matchOldAndNewPasswords(){let H=!1;return this.form&&this.form.controls&&this.form.controls.newpassword&&(this.newPassword?""!==this.currPassword&&""!==this.newPassword&&this.currPassword===this.newPassword?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg="Old and New password cannot be same.",H=!0):Ne.kO.includes(this.newPassword.toLowerCase())?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg=Ne.kO?.reduce((G,Le,Mt)=>Mt{H.next(),H.complete()})}}return(R=N).\u0275fac=function(H){return new(H||R)(e.Y36(ni.mQ),e.Y36(ki.yh),e.Y36(Ua.eX),e.Y36(Wn.F0),e.Y36(Ga.m))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-auth-settings"]],viewQuery:function(H,G){if(1&H&&e.Gf(ll,5),2&H){let Le;e.iGM(Le=e.CRH())&&(G.form=Le.first)}},decls:15,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"],[1,"my-2"],["fxLayout","column","fxLayoutAlign","start stretch"],[1,"mb-1","settings-container","page-sub-title-container","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[1,"alert","alert-info"],[1,"mt-1","mr-1","alert-icon",3,"icon"],[1,"mt-1"],["mat-flat-button","","color","primary","tabindex","6",1,"mb-2",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1"],["authForm","ngForm"],["fxLayout","row","fxLayoutAlign","start start",1,"mb-2"],["autoFocus","","matInput","","type","password","id","currpassword","name","currpassword","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["matInput","","type","password","id","newpassword","name","newpassword","tabindex","2","required","",3,"ngModel","ngModelChange"],["matInput","","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"]],template:function(H,G){1&H&&(e.TgZ(0,"div",0),e.YNc(1,uc,26,7,"form",1),e._UZ(2,"mat-divider",2),e.TgZ(3,"div",3)(4,"div",4),e._UZ(5,"fa-icon",5),e.TgZ(6,"span",6),e._uU(7,"Two Factor Authentication"),e.qZA()(),e.TgZ(8,"div",7),e._UZ(9,"fa-icon",8),e.TgZ(10,"span"),e._uU(11,"Protect your account from unauthorized access by requiring a second authentication method in addition to your password."),e.qZA()(),e.TgZ(12,"div",9)(13,"button",10),e.NdJ("click",function(){return G.on2FAuth()}),e._uU(14),e.qZA()()()()),2&H&&(e.xp6(1),e.Q6J("ngIf",null==G.appConfig?null:G.appConfig.allowPasswordUpdate),e.xp6(4),e.Q6J("icon",G.faUserClock),e.xp6(4),e.Q6J("icon",G.faInfoCircle),e.xp6(5),e.Oqu(G.appConfig.enable2FA?"Disable 2FA":"Enable 2FA"))},dependencies:[Wi.O5,ti._Y,ti.Fj,ti.JJ,ti.JL,ti.Q7,ti.On,ti.F,La.BN,ji.xw,ji.Wh,ji.yH,bi.lW,hr.Nt,Si.KE,Si.hX,Si.TO,Jr.d,hn.h]}),N})();var uo=m(6338);function Rs(R,N){1&R&&e._UZ(0,"mat-divider",7)}function zc(R,N){if(1&R&&(e.TgZ(0,"div",4)(1,"pre",5),e._uU(2),e.ALo(3,"json"),e.qZA(),e.YNc(4,Rs,1,0,"mat-divider",6),e.qZA()),2&R){const S=e.oxw();e.xp6(2),e.Oqu(e.lcZ(3,2,S.configData)),e.xp6(2),e.Q6J("ngIf",""!==S.configData)}}function Vc(R,N){if(1&R&&(e.TgZ(0,"h2"),e._uU(1),e.qZA()),2&R){const S=e.oxw().$implicit;e.xp6(1),e.Oqu(S)}}function Yo(R,N){if(1&R&&(e.TgZ(0,"h4",14),e._uU(1),e.qZA()),2&R){const S=e.oxw().$implicit;e.xp6(1),e.Oqu(S)}}function fc(R,N){1&R&&e._UZ(0,"mat-divider",15),2&R&&e.Q6J("inset",!0)}function ms(R,N){if(1&R&&(e.TgZ(0,"mat-list-item")(1,"mat-card-subtitle",7),e.YNc(2,Vc,2,1,"h2",10),e.qZA(),e.TgZ(3,"mat-card-subtitle",11),e.YNc(4,Yo,2,1,"h4",12),e.qZA(),e.YNc(5,fc,1,1,"mat-divider",13),e.qZA()),2&R){const S=N.$implicit;e.xp6(2),e.Q6J("ngIf",S.indexOf("[")>=0),e.xp6(2),e.Q6J("ngIf",S.indexOf("[")<0),e.xp6(1),e.Q6J("ngIf",S.indexOf("[")<0)}}function Ca(R,N){if(1&R&&(e.TgZ(0,"div",8)(1,"mat-list"),e.YNc(2,ms,6,3,"mat-list-item",9),e.qZA()()),2&R){const S=e.oxw();e.xp6(2),e.Q6J("ngForOf",S.configData)}}let Xr=(()=>{var R;class N{constructor(H,G,Le){this.store=H,this.rtlEffects=G,this.router=Le,this.configData="",this.fileFormat="INI",this.faCog=Xi.b7W,this.unSubs=[new Fi.x,new Fi.x]}ngOnInit(){this.store.dispatch((0,Rt.Q2)({payload:"bitcoind"})),this.rtlEffects.showLnConfig.pipe((0,sn.R)(this.unSubs[1])).subscribe(H=>{const G=H.data;this.fileFormat=H.format,this.configData=""===G||!G||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==G&&G&&"JSON"===this.fileFormat?G:"":G.split("\n")})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return(R=N).\u0275fac=function(H){return new(H||R)(e.Y36(ki.yh),e.Y36(Ma.V),e.Y36(Wn.F0))},R.\u0275cmp=e.Xpm({type:R,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(H,G){1&H&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,zc,5,4,"div",2),e.YNc(3,Ca,3,1,"div",3),e.qZA()()),2&H&&(e.xp6(2),e.Q6J("ngIf",""!==G.configData&&"JSON"===G.fileFormat),e.xp6(1),e.Q6J("ngIf",""!==G.configData&&("INI"===G.fileFormat||"HOCON"===G.fileFormat)))},dependencies:[Wi.sg,Wi.O5,ji.xw,ji.Wh,ji.yH,Kn.$j,uo.i$,uo.Tg,Jr.d,Wi.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),N})();function ir(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}let s2=(()=>{var R;class N{constructor(H,G,Le){this.dialogRef=H,this.store=G,this.rtlEffects=Le,this.password="",this.isAuthenticated=!1,this.unSubs=[new Fi.x,new Fi.x]}ngOnInit(){this.rtlEffects.isAuthorizedRes.pipe((0,ua.q)(1)).subscribe(H=>{"ERROR"!==H?(this.isAuthenticated=!0,this.store.dispatch((0,Rt.M6)({payload:this.isAuthenticated}))):this.isAuthenticated=!1})}onAuthenticate(){if(!this.password)return!0;this.store.dispatch((0,Rt.QO)({payload:ha(this.password)}))}onClose(){this.store.dispatch((0,Rt.M6)({payload:this.isAuthenticated}))}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return(R=N).\u0275fac=function(H){return new(H||R)(e.Y36(ra.so),e.Y36(ki.yh),e.Y36(Ma.V))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-is-authorized"]],decls:18,vars:2,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","row",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["autoFocus","","matInput","","type","password","id","password","name","password","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","2","type","submit","default","",3,"click"]],template:function(H,G){1&H&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5,"Authenticate with your RTL Password"),e.qZA()(),e.TgZ(6,"button",5),e.NdJ("click",function(){return G.onClose()}),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"form",7)(10,"mat-form-field")(11,"mat-label"),e._uU(12,"Password"),e.qZA(),e.TgZ(13,"input",8),e.NdJ("ngModelChange",function(Mt){return G.password=Mt}),e.qZA(),e.YNc(14,ir,2,0,"mat-error",9),e.qZA(),e.TgZ(15,"div",10)(16,"button",11),e.NdJ("click",function(){return G.onAuthenticate()}),e._uU(17,"Confirm"),e.qZA()()()()()()),2&H&&(e.xp6(13),e.Q6J("ngModel",G.password),e.xp6(1),e.Q6J("ngIf",!G.password))},dependencies:[Wi.O5,ti._Y,ti.Fj,ti.JJ,ti.JL,ti.Q7,ti.On,ti.F,ji.xw,ji.Wh,ji.yH,bi.lW,Kn.dn,Kn.dk,hr.Nt,Si.KE,Si.hX,Si.TO,hn.h]}),N})();const hl=function(){return{initial:!1}};function Bc(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",12),e.NdJ("click",function(){e.CHM(S);const G=e.oxw();return e.KtG(G.activeLink=G.links[2].link)}),e._uU(1),e.qZA()}if(2&R){const S=e.oxw();e.s9C("routerLink",S.links[2].link),e.Q6J("active",S.activeLink===S.links[2].link)("state",e.DdM(4,hl)),e.xp6(1),e.Oqu(S.links[2].name)}}function ul(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",6),e.NdJ("click",function(){e.CHM(S);const G=e.oxw();return e.KtG(G.activeLink=G.links[3].link)}),e._uU(1),e.qZA()}if(2&R){const S=e.oxw();e.s9C("routerLink",S.links[3].link),e.Q6J("active",S.activeLink===S.links[3].link),e.xp6(1),e.Oqu(S.links[3].name)}}function c2(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",13),e.NdJ("click",function(){e.CHM(S);const G=e.oxw();return e.KtG(G.showLnConfigClicked())}),e._uU(1),e.qZA()}if(2&R){const S=e.oxw();e.Q6J("active",S.activeLink===S.links[4].link),e.xp6(1),e.Oqu(S.links[4].name)}}let fo=(()=>{var R;class N{constructor(H,G,Le,Mt){this.store=H,this.router=G,this.rtlEffects=Le,this.activatedRoute=Mt,this.faTools=Xi.CgH,this.showLnConfig=!1,this.lnImplementationStr="",this.links=[{link:"nodesettings",name:"Node Settings"},{link:"pglayout",name:"Page Layout"},{link:"services",name:"Services"},{link:"experimental",name:"Experimental"},{link:"lnconfig",name:this.lnImplementationStr}],this.activeLink="",this.unSubs=[new Fi.x,new Fi.x,new Fi.x,new Fi.x,new Fi.x]}ngOnInit(){const H=this.links.find(G=>this.router.url.includes(G.link));this.activeLink=H?H.link:this.links[0].link,this.router.events.pipe((0,sn.R)(this.unSubs[0]),(0,Ya.h)(G=>G instanceof Wn.Av)).subscribe({next:G=>{const Le=this.links.find(Mt=>G.urlAfterRedirects.includes(Mt.link));this.activeLink=Le?Le.link:this.links[0].link}}),this.store.select(xa.Yj).pipe((0,sn.R)(this.unSubs[1])).subscribe(G=>{this.appConfig=G}),this.store.select(xa.dT).pipe((0,sn.R)(this.unSubs[2])).subscribe(G=>{switch(this.showLnConfig=!1,this.selNode=G,this.selNode.lnImplementation?.toUpperCase()){case"CLN":this.lnImplementationStr="Core Lightning Config";break;case"ECL":this.lnImplementationStr="Eclair Config";break;default:this.lnImplementationStr="LND Config"}this.selNode.authentication&&this.selNode.authentication.configPath&&""!==this.selNode.authentication.configPath.trim()&&(this.links[4].name=this.lnImplementationStr,this.showLnConfig=!0)})}showLnConfigClicked(){this.appConfig.sso.rtlSSO?(this.activeLink=this.links[4].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute})):(this.store.dispatch((0,Rt.qR)({payload:{maxWidth:"50rem",data:{component:s2}}})),this.rtlEffects.closeAlert.pipe((0,sn.R)(this.unSubs[3])).subscribe(H=>{H&&(this.activeLink=this.links[4].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute}))}))}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return(R=N).\u0275fac=function(H){return new(H||R)(e.Y36(ki.yh),e.Y36(Wn.F0),e.Y36(Ma.V),e.Y36(Wn.gz))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-node-config"]],decls:19,vars:11,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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["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"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","click",4,"ngIf"],["tabPanel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper","mb-2"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","click"]],template:function(H,G){if(1&H&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Node Config"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5)(8,"div",6),e.NdJ("click",function(){return G.activeLink=G.links[0].link}),e._uU(9),e.qZA(),e.TgZ(10,"div",6),e.NdJ("click",function(){return G.activeLink=G.links[1].link}),e._uU(11),e.qZA(),e.YNc(12,Bc,2,5,"div",7),e.YNc(13,ul,2,3,"div",8),e.YNc(14,c2,2,2,"div",9),e.qZA(),e._UZ(15,"mat-tab-nav-panel",null,10),e.TgZ(17,"div",11),e._UZ(18,"router-outlet"),e.qZA()()()()),2&H){const Le=e.MAs(16);e.xp6(1),e.Q6J("icon",G.faTools),e.xp6(6),e.Q6J("tabPanel",Le),e.xp6(1),e.s9C("routerLink",G.links[0].link),e.Q6J("active",G.activeLink===G.links[0].link),e.xp6(1),e.Oqu(G.links[0].name),e.xp6(1),e.s9C("routerLink",G.links[1].link),e.Q6J("active",G.activeLink===G.links[1].link),e.xp6(1),e.Oqu(G.links[1].name),e.xp6(1),e.Q6J("ngIf","LND"===(null==G.selNode||null==G.selNode.lnImplementation?null:G.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf","CLN"===(null==G.selNode||null==G.selNode.lnImplementation?null:G.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf",G.showLnConfig)}},dependencies:[Wi.O5,La.BN,ji.xw,ji.Wh,ji.yH,Kn.a8,Kn.dn,ze.BU,ze.sW,ze.Nj,Wn.lC,Wn.rH]}),N})();function B1(R,N){1&R&&e._UZ(0,"mat-divider",7)}function U1(R,N){if(1&R&&(e.TgZ(0,"div",4)(1,"pre",5),e._uU(2),e.ALo(3,"json"),e.qZA(),e.YNc(4,B1,1,0,"mat-divider",6),e.qZA()),2&R){const S=e.oxw();e.xp6(2),e.Oqu(e.lcZ(3,2,S.configData)),e.xp6(2),e.Q6J("ngIf",""!==S.configData)}}function nr(R,N){if(1&R&&(e.TgZ(0,"h2"),e._uU(1),e.qZA()),2&R){const S=e.oxw().$implicit;e.xp6(1),e.Oqu(S)}}function Uc(R,N){if(1&R&&(e.TgZ(0,"h4",14),e._uU(1),e.qZA()),2&R){const S=e.oxw().$implicit;e.xp6(1),e.Oqu(S)}}function jo(R,N){1&R&&e._UZ(0,"mat-divider",15),2&R&&e.Q6J("inset",!0)}function G1(R,N){if(1&R&&(e.TgZ(0,"mat-list-item")(1,"mat-card-subtitle",7),e.YNc(2,nr,2,1,"h2",10),e.qZA(),e.TgZ(3,"mat-card-subtitle",11),e.YNc(4,Uc,2,1,"h4",12),e.qZA(),e.YNc(5,jo,1,1,"mat-divider",13),e.qZA()),2&R){const S=N.$implicit;e.xp6(2),e.Q6J("ngIf",S.indexOf("[")>=0),e.xp6(2),e.Q6J("ngIf",S.indexOf("[")<0),e.xp6(1),e.Q6J("ngIf",S.indexOf("[")<0)}}function So(R,N){if(1&R&&(e.TgZ(0,"div",8)(1,"mat-list"),e.YNc(2,G1,6,3,"mat-list-item",9),e.qZA()()),2&R){const S=e.oxw();e.xp6(2),e.Q6J("ngForOf",S.configData)}}let ve=(()=>{var R;class N{constructor(H,G,Le){this.store=H,this.rtlEffects=G,this.router=Le,this.configData="",this.fileFormat="INI",this.faCog=Xi.b7W,this.unSubs=[new Fi.x,new Fi.x]}ngOnInit(){this.store.dispatch((0,Rt.Q2)({payload:"ln"})),this.rtlEffects.showLnConfig.pipe((0,sn.R)(this.unSubs[1])).subscribe(H=>{const G=H.data;this.fileFormat=H.format,this.configData=""===G||!G||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==G&&G&&"JSON"===this.fileFormat?G:"":G.split("\n")})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return(R=N).\u0275fac=function(H){return new(H||R)(e.Y36(ki.yh),e.Y36(Ma.V),e.Y36(Wn.F0))},R.\u0275cmp=e.Xpm({type:R,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(H,G){1&H&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,U1,5,4,"div",2),e.YNc(3,So,3,1,"div",3),e.qZA()()),2&H&&(e.xp6(2),e.Q6J("ngIf",""!==G.configData&&"JSON"===G.fileFormat),e.xp6(1),e.Q6J("ngIf",""!==G.configData&&("INI"===G.fileFormat||"HOCON"===G.fileFormat)))},dependencies:[Wi.sg,Wi.O5,ji.xw,ji.Wh,ji.yH,Kn.$j,uo.i$,uo.Tg,Jr.d,Wi.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),N})();var we=m(2994),ae=m(429),Be=m(6523),ut=m(62),Lt=m(5829),Ht=m(752),ui=m(1948),Di=m(455);function rn(R,N){if(1&R&&(e.TgZ(0,"mat-option",35),e._uU(1),e.qZA()),2&R){const S=N.$implicit;e.Q6J("value",S.id),e.xp6(1),e.hij(" ",S.id," ")}}function an(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Currency unit is required."),e.qZA())}function fa(R,N){if(1&R&&(e.TgZ(0,"mat-radio-button",36),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&R){const S=N.$implicit,H=e.oxw();e.Q6J("value",S)("checked",H.selNode.settings.userPersona===S),e.xp6(1),e.hij(" ",e.lcZ(2,3,S)," ")}}function ar(R,N){if(1&R&&(e.TgZ(0,"mat-radio-button",37),e._uU(1),e.qZA()),2&R){const S=N.$implicit;e.Q6J("value",S),e.xp6(1),e.hij("",S.name," ")}}const ps=function(R){return{skin:!0,"selected-color":R}};function is(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"span",38)(1,"div",39),e.NdJ("click",function(){const Le=e.CHM(S).$implicit,Mt=e.oxw();return e.KtG(Mt.changeThemeColor(Le.id))}),e.ALo(2,"lowercase"),e.qZA(),e._uU(3),e.qZA()}if(2&R){const S=N.$implicit,H=e.oxw();e.xp6(1),e.Tol(e.lcZ(2,4,S.id)),e.Q6J("ngClass",e.VKq(6,ps,H.selectedThemeColor===S.id)),e.xp6(2),e.hij(" ",S.name," ")}}let Ko=(()=>{var R;class N{constructor(H,G,Le){this.logger=H,this.commonService=G,this.store=Le,this.faExclamationTriangle=Xi.eHv,this.faMoneyBillAlt=Xi.co4,this.faPaintBrush=Xi.XsY,this.faInfoCircle=Xi.sqG,this.faEyeSlash=Xi.Aq,this.userPersonas=[Ne.ol.OPERATOR,Ne.ol.MERCHANT],this.currencyUnits=Ne.Er,this.themeModes=Ne.wZ.modes,this.themeColors=Ne.wZ.themes,this.selectedThemeMode=Ne.wZ.modes[0],this.selectedThemeColor=Ne.wZ.themes[0].id,this.currencyUnit="BTC",this.smallerCurrencyUnit="Sats",this.showSettingOption=!0,this.screenSize="",this.screenSizeEnum=Ne.cu,this.unSubs=[new Fi.x,new Fi.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(xa.dT).pipe((0,sn.R)(this.unSubs[0])).subscribe(H=>{this.selNode=H,this.selectedThemeMode=this.themeModes.find(G=>this.selNode.settings.themeMode===G.id)||this.themeModes[0],this.selectedThemeColor=this.selNode.settings.themeColor,this.selNode.settings.fiatConversion||(this.selNode.settings.currencyUnit=""),this.previousSettings=JSON.parse(JSON.stringify(this.selNode.settings)),this.logger.info(H)})}onCurrencyChange(H){this.selNode.settings.currencyUnits=[...Ne.uA,H.value],this.store.dispatch((0,Be.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:H.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,ae.Mf)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:H.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,we.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:H.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}}))}toggleSettings(H,G){this.selNode.settings[H]=!this.selNode.settings[H]}changeThemeColor(H){this.selectedThemeColor=H,this.selNode.settings.themeColor=H}chooseThemeMode(){this.selNode.settings.themeMode=this.selectedThemeMode.id}onUpdateSettings(){if(this.selNode.settings.fiatConversion&&!this.selNode.settings.currencyUnit)return!0;this.logger.info(this.selNode.settings),this.store.dispatch((0,Rt.zQ)({payload:{uiMessage:Ne.m6.UPDATE_NODE_SETTINGS,settings:this.selNode.settings}})),this.store.dispatch((0,Be.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,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,ae.Mf)({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,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,we.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,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}}))}onResetSettings(){const H=this.selNode.index||-1;this.selNode.settings=this.previousSettings,this.selectedThemeMode=this.themeModes.find(G=>G.id===this.previousSettings.themeMode)||this.themeModes[0],this.selectedThemeColor=this.previousSettings.themeColor,this.store.dispatch((0,Rt.fk)({payload:{uiMessage:Ne.m6.NO_SPINNER,prevLnNodeIndex:+H,currentLnNode:this.selNode,isInitialSetup:!0}}))}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(),H.complete()})}}return(R=N).\u0275fac=function(H){return new(H||R)(e.Y36(ni.mQ),e.Y36(ut.v),e.Y36(ki.yh))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-node-settings"]],decls:78,vars:18,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",3,"perfectScrollbar"],["fxLayout","column","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container"],["form","ngForm"],["displayMode","flat","multi","false"],["fxLayout","column",1,"flat-expansion-panel","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","row","fxFlex","100",1,"alert","alert-info","mb-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","row wrap","fxLayoutAlign","start center"],["tabindex","1","color","primary","name","unannouncedChannels",3,"ngModel","ngModelChange","change"],["fxFlex","100",1,"alert","alert-warn"],["href","https://www.blockchain.com/api/exchange_rates_api","target","blank"],["tabindex","2","color","primary","name","fiatConversion",1,"mr-2",3,"ngModel","ngModelChange","change"],["autoFocus","","tabindex","3","name","currencyUnit",3,"disabled","required","ngModel","ngModelChange","selectionChange"],["currencyUnit","ngModel"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","row","fxFlex","100",1,"alert","alert-info","mb-0"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100"],["color","primary","tabindex","1","name","userPersona",1,"radio-group",3,"ngModel","ngModelChange"],["class","radio-text mr-4",3,"value","checked",4,"ngFor","ngForOf"],[1,"mt-1"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start"],["color","primary","name","themeMode",1,"radio-group",3,"ngModel","ngModelChange","change"],["tabindex","5","class","radio-text mr-4",3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxLayout.gt-xs","row","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-xs","start stretch"],["fxLayout","column","fxFlex.gt-xs","50","fxFlex.gt-md","40","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","row","class","theme-name",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","start start",1,"mt-1"],["fxLayout","row"],["mat-stroked-button","","color","primary","tabindex","10",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","11",3,"click"],[3,"value"],[1,"radio-text","mr-4",3,"value","checked"],["tabindex","5",1,"radio-text","mr-4",3,"value"],["fxLayout","row",1,"theme-name"],["tabindex","9",3,"ngClass","click"]],template:function(H,G){1&H&&(e.TgZ(0,"div",0)(1,"form",1,2)(3,"mat-accordion",3)(4,"mat-expansion-panel",4)(5,"mat-expansion-panel-header")(6,"mat-panel-title"),e._UZ(7,"fa-icon",5),e.TgZ(8,"span",6),e._uU(9,"Open Unannounced Channels"),e.qZA()()(),e.TgZ(10,"div",7)(11,"div",8),e._UZ(12,"fa-icon",9),e.TgZ(13,"span"),e._uU(14,"Use this control to toggle setting which defaults to opening unannounced channels only."),e.qZA()(),e.TgZ(15,"div",10)(16,"mat-slide-toggle",11),e.NdJ("ngModelChange",function(Mt){return G.selNode.settings.unannouncedChannels=Mt})("change",function(){return!G.selNode.settings.unannouncedChannels}),e._uU(17,"Open Unannounced Channels"),e.qZA()()()(),e.TgZ(18,"mat-expansion-panel",4)(19,"mat-expansion-panel-header")(20,"mat-panel-title"),e._UZ(21,"fa-icon",5),e.TgZ(22,"span",6),e._uU(23,"Balance Display"),e.qZA()()(),e.TgZ(24,"div",7)(25,"div",12),e._UZ(26,"fa-icon",9),e.TgZ(27,"span"),e._uU(28,"Fiat conversion calls "),e.TgZ(29,"strong")(30,"a",13),e._uU(31,"Blockchain.com"),e.qZA()(),e._uU(32," API to get conversion rates."),e.qZA()(),e.TgZ(33,"div",10)(34,"mat-slide-toggle",14),e.NdJ("ngModelChange",function(Mt){return G.selNode.settings.fiatConversion=Mt})("change",function(){return!G.selNode.settings.currencyUnit}),e._uU(35,"Enable Fiat Conversion"),e.qZA(),e.TgZ(36,"mat-form-field")(37,"mat-label"),e._uU(38,"Fiat Currency"),e.qZA(),e.TgZ(39,"mat-select",15,16),e.NdJ("ngModelChange",function(Mt){return G.selNode.settings.currencyUnit=Mt})("selectionChange",function(Mt){return G.onCurrencyChange(Mt)}),e.YNc(41,rn,2,2,"mat-option",17),e.qZA(),e.YNc(42,an,2,0,"mat-error",18),e.qZA()()()(),e.TgZ(43,"mat-expansion-panel",4)(44,"mat-expansion-panel-header")(45,"mat-panel-title"),e._UZ(46,"fa-icon",5),e.TgZ(47,"span",6),e._uU(48,"Customization"),e.qZA()()(),e.TgZ(49,"div",7)(50,"div",19),e._UZ(51,"fa-icon",9),e.TgZ(52,"span"),e._uU(53,"Dashboard layout will be tailored based on the role selected to better serve its needs."),e.qZA()(),e.TgZ(54,"div",20)(55,"h4"),e._uU(56,"Dashboard Layout"),e.qZA(),e.TgZ(57,"mat-radio-group",21),e.NdJ("ngModelChange",function(Mt){return G.selNode.settings.userPersona=Mt}),e.YNc(58,fa,3,5,"mat-radio-button",22),e.qZA()(),e._UZ(59,"mat-divider",23),e.TgZ(60,"div",24)(61,"h4"),e._uU(62,"Mode"),e.qZA(),e.TgZ(63,"mat-radio-group",25),e.NdJ("ngModelChange",function(Mt){return G.selectedThemeMode=Mt})("change",function(){return G.chooseThemeMode()}),e.YNc(64,ar,2,2,"mat-radio-button",26),e.qZA()(),e._UZ(65,"mat-divider",23),e.TgZ(66,"div",27)(67,"div",28)(68,"h4"),e._uU(69,"Themes"),e.qZA(),e.TgZ(70,"div",29),e.YNc(71,is,4,8,"span",30),e.qZA()()()()()()(),e.TgZ(72,"div",31)(73,"div",32)(74,"button",33),e.NdJ("click",function(){return G.onResetSettings()}),e._uU(75,"Reset"),e.qZA(),e.TgZ(76,"button",34),e.NdJ("click",function(){return G.onUpdateSettings()}),e._uU(77,"Update"),e.qZA()()()()),2&H&&(e.xp6(7),e.Q6J("icon",G.faEyeSlash),e.xp6(5),e.Q6J("icon",G.faInfoCircle),e.xp6(4),e.Q6J("ngModel",G.selNode.settings.unannouncedChannels),e.xp6(5),e.Q6J("icon",G.faMoneyBillAlt),e.xp6(5),e.Q6J("icon",G.faExclamationTriangle),e.xp6(8),e.Q6J("ngModel",G.selNode.settings.fiatConversion),e.xp6(5),e.Q6J("disabled",!G.selNode.settings.fiatConversion)("required",G.selNode.settings.fiatConversion)("ngModel",G.selNode.settings.currencyUnit),e.xp6(2),e.Q6J("ngForOf",G.currencyUnits),e.xp6(1),e.Q6J("ngIf",G.selNode.settings.fiatConversion&&!G.selNode.settings.currencyUnit),e.xp6(4),e.Q6J("icon",G.faPaintBrush),e.xp6(5),e.Q6J("icon",G.faInfoCircle),e.xp6(6),e.Q6J("ngModel",G.selNode.settings.userPersona),e.xp6(1),e.Q6J("ngForOf",G.userPersonas),e.xp6(5),e.Q6J("ngModel",G.selectedThemeMode),e.xp6(1),e.Q6J("ngForOf",G.themeModes),e.xp6(7),e.Q6J("ngForOf",G.themeColors))},dependencies:[Wi.mk,Wi.sg,Wi.O5,ti._Y,ti.JJ,ti.JL,ti.Q7,ti.On,ti.F,La.BN,ji.xw,ji.Wh,ji.yH,Lt.oO,bi.lW,Ht.pp,Ht.ib,Ht.yz,Ht.yK,Si.KE,Si.hX,Si.TO,Jr.d,ui.VQ,ui.U0,Pi.gD,qi.ey,Di.Rr,tn.$V,hn.h,Wi.i8,Wi.rS],styles:["h4[_ngcontent-%COMP%]{margin:.75rem 0 .5rem}.theme-name[_ngcontent-%COMP%]{min-width:10rem}@media only screen and (max-width: 37.5em){.theme-name[_ngcontent-%COMP%]{min-width:unset}}.skin[_ngcontent-%COMP%]{width:1.25rem;height:1.25rem;border-radius:50%;cursor:pointer;margin-right:.5rem}.skin.selected-color[_ngcontent-%COMP%]{width:1rem;height:1rem;border:2px solid}.skin.purple[_ngcontent-%COMP%]{background-color:#5e4ea5}.skin.indigo[_ngcontent-%COMP%]{background-color:#3f51b5}.skin.teal[_ngcontent-%COMP%]{background-color:#00695c}.skin.pink[_ngcontent-%COMP%]{background-color:#d81b60}.skin.yellow[_ngcontent-%COMP%]{background-color:#a1842c}"]}),N})();var mo=m(1365),Gc=m(9828),gs=m(6529),Eo=m(2501),ur=m(7392),To=m(266),$r=m(9445);const fl=function(R){return{error:R}};function Ns(R,N){if(1&R&&e.GkF(0,14),2&R){const S=e.oxw(),H=e.MAs(18);e.Q6J("ngTemplateOutlet",H)("ngTemplateOutletContext",e.VKq(2,fl,S.errorMessage))}}function W1(R,N){if(1&R&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&R){const S=N.$implicit;e.Q6J("value",S),e.xp6(1),e.hij(" ",S," ")}}function Yl(R,N){if(1&R&&(e.TgZ(0,"mat-option",31),e._uU(1),e.ALo(2,"camelCaseWithSpaces"),e.ALo(3,"camelcaseWithReplace"),e.qZA()),2&R){const S=N.$implicit,H=e.oxw(3);e.Q6J("value",S),e.xp6(1),e.hij(" ","ECL"===H.selNode.lnImplementation?e.lcZ(2,2,S):e.xi3(3,4,S,"_")," ")}}function mc(R,N){if(1&R&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&R){const S=N.$implicit;e.Q6J("value",S),e.xp6(1),e.hij(" ","desc"===S?"Descending":"Ascending"," ")}}function Ka(R,N){if(1&R&&(e.TgZ(0,"mat-option",34),e._uU(1),e.ALo(2,"camelCaseWithSpaces"),e.ALo(3,"camelcaseWithReplace"),e.qZA()),2&R){const S=N.$implicit,H=e.oxw(2).$implicit,G=e.oxw(2);e.Q6J("value",S.column)("disabled",H.columnSelection.length<=2&&H.columnSelection.includes(S.column)),e.xp6(1),e.hij(" ",S.label?S.label:"ECL"===G.selNode.lnImplementation?e.lcZ(2,3,S.column):e.xi3(3,5,S.column,"_")," ")}}function ml(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"mat-form-field",32)(1,"mat-label"),e._uU(2,"Column selection (Desktop Resolution)"),e.qZA(),e.TgZ(3,"mat-select",33),e.NdJ("ngModelChange",function(G){e.CHM(S);const Le=e.oxw().$implicit;return e.KtG(Le.columnSelection=G)})("selectionChange",function(){e.CHM(S);const G=e.oxw().$implicit,Le=e.oxw(2);return e.KtG(Le.oncolumnSelectionChange(G))}),e.YNc(4,Ka,4,8,"mat-option",28),e.qZA()()}if(2&R){const S=e.oxw().$implicit,H=e.oxw().$implicit,G=e.oxw();e.xp6(3),e.hYB("name","",H.pageId,"",S.tableId,"-columns-selection"),e.Q6J("ngModel",S.columnSelection),e.xp6(1),e.Q6J("ngForOf",G.nodePageDefs[H.pageId][S.tableId].allowedColumns)}}function L0(R,N){if(1&R&&(e.TgZ(0,"mat-option",34),e._uU(1),e.ALo(2,"camelCaseWithSpaces"),e.ALo(3,"camelcaseWithReplace"),e.qZA()),2&R){const S=N.$implicit,H=e.oxw().$implicit,G=e.oxw(2);e.Q6J("value",S.column)("disabled",H.columnSelectionSM.length<=1&&H.columnSelectionSM.includes(S.column)||H.columnSelectionSM.length>=3&&!H.columnSelectionSM.includes(S.column)),e.xp6(1),e.hij(" ",S.label?S.label:"ECL"===G.selNode.lnImplementation?e.lcZ(2,3,S.column):e.xi3(3,5,S.column,"_")," ")}}const Wc=function(R){return{"ml-minus-1":R}};function Zc(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",17)(1,"div",18)(2,"span",19),e._uU(3),e.ALo(4,"camelcaseWithReplace"),e.qZA(),e.TgZ(5,"mat-form-field",20)(6,"mat-label"),e._uU(7,"Records/Page"),e.qZA(),e.TgZ(8,"mat-select",21),e.NdJ("ngModelChange",function(G){const Mt=e.CHM(S).$implicit;return e.KtG(Mt.recordsPerPage=G)}),e.YNc(9,W1,2,2,"mat-option",22),e.qZA()(),e.TgZ(10,"mat-form-field",20)(11,"mat-label"),e._uU(12,"Sort By"),e.qZA(),e.TgZ(13,"mat-select",23),e.NdJ("ngModelChange",function(G){const Mt=e.CHM(S).$implicit;return e.KtG(Mt.sortBy=G)}),e.YNc(14,Yl,4,7,"mat-option",22),e.qZA()(),e.TgZ(15,"mat-form-field",20)(16,"mat-label"),e._uU(17,"Sort Order"),e.qZA(),e.TgZ(18,"mat-select",24),e.NdJ("ngModelChange",function(G){const Mt=e.CHM(S).$implicit;return e.KtG(Mt.sortOrder=G)}),e.YNc(19,mc,2,2,"mat-option",22),e.qZA()(),e.YNc(20,ml,5,4,"mat-form-field",25),e.TgZ(21,"mat-form-field",26)(22,"mat-label"),e._uU(23,"Column Selection (Mobile Resolution)"),e.qZA(),e.TgZ(24,"mat-select",27),e.NdJ("ngModelChange",function(G){const Mt=e.CHM(S).$implicit;return e.KtG(Mt.columnSelectionSM=G)}),e.YNc(25,L0,4,8,"mat-option",28),e.qZA()(),e.TgZ(26,"button",29),e.NdJ("click",function(){const Le=e.CHM(S).$implicit,Mt=e.oxw().$implicit,Xt=e.oxw();return e.KtG(Xt.onTableReset(Mt.pageId,Le))}),e.TgZ(27,"mat-icon",30),e._uU(28,"restore"),e.qZA()()()()}if(2&R){const S=N.$implicit,H=e.oxw().$implicit,G=e.oxw();e.xp6(3),e.hij("",e.xi3(4,20,S.tableId,"_"),":"),e.xp6(5),e.hYB("name","",H.pageId,"",S.tableId,"-page-size-options"),e.Q6J("disabled",G.nodePageDefs[H.pageId][S.tableId].disablePageSize)("ngModel",S.recordsPerPage),e.xp6(1),e.Q6J("ngForOf",G.pageSizeOptions),e.xp6(4),e.hYB("name","",H.pageId,"",S.tableId,"-sort-by"),e.Q6J("ngModel",S.sortBy),e.xp6(1),e.Q6J("ngForOf",S.columnSelection),e.xp6(4),e.hYB("name","",H.pageId,"",S.tableId,"-sort-order"),e.Q6J("ngModel",S.sortOrder),e.xp6(1),e.Q6J("ngForOf",G.sortOrders),e.xp6(1),e.Q6J("ngIf",G.screenSize!==G.screenSizeEnum.XS),e.xp6(4),e.hYB("name","",H.pageId,"",S.tableId,"-columns-selection-sm"),e.Q6J("ngModel",S.columnSelectionSM),e.xp6(1),e.Q6J("ngForOf",G.nodePageDefs[H.pageId][S.tableId].allowedColumns),e.xp6(2),e.Q6J("ngClass",e.VKq(23,Wc,G.screenSize===G.screenSizeEnum.XS||G.screenSize===G.screenSizeEnum.SM))}}function pc(R,N){if(1&R&&e.GkF(0,14),2&R){const S=e.oxw(2),H=e.MAs(18);e.Q6J("ngTemplateOutlet",H)("ngTemplateOutletContext",e.VKq(2,fl,S.errorMessage))}}const Cu=function(R){return{"error-border":R}};function D0(R,N){if(1&R&&(e.TgZ(0,"mat-expansion-panel",15)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),e._uU(3),e.ALo(4,"camelcaseWithReplace"),e.qZA()(),e.YNc(5,Zc,29,25,"div",16),e.YNc(6,pc,1,4,"ng-container",6),e.qZA()),2&R){const S=N.$implicit,H=e.oxw();e.Q6J("ngClass",e.VKq(7,Cu,(null==H.errorMessage?null:H.errorMessage.page)===S.pageId)),e.xp6(3),e.Oqu(e.xi3(4,4,S.pageId,"_")),e.xp6(2),e.Q6J("ngForOf",S.tables),e.xp6(1),e.Q6J("ngIf",H.errorMessage&&(null==H.errorMessage?null:H.errorMessage.page)===S.pageId)}}function I0(R,N){if(1&R&&(e.TgZ(0,"mat-panel-title"),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&R){const S=e.oxw().error;e.xp6(1),e.hij("Page ",e.lcZ(2,1,S.page),"")}}function Z1(R,N){if(1&R&&(e.TgZ(0,"mat-list-item")(1,"mat-icon",39),e._uU(2,"close"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.qZA()()),2&R){const S=e.oxw().error;e.xp6(4),e.Oqu(S.message)}}function z3(R,N){if(1&R&&(e.TgZ(0,"mat-list-item")(1,"mat-icon",39),e._uU(2,"close"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"titlecase"),e.qZA()()),2&R){const S=N.$implicit;e.xp6(4),e.AsE("Table ",e.lcZ(5,2,S.table)," ",S.message,"")}}const l2=function(R){return{"error-border p-2":R}};function wu(R,N){if(1&R&&(e.TgZ(0,"div",35),e.YNc(1,I0,3,3,"mat-panel-title",36),e.TgZ(2,"mat-list",37),e.YNc(3,Z1,5,1,"mat-list-item",36),e.YNc(4,z3,6,4,"mat-list-item",38),e.qZA()()),2&R){const S=N.error,H=e.oxw();e.Q6J("ngClass",e.VKq(4,l2,"unknown"===H.errorMessage.page)),e.xp6(1),e.Q6J("ngIf","unknown"===H.errorMessage.page),e.xp6(2),e.Q6J("ngIf",S.message),e.xp6(1),e.Q6J("ngForOf",S.tables)}}let Y1=(()=>{var R;class N{constructor(H,G,Le,Mt){this.logger=H,this.commonService=G,this.store=Le,this.actions=Mt,this.faPenRuler=Xi.SoD,this.faExclamationTriangle=Xi.eHv,this.screenSize="",this.screenSizeEnum=Ne.cu,this.pageSizeOptions=Ne.TJ,this.pageSettings=[],this.initialPageSettings=[],this.defaultSettings=[],this.nodePageDefs={},this.sortOrders=Ne.zZ,this.apiCallStatus=null,this.apiCallStatusEnum=Ne.Bn,this.errorMessage=null,this.unSubs=[new Fi.x,new Fi.x,new Fi.x,new Fi.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(xa.dT).pipe((0,sn.R)(this.unSubs[0])).subscribe(H=>{switch(this.selNode=H,this.logger.info(this.selNode),this.selNode.lnImplementation){case"CLN":this.initialPageSettings=Object.assign([],Ne.gG),this.defaultSettings=Object.assign([],Ne.gG),this.nodePageDefs=Ne.At,this.store.select(Gc.AS).pipe((0,sn.R)(this.unSubs[1]),(0,mo.M)(this.store.select(Gc.lw))).subscribe(([G,Le])=>{const Mt=JSON.parse(JSON.stringify(G.pageSettings));if(this.errorMessage=null,this.apiCallStatus=G.apiCallStatus,this.apiCallStatus.status===Ne.Bn.ERROR)this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=Mt,this.initialPageSettings=Mt;else{if(!Le?.enableOffers){const Xt=Mt.find(Zi=>"transactions"===Zi.pageId),oi=Xt?.tables.findIndex(Zi=>"offers"===Zi.tableId),Ci=Xt?.tables.findIndex(Zi=>"offer_bookmarks"===Zi.tableId);oi>-1&&Xt?.tables.splice(oi,1),Ci>-1&&Xt?.tables.splice(Ci,1)}if(!Le?.enablePeerswap){const Xt=Mt.findIndex(oi=>"peerswap"===oi.pageId);Xt>-1&&Mt.splice(Xt,1)}this.pageSettings=Mt,this.initialPageSettings=Mt}this.logger.info(Mt)}),this.actions.pipe((0,sn.R)(this.unSubs[2]),(0,Ya.h)(G=>G.type===Ne.AB.UPDATE_API_CALL_STATUS_CLN||G.type===Ne.AB.SAVE_PAGE_SETTINGS_CLN)).subscribe(G=>{G.type===Ne.AB.UPDATE_API_CALL_STATUS_CLN&&G.payload.status===Ne.Bn.ERROR&&"SavePageSettings"===G.payload.action&&(this.errorMessage=JSON.parse(G.payload.message))});break;case"ECL":this.initialPageSettings=Object.assign([],Ne.c3),this.defaultSettings=Object.assign([],Ne.c3),this.nodePageDefs=Ne.Xk,this.store.select(Eo.nF).pipe((0,sn.R)(this.unSubs[1]),(0,mo.M)(this.store.select(Eo.LR))).subscribe(([G,Le])=>{const Mt=JSON.parse(JSON.stringify(G.pageSettings));this.errorMessage=null,this.apiCallStatus=G.apiCallStatus,this.apiCallStatus.status===Ne.Bn.ERROR?(this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=Mt,this.initialPageSettings=Mt):(this.pageSettings=Mt,this.initialPageSettings=Mt),this.logger.info(Mt)}),this.actions.pipe((0,sn.R)(this.unSubs[2]),(0,Ya.h)(G=>G.type===Ne.lr.UPDATE_API_CALL_STATUS_ECL||G.type===Ne.lr.SAVE_PAGE_SETTINGS_ECL)).subscribe(G=>{G.type===Ne.lr.UPDATE_API_CALL_STATUS_ECL&&G.payload.status===Ne.Bn.ERROR&&"SavePageSettings"===G.payload.action&&(this.errorMessage=JSON.parse(G.payload.message))});break;default:this.initialPageSettings=Object.assign([],Ne.gK),this.defaultSettings=Object.assign([],Ne.gK),this.nodePageDefs=Ne.hG,this.store.select(gs.Pr).pipe((0,sn.R)(this.unSubs[1]),(0,mo.M)(this.store.select(gs.$k))).subscribe(([G,Le])=>{const Mt=JSON.parse(JSON.stringify(G.pageSettings));if(this.errorMessage=null,this.apiCallStatus=G.apiCallStatus,this.apiCallStatus.status===Ne.Bn.ERROR)this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=Mt,this.initialPageSettings=Mt;else{if(!Le?.swapServerUrl||""===Le.swapServerUrl.trim()){const Xt=Mt.findIndex(oi=>"loop"===oi.pageId);Xt>-1&&Mt.splice(Xt,1)}if(!Le?.boltzServerUrl||""===Le.boltzServerUrl.trim()){const Xt=Mt.findIndex(oi=>"boltz"===oi.pageId);Xt>-1&&Mt.splice(Xt,1)}if(!Le?.enablePeerswap){const Xt=Mt.findIndex(oi=>"peerswap"===oi.pageId);Xt>-1&&Mt.splice(Xt,1)}this.pageSettings=Mt,this.initialPageSettings=Mt}this.logger.info(Mt)}),this.actions.pipe((0,sn.R)(this.unSubs[2]),(0,Ya.h)(G=>G.type===Ne.uR.UPDATE_API_CALL_STATUS_LND||G.type===Ne.uR.SAVE_PAGE_SETTINGS_LND)).subscribe(G=>{G.type===Ne.uR.UPDATE_API_CALL_STATUS_LND&&G.payload.status===Ne.Bn.ERROR&&"SavePageSettings"===G.payload.action&&(this.errorMessage=JSON.parse(G.payload.message))})}})}oncolumnSelectionChange(H){H.columnSelection&&(!H.sortBy||!H.columnSelection.includes(H.sortBy))&&(H.sortBy=H.columnSelection[0])}onUpdatePageSettings(){if(this.pageSettings.reduce((H,G)=>H||G.tables.reduce((Le,Mt)=>!(Mt.recordsPerPage&&Mt.sortBy&&Mt.sortOrder&&Mt.columnSelection&&Mt.columnSelection.length>=2),!1),!1))return!0;switch(this.errorMessage="",this.selNode.lnImplementation){case"CLN":this.store.dispatch((0,ae.eF)({payload:this.pageSettings}));break;case"ECL":this.store.dispatch((0,we.eF)({payload:this.pageSettings}));break;default:this.store.dispatch((0,Be.eF)({payload:this.pageSettings}))}}onTableReset(H,G){const Le=this.pageSettings.findIndex(oi=>oi.pageId===H),Mt=this.pageSettings[Le].tables.findIndex(oi=>oi.tableId===G.tableId),Xt=this.defaultSettings.find(oi=>oi.pageId===H)?.tables.find(oi=>oi.tableId===G.tableId)||this.pageSettings.find(oi=>oi.pageId===H)?.tables.find(oi=>oi.tableId===G.tableId);this.pageSettings[Le].tables.splice(Mt,1,Xt)}onResetPageSettings(H){"current"===H?(this.errorMessage=null,this.pageSettings=JSON.parse(JSON.stringify(this.initialPageSettings))):(this.errorMessage=null,this.pageSettings=JSON.parse(JSON.stringify(this.defaultSettings)))}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(),H.complete()})}}return(R=N).\u0275fac=function(H){return new(H||R)(e.Y36(ni.mQ),e.Y36(ut.v),e.Y36(ki.yh),e.Y36(Ua.eX))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-page-settings"]],decls:19,vars:3,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"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["displayMode","flat","multi","false"],["fxLayout","column","class","flat-expansion-panel mt-1","expanded","false",3,"ngClass",4,"ngFor","ngForOf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","8",1,"mr-1",3,"click"],["mat-stroked-button","","color","primary","tabindex","9",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","10",3,"click"],["errorObjectBlock",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["fxLayout","column","expanded","false",1,"flat-expansion-panel","mt-1",3,"ngClass"],["fxLayout","column","fxLayoutAlign","start stretch","class","padding-gap-x-large table-setting-row",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x-large","table-setting-row"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center"],["fxFlex","10",1,"mb-2"],["fxLayout","column","fxFlex","10"],["tabindex","2","required","",3,"disabled","name","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["tabindex","3","required","",3,"name","ngModel","ngModelChange"],["tabindex","4","required","",3,"name","ngModel","ngModelChange"],["fxFlex","35","matTooltip","Select a minimum of 2 columns",4,"ngIf"],["fxLayout","column","fxFlex","15","matTooltip","Select between 1 and 3 columns"],["tabindex","5","multiple","","required","",3,"name","ngModel","ngModelChange"],[3,"value","disabled",4,"ngFor","ngForOf"],["mat-icon-button","","color","primary","type","button","tabindex","7","matTooltip","Reset to Default",1,"mb-2",3,"click"],["color","primary",3,"ngClass"],[3,"value"],["fxFlex","35","matTooltip","Select a minimum of 2 columns"],["tabindex","6","multiple","","required","",3,"name","ngModel","ngModelChange","selectionChange"],[3,"value","disabled"],[3,"ngClass"],[4,"ngIf"],["role","list"],[4,"ngFor","ngForOf"],[1,"ml-1","icon-small","red"]],template:function(H,G){1&H&&(e.TgZ(0,"div",0)(1,"form",1,2)(3,"div",3),e._UZ(4,"fa-icon",4),e.TgZ(5,"span",5),e._uU(6,"Grid Settings"),e.qZA()(),e.YNc(7,Ns,1,4,"ng-container",6),e.TgZ(8,"mat-accordion",7),e.YNc(9,D0,7,9,"mat-expansion-panel",8),e.qZA()(),e.TgZ(10,"div",9)(11,"button",10),e.NdJ("click",function(){return G.onResetPageSettings("current")}),e._uU(12,"Reset"),e.qZA(),e.TgZ(13,"button",11),e.NdJ("click",function(){return G.onResetPageSettings("default")}),e._uU(14,"Reset to Default"),e.qZA(),e.TgZ(15,"button",12),e.NdJ("click",function(){return G.onUpdatePageSettings()}),e._uU(16,"Save"),e.qZA()()(),e.YNc(17,wu,5,6,"ng-template",null,13,e.W1O)),2&H&&(e.xp6(4),e.Q6J("icon",G.faPenRuler),e.xp6(3),e.Q6J("ngIf",G.errorMessage&&"unknown"===G.errorMessage.page),e.xp6(2),e.Q6J("ngForOf",G.pageSettings))},dependencies:[Wi.mk,Wi.sg,Wi.O5,Wi.tP,ti._Y,ti.JJ,ti.JL,ti.Q7,ti.On,ti.F,La.BN,ji.xw,ji.Wh,ji.yH,Lt.oO,bi.lW,bi.RK,Ht.pp,Ht.ib,Ht.yz,Ht.yK,ur.Hw,Si.KE,Si.hX,uo.i$,uo.Tg,Pi.gD,qi.ey,To.gM,tn.$V,Wi.rS,$r.D3,$r.i1],styles:[".table-setting-row[_ngcontent-%COMP%]:not(:first-child){margin:.5rem 0}"]}),N})();function j1(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){e.CHM(S);const G=e.oxw();return e.KtG(G.activeLink=G.links[0].link)}),e._uU(1),e.qZA()}if(2&R){const S=e.oxw();e.s9C("routerLink",S.links[0].link),e.Q6J("active",S.activeLink===S.links[0].link),e.xp6(1),e.Oqu(S.links[0].name)}}const k0=function(){return{initial:!1}};function O0(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",11),e.NdJ("click",function(){e.CHM(S);const G=e.oxw();return e.KtG(G.activeLink=G.links[1].link)}),e._uU(1),e.qZA()}if(2&R){const S=e.oxw();e.s9C("routerLink",S.links[1].link),e.Q6J("active",S.activeLink===S.links[1].link)("state",e.DdM(4,k0)),e.xp6(1),e.Oqu(S.links[1].name)}}function K1(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){e.CHM(S);const G=e.oxw();return e.KtG(G.activeLink=G.links[2].link)}),e._uU(1),e.qZA()}if(2&R){const S=e.oxw();e.s9C("routerLink",S.links[2].link),e.Q6J("active",S.activeLink===S.links[2].link),e.xp6(1),e.Oqu(S.links[2].name)}}let Mu=(()=>{var R;class N{constructor(H,G,Le){this.store=H,this.router=G,this.activatedRoute=Le,this.faLayerGroup=Xi.Krp,this.links=[{link:"loop",name:"Loop"},{link:"boltz",name:"Boltz"},{link:"peerswap",name:"Peerswap"}],this.activeLink="",this.unSubs=[new Fi.x,new Fi.x,new Fi.x]}ngOnInit(){const H=this.links.find(G=>this.router.url.includes(G.link));this.activeLink=H?H.link:this.links[0].link,this.router.events.pipe((0,sn.R)(this.unSubs[0]),(0,Ya.h)(G=>G instanceof Wn.Av)).subscribe({next:G=>{const Le=this.links.find(Mt=>G.urlAfterRedirects.includes(Mt.link));this.activeLink="CLN"===this.selNode.lnImplementation.toUpperCase()?this.links[2].link:Le?Le.link:this.links[0].link}}),this.store.select(xa.dT).pipe((0,sn.R)(this.unSubs[1])).subscribe(G=>{this.selNode=G,"CLN"===this.selNode.lnImplementation.toUpperCase()&&(this.activeLink=this.links[2].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute}))})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return(R=N).\u0275fac=function(H){return new(H||R)(e.Y36(ki.yh),e.Y36(Wn.F0),e.Y36(Wn.gz))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-services-settings"]],decls:16,vars:5,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-sub-title-container","my-1"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","click",4,"ngIf"],["tabPanel",""],["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"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(H,G){if(1&H&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span",3),e._uU(4,"Services"),e.qZA()()(),e.TgZ(5,"div",4)(6,"mat-card")(7,"mat-card-content",4)(8,"nav",5),e.YNc(9,j1,2,3,"div",6),e.YNc(10,O0,2,5,"div",7),e.YNc(11,K1,2,3,"div",6),e.qZA(),e._UZ(12,"mat-tab-nav-panel",null,8),e.TgZ(14,"div",9),e._UZ(15,"router-outlet"),e.qZA()()()()),2&H){const Le=e.MAs(13);e.xp6(2),e.Q6J("icon",G.faLayerGroup),e.xp6(6),e.Q6J("tabPanel",Le),e.xp6(1),e.Q6J("ngIf","LND"===(null==G.selNode||null==G.selNode.lnImplementation?null:G.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf","LND"===(null==G.selNode||null==G.selNode.lnImplementation?null:G.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf","CLN"===(null==G.selNode||null==G.selNode.lnImplementation?null:G.selNode.lnImplementation.toUpperCase()))}},dependencies:[Wi.O5,La.BN,ji.xw,ji.Wh,ji.yH,Kn.a8,Kn.dn,ze.BU,ze.sW,ze.Nj,Wn.lC,Wn.rH]}),N})();const Qs=["form"];function d2(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Loop server URL is required."),e.qZA())}function P0(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Specify the loop server url with 'https://'."),e.qZA())}function R0(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Loop macaroon path is required."),e.qZA())}let Q1=(()=>{var R;class N{constructor(H,G){this.logger=H,this.store=G,this.faInfoCircle=Xi.sqG,this.enableLoop=!1,this.unSubs=[new Fi.x,new Fi.x]}ngOnInit(){this.store.select(xa.dT).pipe((0,sn.R)(this.unSubs[0])).subscribe(H=>{this.selNode=H,this.enableLoop=!(!H.settings.swapServerUrl||""===H.settings.swapServerUrl.trim()),this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(H)})}onEnableServiceChanged(H){this.enableLoop=H.checked,this.enableLoop||(this.selNode.authentication.swapMacaroonPath="",this.selNode.settings.swapServerUrl="")}onUpdateService(){if(this.selNode.settings.swapServerUrl&&""!==this.selNode.settings.swapServerUrl.trim()&&!this.form.controls.srvrUrl.value.includes("https://")&&this.form.controls.srvrUrl.setErrors({invalid:!0}),this.enableLoop&&(!this.selNode.settings.swapServerUrl||""===this.selNode.settings.swapServerUrl.trim()||!this.selNode.authentication.swapMacaroonPath||""===this.selNode.authentication.swapMacaroonPath.trim()))return!0;this.logger.info(this.selNode),this.store.dispatch((0,Rt.jS)({payload:{uiMessage:Ne.m6.UPDATE_LOOP_SETTINGS,service:Ne.JX.LOOP,settings:{enable:this.enableLoop,serverUrl:this.selNode.settings.swapServerUrl,macaroonPath:this.selNode.authentication.swapMacaroonPath}}})),this.store.dispatch((0,Be.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,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,ae.Mf)({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,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,we.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,unannouncedChannels:this.selNode.unannouncedChannels,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(H=>{H.next(),H.complete()})}}return(R=N).\u0275fac=function(H){return new(H||R)(e.Y36(ni.mQ),e.Y36(ki.yh))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-loop-service-settings"]],viewQuery:function(H,G){if(1&H&&e.Gf(Qs,7),2&H){let Le;e.iGM(Le=e.CRH())&&(G.form=Le.first)}},decls:38,vars:11,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],[1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://github.com/lightninglabs/loop","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","loop",1,"ml-2",3,"ngModel","ngModelChange","change"],[1,"mb-2"],["matInput","","type","text","id","swapServerUrl","name","srvrUrl","tabindex","2",3,"required","disabled","ngModel","ngModelChange"],["srvrUrl","ngModel"],[4,"ngIf"],["matInput","","type","text","id","swapMacaroonPath","name","swapMacaroonPath","tabindex","3",3,"required","disabled","ngModel","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(H,G){if(1&H&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"Please ensure that "),e.TgZ(5,"strong"),e._uU(6,"loopd"),e.qZA(),e._uU(7," is running and accessible to RTL before enabling this service. Click "),e.TgZ(8,"strong")(9,"a",3),e._uU(10,"here"),e.qZA()(),e._uU(11," to learn more about the installation."),e.qZA()(),e.TgZ(12,"form",4,5)(14,"div",6)(15,"mat-slide-toggle",7),e.NdJ("ngModelChange",function(Mt){return G.enableLoop=Mt})("change",function(Mt){return G.onEnableServiceChanged(Mt)}),e._uU(16,"Enable Loop Service"),e.qZA(),e.TgZ(17,"mat-form-field",8)(18,"mat-label"),e._uU(19,"Loop Server URL"),e.qZA(),e.TgZ(20,"input",9,10),e.NdJ("ngModelChange",function(Mt){return G.selNode.settings.swapServerUrl=Mt}),e.qZA(),e.TgZ(22,"mat-hint"),e._uU(23,"Service url for loop server REST APIs, eg. https://127.0.0.1:8081"),e.qZA(),e.YNc(24,d2,2,0,"mat-error",11),e.YNc(25,P0,2,0,"mat-error",11),e.qZA(),e.TgZ(26,"mat-form-field")(27,"mat-label"),e._uU(28,"Loop Macaroon Path"),e.qZA(),e.TgZ(29,"input",12),e.NdJ("ngModelChange",function(Mt){return G.selNode.authentication.swapMacaroonPath=Mt}),e.qZA(),e.TgZ(30,"mat-hint"),e._uU(31,"Path for the folder containing service 'loop.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Local\\\\Loop\\\\testnet"),e.qZA(),e.YNc(32,R0,2,0,"mat-error",11),e.qZA()()(),e.TgZ(33,"div",13)(34,"button",14),e.NdJ("click",function(){return G.onReset()}),e._uU(35,"Reset"),e.qZA(),e.TgZ(36,"button",15),e.NdJ("click",function(){return G.onUpdateService()}),e._uU(37,"Update"),e.qZA()()()),2&H){const Le=e.MAs(21);e.xp6(2),e.Q6J("icon",G.faInfoCircle),e.xp6(13),e.Q6J("ngModel",G.enableLoop),e.xp6(5),e.Q6J("required",G.enableLoop)("disabled",!G.enableLoop)("ngModel",G.selNode.settings.swapServerUrl),e.xp6(4),e.Q6J("ngIf",!G.selNode.settings.swapServerUrl&&G.enableLoop),e.xp6(1),e.Q6J("ngIf",(null==Le||null==Le.errors?null:Le.errors.invalid)&&G.enableLoop),e.xp6(4),e.Q6J("required",G.enableLoop)("disabled",!G.enableLoop)("ngModel",G.selNode.authentication.swapMacaroonPath),e.xp6(3),e.Q6J("ngIf",!G.selNode.authentication.swapMacaroonPath&&G.enableLoop)}},dependencies:[Wi.O5,ti._Y,ti.Fj,ti.JJ,ti.JL,ti.Q7,ti.On,ti.F,La.BN,ji.xw,ji.Wh,ji.yH,bi.lW,hr.Nt,Si.KE,Si.hX,Si.bx,Si.TO,Di.Rr,tn.$V,hn.h],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),N})();const q1=["form"];function Su(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Boltz server URL is required."),e.qZA())}function J1(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Specify the boltz server url with 'https://'."),e.qZA())}function V3(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Boltz macaroon path is required."),e.qZA())}let Eu=(()=>{var R;class N{constructor(H,G){this.logger=H,this.store=G,this.faInfoCircle=Xi.sqG,this.enableBoltz=!1,this.serverUrl="",this.macaroonPath="",this.unSubs=[new Fi.x,new Fi.x]}ngOnInit(){this.store.select(xa.dT).pipe((0,sn.R)(this.unSubs[0])).subscribe(H=>{this.selNode=H,this.enableBoltz=!(!H.settings.boltzServerUrl||""===H.settings.boltzServerUrl.trim()),this.serverUrl=this.selNode.settings.boltzServerUrl||"",this.macaroonPath=this.selNode.authentication.boltzMacaroonPath,this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(H)})}onEnableServiceChanged(H){this.enableBoltz=H.checked,this.enableBoltz||(this.macaroonPath="",this.serverUrl="")}onUpdateService(){if(this.serverUrl&&""!==this.serverUrl.trim()&&!this.form.controls.srvrUrl.value.includes("https://")&&this.form.controls.srvrUrl.setErrors({invalid:!0}),this.enableBoltz&&(!this.serverUrl||""===this.serverUrl.trim()||!this.serverUrl.includes("https://")||!this.macaroonPath||""===this.macaroonPath.trim()))return!0;this.logger.info(this.selNode),this.selNode.settings.boltzServerUrl=this.serverUrl,this.selNode.authentication.boltzMacaroonPath=this.macaroonPath,this.store.dispatch((0,Rt.jS)({payload:{uiMessage:Ne.m6.UPDATE_BOLTZ_SETTINGS,service:Ne.JX.BOLTZ,settings:{enable:this.enableBoltz,serverUrl:this.serverUrl,macaroonPath:this.macaroonPath}}})),this.store.dispatch((0,Be.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,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,ae.Mf)({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,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,we.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,unannouncedChannels:this.selNode.unannouncedChannels,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(H=>{H.next(),H.complete()})}}return(R=N).\u0275fac=function(H){return new(H||R)(e.Y36(ni.mQ),e.Y36(ki.yh))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-boltz-service-settings"]],viewQuery:function(H,G){if(1&H&&e.Gf(q1,7),2&H){let Le;e.iGM(Le=e.CRH())&&(G.form=Le.first)}},decls:38,vars:11,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],[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,"ml-2",3,"ngModel","ngModelChange","change"],[1,"mb-2"],["matInput","","type","text","id","boltzServerUrl","name","srvrUrl","tabindex","2",3,"required","disabled","ngModel","ngModelChange"],["srvrUrl","ngModel"],[4,"ngIf"],["matInput","","type","text","id","boltzMacaroonPath","name","boltzMacaroonPath","tabindex","3",3,"required","disabled","ngModel","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(H,G){if(1&H&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"Please ensure that "),e.TgZ(5,"strong"),e._uU(6,"boltzd"),e.qZA(),e._uU(7," is running and accessible to RTL before enabling this service. Click "),e.TgZ(8,"strong")(9,"a",3),e._uU(10,"here"),e.qZA()(),e._uU(11," to learn more about the installation."),e.qZA()(),e.TgZ(12,"form",4,5)(14,"div",6)(15,"mat-slide-toggle",7),e.NdJ("ngModelChange",function(Mt){return G.enableBoltz=Mt})("change",function(Mt){return G.onEnableServiceChanged(Mt)}),e._uU(16,"Enable Boltz Service"),e.qZA(),e.TgZ(17,"mat-form-field",8)(18,"mat-label"),e._uU(19,"Boltz Server URL"),e.qZA(),e.TgZ(20,"input",9,10),e.NdJ("ngModelChange",function(Mt){return G.serverUrl=Mt}),e.qZA(),e.TgZ(22,"mat-hint"),e._uU(23,"Service url for boltz server REST APIs, eg. https://127.0.0.1:9003"),e.qZA(),e.YNc(24,Su,2,0,"mat-error",11),e.YNc(25,J1,2,0,"mat-error",11),e.qZA(),e.TgZ(26,"mat-form-field")(27,"mat-label"),e._uU(28,"Boltz Macaroon Path"),e.qZA(),e.TgZ(29,"input",12),e.NdJ("ngModelChange",function(Mt){return G.macaroonPath=Mt}),e.qZA(),e.TgZ(30,"mat-hint"),e._uU(31,"Path for the folder containing boltz 'admin.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Boltz\\\\testnet"),e.qZA(),e.YNc(32,V3,2,0,"mat-error",11),e.qZA()()(),e.TgZ(33,"div",13)(34,"button",14),e.NdJ("click",function(){return G.onReset()}),e._uU(35,"Reset"),e.qZA(),e.TgZ(36,"button",15),e.NdJ("click",function(){return G.onUpdateService()}),e._uU(37,"Update"),e.qZA()()()),2&H){const Le=e.MAs(21);e.xp6(2),e.Q6J("icon",G.faInfoCircle),e.xp6(13),e.Q6J("ngModel",G.enableBoltz),e.xp6(5),e.Q6J("required",G.enableBoltz)("disabled",!G.enableBoltz)("ngModel",G.serverUrl),e.xp6(4),e.Q6J("ngIf",(!G.serverUrl||""===G.serverUrl.trim())&&G.enableBoltz),e.xp6(1),e.Q6J("ngIf",(null==Le||null==Le.errors?null:Le.errors.invalid)&&G.enableBoltz),e.xp6(4),e.Q6J("required",G.enableBoltz)("disabled",!G.enableBoltz)("ngModel",G.macaroonPath),e.xp6(3),e.Q6J("ngIf",!G.macaroonPath&&G.enableBoltz)}},dependencies:[Wi.O5,ti._Y,ti.Fj,ti.JJ,ti.JL,ti.Q7,ti.On,ti.F,La.BN,ji.xw,ji.Wh,ji.yH,bi.lW,hr.Nt,Si.KE,Si.hX,Si.bx,Si.TO,Di.Rr,tn.$V,hn.h],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),N})(),B3=(()=>{var R;class N{constructor(){}}return(R=N).\u0275fac=function(H){return new(H||R)},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-ln-services"]],decls:1,vars:0,template:function(H,G){1&H&&e._UZ(0,"router-outlet")},dependencies:[Wn.lC]}),N})();var Tu=m(2615),h2=m(9107),pl=m(8739),Yc=m(6308),Zn=m(671),gl=m(3162);function u2(R,N){if(1&R&&(e.TgZ(0,"mat-option",37),e._uU(1),e.qZA()),2&R){const S=N.$implicit,H=e.oxw();e.Q6J("value",S),e.xp6(1),e.Oqu(H.getLabel(S))}}function X1(R,N){1&R&&e._UZ(0,"mat-progress-bar",38)}function _s(R,N){1&R&&(e.TgZ(0,"th",39),e._uU(1,"State"),e.qZA())}function N0(R,N){if(1&R&&(e.TgZ(0,"td",40),e._uU(1),e.qZA()),2&R){const S=N.$implicit,H=e.oxw();e.xp6(1),e.Oqu(H.LoopStateEnum[null==S?null:S.state])}}function f2(R,N){1&R&&(e.TgZ(0,"th",39),e._uU(1,"Initiation Time"),e.qZA())}function F0(R,N){if(1&R&&(e.TgZ(0,"td",40),e._uU(1),e.ALo(2,"date"),e.qZA()),2&R){const S=N.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,(null==S?null:S.initiation_time)/1e6,"dd/MMM/y HH:mm"))}}function H0(R,N){1&R&&(e.TgZ(0,"th",39),e._uU(1,"Last Update Time"),e.qZA())}function m2(R,N){if(1&R&&(e.TgZ(0,"td",40),e._uU(1),e.ALo(2,"date"),e.qZA()),2&R){const S=N.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,(null==S?null:S.last_update_time)/1e6,"dd/MMM/y HH:mm"))}}function z0(R,N){1&R&&(e.TgZ(0,"th",41),e._uU(1,"Amount (Sats)"),e.qZA())}function Au(R,N){if(1&R&&(e.TgZ(0,"td",40)(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&R){const S=N.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==S?null:S.amt))}}function Lu(R,N){1&R&&(e.TgZ(0,"th",41),e._uU(1,"Cost Server (Sats)"),e.qZA())}function V0(R,N){if(1&R&&(e.TgZ(0,"td",40)(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&R){const S=N.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==S?null:S.cost_server))}}function Du(R,N){1&R&&(e.TgZ(0,"th",41),e._uU(1,"Cost Offchain (Sats)"),e.qZA())}function $1(R,N){if(1&R&&(e.TgZ(0,"td",40)(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&R){const S=N.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==S?null:S.cost_offchain))}}function zo(R,N){1&R&&(e.TgZ(0,"th",41),e._uU(1,"Cost Onchain (Sats)"),e.qZA())}function jl(R,N){if(1&R&&(e.TgZ(0,"td",40)(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&R){const S=N.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==S?null:S.cost_onchain)," ")}}function B0(R,N){1&R&&(e.TgZ(0,"th",39),e._uU(1,"HTLC Address"),e.qZA())}const qs=function(R){return{width:R}};function eo(R,N){if(1&R&&(e.TgZ(0,"td",40)(1,"span",43)(2,"span",44),e._uU(3),e.qZA()()()),2&R){const S=N.$implicit,H=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,qs,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.xp6(2),e.Oqu(null==S?null:S.htlc_address)}}function Js(R,N){1&R&&(e.TgZ(0,"th",39),e._uU(1,"ID"),e.qZA())}function U0(R,N){if(1&R&&(e.TgZ(0,"td",40)(1,"span",43)(2,"span",44),e._uU(3),e.qZA()()()),2&R){const S=N.$implicit,H=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,qs,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.xp6(2),e.Oqu(null==S?null:S.id)}}function ed(R,N){1&R&&(e.TgZ(0,"th",39),e._uU(1,"ID (Bytes)"),e.qZA())}function Iu(R,N){if(1&R&&(e.TgZ(0,"td",40)(1,"span",43)(2,"span",44),e._uU(3),e.qZA()()()),2&R){const S=N.$implicit,H=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,qs,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.xp6(2),e.Oqu(null==S?null:S.id_bytes)}}function p2(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"th",45)(1,"div",46)(2,"mat-select",47),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",48),e.NdJ("click",function(){e.CHM(S);const G=e.oxw();return e.KtG(G.onDownloadCSV())}),e._uU(5,"Download CSV"),e.qZA()()()()}}function G0(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"td",49)(1,"button",50),e.NdJ("click",function(G){const Mt=e.CHM(S).$implicit,Xt=e.oxw();return e.KtG(Xt.onSwapClick(Mt,G))}),e._uU(2,"View Info"),e.qZA()()}}function g2(R,N){if(1&R&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&R){const S=e.oxw(2);e.xp6(1),e.Oqu(S.emptyTableMessage)}}function Kl(R,N){if(1&R&&(e.TgZ(0,"td",51),e.YNc(1,g2,2,1,"p",52),e.qZA()),2&R){const S=e.oxw();e.xp6(1),e.Q6J("ngIf",!(null!=S.listSwaps&&S.listSwaps.data)||(null==S.listSwaps||null==S.listSwaps.data?null:S.listSwaps.data.length)<1)}}const Ql=function(R){return{"display-none":R}};function Fs(R,N){if(1&R&&e._UZ(0,"tr",53),2&R){const S=e.oxw();e.Q6J("ngClass",e.VKq(1,Ql,(null==S.listSwaps?null:S.listSwaps.data)&&(null==S.listSwaps||null==S.listSwaps.data?null:S.listSwaps.data.length)>0))}}function ku(R,N){1&R&&e._UZ(0,"tr",54)}function _l(R,N){1&R&&e._UZ(0,"tr",55)}const _2=function(){return["all"]},vl=function(R){return{"overflow-auto error-border":R,"overflow-auto":!0}},gc=function(){return["no_swap"]};let Ou=(()=>{var R;class N{constructor(H,G,Le,Mt,Xt,oi){this.logger=H,this.commonService=G,this.store=Le,this.loopService=Mt,this.datePipe=Xt,this.camelCaseWithReplace=oi,this.selectedSwapType=Ne.$I.LOOP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.nodePageDefs=Ne.hG,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="loop",this.tableSetting={tableId:"loop",recordsPerPage:Ne.IV,sortBy:"initiation_time",sortOrder:Ne.Pi.DESCENDING},this.LoopStateEnum=Ne.Fq,this.faHistory=Xi.qO$,this.swapCaption="Loop Out",this.displayedColumns=[],this.listSwaps=new Zn.by([]),this.selFilter="",this.pageSize=Ne.IV,this.pageSizeOptions=Ne.TJ,this.screenSize="",this.screenSizeEnum=Ne.cu,this.unSubs=[new Fi.x,new Fi.x,new Fi.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(gs.Pr).pipe((0,sn.R)(this.unSubs[0])).subscribe(H=>{this.tableSetting=H.pageSettings.find(G=>G.pageId===this.PAGE_ID)?.tables.find(G=>G.tableId===this.tableSetting.tableId)||Ne.gK.find(G=>G.pageId===this.PAGE_ID)?.tables.find(G=>G.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===Ne.cu.XS||this.screenSize===Ne.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:Ne.IV,this.swapsData&&this.swapsData.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadSwapsTable(this.swapsData),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)})}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(H){this.swapCaption=this.selectedSwapType===Ne.$I.LOOP_IN?"Loop In":"Loop Out",this.loadSwapsTable(this.swapsData)}applyFilter(){this.listSwaps.filter=this.selFilter.trim().toLowerCase()}getLabel(H){const G=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(Le=>Le.column===H);return G?G.label?G.label:this.camelCaseWithReplace.transform(G.column,"_"):this.commonService.titleCase(H)}setFilterPredicate(){this.listSwaps.filterPredicate=(H,G)=>{let Le="";switch(this.selFilterBy){case"all":Le=JSON.stringify(H).toLowerCase();break;case"state":Le=H?.state?this.LoopStateEnum[H?.state]:"";break;case"initiation_time":case"last_update_time":Le=this.datePipe.transform(new Date((H[this.selFilterBy]||0)/1e6),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;default:Le=typeof H[this.selFilterBy]>"u"?"":"string"==typeof H[this.selFilterBy]?H[this.selFilterBy].toLowerCase():"boolean"==typeof H[this.selFilterBy]?H[this.selFilterBy]?"yes":"no":H[this.selFilterBy].toString()}return"state"===this.selFilterBy?0===Le.indexOf(G):Le.includes(G)}}onSwapClick(H,G){this.loopService.getSwap(H.id_bytes?.replace(/\//g,"_")?.replace(/\+/g,"-")||"").pipe((0,sn.R)(this.unSubs[1])).subscribe(Le=>{this.store.dispatch((0,Rt.qR)({payload:{data:{type:Ne.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"state",value:Ne.Fq[Le.state||""],title:"Status",width:50,type:Ne.Gi.STRING},{key:"amt",value:Le.amt,title:"Amount (Sats)",width:50,type:Ne.Gi.NUMBER}],[{key:"initiation_time",value:(Le.initiation_time||0)/1e9,title:"Initiation Time",width:50,type:Ne.Gi.DATE_TIME},{key:"last_update_time",value:(Le.last_update_time||0)/1e9,title:"Last Update Time",width:50,type:Ne.Gi.DATE_TIME}],[{key:"cost_server",value:Le.cost_server,title:"Server Cost (Sats)",width:33,type:Ne.Gi.NUMBER},{key:"cost_offchain",value:Le.cost_offchain,title:"Offchain Cost (Sats)",width:33,type:Ne.Gi.NUMBER},{key:"cost_onchain",value:Le.cost_onchain,title:"Onchain Cost (Sats)",width:34,type:Ne.Gi.NUMBER}],[{key:"id_bytes",value:Le.id_bytes,title:"ID",width:100,type:Ne.Gi.STRING}],[{key:"htlc_address",value:Le.htlc_address,title:"HTLC Address",width:100,type:Ne.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(H){this.listSwaps=new Zn.by([...H]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(G,Le)=>G[Le]&&isNaN(G[Le])?G[Le].toLocaleLowerCase():G[Le]?+G[Le]:null,this.listSwaps.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===Ne.$I.LOOP_IN?"Loop in":"Loop out")}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return(R=N).\u0275fac=function(H){return new(H||R)(e.Y36(ni.mQ),e.Y36(ut.v),e.Y36(ki.yh),e.Y36(h2.W),e.Y36(Wi.uU),e.Y36($r.D3))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-swaps"]],viewQuery:function(H,G){if(1&H&&(e.Gf(Yc.YE,5),e.Gf(pl.NW,5)),2&H){let Le;e.iGM(Le=e.CRH())&&(G.sort=Le.first),e.iGM(Le=e.CRH())&&(G.paginator=Le.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[e._Bn([{provide:Pi.PG,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:pl.ye,useValue:(0,Ne.pt)("Swaps")}]),e.TTD],decls:61,vars:20,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.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["table",""],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","initiation_time"],["matColumnDef","last_update_time"],["matColumnDef","amt"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","cost_server"],["matColumnDef","cost_offchain"],["matColumnDef","cost_onchain"],["matColumnDef","htlc_address"],["matColumnDef","id"],["matColumnDef","id_bytes"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayout.gt-xs","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(H,G){1&H&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span",4),e._uU(5),e.qZA()(),e.TgZ(6,"div",5)(7,"mat-form-field",6)(8,"mat-label"),e._uU(9,"Filter By"),e.qZA(),e.TgZ(10,"mat-select",7),e.NdJ("ngModelChange",function(Mt){return G.selFilterBy=Mt})("selectionChange",function(){return G.selFilter="",G.applyFilter()}),e.TgZ(11,"perfect-scrollbar"),e.YNc(12,u2,2,2,"mat-option",8),e.qZA()()(),e.TgZ(13,"mat-form-field",6)(14,"mat-label"),e._uU(15,"Filter"),e.qZA(),e.TgZ(16,"input",9),e.NdJ("ngModelChange",function(Mt){return G.selFilter=Mt})("input",function(){return G.applyFilter()})("keyup",function(){return G.applyFilter()}),e.qZA()()()(),e.TgZ(17,"div",10)(18,"div",11),e.YNc(19,X1,1,0,"mat-progress-bar",12),e.TgZ(20,"table",13,14),e.ynx(22,15),e.YNc(23,_s,2,0,"th",16),e.YNc(24,N0,2,1,"td",17),e.BQk(),e.ynx(25,18),e.YNc(26,f2,2,0,"th",16),e.YNc(27,F0,3,4,"td",17),e.BQk(),e.ynx(28,19),e.YNc(29,H0,2,0,"th",16),e.YNc(30,m2,3,4,"td",17),e.BQk(),e.ynx(31,20),e.YNc(32,z0,2,0,"th",21),e.YNc(33,Au,4,3,"td",17),e.BQk(),e.ynx(34,22),e.YNc(35,Lu,2,0,"th",21),e.YNc(36,V0,4,3,"td",17),e.BQk(),e.ynx(37,23),e.YNc(38,Du,2,0,"th",21),e.YNc(39,$1,4,3,"td",17),e.BQk(),e.ynx(40,24),e.YNc(41,zo,2,0,"th",21),e.YNc(42,jl,4,3,"td",17),e.BQk(),e.ynx(43,25),e.YNc(44,B0,2,0,"th",16),e.YNc(45,eo,4,4,"td",17),e.BQk(),e.ynx(46,26),e.YNc(47,Js,2,0,"th",16),e.YNc(48,U0,4,4,"td",17),e.BQk(),e.ynx(49,27),e.YNc(50,ed,2,0,"th",16),e.YNc(51,Iu,4,4,"td",17),e.BQk(),e.ynx(52,28),e.YNc(53,p2,6,0,"th",29),e.YNc(54,G0,3,0,"td",30),e.BQk(),e.ynx(55,31),e.YNc(56,Kl,2,1,"td",32),e.BQk(),e.YNc(57,Fs,1,3,"tr",33),e.YNc(58,ku,1,0,"tr",34),e.YNc(59,_l,1,0,"tr",35),e.qZA(),e._UZ(60,"mat-paginator",36),e.qZA()()()),2&H&&(e.xp6(3),e.Q6J("icon",G.faHistory),e.xp6(2),e.hij("",G.swapCaption," History"),e.xp6(5),e.Q6J("ngModel",G.selFilterBy),e.xp6(2),e.Q6J("ngForOf",e.DdM(16,_2).concat(G.displayedColumns.slice(0,-1))),e.xp6(4),e.Q6J("ngModel",G.selFilter),e.xp6(3),e.Q6J("ngIf",!0===G.flgLoading[0]),e.xp6(1),e.Q6J("matSortActive",G.tableSetting.sortBy)("matSortDirection",G.tableSetting.sortOrder)("dataSource",G.listSwaps)("ngClass",e.VKq(17,vl,"error"===G.flgLoading[0])),e.xp6(37),e.Q6J("matFooterRowDef",e.DdM(19,gc)),e.xp6(1),e.Q6J("matHeaderRowDef",G.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",G.displayedColumns),e.xp6(1),e.Q6J("pageSize",G.pageSize)("pageSizeOptions",G.pageSizeOptions)("showFirstLastButtons",G.screenSize!==G.screenSizeEnum.XS))},dependencies:[Wi.mk,Wi.sg,Wi.O5,Wi.PC,ti.Fj,ti.JJ,ti.On,La.BN,ji.xw,ji.Wh,ji.yH,Lt.oO,Lt.Zl,bi.lW,hr.Nt,Si.KE,Si.hX,gl.pW,Pi.gD,Pi.$L,qi.ey,Yc.YE,Yc.nU,Zn.BZ,Zn.fO,Zn.as,Zn.w1,Zn.Dz,Zn.nj,Zn.mD,Zn.Ke,Zn.ge,Zn.ev,Zn.yh,Zn.XQ,Zn.Gk,Zn.Q2,pl.NW,tn.Vv,tn.$V,Wi.JJ,Wi.uU]}),N})();const W0=function(R){return["../",R]};function Hs(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",11),e.NdJ("click",function(){const Le=e.CHM(S).$implicit,Mt=e.oxw();return e.KtG(Mt.onSelectedIndexChange(Le))}),e._uU(1),e.qZA()}if(2&R){const S=N.$implicit,H=e.oxw();e.Q6J("active",H.activeTab.link===S.link)("routerLink",e.VKq(3,W0,S.link)),e.xp6(1),e.Oqu(S.name)}}let ql=(()=>{var R;class N{constructor(H,G,Le){this.router=H,this.loopService=G,this.store=Le,this.faInfinity=Xi.vqe,this.loopInfo=null,this.targetConf=2,this.inAmount=25e4,this.quotes=[],this.LoopTypeEnum=Ne.$I,this.selectedSwapType=Ne.$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 Fi.x,new Fi.x,new Fi.x,new Fi.x,new Fi.x,new Fi.x]}ngOnInit(){this.store.dispatch((0,Rt.ac)({payload:Ne.m6.GET_LOOP_INFO})),this.loopService.getLoopInfo().pipe((0,sn.R)(this.unSubs[4])).subscribe({next:G=>{this.store.dispatch((0,Rt.uO)({payload:Ne.m6.GET_LOOP_INFO})),this.loopInfo=G,this.loopInfo&&this.loopInfo.version&&(this.loopInfo.version=this.loopInfo.version.split(" ")[0])},error:G=>{this.store.dispatch((0,Rt.uO)({payload:Ne.m6.GET_LOOP_INFO})),this.loopInfo.version=" Unknown"}}),this.loopService.listSwaps();const H=this.links.find(G=>this.router.url.includes(G.link));this.activeTab=H||this.links[0],this.selectedSwapType=H&&"loopin"===H.link?Ne.$I.LOOP_IN:Ne.$I.LOOP_OUT,this.router.events.pipe((0,sn.R)(this.unSubs[0]),(0,Ya.h)(G=>G instanceof Wn.Av)).subscribe({next:G=>{const Le=this.links.find(Mt=>G.urlAfterRedirects.includes(Mt.link));this.activeTab=Le||this.links[0],this.selectedSwapType=Le&&"loopin"===Le.link?Ne.$I.LOOP_IN:Ne.$I.LOOP_OUT}}),this.loopService.swapsChanged.pipe((0,sn.R)(this.unSubs[1])).subscribe({next:G=>{this.flgLoading[0]=!1,this.storedSwaps=G,this.filteredSwaps=this.storedSwaps?.filter(Le=>Le.type===this.selectedSwapType)},error:G=>{this.flgLoading[0]="error",this.emptyTableMessage=G.message?G.message:"No loop "+(this.selectedSwapType===Ne.$I.LOOP_IN?"in":"out")+" available."}})}onSelectedIndexChange(H){this.selectedSwapType="loopin"===H.link?Ne.$I.LOOP_IN:Ne.$I.LOOP_OUT,this.filteredSwaps=this.storedSwaps?.filter(G=>G.type===this.selectedSwapType)}onLoop(H){H===Ne.$I.LOOP_IN?this.loopService.getLoopInTermsAndQuotes(this.targetConf).pipe((0,sn.R)(this.unSubs[2])).subscribe({next:G=>{this.store.dispatch((0,Rt.qR)({payload:{data:{minQuote:G[0],maxQuote:G[1],direction:H,component:Tu.a}}}))}}):this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,sn.R)(this.unSubs[3])).subscribe({next:G=>{this.store.dispatch((0,Rt.qR)({payload:{data:{minQuote:G[0],maxQuote:G[1],direction:H,component:Tu.a}}}))}})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return(R=N).\u0275fac=function(H){return new(H||R)(e.Y36(Wn.F0),e.Y36(h2.W),e.Y36(ki.yh))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-loop"]],decls:15,vars:9,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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["tabPanel",""],["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"],["mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(H,G){if(1&H&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),e.YNc(8,Hs,2,5,"div",6),e.qZA(),e._UZ(9,"mat-tab-nav-panel",null,7),e.TgZ(11,"div",8)(12,"button",9),e.NdJ("click",function(){return G.onLoop(G.selectedSwapType)}),e._uU(13),e.qZA()(),e._UZ(14,"rtl-swaps",10),e.qZA()()()),2&H){const Le=e.MAs(10);e.xp6(1),e.Q6J("icon",G.faInfinity),e.xp6(2),e.hij("Loop (v",(null==G.loopInfo?null:G.loopInfo.version)||" Unknown",")"),e.xp6(4),e.Q6J("tabPanel",Le),e.xp6(1),e.Q6J("ngForOf",G.links),e.xp6(5),e.hij("Start ",G.activeTab.name,""),e.xp6(1),e.Q6J("selectedSwapType",G.selectedSwapType)("swapsData",G.filteredSwaps)("flgLoading",G.flgLoading)("emptyTableMessage",G.emptyTableMessage)}},dependencies:[Wi.sg,La.BN,ji.xw,ji.Wh,ji.yH,bi.lW,Kn.a8,Kn.dn,ze.BU,ze.sW,ze.Nj,Wn.rH,Ou]}),N})();var jc=m(7772),Kc=m(1135),Jl=m(2843),vs=m(262),Xl=m(1786);let Qc=(()=>{var R;class N{constructor(H,G,Le,Mt){this.httpClient=H,this.logger=G,this.store=Le,this.commonService=Mt,this.swapUrl="",this.swaps={},this.swapsChanged=new Kc.X({}),this.unSubs=[new Fi.x,new Fi.x,new Fi.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,Rt.ac)({payload:Ne.m6.GET_BOLTZ_SWAPS})),this.swapUrl=Ne.T5+Ne.vv.BOLTZ_API+"/listSwaps",this.httpClient.get(this.swapUrl).pipe((0,sn.R)(this.unSubs[0])).subscribe({next:H=>{this.store.dispatch((0,Rt.uO)({payload:Ne.m6.GET_BOLTZ_SWAPS})),this.swaps=H,this.swapsChanged.next(this.swaps)},error:H=>this.swapsChanged.error(this.handleErrorWithAlert(Ne.m6.GET_BOLTZ_SWAPS,this.swapUrl,H))})}swapInfo(H){return this.swapUrl=Ne.T5+Ne.vv.BOLTZ_API+"/swapInfo/"+H,this.httpClient.get(this.swapUrl).pipe((0,vs.K)(G=>(0,lo.of)(this.handleErrorWithAlert(Ne.m6.NO_SPINNER,this.swapUrl,G))))}serviceInfo(){return this.store.dispatch((0,Rt.ac)({payload:Ne.m6.GET_SERVICE_INFO})),this.swapUrl=Ne.T5+Ne.vv.BOLTZ_API+"/serviceInfo",this.httpClient.get(this.swapUrl).pipe((0,sn.R)(this.unSubs[1]),(0,la.U)(H=>(this.store.dispatch((0,Rt.uO)({payload:Ne.m6.GET_SERVICE_INFO})),H)),(0,vs.K)(H=>(0,lo.of)(this.handleErrorWithAlert(Ne.m6.GET_SERVICE_INFO,this.swapUrl,H))))}swapOut(H,G){const Le={amount:H,address:G};return this.swapUrl=Ne.T5+Ne.vv.BOLTZ_API+"/createreverseswap",this.httpClient.post(this.swapUrl,Le).pipe((0,vs.K)(Mt=>this.handleErrorWithoutAlert("Swap Out for Address: "+G,Ne.m6.NO_SPINNER,Mt)))}swapIn(H){const G={amount:H};return this.swapUrl=Ne.T5+Ne.vv.BOLTZ_API+"/createswap",this.httpClient.post(this.swapUrl,G).pipe((0,vs.K)(Le=>this.handleErrorWithoutAlert("Swap In for Amount: "+H,Ne.m6.NO_SPINNER,Le)))}handleErrorWithoutAlert(H,G,Le){let Mt="";return this.logger.error("ERROR IN: "+H+"\n"+JSON.stringify(Le)),this.store.dispatch((0,Rt.uO)({payload:G})),401===Le.status?(Mt="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Rt.kS)())):503===Le.status?(Mt="Unable to Connect to Boltz Server.",this.store.dispatch((0,Rt.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:Le.status,message:"Unable to Connect to Boltz Server",URL:H},component:Xl.H}}}))):Mt=this.commonService.extractErrorMessage(Le),(0,Jl._)(()=>new Error(Mt))}handleErrorWithAlert(H,G,Le){let Mt="";if(401===Le.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Rt.kS)())),this.logger.error(Le),this.store.dispatch((0,Rt.uO)({payload:H})),401===Le.status)Mt="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Rt.kS)());else if(503===Le.status)Mt="Unable to Connect to Boltz Server.",setTimeout(()=>{this.store.dispatch((0,Rt.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:Le.status,message:"Unable to Connect to Boltz Server",URL:G},component:Xl.H}}}))},100);else{Mt=this.commonService.extractErrorMessage(Le);const Xt=Le.error&&Le.error.error&&Le.error.error.code?Le.error.error.code:Le.error&&Le.error.code?Le.error.code:Le.code?Le.code:Le.status;setTimeout(()=>{this.store.dispatch((0,Rt.qR)({payload:{data:{type:Ne.n_.ERROR,alertTitle:"ERROR",message:{code:Xt,message:Mt,URL:G},component:Xl.H}}}))},100)}return{message:Mt}}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return(R=N).\u0275fac=function(H){return new(H||R)(e.LFG($o.eN),e.LFG(ni.mQ),e.LFG(ki.yh),e.LFG(ut.v))},R.\u0275prov=e.Yz7({token:R,factory:R.\u0275fac}),N})();function Pu(R,N){1&R&&e.GkF(0)}function Ru(R,N){if(1&R&&(e.TgZ(0,"div",4)(1,"span",5),e._uU(2),e.qZA()()),2&R){const S=e.oxw();e.xp6(2),e.Oqu(null!=S.swapStatus&&S.swapStatus.error?null==S.swapStatus?null:S.swapStatus.error:"Unknown Error.")}}function Nu(R,N){if(1&R&&(e.TgZ(0,"div",4)(1,"div",6)(2,"div",7)(3,"h4",8),e._uU(4,"ID"),e.qZA(),e.TgZ(5,"span",5),e._uU(6),e.qZA()(),e.TgZ(7,"div",7)(8,"h4",8),e._uU(9,"Routing Fee (mSats)"),e.qZA(),e.TgZ(10,"span",5),e._uU(11),e.ALo(12,"number"),e.qZA()()(),e._UZ(13,"mat-divider",9),e.TgZ(14,"div",6)(15,"div",7)(16,"h4",8),e._uU(17,"Claim Transaction ID"),e.qZA(),e.TgZ(18,"span",5),e._uU(19),e.qZA()(),e.TgZ(20,"div",7)(21,"h4",8),e._uU(22,"Lockup Address"),e.qZA(),e.TgZ(23,"span",5),e._uU(24),e.qZA()()()()),2&R){const S=e.oxw();e.xp6(6),e.Oqu(null==S.swapStatus?null:S.swapStatus.id),e.xp6(5),e.Oqu(e.lcZ(12,4,null==S.swapStatus?null:S.swapStatus.routingFeeMilliSat)),e.xp6(8),e.Oqu(null==S.swapStatus?null:S.swapStatus.claimTransactionId),e.xp6(5),e.Oqu(null==S.swapStatus?null:S.swapStatus.lockupAddress)}}function Fu(R,N){if(1&R&&(e.TgZ(0,"div",4)(1,"div",6)(2,"div",7)(3,"h4",8),e._uU(4,"ID"),e.qZA(),e.TgZ(5,"span",5),e._uU(6),e.qZA()(),e.TgZ(7,"div",7)(8,"h4",8),e._uU(9,"Expected Amount (Sats)"),e.qZA(),e.TgZ(10,"span",5),e._uU(11),e.ALo(12,"number"),e.qZA()()(),e._UZ(13,"mat-divider",9),e.TgZ(14,"div",6)(15,"div",10)(16,"h4",8),e._uU(17,"Address"),e.qZA(),e.TgZ(18,"span",5),e._uU(19),e.qZA()()(),e._UZ(20,"mat-divider",9),e.TgZ(21,"div",6)(22,"div",10)(23,"h4",8),e._uU(24,"BIP 21"),e.qZA(),e.TgZ(25,"span",5),e._uU(26),e.qZA()()()()),2&R){const S=e.oxw();e.xp6(6),e.Oqu(null==S.swapStatus?null:S.swapStatus.id),e.xp6(5),e.Oqu(e.lcZ(12,4,null==S.swapStatus?null:S.swapStatus.expectedAmount)),e.xp6(8),e.Oqu(null==S.swapStatus?null:S.swapStatus.address),e.xp6(7),e.Oqu(null==S.swapStatus?null:S.swapStatus.bip21)}}let Hu=(()=>{var R;class N{constructor(){this.swapStatus=null,this.direction=Ne.hc.SWAP_OUT,this.swapTypeEnum=Ne.hc}}return(R=N).\u0275fac=function(H){return new(H||R)},R.\u0275cmp=e.Xpm({type:R,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(H,G){if(1&H&&(e.YNc(0,Pu,1,0,"ng-container",0),e.YNc(1,Ru,3,1,"ng-template",null,1,e.W1O),e.YNc(3,Nu,25,6,"ng-template",null,2,e.W1O),e.YNc(5,Fu,27,6,"ng-template",null,3,e.W1O)),2&H){const Le=e.MAs(2),Mt=e.MAs(4),Xt=e.MAs(6);e.Q6J("ngTemplateOutlet",null!=G.swapStatus&&G.swapStatus.error?Le:G.direction===G.swapTypeEnum.SWAP_OUT?Mt:Xt)}},dependencies:[Wi.tP,ji.xw,ji.Wh,ji.yH,Jr.d,Wi.JJ]}),N})(),zu=(()=>{var R;class N{constructor(){this.serviceInfo={},this.direction=Ne.hc.SWAP_OUT,this.swapTypeEnum=Ne.hc}}return(R=N).\u0275fac=function(H){return new(H||R)},R.\u0275cmp=e.Xpm({type:R,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(H,G){1&H&&(e.TgZ(0,"mat-expansion-panel",0)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",1),e._uU(4,"Service Information"),e.qZA()()(),e.TgZ(5,"div",2)(6,"div",3)(7,"div",4)(8,"h4",5),e._uU(9,"Minimum Amount (Sats)"),e.qZA(),e.TgZ(10,"span",6),e._uU(11),e.ALo(12,"number"),e.qZA()(),e.TgZ(13,"div",4)(14,"h4",5),e._uU(15,"Maximum Amount (Sats)"),e.qZA(),e.TgZ(16,"span",6),e._uU(17),e.ALo(18,"number"),e.qZA()()(),e._UZ(19,"mat-divider",7),e.TgZ(20,"div",3)(21,"div",4)(22,"h4",5),e._uU(23,"Fee Percentage"),e.qZA(),e.TgZ(24,"span",6),e._uU(25),e.ALo(26,"number"),e.qZA()(),e.TgZ(27,"div",4)(28,"h4",5),e._uU(29,"Miner Fee (Sats)"),e.qZA(),e.TgZ(30,"span",6),e._uU(31),e.ALo(32,"number"),e.qZA()()()()()),2&H&&(e.Q6J("expanded",!0),e.xp6(11),e.Oqu(e.lcZ(12,5,null==G.serviceInfo||null==G.serviceInfo.limits?null:G.serviceInfo.limits.minimal)),e.xp6(6),e.Oqu(e.lcZ(18,7,null==G.serviceInfo||null==G.serviceInfo.limits?null:G.serviceInfo.limits.maximal)),e.xp6(8),e.Oqu(e.lcZ(26,9,null==G.serviceInfo||null==G.serviceInfo.fees?null:G.serviceInfo.fees.percentage)),e.xp6(6),e.Oqu(e.lcZ(32,11,G.direction===G.swapTypeEnum.SWAP_OUT?null==G.serviceInfo||null==G.serviceInfo.fees||null==G.serviceInfo.fees.miner?null:G.serviceInfo.fees.miner.reverse:null==G.serviceInfo||null==G.serviceInfo.fees||null==G.serviceInfo.fees.miner?null:G.serviceInfo.fees.miner.normal)))},dependencies:[ji.xw,ji.Wh,ji.yH,Ht.ib,Ht.yz,Ht.yK,Jr.d,Wi.JJ]}),N})();var v2=m(113);function $l(R,N){1&R&&e.GkF(0)}const _c=function(R,N){return{"small-svg":R,"large-svg":N}};function td(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(G){e.CHM(S);const Le=e.oxw();return e.KtG(Le.onSwipe(G))}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",8)(3,"path",9)(4,"path",10)(5,"path",11)(6,"path",12)(7,"path",13)(8,"path",14)(9,"path",15)(10,"path",16)(11,"path",17),e.qZA(),e.kcU(),e.TgZ(12,"div",18)(13,"mat-card-title"),e._uU(14,"Boltz Submarine Swaps explained."),e.qZA()(),e.TgZ(15,"div",19)(16,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&R){const S=e.oxw();e.Q6J("@sliderAnimation",S.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,_c,S.screenSize===S.screenSizeEnum.XS,S.screenSize!==S.screenSizeEnum.XS))}}function vc(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(G){e.CHM(S);const Le=e.oxw();return e.KtG(Le.onSwipe(G))}),e.O4$(),e.TgZ(1,"svg",21),e._UZ(2,"path",22)(3,"path",23)(4,"path",24)(5,"path",25)(6,"path",26)(7,"path",27)(8,"path",28),e.qZA(),e.kcU(),e.TgZ(9,"div",18)(10,"mat-card-title"),e._uU(11,"Step 1: Deciding to Submarine Swap"),e.qZA()(),e.TgZ(12,"div",19)(13,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&R){const S=e.oxw();e.Q6J("@sliderAnimation",S.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,_c,S.screenSize===S.screenSizeEnum.XS,S.screenSize!==S.screenSizeEnum.XS))}}function id(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(G){e.CHM(S);const Le=e.oxw();return e.KtG(Le.onSwipe(G))}),e.O4$(),e.TgZ(1,"svg",29),e._UZ(2,"path",30)(3,"path",31)(4,"path",32)(5,"path",33)(6,"path",34)(7,"circle",35)(8,"rect",36),e.TgZ(9,"defs")(10,"pattern",37),e._UZ(11,"use",38),e.qZA(),e._UZ(12,"image",39),e.qZA()(),e.kcU(),e.TgZ(13,"div",18)(14,"mat-card-title"),e._uU(15,"Step 2: Sending the on-chain funds"),e.qZA()(),e.TgZ(16,"div",19)(17,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&R){const S=e.oxw();e.Q6J("@sliderAnimation",S.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,_c,S.screenSize===S.screenSizeEnum.XS,S.screenSize!==S.screenSizeEnum.XS))}}function bl(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(G){e.CHM(S);const Le=e.oxw();return e.KtG(Le.onSwipe(G))}),e.O4$(),e.TgZ(1,"svg",40)(2,"g",41),e._UZ(3,"path",42)(4,"path",43)(5,"path",44)(6,"path",45)(7,"path",46),e.qZA(),e.TgZ(8,"defs")(9,"clipPath",47),e._UZ(10,"rect",48),e.qZA()()(),e.kcU(),e.TgZ(11,"div",18)(12,"mat-card-title"),e._uU(13,"Step 3: Receiving the funds on Lightning"),e.qZA()(),e.TgZ(14,"div",19)(15,"mat-card-subtitle",20),e._uU(16," Boltz pays the Lightning invoice to your node and claims the on-chain funds locked in the previous step. "),e.qZA()()()}if(2&R){const S=e.oxw();e.Q6J("@sliderAnimation",S.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,_c,S.screenSize===S.screenSizeEnum.XS,S.screenSize!==S.screenSizeEnum.XS))}}function nd(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(G){e.CHM(S);const Le=e.oxw();return e.KtG(Le.onSwipe(G))}),e.O4$(),e.TgZ(1,"svg",49),e._UZ(2,"path",50)(3,"path",51)(4,"path",52)(5,"path",53)(6,"path",54),e.qZA(),e.kcU(),e.TgZ(7,"div",18)(8,"mat-card-title"),e._uU(9,"Done!"),e.qZA()(),e.TgZ(10,"div",19)(11,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&R){const S=e.oxw();e.Q6J("@sliderAnimation",S.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,_c,S.screenSize===S.screenSizeEnum.XS,S.screenSize!==S.screenSizeEnum.XS))}}let bc=(()=>{var R;class N{constructor(H){this.commonService=H,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.vpe,this.screenSize="",this.screenSizeEnum=Ne.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(H){2===H.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===H.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return(R=N).\u0275fac=function(H){return new(H||R)(e.Y36(ut.v))},R.\u0275cmp=e.Xpm({type:R,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(H,G){if(1&H&&(e.YNc(0,$l,1,0,"ng-container",0),e.YNc(1,td,18,5,"ng-template",null,1,e.W1O),e.YNc(3,vc,15,5,"ng-template",null,2,e.W1O),e.YNc(5,id,19,5,"ng-template",null,3,e.W1O),e.YNc(7,bl,17,5,"ng-template",null,4,e.W1O),e.YNc(9,nd,13,5,"ng-template",null,5,e.W1O)),2&H){const Le=e.MAs(2),Mt=e.MAs(4),Xt=e.MAs(6),oi=e.MAs(8),Ci=e.MAs(10);e.Q6J("ngTemplateOutlet",1===G.stepNumber?Le:2===G.stepNumber?Mt:3===G.stepNumber?Xt:4===G.stepNumber?oi:Ci)}},dependencies:[Wi.mk,Wi.tP,ji.xw,ji.Wh,ji.yH,Lt.oO,Kn.$j,Kn.n5],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:[v2.l]}}),N})();function Xs(R,N){1&R&&e.GkF(0)}const qc=function(R,N){return{"small-svg":R,"large-svg":N}};function Z0(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(G){e.CHM(S);const Le=e.oxw();return e.KtG(Le.onSwipe(G))}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",8)(3,"path",9)(4,"path",10)(5,"path",11)(6,"path",12)(7,"path",13)(8,"path",14)(9,"path",15)(10,"path",16)(11,"path",17),e.qZA(),e.kcU(),e.TgZ(12,"div",18)(13,"mat-card-title"),e._uU(14,"Boltz Reverse Submarine Swap explained."),e.qZA()(),e.TgZ(15,"div",19)(16,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&R){const S=e.oxw();e.Q6J("@sliderAnimation",S.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,qc,S.screenSize===S.screenSizeEnum.XS,S.screenSize!==S.screenSizeEnum.XS))}}function Vu(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(G){e.CHM(S);const Le=e.oxw();return e.KtG(Le.onSwipe(G))}),e.O4$(),e.TgZ(1,"svg",21)(2,"g",22),e._UZ(3,"path",23)(4,"path",24)(5,"path",25)(6,"path",26)(7,"path",27)(8,"path",28),e.qZA(),e._UZ(9,"path",29),e.TgZ(10,"defs")(11,"clipPath",30),e._UZ(12,"rect",31),e.qZA()()(),e.kcU(),e.TgZ(13,"div",18)(14,"mat-card-title"),e._uU(15,"Step 1: Deciding to Reverse Submarine Swap"),e.qZA()(),e.TgZ(16,"div",19)(17,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&R){const S=e.oxw();e.Q6J("@sliderAnimation",S.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,qc,S.screenSize===S.screenSizeEnum.XS,S.screenSize!==S.screenSizeEnum.XS))}}function ad(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(G){e.CHM(S);const Le=e.oxw();return e.KtG(Le.onSwipe(G))}),e.O4$(),e.TgZ(1,"svg",32),e._UZ(2,"path",33)(3,"path",34)(4,"path",35)(5,"path",36)(6,"path",37)(7,"circle",38)(8,"rect",39),e.TgZ(9,"defs")(10,"pattern",40),e._UZ(11,"use",41),e.qZA(),e._UZ(12,"image",42),e.qZA()(),e.kcU(),e.TgZ(13,"div",18)(14,"mat-card-title"),e._uU(15,"Step 2: Paying the Lightning Invoice"),e.qZA()(),e.TgZ(16,"div",19)(17,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&R){const S=e.oxw();e.Q6J("@sliderAnimation",S.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,qc,S.screenSize===S.screenSizeEnum.XS,S.screenSize!==S.screenSizeEnum.XS))}}function Bu(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(G){e.CHM(S);const Le=e.oxw();return e.KtG(Le.onSwipe(G))}),e.O4$(),e.TgZ(1,"svg",43)(2,"g",22),e._UZ(3,"path",44)(4,"path",45)(5,"path",46)(6,"path",47)(7,"path",48),e.qZA(),e.TgZ(8,"defs")(9,"clipPath",30),e._UZ(10,"rect",49),e.qZA()()(),e.kcU(),e.TgZ(11,"div",18)(12,"mat-card-title"),e._uU(13,"Step 3: Receiving the funds on-chain"),e.qZA()(),e.TgZ(14,"div",19)(15,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&R){const S=e.oxw();e.Q6J("@sliderAnimation",S.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,qc,S.screenSize===S.screenSizeEnum.XS,S.screenSize!==S.screenSizeEnum.XS))}}function Y0(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(G){e.CHM(S);const Le=e.oxw();return e.KtG(Le.onSwipe(G))}),e.O4$(),e.TgZ(1,"svg",50),e._UZ(2,"path",51)(3,"path",52)(4,"path",53)(5,"path",54)(6,"path",55),e.qZA(),e.kcU(),e.TgZ(7,"div",18)(8,"mat-card-title"),e._uU(9,"Done!"),e.qZA()(),e.TgZ(10,"div",19)(11,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&R){const S=e.oxw();e.Q6J("@sliderAnimation",S.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,qc,S.screenSize===S.screenSizeEnum.XS,S.screenSize!==S.screenSizeEnum.XS))}}let j0=(()=>{var R;class N{constructor(H){this.commonService=H,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.vpe,this.screenSize="",this.screenSizeEnum=Ne.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(H){2===H.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===H.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return(R=N).\u0275fac=function(H){return new(H||R)(e.Y36(ut.v))},R.\u0275cmp=e.Xpm({type:R,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(H,G){if(1&H&&(e.YNc(0,Xs,1,0,"ng-container",0),e.YNc(1,Z0,18,5,"ng-template",null,1,e.W1O),e.YNc(3,Vu,19,5,"ng-template",null,2,e.W1O),e.YNc(5,ad,19,5,"ng-template",null,3,e.W1O),e.YNc(7,Bu,17,5,"ng-template",null,4,e.W1O),e.YNc(9,Y0,13,5,"ng-template",null,5,e.W1O)),2&H){const Le=e.MAs(2),Mt=e.MAs(4),Xt=e.MAs(6),oi=e.MAs(8),Ci=e.MAs(10);e.Q6J("ngTemplateOutlet",1===G.stepNumber?Le:2===G.stepNumber?Mt:3===G.stepNumber?Xt:4===G.stepNumber?oi:Ci)}},dependencies:[Wi.mk,Wi.tP,ji.xw,ji.Wh,ji.yH,Lt.oO,Kn.$j,Kn.n5],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:[v2.l]}}),N})();const b2=["stepper"];function y2(R,N){if(1&R&&e._uU(0),2&R){const S=e.oxw(2);e.Oqu(S.inputFormLabel)}}function rd(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount is required."),e.qZA())}function yl(R,N){if(1&R&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&R){const S=e.oxw(2);e.xp6(1),e.hij("Amount must be greater than or equal to ",e.lcZ(2,1,null==S.serviceInfo||null==S.serviceInfo.limits?null:S.serviceInfo.limits.minimal),".")}}function e1(R,N){if(1&R&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&R){const S=e.oxw(2);e.xp6(1),e.hij("Amount must be less than or equal to ",e.lcZ(2,1,null==S.serviceInfo||null==S.serviceInfo.limits?null:S.serviceInfo.limits.maximal),".")}}function t1(R,N){1&R&&(e.TgZ(0,"button",40),e._uU(1,"Next"),e.qZA())}function $s(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"button",41),e.NdJ("click",function(){e.CHM(S);const G=e.oxw(2);return e.KtG(G.onSwap())}),e._uU(1),e.qZA()}if(2&R){const S=e.oxw(2);e.xp6(1),e.hij("Initiate ",S.swapDirectionCaption,"")}}function x2(R,N){if(1&R&&e._uU(0),2&R){const S=e.oxw(3);e.Oqu(S.addressFormLabel)}}function xl(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Address is required."),e.qZA())}function zs(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"mat-step",15)(1,"form",16),e.YNc(2,x2,1,1,"ng-template",17),e.TgZ(3,"div",42)(4,"mat-radio-group",43),e.NdJ("change",function(G){e.CHM(S);const Le=e.oxw(2);return e.KtG(Le.onAddressTypeChange(G))}),e.TgZ(5,"mat-radio-button",44),e._uU(6,"Node Local Address"),e.qZA(),e.TgZ(7,"mat-radio-button",45),e._uU(8,"External Address"),e.qZA()(),e.TgZ(9,"mat-form-field",46)(10,"mat-label"),e._uU(11,"Address"),e.qZA(),e._UZ(12,"input",47),e.YNc(13,xl,2,0,"mat-error",24),e.qZA()(),e.TgZ(14,"div",25)(15,"button",48),e.NdJ("click",function(){e.CHM(S);const G=e.oxw(2);return e.KtG(G.onSwap())}),e._uU(16),e.qZA()()()()}if(2&R){const S=e.oxw(2);e.Q6J("stepControl",S.addressFormGroup)("editable",S.flgEditable),e.xp6(1),e.Q6J("formGroup",S.addressFormGroup),e.xp6(11),e.Q6J("required","external"===S.addressFormGroup.controls.addressType.value),e.xp6(1),e.Q6J("ngIf",null==S.addressFormGroup.controls.address.errors?null:S.addressFormGroup.controls.address.errors.required),e.xp6(3),e.hij("Initiate ",S.swapDirectionCaption,"")}}function Uu(R,N){if(1&R&&e._uU(0),2&R){const S=e.oxw(2);e.hij("",S.swapDirectionCaption," Status")}}function n1(R,N){if(1&R&&(e.TgZ(0,"mat-icon",49),e._uU(1),e.qZA()),2&R){const S=e.oxw(2);e.xp6(1),e.Oqu(S.swapStatus&&null!=S.swapStatus&&S.swapStatus.id?"check":"close")}}function od(R,N){1&R&&e._UZ(0,"div")}function Cl(R,N){1&R&&e._UZ(0,"mat-progress-bar",50)}function C2(R,N){if(1&R&&(e.TgZ(0,"h4",51),e._uU(1),e.qZA()),2&R){const S=e.oxw(2);e.xp6(1),e.Oqu(S.swapStatus&&S.swapStatus.error?S.swapDirectionCaption+" failed.":S.swapStatus&&S.swapStatus.id?S.swapDirectionCaption+" request placed successfully. You can check the status of the request on the 'Boltz' menu.":S.swapDirectionCaption+" request placed successfully.")}}function sd(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"button",52),e.NdJ("click",function(){e.CHM(S);const G=e.oxw(2);return e.KtG(G.onRestart())}),e._uU(1,"Start Again"),e.qZA()}}function fr(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),e._uU(5),e.qZA()(),e.TgZ(6,"div",8)(7,"button",9),e.NdJ("click",function(){e.CHM(S);const G=e.oxw();return e.KtG(G.showInfo())}),e._uU(8,"?"),e.qZA(),e.TgZ(9,"button",10),e.NdJ("click",function(){e.CHM(S);const G=e.oxw();return e.KtG(G.onClose())}),e._uU(10,"X"),e.qZA()()(),e.TgZ(11,"mat-card-content",11)(12,"div",12)(13,"mat-vertical-stepper",13,14),e.NdJ("selectionChange",function(G){e.CHM(S);const Le=e.oxw();return e.KtG(Le.stepSelectionChanged(G))}),e.TgZ(15,"mat-step",15)(16,"form",16),e.YNc(17,y2,1,1,"ng-template",17),e.TgZ(18,"div",18),e._UZ(19,"rtl-boltz-service-info",19),e.qZA(),e.TgZ(20,"div",20)(21,"mat-form-field",21)(22,"mat-label"),e._uU(23,"Amount"),e.qZA(),e._UZ(24,"input",22),e.TgZ(25,"mat-hint"),e._uU(26),e.ALo(27,"number"),e.ALo(28,"number"),e.qZA(),e.TgZ(29,"span",23),e._uU(30,"Sats"),e.qZA(),e.YNc(31,rd,2,0,"mat-error",24),e.YNc(32,yl,3,3,"mat-error",24),e.YNc(33,e1,3,3,"mat-error",24),e.qZA()(),e.TgZ(34,"div",25),e.YNc(35,t1,2,0,"button",26),e.YNc(36,$s,2,1,"button",27),e.qZA()()(),e.YNc(37,zs,17,6,"mat-step",28),e.TgZ(38,"mat-step",29)(39,"form",16),e.YNc(40,Uu,1,1,"ng-template",17),e.TgZ(41,"div",30)(42,"mat-expansion-panel",31)(43,"mat-expansion-panel-header")(44,"mat-panel-title")(45,"span",32),e._uU(46),e.YNc(47,n1,2,1,"mat-icon",33),e.qZA()()(),e.YNc(48,od,1,0,"div",34),e.qZA(),e.YNc(49,Cl,1,0,"mat-progress-bar",35),e.qZA(),e.YNc(50,C2,2,1,"h4",36),e.TgZ(51,"div",25),e.YNc(52,sd,2,0,"button",37),e.qZA()()()(),e.TgZ(53,"div",38)(54,"button",39),e._uU(55,"Close"),e.qZA()()()()()()}if(2&R){const S=e.oxw(),H=e.MAs(2);e.Q6J("@opacityAnimation",void 0),e.xp6(3),e.Q6J("fxFlex",S.screenSize===S.screenSizeEnum.XS||S.screenSize===S.screenSizeEnum.SM?"83":"91"),e.xp6(2),e.Oqu(S.swapDirectionCaption),e.xp6(1),e.Q6J("fxFlex",S.screenSize===S.screenSizeEnum.XS||S.screenSize===S.screenSizeEnum.SM?"17":"9"),e.xp6(7),e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",S.inputFormGroup)("editable",S.flgEditable),e.xp6(1),e.Q6J("formGroup",S.inputFormGroup),e.xp6(3),e.Q6J("serviceInfo",S.serviceInfo)("direction",S.direction),e.xp6(5),e.Q6J("step",1e3),e.xp6(2),e.AsE("Range: ",e.lcZ(27,30,null==S.serviceInfo||null==S.serviceInfo.limits?null:S.serviceInfo.limits.minimal),"-",e.lcZ(28,32,null==S.serviceInfo||null==S.serviceInfo.limits?null:S.serviceInfo.limits.maximal),""),e.xp6(5),e.Q6J("ngIf",null==S.inputFormGroup||null==S.inputFormGroup.controls||null==S.inputFormGroup.controls.amount||null==S.inputFormGroup.controls.amount.errors?null:S.inputFormGroup.controls.amount.errors.required),e.xp6(1),e.Q6J("ngIf",null==S.inputFormGroup||null==S.inputFormGroup.controls||null==S.inputFormGroup.controls.amount||null==S.inputFormGroup.controls.amount.errors?null:S.inputFormGroup.controls.amount.errors.min),e.xp6(1),e.Q6J("ngIf",null==S.inputFormGroup||null==S.inputFormGroup.controls||null==S.inputFormGroup.controls.amount||null==S.inputFormGroup.controls.amount.errors?null:S.inputFormGroup.controls.amount.errors.max),e.xp6(2),e.Q6J("ngIf",S.direction===S.swapTypeEnum.SWAP_OUT),e.xp6(1),e.Q6J("ngIf",S.direction===S.swapTypeEnum.SWAP_IN),e.xp6(1),e.Q6J("ngIf",S.direction===S.swapTypeEnum.SWAP_OUT),e.xp6(1),e.Q6J("stepControl",S.statusFormGroup),e.xp6(1),e.Q6J("formGroup",S.statusFormGroup),e.xp6(3),e.Q6J("expanded",!!S.swapStatus),e.xp6(4),e.Oqu(S.swapStatus?S.swapStatus.id?S.swapDirectionCaption+" request details":S.swapDirectionCaption+" error details":"Waiting for "+S.swapDirectionCaption+" request..."),e.xp6(1),e.Q6J("ngIf",S.swapStatus),e.xp6(1),e.Q6J("ngIf",!S.swapStatus)("ngIfElse",H),e.xp6(1),e.Q6J("ngIf",!S.swapStatus),e.xp6(1),e.Q6J("ngIf",S.swapStatus),e.xp6(2),e.Q6J("ngIf",S.swapStatus&&(S.swapStatus.error||!S.swapStatus.id)),e.xp6(2),e.Q6J("mat-dialog-close",!1)}}function a1(R,N){if(1&R&&e._UZ(0,"rtl-boltz-swap-status",53),2&R){const S=e.oxw();e.Q6J("swapStatus",S.swapStatus)("direction",S.direction)}}function r1(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"rtl-boltz-swapout-info-graphics",70),e.NdJ("stepNumberChange",function(G){e.CHM(S);const Le=e.oxw(2);return e.KtG(Le.stepNumber=G)}),e.qZA()}if(2&R){const S=e.oxw(2);e.Q6J("animationDirection",S.animationDirection)("stepNumber",S.stepNumber)}}function $n(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"rtl-boltz-swapin-info-graphics",70),e.NdJ("stepNumberChange",function(G){e.CHM(S);const Le=e.oxw(2);return e.KtG(Le.stepNumber=G)}),e.qZA()}if(2&R){const S=e.oxw(2);e.Q6J("animationDirection",S.animationDirection)("stepNumber",S.stepNumber)}}const K0=function(R,N){return{"dot-primary":R,"dot-primary-lighter":N}};function Jc(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"span",71),e.NdJ("click",function(){const Le=e.CHM(S).$implicit,Mt=e.oxw(2);return e.KtG(Mt.onStepChanged(Le))}),e._UZ(1,"p",72),e.qZA()}if(2&R){const S=N.$implicit,H=e.oxw(2);e.xp6(1),e.Q6J("ngClass",e.WLB(1,K0,H.stepNumber===S,H.stepNumber!==S))}}function o1(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"button",73),e.NdJ("click",function(){e.CHM(S);const G=e.oxw(2);return e.KtG(G.onReadMore())}),e._uU(1,"Read More"),e.qZA()}}function Q0(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"button",74),e.NdJ("click",function(){e.CHM(S);const G=e.oxw(2);return e.KtG(G.onStepChanged(4))}),e._uU(1,"Back"),e.qZA()}}function s1(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"button",75),e.NdJ("click",function(){e.CHM(S);const G=e.oxw(2);return G.flgShowInfo=!1,e.KtG(G.stepNumber=1)}),e._uU(1,"Close"),e.qZA()}}function q0(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"button",76),e.NdJ("click",function(){e.CHM(S);const G=e.oxw(2);return G.flgShowInfo=!1,e.KtG(G.stepNumber=1)}),e._uU(1,"Close"),e.qZA()}}function w2(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"button",77),e.NdJ("click",function(){e.CHM(S);const G=e.oxw(2);return e.KtG(G.onStepChanged(G.stepNumber-1))}),e._uU(1,"Back"),e.qZA()}}function wl(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"button",78),e.NdJ("click",function(){e.CHM(S);const G=e.oxw(2);return e.KtG(G.onStepChanged(G.stepNumber+1))}),e._uU(1,"Next"),e.qZA()}}const c1=function(){return[1,2,3,4,5]};function cd(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",54)(1,"div",18)(2,"mat-card-header",55)(3,"div",56),e._UZ(4,"span",7),e.qZA(),e.TgZ(5,"div",57)(6,"button",58),e.NdJ("click",function(){e.CHM(S);const G=e.oxw();return G.flgShowInfo=!1,e.KtG(G.stepNumber=1)}),e._uU(7,"X"),e.qZA()()(),e.TgZ(8,"mat-card-content",59),e.YNc(9,r1,1,2,"rtl-boltz-swapout-info-graphics",60),e.YNc(10,$n,1,2,"rtl-boltz-swapin-info-graphics",60),e.qZA(),e.TgZ(11,"div",61),e.YNc(12,Jc,2,4,"span",62),e.qZA(),e.TgZ(13,"div",63),e.YNc(14,o1,2,0,"button",64),e.YNc(15,Q0,2,0,"button",65),e.YNc(16,s1,2,0,"button",66),e.YNc(17,q0,2,0,"button",67),e.YNc(18,w2,2,0,"button",68),e.YNc(19,wl,2,0,"button",69),e.qZA()()()}if(2&R){const S=e.oxw();e.Q6J("@opacityAnimation",void 0),e.xp6(9),e.Q6J("ngIf",S.direction===S.swapTypeEnum.SWAP_OUT),e.xp6(1),e.Q6J("ngIf",S.direction===S.swapTypeEnum.SWAP_IN),e.xp6(2),e.Q6J("ngForOf",e.DdM(10,c1)),e.xp6(2),e.Q6J("ngIf",5===S.stepNumber),e.xp6(1),e.Q6J("ngIf",5===S.stepNumber),e.xp6(1),e.Q6J("ngIf",5===S.stepNumber),e.xp6(1),e.Q6J("ngIf",S.stepNumber<5),e.xp6(1),e.Q6J("ngIf",S.stepNumber>1&&S.stepNumber<5),e.xp6(1),e.Q6J("ngIf",S.stepNumber<5)}}let M2=(()=>{var R;class N{constructor(H,G,Le,Mt,Xt,oi,Ci){this.dialogRef=H,this.data=G,this.boltzService=Le,this.formBuilder=Mt,this.decimalPipe=Xt,this.logger=oi,this.commonService=Ci,this.faInfoCircle=Xi.sqG,this.serviceInfo={fees:{percentage:null,miner:{normal:null,reverse:null}},limits:{minimal:1e4,maximal:5e7}},this.swapTypeEnum=Ne.hc,this.direction=Ne.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=Ne.cu,this.animationDirection="forward",this.flgEditable=!0,this.unSubs=[new Fi.x,new Fi.x,new Fi.x,new Fi.x,new Fi.x,new Fi.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.serviceInfo=this.data.serviceInfo,this.direction=this.data.direction||Ne.hc.SWAP_OUT,this.swapDirectionCaption=this.direction===Ne.hc.SWAP_OUT?"Swap Out":"Swap in",this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.serviceInfo.limits?.minimal,[ti.kI.required,ti.kI.min(this.serviceInfo.limits?.minimal||0),ti.kI.max(this.serviceInfo.limits?.maximal||0)]]}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[ti.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges()}ngAfterViewInit(){this.direction===Ne.hc.SWAP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.direction===Ne.hc.SWAP_OUT&&this.addressFormGroup.valueChanges.pipe((0,sn.R)(this.unSubs[2])).subscribe(H=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(H){"external"===H.value?(this.addressFormGroup.controls.address.setValidators([ti.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.serviceInfo.limits?.minimal&&this.inputFormGroup.controls.amount.value<+this.serviceInfo.limits.minimal||this.serviceInfo.limits?.maximal&&this.inputFormGroup.controls.amount.value>+this.serviceInfo.limits.maximal||this.direction===Ne.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===Ne.hc.SWAP_IN?this.boltzService.swapIn(this.inputFormGroup.controls.amount.value).pipe((0,sn.R)(this.unSubs[3])).subscribe({next:H=>{this.swapStatus=H,this.boltzService.listSwaps(),this.flgEditable=!0},error:H=>{this.swapStatus={error:H},this.flgEditable=!0,this.logger.error(H)}}):this.boltzService.swapOut(this.inputFormGroup.controls.amount.value,"external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"").pipe((0,sn.R)(this.unSubs[4])).subscribe({next:G=>{this.swapStatus=G,this.boltzService.listSwaps(),this.flgEditable=!0},error:G=>{this.swapStatus={error:G},this.flgEditable=!0,this.logger.error(G)}})}stepSelectionChanged(H){switch(H.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"}H.selectedIndex{H.next(null),H.complete()})}}return(R=N).\u0275fac=function(H){return new(H||R)(e.Y36(ra.so),e.Y36(ra.WI),e.Y36(Qc),e.Y36(ti.QS),e.Y36(Wi.JJ),e.Y36(ni.mQ),e.Y36(ut.v))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-boltz-swap-modal"]],viewQuery:function(H,G){if(1&H&&e.Gf(b2,5),2&H){let Le;e.iGM(Le=e.CRH())&&(G.stepper=Le.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"],["fxLayout","column","fxFlex","48"],["autoFocus","","matInput","","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"],["fxLayout","column","fxFlex","100",1,"mt-1"],["matInput","","tabindex","10","formControlName","address",3,"required"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-2"],["mat-button","","color","primary","tabindex","13","type","button",3,"click"],["fxLayout","column",3,"swapStatus","direction"],["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,"animationDirection","stepNumber","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,"animationDirection","stepNumber","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(H,G){1&H&&(e.YNc(0,fr,56,34,"div",0),e.YNc(1,a1,1,2,"ng-template",null,1,e.W1O),e.YNc(3,cd,20,11,"div",2)),2&H&&(e.Q6J("ngIf",!G.flgShowInfo),e.xp6(3),e.Q6J("ngIf",G.flgShowInfo))},dependencies:[Wi.mk,Wi.sg,Wi.O5,ti._Y,ti.Fj,ti.wV,ti.JJ,ti.JL,ti.Q7,ti.sg,ti.u,ji.xw,ji.Wh,ji.yH,Lt.oO,ra.ZT,bi.lW,Kn.dn,Kn.dk,Ht.ib,Ht.yz,Ht.yK,ur.Hw,hr.Nt,Si.KE,Si.hX,Si.bx,Si.TO,Si.R9,gl.pW,ui.VQ,ui.U0,ho.C0,ho.VY,ho.Vq,ho.Ic,hn.h,Hu,zu,bc,j0,Wi.JJ],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:30rem;min-height:30rem;overflow-x:hidden}"],data:{animation:[jc._]}}),N})();function ld(R,N){if(1&R&&(e.TgZ(0,"mat-option",42),e._uU(1),e.qZA()),2&R){const S=N.$implicit,H=e.oxw();e.Q6J("value",S),e.xp6(1),e.Oqu(H.getLabel(S))}}function yc(R,N){1&R&&e._UZ(0,"mat-progress-bar",43)}function dd(R,N){1&R&&(e.TgZ(0,"th",44),e._uU(1,"Status"),e.qZA())}function J0(R,N){if(1&R&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&R){const S=N.$implicit,H=e.oxw();e.xp6(1),e.Oqu(H.swapStateEnum[null==S?null:S.status])}}function hd(R,N){1&R&&(e.TgZ(0,"th",44),e._uU(1,"Swap ID"),e.qZA())}function X0(R,N){if(1&R&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&R){const S=N.$implicit;e.xp6(1),e.Oqu(null==S?null:S.id)}}function $0(R,N){1&R&&(e.TgZ(0,"th",44),e._uU(1,"Claim Address"),e.qZA())}const po=function(R){return{width:R}};function Xc(R,N){if(1&R&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&R){const S=N.$implicit,H=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,po,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.xp6(2),e.Oqu(null==S?null:S.claimAddress)}}function eh(R,N){1&R&&(e.TgZ(0,"th",44),e._uU(1,"Lockup Address"),e.qZA())}function S2(R,N){if(1&R&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&R){const S=N.$implicit,H=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,po,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.xp6(2),e.Oqu(null==S?null:S.lockupAddress)}}function th(R,N){1&R&&(e.TgZ(0,"th",48),e._uU(1,"Onchain Amount (Sats)"),e.qZA())}function E2(R,N){if(1&R&&(e.TgZ(0,"td",45)(1,"span",49),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&R){const S=N.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==S?null:S.onchainAmount))}}function ih(R,N){1&R&&(e.TgZ(0,"th",48),e._uU(1,"Expected Amount (Sats)"),e.qZA())}function nh(R,N){if(1&R&&(e.TgZ(0,"td",45)(1,"span",49),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&R){const S=N.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==S?null:S.expectedAmount))}}function T2(R,N){1&R&&(e.TgZ(0,"th",44),e._uU(1,"Error"),e.qZA())}function A2(R,N){if(1&R&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&R){const S=N.$implicit,H=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,po,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.xp6(2),e.Oqu(null==S?null:S.error)}}function ah(R,N){1&R&&(e.TgZ(0,"th",44),e._uU(1,"Private Key"),e.qZA())}function rh(R,N){if(1&R&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&R){const S=N.$implicit,H=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,po,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.xp6(2),e.Oqu(null==S?null:S.privateKey)}}function L2(R,N){1&R&&(e.TgZ(0,"th",44),e._uU(1,"Preimage"),e.qZA())}function l1(R,N){if(1&R&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&R){const S=N.$implicit,H=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,po,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.xp6(2),e.Oqu(null==S?null:S.preimage)}}function bs(R,N){1&R&&(e.TgZ(0,"th",44),e._uU(1,"Redeem Script"),e.qZA())}function Ml(R,N){if(1&R&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&R){const S=N.$implicit,H=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,po,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.xp6(2),e.Oqu(null==S?null:S.redeemScript)}}function ud(R,N){1&R&&(e.TgZ(0,"th",44),e._uU(1,"Invoice"),e.qZA())}function D2(R,N){if(1&R&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&R){const S=N.$implicit,H=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,po,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.xp6(2),e.Oqu(null==S?null:S.invoice)}}function fd(R,N){1&R&&(e.TgZ(0,"th",48),e._uU(1,"Timeout Block Height"),e.qZA())}function Gu(R,N){if(1&R&&(e.TgZ(0,"td",45)(1,"span",49),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&R){const S=N.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==S?null:S.timeoutBlockHeight))}}function I2(R,N){1&R&&(e.TgZ(0,"th",44),e._uU(1,"Lockup Tx ID"),e.qZA())}function Wu(R,N){if(1&R&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&R){const S=N.$implicit;e.xp6(1),e.Oqu(null==S?null:S.lockupTransactionId)}}function md(R,N){1&R&&(e.TgZ(0,"th",44),e._uU(1,"Claim Tx ID"),e.qZA())}function d1(R,N){if(1&R&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&R){const S=N.$implicit;e.xp6(1),e.Oqu(null==S?null:S.claimTransactionId)}}function Zu(R,N){1&R&&(e.TgZ(0,"th",44),e._uU(1,"Refund Tx ID"),e.qZA())}function oh(R,N){if(1&R&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&R){const S=N.$implicit;e.xp6(1),e.Oqu(null==S?null:S.refundTransactionId)}}function pd(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"th",50)(1,"div",51)(2,"mat-select",52),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",53),e.NdJ("click",function(){e.CHM(S);const G=e.oxw();return e.KtG(G.onDownloadCSV())}),e._uU(5,"Download CSV"),e.qZA()()()()}}function sh(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"td",54)(1,"button",55),e.NdJ("click",function(G){const Mt=e.CHM(S).$implicit,Xt=e.oxw();return e.KtG(Xt.onSwapClick(Mt,G))}),e._uU(2,"View Info"),e.qZA()()}}function ch(R,N){if(1&R&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&R){const S=e.oxw(2);e.xp6(1),e.Oqu(S.emptyTableMessage)}}function k2(R,N){if(1&R&&(e.TgZ(0,"td",56),e.YNc(1,ch,2,1,"p",57),e.qZA()),2&R){const S=e.oxw();e.xp6(1),e.Q6J("ngIf",!(null!=S.listSwaps&&S.listSwaps.data)||(null==S.listSwaps||null==S.listSwaps.data?null:S.listSwaps.data.length)<1)}}const lh=function(R){return{"display-none":R}};function O2(R,N){if(1&R&&e._UZ(0,"tr",58),2&R){const S=e.oxw();e.Q6J("ngClass",e.VKq(1,lh,(null==S.listSwaps?null:S.listSwaps.data)&&(null==S.listSwaps||null==S.listSwaps.data?null:S.listSwaps.data.length)>0))}}function h1(R,N){1&R&&e._UZ(0,"tr",59)}function P2(R,N){1&R&&e._UZ(0,"tr",60)}const gd=function(){return["all"]},R2=function(R){return{"overflow-auto error-border":R,"overflow-auto":!0}},Qa=function(){return["no_swap"]};let _d=(()=>{var R;class N{constructor(H,G,Le,Mt,Xt){this.logger=H,this.commonService=G,this.store=Le,this.boltzService=Mt,this.camelCaseWithReplace=Xt,this.selectedSwapType=Ne.hc.SWAP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.nodePageDefs=Ne.hG,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="boltz",this.tableSettingSwapOut={tableId:"swap_out",recordsPerPage:Ne.IV,sortBy:"status",sortOrder:Ne.Pi.DESCENDING},this.tableSettingSwapIn={tableId:"swap_in",recordsPerPage:Ne.IV,sortBy:"status",sortOrder:Ne.Pi.DESCENDING},this.swapStateEnum=Ne.Qw,this.swapTypeEnum=Ne.hc,this.faHistory=Xi.qO$,this.swapCaption="Swap Out",this.displayedColumns=[],this.listSwaps=new Zn.by([]),this.selFilter="",this.pageSize=Ne.IV,this.pageSizeOptions=Ne.TJ,this.screenSize="",this.screenSizeEnum=Ne.cu,this.unSubs=[new Fi.x,new Fi.x,new Fi.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(gs.Pr).pipe((0,sn.R)(this.unSubs[0])).subscribe(H=>{this.tableSettingSwapOut=H.pageSettings.find(G=>G.pageId===this.PAGE_ID)?.tables.find(G=>G.tableId===this.tableSettingSwapOut.tableId)||Ne.gK.find(G=>G.pageId===this.PAGE_ID)?.tables.find(G=>G.tableId===this.tableSettingSwapOut.tableId),this.tableSettingSwapIn=H.pageSettings.find(G=>G.pageId===this.PAGE_ID)?.tables.find(G=>G.tableId===this.tableSettingSwapIn.tableId)||Ne.gK.find(G=>G.pageId===this.PAGE_ID)?.tables.find(G=>G.tableId===this.tableSettingSwapIn.tableId),this.setTableColumns(),this.swapsData&&this.swapsData.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadSwapsTable(this.swapsData),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)})}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(H){H.selectedSwapType&&!H.selectedSwapType.firstChange&&this.setTableColumns(),this.swapCaption=this.selectedSwapType===Ne.hc.SWAP_IN?"Swap In":"Swap Out",this.loadSwapsTable(this.swapsData)}setTableColumns(){this.selectedSwapType===Ne.hc.SWAP_IN?(this.displayedColumns=this.screenSize===Ne.cu.XS||this.screenSize===Ne.cu.SM?JSON.parse(JSON.stringify(this.tableSettingSwapIn.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSettingSwapIn.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSettingSwapIn.recordsPerPage?+this.tableSettingSwapIn.recordsPerPage:Ne.IV):(this.displayedColumns=this.screenSize===Ne.cu.XS||this.screenSize===Ne.cu.SM?JSON.parse(JSON.stringify(this.tableSettingSwapOut.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSettingSwapOut.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSettingSwapOut.recordsPerPage?+this.tableSettingSwapOut.recordsPerPage:Ne.IV)}applyFilter(){this.listSwaps&&""!==this.selFilter&&(this.listSwaps.filter=this.selFilter.trim().toLowerCase())}getLabel(H){const Le=this.nodePageDefs[this.PAGE_ID][this.selectedSwapType===Ne.hc.SWAP_IN?this.tableSettingSwapIn.tableId:this.tableSettingSwapOut.tableId].allowedColumns.find(Mt=>Mt.column===H);return Le?Le.label?Le.label:this.camelCaseWithReplace.transform(Le.column,"_"):this.commonService.titleCase(H)}setFilterPredicate(){this.listSwaps.filterPredicate=(H,G)=>{let Le="";switch(this.selFilterBy){case"all":Le=JSON.stringify(H).toLowerCase();break;case"status":Le=H?.status?this.swapStateEnum[H?.status]:"";break;default:Le=typeof H[this.selFilterBy]>"u"?"":"string"==typeof H[this.selFilterBy]?H[this.selFilterBy].toLowerCase():"boolean"==typeof H[this.selFilterBy]?H[this.selFilterBy]?"yes":"no":H[this.selFilterBy].toString()}return"status"===this.selFilterBy?0===Le.indexOf(G):Le.includes(G)}}onSwapClick(H,G){this.boltzService.swapInfo(H.id||"").pipe((0,sn.R)(this.unSubs[1])).subscribe(Le=>{this.store.dispatch((0,Rt.qR)({payload:{data:{type:Ne.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"status",value:Ne.Qw[(Le=this.selectedSwapType===Ne.hc.SWAP_IN?Le.swap:Le.reverseSwap).status],title:"Status",width:50,type:Ne.Gi.STRING},{key:"id",value:Le.id,title:"ID",width:50,type:Ne.Gi.STRING}],[{key:"amount",value:Le.onchainAmount?Le.onchainAmount:Le.expectedAmount?Le.expectedAmount:0,title:Le.onchainAmount?"Onchain Amount (Sats)":Le.expectedAmount?"Expected Amount (Sats)":"Amount (Sats)",width:50,type:Ne.Gi.NUMBER},{key:"timeoutBlockHeight",value:Le.timeoutBlockHeight,title:"Timeout Block Height",width:50,type:Ne.Gi.NUMBER}],[{key:"address",value:Le.claimAddress?Le.claimAddress:Le.lockupAddress?Le.lockupAddress:"",title:Le.claimAddress?"Claim Address":Le.lockupAddress?"Lockup Address":"Address",width:100,type:Ne.Gi.STRING}],[{key:"invoice",value:Le.invoice,title:"Invoice",width:100,type:Ne.Gi.STRING}],[{key:"privateKey",value:Le.privateKey,title:"Private Key",width:100,type:Ne.Gi.STRING}],[{key:"preimage",value:Le.preimage,title:"Preimage",width:100,type:Ne.Gi.STRING}],[{key:"redeemScript",value:Le.redeemScript,title:"Redeem Script",width:100,type:Ne.Gi.STRING}],[{key:"lockupTransactionId",value:Le.lockupTransactionId,title:"Lockup Transaction ID",width:50,type:Ne.Gi.STRING},{key:"transactionId",value:Le.claimTransactionId?Le.claimTransactionId:Le.refundTransactionId?Le.refundTransactionId:"",title:Le.claimTransactionId?"Claim Transaction ID":Le.refundTransactionId?"Refund Transaction ID":"Transaction ID",width:50,type:Ne.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(H){this.listSwaps=new Zn.by(H?[...H]:[]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(G,Le)=>G[Le]&&isNaN(G[Le])?G[Le].toLocaleLowerCase():G[Le]?+G[Le]:null,this.paginator&&this.paginator.firstPage(),this.listSwaps.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===Ne.hc.SWAP_IN?"Swap in":"Swap out")}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return(R=N).\u0275fac=function(H){return new(H||R)(e.Y36(ni.mQ),e.Y36(ut.v),e.Y36(ki.yh),e.Y36(Qc),e.Y36($r.D3))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-boltz-swaps"]],viewQuery:function(H,G){if(1&H&&(e.Gf(Yc.YE,5),e.Gf(pl.NW,5)),2&H){let Le;e.iGM(Le=e.CRH())&&(G.sort=Le.first),e.iGM(Le=e.CRH())&&(G.paginator=Le.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[e._Bn([{provide:Pi.PG,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:pl.ye,useValue:(0,Ne.pt)("Swaps")}]),e.TTD],decls:76,vars:20,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.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["table",""],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","claimAddress"],["matColumnDef","lockupAddress"],["matColumnDef","onchainAmount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","expectedAmount"],["matColumnDef","error"],["matColumnDef","privateKey"],["matColumnDef","preimage"],["matColumnDef","redeemScript"],["matColumnDef","invoice"],["matColumnDef","timeoutBlockHeight"],["matColumnDef","lockupTransactionId"],["matColumnDef","claimTransactionId"],["matColumnDef","refundTransactionId"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayout.gt-xs","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(H,G){1&H&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span",4),e._uU(5),e.qZA()(),e.TgZ(6,"div",5)(7,"mat-form-field",6)(8,"mat-label"),e._uU(9,"Filter By"),e.qZA(),e.TgZ(10,"mat-select",7),e.NdJ("ngModelChange",function(Mt){return G.selFilterBy=Mt})("selectionChange",function(){return G.selFilter="",G.applyFilter()}),e.TgZ(11,"perfect-scrollbar"),e.YNc(12,ld,2,2,"mat-option",8),e.qZA()()(),e.TgZ(13,"mat-form-field",6)(14,"mat-label"),e._uU(15,"Filter"),e.qZA(),e.TgZ(16,"input",9),e.NdJ("ngModelChange",function(Mt){return G.selFilter=Mt})("input",function(){return G.applyFilter()})("keyup",function(){return G.applyFilter()}),e.qZA()()()(),e.TgZ(17,"div",10)(18,"div",11),e.YNc(19,yc,1,0,"mat-progress-bar",12),e.TgZ(20,"table",13,14),e.ynx(22,15),e.YNc(23,dd,2,0,"th",16),e.YNc(24,J0,2,1,"td",17),e.BQk(),e.ynx(25,18),e.YNc(26,hd,2,0,"th",16),e.YNc(27,X0,2,1,"td",17),e.BQk(),e.ynx(28,19),e.YNc(29,$0,2,0,"th",16),e.YNc(30,Xc,4,4,"td",17),e.BQk(),e.ynx(31,20),e.YNc(32,eh,2,0,"th",16),e.YNc(33,S2,4,4,"td",17),e.BQk(),e.ynx(34,21),e.YNc(35,th,2,0,"th",22),e.YNc(36,E2,4,3,"td",17),e.BQk(),e.ynx(37,23),e.YNc(38,ih,2,0,"th",22),e.YNc(39,nh,4,3,"td",17),e.BQk(),e.ynx(40,24),e.YNc(41,T2,2,0,"th",16),e.YNc(42,A2,4,4,"td",17),e.BQk(),e.ynx(43,25),e.YNc(44,ah,2,0,"th",16),e.YNc(45,rh,4,4,"td",17),e.BQk(),e.ynx(46,26),e.YNc(47,L2,2,0,"th",16),e.YNc(48,l1,4,4,"td",17),e.BQk(),e.ynx(49,27),e.YNc(50,bs,2,0,"th",16),e.YNc(51,Ml,4,4,"td",17),e.BQk(),e.ynx(52,28),e.YNc(53,ud,2,0,"th",16),e.YNc(54,D2,4,4,"td",17),e.BQk(),e.ynx(55,29),e.YNc(56,fd,2,0,"th",22),e.YNc(57,Gu,4,3,"td",17),e.BQk(),e.ynx(58,30),e.YNc(59,I2,2,0,"th",16),e.YNc(60,Wu,2,1,"td",17),e.BQk(),e.ynx(61,31),e.YNc(62,md,2,0,"th",16),e.YNc(63,d1,2,1,"td",17),e.BQk(),e.ynx(64,32),e.YNc(65,Zu,2,0,"th",16),e.YNc(66,oh,2,1,"td",17),e.BQk(),e.ynx(67,33),e.YNc(68,pd,6,0,"th",34),e.YNc(69,sh,3,0,"td",35),e.BQk(),e.ynx(70,36),e.YNc(71,k2,2,1,"td",37),e.BQk(),e.YNc(72,O2,1,3,"tr",38),e.YNc(73,h1,1,0,"tr",39),e.YNc(74,P2,1,0,"tr",40),e.qZA(),e._UZ(75,"mat-paginator",41),e.qZA()()()),2&H&&(e.xp6(3),e.Q6J("icon",G.faHistory),e.xp6(2),e.hij("",G.swapCaption," History"),e.xp6(5),e.Q6J("ngModel",G.selFilterBy),e.xp6(2),e.Q6J("ngForOf",e.DdM(16,gd).concat(G.displayedColumns.slice(0,-1))),e.xp6(4),e.Q6J("ngModel",G.selFilter),e.xp6(3),e.Q6J("ngIf",!0===G.flgLoading[0]),e.xp6(1),e.Q6J("matSortActive",G.selectedSwapType===G.swapTypeEnum.SWAP_IN?G.tableSettingSwapIn.sortBy:G.tableSettingSwapOut.sortBy)("matSortDirection",G.selectedSwapType===G.swapTypeEnum.SWAP_IN?G.tableSettingSwapIn.sortOrder:G.tableSettingSwapOut.sortOrder)("dataSource",G.listSwaps)("ngClass",e.VKq(17,R2,"error"===G.flgLoading[0])),e.xp6(52),e.Q6J("matFooterRowDef",e.DdM(19,Qa)),e.xp6(1),e.Q6J("matHeaderRowDef",G.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",G.displayedColumns),e.xp6(1),e.Q6J("pageSize",G.pageSize)("pageSizeOptions",G.pageSizeOptions)("showFirstLastButtons",G.screenSize!==G.screenSizeEnum.XS))},dependencies:[Wi.mk,Wi.sg,Wi.O5,Wi.PC,ti.Fj,ti.JJ,ti.On,La.BN,ji.xw,ji.Wh,ji.yH,Lt.oO,Lt.Zl,bi.lW,hr.Nt,Si.KE,Si.hX,gl.pW,Pi.gD,Pi.$L,qi.ey,Yc.YE,Yc.nU,Zn.BZ,Zn.fO,Zn.as,Zn.w1,Zn.Dz,Zn.nj,Zn.mD,Zn.Ke,Zn.ge,Zn.ev,Zn.yh,Zn.XQ,Zn.Gk,Zn.Q2,pl.NW,tn.Vv,tn.$V,Wi.JJ]}),N})();const dh=function(R){return["../",R]};function N2(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",16),e.NdJ("click",function(){const Le=e.CHM(S).$implicit,Mt=e.oxw();return e.KtG(Mt.onSelectedIndexChange(Le))}),e._uU(1),e.qZA()}if(2&R){const S=N.$implicit,H=e.oxw();e.Q6J("active",H.activeTab.link===S.link)("routerLink",e.VKq(3,dh,S.link)),e.xp6(1),e.Oqu(S.name)}}let vd=(()=>{var R;class N{constructor(H,G,Le){this.router=H,this.store=G,this.boltzService=Le,this.swapTypeEnum=Ne.hc,this.selectedSwapType=Ne.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 Fi.x,new Fi.x,new Fi.x,new Fi.x]}ngOnInit(){this.boltzService.listSwaps();const H=this.links.find(G=>this.router.url.includes(G.link));this.activeTab=H||this.links[0],this.selectedSwapType=H&&"swapin"===H.link?Ne.hc.SWAP_IN:Ne.hc.SWAP_OUT,this.router.events.pipe((0,sn.R)(this.unSubs[0]),(0,Ya.h)(G=>G instanceof Wn.Av)).subscribe({next:G=>{const Le=this.links.find(Mt=>G.urlAfterRedirects.includes(Mt.link));this.activeTab=Le||this.links[0],this.selectedSwapType=Le&&"swapin"===Le.link?Ne.hc.SWAP_IN:Ne.hc.SWAP_OUT}}),this.boltzService.swapsChanged.pipe((0,sn.R)(this.unSubs[1])).subscribe({next:G=>{this.swaps=G,this.swapsData=this.selectedSwapType===Ne.hc.SWAP_IN&&G.swaps?G.swaps:this.selectedSwapType===Ne.hc.SWAP_OUT&&G.reverseSwaps?G.reverseSwaps:[],this.flgLoading[0]=!1},error:G=>{this.flgLoading[0]="error",this.emptyTableMessage=G.message?G.message:"No swap "+(this.selectedSwapType===Ne.hc.SWAP_IN?"in":"out")+" available."}})}onSelectedIndexChange(H){"swapin"===H.link?(this.selectedSwapType=Ne.hc.SWAP_IN,this.swapsData=this.swaps.swaps||[]):(this.selectedSwapType=Ne.hc.SWAP_OUT,this.swapsData=this.swaps.reverseSwaps||[])}onSwap(H){this.boltzService.serviceInfo().pipe((0,sn.R)(this.unSubs[2])).subscribe({next:G=>{this.store.dispatch((0,Rt.qR)({payload:{data:{serviceInfo:G,direction:H,component:M2}}}))}})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return(R=N).\u0275fac=function(H){return new(H||R)(e.Y36(Wn.F0),e.Y36(ki.yh),e.Y36(Qc))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-boltz-root"]],decls:20,vars:7,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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["tabPanel",""],["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"],["mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(H,G){if(1&H&&(e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1)(2,"g",2)(3,"g",3),e._UZ(4,"circle",4)(5,"path",5)(6,"path",6),e.qZA()()(),e.kcU(),e.TgZ(7,"span",7),e._uU(8,"Boltz"),e.qZA()(),e.TgZ(9,"div",8)(10,"mat-card")(11,"mat-card-content",9)(12,"nav",10),e.YNc(13,N2,2,5,"div",11),e.qZA(),e._UZ(14,"mat-tab-nav-panel",null,12),e.TgZ(16,"div",13)(17,"button",14),e.NdJ("click",function(){return G.onSwap(G.selectedSwapType)}),e._uU(18),e.qZA()(),e._UZ(19,"rtl-boltz-swaps",15),e.qZA()()()),2&H){const Le=e.MAs(15);e.xp6(12),e.Q6J("tabPanel",Le),e.xp6(1),e.Q6J("ngForOf",G.links),e.xp6(5),e.hij("Start ",G.activeTab.name,""),e.xp6(1),e.Q6J("selectedSwapType",G.selectedSwapType)("swapsData",G.swapsData)("flgLoading",G.flgLoading)("emptyTableMessage",G.emptyTableMessage)}},dependencies:[Wi.sg,ji.xw,ji.Wh,ji.yH,bi.lW,Kn.a8,Kn.dn,ze.BU,ze.sW,ze.Nj,Wn.rH,_d]}),N})();class Lr{constructor(N){this.help=N}}function uh(R,N){if(1&R&&(e.TgZ(0,"mat-expansion-panel",8)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),e._uU(3),e.qZA()(),e.TgZ(4,"mat-panel-description",9),e._UZ(5,"span",10),e.TgZ(6,"a",11),e._uU(7),e.qZA()()()),2&R){const S=e.oxw().$implicit,H=e.oxw();e.xp6(3),e.Oqu(S.help.question),e.xp6(2),e.Q6J("innerHTML",S.help.answer,e.oJD),e.xp6(1),e.Q6J("routerLink",H.flgLoggedIn?S.help.link:"/login"),e.xp6(1),e.Oqu(H.flgLoggedIn?S.help.linkCaption:"Login to go to the page")}}function ys(R,N){if(1&R&&(e.TgZ(0,"div",6),e.YNc(1,uh,8,4,"mat-expansion-panel",7),e.qZA()),2&R){const S=N.$implicit,H=e.oxw();e.xp6(1),e.Q6J("ngIf","ALL"===S.help.lnImplementation||S.help.lnImplementation===H.selNode.lnImplementation)}}let u1=(()=>{var R;class N{constructor(H,G){this.store=H,this.sessionService=G,this.helpTopics=[],this.faQuestion=Xi.Psp,this.LNPLink="/lnd/",this.flgLoggedIn=!1,this.unSubs=[new Fi.x,new Fi.x,new Fi.x,new Fi.x]}ngOnInit(){this.store.select(xa.dT).pipe((0,sn.R)(this.unSubs[0])).subscribe(H=>{this.selNode=H,this.selNode.lnImplementation&&""!==this.selNode.lnImplementation.trim()&&(this.LNPLink="/"+this.selNode.lnImplementation.toLowerCase()+"/",this.addHelpTopics())}),this.sessionService.watchSession().pipe((0,sn.R)(this.unSubs[1])).subscribe(H=>{this.flgLoggedIn=!!H.token}),this.sessionService.getItem("token")&&(this.flgLoggedIn=!0)}addHelpTopics(){this.helpTopics=[],this.helpTopics.push(new Lr({question:"Getting started",answer:'Funding your node is the first step to get started.\nGo to the "On-chain" page of the app:\n1. Generate a new address on the "Recieve" tab.\n2. Send funds to the address.\n3. Wait for the balance to be confirmed on-chain before proceeding further.\n3. Connecting with network peers and opening channels is next.\n',link:this.LNPLink+"onchain/receive/utxos",linkCaption:"On-Chain",lnImplementation:"ALL"})),this.helpTopics.push(new Lr({question:"Connect with peers",answer:'Connect with network peers to open channels with them.\nGo to "Peer/Channels" page under the "Lightning" menu :\n1. Get the peer pubkey and host address in the pubkey@ip:port format.\n2. On the "Peers" enter the peer address and connect.\n3. Once the peer is connected, you can open channel with the peer.\n4. A variety of actions can be performed on the connected peers page for each peer:\n a. View Info - View the peer details.\n b. Open Channel - Open channel with the peer.\n c. Disconnect - Disconnect from the peer.\n',link:this.LNPLink+"connections/peers",linkCaption:"Peers",lnImplementation:"ALL"})),this.helpTopics.push(new Lr({question:"Opening Channels",answer:'Open channels with a connected peer.\nGo to "Peer/Channels" page under the "Lightning" menu:\n1. On the "Channels" section, click on "Open Channel"\n2. On the "Open Channel" modal, select the alias of the connected peer from the drop-down\n2. Specify the amount to commit to the channel and click on "Open Channel".\n3. There are a variety of options available while opening a channel. \n a. Private Channel - When this option is selected, a private channel is opened with the peer. \n b. Priority (advanced option) - Specify either Target confirmation Block or Fee in Sat/vByte. \n c. Spend Unconfirmd Output (advanced option) - Allow channels to be opened with unconfirmed UTXOs.\n4. Track the pending open channels under the "Pending" tab. \n5. Wait for the channel to be confirmed. Only a confimed channel can be used for payments or routing. \n',link:this.LNPLink+"connections/channels/open",linkCaption:"Channels",lnImplementation:"ALL"})),this.helpTopics.push(new Lr({question:"Channel Management",answer:'Channel maintenance and balance score.\nGo to "Peer/Channels" page under the "Lightning" menu:\n1. A variety of actions can be perfomed on the open channels under the "Open" tab, with the "Actions" button:\n a. View Info - View the channel details.\n b. View Remote Fee - View the fee policy on the channel of the remote peer.\n c. Update Fee Policy - Modify the fee policy on the channel.\n d. Circular Rebalance - Off-chain rebalance channels by making a payment to yourself across a circular path of chained payment channels.\n e. Close Channel - Close the channel.\n2. Balance Score is a "balancedness" metric score for the channel. \n a. It helps measure how balanced the remote and local balances are, on a channel.\n b. A perfectly balanced channel has a score of one, where as a completely lopsided one has a score of zero.\n c. The formula for calculating the score is "1 - abs((local bal - remote bal)/total bal)".\n',link:this.LNPLink+"connections/channels/open",linkCaption:"Channels",lnImplementation:"ALL"})),this.helpTopics.push(new Lr({question:"Buying Liquidity",answer:'Buying liquidity for your node.\nGo to "Liquidity Ads" page under the "Lightning" menu:\n 1. Filter ads by liquidity amount and channel opening fee rate.\n 2. Research additionally on liquidity provider nodes before selecting.\n 3. Select the best liquidity node peer for your need and click on "Open Channel" from "Actions" drop-down.\n 4. Confirm amount, rates and total cost on the modal and click on "Execute" to buy liquidity.\n',link:this.LNPLink+"liquidityads",linkCaption:"Liquidity Ads",lnImplementation:"CLN"})),this.helpTopics.push(new Lr({question:"Payments",answer:'Sending Payments from your node.\nGo to the "Transactions" page under the "Lightning" menu :\nPayments tab is for making payments via your node\n 1. Input a non-expired lightning invoice (Bolt11 format) in the "Payment Request" field and click on "Send Payment" to send.\n 2. Advanced option # 1 (LND only) - Specify a limit on the routing fee which you are willing to pay, for the payment.\n 3. Advanced option # 2 (LND only) - Specify the outgoing channel which you want the payment to go through.\n',link:this.LNPLink+"transactions/payments",linkCaption:"Payments",lnImplementation:"ALL"})),this.helpTopics.push(new Lr({question:"Invoices",answer:'Receiving Payments on your node.\nGo to the "Transactions" page under the "Lightning" menu :\nInvoices tab is for receiving payments on your node.\n 1. Memo - Description you want to provide on the invoice.\n 2. Expiry - The time period, after which the invoice will be invalid.\n 3. Private Routing Hints - Generate an invoice with routing hints for private channels.\n',link:this.LNPLink+"transactions/invoices",linkCaption:"Invoices",lnImplementation:"ALL"})),this.helpTopics.push(new Lr({question:"Offers",answer:'Send offer payments, create offer invoices and bookmark paid offers on your node.\nGo to the "Transactions" page under the "Lightning" menu :\nPayment for bolt12 offer invoice can be done on "Payments" tab:\n 1. Click on "Send Payment" button.\n 2. Select "Offer" option on the modal.\n 2. Offer Request - Input offer request (Bolt12 format) in the input box.\n 3. Bookmark - Select the checkbox to bookmark this offer for future use.\nOffers tab is for creating bolt12 offer invoice on your node:\n 1. Click on "Create Offer" button.\n 2. Description - Description you want to provide on the offer invoice.\n 3. Amount - Amount for the offer invoice.\n 4. issuer - issuer of the offer.\nPaid offer bookmarks shows the list of paid offers saved for future payments.\n',link:this.LNPLink+"transactions/offers",linkCaption:"Offers",lnImplementation:"CLN"})),this.helpTopics.push(new Lr({question:"Channel Backups",answer:'Channel Backups are important to ensure that you have means to recover funds in case of node failures.\nBackup folder location can be customized in the RTL config file with the channelBackupPath field.\nRTL automatically creates all channel backup on server startup, as well as everytime a channel is opened or closed\nYou can verify the all channel backup file by clicking on "Verify All" Button on the backup page.\nYou can also backup each channel individually and verify them.\n** Keep taking backups of your channels regularly and store them in redundant locations **.\n',link:this.LNPLink+"channelbackup/bckup",linkCaption:"Channel Backups",lnImplementation:"LND"})),this.helpTopics.push(new Lr({question:"Channel Restore",answer:'Channel Restore is used to recover funds from the channel backup files in case of node failures.\nFollow the below steps to perform fund restoration.\n\nPrerequisite:\n1. The node has been restored with the LND recovery seed.\n2. RTL generated channel backup file/s is available (all channel backup file is channel-all.bak).\n\nRecovery:\n1. Create a restore folder in your folder backup location, as specified in the RTL config file.\n2. Place the channel backup file in the restore folder.\n3. Go to the "Restore" tab under the "Backup" page of RTL.\n4. RTL will list the options to restore funds from the all channel file or individual channel backup file.\n5. Click on the Restore icon on the grid to restore the funds.\n6. Once the restore function is executed successfully, RTL will rename the backup file and it will not be accessible from the UI.\n7. Restore function will force close the channels and recover the funds from them.\n8. The pending close channels can be viewed under the "Pending" tab on the "Peer/Channels" page.\n9. Once the channel is closed, the corresponding pending on-chain transactions can be viewed on the "On-Chain" page.\n10. Once the transactions are confirmed, the channels funds will be restored to your LND Wallet.\n',link:this.LNPLink+"channelbackup/restore",linkCaption:"Channel Restore",lnImplementation:"LND"})),this.helpTopics.push(new Lr({question:"Forwarding History",answer:'Transactions routed by the node.\nGo to "Routing" page under the "Lightning" menu :\nTransactions routed by the node are listed on this page along with channels and the fee earned by transaction.\n',link:this.LNPLink+"routing/forwardinghistory",linkCaption:"Forwarding History",lnImplementation:"ALL"})),this.helpTopics.push(new Lr({question:"Lightning Reports",answer:'Routing and transactions data reports.\nGo to "Reports" page under the "Lightning" menu :\nReport can be generated on monthly/yearly basis by selecting the reporting period, month, and year.\n',link:this.LNPLink+"reports/routingreport",linkCaption:"Reports",lnImplementation:"ALL"})),this.helpTopics.push(new Lr({question:"Graph Lookup",answer:'Querying your node graph for network node and channel information.\nGo to "Graph Lookup" page under the "Lightning" menu :\nEach node maintains a network graph for the information on all the nodes and channels on the network.\nYou can lookup information on nodes and channels from your graph:\n 1. Node Lookup - Enter the pubkey to perform the lookup.\n 2. Channel Lookup - Enter the short channel ID to perform the lookup.\n',link:this.LNPLink+"graph/lookups",linkCaption:"Graph Lookup",lnImplementation:"ALL"})),this.helpTopics.push(new Lr({question:"Query Route",answer:'Querying Payment Routes.\nGo to the "Graph Lookup" page under the "Lightning" menu :\nQuery Routes tab is for querying a potential path to a node and a routing fee estimate for a payment amount.\n 1. Destination Pubkey - Pubkey of the node, you want to send the payment to.\n 2. Amount - Amount in Sats, which you want to send to the node.\n',link:this.LNPLink+"graph/queryroutes",linkCaption:"Query Routes",lnImplementation:"ALL"})),this.helpTopics.push(new Lr({question:"Sign & Verify Messages",answer:'Messages signing and verification.\nGo to the "Sign/Verify" page under the "Lightning" menu :\n 1. Sign your message on "Sign" tab.\n 2. Go to "Verify" tab to verify a message.\n',link:this.LNPLink+"messages/sign",linkCaption:"Messages",lnImplementation:"LND"})),this.helpTopics.push(new Lr({question:"Sign & Verify Messages",answer:'Messages signing and verification.\nGo to the "Sign/Verify" page under the "Lightning" menu :\n 1. Sign your message on "Sign" tab.\n 2. Go to "Verify" tab to verify a message.\n',link:this.LNPLink+"messages/sign",linkCaption:"Messages",lnImplementation:"CLN"})),this.helpTopics.push(new Lr({question:"Node Settings",answer:'RTL offers certain customizations on the UI to personalize your experience on the app\nGo to "Node Config" page to access the customization options.\nNode Layout Options\n 1. User Persona - Two options are available to change the dashboard based on the persona.\n 2. Currency Unit - You can choose your preferred fiat currency, to view the onchain and channel balances in the choosen fiat currency.\n 3. Other customizations include day and night mode and a choice of color themes to select from.\nServices Options\n Loop (LND only), Boltz (LND only) & Peerswap (CLN only) services can be configured.\nExperimental Options (CLN only)\n Offers and Liquidity Ads can be enabled/disabled.\nShow LN Config (if configured)\n Shows lightning config file.\n',link:"../config/layout",linkCaption:"Node Settings",lnImplementation:"ALL"})),this.helpTopics.push(new Lr({question:"Application Settings",answer:'RTL also offers certain customizations on the application level\nGo to top right menu "Settings" page to access these options.\nDefault Node Option\nIf you are managing multiple nodes via RTL UI, you can select the default node to load upon login.\nAuthentication Option\nPassword and 2FA update options are available here.\nShow Bitcoin Config (if configured)\n Shows bitcoin config file.\n',link:"../settings/app",linkCaption:"Application Settings",lnImplementation:"ALL"}))}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return(R=N).\u0275fac=function(H){return new(H||R)(e.Y36(ki.yh),e.Y36(Ga.m))},R.\u0275cmp=e.Xpm({type:R,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(H,G){1&H&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span",3),e._uU(4,"Help"),e.qZA()(),e.TgZ(5,"div",4)(6,"div",0),e.YNc(7,ys,2,1,"div",5),e.qZA()()()),2&H&&(e.xp6(2),e.Q6J("icon",G.faQuestion),e.xp6(5),e.Q6J("ngForOf",G.helpTopics))},dependencies:[Wi.sg,Wi.O5,La.BN,ji.xw,ji.Wh,ji.yH,Ht.ib,Ht.yz,Ht.yK,Ht.u4,Wn.rH],styles:[".mat-mdc-card-content[_ngcontent-%COMP%]{margin-bottom:4px}"]}),N})();var H2=m(9841);function z2(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Token is required."),e.qZA())}let bd=(()=>{var R;class N{constructor(H,G){this.dialogRef=H,this.store=G,this.token=""}onClose(){this.dialogRef.close(null)}onVerifyToken(){if(!this.token)return!0;this.dialogRef.close(),this.store.dispatch((0,Rt.M6)({payload:{twoFAToken:this.token}}))}}return(R=N).\u0275fac=function(H){return new(H||R)(e.Y36(ra.so),e.Y36(ki.yh))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-login-token"]],decls:19,vars:2,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","row",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100",3,"ngSubmit"],["tokenForm","ngForm"],["autoFocus","","matInput","","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(H,G){1&H&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5,"Two Factor Token"),e.qZA()(),e.TgZ(6,"button",5),e.NdJ("click",function(){return G.onClose()}),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"form",7,8),e.NdJ("ngSubmit",function(){return G.onVerifyToken()}),e.TgZ(11,"mat-form-field")(12,"mat-label"),e._uU(13,"Token"),e.qZA(),e.TgZ(14,"input",9),e.NdJ("ngModelChange",function(Mt){return G.token=Mt}),e.qZA(),e.YNc(15,z2,2,0,"mat-error",10),e.qZA(),e.TgZ(16,"div",11)(17,"button",12),e._uU(18,"Verify Token"),e.qZA()()()()()()),2&H&&(e.xp6(14),e.Q6J("ngModel",G.token),e.xp6(1),e.Q6J("ngIf",!G.token))},dependencies:[Wi.O5,ti._Y,ti.Fj,ti.JJ,ti.JL,ti.Q7,ti.On,ti.F,ji.xw,ji.Wh,ji.yH,bi.lW,Kn.dn,Kn.dk,hr.Nt,Si.KE,Si.hX,Si.TO,hn.h]}),N})();function fh(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}function yd(R,N){if(1&R&&(e.TgZ(0,"p",20)(1,"mat-icon",21),e._uU(2,"close"),e.qZA(),e._uU(3),e.qZA()),2&R){const S=e.oxw();e.xp6(3),e.hij(" ",S.loginErrorMessage," ")}}const mh=function(R){return{"padding-gap-large":R}},f1=function(R,N){return{"font-size-200":R,"font-size-300":N}};let xd=(()=>{var R;class N{constructor(H,G,Le,Mt){this.logger=H,this.store=G,this.rtlEffects=Le,this.commonService=Mt,this.faUnlockAlt=Xi.B$L,this.password="",this.rtlSSO=0,this.rtlCookiePath="",this.accessKey="",this.flgShow=!1,this.screenSize="",this.screenSizeEnum=Ne.cu,this.loginErrorMessage="",this.apiCallStatusEnum=Ne.Bn,this.unSubs=[new Fi.x,new Fi.x,new Fi.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),(0,H2.a)([this.store.select(xa.ul),this.store.select(xa.Sr)]).pipe((0,sn.R)(this.unSubs[0])).subscribe(([H,G])=>{this.loginErrorMessage="",H.status===Ne.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof H.message?JSON.stringify(H.message):H.message),this.logger.error(H.message)),G.status===Ne.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof G.message?JSON.stringify(G.message):G.message),this.logger.error(G.message))}),this.store.select(xa.Yj).pipe((0,sn.R)(this.unSubs[1])).subscribe(H=>{this.appConfig=H,this.logger.info(H)})}onLogin(){if(!this.password)return!0;this.loginErrorMessage="",this.appConfig.enable2FA?(this.store.dispatch((0,Rt.qR)({payload:{maxWidth:"35rem",data:{component:bd}}})),this.rtlEffects.closeAlert.pipe((0,ua.q)(1)).subscribe(H=>{H&&this.store.dispatch((0,Rt.x4)({payload:{password:ha(this.password),defaultPassword:Ne.kO.includes(this.password.toLowerCase()),twoFAToken:H.twoFAToken}}))})):this.store.dispatch((0,Rt.x4)({payload:{password:ha(this.password),defaultPassword:Ne.kO.includes(this.password.toLowerCase())}}))}resetData(){this.password="",this.loginErrorMessage="",this.flgShow=!1}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return(R=N).\u0275fac=function(H){return new(H||R)(e.Y36(ni.mQ),e.Y36(ki.yh),e.Y36(Ma.V),e.Y36(ut.v))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-login"]],decls:28,vars:13,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"login-container"],["fxLayout","row","fxFlex.gt-sm","35","fxLayoutAlign","center center"],["fxLayout","row","fxFlex","45","fxLayoutAlign","center stretch"],["fxLayout","column","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign","stretch stretch"],["fxFlex","35","fxLayoutAlign","center center",1,"bg-primary"],["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","mt-2","p-0"],[1,"font-bold-500",3,"ngClass"],[1,"page-title"],[1,"pb-2"],["fxLayout","column","fxLayoutAlign","start space-between"],["loginForm","ngForm"],["autoFocus","","matInput","","id","password","name","password","tabindex","1","required","",3,"type","ngModel","ngModelChange"],["mat-icon-button","","matSuffix","","tabindex","2","type","button",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","mb-2",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(H,G){1&H&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card",2)(3,"div",3)(4,"div",4),e._UZ(5,"img",5),e.qZA(),e.TgZ(6,"div",6)(7,"mat-card-header",7)(8,"mat-card-title",8)(9,"span",9),e._uU(10,"Welcome"),e.qZA()()(),e.TgZ(11,"mat-card-content",10)(12,"form",11,12)(14,"mat-form-field")(15,"mat-label"),e._uU(16,"Password"),e.qZA(),e.TgZ(17,"input",13),e.NdJ("ngModelChange",function(Mt){return G.password=Mt}),e.qZA(),e.TgZ(18,"button",14),e.NdJ("click",function(){return G.flgShow=!G.flgShow}),e.TgZ(19,"mat-icon"),e._uU(20),e.qZA()(),e.YNc(21,fh,2,0,"mat-error",15),e.qZA(),e.YNc(22,yd,4,1,"p",16),e.TgZ(23,"div",17)(24,"button",18),e.NdJ("click",function(){return G.resetData()}),e._uU(25,"Clear"),e.qZA(),e.TgZ(26,"button",19),e.NdJ("click",function(){return G.onLogin()}),e._uU(27,"Login"),e.qZA()()()()()()()()()),2&H&&(e.xp6(6),e.Q6J("ngClass",e.VKq(8,mh,G.screenSize===G.screenSizeEnum.XS)),e.xp6(2),e.Q6J("ngClass",e.WLB(10,f1,G.screenSize===G.screenSizeEnum.XS,G.screenSize!==G.screenSizeEnum.XS)),e.xp6(9),e.Q6J("type",G.flgShow?"text":"password")("ngModel",G.password),e.xp6(1),e.uIk("aria-label","Hide password"),e.xp6(2),e.Oqu(G.flgShow?"visibility_off":"visibility"),e.xp6(1),e.Q6J("ngIf",!G.password),e.xp6(1),e.Q6J("ngIf",""!==G.loginErrorMessage))},dependencies:[Wi.mk,Wi.O5,ti._Y,ti.Fj,ti.JJ,ti.JL,ti.Q7,ti.On,ti.F,ji.xw,ji.Wh,ji.yH,Lt.oO,bi.lW,bi.RK,Kn.a8,Kn.dn,Kn.dk,Kn.n5,ur.Hw,hr.Nt,Si.KE,Si.hX,Si.TO,Si.R9,hn.h],styles:[".login-container[_ngcontent-%COMP%]{height:60vh;margin-top:15%}.login-container[_ngcontent-%COMP%] .mat-mdc-card[_ngcontent-%COMP%]{height:30rem}.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 56.25em){.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:37%}}@media only screen and (max-width: 37.5em){.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:70%}}.login-container[_ngcontent-%COMP%] .material-icons.mat-icon[_ngcontent-%COMP%]{font-size:90%;cursor:pointer}"]}),N})();var U3=m(9442);let m1=(()=>{var R;class N{constructor(H,G){this.activatedRoute=H,this.router=G,this.error={errorCode:"",errorMessage:""},this.faTimes=Xi.NBC,this.unsubs=[new Fi.x,new Fi.x]}ngOnInit(){this.activatedRoute.paramMap.pipe((0,sn.R)(this.unsubs[0])).subscribe(H=>{this.error=window.history.state})}goToHelp(){this.router.navigate(["/help"])}}return(R=N).\u0275fac=function(H){return new(H||R)(e.Y36(Wn.gz),e.Y36(Wn.F0))},R.\u0275cmp=e.Xpm({type:R,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(H,G){1&H&&(e.TgZ(0,"div",0)(1,"mat-card",1)(2,"mat-card-header",2)(3,"mat-card-title",3),e._UZ(4,"fa-icon",4),e.TgZ(5,"span",5),e._uU(6),e.qZA()()(),e.TgZ(7,"mat-card-content",6)(8,"div",7),e._uU(9),e.qZA(),e.TgZ(10,"span",8)(11,"button",9),e.NdJ("click",function(){return G.goToHelp()}),e._uU(12,"Go To Help"),e.qZA()()()()()),2&H&&(e.xp6(4),e.Q6J("icon",G.faTimes),e.xp6(2),e.hij("Error ",G.error.errorCode,""),e.xp6(3),e.Oqu(G.error.errorMessage))},dependencies:[La.BN,ji.xw,ji.Wh,ji.yH,bi.lW,Kn.a8,Kn.dn,Kn.dk,Kn.n5],encapsulation:2}),N})();var Vr=m(1643),Sl=m(8104),V2=m(9843),B2=m(6534);function ec(R,N){1&R&&e._UZ(0,"span",16)}function xc(R,N){1&R&&e._UZ(0,"span",17)}function El(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"form",18,4)(2,"div",19),e._UZ(3,"fa-icon",2),e.TgZ(4,"span"),e._uU(5,"Please ensure that "),e.TgZ(6,"strong"),e._uU(7,"experimental-offers"),e.qZA(),e._uU(8," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),e.TgZ(9,"strong")(10,"a",20),e._uU(11,"here"),e.qZA()(),e._uU(12," to learn more about Core Lightning offers."),e.qZA()(),e.TgZ(13,"h4",21),e._uU(14,"Description"),e.qZA(),e.TgZ(15,"span"),e._uU(16,"Offers is a draft specification (also referred as BOLT12) for Lightning nodes and wallets, with experimental support in Core Lightning."),e.qZA(),e.TgZ(17,"h4",21),e._uU(18,"Links"),e.qZA(),e.TgZ(19,"span")(20,"a",22),e._uU(21,"Core lightning Bolt12"),e.qZA()(),e._UZ(22,"mat-divider",23),e.TgZ(23,"div",24),e._UZ(24,"fa-icon",2),e.TgZ(25,"span"),e._uU(26,"Do not get an Offer tattoo until spec is fully ratified!"),e.qZA()(),e.TgZ(27,"mat-slide-toggle",25),e.NdJ("ngModelChange",function(G){e.CHM(S);const Le=e.oxw(2);return e.KtG(Le.enableOffers=G)})("change",function(){e.CHM(S);const G=e.oxw(2);return e.KtG(G.onUpdateFeature())}),e._uU(28),e.qZA()()}if(2&R){const S=e.oxw(2);e.xp6(3),e.Q6J("icon",S.faInfoCircle),e.xp6(19),e.Q6J("inset",!0),e.xp6(2),e.Q6J("icon",S.faExclamationTriangle),e.xp6(3),e.Q6J("ngModel",S.enableOffers),e.xp6(1),e.hij("Enable Offers ",S.enableOffers?"(You can find Offers under Lightning -> Transactions -> Offers)":"","")}}function p1(R,N){if(1&R&&(e.TgZ(0,"div")(1,"div",28),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"Please ensure that "),e.TgZ(5,"strong"),e._uU(6,"experimental-dual-fund"),e.qZA(),e._uU(7," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),e.TgZ(8,"strong")(9,"a",29),e._uU(10,"here"),e.qZA()(),e._uU(11," to learn more about Core Lightning Liquidity Ads."),e.qZA()()()),2&R){const S=e.oxw(3);e.xp6(2),e.Q6J("icon",S.faExclamationTriangle)}}function ph(R,N){if(1&R&&(e.TgZ(0,"mat-option",47),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&R){const S=N.$implicit;e.Q6J("value",S),e.xp6(1),e.hij(" ",e.lcZ(2,2,S.id)," ")}}function g1(R,N){if(1&R&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&R){const S=e.oxw(4);e.xp6(1),e.hij("",S.selPolicyType.placeholder," is required.")}}function $c(R,N){if(1&R&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&R){const S=e.oxw(4);e.xp6(1),e.AsE("",S.selPolicyType.placeholder," must be greater than or equal to ",S.selPolicyType.min,".")}}function Cc(R,N){if(1&R&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&R){const S=e.oxw(4);e.xp6(1),e.AsE("",S.selPolicyType.placeholder," must be less than or equal to ",S.selPolicyType.max,".")}}function Cd(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Lease base fee is required."),e.qZA())}function wc(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Lease base basis is required."),e.qZA())}function Qu(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Max channel routing base fee is required."),e.qZA())}function gh(R,N){1&R&&(e.TgZ(0,"mat-error"),e._uU(1,"Max channel routing fee rate is required."),e.qZA())}const U2=function(R,N){return{"alert-danger":R,"alert-info":N}};function el(R,N){if(1&R&&(e.TgZ(0,"h4",48)(1,"span",49),e._uU(2),e.qZA()()),2&R){const S=e.oxw(4);e.xp6(1),e.Q6J("ngClass",e.WLB(2,U2,!!S.updateMsg.error,!!S.updateMsg.data)),e.xp6(1),e.hij(" ",S.updateMsg.error&&""!==S.updateMsg.error?"Error: "+S.updateMsg.error||0:S.updateMsg.data&&""!==S.updateMsg.data?S.updateMsg.data:"Successfully Updated the Funding Policy!"," ")}}function G2(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"div",30)(1,"div",31),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"These config changes should be configured permanently via the config file on your CLN node otherwise the policy would need to be configured again, if your node restarts."),e.qZA()(),e.TgZ(5,"div",32)(6,"mat-form-field",33)(7,"mat-label"),e._uU(8,"Policy"),e.qZA(),e.TgZ(9,"mat-select",34),e.NdJ("ngModelChange",function(G){e.CHM(S);const Le=e.oxw(3);return e.KtG(Le.selPolicyType=G)})("selectionChange",function(){e.CHM(S);const G=e.oxw(3);return e.KtG(G.policyMod=null)}),e.YNc(10,ph,3,4,"mat-option",35),e.qZA()(),e.TgZ(11,"mat-form-field",36)(12,"mat-label"),e._uU(13),e.qZA(),e.TgZ(14,"input",37,38),e.NdJ("ngModelChange",function(G){e.CHM(S);const Le=e.oxw(3);return e.KtG(Le.policyMod=G)}),e.qZA(),e.TgZ(16,"mat-hint"),e._uU(17),e.qZA(),e.YNc(18,g1,2,1,"mat-error",26),e.YNc(19,$c,2,2,"mat-error",26),e.YNc(20,Cc,2,2,"mat-error",26),e.qZA()(),e.TgZ(21,"div",32)(22,"mat-form-field",36)(23,"mat-label"),e._uU(24,"Lease Base Fee (Sats)"),e.qZA(),e.TgZ(25,"input",39),e.NdJ("ngModelChange",function(G){e.CHM(S);const Le=e.oxw(3);return e.KtG(Le.lease_fee_base_sat=G)}),e.qZA(),e.YNc(26,Cd,2,0,"mat-error",26),e.qZA(),e.TgZ(27,"mat-form-field",36)(28,"mat-label"),e._uU(29,"Lease Base Basis (bps)"),e.qZA(),e.TgZ(30,"input",40),e.NdJ("ngModelChange",function(G){e.CHM(S);const Le=e.oxw(3);return e.KtG(Le.lease_fee_basis=G)}),e.qZA(),e.YNc(31,wc,2,0,"mat-error",26),e.qZA()(),e.TgZ(32,"div",32)(33,"mat-form-field",36)(34,"mat-label"),e._uU(35,"Max Channel Routing Base Fee (Sats)"),e.qZA(),e.TgZ(36,"input",41),e.NdJ("ngModelChange",function(G){e.CHM(S);const Le=e.oxw(3);return e.KtG(Le.channelFeeMaxBaseSat=G)}),e.qZA(),e.YNc(37,Qu,2,0,"mat-error",26),e.qZA(),e.TgZ(38,"mat-form-field",36)(39,"mat-label"),e._uU(40,"Max Channel Routing Fee Rate (ppm)"),e.qZA(),e.TgZ(41,"input",42),e.NdJ("ngModelChange",function(G){e.CHM(S);const Le=e.oxw(3);return e.KtG(Le.channelFeeMaxProportional=G)}),e.qZA(),e.YNc(42,gh,2,0,"mat-error",26),e.qZA()(),e.YNc(43,el,3,5,"h4",43),e.TgZ(44,"div",44)(45,"button",45),e.NdJ("click",function(){e.CHM(S);const G=e.oxw(3);return e.KtG(G.onResetPolicy())}),e._uU(46,"Reset"),e.qZA(),e.TgZ(47,"button",46),e.NdJ("click",function(){e.CHM(S);const G=e.oxw(3);return e.KtG(G.onUpdateFundingPolicy())}),e._uU(48,"Update"),e.qZA()()()}if(2&R){const S=e.oxw(3);e.xp6(2),e.Q6J("icon",S.faExclamationTriangle),e.xp6(7),e.Q6J("ngModel",S.selPolicyType),e.xp6(1),e.Q6J("ngForOf",S.policyTypes),e.xp6(3),e.Oqu(S.selPolicyType.placeholder),e.xp6(1),e.Q6J("step","fixed"===S.selPolicyType.id?1e3:10)("min",S.selPolicyType.min)("max",S.selPolicyType.max)("ngModel",S.policyMod),e.xp6(3),e.lnq("",S.selPolicyType.placeholder," should be between ",S.selPolicyType.min," and ",S.selPolicyType.max,""),e.xp6(1),e.Q6J("ngIf",!S.policyMod),e.xp6(1),e.Q6J("ngIf",S.policyModS.selPolicyType.max),e.xp6(5),e.Q6J("ngModel",S.lease_fee_base_sat),e.xp6(1),e.Q6J("ngIf",!S.lease_fee_base_sat),e.xp6(4),e.Q6J("ngModel",S.lease_fee_basis),e.xp6(1),e.Q6J("ngIf",!S.lease_fee_basis),e.xp6(5),e.Q6J("ngModel",S.channelFeeMaxBaseSat),e.xp6(1),e.Q6J("ngIf",!S.channelFeeMaxBaseSat),e.xp6(4),e.Q6J("ngModel",S.channelFeeMaxProportional),e.xp6(1),e.Q6J("ngIf",!S.channelFeeMaxProportional),e.xp6(1),e.Q6J("ngIf",S.flgUpdateCalled)}}function _h(R,N){if(1&R&&(e.TgZ(0,"form",18,4),e.YNc(2,p1,12,1,"div",26),e.YNc(3,G2,49,23,"div",27),e.qZA()),2&R){const S=e.oxw(2);e.xp6(2),e.Q6J("ngIf",!S.features[1].enabled),e.xp6(1),e.Q6J("ngIf",S.features[1].enabled)}}function vh(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"mat-expansion-panel",9),e.NdJ("opened",function(){const Le=e.CHM(S).index,Mt=e.oxw();return e.KtG(Mt.onPanelExpanded(Le))}),e.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title",10)(3,"h4",11),e._uU(4),e.qZA(),e.TgZ(5,"h4",11),e.YNc(6,ec,1,0,"span",12),e.YNc(7,xc,1,0,"span",13),e._uU(8),e.qZA()()(),e.TgZ(9,"div",14),e.YNc(10,El,29,5,"form",15),e.YNc(11,_h,4,2,"form",15),e.qZA()()}if(2&R){const S=N.$implicit,H=N.index;e.Q6J("expanded",!1),e.xp6(4),e.Oqu(S.name),e.xp6(2),e.Q6J("ngIf",S.enabled),e.xp6(1),e.Q6J("ngIf",!S.enabled),e.xp6(1),e.hij(" ",S.enabled?"Enabled":"Disabled"," "),e.xp6(2),e.Q6J("ngIf",0===H),e.xp6(1),e.Q6J("ngIf",1===H)}}let tl=(()=>{var R;class N{constructor(H,G,Le,Mt){this.logger=H,this.store=G,this.dataService=Le,this.commonService=Mt,this.faInfoCircle=Xi.sqG,this.faExclamationTriangle=Xi.eHv,this.faCode=Xi.dT$,this.features=[{name:"Offers",enabled:!1},{name:"Channel Funding Policy",enabled:!1}],this.enableOffers=!1,this.fundingPolicy={},this.policyTypes=Ne.gB,this.selPolicyType=Ne.gB[0],this.flgUpdateCalled=!1,this.updateMsg={},this.unSubs=[new Fi.x,new Fi.x,new Fi.x,new Fi.x,new Fi.x]}ngOnInit(){this.dataService.listConfigs().pipe((0,sn.R)(this.unSubs[0])).subscribe({next:H=>{this.logger.info("Received List Configs: "+JSON.stringify(H)),this.features[1].enabled=!!H["experimental-dual-fund"]},error:H=>{this.logger.error("List Configs Error: "+JSON.stringify(H)),this.features[1].enabled=!1}}),this.store.select(xa.dT).pipe((0,sn.R)(this.unSubs[1])).subscribe(H=>{this.selNode=H,this.enableOffers=this.selNode.settings.enableOffers||!1,this.features[0].enabled=this.enableOffers,this.logger.info(this.selNode)}),this.store.select(Gc.Rn).pipe((0,sn.R)(this.unSubs[2])).subscribe(H=>{this.policyTypes[2].max=H.balance.totalBalance||1e3})}onPanelExpanded(H){1===H&&!this.fundingPolicy.policy&&this.dataService.getOrUpdateFunderPolicy().pipe((0,sn.R)(this.unSubs[3])).subscribe(G=>{this.logger.info("Received Funder Update Policy: "+JSON.stringify(G)),this.fundingPolicy=G,this.fundingPolicy.policy&&(this.selPolicyType=Ne.gB.find(Le=>Le.id===this.fundingPolicy.policy)||this.policyTypes[0]),this.policyMod=this.fundingPolicy.policy_mod||0===this.fundingPolicy.policy_mod?this.fundingPolicy.policy_mod:null,this.lease_fee_base_sat=this.fundingPolicy.lease_fee_base_msat?this.fundingPolicy.lease_fee_base_msat/1e3:0===this.fundingPolicy.lease_fee_base_msat?0:null,this.lease_fee_basis=this.fundingPolicy.lease_fee_basis||0===this.fundingPolicy.lease_fee_basis?this.fundingPolicy.lease_fee_basis:null,this.channelFeeMaxBaseSat=this.fundingPolicy.channel_fee_max_base_msat?this.fundingPolicy.channel_fee_max_base_msat/1e3:0===this.fundingPolicy.channel_fee_max_base_msat?0:null,this.channelFeeMaxProportional=this.fundingPolicy.channel_fee_max_proportional_thousandths||0===this.fundingPolicy.channel_fee_max_proportional_thousandths?1e3*this.fundingPolicy.channel_fee_max_proportional_thousandths:null})}onUpdateFeature(){this.logger.info(this.selNode),this.selNode.settings.enableOffers=this.enableOffers,this.features[0].enabled=this.enableOffers,this.store.dispatch((0,Rt.jS)({payload:{uiMessage:Ne.m6.UPDATE_SETTING,service:Ne.JX.OFFERS,settings:{enableOffers:this.enableOffers}}})),this.store.dispatch((0,Be.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,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}})),this.store.dispatch((0,ae.Mf)({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,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}})),this.store.dispatch((0,we.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,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}}))}onUpdateFundingPolicy(){this.flgUpdateCalled=!0,this.updateMsg={},this.dataService.getOrUpdateFunderPolicy(this.selPolicyType.id,this.policyMod,1e3*(this.lease_fee_base_sat||0),this.lease_fee_basis,1e3*(this.channelFeeMaxBaseSat||0),this.channelFeeMaxProportional?this.channelFeeMaxProportional/1e3:0).pipe((0,sn.R)(this.unSubs[4])).subscribe({next:H=>{this.logger.info(H),this.fundingPolicy=H,this.updateMsg={data:"Compact Lease: "+H.compact_lease},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)},error:H=>{this.logger.error(H),this.updateMsg={error:this.commonService.extractErrorMessage(H,"Error in updating funder policy")},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)}})}onResetPolicy(){this.flgUpdateCalled=!1,this.updateMsg={},this.selPolicyType=this.fundingPolicy.policy?Ne.gB.find(H=>H.id===this.fundingPolicy.policy)||this.policyTypes[0]:Ne.gB[0],this.policyMod=this.fundingPolicy.policy_mod||0===this.fundingPolicy.policy_mod?this.fundingPolicy.policy_mod:null,this.lease_fee_base_sat=this.fundingPolicy.lease_fee_base_msat?this.fundingPolicy.lease_fee_base_msat/1e3:0===this.fundingPolicy.lease_fee_base_msat?0:null,this.lease_fee_basis=this.fundingPolicy.lease_fee_basis||0===this.fundingPolicy.lease_fee_basis?this.fundingPolicy.lease_fee_basis:null,this.channelFeeMaxBaseSat=this.fundingPolicy.channel_fee_max_base_msat?this.fundingPolicy.channel_fee_max_base_msat/1e3:0===this.fundingPolicy.channel_fee_max_base_msat?0:null,this.channelFeeMaxProportional=this.fundingPolicy.channel_fee_max_proportional_thousandths||0===this.fundingPolicy.channel_fee_max_proportional_thousandths?1e3*this.fundingPolicy.channel_fee_max_proportional_thousandths:null}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return(R=N).\u0275fac=function(H){return new(H||R)(e.Y36(ni.mQ),e.Y36(ki.yh),e.Y36(Sl.D),e.Y36(ut.v))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-experimental-settings"]],decls:13,vars:3,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],[1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1"],["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"],[4,"ngIf"],["fxLayout","column",4,"ngIf"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn"],["href","https://medium.com/blockstream/setting-up-liquidity-ads-in-c-lightning-54e4c59c091d","target","_blank"],["fxLayout","column"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn","mb-2"],["fxLayout","column","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start end"],["autofocus","","tabindex","1","name","policy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","49"],["matInput","","type","number","tabindex","2","required","","name","plcMod",3,"step","min","max","ngModel","ngModelChange"],["plcMod","ngModel"],["matInput","","type","number","step","100","min","0","tabindex","3","required","","name","lease_fee_base_sat",3,"ngModel","ngModelChange"],["matInput","","type","number","step","1","min","0","tabindex","4","required","","name","lease_fee_basis",3,"ngModel","ngModelChange"],["matInput","","type","number","step","100","min","0","tabindex","5","required","","name","channelFeeMaxBaseSat",3,"ngModel","ngModelChange"],["matInput","","type","number","step","1000","min","0","tabindex","6","required","","name","channelFeeMaxProportional",3,"ngModel","ngModelChange"],["fxLayoutAlign","start stretch","class","font-bold-500 mt-2",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","7",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","8",3,"click"],[3,"value"],["fxLayoutAlign","start stretch",1,"font-bold-500","mt-2"],["fxFlex","100",1,"alert",3,"ngClass"]],template:function(H,G){1&H&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._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."),e.qZA()(),e.TgZ(5,"form",3,4)(7,"div",5),e._UZ(8,"fa-icon",6),e.TgZ(9,"span",7),e._uU(10,"Features"),e.qZA()(),e.TgZ(11,"mat-accordion"),e.YNc(12,vh,12,7,"mat-expansion-panel",8),e.qZA()()()),2&H&&(e.xp6(2),e.Q6J("icon",G.faInfoCircle),e.xp6(6),e.Q6J("icon",G.faCode),e.xp6(4),e.Q6J("ngForOf",G.features))},dependencies:[Wi.mk,Wi.sg,Wi.O5,ti._Y,ti.Fj,ti.wV,ti.JJ,ti.JL,ti.Q7,ti.qQ,ti.Fd,ti.On,ti.F,La.BN,ji.xw,ji.Wh,ji.yH,Lt.oO,bi.lW,Ht.pp,Ht.ib,Ht.yz,Ht.yK,hr.Nt,Si.KE,Si.hX,Si.bx,Si.TO,Jr.d,Pi.gD,qi.ey,Di.Rr,tn.$V,hn.h,V2.F,B2.q,Wi.rS],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),N})();const wd=[{path:"",pathMatch:"full",redirectTo:"login"},{path:"lnd",loadChildren:()=>Promise.all([m.e(267),m.e(636)]).then(m.bind(m,1636)).then(R=>R.LNDModule),canActivate:[(0,Vr.a1)()]},{path:"cln",loadChildren:()=>Promise.all([m.e(267),m.e(315)]).then(m.bind(m,6315)).then(R=>R.CLNModule),canActivate:[(0,Vr.a1)()]},{path:"ecl",loadChildren:()=>Promise.all([m.e(267),m.e(167)]).then(m.bind(m,9676)).then(R=>R.ECLModule),canActivate:[(0,Vr.a1)()]},{path:"settings",component:tt,canActivate:[(0,Vr.a1)()],children:[{path:"",pathMatch:"full",redirectTo:"app"},{path:"app",component:ka,canActivate:[(0,Vr.a1)()]},{path:"auth",component:ts,canActivate:[(0,Vr.a1)()]},{path:"bconfig",component:Xr,canActivate:[(0,Vr.a1)()]}]},{path:"config",component:fo,canActivate:[(0,Vr.a1)()],children:[{path:"",pathMatch:"full",redirectTo:"nodesettings"},{path:"nodesettings",component:Ko,canActivate:[(0,Vr.a1)()]},{path:"pglayout",component:Y1,canActivate:[(0,Vr.a1)()]},{path:"services",component:Mu,canActivate:[(0,Vr.a1)()],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",component:Q1,canActivate:[(0,Vr.a1)()]},{path:"boltz",component:Eu,canActivate:[(0,Vr.a1)()]}]},{path:"experimental",component:tl,canActivate:[(0,Vr.a1)()]},{path:"lnconfig",component:ve,canActivate:[(0,Vr.a1)()]}]},{path:"services",component:B3,canActivate:[(0,Vr.a1)()],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",pathMatch:"full",redirectTo:"loop/loopout"},{path:"loop/:selTab",component:ql},{path:"boltz",pathMatch:"full",redirectTo:"boltz/swapout"},{path:"boltz/:selTab",component:vd}]},{path:"help",component:u1},{path:"login",component:xd},{path:"error",component:m1},{path:"**",component:U3.w}],W2=Wn.Bz.forRoot(wd,{onSameUrlNavigation:"reload",scrollPositionRestoration:"enabled"});var Tl=m(9470),Mc=m(8878),Md=m(1572),Sd=m(3267),Al=m(3683),Ed=m(7851),Br=m(5423);const xs={LNDChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:Xi.HLz,link:"/lnd/home",userPersona:Ne.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:Xi.nNP,link:"/lnd/onchain",userPersona:Ne.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:Xi.BDt,link:"/lnd/connections",userPersona:Ne.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:Xi.FVb,link:"/lnd/connections",userPersona:Ne.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:Xi.Ssp,link:"/lnd/transactions",userPersona:Ne.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:Xi.SuH,link:"/lnd/routing",userPersona:Ne.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:Xi.koM,link:"/lnd/reports",userPersona:Ne.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:Xi.wn1,link:"/lnd/graph",userPersona:Ne.ol.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:Xi.hkK,link:"/lnd/messages",userPersona:Ne.ol.ALL},{id:37,parentId:3,name:"Backup",iconType:"FA",icon:Xi.q7m,link:"/lnd/channelbackup",userPersona:Ne.ol.ALL},{id:38,parentId:3,name:"Network",iconType:"FA",icon:Xi.TmZ,link:"/lnd/network",userPersona:Ne.ol.OPERATOR},{id:39,parentId:3,name:"Node/Network",iconType:"FA",icon:Xi.xf3,link:"/lnd/network",userPersona:Ne.ol.MERCHANT}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:Xi.Krp,link:"/services/loop",userPersona:Ne.ol.ALL,children:[{id:41,parentId:4,name:"Loop",iconType:"FA",icon:Xi.vqe,link:"/services/loop",userPersona:Ne.ol.ALL},{id:42,parentId:4,name:"Boltz",iconType:"SVG",icon:"boltzIconBlock",link:"/services/boltz",userPersona:Ne.ol.ALL}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:Xi.CgH,link:"/config",userPersona:Ne.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:Xi.Psp,link:"/help",userPersona:Ne.ol.ALL}],CLNChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:Xi.HLz,link:"/cln/home",userPersona:Ne.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:Xi.nNP,link:"/cln/onchain",userPersona:Ne.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:Xi.BDt,link:"/cln/connections",userPersona:Ne.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:Xi.FVb,link:"/cln/connections",userPersona:Ne.ol.ALL},{id:32,parentId:3,name:"Liquidity Ads",iconType:"FA",icon:Xi.Acd,link:"/cln/liquidityads",userPersona:Ne.ol.ALL},{id:33,parentId:3,name:"Transactions",iconType:"FA",icon:Xi.Ssp,link:"/cln/transactions",userPersona:Ne.ol.ALL},{id:34,parentId:3,name:"Routing",iconType:"FA",icon:Xi.SuH,link:"/cln/routing",userPersona:Ne.ol.ALL},{id:35,parentId:3,name:"Reports",iconType:"FA",icon:Xi.koM,link:"/cln/reports",userPersona:Ne.ol.ALL},{id:36,parentId:3,name:"Graph Lookup",iconType:"FA",icon:Xi.wn1,link:"/cln/graph",userPersona:Ne.ol.ALL},{id:37,parentId:3,name:"Sign/Verify",iconType:"FA",icon:Xi.hkK,link:"/cln/messages",userPersona:Ne.ol.ALL},{id:38,parentId:3,name:"Fee Rates",iconType:"FA",icon:Xi.USL,link:"/cln/rates",userPersona:Ne.ol.OPERATOR},{id:39,parentId:3,name:"Node/Fee Rates",iconType:"FA",icon:Xi.xf3,link:"/cln/rates",userPersona:Ne.ol.MERCHANT}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:Xi.CgH,link:"/config",userPersona:Ne.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:Xi.Psp,link:"/help",userPersona:Ne.ol.ALL}],ECLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:Xi.HLz,link:"/ecl/home",userPersona:Ne.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:Xi.nNP,link:"/ecl/onchain",userPersona:Ne.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:Xi.BDt,link:"/ecl/connections",userPersona:Ne.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:Xi.FVb,link:"/ecl/connections",userPersona:Ne.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:Xi.Ssp,link:"/ecl/transactions",userPersona:Ne.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:Xi.SuH,link:"/ecl/routing",userPersona:Ne.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:Xi.koM,link:"/ecl/reports",userPersona:Ne.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:Xi.wn1,link:"/ecl/graph",userPersona:Ne.ol.ALL}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:Xi.CgH,link:"/config",userPersona:Ne.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:Xi.Psp,link:"/help",userPersona:Ne.ol.ALL}]};function Z2(R,N){if(1&R&&(e.TgZ(0,"mat-option",11),e._uU(1),e.qZA()),2&R){const S=N.$implicit;e.Q6J("value",S.index),e.xp6(1),e.AsE(" ",S.lnNode," (",S.lnImplementation,") ")}}function Y2(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"mat-select",9),e.NdJ("selectionChange",function(G){e.CHM(S);const Le=e.oxw();return e.KtG(Le.onNodeSelectionChange(G.value))}),e.TgZ(1,"perfect-scrollbar"),e.YNc(2,Z2,2,3,"mat-option",10),e.qZA()()}if(2&R){const S=e.oxw();e.Q6J("value",S.selConfigNodeIndex),e.xp6(2),e.Q6J("ngForOf",S.appConfig.nodes)}}function Td(R,N){if(1&R&&(e.TgZ(0,"span",21),e.GkF(1,22),e.qZA()),2&R){const S=e.oxw().$implicit;e.oxw(2);const H=e.MAs(11);e.xp6(1),e.Q6J("ngTemplateOutlet","boltzIconBlock"===S.icon?H:null)}}function j2(R,N){if(1&R&&e._UZ(0,"fa-icon",23),2&R){const S=e.oxw().$implicit;e.Q6J("icon",S.icon)}}function v1(R,N){if(1&R&&(e.TgZ(0,"mat-icon",24),e._uU(1),e.qZA()),2&R){const S=e.oxw().$implicit;e.xp6(1),e.Oqu(S.icon)}}function Ll(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"mat-tree-node",15)(1,"div",16),e.NdJ("click",function(){const Le=e.CHM(S).$implicit,Mt=e.oxw(2);return e.KtG(Mt.onChildNavClicked(Le))}),e.TgZ(2,"div",17),e.YNc(3,Td,2,1,"span",18),e.YNc(4,j2,1,1,"fa-icon",19),e.YNc(5,v1,2,1,"mat-icon",20),e.TgZ(6,"span"),e._uU(7),e.qZA()()()()}if(2&R){const S=N.$implicit;e.s9C("routerLink",S.link),e.xp6(3),e.Q6J("ngIf","SVG"===S.iconType),e.xp6(1),e.Q6J("ngIf","FA"===S.iconType),e.xp6(1),e.Q6J("ngIf",!S.iconType),e.xp6(2),e.Oqu(S.name)}}function b1(R,N){if(1&R&&(e.TgZ(0,"span",32),e.GkF(1,22),e.qZA()),2&R){const S=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",S.icon)}}function yh(R,N){if(1&R&&e._UZ(0,"fa-icon",23),2&R){const S=e.oxw().$implicit;e.Q6J("icon",S.icon)}}function Ad(R,N){if(1&R&&(e.TgZ(0,"mat-icon",24),e._uU(1),e.qZA()),2&R){const S=e.oxw().$implicit;e.xp6(1),e.Oqu(S.icon)}}function il(R,N){if(1&R&&(e.TgZ(0,"mat-nested-tree-node",25)(1,"div",26)(2,"div",27),e.YNc(3,b1,2,1,"span",28),e.YNc(4,yh,1,1,"fa-icon",19),e.YNc(5,Ad,2,1,"mat-icon",20),e.TgZ(6,"span"),e._uU(7),e.qZA()(),e.TgZ(8,"button",29)(9,"mat-icon"),e._uU(10),e.qZA()()(),e.TgZ(11,"div",30),e.GkF(12,31),e.qZA()()),2&R){const S=N.$implicit,H=e.oxw(2);e.xp6(3),e.Q6J("ngIf","SVG"===S.iconType),e.xp6(1),e.Q6J("ngIf","FA"===S.iconType),e.xp6(1),e.Q6J("ngIf",!S.iconType),e.xp6(2),e.Oqu(S.name),e.xp6(1),e.uIk("aria-label","toggle "+S.name),e.xp6(2),e.Oqu(H.treeControlNested.isExpanded(S)?"arrow_drop_up":"arrow_drop_down"),e.xp6(1),e.ekj("tree-children-invisible",!H.treeControlNested.isExpanded(S))}}function xh(R,N){if(1&R&&(e.TgZ(0,"mat-tree",5,12),e.YNc(2,Ll,8,5,"mat-tree-node",13),e.YNc(3,il,13,8,"mat-nested-tree-node",14),e.qZA()),2&R){const S=e.oxw();e.Q6J("dataSource",S.navMenus)("treeControl",S.treeControlNested),e.xp6(3),e.Q6J("matTreeNodeDefWhen",S.hasChild)}}function Ch(R,N){if(1&R&&(e.TgZ(0,"span",21),e.GkF(1,22),e.qZA()),2&R){const S=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",S.icon)}}function tc(R,N){if(1&R&&e._UZ(0,"fa-icon",35),2&R){const S=e.oxw().$implicit;e.s9C("matTooltip",S.name),e.Q6J("icon",S.icon)}}function K2(R,N){if(1&R&&(e.TgZ(0,"mat-icon",36),e._uU(1),e.qZA()),2&R){const S=e.oxw().$implicit;e.s9C("matTooltip",S.name),e.xp6(1),e.Oqu(S.icon)}}function Ld(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"mat-tree-node",16),e.NdJ("click",function(){const Le=e.CHM(S).$implicit,Mt=e.oxw();return e.KtG(Mt.onShowData(Le))}),e.YNc(1,Ch,2,1,"span",18),e.YNc(2,tc,1,2,"fa-icon",33),e.YNc(3,K2,2,2,"mat-icon",34),e.TgZ(4,"span"),e._uU(5),e.qZA()()}if(2&R){const S=N.$implicit;e.xp6(1),e.Q6J("ngIf","SVG"===S.iconType),e.xp6(1),e.Q6J("ngIf","FA"===S.iconType),e.xp6(1),e.Q6J("ngIf",!S.iconType),e.xp6(2),e.Oqu(S.name)}}function qu(R,N){if(1&R&&(e.TgZ(0,"span",32),e.GkF(1,22),e.qZA()),2&R){const S=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",S.icon)}}function Dl(R,N){if(1&R&&e._UZ(0,"fa-icon",35),2&R){const S=e.oxw().$implicit;e.s9C("matTooltip",S.name),e.Q6J("icon",S.icon)}}function Sc(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"mat-tree-node",16),e.NdJ("click",function(){const Le=e.CHM(S).$implicit,Mt=e.oxw(2);return e.KtG(Mt.onClick(Le))}),e.YNc(1,qu,2,1,"span",28),e.YNc(2,Dl,1,2,"fa-icon",33),e.TgZ(3,"span"),e._uU(4),e.qZA()()}if(2&R){const S=N.$implicit;e.xp6(1),e.Q6J("ngIf","SVG"===S.iconType),e.xp6(1),e.Q6J("ngIf","FA"===S.iconType),e.xp6(2),e.Oqu(S.name)}}function Cs(R,N){if(1&R&&(e.TgZ(0,"mat-tree",5),e.YNc(1,Sc,5,3,"mat-tree-node",6),e.qZA()),2&R){const S=e.oxw();e.Q6J("dataSource",S.navMenusLogout)("treeControl",S.treeControlLogout)}}function Q2(R,N){1&R&&(e.O4$(),e.TgZ(0,"svg",37)(1,"g",38)(2,"g",39),e._UZ(3,"circle",40)(4,"path",41)(5,"path",42),e.qZA()()())}let Dd=(()=>{var R;class N{constructor(H,G,Le,Mt,Xt,oi){this.logger=H,this.commonService=G,this.sessionService=Le,this.store=Mt,this.actions=Xt,this.rtlEffects=oi,this.ChildNavClicked=new e.vpe,this.faEject=Xi.KOR,this.faEye=Xi.Mdf,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.logoutNode=[{id:200,parentId:0,name:"Logout",iconType:"FA",icon:Xi.KOR}],this.showDataNodes=[{id:1e3,parentId:0,name:"Public Key",iconType:"FA",icon:Xi.Mdf}],this.showLogout=!1,this.numPendingChannels=0,this.smallScreen=!1,this.childRootRoute="",this.userPersonaEnum=Ne.ol,this.unSubs=[new Fi.x,new Fi.x,new Fi.x,new Fi.x,new Fi.x,new Fi.x],this.treeControlNested=new Ed.VY(Ci=>Ci.children),this.treeControlLogout=new Ed.VY(Ci=>Ci.children),this.treeControlShowData=new Ed.VY(Ci=>Ci.children),this.navMenus=new Br.WX,this.navMenusLogout=new Br.WX,this.navMenusShowData=new Br.WX,this.hasChild=(Ci,Zi)=>!!Zi.children&&Zi.children.length>0,this.version=Ne.q4,xs.LNDChildren&&200===xs.LNDChildren[xs.LNDChildren.length-1].id&&xs.LNDChildren.pop(),this.navMenus.data=xs.LNDChildren||[],this.navMenusLogout.data=this.logoutNode,this.navMenusShowData.data=this.showDataNodes}ngOnInit(){const H=this.sessionService.getItem("token");this.showLogout=!!H,this.flgLoading=!!H,this.store.select(xa.Yj).pipe((0,sn.R)(this.unSubs[0])).subscribe(G=>{this.appConfig=G}),this.store.select(xa.gW).pipe((0,sn.R)(this.unSubs[1])).subscribe(G=>{if(this.information=G.nodeDate,this.information.identity_pubkey){if(this.information.chains&&"string"==typeof this.information.chains[0])this.informationChain.chain=this.information.chains[0].toString(),this.informationChain.network=this.information.testnet?"Testnet":"Mainnet";else if(this.information&&this.information.chains&&this.information.chains.length&&this.information.chains.length>0&&"object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const Le=this.information.chains[0];this.informationChain.chain=Le.chain,this.informationChain.network=Le.network}}else this.informationChain.chain="",this.informationChain.network="";this.flgLoading=!this.information.identity_pubkey,window.innerWidth<=414&&(this.smallScreen=!0),this.selNode=G.selNode,this.settings=this.selNode?.settings||null,this.selConfigNodeIndex=+(G.selNode?.index||0),this.selNode&&this.selNode.lnImplementation&&this.filterSideMenuNodes(),this.logger.info(G)}),this.sessionService.watchSession().pipe((0,sn.R)(this.unSubs[2])).subscribe(G=>{this.showLogout=!!G.token,this.flgLoading=!!G.token}),this.actions.pipe((0,sn.R)(this.unSubs[3]),(0,Ya.h)(G=>G.type===Ne.pg.LOGOUT)).subscribe(G=>{this.showLogout=!1})}onClick(H){"Logout"===H.name&&(this.store.dispatch((0,Rt.c1)({payload:{data:{type:Ne.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,sn.R)(this.unSubs[4])).subscribe(G=>{G&&(this.showLogout=!1,this.store.dispatch((0,Rt.kS)()))})),this.ChildNavClicked.emit(H)}onChildNavClicked(H){this.ChildNavClicked.emit(H)}filterSideMenuNodes(){switch(this.selNode?.lnImplementation?.toUpperCase()){case"CLN":this.loadCLNMenu();break;case"ECL":this.loadECLMenu();break;default:this.loadLNDMenu()}}loadLNDMenu(){let H=[];H=JSON.parse(JSON.stringify(xs.LNDChildren)),this.navMenus.data=H?.filter(G=>G.children&&G.children.length?(G.children=G.children?.filter(Le=>(Le.userPersona===Ne.ol.ALL||Le.userPersona===this.settings?.userPersona)&&"/services/loop"!==Le.link&&"/services/boltz"!==Le.link||"/services/loop"===Le.link&&this.settings?.swapServerUrl&&""!==this.settings.swapServerUrl.trim()||"/services/boltz"===Le.link&&this.settings?.boltzServerUrl&&""!==this.settings.boltzServerUrl.trim()),G.children.length>0):G.userPersona===Ne.ol.ALL||G.userPersona===this.settings?.userPersona)}loadCLNMenu(){let H=[];H=JSON.parse(JSON.stringify(xs.CLNChildren)),this.navMenus.data=H?.filter(G=>G.children&&G.children.length?(G.children=G.children?.filter(Le=>(Le.userPersona===Ne.ol.ALL||Le.userPersona===this.settings?.userPersona)&&"/services/peerswap"!==Le.link||"/services/peerswap"===Le.link&&this.settings?.enablePeerswap),G.children.length>0):G.userPersona===Ne.ol.ALL||G.userPersona===this.settings?.userPersona)}loadECLMenu(){this.navMenus.data=JSON.parse(JSON.stringify(xs.ECLChildren))}onShowData(H){this.store.dispatch((0,Rt.tj)()),this.ChildNavClicked.emit("showData")}onNodeSelectionChange(H){const G=this.selConfigNodeIndex;this.selConfigNodeIndex=H;const Le=this.appConfig.nodes.find(Mt=>+Mt.index===H);this.store.dispatch((0,Rt.fk)({payload:{uiMessage:Ne.m6.UPDATE_SELECTED_NODE,prevLnNodeIndex:+G,currentLnNode:Le||null,isInitialSetup:!1}})),this.ChildNavClicked.emit("selectNode")}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return(R=N).\u0275fac=function(H){return new(H||R)(e.Y36(ni.mQ),e.Y36(ut.v),e.Y36(Ga.m),e.Y36(ki.yh),e.Y36(Ua.eX),e.Y36(Ma.V))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-side-navigation"]],viewQuery:function(H,G){if(1&H&&e.Gf(Br.gi,5),2&H){let Le;e.iGM(Le=e.CRH())&&(G.tree=Le.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","80","fxLayoutAlign","start center"],["class","mr-2",4,"ngIf"],["fxFlex","20","mat-icon-button","","fxLayoutAlign","end center",1,"btn-icon-small"],[1,"mat-nested-tree-node-child"],["matTreeNodeOutlet",""],[1,"mr-2"],["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(H,G){1&H&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,Y2,3,2,"mat-select",2),e._UZ(3,"mat-divider",3),e.YNc(4,xh,4,3,"mat-tree",4),e._UZ(5,"mat-divider",3),e.TgZ(6,"mat-tree",5),e.YNc(7,Ld,6,4,"mat-tree-node",6),e.qZA()(),e.TgZ(8,"div",7),e.YNc(9,Cs,2,2,"mat-tree",4),e.qZA()(),e.YNc(10,Q2,6,0,"ng-template",null,8,e.W1O)),2&H&&(e.xp6(2),e.Q6J("ngIf",G.appConfig.nodes.length>1),e.xp6(2),e.Q6J("ngIf",null==G.settings?null:G.settings.lnServerUrl),e.xp6(2),e.Q6J("dataSource",G.navMenusShowData)("treeControl",G.treeControlShowData),e.xp6(3),e.Q6J("ngIf",G.showLogout))},dependencies:[Wi.sg,Wi.O5,Wi.tP,La.BN,ji.xw,ji.Wh,ji.yH,bi.RK,ur.Hw,Jr.d,Br.GZ,Br.fQ,Br.eu,Br.gi,Br.uo,Br.Ar,Pi.gD,qi.ey,To.gM,Wn.rH,Wn.Od,tn.Vv,tn.$V],styles:[".tree-children-invisible[_ngcontent-%COMP%]{display:none}"]}),N})();var y1=m(8255);function nl(R,N){if(1&R&&(e.TgZ(0,"p",2),e._UZ(1,"fa-icon",3),e.TgZ(2,"span"),e._uU(3),e.qZA()()),2&R){const S=e.oxw();e.xp6(1),e.Q6J("icon",S.faCode),e.xp6(2),e.hij("API Version: ",null==S.information?null:S.information.api_version,"")}}function Id(R,N){if(1&R&&(e.TgZ(0,"p",11),e._UZ(1,"fa-icon",3),e.TgZ(2,"span",12),e._uU(3,"Settings"),e.qZA()()),2&R){const S=e.oxw();e.xp6(1),e.Q6J("icon",S.faUserCog)}}function wh(R,N){if(1&R&&(e.TgZ(0,"p",13),e._UZ(1,"fa-icon",3),e.TgZ(2,"span",14),e._uU(3,"Help"),e.qZA()()),2&R){const S=e.oxw();e.xp6(1),e.Q6J("icon",S.faQuestion)}}function Mh(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"p",15),e.NdJ("click",function(){e.CHM(S);const G=e.oxw();return e.KtG(G.onClick())}),e._UZ(1,"fa-icon",3),e.TgZ(2,"span"),e._uU(3,"Logout"),e.qZA()()}if(2&R){const S=e.oxw();e.xp6(1),e.Q6J("icon",S.faEject)}}let q2=(()=>{var R;class N{constructor(H,G,Le,Mt,Xt){this.logger=H,this.sessionService=G,this.store=Le,this.rtlEffects=Mt,this.actions=Xt,this.faUserCog=Xi.gNZ,this.faCodeBranch=Xi.mh3,this.faCode=Xi.dT$,this.faCog=Xi.b7W,this.faQuestion=Xi.Psp,this.faEject=Xi.KOR,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.showLogout=!1,this.unSubs=[new Fi.x,new Fi.x,new Fi.x,new Fi.x],this.version=Ne.q4}ngOnInit(){this.store.select(xa.R4).pipe((0,sn.R)(this.unSubs[0])).subscribe(H=>{if(this.information=H,this.flgLoading=!this.information.identity_pubkey,this.information.identity_pubkey){if(this.information.chains&&"string"==typeof this.information.chains[0])this.informationChain.chain=this.information.chains[0].toString(),this.informationChain.network=this.information.testnet?"Testnet":"Mainnet";else if(this.information&&this.information.chains&&this.information.chains.length&&this.information.chains.length>0&&"object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const G=this.information.chains[0];this.informationChain.chain=G.chain,this.informationChain.network=G.network}}else this.informationChain.chain="",this.informationChain.network="";this.logger.info(H)}),this.sessionService.watchSession().pipe((0,sn.R)(this.unSubs[1])).subscribe(H=>{this.showLogout=!!H.token,this.flgLoading=!!H.token}),this.actions.pipe((0,sn.R)(this.unSubs[2]),(0,Ya.h)(H=>H.type===Ne.pg.LOGOUT)).subscribe(()=>{this.showLogout=!1})}onClick(){this.store.dispatch((0,Rt.c1)({payload:{data:{type:Ne.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,sn.R)(this.unSubs[3])).subscribe(H=>{H&&(this.showLogout=!1,this.store.dispatch((0,Rt.kS)()))})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}}return(R=N).\u0275fac=function(H){return new(H||R)(e.Y36(ni.mQ),e.Y36(Ga.m),e.Y36(ki.yh),e.Y36(Ma.V),e.Y36(Ua.eX))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-top-menu"]],decls:14,vars:8,consts:[[1,"top-menu",3,"overlapTrigger"],["topMenu","matMenu"],["mat-menu-item","",1,"cursor-default"],[1,"fa-icon-small","mr-1",3,"icon"],["mat-menu-item","","class","cursor-default",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","",3,"matMenuTriggerFor"],["src","assets/images/RTL-Horse-BY.svg","alt","RTL Logo",1,"rtl-log-top"],[1,"rtl-logo-dropdown","color-white"],["mat-menu-item","","routerLink","/settings"],["routerLink","/settings"],["mat-menu-item","","routerLink","/help"],["routerLink","/help"],["mat-menu-item","",3,"click"]],template:function(H,G){if(1&H&&(e.TgZ(0,"mat-menu",0,1)(2,"p",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span"),e._uU(5),e.qZA()(),e.YNc(6,nl,4,2,"p",4),e.YNc(7,Id,4,1,"p",5),e.YNc(8,wh,4,1,"p",6),e.YNc(9,Mh,4,1,"p",7),e.qZA(),e.TgZ(10,"button",8),e._UZ(11,"img",9),e.TgZ(12,"mat-icon",10),e._uU(13,"arrow_drop_down"),e.qZA()()),2&H){const Le=e.MAs(1);e.Q6J("overlapTrigger",!1),e.xp6(3),e.Q6J("icon",G.faCodeBranch),e.xp6(2),e.hij("Version: ",G.version,""),e.xp6(1),e.Q6J("ngIf",null==G.information?null:G.information.api_version),e.xp6(1),e.Q6J("ngIf",G.showLogout),e.xp6(1),e.Q6J("ngIf",G.showLogout),e.xp6(1),e.Q6J("ngIf",G.showLogout),e.xp6(1),e.Q6J("matMenuTriggerFor",Le)}},dependencies:[Wi.O5,La.BN,bi.RK,ur.Hw,y1.VK,y1.OP,y1.p6,Wn.rH],styles:[".mat-mdc-icon-button img.rtl-log-top{width:2rem;height:2rem}.mat-icon.material-icons.mat-icon-no-color.rtl-logo-dropdown{height:2rem}\n"],encapsulation:2}),N})();const Ju=["sideNavigation"],kd=["sideNavContent"];function Sh(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(){e.CHM(S);const G=e.oxw();return e.KtG(G.sideNavToggle())}),e.TgZ(1,"mat-icon",15),e._uU(2,"menu"),e.qZA()()}if(2&R){const S=e.oxw();e.Q6J("matTooltip",S.flgSideNavOpened?"Hide Navigation Menu":"Show Navigation Menu")("matTooltipDisabled",S.smallScreen)}}function Eh(R,N){1&R&&(e.O4$(),e._UZ(0,"path",20))}function ns(R,N){1&R&&(e.O4$(),e._UZ(0,"path",21))}function J2(R,N){if(1&R){const S=e.EpF();e.TgZ(0,"button",16),e.NdJ("click",function(){e.CHM(S);const G=e.oxw();return e.KtG(G.flgSidenavPinned=!G.flgSidenavPinned)}),e.O4$(),e.TgZ(1,"svg",17),e.YNc(2,Eh,1,0,"path",18),e.YNc(3,ns,1,0,"path",19),e.qZA()()}if(2&R){const S=e.oxw();e.Q6J("matTooltip",S.flgSidenavPinned?"Unpin Navigation Menu":"Pin Navigation Menu"),e.xp6(2),e.Q6J("ngIf",!S.flgSidenavPinned),e.xp6(1),e.Q6J("ngIf",S.flgSidenavPinned)}}function X2(R,N){if(1&R&&(e.TgZ(0,"span",22),e._uU(1),e.qZA()),2&R){const S=e.oxw();e.xp6(1),e.Oqu(S.information.alias?"RTL - "+S.information.alias:"RTL")}}function Th(R,N){if(1&R&&(e.TgZ(0,"span",23),e._uU(1),e.qZA()),2&R){const S=e.oxw();e.xp6(1),e.Oqu(S.information.alias?"Ride The Lightning - "+S.information.alias:"Ride The Lightning")}}function Ah(R,N){1&R&&(e.TgZ(0,"div",24),e._UZ(1,"mat-spinner",25),e.TgZ(2,"h4"),e._uU(3,"Loading RTL..."),e.qZA()())}const $2=function(R,N){return[R,N]};let Lh=(()=>{var R;class N{constructor(H,G,Le,Mt,Xt,oi,Ci,Zi,Vi){this.logger=H,this.commonService=G,this.store=Le,this.actions=Mt,this.userIdle=Xt,this.router=oi,this.sessionService=Ci,this.breakpointObserver=Zi,this.renderer=Vi,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 Fi.x,new Fi.x,new Fi.x,new Fi.x,new Fi.x,new Fi.x,new Fi.x,new Fi.x]}ngOnInit(){this.router.events.subscribe(H=>{H instanceof Wn.m2&&document.getElementsByTagName("mat-sidenav-content")[0].scrollTo(0,0)}),this.breakpointObserver.observe([qn.u3.XSmall,qn.u3.TabletPortrait,qn.u3.Small,qn.u3.Medium,qn.u3.Large,qn.u3.XLarge]).pipe((0,sn.R)(this.unSubs[0])).subscribe(H=>{H.breakpoints[qn.u3.XSmall]?(this.commonService.setScreenSize(Ne.cu.XS),this.smallScreen=!0):H.breakpoints[qn.u3.TabletPortrait]?(this.commonService.setScreenSize(Ne.cu.SM),this.smallScreen=!0):H.breakpoints[qn.u3.Small]||H.breakpoints[qn.u3.Medium]?(this.commonService.setScreenSize(Ne.cu.MD),this.smallScreen=!1):H.breakpoints[qn.u3.Large]?(this.commonService.setScreenSize(Ne.cu.LG),this.smallScreen=!1):(this.commonService.setScreenSize(Ne.cu.XL),this.smallScreen=!1)}),this.store.dispatch((0,Rt.ey)()),this.accessKey=this.readAccessKey()||"",this.store.select(xa.dT).pipe((0,sn.R)(this.unSubs[1])).subscribe(H=>{this.settings=H.settings,this.sessionService.getItem("token")?(this.flgLoggedIn=!0,this.userIdle.startWatching()):(this.flgLoggedIn=!1,this.flgLoading[0]=!1)}),this.store.select(xa.Yj).pipe((0,sn.R)(this.unSubs[2])).subscribe(H=>{this.appConfig=H}),this.store.select(xa.R4).pipe((0,sn.R)(this.unSubs[3])).subscribe(H=>{this.information=H,this.flgLoading[0]=!this.information.identity_pubkey,this.logger.info(this.information)}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1),this.actions.pipe((0,sn.R)(this.unSubs[4]),(0,Ya.h)(H=>H.type===Ne.pg.SET_RTL_CONFIG||H.type===Ne.pg.LOGIN||H.type===Ne.pg.LOGOUT)).subscribe(H=>{H.type===Ne.pg.SET_RTL_CONFIG&&(this.sessionService.getItem("token")||(+H.payload.sso.rtlSSO?!this.accessKey||this.accessKey.trim().length<32?this.router.navigate(["./error"],{state:{errorCode:"406",errorMessage:"Access key too short. It should be at least 32 characters long."}}):this.store.dispatch((0,Rt.x4)({payload:{password:ha(this.accessKey).toString(),defaultPassword:!1}})):this.router.navigate(["./login"]))),H.type===Ne.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)),H.type===Ne.pg.LOGOUT&&(this.flgLoggedIn=!1,this.userIdle.stopWatching(),this.userIdle.stopTimer())}),this.userIdle.onTimerStart().pipe((0,sn.R)(this.unSubs[5])).subscribe(H=>{this.logger.info("Counting Down: "+(11-H))}),this.userIdle.onTimeout().pipe((0,sn.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,Rt.ts)()),this.store.dispatch((0,Rt.qR)({payload:{data:{type:Ne.n_.WARNING,alertTitle:"Logging out",titleMessage:"Time limit exceeded for session inactivity."}}})),this.store.dispatch((0,Rt.kS)()))}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1)}readAccessKey(){const H=window.location.href;return H.includes("access-key=")?H.substring(H.lastIndexOf("access-key=")+11).trim():null}ngAfterViewInit(){(this.smallScreen||!this.flgLoggedIn)&&this.sideNavigation.close(),this.commonService.setContainerSize(this.sideNavContent.elementRef.nativeElement.clientWidth,this.sideNavContent.elementRef.nativeElement.clientHeight)}sideNavToggle(){this.flgSideNavOpened=!this.flgSideNavOpened,this.sideNavigation.toggle()}onNavigationClicked(H){this.smallScreen&&this.sideNavigation.close()}copiedText(H){this.flgCopied=!0,setTimeout(()=>{this.flgCopied=!1},5e3),this.logger.info("Copied Text: "+H)}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(),H.complete()})}}return(R=N).\u0275fac=function(H){return new(H||R)(e.Y36(ni.mQ),e.Y36(ut.v),e.Y36(ki.yh),e.Y36(Ua.eX),e.Y36(Rc),e.Y36(Wn.F0),e.Y36(Ga.m),e.Y36(qn.Yg),e.Y36(e.Qsj))},R.\u0275cmp=e.Xpm({type:R,selectors:[["rtl-app"]],viewQuery:function(H,G){if(1&H&&(e.Gf(Ju,5),e.Gf(kd,5)),2&H){let Le;e.iGM(Le=e.CRH())&&(G.sideNavigation=Le.first),e.iGM(Le=e.CRH())&&(G.sideNavContent=Le.first)}},decls:23,vars:15,consts:[["fxLayout","column","id","rtl-container",1,"rtl-container","medium",3,"ngClass"],["fxLayout","row","fxLayoutAlign","space-between center",1,"bg-primary","rtl-top-toolbar"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","matTooltipDisabled","click",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click",4,"ngIf"],["class","font-weight-500",4,"ngIf"],["class","font-size-120 font-weight-500",4,"ngIf"],[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",3,"matTooltip","matTooltipDisabled","click"],[1,"color-white"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click"],["width","20","height","20","viewBox","0 0 24 24",1,"icon-pinned"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z",4,"ngIf"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z",4,"ngIf"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z"],[1,"font-weight-500"],[1,"font-size-120","font-weight-500"],[1,"rtl-spinner"],["color","accent"]],template:function(H,G){1&H&&(e.TgZ(0,"div",0),e.ALo(1,"lowercase"),e.ALo(2,"lowercase"),e.TgZ(3,"mat-toolbar",1)(4,"div"),e.YNc(5,Sh,3,2,"button",2),e.YNc(6,J2,4,3,"button",3),e.qZA(),e.TgZ(7,"div"),e.YNc(8,X2,2,1,"span",4),e.YNc(9,Th,2,1,"span",5),e.qZA(),e.TgZ(10,"div"),e._UZ(11,"rtl-top-menu"),e.qZA()(),e.TgZ(12,"mat-sidenav-container")(13,"mat-sidenav",6,7)(15,"rtl-side-navigation",8),e.NdJ("ChildNavClicked",function(Mt){return G.onNavigationClicked(Mt)}),e.qZA()(),e.TgZ(16,"mat-sidenav-content",9,10)(18,"div",11),e._UZ(19,"router-outlet",null,12),e.qZA()(),e._uU(21,"> "),e.qZA(),e.YNc(22,Ah,4,0,"div",13),e.qZA()),2&H&&(e.Q6J("ngClass",e.WLB(12,$2,e.lcZ(1,8,G.settings.themeColor),e.lcZ(2,10,G.settings.themeMode))),e.xp6(5),e.Q6J("ngIf",G.flgLoggedIn),e.xp6(1),e.Q6J("ngIf",!G.smallScreen&&G.flgLoggedIn),e.xp6(2),e.Q6J("ngIf",G.smallScreen),e.xp6(1),e.Q6J("ngIf",!G.smallScreen),e.xp6(4),e.Q6J("opened",G.flgSideNavOpened&&G.flgLoggedIn)("mode",G.flgSidenavPinned&&!G.smallScreen?"side":"over"),e.xp6(9),e.Q6J("ngIf",!G.settings.themeColor))},dependencies:[Wi.mk,Wi.O5,ji.xw,ji.Wh,ji.yH,Lt.oO,bi.RK,ur.Hw,Md.Ou,Sd.JX,Sd.TM,Sd.Rh,Al.Ye,To.gM,tn.$V,Dd,q2,Wn.lC,Wi.i8],styles:[".inline-spinner[_ngcontent-%COMP%]{display:inline-flex!important;top:0!important}"],data:{animation:[Mc.g]}}),N})(),e0=(()=>{var R;class N{constructor(H){this.sessionService=H}intercept(H,G){if(this.sessionService.getItem("token")){const Le=H.clone({headers:H.headers.set("Authorization","Bearer "+this.sessionService.getItem("token")),withCredentials:!0});return G.handle(Le)}return G.handle(H)}}return(R=N).\u0275fac=function(H){return new(H||R)(e.LFG(Ga.m))},R.\u0275prov=e.Yz7({token:R,factory:R.\u0275fac}),N})();var t0=m(7998),Dh=m(711),x1=m(4947),Nn=m(3289);const Od={userPersona:"OPERATOR",themeMode:"DAY",themeColor:"PURPLE",channelBackupPath:"",selCurrencyUnit:"USD",unannouncedChannels:!1,fiatConversion:!1,currencyUnits:["Sats","BTC","USD"],bitcoindConfigPath:"",enableOffers:!1,enablePeerswap:!1},Pd={configPath:"",swapMacaroonPath:"",boltzMacaroonPath:""},Rd={apiURL:"",apisCallStatus:{Login:{status:Ne.Bn.UN_INITIATED},IsAuthorized:{status:Ne.Bn.UN_INITIATED}},selNode:{index:1,lnNode:"Node 1",settings:Od,authentication:Pd,lnImplementation:"LND"},appConfig:{defaultNodeIndex:-1,selectedNodeIndex:-1,sso:{rtlSSO:0,logoutRedirectLink:""},enable2FA:!1,allowPasswordUpdate:!0,nodes:[{settings:Od,authentication:Pd}]},nodeData:{}},Ih=(0,ki.Lq)(Rd,(0,ki.on)(Rt.qi,(R,{payload:N})=>{const S=JSON.parse(JSON.stringify(R.apisCallStatus));return N.action&&(S[N.action]={status:N.status,statusCode:N.statusCode,message:N.message,URL:N.URL,filePath:N.filePath}),{...R,apisCallStatus:S}}),(0,ki.on)(Rt.vI,(R,{payload:N})=>({...Rd,apisCallStatus:R.apisCallStatus,appConfig:R.appConfig,selNode:N})),(0,ki.on)(Rt.fk,(R,{payload:N})=>({...R,selNode:N.currentLnNode})),(0,ki.on)(Rt.Tm,(R,{payload:N})=>{const S=JSON.parse(JSON.stringify(R.selNode));switch(N.service){case Ne.JX.BOLTZ:S.settings.boltzServerUrl=N.settings.boltzServerUrl;break;case Ne.JX.LOOP:S.settings.swapServerUrl=N.settings.swapServerUrl;break;case Ne.JX.OFFERS:S.settings.enableOffers=N.settings.enableOffers;break;case Ne.JX.PEERSWAP:S.settings.enablePeerswap=N.settings.enablePeerswap}return{...R,selNode:S}}),(0,ki.on)(Rt._V,(R,{payload:N})=>({...R,nodeData:N})),(0,ki.on)(Rt.XT,(R,{payload:N})=>({...R,appConfig:N}))),Nd={apisCallStatus:{FetchPageSettings:{status:Ne.Bn.UN_INITIATED},FetchInfo:{status:Ne.Bn.UN_INITIATED},FetchFees:{status:Ne.Bn.UN_INITIATED},FetchPeers:{status:Ne.Bn.UN_INITIATED},FetchClosedChannels:{status:Ne.Bn.UN_INITIATED},FetchPendingChannels:{status:Ne.Bn.UN_INITIATED},FetchAllChannels:{status:Ne.Bn.UN_INITIATED},FetchBalanceBlockchain:{status:Ne.Bn.UN_INITIATED},FetchInvoices:{status:Ne.Bn.UN_INITIATED},FetchPayments:{status:Ne.Bn.UN_INITIATED},FetchForwardingHistory:{status:Ne.Bn.UN_INITIATED},FetchUTXOs:{status:Ne.Bn.UN_INITIATED},FetchTransactions:{status:Ne.Bn.UN_INITIATED},FetchLightningTransactions:{status:Ne.Bn.UN_INITIATED},FetchNetwork:{status:Ne.Bn.UN_INITIATED}},nodeSettings:{userPersona:Ne.ol.OPERATOR,unannouncedChannels:!1,fiatConversion:!1,channelBackupPath:"",currencyUnits:[],selCurrencyUnit:"",lnImplementation:"",swapServerUrl:""},pageSettings:Ne.gK,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 Fd=!1,n0=!1;const a0=(0,ki.Lq)(Nd,(0,ki.on)(Be.PC,(R,{payload:N})=>{const S=JSON.parse(JSON.stringify(R.apisCallStatus));return N.action&&(S[N.action]={status:N.status,statusCode:N.statusCode,message:N.message,URL:N.URL,filePath:N.filePath}),{...R,apisCallStatus:S}}),(0,ki.on)(Be.JT,(R,{payload:N})=>({...R,nodeSettings:N})),(0,ki.on)(Be.Ll,(R,{payload:N})=>({...Nd,nodeSettings:N})),(0,ki.on)(Be.CX,(R,{payload:N})=>({...R,information:N})),(0,ki.on)(Be.Z8,(R,{payload:N})=>({...R,peers:N})),(0,ki.on)(Be.EK,(R,{payload:N})=>{const S=[...R.peers],H=R.peers.findIndex(G=>G.pub_key===N.pubkey);return H>-1&&S.splice(H,1),{...R,peers:S}}),(0,ki.on)(Be.YP,(R,{payload:N})=>{const S=R.listInvoices;return S.invoices?.unshift(N),{...R,listInvoices:S}}),(0,ki.on)(Be.aL,(R,{payload:N})=>{const S=R.listInvoices;return S.invoices=S.invoices?.map(H=>H.payment_request===N.payment_request?N:H),{...R,listInvoices:S}}),(0,ki.on)(Be.qY,(R,{payload:N})=>{const S=R.listPayments;return S.payments=S.payments?.map(H=>H.payment_hash===N.payment_hash?N:H),{...R,listPayments:S}}),(0,ki.on)(Be.RX,(R,{payload:N})=>({...R,fees:N})),(0,ki.on)(Be._L,(R,{payload:N})=>({...R,closedChannels:N})),(0,ki.on)(Be.TW,(R,{payload:N})=>({...R,pendingChannels:N.pendingChannels,pendingChannelsSummary:N.pendingChannelsSummary})),(0,ki.on)(Be.as,(R,{payload:N})=>{let S=0,H=0,G=0,Le=0,Mt=0,Xt=0;return N&&N.forEach(oi=>{oi.local_balance||(oi.local_balance=0),!0===oi.active?(Mt+=+oi.local_balance,G+=1,oi.local_balance?S=+S+ +oi.local_balance:oi.local_balance=0,oi.remote_balance?H=+H+ +oi.remote_balance:oi.remote_balance=0):(Xt+=+oi.local_balance,Le+=1)}),{...R,channels:N,channelsSummary:{active:{num_channels:G,capacity:Mt},inactive:{num_channels:Le,capacity:Xt}},lightningBalance:{local:S,remote:H}}}),(0,ki.on)(Be.OG,(R,{payload:N})=>{const S=[...R.channels],H=R.channels.findIndex(G=>G.channel_point===N.channelPoint);return H>-1&&S.splice(H,1),{...R,channels:S}}),(0,ki.on)(Be.Jl,(R,{payload:N})=>({...R,blockchainBalance:N})),(0,ki.on)(Be.ks,(R,{payload:N})=>({...R,networkInfo:N})),(0,ki.on)(Be.Nr,(R,{payload:N})=>(N.total_invoices||(N.total_invoices=R.listInvoices.total_invoices),{...R,listInvoices:N})),(0,ki.on)(Be.Lf,(R,{payload:N})=>{if(Fd=!0,N.length&&n0){const S=[...R.utxos];return S.forEach(H=>{const G=N.find(Le=>Le.tx_hash===H.outpoint?.txid_str);H.label=G&&G.label?G.label:""}),{...R,utxos:S,transactions:N}}return{...R,transactions:N}}),(0,ki.on)(Be.UH,(R,{payload:N})=>{if(n0=!0,N.length&&Fd){const S=[...R.transactions];N.forEach(H=>{const G=S.find(Le=>Le.tx_hash===H.outpoint?.txid_str);H.label=G&&G.label?G.label:""})}return{...R,utxos:N}}),(0,ki.on)(Be.HI,(R,{payload:N})=>{const S={listInvoicesAll:R.allLightningTransactions.listInvoicesAll,listPaymentsAll:N};return{...R,listPayments:N,allLightningTransactions:S}}),(0,ki.on)(Be.Fr,(R,{payload:N})=>{const S={listInvoicesAll:N.listInvoicesAll,listPaymentsAll:R.listPayments};return{...R,allLightningTransactions:S}}),(0,ki.on)(Be.QJ,(R,{payload:N})=>{const S=[...R.channels,...R.closedChannels];let H=N.forwarding_events?JSON.parse(JSON.stringify(N)):{};return H.forwarding_events&&(H=r0(H,S)),{...R,forwardingHistory:H}}),(0,ki.on)(Be.pd,(R,{payload:N})=>{const S=[];return Ne.gK.forEach(H=>{const G=N&&N.length&&N.length>0?N.find(Le=>Le.pageId===H.pageId):null;if(G){const Le=JSON.parse(JSON.stringify(G.tables));G.tables=[],H.tables.forEach(Mt=>{const Xt=Le.find(oi=>oi.tableId===Mt.tableId)||null;G.tables.push(Xt||JSON.parse(JSON.stringify(Mt)))}),S.push(G)}else S.push(JSON.parse(JSON.stringify(H)))}),{...R,pageSettings:S}})),r0=(R,N)=>(R.forwarding_events.forEach(S=>{if(N&&N.length>0)for(let H=0;H{const S=JSON.parse(JSON.stringify(R.apisCallStatus));return N.action&&(S[N.action]={status:N.status,statusCode:N.statusCode,message:N.message,URL:N.URL,filePath:N.filePath}),{...R,apisCallStatus:S}}),(0,ki.on)(ae.Mf,(R,{payload:N})=>({...R,nodeSettings:N})),(0,ki.on)(ae.mI,(R,{payload:N})=>({...o0,nodeSettings:N})),(0,ki.on)(ae.CX,(R,{payload:N})=>({...R,information:N})),(0,ki.on)(ae.RX,(R,{payload:N})=>({...R,fees:N})),(0,ki.on)(ae.I8,(R,{payload:N})=>N.perkb?{...R,feeRatesPerKB:N}:N.perkw?{...R,feeRatesPerKW:N}:{...R}),(0,ki.on)(ae.Lu,(R,{payload:N})=>({...R,balance:N})),(0,ki.on)(ae.xS,(R,{payload:N})=>({...R,localRemoteBalance:N})),(0,ki.on)(ae.Z8,(R,{payload:N})=>({...R,peers:N})),(0,ki.on)(ae.X3,(R,{payload:N})=>({...R,peers:[...R.peers,N]})),(0,ki.on)(ae.EK,(R,{payload:N})=>{const S=[...R.peers],H=R.peers.findIndex(G=>G.id===N.id);return H>-1&&S.splice(H,1),{...R,peers:S}}),(0,ki.on)(ae.as,(R,{payload:N})=>({...R,activeChannels:N.activeChannels,pendingChannels:N.pendingChannels,inactiveChannels:N.inactiveChannels})),(0,ki.on)(ae.OG,(R,{payload:N})=>{const S=[...R.peers];return S.forEach(H=>{H.id===N.id&&(H.connected=!1,delete H.netaddr)}),{...R,peers:S}}),(0,ki.on)(ae.HI,(R,{payload:N})=>({...R,payments:N})),(0,ki.on)(ae.QJ,(R,{payload:N})=>{const S=[...R.activeChannels,...R.pendingChannels,...R.inactiveChannels],H=Hd(N.listForwards,S);switch(N.listForwards=H,N.status){case Ne.OO.SETTLED:const G=R.fees;return G.totalTxCount=N.totalForwards||0,{...R,fees:G,forwardingHistory:N};case Ne.OO.FAILED:return{...R,failedForwardingHistory:N};case Ne.OO.LOCAL_FAILED:return{...R,localFailedForwardingHistory:N};default:return{...R}}}),(0,ki.on)(ae.YP,(R,{payload:N})=>{const S=R.invoices;return S.invoices?.unshift(N),{...R,invoices:S}}),(0,ki.on)(ae.Nr,(R,{payload:N})=>({...R,invoices:N})),(0,ki.on)(ae.aL,(R,{payload:N})=>{const S=R.invoices;return S.invoices=S.invoices?.map(H=>H.label===N.label?N:H),{...R,invoices:S}}),(0,ki.on)(ae.UH,(R,{payload:N})=>({...R,utxos:N})),(0,ki.on)(ae.Zu,(R,{payload:N})=>({...R,offers:N})),(0,ki.on)(ae.ZH,(R,{payload:N})=>{const S=R.offers;return S?.unshift(N),{...R,offers:S}}),(0,ki.on)(ae.JK,(R,{payload:N})=>{const S=[...R.offers],H=R.offers.findIndex(G=>G.offer_id===N.offer.offer_id);return H>-1&&S.splice(H,1,N.offer),{...R,offers:S}}),(0,ki.on)(ae.d7,(R,{payload:N})=>({...R,offersBookmarks:N})),(0,ki.on)(ae.e9,(R,{payload:N})=>{const S=[...R.offersBookmarks],H=S.findIndex(G=>G.bolt12===N.bolt12);if(H<0)S?.unshift(N);else{const G={...S[H]};G.title=N.title,G.amountMSat=N.amountMSat,G.lastUpdatedAt=N.lastUpdatedAt,G.description=N.description,G.issuer=N.issuer,S.splice(H,1,G)}return{...R,offersBookmarks:S}}),(0,ki.on)(ae.en,(R,{payload:N})=>{const S=[...R.offersBookmarks],H=R.offersBookmarks.findIndex(G=>G.bolt12===N.bolt12);return H>-1&&S.splice(H,1),{...R,offersBookmarks:S}}),(0,ki.on)(ae.pd,(R,{payload:N})=>{const S=[];return Ne.gG.forEach(H=>{const G=N&&N.length&&N.length>0?N.find(Le=>Le.pageId===H.pageId):null;if(G){const Le=JSON.parse(JSON.stringify(G.tables));G.tables=[],H.tables.forEach(Mt=>{const Xt=Le.find(oi=>oi.tableId===Mt.tableId)||null;G.tables.push(Xt||JSON.parse(JSON.stringify(Mt)))}),S.push(G)}else S.push(JSON.parse(JSON.stringify(H)))}),{...R,pageSettings:S}})),Hd=(R,N)=>(R&&R.length>0?R.forEach((S,H)=>{if(N&&N.length>0)for(let G=0;G{const S=JSON.parse(JSON.stringify(R.apisCallStatus));return N.action&&(S[N.action]={status:N.status,statusCode:N.statusCode,message:N.message,URL:N.URL,filePath:N.filePath}),{...R,apisCallStatus:S}}),(0,ki.on)(we.Zr,(R,{payload:N})=>({...R,nodeSettings:N})),(0,ki.on)(we.Fd,(R,{payload:N})=>({...zd,nodeSettings:N})),(0,ki.on)(we.CX,(R,{payload:N})=>({...R,information:N})),(0,ki.on)(we.RX,(R,{payload:N})=>({...R,fees:N})),(0,ki.on)(we.eN,(R,{payload:N})=>({...R,activeChannels:N})),(0,ki.on)(we.TW,(R,{payload:N})=>({...R,pendingChannels:N})),(0,ki.on)(we.i,(R,{payload:N})=>({...R,inactiveChannels:N})),(0,ki.on)(we.HG,(R,{payload:N})=>({...R,channelsStatus:N})),(0,ki.on)(we.Bw,(R,{payload:N})=>({...R,onchainBalance:N})),(0,ki.on)(we.On,(R,{payload:N})=>({...R,lightningBalance:N})),(0,ki.on)(we.Z8,(R,{payload:N})=>({...R,peers:N})),(0,ki.on)(we.EK,(R,{payload:N})=>{const S=[...R.peers],H=R.peers.findIndex(G=>G.nodeId===N.nodeId);return H>-1&&S.splice(H,1),{...R,peers:S}}),(0,ki.on)(we.OG,(R,{payload:N})=>{const S=[...R.activeChannels],H=R.activeChannels.findIndex(G=>G.channelId===N.channelId);return H>-1&&S.splice(H,1),{...R,activeChannels:S}}),(0,ki.on)(we.HI,(R,{payload:N})=>{if(N&&N.sent){const S=[...R.activeChannels,...R.pendingChannels,...R.inactiveChannels];N.sent?.map(H=>{const G=R.peers.find(Le=>Le.nodeId===H.recipientNodeId);return H.recipientNodeAlias=G?G.alias:H.recipientNodeId,H.parts&&H.parts?.map(Le=>{const Mt=S.find(Xt=>Xt.channelId===Le.toChannelId);return Le.toChannelAlias=Mt?Mt.alias:Le.toChannelId,H.parts}),N.sent})}if(N&&N.relayed){const S=[...R.activeChannels,...R.pendingChannels,...R.inactiveChannels];N.relayed.forEach(H=>{H=s0(H,S)})}return{...R,payments:N}}),(0,ki.on)(we.Lf,(R,{payload:N})=>({...R,transactions:N})),(0,ki.on)(we.YP,(R,{payload:N})=>{const S=R.invoices;return S?.unshift(N),{...R,invoices:S}}),(0,ki.on)(we.Nr,(R,{payload:N})=>({...R,invoices:N})),(0,ki.on)(we.aL,(R,{payload:N})=>{let S=R.invoices;return S=S?.map(H=>{if(H.paymentHash===N.paymentHash){if(N.hasOwnProperty("type")){const G=JSON.parse(JSON.stringify(H));return G.amountSettled=N.parts&&N.parts.length&&N.parts.length>0&&N.parts[0].amount?(N.parts[0].amount||0)/1e3:0,G.receivedAt=N.parts&&N.parts.length&&N.parts.length>0&&N.parts[0].timestamp?Math.round((N.parts[0].timestamp||0)/1e3):0,G.status="received",G}return N}return H}),{...R,invoices:S}}),(0,ki.on)(we.DJ,(R,{payload:N})=>{let S=R.pendingChannels;return S=S?.map(H=>(H.channelId===N.channelId&&H.nodeId===N.remoteNodeId&&(N.currentState=N.currentState?.replace(/_/g," "),H.state=N.currentState),H)),{...R,pendingChannels:S}}),(0,ki.on)(we.ti,(R,{payload:N})=>{const S=R.payments,H=s0(N,[...R.activeChannels,...R.pendingChannels,...R.inactiveChannels]);S.relayed?.unshift(H);const G=(N.amountIn||0)-(N.amountOut||0),Le={localBalance:R.lightningBalance.localBalance+G,remoteBalance:R.lightningBalance.remoteBalance-G},Mt=R.channelsStatus;Mt.active&&(Mt.active.capacity=(R.channelsStatus?.active?.capacity||0)+G);const Xt={daily_fee:(R.fees.daily_fee||0)+G,daily_txs:(R.fees.daily_txs||0)+1,weekly_fee:(R.fees.weekly_fee||0)+G,weekly_txs:(R.fees.weekly_txs||0)+1,monthly_fee:(R.fees.monthly_fee||0)+G,monthly_txs:(R.fees.monthly_txs||0)+1},oi=R.activeChannels;let Ci=!1,Zi=!1;for(const Vi of oi){if(Vi.channelId===N.fromChannelId){Ci=!0;const Ln=(Vi.toLocal||0)+(Vi.toRemote||0);Vi.toLocal=(Vi.toLocal||0)+H.amountIn,Vi.toRemote=(Vi.toRemote||0)-H.amountIn,Vi.balancedness=0===Ln?1:+(1-Math.abs((Vi.toLocal-Vi.toRemote)/Ln)).toFixed(3)}if(Vi.channelId===N.toChannelId){Zi=!0;const Ln=(Vi.toLocal||0)+(Vi.toRemote||0);Vi.toLocal=(Vi.toLocal||0)-H.amountOut,Vi.toRemote=(Vi.toRemote||0)+H.amountOut,Vi.balancedness=0===Ln?1:+(1-Math.abs((Vi.toLocal-Vi.toRemote)/Ln)).toFixed(3)}if(Zi&&Ci)break}return{...R,payments:S,lightningBalance:Le,channelStatus:Mt,fees:Xt,activeChannels:oi}}),(0,ki.on)(we.pd,(R,{payload:N})=>{const S=[];return Ne.c3.forEach(H=>{const G=N&&N.length&&N.length>0?N.find(Le=>Le.pageId===H.pageId):null;if(G){const Le=JSON.parse(JSON.stringify(G.tables));G.tables=[],H.tables.forEach(Mt=>{const Xt=Le.find(oi=>oi.tableId===Mt.tableId)||null;G.tables.push(Xt||JSON.parse(JSON.stringify(Mt)))}),S.push(G)}else S.push(JSON.parse(JSON.stringify(H)))}),{...R,pageSettings:S}})),s0=(R,N)=>{if("payment-relayed"===R.type)if(N&&N.length>0)for(let S=0;S0)for(let S=0;S{N[S].channelId?.toString()===H.channelId&&(H.channelAlias=N[S].alias?N[S].alias:H.channelId,H.shortChannelId=N[S].shortChannelId?N[S].shortChannelId:"")}),R.outgoing?.forEach(H=>{N[S].channelId?.toString()===H.channelId&&(H.channelAlias=N[S].alias?N[S].alias:H.channelId,H.shortChannelId=N[S].shortChannelId?N[S].shortChannelId:"")}),S===N.length-1&&(R.incoming&&R.incoming.length&&R.incoming.length>0&&!R.incoming[0].channelAlias&&R.incoming?.forEach(H=>{H.channelAlias=H.channelId?.substring(0,17)+"...",H.shortChannelId=""}),R.outgoing&&R.outgoing.length&&R.outgoing.length>0&&!R.outgoing[0].channelAlias&&R.outgoing?.forEach(H=>{H.channelAlias=H.channelId?.substring(0,17)+"...",H.shortChannelId=""}));else R.incoming?.forEach(S=>{S.channelAlias=S.channelId?.substring(0,17)+"...",S.shortChannelId=""}),R.outgoing?.forEach(S=>{S.channelAlias=S.channelId?.substring(0,17)+"...",S.shortChannelId=""});R.amountIn=R.incoming?.reduce((S,H)=>S+H.amount,0)||0,R.fromChannelId=R.incoming&&R.incoming.length?R.incoming[0].channelId:"",R.fromChannelAlias=R.incoming&&R.incoming.length?R.incoming[0].channelAlias:"",R.fromShortChannelId=R.incoming&&R.incoming.length?R.incoming[0].shortChannelId:"",R.amountOut=R.outgoing?.reduce((S,H)=>S+H.amount,0)||0,R.toChannelId=R.outgoing&&R.outgoing.length?R.outgoing[0].channelId:"",R.toChannelAlias=R.outgoing&&R.outgoing.length?R.outgoing[0].channelAlias:"",R.toShortChannelId=R.outgoing&&R.outgoing.length?R.outgoing[0].shortChannelId:""}return R};let C1=!1;(0,e.X6Q)()&&(C1=!0);let w1=(()=>{var R;class N{}return(R=N).\u0275fac=function(H){return new(H||R)},R.\u0275mod=e.oAB({type:R,bootstrap:[Lh]}),R.\u0275inj=e.cJS({providers:[{provide:$o.TP,useClass:e0,multi:!0},Ga.m,Sl.D,t0.d,h2.W,ut.v,Qc],imports:[Xo,Tl.m,W2,qn.xu,t.t6,hc.forRoot({idle:Ne.k_-10,timeout:10,ping:12e3}),ki.Aw.forRoot({root:Ih,lnd:a0,cln:Xu,ecl:ic},{runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),Ua.sQ.forRoot([Ma.V,Dh.l,x1.J,Nn.o]),C1?co.FT.instrument():[]]}),N})();t.q6().bootstrapModule(w1).catch(R=>console.error(R))},7854:(We,q)=>{"use strict";function m(xe){return Object.keys(xe).map(fe=>xe[fe])}var xe;Object.defineProperty(q,"__esModule",{value:!0}),(xe=q.HashAlgorithms||(q.HashAlgorithms={})).SHA1="sha1",xe.SHA256="sha256",xe.SHA512="sha512";const t=m(q.HashAlgorithms);!function(xe){xe.ASCII="ascii",xe.BASE64="base64",xe.HEX="hex",xe.LATIN1="latin1",xe.UTF8="utf8"}(q.KeyEncodings||(q.KeyEncodings={}));const e=m(q.KeyEncodings);!function(xe){xe.HOTP="hotp",xe.TOTP="totp"}(q.Strategy||(q.Strategy={}));const _=m(q.Strategy),T=()=>{throw new Error("Please provide an options.createDigest implementation.")};function s(xe){return/^(\d+)$/.test(xe)}function y(xe,fe,Oe){return xe.length>=fe?xe:`${Array(fe+1).join(Oe)}${xe}`.slice(-1*fe)}function h(xe){const fe=`otpauth://${xe.type}/{labelPrefix}:{accountName}?secret={secret}{query}`,Oe=[];if(_.indexOf(xe.type)<0)throw new Error(`Expecting options.type to be one of ${_.join(", ")}. Received ${xe.type}.`);if("hotp"===xe.type){if(null==xe.counter||"number"!=typeof xe.counter)throw new Error('Expecting options.counter to be a number when options.type is "hotp".');Oe.push(`&counter=${xe.counter}`)}return"totp"===xe.type&&xe.step&&Oe.push(`&period=${xe.step}`),xe.digits&&Oe.push(`&digits=${xe.digits}`),xe.algorithm&&Oe.push(`&algorithm=${xe.algorithm.toUpperCase()}`),xe.issuer&&Oe.push(`&issuer=${encodeURIComponent(xe.issuer)}`),fe.replace("{labelPrefix}",encodeURIComponent(xe.issuer||xe.accountName)).replace("{accountName}",encodeURIComponent(xe.accountName)).replace("{secret}",xe.secret).replace("{query}",Oe.join(""))}class P{constructor(fe={}){this._defaultOptions=Object.freeze({...fe}),this._options=Object.freeze({})}create(fe={}){return new P(fe)}clone(fe={}){const Oe=this.create({...this._defaultOptions,...fe});return Oe.options=this._options,Oe}get options(){return Object.freeze({...this._defaultOptions,...this._options})}set options(fe){this._options=Object.freeze({...this._options,...fe})}allOptions(){return this.options}resetOptions(){this._options=Object.freeze({})}}function d(xe){if("function"!=typeof xe.createDigest)throw new Error("Expecting options.createDigest to be a function.");if("function"!=typeof xe.createHmacKey)throw new Error("Expecting options.createHmacKey to be a function.");if("number"!=typeof xe.digits)throw new Error("Expecting options.digits to be a number.");if(!xe.algorithm||t.indexOf(xe.algorithm)<0)throw new Error(`Expecting options.algorithm to be one of ${t.join(", ")}. Received ${xe.algorithm}.`);if(!xe.encoding||e.indexOf(xe.encoding)<0)throw new Error(`Expecting options.encoding to be one of ${e.join(", ")}. Received ${xe.encoding}.`)}const w=(xe,fe,Oe)=>Buffer.from(fe,Oe).toString("hex");function C(){return{algorithm:q.HashAlgorithms.SHA1,createHmacKey:w,createDigest:T,digits:6,encoding:q.KeyEncodings.ASCII}}function L(xe){const fe={...C(),...xe};return d(fe),Object.freeze(fe)}function D(xe){return y(xe.toString(16),16,"0")}function z(xe,fe){const Oe=Buffer.from(xe,"hex"),oe=15&Oe[Oe.length-1],De=((127&Oe[oe])<<24|(255&Oe[oe+1])<<16|(255&Oe[oe+2])<<8|255&Oe[oe+3])%Math.pow(10,fe);return y(String(De),fe,"0")}function Y(xe,fe,Oe){const oe=Oe.digest||function V(xe,fe,Oe){const oe=D(fe),Fe=Oe.createHmacKey(Oe.algorithm,xe,Oe.encoding);return Oe.createDigest(Oe.algorithm,Fe,oe)}(xe,fe,Oe);return z(oe,Oe.digits)}function j(xe,fe,Oe,oe){return!!s(xe)&&xe===Y(fe,Oe,oe)}function Q(xe,fe,Oe,oe,Fe){return h({algorithm:Fe.algorithm,digits:Fe.digits,type:q.Strategy.HOTP,accountName:xe,counter:oe,issuer:fe,secret:Oe})}class J extends P{create(fe={}){return new J(fe)}allOptions(){return L(this.options)}generate(fe,Oe){return Y(fe,Oe,this.allOptions())}check(fe,Oe,oe){return j(fe,Oe,oe,this.allOptions())}verify(fe){if("object"!=typeof fe)throw new Error("Expecting argument 0 of verify to be an object");return this.check(fe.token,fe.secret,fe.counter)}keyuri(fe,Oe,oe,Fe){return Q(fe,Oe,oe,Fe,this.allOptions())}}function ee(xe){if("number"==typeof xe)return[Math.abs(xe),Math.abs(xe)];if(Array.isArray(xe)){const[fe,Oe]=xe;if("number"==typeof fe&&"number"==typeof Oe)return[Math.abs(fe),Math.abs(Oe)]}throw new Error("Expecting options.window to be an number or [number, number].")}function me(xe){if(d(xe),ee(xe.window),"number"!=typeof xe.epoch)throw new Error("Expecting options.epoch to be a number.");if("number"!=typeof xe.step)throw new Error("Expecting options.step to be a number.")}const re=(xe,fe,Oe)=>{const oe=xe.length,Fe=Buffer.from(xe,fe).toString("hex");if(oe{switch(xe){case q.HashAlgorithms.SHA1:return re(fe,Oe,20);case q.HashAlgorithms.SHA256:return re(fe,Oe,32);case q.HashAlgorithms.SHA512:return re(fe,Oe,64);default:throw new Error(`Expecting algorithm to be one of ${t.join(", ")}. Received ${xe}.`)}};function se(){return{algorithm:q.HashAlgorithms.SHA1,createDigest:T,createHmacKey:ie,digits:6,encoding:q.KeyEncodings.ASCII,epoch:Date.now(),step:30,window:0}}function ce(xe){const fe={...se(),...xe};return me(fe),Object.freeze(fe)}function Ce(xe,fe){return Math.floor(xe/fe/1e3)}function M(xe,fe){return Y(xe,Ce(fe.epoch,fe.step),fe)}function i(xe,fe,Oe,oe){const Fe=[];if(0===oe)return Fe;for(let De=1;De<=oe;De++)Fe.push(xe+fe*De*Oe);return Fe}function a(xe,fe,Oe){const oe=ee(Oe),Fe=1e3*fe;return{current:xe,past:i(xe,-1,Fe,oe[0]),future:i(xe,1,Fe,oe[1])}}function f(xe,fe,Oe){return!!s(xe)&&xe===M(fe,Oe)}function l(xe,fe,Oe,oe){let Fe=null;return xe.some((De,he)=>!!f(fe,Oe,{...oe,epoch:De})&&(Fe=he+1,!0)),Fe}function v(xe,fe,Oe){if(f(xe,fe,Oe))return 0;const oe=a(Oe.epoch,Oe.step,Oe.window),Fe=l(oe.past,xe,fe,Oe);return null!==Fe?-1*Fe:l(oe.future,xe,fe,Oe)}function I(xe,fe){return Math.floor(xe/1e3)%fe}function k(xe,fe){return fe-I(xe,fe)}function x(xe,fe,Oe,oe){return h({algorithm:oe.algorithm,digits:oe.digits,step:oe.step,type:q.Strategy.TOTP,accountName:xe,issuer:fe,secret:Oe})}class n extends J{create(fe={}){return new n(fe)}allOptions(){return ce(this.options)}generate(fe){return M(fe,this.allOptions())}checkDelta(fe,Oe){return v(fe,Oe,this.allOptions())}check(fe,Oe){return"number"==typeof this.checkDelta(fe,Oe)}verify(fe){if("object"!=typeof fe)throw new Error("Expecting argument 0 of verify to be an object");return this.check(fe.token,fe.secret)}timeRemaining(){const fe=this.allOptions();return k(fe.epoch,fe.step)}timeUsed(){const fe=this.allOptions();return I(fe.epoch,fe.step)}keyuri(fe,Oe,oe){return x(fe,Oe,oe,this.allOptions())}}function g(xe){if(me(xe),"function"!=typeof xe.keyDecoder)throw new Error("Expecting options.keyDecoder to be a function.");if(xe.keyEncoder&&"function"!=typeof xe.keyEncoder)throw new Error("Expecting options.keyEncoder to be a function.")}function W(){return{algorithm:q.HashAlgorithms.SHA1,createDigest:T,createHmacKey:ie,digits:6,encoding:q.KeyEncodings.HEX,epoch:Date.now(),step:30,window:0}}function O(xe){const fe={...W(),...xe};return g(fe),Object.freeze(fe)}function U(xe,fe){return fe.keyEncoder(xe,fe.encoding)}function ge(xe,fe){return fe.keyDecoder(xe,fe.encoding)}function nt(xe,fe){return U(fe.createRandomBytes(xe,fe.encoding),fe)}function Ue(xe,fe){return M(ge(xe,fe),fe)}function at(xe,fe,Oe){return v(xe,ge(fe,Oe),Oe)}class ye extends n{create(fe={}){return new ye(fe)}allOptions(){return O(this.options)}generate(fe){return Ue(fe,this.allOptions())}checkDelta(fe,Oe){return at(fe,Oe,this.allOptions())}encode(fe){return U(fe,this.allOptions())}decode(fe){return ge(fe,this.allOptions())}generateSecret(fe=10){return nt(fe,this.allOptions())}}q.Authenticator=ye,q.HASH_ALGORITHMS=t,q.HOTP=J,q.KEY_ENCODINGS=e,q.OTP=P,q.STRATEGY=_,q.TOTP=n,q.authenticatorCheckWithWindow=at,q.authenticatorDecoder=ge,q.authenticatorDefaultOptions=W,q.authenticatorEncoder=U,q.authenticatorGenerateSecret=nt,q.authenticatorOptionValidator=g,q.authenticatorOptions=O,q.authenticatorToken=Ue,q.createDigestPlaceholder=T,q.hotpCheck=j,q.hotpCounter=D,q.hotpCreateHmacKey=w,q.hotpDefaultOptions=C,q.hotpDigestToToken=z,q.hotpKeyuri=Q,q.hotpOptions=L,q.hotpOptionsValidator=d,q.hotpToken=Y,q.isTokenValid=s,q.keyuri=h,q.objectValues=m,q.padStart=y,q.totpCheck=f,q.totpCheckByEpoch=l,q.totpCheckWithWindow=v,q.totpCounter=Ce,q.totpCreateHmacKey=ie,q.totpDefaultOptions=se,q.totpEpochAvailable=a,q.totpKeyuri=x,q.totpOptions=ce,q.totpOptionsValidator=me,q.totpPadSecret=re,q.totpTimeRemaining=k,q.totpTimeUsed=I,q.totpToken=M},6098:(We,q,m)=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});var e=function t(s){return s&&"object"==typeof s&&"default"in s?s.default:s}(m(1348));q.createDigest=(s,y,h)=>e.createHmac(s,Buffer.from(y,"hex")).update(Buffer.from(h,"hex")).digest().toString("hex"),q.createRandomBytes=(s,y)=>e.randomBytes(s).toString(y)},1415:(We,q,m)=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});var e=function t(s){return s&&"object"==typeof s&&"default"in s?s.default:s}(m(2167));q.keyDecoder=(s,y)=>e.decode(s).toString(y),q.keyEncoder=(s,y)=>e.encode(Buffer.from(s,y).toString("ascii")).toString().replace(/=/g,"")},842:(We,q,m)=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});var t=m(6098),e=m(1415),_=m(7854);const T=new _.HOTP({createDigest:t.createDigest}),s=new _.TOTP({createDigest:t.createDigest}),y=new _.Authenticator({createDigest:t.createDigest,createRandomBytes:t.createRandomBytes,keyDecoder:e.keyDecoder,keyEncoder:e.keyEncoder});q.authenticator=y,q.hotp=T,q.totp=s},7977:(We,q,m)=>{"use strict";const t=q;t.bignum=m(3854),t.define=m(9516).define,t.base=m(7813),t.constants=m(5459),t.decoders=m(196),t.encoders=m(1131)},9516:(We,q,m)=>{"use strict";const t=m(1131),e=m(196),_=m(3894);function s(y,h){this.name=y,this.body=h,this.decoders={},this.encoders={}}q.define=function(h,P){return new s(h,P)},s.prototype._createNamed=function(h){const P=this.name;function d(w){this._initNamed(w,P)}return _(d,h),d.prototype._initNamed=function(C,L){h.call(this,C,L)},new d(this)},s.prototype._getDecoder=function(h){return this.decoders.hasOwnProperty(h=h||"der")||(this.decoders[h]=this._createNamed(e[h])),this.decoders[h]},s.prototype.decode=function(h,P,d){return this._getDecoder(P).decode(h,d)},s.prototype._getEncoder=function(h){return this.encoders.hasOwnProperty(h=h||"der")||(this.encoders[h]=this._createNamed(t[h])),this.encoders[h]},s.prototype.encode=function(h,P,d){return this._getEncoder(P).encode(h,d)}},2769:(We,q,m)=>{"use strict";const t=m(3894),e=m(4919).b,_=m(2038).Buffer;function T(y,h){e.call(this,h),_.isBuffer(y)?(this.base=y,this.offset=0,this.length=y.length):this.error("Input not Buffer")}function s(y,h){if(Array.isArray(y))this.length=0,this.value=y.map(function(P){return s.isEncoderBuffer(P)||(P=new s(P,h)),this.length+=P.length,P},this);else if("number"==typeof y){if(!(0<=y&&y<=255))return h.error("non-byte EncoderBuffer value");this.value=y,this.length=1}else if("string"==typeof y)this.value=y,this.length=_.byteLength(y);else{if(!_.isBuffer(y))return h.error("Unsupported type: "+typeof y);this.value=y,this.length=y.length}}t(T,e),q.C=T,T.isDecoderBuffer=function(h){return h instanceof T||"object"==typeof h&&_.isBuffer(h.base)&&"DecoderBuffer"===h.constructor.name&&"number"==typeof h.offset&&"number"==typeof h.length&&"function"==typeof h.save&&"function"==typeof h.restore&&"function"==typeof h.isEmpty&&"function"==typeof h.readUInt8&&"function"==typeof h.skip&&"function"==typeof h.raw},T.prototype.save=function(){return{offset:this.offset,reporter:e.prototype.save.call(this)}},T.prototype.restore=function(h){const P=new T(this.base);return P.offset=h.offset,P.length=this.offset,this.offset=h.offset,e.prototype.restore.call(this,h.reporter),P},T.prototype.isEmpty=function(){return this.offset===this.length},T.prototype.readUInt8=function(h){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(h||"DecoderBuffer overrun")},T.prototype.skip=function(h,P){if(!(this.offset+h<=this.length))return this.error(P||"DecoderBuffer overrun");const d=new T(this.base);return d._reporterState=this._reporterState,d.offset=this.offset,d.length=this.offset+h,this.offset+=h,d},T.prototype.raw=function(h){return this.base.slice(h?h.offset:this.offset,this.length)},q.R=s,s.isEncoderBuffer=function(h){return h instanceof s||"object"==typeof h&&"EncoderBuffer"===h.constructor.name&&"number"==typeof h.length&&"function"==typeof h.join},s.prototype.join=function(h,P){return h||(h=_.alloc(this.length)),P||(P=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(d){d.join(h,P),P+=d.length}):("number"==typeof this.value?h[P]=this.value:"string"==typeof this.value?h.write(this.value,P):_.isBuffer(this.value)&&this.value.copy(h,P),P+=this.length)),h}},7813:(We,q,m)=>{"use strict";const t=q;t.Reporter=m(4919).b,t.DecoderBuffer=m(2769).C,t.EncoderBuffer=m(2769).R,t.Node=m(1430)},1430:(We,q,m)=>{"use strict";const t=m(4919).b,e=m(2769).R,_=m(2769).C,T=m(2391),s=["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"],y=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function P(w,C,L){const D={};this._baseState=D,D.name=L,D.enc=w,D.parent=C||null,D.children=null,D.tag=null,D.args=null,D.reverseArgs=null,D.choice=null,D.optional=!1,D.any=!1,D.obj=!1,D.use=null,D.useDecoder=null,D.key=null,D.default=null,D.explicit=null,D.implicit=null,D.contains=null,D.parent||(D.children=[],this._wrap())}We.exports=P;const d=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];P.prototype.clone=function(){const C=this._baseState,L={};d.forEach(function(z){L[z]=C[z]});const D=new this.constructor(L.parent);return D._baseState=L,D},P.prototype._wrap=function(){const C=this._baseState;y.forEach(function(L){this[L]=function(){const z=new this.constructor(this);return C.children.push(z),z[L].apply(z,arguments)}},this)},P.prototype._init=function(C){const L=this._baseState;T(null===L.parent),C.call(this),L.children=L.children.filter(function(D){return D._baseState.parent===this},this),T.equal(L.children.length,1,"Root node can have only one child")},P.prototype._useArgs=function(C){const L=this._baseState,D=C.filter(function(z){return z instanceof this.constructor},this);C=C.filter(function(z){return!(z instanceof this.constructor)},this),0!==D.length&&(T(null===L.children),L.children=D,D.forEach(function(z){z._baseState.parent=this},this)),0!==C.length&&(T(null===L.args),L.args=C,L.reverseArgs=C.map(function(z){if("object"!=typeof z||z.constructor!==Object)return z;const V={};return Object.keys(z).forEach(function(Y){Y==(0|Y)&&(Y|=0),V[z[Y]]=Y}),V}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(w){P.prototype[w]=function(){throw new Error(w+" not implemented for encoding: "+this._baseState.enc)}}),s.forEach(function(w){P.prototype[w]=function(){const L=this._baseState,D=Array.prototype.slice.call(arguments);return T(null===L.tag),L.tag=w,this._useArgs(D),this}}),P.prototype.use=function(C){T(C);const L=this._baseState;return T(null===L.use),L.use=C,this},P.prototype.optional=function(){return this._baseState.optional=!0,this},P.prototype.def=function(C){const L=this._baseState;return T(null===L.default),L.default=C,L.optional=!0,this},P.prototype.explicit=function(C){const L=this._baseState;return T(null===L.explicit&&null===L.implicit),L.explicit=C,this},P.prototype.implicit=function(C){const L=this._baseState;return T(null===L.explicit&&null===L.implicit),L.implicit=C,this},P.prototype.obj=function(){const C=this._baseState,L=Array.prototype.slice.call(arguments);return C.obj=!0,0!==L.length&&this._useArgs(L),this},P.prototype.key=function(C){const L=this._baseState;return T(null===L.key),L.key=C,this},P.prototype.any=function(){return this._baseState.any=!0,this},P.prototype.choice=function(C){const L=this._baseState;return T(null===L.choice),L.choice=C,this._useArgs(Object.keys(C).map(function(D){return C[D]})),this},P.prototype.contains=function(C){const L=this._baseState;return T(null===L.use),L.contains=C,this},P.prototype._decode=function(C,L){const D=this._baseState;if(null===D.parent)return C.wrapResult(D.children[0]._decode(C,L));let j,z=D.default,V=!0,Y=null;if(null!==D.key&&(Y=C.enterKey(D.key)),D.optional){let Q=null;if(null!==D.explicit?Q=D.explicit:null!==D.implicit?Q=D.implicit:null!==D.tag&&(Q=D.tag),null!==Q||D.any){if(V=this._peekTag(C,Q,D.any),C.isError(V))return V}else{const J=C.save();try{null===D.choice?this._decodeGeneric(D.tag,C,L):this._decodeChoice(C,L),V=!0}catch{V=!1}C.restore(J)}}if(D.obj&&V&&(j=C.enterObject()),V){if(null!==D.explicit){const J=this._decodeTag(C,D.explicit);if(C.isError(J))return J;C=J}const Q=C.offset;if(null===D.use&&null===D.choice){let J;D.any&&(J=C.save());const ee=this._decodeTag(C,null!==D.implicit?D.implicit:D.tag,D.any);if(C.isError(ee))return ee;D.any?z=C.raw(J):C=ee}if(L&&L.track&&null!==D.tag&&L.track(C.path(),Q,C.length,"tagged"),L&&L.track&&null!==D.tag&&L.track(C.path(),C.offset,C.length,"content"),D.any||(z=null===D.choice?this._decodeGeneric(D.tag,C,L):this._decodeChoice(C,L)),C.isError(z))return z;if(!D.any&&null===D.choice&&null!==D.children&&D.children.forEach(function(ee){ee._decode(C,L)}),D.contains&&("octstr"===D.tag||"bitstr"===D.tag)){const J=new _(z);z=this._getUse(D.contains,C._reporterState.obj)._decode(J,L)}}return D.obj&&V&&(z=C.leaveObject(j)),null===D.key||null===z&&!0!==V?null!==Y&&C.exitKey(Y):C.leaveKey(Y,D.key,z),z},P.prototype._decodeGeneric=function(C,L,D){const z=this._baseState;return"seq"===C||"set"===C?null:"seqof"===C||"setof"===C?this._decodeList(L,C,z.args[0],D):/str$/.test(C)?this._decodeStr(L,C,D):"objid"===C&&z.args?this._decodeObjid(L,z.args[0],z.args[1],D):"objid"===C?this._decodeObjid(L,null,null,D):"gentime"===C||"utctime"===C?this._decodeTime(L,C,D):"null_"===C?this._decodeNull(L,D):"bool"===C?this._decodeBool(L,D):"objDesc"===C?this._decodeStr(L,C,D):"int"===C||"enum"===C?this._decodeInt(L,z.args&&z.args[0],D):null!==z.use?this._getUse(z.use,L._reporterState.obj)._decode(L,D):L.error("unknown tag: "+C)},P.prototype._getUse=function(C,L){const D=this._baseState;return D.useDecoder=this._use(C,L),T(null===D.useDecoder._baseState.parent),D.useDecoder=D.useDecoder._baseState.children[0],D.implicit!==D.useDecoder._baseState.implicit&&(D.useDecoder=D.useDecoder.clone(),D.useDecoder._baseState.implicit=D.implicit),D.useDecoder},P.prototype._decodeChoice=function(C,L){const D=this._baseState;let z=null,V=!1;return Object.keys(D.choice).some(function(Y){const j=C.save(),Q=D.choice[Y];try{const J=Q._decode(C,L);if(C.isError(J))return!1;z={type:Y,value:J},V=!0}catch{return C.restore(j),!1}return!0},this),V?z:C.error("Choice not matched")},P.prototype._createEncoderBuffer=function(C){return new e(C,this.reporter)},P.prototype._encode=function(C,L,D){const z=this._baseState;if(null!==z.default&&z.default===C)return;const V=this._encodeValue(C,L,D);return void 0===V||this._skipDefault(V,L,D)?void 0:V},P.prototype._encodeValue=function(C,L,D){const z=this._baseState;if(null===z.parent)return z.children[0]._encode(C,L||new t);let V=null;if(this.reporter=L,z.optional&&void 0===C){if(null===z.default)return;C=z.default}let Y=null,j=!1;if(z.any)V=this._createEncoderBuffer(C);else if(z.choice)V=this._encodeChoice(C,L);else if(z.contains)Y=this._getUse(z.contains,D)._encode(C,L),j=!0;else if(z.children)Y=z.children.map(function(Q){if("null_"===Q._baseState.tag)return Q._encode(null,L,C);if(null===Q._baseState.key)return L.error("Child should have a key");const J=L.enterKey(Q._baseState.key);if("object"!=typeof C)return L.error("Child expected, but input is not object");const ee=Q._encode(C[Q._baseState.key],L,C);return L.leaveKey(J),ee},this).filter(function(Q){return Q}),Y=this._createEncoderBuffer(Y);else if("seqof"===z.tag||"setof"===z.tag){if(!z.args||1!==z.args.length)return L.error("Too many args for : "+z.tag);if(!Array.isArray(C))return L.error("seqof/setof, but data is not Array");const Q=this.clone();Q._baseState.implicit=null,Y=this._createEncoderBuffer(C.map(function(J){return this._getUse(this._baseState.args[0],C)._encode(J,L)},Q))}else null!==z.use?V=this._getUse(z.use,D)._encode(C,L):(Y=this._encodePrimitive(z.tag,C),j=!0);if(!z.any&&null===z.choice){const Q=null!==z.implicit?z.implicit:z.tag,J=null===z.implicit?"universal":"context";null===Q?null===z.use&&L.error("Tag could be omitted only for .use()"):null===z.use&&(V=this._encodeComposite(Q,j,J,Y))}return null!==z.explicit&&(V=this._encodeComposite(z.explicit,!1,"context",V)),V},P.prototype._encodeChoice=function(C,L){const D=this._baseState,z=D.choice[C.type];return z||T(!1,C.type+" not found in "+JSON.stringify(Object.keys(D.choice))),z._encode(C.value,L)},P.prototype._encodePrimitive=function(C,L){const D=this._baseState;if(/str$/.test(C))return this._encodeStr(L,C);if("objid"===C&&D.args)return this._encodeObjid(L,D.reverseArgs[0],D.args[1]);if("objid"===C)return this._encodeObjid(L,null,null);if("gentime"===C||"utctime"===C)return this._encodeTime(L,C);if("null_"===C)return this._encodeNull();if("int"===C||"enum"===C)return this._encodeInt(L,D.args&&D.reverseArgs[0]);if("bool"===C)return this._encodeBool(L);if("objDesc"===C)return this._encodeStr(L,C);throw new Error("Unsupported tag: "+C)},P.prototype._isNumstr=function(C){return/^[0-9 ]*$/.test(C)},P.prototype._isPrintstr=function(C){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(C)}},4919:(We,q,m)=>{"use strict";const t=m(3894);function e(T){this._reporterState={obj:null,path:[],options:T||{},errors:[]}}function _(T,s){this.path=T,this.rethrow(s)}q.b=e,e.prototype.isError=function(s){return s instanceof _},e.prototype.save=function(){const s=this._reporterState;return{obj:s.obj,pathLen:s.path.length}},e.prototype.restore=function(s){const y=this._reporterState;y.obj=s.obj,y.path=y.path.slice(0,s.pathLen)},e.prototype.enterKey=function(s){return this._reporterState.path.push(s)},e.prototype.exitKey=function(s){const y=this._reporterState;y.path=y.path.slice(0,s-1)},e.prototype.leaveKey=function(s,y,h){const P=this._reporterState;this.exitKey(s),null!==P.obj&&(P.obj[y]=h)},e.prototype.path=function(){return this._reporterState.path.join("/")},e.prototype.enterObject=function(){const s=this._reporterState,y=s.obj;return s.obj={},y},e.prototype.leaveObject=function(s){const y=this._reporterState,h=y.obj;return y.obj=s,h},e.prototype.error=function(s){let y;const h=this._reporterState,P=s instanceof _;if(y=P?s:new _(h.path.map(function(d){return"["+JSON.stringify(d)+"]"}).join(""),s.message||s,s.stack),!h.options.partial)throw y;return P||h.errors.push(y),y},e.prototype.wrapResult=function(s){const y=this._reporterState;return y.options.partial?{result:this.isError(s)?null:s,errors:y.errors}:s},t(_,Error),_.prototype.rethrow=function(s){if(this.message=s+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,_),!this.stack)try{throw new Error(this.message)}catch(y){this.stack=y.stack}return this}},5496:(We,q)=>{"use strict";function m(t){const e={};return Object.keys(t).forEach(function(_){(0|_)==_&&(_|=0),e[t[_]]=_}),e}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:(We,q,m)=>{"use strict";const t=q;t._reverse=function(_){const T={};return Object.keys(_).forEach(function(s){(0|s)==s&&(s|=0),T[_[s]]=s}),T},t.der=m(5496)},7127:(We,q,m)=>{"use strict";const t=m(3894),e=m(3854),_=m(2769).C,T=m(1430),s=m(5496);function y(w){this.enc="der",this.name=w.name,this.entity=w,this.tree=new h,this.tree._init(w.body)}function h(w){T.call(this,"der",w)}function P(w,C){let L=w.readUInt8(C);if(w.isError(L))return L;const D=s.tagClass[L>>6],z=0==(32&L);if(31==(31&L)){let Y=L;for(L=0;128==(128&Y);){if(Y=w.readUInt8(C),w.isError(Y))return Y;L<<=7,L|=127&Y}}else L&=31;return{cls:D,primitive:z,tag:L,tagStr:s.tag[L]}}function d(w,C,L){let D=w.readUInt8(L);if(w.isError(D))return D;if(!C&&128===D)return null;if(!(128&D))return D;const z=127&D;if(z>4)return w.error("length octect is too long");D=0;for(let V=0;V{"use strict";const t=q;t.der=m(7127),t.pem=m(9617)},9617:(We,q,m)=>{"use strict";const t=m(3894),e=m(2038).Buffer,_=m(7127);function T(s){_.call(this,s),this.enc="pem"}t(T,_),We.exports=T,T.prototype.decode=function(y,h){const P=y.toString().split(/[\r\n]+/g),d=h.label.toUpperCase(),w=/^-----(BEGIN|END) ([^-]+)-----$/;let C=-1,L=-1;for(let V=0;V{"use strict";const t=m(3894),e=m(2038).Buffer,_=m(1430),T=m(5496);function s(d){this.enc="der",this.name=d.name,this.entity=d,this.tree=new y,this.tree._init(d.body)}function y(d){_.call(this,"der",d)}function h(d){return d<10?"0"+d:d}We.exports=s,s.prototype.encode=function(w,C){return this.tree._encode(w,C).join()},t(y,_),y.prototype._encodeComposite=function(w,C,L,D){const z=function P(d,w,C,L){let D;if("seqof"===d?d="seq":"setof"===d&&(d="set"),T.tagByName.hasOwnProperty(d))D=T.tagByName[d];else{if("number"!=typeof d||(0|d)!==d)return L.error("Unknown tag: "+d);D=d}return D>=31?L.error("Multi-octet tag encoding unsupported"):(w||(D|=32),D|=T.tagClassByName[C||"universal"]<<6,D)}(w,C,L,this.reporter);if(D.length<128){const j=e.alloc(2);return j[0]=z,j[1]=D.length,this._createEncoderBuffer([j,D])}let V=1;for(let j=D.length;j>=256;j>>=8)V++;const Y=e.alloc(2+V);Y[0]=z,Y[1]=128|V;for(let j=1+V,Q=D.length;Q>0;j--,Q>>=8)Y[j]=255&Q;return this._createEncoderBuffer([Y,D])},y.prototype._encodeStr=function(w,C){if("bitstr"===C)return this._createEncoderBuffer([0|w.unused,w.data]);if("bmpstr"===C){const L=e.alloc(2*w.length);for(let D=0;D=40)return this.reporter.error("Second objid identifier OOB");w.splice(0,2,40*w[0]+w[1])}let D=0;for(let Y=0;Y=128;j>>=7)D++}const z=e.alloc(D);let V=z.length-1;for(let Y=w.length-1;Y>=0;Y--){let j=w[Y];for(z[V--]=127&j;(j>>=7)>0;)z[V--]=128|127&j}return this._createEncoderBuffer(z)},y.prototype._encodeTime=function(w,C){let L;const D=new Date(w);return"gentime"===C?L=[h(D.getUTCFullYear()),h(D.getUTCMonth()+1),h(D.getUTCDate()),h(D.getUTCHours()),h(D.getUTCMinutes()),h(D.getUTCSeconds()),"Z"].join(""):"utctime"===C?L=[h(D.getUTCFullYear()%100),h(D.getUTCMonth()+1),h(D.getUTCDate()),h(D.getUTCHours()),h(D.getUTCMinutes()),h(D.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+C+" time is not supported yet"),this._encodeStr(L,"octstr")},y.prototype._encodeNull=function(){return this._createEncoderBuffer("")},y.prototype._encodeInt=function(w,C){if("string"==typeof w){if(!C)return this.reporter.error("String int or enum given, but no values map");if(!C.hasOwnProperty(w))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(w));w=C[w]}if("number"!=typeof w&&!e.isBuffer(w)){const z=w.toArray();!w.sign&&128&z[0]&&z.unshift(0),w=e.from(z)}if(e.isBuffer(w)){let z=w.length;0===w.length&&z++;const V=e.alloc(z);return w.copy(V),0===w.length&&(V[0]=0),this._createEncoderBuffer(V)}if(w<128)return this._createEncoderBuffer(w);if(w<256)return this._createEncoderBuffer([0,w]);let L=1;for(let z=w;z>=256;z>>=8)L++;const D=new Array(L);for(let z=D.length-1;z>=0;z--)D[z]=255&w,w>>=8;return 128&D[0]&&D.unshift(0),this._createEncoderBuffer(e.from(D))},y.prototype._encodeBool=function(w){return this._createEncoderBuffer(w?255:0)},y.prototype._use=function(w,C){return"function"==typeof w&&(w=w(C)),w._getEncoder("der").tree},y.prototype._skipDefault=function(w,C,L){const D=this._baseState;let z;if(null===D.default)return!1;const V=w.join();if(void 0===D.defaultBuffer&&(D.defaultBuffer=this._encodeValue(D.default,C,L).join()),V.length!==D.defaultBuffer.length)return!1;for(z=0;z{"use strict";const t=q;t.der=m(6374),t.pem=m(3530)},3530:(We,q,m)=>{"use strict";const t=m(3894),e=m(6374);function _(T){e.call(this,T),this.enc="pem"}t(_,e),We.exports=_,_.prototype.encode=function(s,y){const P=e.prototype.encode.call(this,s).toString("base64"),d=["-----BEGIN "+y.label+"-----"];for(let w=0;w=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function P(M,i,a){var f=h(M,a);return a-1>=i&&(f|=h(M,a-1)<<4),f}function d(M,i,a,f){for(var l=0,v=Math.min(M.length,a),I=i;I=49?k-49+10:k>=17?k-17+10:k}return l}s.isBN=function(i){return i instanceof s||null!==i&&"object"==typeof i&&i.constructor.wordSize===s.wordSize&&Array.isArray(i.words)},s.max=function(i,a){return i.cmp(a)>0?i:a},s.min=function(i,a){return i.cmp(a)<0?i:a},s.prototype._init=function(i,a,f){if("number"==typeof i)return this._initNumber(i,a,f);if("object"==typeof i)return this._initArray(i,a,f);"hex"===a&&(a=16),_(a===(0|a)&&a>=2&&a<=36);var l=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(l++,this.negative=1),l=0;l-=3)this.words[v]|=(I=i[l]|i[l-1]<<8|i[l-2]<<16)<>>26-k&67108863,(k+=24)>=26&&(k-=26,v++);else if("le"===f)for(l=0,v=0;l>>26-k&67108863,(k+=24)>=26&&(k-=26,v++);return this.strip()},s.prototype._parseHex=function(i,a,f){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var l=0;l=a;l-=2)k=P(i,a,l)<=18?(v-=18,this.words[I+=1]|=k>>>26):v+=8;else for(l=(i.length-a)%2==0?a+1:a;l=18?(v-=18,this.words[I+=1]|=k>>>26):v+=8;this.strip()},s.prototype._parseBase=function(i,a,f){this.words=[0],this.length=1;for(var l=0,v=1;v<=67108863;v*=a)l++;l--,v=v/a|0;for(var I=i.length-f,k=I%l,x=Math.min(I,I-k)+f,n=0,g=f;g1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var w=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[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],L=[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 z(M,i,a){a.negative=i.negative^M.negative;var f=M.length+i.length|0;a.length=f,f=f-1|0;var l=0|M.words[0],v=0|i.words[0],I=l*v,x=I/67108864|0;a.words[0]=67108863&I;for(var n=1;n>>26,W=67108863&x,O=Math.min(n,i.length-1),U=Math.max(0,n-M.length+1);U<=O;U++)g+=(I=(l=0|M.words[n-U|0])*(v=0|i.words[U])+W)/67108864|0,W=67108863&I;a.words[n]=0|W,x=0|g}return 0!==x?a.words[n]=0|x:a.length--,a.strip()}s.prototype.toString=function(i,a){var f;if(a=0|a||1,16===(i=i||10)||"hex"===i){f="";for(var l=0,v=0,I=0;I>>24-l&16777215)||I!==this.length-1?w[6-x.length]+x+f:x+f,(l+=2)>=26&&(l-=26,I--)}for(0!==v&&(f=v.toString(16)+f);f.length%a!=0;)f="0"+f;return 0!==this.negative&&(f="-"+f),f}if(i===(0|i)&&i>=2&&i<=36){var n=C[i],g=L[i];f="";var W=this.clone();for(W.negative=0;!W.isZero();){var O=W.modn(g).toString(i);f=(W=W.idivn(g)).isZero()?O+f:w[n-O.length]+O+f}for(this.isZero()&&(f="0"+f);f.length%a!=0;)f="0"+f;return 0!==this.negative&&(f="-"+f),f}_(!1,"Base should be between 2 and 36")},s.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&&_(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(i,a){return _(typeof y<"u"),this.toArrayLike(y,i,a)},s.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},s.prototype.toArrayLike=function(i,a,f){var l=this.byteLength(),v=f||Math.max(1,l);_(l<=v,"byte array longer than desired length"),_(v>0,"Requested array length <= 0"),this.strip();var x,n,I="le"===a,k=new i(v),g=this.clone();if(I){for(n=0;!g.isZero();n++)x=g.andln(255),g.iushrn(8),k[n]=x;for(;n=4096&&(f+=13,a>>>=13),a>=64&&(f+=7,a>>>=7),a>=8&&(f+=4,a>>>=4),a>=2&&(f+=2,a>>>=2),f+a},s.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,f=0;return 8191&a||(f+=13,a>>>=13),127&a||(f+=7,a>>>=7),15&a||(f+=4,a>>>=4),3&a||(f+=2,a>>>=2),1&a||f++,f},s.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},s.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},s.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var f=0;fi.length?this.clone().iand(i):i.clone().iand(this)},s.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},s.prototype.iuxor=function(i){var a,f;this.length>i.length?(a=this,f=i):(a=i,f=this);for(var l=0;li.length?this.clone().ixor(i):i.clone().ixor(this)},s.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},s.prototype.inotn=function(i){_("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),f=i%26;this._expand(a),f>0&&a--;for(var l=0;l0&&(this.words[l]=~this.words[l]&67108863>>26-f),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,a){_("number"==typeof i&&i>=0);var f=i/26|0,l=i%26;return this._expand(f+1),this.words[f]=a?this.words[f]|1<i.length?(f=this,l=i):(f=i,l=this);for(var v=0,I=0;I>>26;for(;0!==v&&I>>26;if(this.length=f.length,0!==v)this.words[this.length]=v,this.length++;else if(f!==this)for(;Ii.length?this.clone().iadd(i):i.clone().iadd(this)},s.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 l,v,f=this.cmp(i);if(0===f)return this.negative=0,this.length=1,this.words[0]=0,this;f>0?(l=this,v=i):(l=i,v=this);for(var I=0,k=0;k>26,this.words[k]=67108863&a;for(;0!==I&&k>26,this.words[k]=67108863&a;if(0===I&&k>>13,ge=0|l[1],nt=8191&ge,Ue=ge>>>13,at=0|l[2],ye=8191&at,xe=at>>>13,fe=0|l[3],Oe=8191&fe,oe=fe>>>13,Fe=0|l[4],De=8191&Fe,he=Fe>>>13,Me=0|l[5],pe=8191&Me,Ve=Me>>>13,Qe=0|l[6],Pe=8191&Qe,de=Qe>>>13,rt=0|l[7],Ke=8191&rt,lt=rt>>>13,Ut=0|l[8],ht=8191&Ut,Ge=Ut>>>13,yt=0|l[9],be=8191&yt,qe=yt>>>13,Ie=0|v[0],X=8191&Ie,mt=Ie>>>13,Tt=0|v[1],it=8191&Tt,je=Tt>>>13,zt=0|v[2],xt=8191&zt,Nt=zt>>>13,Gt=0|v[3],ke=8191&Gt,$=Gt>>>13,ue=0|v[4],Ae=8191&ue,Je=ue>>>13,$t=0|v[5],Vt=8191&$t,ii=$t>>>13,pt=0|v[6],ot=8191&pt,ft=pt>>>13,St=0|v[7],gt=8191&St,$e=St>>>13,_t=0|v[8],vt=8191&_t,He=_t>>>13,Et=0|v[9],At=8191&Et,Qt=Et>>>13;f.negative=i.negative^a.negative,f.length=19;var zi=(k+(x=Math.imul(O,X))|0)+((8191&(n=(n=Math.imul(O,mt))+Math.imul(U,X)|0))<<13)|0;k=((g=Math.imul(U,mt))+(n>>>13)|0)+(zi>>>26)|0,zi&=67108863,x=Math.imul(nt,X),n=(n=Math.imul(nt,mt))+Math.imul(Ue,X)|0,g=Math.imul(Ue,mt);var Ni=(k+(x=x+Math.imul(O,it)|0)|0)+((8191&(n=(n=n+Math.imul(O,je)|0)+Math.imul(U,it)|0))<<13)|0;k=((g=g+Math.imul(U,je)|0)+(n>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(ye,X),n=(n=Math.imul(ye,mt))+Math.imul(xe,X)|0,g=Math.imul(xe,mt),x=x+Math.imul(nt,it)|0,n=(n=n+Math.imul(nt,je)|0)+Math.imul(Ue,it)|0,g=g+Math.imul(Ue,je)|0;var Mi=(k+(x=x+Math.imul(O,xt)|0)|0)+((8191&(n=(n=n+Math.imul(O,Nt)|0)+Math.imul(U,xt)|0))<<13)|0;k=((g=g+Math.imul(U,Nt)|0)+(n>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,x=Math.imul(Oe,X),n=(n=Math.imul(Oe,mt))+Math.imul(oe,X)|0,g=Math.imul(oe,mt),x=x+Math.imul(ye,it)|0,n=(n=n+Math.imul(ye,je)|0)+Math.imul(xe,it)|0,g=g+Math.imul(xe,je)|0,x=x+Math.imul(nt,xt)|0,n=(n=n+Math.imul(nt,Nt)|0)+Math.imul(Ue,xt)|0,g=g+Math.imul(Ue,Nt)|0;var Gi=(k+(x=x+Math.imul(O,ke)|0)|0)+((8191&(n=(n=n+Math.imul(O,$)|0)+Math.imul(U,ke)|0))<<13)|0;k=((g=g+Math.imul(U,$)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,x=Math.imul(De,X),n=(n=Math.imul(De,mt))+Math.imul(he,X)|0,g=Math.imul(he,mt),x=x+Math.imul(Oe,it)|0,n=(n=n+Math.imul(Oe,je)|0)+Math.imul(oe,it)|0,g=g+Math.imul(oe,je)|0,x=x+Math.imul(ye,xt)|0,n=(n=n+Math.imul(ye,Nt)|0)+Math.imul(xe,xt)|0,g=g+Math.imul(xe,Nt)|0,x=x+Math.imul(nt,ke)|0,n=(n=n+Math.imul(nt,$)|0)+Math.imul(Ue,ke)|0,g=g+Math.imul(Ue,$)|0;var Xe=(k+(x=x+Math.imul(O,Ae)|0)|0)+((8191&(n=(n=n+Math.imul(O,Je)|0)+Math.imul(U,Ae)|0))<<13)|0;k=((g=g+Math.imul(U,Je)|0)+(n>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,x=Math.imul(pe,X),n=(n=Math.imul(pe,mt))+Math.imul(Ve,X)|0,g=Math.imul(Ve,mt),x=x+Math.imul(De,it)|0,n=(n=n+Math.imul(De,je)|0)+Math.imul(he,it)|0,g=g+Math.imul(he,je)|0,x=x+Math.imul(Oe,xt)|0,n=(n=n+Math.imul(Oe,Nt)|0)+Math.imul(oe,xt)|0,g=g+Math.imul(oe,Nt)|0,x=x+Math.imul(ye,ke)|0,n=(n=n+Math.imul(ye,$)|0)+Math.imul(xe,ke)|0,g=g+Math.imul(xe,$)|0,x=x+Math.imul(nt,Ae)|0,n=(n=n+Math.imul(nt,Je)|0)+Math.imul(Ue,Ae)|0,g=g+Math.imul(Ue,Je)|0;var It=(k+(x=x+Math.imul(O,Vt)|0)|0)+((8191&(n=(n=n+Math.imul(O,ii)|0)+Math.imul(U,Vt)|0))<<13)|0;k=((g=g+Math.imul(U,ii)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,x=Math.imul(Pe,X),n=(n=Math.imul(Pe,mt))+Math.imul(de,X)|0,g=Math.imul(de,mt),x=x+Math.imul(pe,it)|0,n=(n=n+Math.imul(pe,je)|0)+Math.imul(Ve,it)|0,g=g+Math.imul(Ve,je)|0,x=x+Math.imul(De,xt)|0,n=(n=n+Math.imul(De,Nt)|0)+Math.imul(he,xt)|0,g=g+Math.imul(he,Nt)|0,x=x+Math.imul(Oe,ke)|0,n=(n=n+Math.imul(Oe,$)|0)+Math.imul(oe,ke)|0,g=g+Math.imul(oe,$)|0,x=x+Math.imul(ye,Ae)|0,n=(n=n+Math.imul(ye,Je)|0)+Math.imul(xe,Ae)|0,g=g+Math.imul(xe,Je)|0,x=x+Math.imul(nt,Vt)|0,n=(n=n+Math.imul(nt,ii)|0)+Math.imul(Ue,Vt)|0,g=g+Math.imul(Ue,ii)|0;var Se=(k+(x=x+Math.imul(O,ot)|0)|0)+((8191&(n=(n=n+Math.imul(O,ft)|0)+Math.imul(U,ot)|0))<<13)|0;k=((g=g+Math.imul(U,ft)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,x=Math.imul(Ke,X),n=(n=Math.imul(Ke,mt))+Math.imul(lt,X)|0,g=Math.imul(lt,mt),x=x+Math.imul(Pe,it)|0,n=(n=n+Math.imul(Pe,je)|0)+Math.imul(de,it)|0,g=g+Math.imul(de,je)|0,x=x+Math.imul(pe,xt)|0,n=(n=n+Math.imul(pe,Nt)|0)+Math.imul(Ve,xt)|0,g=g+Math.imul(Ve,Nt)|0,x=x+Math.imul(De,ke)|0,n=(n=n+Math.imul(De,$)|0)+Math.imul(he,ke)|0,g=g+Math.imul(he,$)|0,x=x+Math.imul(Oe,Ae)|0,n=(n=n+Math.imul(Oe,Je)|0)+Math.imul(oe,Ae)|0,g=g+Math.imul(oe,Je)|0,x=x+Math.imul(ye,Vt)|0,n=(n=n+Math.imul(ye,ii)|0)+Math.imul(xe,Vt)|0,g=g+Math.imul(xe,ii)|0,x=x+Math.imul(nt,ot)|0,n=(n=n+Math.imul(nt,ft)|0)+Math.imul(Ue,ot)|0,g=g+Math.imul(Ue,ft)|0;var wt=(k+(x=x+Math.imul(O,gt)|0)|0)+((8191&(n=(n=n+Math.imul(O,$e)|0)+Math.imul(U,gt)|0))<<13)|0;k=((g=g+Math.imul(U,$e)|0)+(n>>>13)|0)+(wt>>>26)|0,wt&=67108863,x=Math.imul(ht,X),n=(n=Math.imul(ht,mt))+Math.imul(Ge,X)|0,g=Math.imul(Ge,mt),x=x+Math.imul(Ke,it)|0,n=(n=n+Math.imul(Ke,je)|0)+Math.imul(lt,it)|0,g=g+Math.imul(lt,je)|0,x=x+Math.imul(Pe,xt)|0,n=(n=n+Math.imul(Pe,Nt)|0)+Math.imul(de,xt)|0,g=g+Math.imul(de,Nt)|0,x=x+Math.imul(pe,ke)|0,n=(n=n+Math.imul(pe,$)|0)+Math.imul(Ve,ke)|0,g=g+Math.imul(Ve,$)|0,x=x+Math.imul(De,Ae)|0,n=(n=n+Math.imul(De,Je)|0)+Math.imul(he,Ae)|0,g=g+Math.imul(he,Je)|0,x=x+Math.imul(Oe,Vt)|0,n=(n=n+Math.imul(Oe,ii)|0)+Math.imul(oe,Vt)|0,g=g+Math.imul(oe,ii)|0,x=x+Math.imul(ye,ot)|0,n=(n=n+Math.imul(ye,ft)|0)+Math.imul(xe,ot)|0,g=g+Math.imul(xe,ft)|0,x=x+Math.imul(nt,gt)|0,n=(n=n+Math.imul(nt,$e)|0)+Math.imul(Ue,gt)|0,g=g+Math.imul(Ue,$e)|0;var Zt=(k+(x=x+Math.imul(O,vt)|0)|0)+((8191&(n=(n=n+Math.imul(O,He)|0)+Math.imul(U,vt)|0))<<13)|0;k=((g=g+Math.imul(U,He)|0)+(n>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,x=Math.imul(be,X),n=(n=Math.imul(be,mt))+Math.imul(qe,X)|0,g=Math.imul(qe,mt),x=x+Math.imul(ht,it)|0,n=(n=n+Math.imul(ht,je)|0)+Math.imul(Ge,it)|0,g=g+Math.imul(Ge,je)|0,x=x+Math.imul(Ke,xt)|0,n=(n=n+Math.imul(Ke,Nt)|0)+Math.imul(lt,xt)|0,g=g+Math.imul(lt,Nt)|0,x=x+Math.imul(Pe,ke)|0,n=(n=n+Math.imul(Pe,$)|0)+Math.imul(de,ke)|0,g=g+Math.imul(de,$)|0,x=x+Math.imul(pe,Ae)|0,n=(n=n+Math.imul(pe,Je)|0)+Math.imul(Ve,Ae)|0,g=g+Math.imul(Ve,Je)|0,x=x+Math.imul(De,Vt)|0,n=(n=n+Math.imul(De,ii)|0)+Math.imul(he,Vt)|0,g=g+Math.imul(he,ii)|0,x=x+Math.imul(Oe,ot)|0,n=(n=n+Math.imul(Oe,ft)|0)+Math.imul(oe,ot)|0,g=g+Math.imul(oe,ft)|0,x=x+Math.imul(ye,gt)|0,n=(n=n+Math.imul(ye,$e)|0)+Math.imul(xe,gt)|0,g=g+Math.imul(xe,$e)|0,x=x+Math.imul(nt,vt)|0,n=(n=n+Math.imul(nt,He)|0)+Math.imul(Ue,vt)|0,g=g+Math.imul(Ue,He)|0;var si=(k+(x=x+Math.imul(O,At)|0)|0)+((8191&(n=(n=n+Math.imul(O,Qt)|0)+Math.imul(U,At)|0))<<13)|0;k=((g=g+Math.imul(U,Qt)|0)+(n>>>13)|0)+(si>>>26)|0,si&=67108863,x=Math.imul(be,it),n=(n=Math.imul(be,je))+Math.imul(qe,it)|0,g=Math.imul(qe,je),x=x+Math.imul(ht,xt)|0,n=(n=n+Math.imul(ht,Nt)|0)+Math.imul(Ge,xt)|0,g=g+Math.imul(Ge,Nt)|0,x=x+Math.imul(Ke,ke)|0,n=(n=n+Math.imul(Ke,$)|0)+Math.imul(lt,ke)|0,g=g+Math.imul(lt,$)|0,x=x+Math.imul(Pe,Ae)|0,n=(n=n+Math.imul(Pe,Je)|0)+Math.imul(de,Ae)|0,g=g+Math.imul(de,Je)|0,x=x+Math.imul(pe,Vt)|0,n=(n=n+Math.imul(pe,ii)|0)+Math.imul(Ve,Vt)|0,g=g+Math.imul(Ve,ii)|0,x=x+Math.imul(De,ot)|0,n=(n=n+Math.imul(De,ft)|0)+Math.imul(he,ot)|0,g=g+Math.imul(he,ft)|0,x=x+Math.imul(Oe,gt)|0,n=(n=n+Math.imul(Oe,$e)|0)+Math.imul(oe,gt)|0,g=g+Math.imul(oe,$e)|0,x=x+Math.imul(ye,vt)|0,n=(n=n+Math.imul(ye,He)|0)+Math.imul(xe,vt)|0,g=g+Math.imul(xe,He)|0;var Ai=(k+(x=x+Math.imul(nt,At)|0)|0)+((8191&(n=(n=n+Math.imul(nt,Qt)|0)+Math.imul(Ue,At)|0))<<13)|0;k=((g=g+Math.imul(Ue,Qt)|0)+(n>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,x=Math.imul(be,xt),n=(n=Math.imul(be,Nt))+Math.imul(qe,xt)|0,g=Math.imul(qe,Nt),x=x+Math.imul(ht,ke)|0,n=(n=n+Math.imul(ht,$)|0)+Math.imul(Ge,ke)|0,g=g+Math.imul(Ge,$)|0,x=x+Math.imul(Ke,Ae)|0,n=(n=n+Math.imul(Ke,Je)|0)+Math.imul(lt,Ae)|0,g=g+Math.imul(lt,Je)|0,x=x+Math.imul(Pe,Vt)|0,n=(n=n+Math.imul(Pe,ii)|0)+Math.imul(de,Vt)|0,g=g+Math.imul(de,ii)|0,x=x+Math.imul(pe,ot)|0,n=(n=n+Math.imul(pe,ft)|0)+Math.imul(Ve,ot)|0,g=g+Math.imul(Ve,ft)|0,x=x+Math.imul(De,gt)|0,n=(n=n+Math.imul(De,$e)|0)+Math.imul(he,gt)|0,g=g+Math.imul(he,$e)|0,x=x+Math.imul(Oe,vt)|0,n=(n=n+Math.imul(Oe,He)|0)+Math.imul(oe,vt)|0,g=g+Math.imul(oe,He)|0;var Oi=(k+(x=x+Math.imul(ye,At)|0)|0)+((8191&(n=(n=n+Math.imul(ye,Qt)|0)+Math.imul(xe,At)|0))<<13)|0;k=((g=g+Math.imul(xe,Qt)|0)+(n>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,x=Math.imul(be,ke),n=(n=Math.imul(be,$))+Math.imul(qe,ke)|0,g=Math.imul(qe,$),x=x+Math.imul(ht,Ae)|0,n=(n=n+Math.imul(ht,Je)|0)+Math.imul(Ge,Ae)|0,g=g+Math.imul(Ge,Je)|0,x=x+Math.imul(Ke,Vt)|0,n=(n=n+Math.imul(Ke,ii)|0)+Math.imul(lt,Vt)|0,g=g+Math.imul(lt,ii)|0,x=x+Math.imul(Pe,ot)|0,n=(n=n+Math.imul(Pe,ft)|0)+Math.imul(de,ot)|0,g=g+Math.imul(de,ft)|0,x=x+Math.imul(pe,gt)|0,n=(n=n+Math.imul(pe,$e)|0)+Math.imul(Ve,gt)|0,g=g+Math.imul(Ve,$e)|0,x=x+Math.imul(De,vt)|0,n=(n=n+Math.imul(De,He)|0)+Math.imul(he,vt)|0,g=g+Math.imul(he,He)|0;var Qi=(k+(x=x+Math.imul(Oe,At)|0)|0)+((8191&(n=(n=n+Math.imul(Oe,Qt)|0)+Math.imul(oe,At)|0))<<13)|0;k=((g=g+Math.imul(oe,Qt)|0)+(n>>>13)|0)+(Qi>>>26)|0,Qi&=67108863,x=Math.imul(be,Ae),n=(n=Math.imul(be,Je))+Math.imul(qe,Ae)|0,g=Math.imul(qe,Je),x=x+Math.imul(ht,Vt)|0,n=(n=n+Math.imul(ht,ii)|0)+Math.imul(Ge,Vt)|0,g=g+Math.imul(Ge,ii)|0,x=x+Math.imul(Ke,ot)|0,n=(n=n+Math.imul(Ke,ft)|0)+Math.imul(lt,ot)|0,g=g+Math.imul(lt,ft)|0,x=x+Math.imul(Pe,gt)|0,n=(n=n+Math.imul(Pe,$e)|0)+Math.imul(de,gt)|0,g=g+Math.imul(de,$e)|0,x=x+Math.imul(pe,vt)|0,n=(n=n+Math.imul(pe,He)|0)+Math.imul(Ve,vt)|0,g=g+Math.imul(Ve,He)|0;var en=(k+(x=x+Math.imul(De,At)|0)|0)+((8191&(n=(n=n+Math.imul(De,Qt)|0)+Math.imul(he,At)|0))<<13)|0;k=((g=g+Math.imul(he,Qt)|0)+(n>>>13)|0)+(en>>>26)|0,en&=67108863,x=Math.imul(be,Vt),n=(n=Math.imul(be,ii))+Math.imul(qe,Vt)|0,g=Math.imul(qe,ii),x=x+Math.imul(ht,ot)|0,n=(n=n+Math.imul(ht,ft)|0)+Math.imul(Ge,ot)|0,g=g+Math.imul(Ge,ft)|0,x=x+Math.imul(Ke,gt)|0,n=(n=n+Math.imul(Ke,$e)|0)+Math.imul(lt,gt)|0,g=g+Math.imul(lt,$e)|0,x=x+Math.imul(Pe,vt)|0,n=(n=n+Math.imul(Pe,He)|0)+Math.imul(de,vt)|0,g=g+Math.imul(de,He)|0;var Yi=(k+(x=x+Math.imul(pe,At)|0)|0)+((8191&(n=(n=n+Math.imul(pe,Qt)|0)+Math.imul(Ve,At)|0))<<13)|0;k=((g=g+Math.imul(Ve,Qt)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,x=Math.imul(be,ot),n=(n=Math.imul(be,ft))+Math.imul(qe,ot)|0,g=Math.imul(qe,ft),x=x+Math.imul(ht,gt)|0,n=(n=n+Math.imul(ht,$e)|0)+Math.imul(Ge,gt)|0,g=g+Math.imul(Ge,$e)|0,x=x+Math.imul(Ke,vt)|0,n=(n=n+Math.imul(Ke,He)|0)+Math.imul(lt,vt)|0,g=g+Math.imul(lt,He)|0;var Yt=(k+(x=x+Math.imul(Pe,At)|0)|0)+((8191&(n=(n=n+Math.imul(Pe,Qt)|0)+Math.imul(de,At)|0))<<13)|0;k=((g=g+Math.imul(de,Qt)|0)+(n>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,x=Math.imul(be,gt),n=(n=Math.imul(be,$e))+Math.imul(qe,gt)|0,g=Math.imul(qe,$e),x=x+Math.imul(ht,vt)|0,n=(n=n+Math.imul(ht,He)|0)+Math.imul(Ge,vt)|0,g=g+Math.imul(Ge,He)|0;var qt=(k+(x=x+Math.imul(Ke,At)|0)|0)+((8191&(n=(n=n+Math.imul(Ke,Qt)|0)+Math.imul(lt,At)|0))<<13)|0;k=((g=g+Math.imul(lt,Qt)|0)+(n>>>13)|0)+(qt>>>26)|0,qt&=67108863,x=Math.imul(be,vt),n=(n=Math.imul(be,He))+Math.imul(qe,vt)|0,g=Math.imul(qe,He);var _e=(k+(x=x+Math.imul(ht,At)|0)|0)+((8191&(n=(n=n+Math.imul(ht,Qt)|0)+Math.imul(Ge,At)|0))<<13)|0;k=((g=g+Math.imul(Ge,Qt)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863;var dt=(k+(x=Math.imul(be,At))|0)+((8191&(n=(n=Math.imul(be,Qt))+Math.imul(qe,At)|0))<<13)|0;return k=((g=Math.imul(qe,Qt))+(n>>>13)|0)+(dt>>>26)|0,dt&=67108863,I[0]=zi,I[1]=Ni,I[2]=Mi,I[3]=Gi,I[4]=Xe,I[5]=It,I[6]=Se,I[7]=wt,I[8]=Zt,I[9]=si,I[10]=Ai,I[11]=Oi,I[12]=Qi,I[13]=en,I[14]=Yi,I[15]=Yt,I[16]=qt,I[17]=_e,I[18]=dt,0!==k&&(I[19]=k,f.length++),f};function j(M,i,a){return(new Q).mulp(M,i,a)}function Q(M,i){this.x=M,this.y=i}Math.imul||(V=z),s.prototype.mulTo=function(i,a){var f,l=this.length+i.length;return f=10===this.length&&10===i.length?V(this,i,a):l<63?z(this,i,a):l<1024?function Y(M,i,a){a.negative=i.negative^M.negative,a.length=M.length+i.length;for(var f=0,l=0,v=0;v>>26)|0)>>>26,I&=67108863}a.words[v]=k,f=I,I=l}return 0!==f?a.words[v]=f:a.length--,a.strip()}(this,i,a):j(this,i,a),f},Q.prototype.makeRBT=function(i){for(var a=new Array(i),f=s.prototype._countBits(i)-1,l=0;l>=1;return l},Q.prototype.permute=function(i,a,f,l,v,I){for(var k=0;k>>=1)v++;return 1<>>=13),v>>>=13;for(I=2*a;I>=26,a+=l/67108864|0,a+=v>>>26,this.words[f]=67108863&v}return 0!==a&&(this.words[f]=a,this.length++),this},s.prototype.muln=function(i){return this.clone().imuln(i)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(i){var a=function D(M){for(var i=new Array(M.bitLength()),a=0;a>>l}return i}(i);if(0===a.length)return new s(1);for(var f=this,l=0;l=0);var v,a=i%26,f=(i-a)/26,l=67108863>>>26-a<<26-a;if(0!==a){var I=0;for(v=0;v>>26-a}I&&(this.words[v]=I,this.length++)}if(0!==f){for(v=this.length-1;v>=0;v--)this.words[v+f]=this.words[v];for(v=0;v=0),l=a?(a-a%26)/26:0;var v=i%26,I=Math.min((i-v)/26,this.length),k=67108863^67108863>>>v<I)for(this.length-=I,n=0;n=0&&(0!==g||n>=l);n--){var W=0|this.words[n];this.words[n]=g<<26-v|W>>>v,g=W&k}return x&&0!==g&&(x.words[x.length++]=g),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,a,f){return _(0===this.negative),this.iushrn(i,a,f)},s.prototype.shln=function(i){return this.clone().ishln(i)},s.prototype.ushln=function(i){return this.clone().iushln(i)},s.prototype.shrn=function(i){return this.clone().ishrn(i)},s.prototype.ushrn=function(i){return this.clone().iushrn(i)},s.prototype.testn=function(i){_("number"==typeof i&&i>=0);var a=i%26,f=(i-a)/26;return!(this.length<=f||!(this.words[f]&1<=0);var a=i%26,f=(i-a)/26;return _(0===this.negative,"imaskn works only with positive numbers"),this.length<=f?this:(0!==a&&f++,this.length=Math.min(f,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},s.prototype.isubn=function(i){if(_("number"==typeof i),_(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[v+f]=67108863&I}for(;v>26,this.words[v+f]=67108863&I;if(0===k)return this.strip();for(_(-1===k),k=0,v=0;v>26,this.words[v]=67108863&I;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var f,l=this.clone(),v=i,I=0|v.words[v.length-1];0!=(f=26-this._countBits(I))&&(v=v.ushln(f),l.iushln(f),I=0|v.words[v.length-1]);var n,x=l.length-v.length;if("mod"!==a){(n=new s(null)).length=x+1,n.words=new Array(n.length);for(var g=0;g=0;O--){var U=67108864*(0|l.words[v.length+O])+(0|l.words[v.length+O-1]);for(U=Math.min(U/I|0,67108863),l._ishlnsubmul(v,U,O);0!==l.negative;)U--,l.negative=0,l._ishlnsubmul(v,1,O),l.isZero()||(l.negative^=1);n&&(n.words[O]=U)}return n&&n.strip(),l.strip(),"div"!==a&&0!==f&&l.iushrn(f),{div:n||null,mod:l}},s.prototype.divmod=function(i,a,f){return _(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(I=this.neg().divmod(i,a),"mod"!==a&&(l=I.div.neg()),"div"!==a&&(v=I.mod.neg(),f&&0!==v.negative&&v.iadd(i)),{div:l,mod:v}):0===this.negative&&0!==i.negative?(I=this.divmod(i.neg(),a),"mod"!==a&&(l=I.div.neg()),{div:l,mod:I.mod}):this.negative&i.negative?(I=this.neg().divmod(i.neg(),a),"div"!==a&&(v=I.mod.neg(),f&&0!==v.negative&&v.isub(i)),{div:I.div,mod:v}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new s(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new s(this.modn(i.words[0]))}:this._wordDiv(i,a);var l,v,I},s.prototype.div=function(i){return this.divmod(i,"div",!1).div},s.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},s.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},s.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var f=0!==a.div.negative?a.mod.isub(i):a.mod,l=i.ushrn(1),v=i.andln(1),I=f.cmp(l);return I<0||1===v&&0===I?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},s.prototype.modn=function(i){_(i<=67108863);for(var a=(1<<26)%i,f=0,l=this.length-1;l>=0;l--)f=(a*f+(0|this.words[l]))%i;return f},s.prototype.idivn=function(i){_(i<=67108863);for(var a=0,f=this.length-1;f>=0;f--){var l=(0|this.words[f])+67108864*a;this.words[f]=l/i|0,a=l%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){_(0===i.negative),_(!i.isZero());var a=this,f=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),v=new s(0),I=new s(0),k=new s(1),x=0;a.isEven()&&f.isEven();)a.iushrn(1),f.iushrn(1),++x;for(var n=f.clone(),g=a.clone();!a.isZero();){for(var W=0,O=1;!(a.words[0]&O)&&W<26;++W,O<<=1);if(W>0)for(a.iushrn(W);W-- >0;)(l.isOdd()||v.isOdd())&&(l.iadd(n),v.isub(g)),l.iushrn(1),v.iushrn(1);for(var U=0,ge=1;!(f.words[0]&ge)&&U<26;++U,ge<<=1);if(U>0)for(f.iushrn(U);U-- >0;)(I.isOdd()||k.isOdd())&&(I.iadd(n),k.isub(g)),I.iushrn(1),k.iushrn(1);a.cmp(f)>=0?(a.isub(f),l.isub(I),v.isub(k)):(f.isub(a),I.isub(l),k.isub(v))}return{a:I,b:k,gcd:f.iushln(x)}},s.prototype._invmp=function(i){_(0===i.negative),_(!i.isZero());var W,a=this,f=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),v=new s(0),I=f.clone();a.cmpn(1)>0&&f.cmpn(1)>0;){for(var k=0,x=1;!(a.words[0]&x)&&k<26;++k,x<<=1);if(k>0)for(a.iushrn(k);k-- >0;)l.isOdd()&&l.iadd(I),l.iushrn(1);for(var n=0,g=1;!(f.words[0]&g)&&n<26;++n,g<<=1);if(n>0)for(f.iushrn(n);n-- >0;)v.isOdd()&&v.iadd(I),v.iushrn(1);a.cmp(f)>=0?(a.isub(f),l.isub(v)):(f.isub(a),v.isub(l))}return(W=0===a.cmpn(1)?l:v).cmpn(0)<0&&W.iadd(i),W},s.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),f=i.clone();a.negative=0,f.negative=0;for(var l=0;a.isEven()&&f.isEven();l++)a.iushrn(1),f.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;f.isEven();)f.iushrn(1);var v=a.cmp(f);if(v<0){var I=a;a=f,f=I}else if(0===v||0===f.cmpn(1))break;a.isub(f)}return f.iushln(l)},s.prototype.invm=function(i){return this.egcd(i).a.umod(i)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(i){return this.words[0]&i},s.prototype.bincn=function(i){_("number"==typeof i);var a=i%26,f=(i-a)/26,l=1<>>26,this.words[I]=k&=67108863}return 0!==v&&(this.words[I]=v,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var f,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)f=1;else{a&&(i=-i),_(i<=67108863,"Number is too big");var l=0|this.words[0];f=l===i?0:li.length)return 1;if(this.length=0;f--){var l=0|this.words[f],v=0|i.words[f];if(l!==v){lv&&(a=1);break}}return a},s.prototype.gtn=function(i){return 1===this.cmpn(i)},s.prototype.gt=function(i){return 1===this.cmp(i)},s.prototype.gten=function(i){return this.cmpn(i)>=0},s.prototype.gte=function(i){return this.cmp(i)>=0},s.prototype.ltn=function(i){return-1===this.cmpn(i)},s.prototype.lt=function(i){return-1===this.cmp(i)},s.prototype.lten=function(i){return this.cmpn(i)<=0},s.prototype.lte=function(i){return this.cmp(i)<=0},s.prototype.eqn=function(i){return 0===this.cmpn(i)},s.prototype.eq=function(i){return 0===this.cmp(i)},s.red=function(i){return new ce(i)},s.prototype.toRed=function(i){return _(!this.red,"Already a number in reduction context"),_(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(i){return this.red=i,this},s.prototype.forceRed=function(i){return _(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return _(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var J={k256:null,p224:null,p192:null,p25519:null};function ee(M,i){this.name=M,this.p=new s(i,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function me(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function re(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ce(M){if("string"==typeof M){var i=s._prime(M);this.m=i.p,this.prime=i}else _(M.gtn(1),"modulus must be greater than 1"),this.m=M,this.prime=null}function Ce(M){ce.call(this,M),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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 s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var f,a=i;do{this.split(a,this.tmp),f=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(f>this.n);var l=f0?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)},T(me,ee),me.prototype.split=function(i,a){for(var f=4194303,l=Math.min(i.length,9),v=0;v>>22,I=k}i.words[v-10]=I>>>=22,i.length-=0===I&&i.length>10?10:9},me.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,f=0;f>>=26,i.words[f]=v,a=l}return 0!==a&&(i.words[i.length++]=a),i},s._prime=function(i){if(J[i])return J[i];var a;if("k256"===i)a=new me;else if("p224"===i)a=new re;else if("p192"===i)a=new ie;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new se}return J[i]=a,a},ce.prototype._verify1=function(i){_(0===i.negative,"red works only with positives"),_(i.red,"red works only with red numbers")},ce.prototype._verify2=function(i,a){_(0==(i.negative|a.negative),"red works only with positives"),_(i.red&&i.red===a.red,"red works only with red numbers")},ce.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},ce.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},ce.prototype.add=function(i,a){this._verify2(i,a);var f=i.add(a);return f.cmp(this.m)>=0&&f.isub(this.m),f._forceRed(this)},ce.prototype.iadd=function(i,a){this._verify2(i,a);var f=i.iadd(a);return f.cmp(this.m)>=0&&f.isub(this.m),f},ce.prototype.sub=function(i,a){this._verify2(i,a);var f=i.sub(a);return f.cmpn(0)<0&&f.iadd(this.m),f._forceRed(this)},ce.prototype.isub=function(i,a){this._verify2(i,a);var f=i.isub(a);return f.cmpn(0)<0&&f.iadd(this.m),f},ce.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},ce.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},ce.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},ce.prototype.isqr=function(i){return this.imul(i,i.clone())},ce.prototype.sqr=function(i){return this.mul(i,i)},ce.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(_(a%2==1),3===a){var f=this.m.add(new s(1)).iushrn(2);return this.pow(i,f)}for(var l=this.m.subn(1),v=0;!l.isZero()&&0===l.andln(1);)v++,l.iushrn(1);_(!l.isZero());var I=new s(1).toRed(this),k=I.redNeg(),x=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new s(2*n*n).toRed(this);0!==this.pow(n,x).cmp(k);)n.redIAdd(k);for(var g=this.pow(n,l),W=this.pow(i,l.addn(1).iushrn(1)),O=this.pow(i,l),U=v;0!==O.cmp(I);){for(var ge=O,nt=0;0!==ge.cmp(I);nt++)ge=ge.redSqr();_(nt=0;v--){for(var g=a.words[v],W=n-1;W>=0;W--){var O=g>>W&1;I!==l[0]&&(I=this.sqr(I)),0!==O||0!==k?(k<<=1,k|=O,(4==++x||0===v&&0===W)&&(I=this.mul(I,l[k]),x=0,k=0)):x=0}n=26}return I},ce.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},ce.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new Ce(i)},T(Ce,ce),Ce.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},Ce.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},Ce.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var f=i.imul(a),l=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=f.isub(l).iushrn(this.shift),I=v;return v.cmp(this.m)>=0?I=v.isub(this.m):v.cmpn(0)<0&&(I=v.iadd(this.m)),I._forceRed(this)},Ce.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new s(0)._forceRed(this);var f=i.mul(a),l=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=f.isub(l).iushrn(this.shift),I=v;return v.cmp(this.m)>=0?I=v.isub(this.m):v.cmpn(0)<0&&(I=v.iadd(this.m)),I._forceRed(this)},Ce.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(We=m.nmd(We),this)},5343:(We,q)=>{"use strict";q.byteLength=function h(D){var z=y(D),Y=z[1];return 3*(z[0]+Y)/4-Y},q.toByteArray=function d(D){var z,me,V=y(D),Y=V[0],j=V[1],Q=new e(function P(D,z,V){return 3*(z+V)/4-V}(0,Y,j)),J=0,ee=j>0?Y-4:Y;for(me=0;me>16&255,Q[J++]=z>>8&255,Q[J++]=255&z;return 2===j&&(z=t[D.charCodeAt(me)]<<2|t[D.charCodeAt(me+1)]>>4,Q[J++]=255&z),1===j&&(z=t[D.charCodeAt(me)]<<10|t[D.charCodeAt(me+1)]<<4|t[D.charCodeAt(me+2)]>>2,Q[J++]=z>>8&255,Q[J++]=255&z),Q},q.fromByteArray=function L(D){for(var z,V=D.length,Y=V%3,j=[],Q=16383,J=0,ee=V-Y;Jee?ee:J+Q));return 1===Y?j.push(m[(z=D[V-1])>>2]+m[z<<4&63]+"=="):2===Y&&j.push(m[(z=(D[V-2]<<8)+D[V-1])>>10]+m[z>>4&63]+m[z<<2&63]+"="),j.join("")};for(var m=[],t=[],e=typeof Uint8Array<"u"?Uint8Array:Array,_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",T=0,s=_.length;T0)throw new Error("Invalid string. Length must be a multiple of 4");var V=D.indexOf("=");return-1===V&&(V=z),[V,V===z?0:4-V%4]}function w(D){return m[D>>18&63]+m[D>>12&63]+m[D>>6&63]+m[63&D]}function C(D,z,V){for(var j=[],Q=z;Q=48&&v<=57?v-48:v>=65&&v<=70?v-55:v>=97&&v<=102?v-87:void _(!1,"Invalid character in "+f)}function P(f,l,v){var I=h(f,v);return v-1>=l&&(I|=h(f,v-1)<<4),I}function d(f,l,v,I){for(var k=0,x=0,n=Math.min(f.length,v),g=l;g=49?W-49+10:W>=17?W-17+10:W,_(W>=0&&x0?l:v},s.min=function(l,v){return l.cmp(v)<0?l:v},s.prototype._init=function(l,v,I){if("number"==typeof l)return this._initNumber(l,v,I);if("object"==typeof l)return this._initArray(l,v,I);"hex"===v&&(v=16),_(v===(0|v)&&v>=2&&v<=36);var k=0;"-"===(l=l.toString().replace(/\s+/g,""))[0]&&(k++,this.negative=1),k=0;k-=3)this.words[x]|=(n=l[k]|l[k-1]<<8|l[k-2]<<16)<>>26-g&67108863,(g+=24)>=26&&(g-=26,x++);else if("le"===I)for(k=0,x=0;k>>26-g&67108863,(g+=24)>=26&&(g-=26,x++);return this._strip()},s.prototype._parseHex=function(l,v,I){this.length=Math.ceil((l.length-v)/6),this.words=new Array(this.length);for(var k=0;k=v;k-=2)g=P(l,v,k)<=18?(x-=18,this.words[n+=1]|=g>>>26):x+=8;else for(k=(l.length-v)%2==0?v+1:v;k=18?(x-=18,this.words[n+=1]|=g>>>26):x+=8;this._strip()},s.prototype._parseBase=function(l,v,I){this.words=[0],this.length=1;for(var k=0,x=1;x<=67108863;x*=v)k++;k--,x=x/v|0;for(var n=l.length-I,g=n%k,W=Math.min(n,n-g)+I,O=0,U=I;U1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},typeof Symbol<"u"&&"function"==typeof Symbol.for)try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=C}catch{s.prototype.inspect=C}else s.prototype.inspect=C;function C(){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"],D=[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],z=[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(f,l,v){v.negative=l.negative^f.negative;var I=f.length+l.length|0;v.length=I,I=I-1|0;var k=0|f.words[0],x=0|l.words[0],n=k*x,W=n/67108864|0;v.words[0]=67108863&n;for(var O=1;O>>26,ge=67108863&W,nt=Math.min(O,l.length-1),Ue=Math.max(0,O-f.length+1);Ue<=nt;Ue++)U+=(n=(k=0|f.words[O-Ue|0])*(x=0|l.words[Ue])+ge)/67108864|0,ge=67108863&n;v.words[O]=0|ge,W=0|U}return 0!==W?v.words[O]=0|W:v.length--,v._strip()}s.prototype.toString=function(l,v){var I;if(v=0|v||1,16===(l=l||10)||"hex"===l){I="";for(var k=0,x=0,n=0;n>>24-k&16777215,(k+=2)>=26&&(k-=26,n--),I=0!==x||n!==this.length-1?L[6-W.length]+W+I:W+I}for(0!==x&&(I=x.toString(16)+I);I.length%v!=0;)I="0"+I;return 0!==this.negative&&(I="-"+I),I}if(l===(0|l)&&l>=2&&l<=36){var O=D[l],U=z[l];I="";var ge=this.clone();for(ge.negative=0;!ge.isZero();){var nt=ge.modrn(U).toString(l);I=(ge=ge.idivn(U)).isZero()?nt+I:L[O-nt.length]+nt+I}for(this.isZero()&&(I="0"+I);I.length%v!=0;)I="0"+I;return 0!==this.negative&&(I="-"+I),I}_(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var l=this.words[0];return 2===this.length?l+=67108864*this.words[1]:3===this.length&&1===this.words[2]?l+=4503599627370496+67108864*this.words[1]:this.length>2&&_(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-l:l},s.prototype.toJSON=function(){return this.toString(16,2)},y&&(s.prototype.toBuffer=function(l,v){return this.toArrayLike(y,l,v)}),s.prototype.toArray=function(l,v){return this.toArrayLike(Array,l,v)},s.prototype.toArrayLike=function(l,v,I){this._strip();var k=this.byteLength(),x=I||Math.max(1,k);_(k<=x,"byte array longer than desired length"),_(x>0,"Requested array length <= 0");var n=function(l,v){return l.allocUnsafe?l.allocUnsafe(v):new l(v)}(l,x);return this["_toArrayLike"+("le"===v?"LE":"BE")](n,k),n},s.prototype._toArrayLikeLE=function(l,v){for(var I=0,k=0,x=0,n=0;x>8&255),I>16&255),6===n?(I>24&255),k=0,n=0):(k=g>>>24,n+=2)}if(I=0&&(l[I--]=g>>8&255),I>=0&&(l[I--]=g>>16&255),6===n?(I>=0&&(l[I--]=g>>24&255),k=0,n=0):(k=g>>>24,n+=2)}if(I>=0)for(l[I--]=k;I>=0;)l[I--]=0},s.prototype._countBits=Math.clz32?function(l){return 32-Math.clz32(l)}:function(l){var v=l,I=0;return v>=4096&&(I+=13,v>>>=13),v>=64&&(I+=7,v>>>=7),v>=8&&(I+=4,v>>>=4),v>=2&&(I+=2,v>>>=2),I+v},s.prototype._zeroBits=function(l){if(0===l)return 26;var v=l,I=0;return 8191&v||(I+=13,v>>>=13),127&v||(I+=7,v>>>=7),15&v||(I+=4,v>>>=4),3&v||(I+=2,v>>>=2),1&v||I++,I},s.prototype.bitLength=function(){var v=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+v},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var l=0,v=0;vl.length?this.clone().ior(l):l.clone().ior(this)},s.prototype.uor=function(l){return this.length>l.length?this.clone().iuor(l):l.clone().iuor(this)},s.prototype.iuand=function(l){var v;v=this.length>l.length?l:this;for(var I=0;Il.length?this.clone().iand(l):l.clone().iand(this)},s.prototype.uand=function(l){return this.length>l.length?this.clone().iuand(l):l.clone().iuand(this)},s.prototype.iuxor=function(l){var v,I;this.length>l.length?(v=this,I=l):(v=l,I=this);for(var k=0;kl.length?this.clone().ixor(l):l.clone().ixor(this)},s.prototype.uxor=function(l){return this.length>l.length?this.clone().iuxor(l):l.clone().iuxor(this)},s.prototype.inotn=function(l){_("number"==typeof l&&l>=0);var v=0|Math.ceil(l/26),I=l%26;this._expand(v),I>0&&v--;for(var k=0;k0&&(this.words[k]=~this.words[k]&67108863>>26-I),this._strip()},s.prototype.notn=function(l){return this.clone().inotn(l)},s.prototype.setn=function(l,v){_("number"==typeof l&&l>=0);var I=l/26|0,k=l%26;return this._expand(I+1),this.words[I]=v?this.words[I]|1<l.length?(I=this,k=l):(I=l,k=this);for(var x=0,n=0;n>>26;for(;0!==x&&n>>26;if(this.length=I.length,0!==x)this.words[this.length]=x,this.length++;else if(I!==this)for(;nl.length?this.clone().iadd(l):l.clone().iadd(this)},s.prototype.isub=function(l){if(0!==l.negative){l.negative=0;var v=this.iadd(l);return l.negative=1,v._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(l),this.negative=1,this._normSign();var k,x,I=this.cmp(l);if(0===I)return this.negative=0,this.length=1,this.words[0]=0,this;I>0?(k=this,x=l):(k=l,x=this);for(var n=0,g=0;g>26,this.words[g]=67108863&v;for(;0!==n&&g>26,this.words[g]=67108863&v;if(0===n&&g>>13,at=0|k[1],ye=8191&at,xe=at>>>13,fe=0|k[2],Oe=8191&fe,oe=fe>>>13,Fe=0|k[3],De=8191&Fe,he=Fe>>>13,Me=0|k[4],pe=8191&Me,Ve=Me>>>13,Qe=0|k[5],Pe=8191&Qe,de=Qe>>>13,rt=0|k[6],Ke=8191&rt,lt=rt>>>13,Ut=0|k[7],ht=8191&Ut,Ge=Ut>>>13,yt=0|k[8],be=8191&yt,qe=yt>>>13,Ie=0|k[9],X=8191&Ie,mt=Ie>>>13,Tt=0|x[0],it=8191&Tt,je=Tt>>>13,zt=0|x[1],xt=8191&zt,Nt=zt>>>13,Gt=0|x[2],ke=8191&Gt,$=Gt>>>13,ue=0|x[3],Ae=8191&ue,Je=ue>>>13,$t=0|x[4],Vt=8191&$t,ii=$t>>>13,pt=0|x[5],ot=8191&pt,ft=pt>>>13,St=0|x[6],gt=8191&St,$e=St>>>13,_t=0|x[7],vt=8191&_t,He=_t>>>13,Et=0|x[8],At=8191&Et,Qt=Et>>>13,zi=0|x[9],Ni=8191&zi,Mi=zi>>>13;I.negative=l.negative^v.negative,I.length=19;var Gi=(g+(W=Math.imul(nt,it))|0)+((8191&(O=(O=Math.imul(nt,je))+Math.imul(Ue,it)|0))<<13)|0;g=((U=Math.imul(Ue,je))+(O>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,W=Math.imul(ye,it),O=(O=Math.imul(ye,je))+Math.imul(xe,it)|0,U=Math.imul(xe,je);var Xe=(g+(W=W+Math.imul(nt,xt)|0)|0)+((8191&(O=(O=O+Math.imul(nt,Nt)|0)+Math.imul(Ue,xt)|0))<<13)|0;g=((U=U+Math.imul(Ue,Nt)|0)+(O>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,W=Math.imul(Oe,it),O=(O=Math.imul(Oe,je))+Math.imul(oe,it)|0,U=Math.imul(oe,je),W=W+Math.imul(ye,xt)|0,O=(O=O+Math.imul(ye,Nt)|0)+Math.imul(xe,xt)|0,U=U+Math.imul(xe,Nt)|0;var It=(g+(W=W+Math.imul(nt,ke)|0)|0)+((8191&(O=(O=O+Math.imul(nt,$)|0)+Math.imul(Ue,ke)|0))<<13)|0;g=((U=U+Math.imul(Ue,$)|0)+(O>>>13)|0)+(It>>>26)|0,It&=67108863,W=Math.imul(De,it),O=(O=Math.imul(De,je))+Math.imul(he,it)|0,U=Math.imul(he,je),W=W+Math.imul(Oe,xt)|0,O=(O=O+Math.imul(Oe,Nt)|0)+Math.imul(oe,xt)|0,U=U+Math.imul(oe,Nt)|0,W=W+Math.imul(ye,ke)|0,O=(O=O+Math.imul(ye,$)|0)+Math.imul(xe,ke)|0,U=U+Math.imul(xe,$)|0;var Se=(g+(W=W+Math.imul(nt,Ae)|0)|0)+((8191&(O=(O=O+Math.imul(nt,Je)|0)+Math.imul(Ue,Ae)|0))<<13)|0;g=((U=U+Math.imul(Ue,Je)|0)+(O>>>13)|0)+(Se>>>26)|0,Se&=67108863,W=Math.imul(pe,it),O=(O=Math.imul(pe,je))+Math.imul(Ve,it)|0,U=Math.imul(Ve,je),W=W+Math.imul(De,xt)|0,O=(O=O+Math.imul(De,Nt)|0)+Math.imul(he,xt)|0,U=U+Math.imul(he,Nt)|0,W=W+Math.imul(Oe,ke)|0,O=(O=O+Math.imul(Oe,$)|0)+Math.imul(oe,ke)|0,U=U+Math.imul(oe,$)|0,W=W+Math.imul(ye,Ae)|0,O=(O=O+Math.imul(ye,Je)|0)+Math.imul(xe,Ae)|0,U=U+Math.imul(xe,Je)|0;var wt=(g+(W=W+Math.imul(nt,Vt)|0)|0)+((8191&(O=(O=O+Math.imul(nt,ii)|0)+Math.imul(Ue,Vt)|0))<<13)|0;g=((U=U+Math.imul(Ue,ii)|0)+(O>>>13)|0)+(wt>>>26)|0,wt&=67108863,W=Math.imul(Pe,it),O=(O=Math.imul(Pe,je))+Math.imul(de,it)|0,U=Math.imul(de,je),W=W+Math.imul(pe,xt)|0,O=(O=O+Math.imul(pe,Nt)|0)+Math.imul(Ve,xt)|0,U=U+Math.imul(Ve,Nt)|0,W=W+Math.imul(De,ke)|0,O=(O=O+Math.imul(De,$)|0)+Math.imul(he,ke)|0,U=U+Math.imul(he,$)|0,W=W+Math.imul(Oe,Ae)|0,O=(O=O+Math.imul(Oe,Je)|0)+Math.imul(oe,Ae)|0,U=U+Math.imul(oe,Je)|0,W=W+Math.imul(ye,Vt)|0,O=(O=O+Math.imul(ye,ii)|0)+Math.imul(xe,Vt)|0,U=U+Math.imul(xe,ii)|0;var Zt=(g+(W=W+Math.imul(nt,ot)|0)|0)+((8191&(O=(O=O+Math.imul(nt,ft)|0)+Math.imul(Ue,ot)|0))<<13)|0;g=((U=U+Math.imul(Ue,ft)|0)+(O>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,W=Math.imul(Ke,it),O=(O=Math.imul(Ke,je))+Math.imul(lt,it)|0,U=Math.imul(lt,je),W=W+Math.imul(Pe,xt)|0,O=(O=O+Math.imul(Pe,Nt)|0)+Math.imul(de,xt)|0,U=U+Math.imul(de,Nt)|0,W=W+Math.imul(pe,ke)|0,O=(O=O+Math.imul(pe,$)|0)+Math.imul(Ve,ke)|0,U=U+Math.imul(Ve,$)|0,W=W+Math.imul(De,Ae)|0,O=(O=O+Math.imul(De,Je)|0)+Math.imul(he,Ae)|0,U=U+Math.imul(he,Je)|0,W=W+Math.imul(Oe,Vt)|0,O=(O=O+Math.imul(Oe,ii)|0)+Math.imul(oe,Vt)|0,U=U+Math.imul(oe,ii)|0,W=W+Math.imul(ye,ot)|0,O=(O=O+Math.imul(ye,ft)|0)+Math.imul(xe,ot)|0,U=U+Math.imul(xe,ft)|0;var si=(g+(W=W+Math.imul(nt,gt)|0)|0)+((8191&(O=(O=O+Math.imul(nt,$e)|0)+Math.imul(Ue,gt)|0))<<13)|0;g=((U=U+Math.imul(Ue,$e)|0)+(O>>>13)|0)+(si>>>26)|0,si&=67108863,W=Math.imul(ht,it),O=(O=Math.imul(ht,je))+Math.imul(Ge,it)|0,U=Math.imul(Ge,je),W=W+Math.imul(Ke,xt)|0,O=(O=O+Math.imul(Ke,Nt)|0)+Math.imul(lt,xt)|0,U=U+Math.imul(lt,Nt)|0,W=W+Math.imul(Pe,ke)|0,O=(O=O+Math.imul(Pe,$)|0)+Math.imul(de,ke)|0,U=U+Math.imul(de,$)|0,W=W+Math.imul(pe,Ae)|0,O=(O=O+Math.imul(pe,Je)|0)+Math.imul(Ve,Ae)|0,U=U+Math.imul(Ve,Je)|0,W=W+Math.imul(De,Vt)|0,O=(O=O+Math.imul(De,ii)|0)+Math.imul(he,Vt)|0,U=U+Math.imul(he,ii)|0,W=W+Math.imul(Oe,ot)|0,O=(O=O+Math.imul(Oe,ft)|0)+Math.imul(oe,ot)|0,U=U+Math.imul(oe,ft)|0,W=W+Math.imul(ye,gt)|0,O=(O=O+Math.imul(ye,$e)|0)+Math.imul(xe,gt)|0,U=U+Math.imul(xe,$e)|0;var Ai=(g+(W=W+Math.imul(nt,vt)|0)|0)+((8191&(O=(O=O+Math.imul(nt,He)|0)+Math.imul(Ue,vt)|0))<<13)|0;g=((U=U+Math.imul(Ue,He)|0)+(O>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,W=Math.imul(be,it),O=(O=Math.imul(be,je))+Math.imul(qe,it)|0,U=Math.imul(qe,je),W=W+Math.imul(ht,xt)|0,O=(O=O+Math.imul(ht,Nt)|0)+Math.imul(Ge,xt)|0,U=U+Math.imul(Ge,Nt)|0,W=W+Math.imul(Ke,ke)|0,O=(O=O+Math.imul(Ke,$)|0)+Math.imul(lt,ke)|0,U=U+Math.imul(lt,$)|0,W=W+Math.imul(Pe,Ae)|0,O=(O=O+Math.imul(Pe,Je)|0)+Math.imul(de,Ae)|0,U=U+Math.imul(de,Je)|0,W=W+Math.imul(pe,Vt)|0,O=(O=O+Math.imul(pe,ii)|0)+Math.imul(Ve,Vt)|0,U=U+Math.imul(Ve,ii)|0,W=W+Math.imul(De,ot)|0,O=(O=O+Math.imul(De,ft)|0)+Math.imul(he,ot)|0,U=U+Math.imul(he,ft)|0,W=W+Math.imul(Oe,gt)|0,O=(O=O+Math.imul(Oe,$e)|0)+Math.imul(oe,gt)|0,U=U+Math.imul(oe,$e)|0,W=W+Math.imul(ye,vt)|0,O=(O=O+Math.imul(ye,He)|0)+Math.imul(xe,vt)|0,U=U+Math.imul(xe,He)|0;var Oi=(g+(W=W+Math.imul(nt,At)|0)|0)+((8191&(O=(O=O+Math.imul(nt,Qt)|0)+Math.imul(Ue,At)|0))<<13)|0;g=((U=U+Math.imul(Ue,Qt)|0)+(O>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,W=Math.imul(X,it),O=(O=Math.imul(X,je))+Math.imul(mt,it)|0,U=Math.imul(mt,je),W=W+Math.imul(be,xt)|0,O=(O=O+Math.imul(be,Nt)|0)+Math.imul(qe,xt)|0,U=U+Math.imul(qe,Nt)|0,W=W+Math.imul(ht,ke)|0,O=(O=O+Math.imul(ht,$)|0)+Math.imul(Ge,ke)|0,U=U+Math.imul(Ge,$)|0,W=W+Math.imul(Ke,Ae)|0,O=(O=O+Math.imul(Ke,Je)|0)+Math.imul(lt,Ae)|0,U=U+Math.imul(lt,Je)|0,W=W+Math.imul(Pe,Vt)|0,O=(O=O+Math.imul(Pe,ii)|0)+Math.imul(de,Vt)|0,U=U+Math.imul(de,ii)|0,W=W+Math.imul(pe,ot)|0,O=(O=O+Math.imul(pe,ft)|0)+Math.imul(Ve,ot)|0,U=U+Math.imul(Ve,ft)|0,W=W+Math.imul(De,gt)|0,O=(O=O+Math.imul(De,$e)|0)+Math.imul(he,gt)|0,U=U+Math.imul(he,$e)|0,W=W+Math.imul(Oe,vt)|0,O=(O=O+Math.imul(Oe,He)|0)+Math.imul(oe,vt)|0,U=U+Math.imul(oe,He)|0,W=W+Math.imul(ye,At)|0,O=(O=O+Math.imul(ye,Qt)|0)+Math.imul(xe,At)|0,U=U+Math.imul(xe,Qt)|0;var Qi=(g+(W=W+Math.imul(nt,Ni)|0)|0)+((8191&(O=(O=O+Math.imul(nt,Mi)|0)+Math.imul(Ue,Ni)|0))<<13)|0;g=((U=U+Math.imul(Ue,Mi)|0)+(O>>>13)|0)+(Qi>>>26)|0,Qi&=67108863,W=Math.imul(X,xt),O=(O=Math.imul(X,Nt))+Math.imul(mt,xt)|0,U=Math.imul(mt,Nt),W=W+Math.imul(be,ke)|0,O=(O=O+Math.imul(be,$)|0)+Math.imul(qe,ke)|0,U=U+Math.imul(qe,$)|0,W=W+Math.imul(ht,Ae)|0,O=(O=O+Math.imul(ht,Je)|0)+Math.imul(Ge,Ae)|0,U=U+Math.imul(Ge,Je)|0,W=W+Math.imul(Ke,Vt)|0,O=(O=O+Math.imul(Ke,ii)|0)+Math.imul(lt,Vt)|0,U=U+Math.imul(lt,ii)|0,W=W+Math.imul(Pe,ot)|0,O=(O=O+Math.imul(Pe,ft)|0)+Math.imul(de,ot)|0,U=U+Math.imul(de,ft)|0,W=W+Math.imul(pe,gt)|0,O=(O=O+Math.imul(pe,$e)|0)+Math.imul(Ve,gt)|0,U=U+Math.imul(Ve,$e)|0,W=W+Math.imul(De,vt)|0,O=(O=O+Math.imul(De,He)|0)+Math.imul(he,vt)|0,U=U+Math.imul(he,He)|0,W=W+Math.imul(Oe,At)|0,O=(O=O+Math.imul(Oe,Qt)|0)+Math.imul(oe,At)|0,U=U+Math.imul(oe,Qt)|0;var en=(g+(W=W+Math.imul(ye,Ni)|0)|0)+((8191&(O=(O=O+Math.imul(ye,Mi)|0)+Math.imul(xe,Ni)|0))<<13)|0;g=((U=U+Math.imul(xe,Mi)|0)+(O>>>13)|0)+(en>>>26)|0,en&=67108863,W=Math.imul(X,ke),O=(O=Math.imul(X,$))+Math.imul(mt,ke)|0,U=Math.imul(mt,$),W=W+Math.imul(be,Ae)|0,O=(O=O+Math.imul(be,Je)|0)+Math.imul(qe,Ae)|0,U=U+Math.imul(qe,Je)|0,W=W+Math.imul(ht,Vt)|0,O=(O=O+Math.imul(ht,ii)|0)+Math.imul(Ge,Vt)|0,U=U+Math.imul(Ge,ii)|0,W=W+Math.imul(Ke,ot)|0,O=(O=O+Math.imul(Ke,ft)|0)+Math.imul(lt,ot)|0,U=U+Math.imul(lt,ft)|0,W=W+Math.imul(Pe,gt)|0,O=(O=O+Math.imul(Pe,$e)|0)+Math.imul(de,gt)|0,U=U+Math.imul(de,$e)|0,W=W+Math.imul(pe,vt)|0,O=(O=O+Math.imul(pe,He)|0)+Math.imul(Ve,vt)|0,U=U+Math.imul(Ve,He)|0,W=W+Math.imul(De,At)|0,O=(O=O+Math.imul(De,Qt)|0)+Math.imul(he,At)|0,U=U+Math.imul(he,Qt)|0;var Yi=(g+(W=W+Math.imul(Oe,Ni)|0)|0)+((8191&(O=(O=O+Math.imul(Oe,Mi)|0)+Math.imul(oe,Ni)|0))<<13)|0;g=((U=U+Math.imul(oe,Mi)|0)+(O>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,W=Math.imul(X,Ae),O=(O=Math.imul(X,Je))+Math.imul(mt,Ae)|0,U=Math.imul(mt,Je),W=W+Math.imul(be,Vt)|0,O=(O=O+Math.imul(be,ii)|0)+Math.imul(qe,Vt)|0,U=U+Math.imul(qe,ii)|0,W=W+Math.imul(ht,ot)|0,O=(O=O+Math.imul(ht,ft)|0)+Math.imul(Ge,ot)|0,U=U+Math.imul(Ge,ft)|0,W=W+Math.imul(Ke,gt)|0,O=(O=O+Math.imul(Ke,$e)|0)+Math.imul(lt,gt)|0,U=U+Math.imul(lt,$e)|0,W=W+Math.imul(Pe,vt)|0,O=(O=O+Math.imul(Pe,He)|0)+Math.imul(de,vt)|0,U=U+Math.imul(de,He)|0,W=W+Math.imul(pe,At)|0,O=(O=O+Math.imul(pe,Qt)|0)+Math.imul(Ve,At)|0,U=U+Math.imul(Ve,Qt)|0;var Yt=(g+(W=W+Math.imul(De,Ni)|0)|0)+((8191&(O=(O=O+Math.imul(De,Mi)|0)+Math.imul(he,Ni)|0))<<13)|0;g=((U=U+Math.imul(he,Mi)|0)+(O>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,W=Math.imul(X,Vt),O=(O=Math.imul(X,ii))+Math.imul(mt,Vt)|0,U=Math.imul(mt,ii),W=W+Math.imul(be,ot)|0,O=(O=O+Math.imul(be,ft)|0)+Math.imul(qe,ot)|0,U=U+Math.imul(qe,ft)|0,W=W+Math.imul(ht,gt)|0,O=(O=O+Math.imul(ht,$e)|0)+Math.imul(Ge,gt)|0,U=U+Math.imul(Ge,$e)|0,W=W+Math.imul(Ke,vt)|0,O=(O=O+Math.imul(Ke,He)|0)+Math.imul(lt,vt)|0,U=U+Math.imul(lt,He)|0,W=W+Math.imul(Pe,At)|0,O=(O=O+Math.imul(Pe,Qt)|0)+Math.imul(de,At)|0,U=U+Math.imul(de,Qt)|0;var qt=(g+(W=W+Math.imul(pe,Ni)|0)|0)+((8191&(O=(O=O+Math.imul(pe,Mi)|0)+Math.imul(Ve,Ni)|0))<<13)|0;g=((U=U+Math.imul(Ve,Mi)|0)+(O>>>13)|0)+(qt>>>26)|0,qt&=67108863,W=Math.imul(X,ot),O=(O=Math.imul(X,ft))+Math.imul(mt,ot)|0,U=Math.imul(mt,ft),W=W+Math.imul(be,gt)|0,O=(O=O+Math.imul(be,$e)|0)+Math.imul(qe,gt)|0,U=U+Math.imul(qe,$e)|0,W=W+Math.imul(ht,vt)|0,O=(O=O+Math.imul(ht,He)|0)+Math.imul(Ge,vt)|0,U=U+Math.imul(Ge,He)|0,W=W+Math.imul(Ke,At)|0,O=(O=O+Math.imul(Ke,Qt)|0)+Math.imul(lt,At)|0,U=U+Math.imul(lt,Qt)|0;var _e=(g+(W=W+Math.imul(Pe,Ni)|0)|0)+((8191&(O=(O=O+Math.imul(Pe,Mi)|0)+Math.imul(de,Ni)|0))<<13)|0;g=((U=U+Math.imul(de,Mi)|0)+(O>>>13)|0)+(_e>>>26)|0,_e&=67108863,W=Math.imul(X,gt),O=(O=Math.imul(X,$e))+Math.imul(mt,gt)|0,U=Math.imul(mt,$e),W=W+Math.imul(be,vt)|0,O=(O=O+Math.imul(be,He)|0)+Math.imul(qe,vt)|0,U=U+Math.imul(qe,He)|0,W=W+Math.imul(ht,At)|0,O=(O=O+Math.imul(ht,Qt)|0)+Math.imul(Ge,At)|0,U=U+Math.imul(Ge,Qt)|0;var dt=(g+(W=W+Math.imul(Ke,Ni)|0)|0)+((8191&(O=(O=O+Math.imul(Ke,Mi)|0)+Math.imul(lt,Ni)|0))<<13)|0;g=((U=U+Math.imul(lt,Mi)|0)+(O>>>13)|0)+(dt>>>26)|0,dt&=67108863,W=Math.imul(X,vt),O=(O=Math.imul(X,He))+Math.imul(mt,vt)|0,U=Math.imul(mt,He),W=W+Math.imul(be,At)|0,O=(O=O+Math.imul(be,Qt)|0)+Math.imul(qe,At)|0,U=U+Math.imul(qe,Qt)|0;var Dt=(g+(W=W+Math.imul(ht,Ni)|0)|0)+((8191&(O=(O=O+Math.imul(ht,Mi)|0)+Math.imul(Ge,Ni)|0))<<13)|0;g=((U=U+Math.imul(Ge,Mi)|0)+(O>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,W=Math.imul(X,At),O=(O=Math.imul(X,Qt))+Math.imul(mt,At)|0,U=Math.imul(mt,Qt);var Bt=(g+(W=W+Math.imul(be,Ni)|0)|0)+((8191&(O=(O=O+Math.imul(be,Mi)|0)+Math.imul(qe,Ni)|0))<<13)|0;g=((U=U+Math.imul(qe,Mi)|0)+(O>>>13)|0)+(Bt>>>26)|0,Bt&=67108863;var Ot=(g+(W=Math.imul(X,Ni))|0)+((8191&(O=(O=Math.imul(X,Mi))+Math.imul(mt,Ni)|0))<<13)|0;return g=((U=Math.imul(mt,Mi))+(O>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n[0]=Gi,n[1]=Xe,n[2]=It,n[3]=Se,n[4]=wt,n[5]=Zt,n[6]=si,n[7]=Ai,n[8]=Oi,n[9]=Qi,n[10]=en,n[11]=Yi,n[12]=Yt,n[13]=qt,n[14]=_e,n[15]=dt,n[16]=Dt,n[17]=Bt,n[18]=Ot,0!==g&&(n[19]=g,I.length++),I};function J(f,l,v){v.negative=l.negative^f.negative,v.length=f.length+l.length;for(var I=0,k=0,x=0;x>>26)|0)>>>26,n&=67108863}v.words[x]=g,I=n,n=k}return 0!==I?v.words[x]=I:v.length--,v._strip()}function ee(f,l,v){return J(f,l,v)}function me(f,l){this.x=f,this.y=l}Math.imul||(Q=j),s.prototype.mulTo=function(l,v){var k=this.length+l.length;return 10===this.length&&10===l.length?Q(this,l,v):k<63?j(this,l,v):k<1024?J(this,l,v):ee(this,l,v)},me.prototype.makeRBT=function(l){for(var v=new Array(l),I=s.prototype._countBits(l)-1,k=0;k>=1;return k},me.prototype.permute=function(l,v,I,k,x,n){for(var g=0;g>>=1)x++;return 1<>>=13),x>>>=13;for(n=2*v;n>=26,I+=x/67108864|0,I+=n>>>26,this.words[k]=67108863&n}return 0!==I&&(this.words[k]=I,this.length++),v?this.ineg():this},s.prototype.muln=function(l){return this.clone().imuln(l)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(l){var v=function Y(f){for(var l=new Array(f.bitLength()),v=0;v>>v%26&1;return l}(l);if(0===v.length)return new s(1);for(var I=this,k=0;k=0);var x,v=l%26,I=(l-v)/26,k=67108863>>>26-v<<26-v;if(0!==v){var n=0;for(x=0;x>>26-v}n&&(this.words[x]=n,this.length++)}if(0!==I){for(x=this.length-1;x>=0;x--)this.words[x+I]=this.words[x];for(x=0;x=0),k=v?(v-v%26)/26:0;var x=l%26,n=Math.min((l-x)/26,this.length),g=67108863^67108863>>>x<n)for(this.length-=n,O=0;O=0&&(0!==U||O>=k);O--){var ge=0|this.words[O];this.words[O]=U<<26-x|ge>>>x,U=ge&g}return W&&0!==U&&(W.words[W.length++]=U),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(l,v,I){return _(0===this.negative),this.iushrn(l,v,I)},s.prototype.shln=function(l){return this.clone().ishln(l)},s.prototype.ushln=function(l){return this.clone().iushln(l)},s.prototype.shrn=function(l){return this.clone().ishrn(l)},s.prototype.ushrn=function(l){return this.clone().iushrn(l)},s.prototype.testn=function(l){_("number"==typeof l&&l>=0);var v=l%26,I=(l-v)/26;return!(this.length<=I||!(this.words[I]&1<=0);var v=l%26,I=(l-v)/26;return _(0===this.negative,"imaskn works only with positive numbers"),this.length<=I?this:(0!==v&&I++,this.length=Math.min(I,this.length),0!==v&&(this.words[this.length-1]&=67108863^67108863>>>v<=67108864;v++)this.words[v]-=67108864,v===this.length-1?this.words[v+1]=1:this.words[v+1]++;return this.length=Math.max(this.length,v+1),this},s.prototype.isubn=function(l){if(_("number"==typeof l),_(l<67108864),l<0)return this.iaddn(-l);if(0!==this.negative)return this.negative=0,this.iaddn(l),this.negative=1,this;if(this.words[0]-=l,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var v=0;v>26)-(W/67108864|0),this.words[x+I]=67108863&n}for(;x>26,this.words[x+I]=67108863&n;if(0===g)return this._strip();for(_(-1===g),g=0,x=0;x>26,this.words[x]=67108863&n;return this.negative=1,this._strip()},s.prototype._wordDiv=function(l,v){var I,k=this.clone(),x=l,n=0|x.words[x.length-1];0!=(I=26-this._countBits(n))&&(x=x.ushln(I),k.iushln(I),n=0|x.words[x.length-1]);var O,W=k.length-x.length;if("mod"!==v){(O=new s(null)).length=W+1,O.words=new Array(O.length);for(var U=0;U=0;nt--){var Ue=67108864*(0|k.words[x.length+nt])+(0|k.words[x.length+nt-1]);for(Ue=Math.min(Ue/n|0,67108863),k._ishlnsubmul(x,Ue,nt);0!==k.negative;)Ue--,k.negative=0,k._ishlnsubmul(x,1,nt),k.isZero()||(k.negative^=1);O&&(O.words[nt]=Ue)}return O&&O._strip(),k._strip(),"div"!==v&&0!==I&&k.iushrn(I),{div:O||null,mod:k}},s.prototype.divmod=function(l,v,I){return _(!l.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===l.negative?(n=this.neg().divmod(l,v),"mod"!==v&&(k=n.div.neg()),"div"!==v&&(x=n.mod.neg(),I&&0!==x.negative&&x.iadd(l)),{div:k,mod:x}):0===this.negative&&0!==l.negative?(n=this.divmod(l.neg(),v),"mod"!==v&&(k=n.div.neg()),{div:k,mod:n.mod}):this.negative&l.negative?(n=this.neg().divmod(l.neg(),v),"div"!==v&&(x=n.mod.neg(),I&&0!==x.negative&&x.isub(l)),{div:n.div,mod:x}):l.length>this.length||this.cmp(l)<0?{div:new s(0),mod:this}:1===l.length?"div"===v?{div:this.divn(l.words[0]),mod:null}:"mod"===v?{div:null,mod:new s(this.modrn(l.words[0]))}:{div:this.divn(l.words[0]),mod:new s(this.modrn(l.words[0]))}:this._wordDiv(l,v);var k,x,n},s.prototype.div=function(l){return this.divmod(l,"div",!1).div},s.prototype.mod=function(l){return this.divmod(l,"mod",!1).mod},s.prototype.umod=function(l){return this.divmod(l,"mod",!0).mod},s.prototype.divRound=function(l){var v=this.divmod(l);if(v.mod.isZero())return v.div;var I=0!==v.div.negative?v.mod.isub(l):v.mod,k=l.ushrn(1),x=l.andln(1),n=I.cmp(k);return n<0||1===x&&0===n?v.div:0!==v.div.negative?v.div.isubn(1):v.div.iaddn(1)},s.prototype.modrn=function(l){var v=l<0;v&&(l=-l),_(l<=67108863);for(var I=(1<<26)%l,k=0,x=this.length-1;x>=0;x--)k=(I*k+(0|this.words[x]))%l;return v?-k:k},s.prototype.modn=function(l){return this.modrn(l)},s.prototype.idivn=function(l){var v=l<0;v&&(l=-l),_(l<=67108863);for(var I=0,k=this.length-1;k>=0;k--){var x=(0|this.words[k])+67108864*I;this.words[k]=x/l|0,I=x%l}return this._strip(),v?this.ineg():this},s.prototype.divn=function(l){return this.clone().idivn(l)},s.prototype.egcd=function(l){_(0===l.negative),_(!l.isZero());var v=this,I=l.clone();v=0!==v.negative?v.umod(l):v.clone();for(var k=new s(1),x=new s(0),n=new s(0),g=new s(1),W=0;v.isEven()&&I.isEven();)v.iushrn(1),I.iushrn(1),++W;for(var O=I.clone(),U=v.clone();!v.isZero();){for(var ge=0,nt=1;!(v.words[0]&nt)&&ge<26;++ge,nt<<=1);if(ge>0)for(v.iushrn(ge);ge-- >0;)(k.isOdd()||x.isOdd())&&(k.iadd(O),x.isub(U)),k.iushrn(1),x.iushrn(1);for(var Ue=0,at=1;!(I.words[0]&at)&&Ue<26;++Ue,at<<=1);if(Ue>0)for(I.iushrn(Ue);Ue-- >0;)(n.isOdd()||g.isOdd())&&(n.iadd(O),g.isub(U)),n.iushrn(1),g.iushrn(1);v.cmp(I)>=0?(v.isub(I),k.isub(n),x.isub(g)):(I.isub(v),n.isub(k),g.isub(x))}return{a:n,b:g,gcd:I.iushln(W)}},s.prototype._invmp=function(l){_(0===l.negative),_(!l.isZero());var ge,v=this,I=l.clone();v=0!==v.negative?v.umod(l):v.clone();for(var k=new s(1),x=new s(0),n=I.clone();v.cmpn(1)>0&&I.cmpn(1)>0;){for(var g=0,W=1;!(v.words[0]&W)&&g<26;++g,W<<=1);if(g>0)for(v.iushrn(g);g-- >0;)k.isOdd()&&k.iadd(n),k.iushrn(1);for(var O=0,U=1;!(I.words[0]&U)&&O<26;++O,U<<=1);if(O>0)for(I.iushrn(O);O-- >0;)x.isOdd()&&x.iadd(n),x.iushrn(1);v.cmp(I)>=0?(v.isub(I),k.isub(x)):(I.isub(v),x.isub(k))}return(ge=0===v.cmpn(1)?k:x).cmpn(0)<0&&ge.iadd(l),ge},s.prototype.gcd=function(l){if(this.isZero())return l.abs();if(l.isZero())return this.abs();var v=this.clone(),I=l.clone();v.negative=0,I.negative=0;for(var k=0;v.isEven()&&I.isEven();k++)v.iushrn(1),I.iushrn(1);for(;;){for(;v.isEven();)v.iushrn(1);for(;I.isEven();)I.iushrn(1);var x=v.cmp(I);if(x<0){var n=v;v=I,I=n}else if(0===x||0===I.cmpn(1))break;v.isub(I)}return I.iushln(k)},s.prototype.invm=function(l){return this.egcd(l).a.umod(l)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(l){return this.words[0]&l},s.prototype.bincn=function(l){_("number"==typeof l);var v=l%26,I=(l-v)/26,k=1<>>26,this.words[n]=g&=67108863}return 0!==x&&(this.words[n]=x,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(l){var I,v=l<0;if(0!==this.negative&&!v)return-1;if(0===this.negative&&v)return 1;if(this._strip(),this.length>1)I=1;else{v&&(l=-l),_(l<=67108863,"Number is too big");var k=0|this.words[0];I=k===l?0:kl.length)return 1;if(this.length=0;I--){var k=0|this.words[I],x=0|l.words[I];if(k!==x){kx&&(v=1);break}}return v},s.prototype.gtn=function(l){return 1===this.cmpn(l)},s.prototype.gt=function(l){return 1===this.cmp(l)},s.prototype.gten=function(l){return this.cmpn(l)>=0},s.prototype.gte=function(l){return this.cmp(l)>=0},s.prototype.ltn=function(l){return-1===this.cmpn(l)},s.prototype.lt=function(l){return-1===this.cmp(l)},s.prototype.lten=function(l){return this.cmpn(l)<=0},s.prototype.lte=function(l){return this.cmp(l)<=0},s.prototype.eqn=function(l){return 0===this.cmpn(l)},s.prototype.eq=function(l){return 0===this.cmp(l)},s.red=function(l){return new i(l)},s.prototype.toRed=function(l){return _(!this.red,"Already a number in reduction context"),_(0===this.negative,"red works only with positives"),l.convertTo(this)._forceRed(l)},s.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(l){return this.red=l,this},s.prototype.forceRed=function(l){return _(!this.red,"Already a number in reduction context"),this._forceRed(l)},s.prototype.redAdd=function(l){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,l)},s.prototype.redIAdd=function(l){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,l)},s.prototype.redSub=function(l){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,l)},s.prototype.redISub=function(l){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,l)},s.prototype.redShl=function(l){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,l)},s.prototype.redMul=function(l){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,l),this.red.mul(this,l)},s.prototype.redIMul=function(l){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,l),this.red.imul(this,l)},s.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(l){return _(this.red&&!l.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,l)};var re={k256:null,p224:null,p192:null,p25519:null};function ie(f,l){this.name=f,this.p=new s(l,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function se(){ie.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ce(){ie.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function Ce(){ie.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){ie.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function i(f){if("string"==typeof f){var l=s._prime(f);this.m=l.p,this.prime=l}else _(f.gtn(1),"modulus must be greater than 1"),this.m=f,this.prime=null}function a(f){i.call(this,f),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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)}ie.prototype._tmp=function(){var l=new s(null);return l.words=new Array(Math.ceil(this.n/13)),l},ie.prototype.ireduce=function(l){var I,v=l;do{this.split(v,this.tmp),I=(v=(v=this.imulK(v)).iadd(this.tmp)).bitLength()}while(I>this.n);var k=I0?v.isub(this.p):void 0!==v.strip?v.strip():v._strip(),v},ie.prototype.split=function(l,v){l.iushrn(this.n,0,v)},ie.prototype.imulK=function(l){return l.imul(this.k)},T(se,ie),se.prototype.split=function(l,v){for(var I=4194303,k=Math.min(l.length,9),x=0;x>>22,n=g}l.words[x-10]=n>>>=22,l.length-=0===n&&l.length>10?10:9},se.prototype.imulK=function(l){l.words[l.length]=0,l.words[l.length+1]=0,l.length+=2;for(var v=0,I=0;I>>=26,l.words[I]=x,v=k}return 0!==v&&(l.words[l.length++]=v),l},s._prime=function(l){if(re[l])return re[l];var v;if("k256"===l)v=new se;else if("p224"===l)v=new ce;else if("p192"===l)v=new Ce;else{if("p25519"!==l)throw new Error("Unknown prime "+l);v=new M}return re[l]=v,v},i.prototype._verify1=function(l){_(0===l.negative,"red works only with positives"),_(l.red,"red works only with red numbers")},i.prototype._verify2=function(l,v){_(0==(l.negative|v.negative),"red works only with positives"),_(l.red&&l.red===v.red,"red works only with red numbers")},i.prototype.imod=function(l){return this.prime?this.prime.ireduce(l)._forceRed(this):(w(l,l.umod(this.m)._forceRed(this)),l)},i.prototype.neg=function(l){return l.isZero()?l.clone():this.m.sub(l)._forceRed(this)},i.prototype.add=function(l,v){this._verify2(l,v);var I=l.add(v);return I.cmp(this.m)>=0&&I.isub(this.m),I._forceRed(this)},i.prototype.iadd=function(l,v){this._verify2(l,v);var I=l.iadd(v);return I.cmp(this.m)>=0&&I.isub(this.m),I},i.prototype.sub=function(l,v){this._verify2(l,v);var I=l.sub(v);return I.cmpn(0)<0&&I.iadd(this.m),I._forceRed(this)},i.prototype.isub=function(l,v){this._verify2(l,v);var I=l.isub(v);return I.cmpn(0)<0&&I.iadd(this.m),I},i.prototype.shl=function(l,v){return this._verify1(l),this.imod(l.ushln(v))},i.prototype.imul=function(l,v){return this._verify2(l,v),this.imod(l.imul(v))},i.prototype.mul=function(l,v){return this._verify2(l,v),this.imod(l.mul(v))},i.prototype.isqr=function(l){return this.imul(l,l.clone())},i.prototype.sqr=function(l){return this.mul(l,l)},i.prototype.sqrt=function(l){if(l.isZero())return l.clone();var v=this.m.andln(3);if(_(v%2==1),3===v){var I=this.m.add(new s(1)).iushrn(2);return this.pow(l,I)}for(var k=this.m.subn(1),x=0;!k.isZero()&&0===k.andln(1);)x++,k.iushrn(1);_(!k.isZero());var n=new s(1).toRed(this),g=n.redNeg(),W=this.m.subn(1).iushrn(1),O=this.m.bitLength();for(O=new s(2*O*O).toRed(this);0!==this.pow(O,W).cmp(g);)O.redIAdd(g);for(var U=this.pow(O,k),ge=this.pow(l,k.addn(1).iushrn(1)),nt=this.pow(l,k),Ue=x;0!==nt.cmp(n);){for(var at=nt,ye=0;0!==at.cmp(n);ye++)at=at.redSqr();_(ye=0;x--){for(var U=v.words[x],ge=O-1;ge>=0;ge--){var nt=U>>ge&1;n!==k[0]&&(n=this.sqr(n)),0!==nt||0!==g?(g<<=1,g|=nt,(4==++W||0===x&&0===ge)&&(n=this.mul(n,k[g]),W=0,g=0)):W=0}O=26}return n},i.prototype.convertTo=function(l){var v=l.umod(this.m);return v===l?v.clone():v},i.prototype.convertFrom=function(l){var v=l.clone();return v.red=null,v},s.mont=function(l){return new a(l)},T(a,i),a.prototype.convertTo=function(l){return this.imod(l.ushln(this.shift))},a.prototype.convertFrom=function(l){var v=this.imod(l.mul(this.rinv));return v.red=null,v},a.prototype.imul=function(l,v){if(l.isZero()||v.isZero())return l.words[0]=0,l.length=1,l;var I=l.imul(v),k=I.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=I.isub(k).iushrn(this.shift),n=x;return x.cmp(this.m)>=0?n=x.isub(this.m):x.cmpn(0)<0&&(n=x.iadd(this.m)),n._forceRed(this)},a.prototype.mul=function(l,v){if(l.isZero()||v.isZero())return new s(0)._forceRed(this);var I=l.mul(v),k=I.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=I.isub(k).iushrn(this.shift),n=x;return x.cmp(this.m)>=0?n=x.isub(this.m):x.cmpn(0)<0&&(n=x.iadd(this.m)),n._forceRed(this)},a.prototype.invm=function(l){return this.imod(l._invmp(this.m).mul(this.r2))._forceRed(this)}}(We=m.nmd(We),this)},7950:(We,q,m)=>{var t;function e(T){this.rand=T}if(We.exports=function(s){return t||(t=new e(null)),t.generate(s)},We.exports.Rand=e,e.prototype.generate=function(s){return this._rand(s)},e.prototype._rand=function(s){if(this.rand.getBytes)return this.rand.getBytes(s);for(var y=new Uint8Array(s),h=0;h{var t=m(3502).Buffer;function e(P){t.isBuffer(P)||(P=t.from(P));for(var d=P.length/4|0,w=new Array(d),C=0;C>>24]^z[Q>>>16&255]^V[J>>>8&255]^Y[255&ee]^d[ce++],re=D[Q>>>24]^z[J>>>16&255]^V[ee>>>8&255]^Y[255&j]^d[ce++],ie=D[J>>>24]^z[ee>>>16&255]^V[j>>>8&255]^Y[255&Q]^d[ce++],se=D[ee>>>24]^z[j>>>16&255]^V[Q>>>8&255]^Y[255&J]^d[ce++],j=me,Q=re,J=ie,ee=se;return me=(C[j>>>24]<<24|C[Q>>>16&255]<<16|C[J>>>8&255]<<8|C[255&ee])^d[ce++],re=(C[Q>>>24]<<24|C[J>>>16&255]<<16|C[ee>>>8&255]<<8|C[255&j])^d[ce++],ie=(C[J>>>24]<<24|C[ee>>>16&255]<<16|C[j>>>8&255]<<8|C[255&Q])^d[ce++],se=(C[ee>>>24]<<24|C[j>>>16&255]<<16|C[Q>>>8&255]<<8|C[255&J])^d[ce++],[me>>>=0,re>>>=0,ie>>>=0,se>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],y=function(){for(var P=new Array(256),d=0;d<256;d++)P[d]=d<128?d<<1:d<<1^283;for(var w=[],C=[],L=[[],[],[],[]],D=[[],[],[],[]],z=0,V=0,Y=0;Y<256;++Y){var j=V^V<<1^V<<2^V<<3^V<<4;w[z]=j=j>>>8^255&j^99,C[j]=z;var Q=P[z],J=P[Q],ee=P[J],me=257*P[j]^16843008*j;L[0][z]=me<<24|me>>>8,L[1][z]=me<<16|me>>>16,L[2][z]=me<<8|me>>>24,L[3][z]=me,D[0][j]=(me=16843009*ee^65537*J^257*Q^16843008*z)<<24|me>>>8,D[1][j]=me<<16|me>>>16,D[2][j]=me<<8|me>>>24,D[3][j]=me,0===z?z=V=1:(z=Q^P[P[P[ee^Q]]],V^=P[P[V]])}return{SBOX:w,INV_SBOX:C,SUB_MIX:L,INV_SUB_MIX:D}}();function h(P){this._key=e(P),this._reset()}h.blockSize=16,h.keySize=32,h.prototype.blockSize=h.blockSize,h.prototype.keySize=h.keySize,h.prototype._reset=function(){for(var P=this._key,d=P.length,w=d+6,C=4*(w+1),L=[],D=0;D>>24)>>>24]<<24|y.SBOX[z>>>16&255]<<16|y.SBOX[z>>>8&255]<<8|y.SBOX[255&z],z^=s[D/d|0]<<24):d>6&&D%d==4&&(z=y.SBOX[z>>>24]<<24|y.SBOX[z>>>16&255]<<16|y.SBOX[z>>>8&255]<<8|y.SBOX[255&z]),L[D]=L[D-d]^z}for(var V=[],Y=0;Y>>24]]^y.INV_SUB_MIX[1][y.SBOX[Q>>>16&255]]^y.INV_SUB_MIX[2][y.SBOX[Q>>>8&255]]^y.INV_SUB_MIX[3][y.SBOX[255&Q]]}this._nRounds=w,this._keySchedule=L,this._invKeySchedule=V},h.prototype.encryptBlockRaw=function(P){return T(P=e(P),this._keySchedule,y.SUB_MIX,y.SBOX,this._nRounds)},h.prototype.encryptBlock=function(P){var d=this.encryptBlockRaw(P),w=t.allocUnsafe(16);return w.writeUInt32BE(d[0],0),w.writeUInt32BE(d[1],4),w.writeUInt32BE(d[2],8),w.writeUInt32BE(d[3],12),w},h.prototype.decryptBlock=function(P){var d=(P=e(P))[1];P[1]=P[3],P[3]=d;var w=T(P,this._invKeySchedule,y.INV_SUB_MIX,y.INV_SBOX,this._nRounds),C=t.allocUnsafe(16);return C.writeUInt32BE(w[0],0),C.writeUInt32BE(w[3],4),C.writeUInt32BE(w[2],8),C.writeUInt32BE(w[1],12),C},h.prototype.scrub=function(){_(this._keySchedule),_(this._invKeySchedule),_(this._key)},We.exports.AES=h},9382:(We,q,m)=>{var t=m(1899),e=m(3502).Buffer,_=m(1052),T=m(3894),s=m(8857),y=m(8789),h=m(7968);function w(C,L,D,z){_.call(this);var V=e.alloc(4,0);this._cipher=new t.AES(L);var Y=this._cipher.encryptBlock(V);this._ghash=new s(Y),D=function d(C,L,D){if(12===L.length)return C._finID=e.concat([L,e.from([0,0,0,1])]),e.concat([L,e.from([0,0,0,2])]);var z=new s(D),V=L.length,Y=V%16;z.update(L),Y&&z.update(e.alloc(Y=16-Y,0)),z.update(e.alloc(8,0));var j=8*V,Q=e.alloc(8);Q.writeUIntBE(j,0,8),z.update(Q),C._finID=z.state;var J=e.from(C._finID);return h(J),J}(this,D,Y),this._prev=e.from(D),this._cache=e.allocUnsafe(0),this._secCache=e.allocUnsafe(0),this._decrypt=z,this._alen=0,this._len=0,this._mode=C,this._authTag=null,this._called=!1}T(w,_),w.prototype._update=function(C){if(!this._called&&this._alen){var L=16-this._alen%16;L<16&&(L=e.alloc(L,0),this._ghash.update(L))}this._called=!0;var D=this._mode.encrypt(this,C);return this._ghash.update(this._decrypt?C:D),this._len+=C.length,D},w.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var C=y(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function P(C,L){var D=0;C.length!==L.length&&D++;for(var z=Math.min(C.length,L.length),V=0;V{var t=m(6900),e=m(856),_=m(4946);q.createCipher=q.Cipher=t.createCipher,q.createCipheriv=q.Cipheriv=t.createCipheriv,q.createDecipher=q.Decipher=e.createDecipher,q.createDecipheriv=q.Decipheriv=e.createDecipheriv,q.listCiphers=q.getCiphers=function T(){return Object.keys(_)}},856:(We,q,m)=>{var t=m(9382),e=m(3502).Buffer,_=m(9171),T=m(8441),s=m(1052),y=m(1899),h=m(347);function d(z,V,Y){s.call(this),this._cache=new w,this._last=void 0,this._cipher=new y.AES(V),this._prev=e.from(Y),this._mode=z,this._autopadding=!0}function w(){this.cache=e.allocUnsafe(0)}function L(z,V,Y){var j=_[z.toLowerCase()];if(!j)throw new TypeError("invalid suite type");if("string"==typeof Y&&(Y=e.from(Y)),"GCM"!==j.mode&&Y.length!==j.iv)throw new TypeError("invalid iv length "+Y.length);if("string"==typeof V&&(V=e.from(V)),V.length!==j.key/8)throw new TypeError("invalid key length "+V.length);return"stream"===j.type?new T(j.module,V,Y,!0):"auth"===j.type?new t(j.module,V,Y,!0):new d(j.module,V,Y)}m(3894)(d,s),d.prototype._update=function(z){this._cache.add(z);for(var V,Y,j=[];V=this._cache.get(this._autopadding);)Y=this._mode.decrypt(this,V),j.push(Y);return e.concat(j)},d.prototype._final=function(){var z=this._cache.flush();if(this._autopadding)return function C(z){var V=z[15];if(V<1||V>16)throw new Error("unable to decrypt data");for(var Y=-1;++Y16)return V=this.cache.slice(0,16),this.cache=this.cache.slice(16),V}else if(this.cache.length>=16)return V=this.cache.slice(0,16),this.cache=this.cache.slice(16),V;return null},w.prototype.flush=function(){if(this.cache.length)return this.cache},q.createDecipher=function D(z,V){var Y=_[z.toLowerCase()];if(!Y)throw new TypeError("invalid suite type");var j=h(V,!1,Y.key,Y.iv);return L(z,j.key,j.iv)},q.createDecipheriv=L},6900:(We,q,m)=>{var t=m(9171),e=m(9382),_=m(3502).Buffer,T=m(8441),s=m(1052),y=m(1899),h=m(347);function d(z,V,Y){s.call(this),this._cache=new C,this._cipher=new y.AES(V),this._prev=_.from(Y),this._mode=z,this._autopadding=!0}m(3894)(d,s),d.prototype._update=function(z){this._cache.add(z);for(var V,Y,j=[];V=this._cache.get();)Y=this._mode.encrypt(this,V),j.push(Y);return _.concat(j)};var w=_.alloc(16,16);function C(){this.cache=_.allocUnsafe(0)}function L(z,V,Y){var j=t[z.toLowerCase()];if(!j)throw new TypeError("invalid suite type");if("string"==typeof V&&(V=_.from(V)),V.length!==j.key/8)throw new TypeError("invalid key length "+V.length);if("string"==typeof Y&&(Y=_.from(Y)),"GCM"!==j.mode&&Y.length!==j.iv)throw new TypeError("invalid iv length "+Y.length);return"stream"===j.type?new T(j.module,V,Y):"auth"===j.type?new e(j.module,V,Y):new d(j.module,V,Y)}d.prototype._final=function(){var z=this._cache.flush();if(this._autopadding)return z=this._mode.encrypt(this,z),this._cipher.scrub(),z;if(!z.equals(w))throw this._cipher.scrub(),new Error("data not multiple of block length")},d.prototype.setAutoPadding=function(z){return this._autopadding=!!z,this},C.prototype.add=function(z){this.cache=_.concat([this.cache,z])},C.prototype.get=function(){if(this.cache.length>15){var z=this.cache.slice(0,16);return this.cache=this.cache.slice(16),z}return null},C.prototype.flush=function(){for(var z=16-this.cache.length,V=_.allocUnsafe(z),Y=-1;++Y{var t=m(3502).Buffer,e=t.alloc(16,0);function T(y){var h=t.allocUnsafe(16);return h.writeUInt32BE(y[0]>>>0,0),h.writeUInt32BE(y[1]>>>0,4),h.writeUInt32BE(y[2]>>>0,8),h.writeUInt32BE(y[3]>>>0,12),h}function s(y){this.h=y,this.state=t.alloc(16,0),this.cache=t.allocUnsafe(0)}s.prototype.ghash=function(y){for(var h=-1;++h0;P--)y[P]=y[P]>>>1|(1&y[P-1])<<31;y[0]=y[0]>>>1,w&&(y[0]=y[0]^225<<24)}this.state=T(h)},s.prototype.update=function(y){this.cache=t.concat([this.cache,y]);for(var h;this.cache.length>=16;)h=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(h)},s.prototype.final=function(y,h){return this.cache.length&&this.ghash(t.concat([this.cache,e],16)),this.ghash(T([0,y,0,h])),this.state},We.exports=s},7968:We=>{We.exports=function q(m){for(var e,t=m.length;t--;){if(255!==(e=m.readUInt8(t))){e++,m.writeUInt8(e,t);break}m.writeUInt8(0,t)}}},4903:(We,q,m)=>{var t=m(8789);q.encrypt=function(e,_){var T=t(_,e._prev);return e._prev=e._cipher.encryptBlock(T),e._prev},q.decrypt=function(e,_){var T=e._prev;e._prev=_;var s=e._cipher.decryptBlock(_);return t(s,T)}},9885:(We,q,m)=>{var t=m(3502).Buffer,e=m(8789);function _(T,s,y){var h=s.length,P=e(s,T._cache);return T._cache=T._cache.slice(h),T._prev=t.concat([T._prev,y?s:P]),P}q.encrypt=function(T,s,y){for(var P,h=t.allocUnsafe(0);s.length;){if(0===T._cache.length&&(T._cache=T._cipher.encryptBlock(T._prev),T._prev=t.allocUnsafe(0)),!(T._cache.length<=s.length)){h=t.concat([h,_(T,s,y)]);break}h=t.concat([h,_(T,s.slice(0,P=T._cache.length),y)]),s=s.slice(P)}return h}},6531:(We,q,m)=>{var t=m(3502).Buffer;function e(T,s,y){for(var C,L,P=-1,w=0;++P<8;)w+=(128&(L=T._cipher.encryptBlock(T._prev)[0]^(C=s&1<<7-P?128:0)))>>P%8,T._prev=_(T._prev,y?C:L);return w}function _(T,s){var y=T.length,h=-1,P=t.allocUnsafe(T.length);for(T=t.concat([T,t.from([s])]);++h>7;return P}q.encrypt=function(T,s,y){for(var h=s.length,P=t.allocUnsafe(h),d=-1;++d{var t=m(3502).Buffer;function e(_,T,s){var h=_._cipher.encryptBlock(_._prev)[0]^T;return _._prev=t.concat([_._prev.slice(1),t.from([s?T:h])]),h}q.encrypt=function(_,T,s){for(var y=T.length,h=t.allocUnsafe(y),P=-1;++P{var t=m(8789),e=m(3502).Buffer,_=m(7968);function T(y){var h=y._cipher.encryptBlockRaw(y._prev);return _(y._prev),h}q.encrypt=function(y,h){var P=Math.ceil(h.length/16),d=y._cache.length;y._cache=e.concat([y._cache,e.allocUnsafe(16*P)]);for(var w=0;w{q.encrypt=function(m,t){return m._cipher.encryptBlock(t)},q.decrypt=function(m,t){return m._cipher.decryptBlock(t)}},9171:(We,q,m)=>{var t={ECB:m(1704),CBC:m(4903),CFB:m(9885),CFB8:m(1641),CFB1:m(6531),OFB:m(6816),CTR:m(1150),GCM:m(1150)},e=m(4946);for(var _ in e)e[_].module=t[e[_].mode];We.exports=e},6816:(We,q,m)=>{var t=m(8789);function e(_){return _._prev=_._cipher.encryptBlock(_._prev),_._prev}q.encrypt=function(_,T){for(;_._cache.length{var t=m(1899),e=m(3502).Buffer,_=m(1052);function s(y,h,P,d){_.call(this),this._cipher=new t.AES(h),this._prev=e.from(P),this._cache=e.allocUnsafe(0),this._secCache=e.allocUnsafe(0),this._decrypt=d,this._mode=y}m(3894)(s,_),s.prototype._update=function(y){return this._mode.encrypt(this,y,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},We.exports=s},5255:(We,q,m)=>{var t=m(9004),e=m(4330),_=m(9171),T=m(1115),s=m(347);function P(C,L,D){if(C=C.toLowerCase(),_[C])return e.createCipheriv(C,L,D);if(T[C])return new t({key:L,iv:D,mode:C});throw new TypeError("invalid suite type")}function d(C,L,D){if(C=C.toLowerCase(),_[C])return e.createDecipheriv(C,L,D);if(T[C])return new t({key:L,iv:D,mode:C,decrypt:!0});throw new TypeError("invalid suite type")}q.createCipher=q.Cipher=function y(C,L){var D,z;if(C=C.toLowerCase(),_[C])D=_[C].key,z=_[C].iv;else{if(!T[C])throw new TypeError("invalid suite type");D=8*T[C].key,z=T[C].iv}var V=s(L,!1,D,z);return P(C,V.key,V.iv)},q.createCipheriv=q.Cipheriv=P,q.createDecipher=q.Decipher=function h(C,L){var D,z;if(C=C.toLowerCase(),_[C])D=_[C].key,z=_[C].iv;else{if(!T[C])throw new TypeError("invalid suite type");D=8*T[C].key,z=T[C].iv}var V=s(L,!1,D,z);return d(C,V.key,V.iv)},q.createDecipheriv=q.Decipheriv=d,q.listCiphers=q.getCiphers=function w(){return Object.keys(T).concat(e.getCiphers())}},9004:(We,q,m)=>{var t=m(1052),e=m(3684),_=m(3894),T=m(3502).Buffer,s={"des-ede3-cbc":e.CBC.instantiate(e.EDE),"des-ede3":e.EDE,"des-ede-cbc":e.CBC.instantiate(e.EDE),"des-ede":e.EDE,"des-cbc":e.CBC.instantiate(e.DES),"des-ecb":e.DES};function y(h){t.call(this);var w,P=h.mode.toLowerCase(),d=s[P];w=h.decrypt?"decrypt":"encrypt";var C=h.key;T.isBuffer(C)||(C=T.from(C)),("des-ede"===P||"des-ede-cbc"===P)&&(C=T.concat([C,C.slice(0,8)]));var L=h.iv;T.isBuffer(L)||(L=T.from(L)),this._des=d.create({key:C,iv:L,type:w})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],We.exports=y,_(y,t),y.prototype._update=function(h){return T.from(this._des.update(h))},y.prototype._final=function(){return T.from(this._des.final())}},1115:(We,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:(We,q,m)=>{var t=m(8538),e=m(3753);function T(y){var P,h=y.modulus.byteLength();do{P=new t(e(h))}while(P.cmp(y.modulus)>=0||!P.umod(y.prime1)||!P.umod(y.prime2));return P}function s(y,h){var P=function _(y){var h=T(y);return{blinder:h.toRed(t.mont(y.modulus)).redPow(new t(y.publicExponent)).fromRed(),unblinder:h.invm(y.modulus)}}(h),d=h.modulus.byteLength(),w=new t(y).mul(P.blinder).umod(h.modulus),C=w.toRed(t.mont(h.prime1)),L=w.toRed(t.mont(h.prime2)),D=h.coefficient,z=h.prime1,V=h.prime2,Y=C.redPow(h.exponent1).fromRed(),j=L.redPow(h.exponent2).fromRed(),Q=Y.isub(j).imul(D).umod(z).imul(V);return j.iadd(Q).imul(P.unblinder).umod(h.modulus).toArrayLike(Buffer,"be",d)}s.getr=T,We.exports=s},7793:(We,q,m)=>{We.exports=m(5207)},3923:(We,q,m)=>{var t=m(3502).Buffer,e=m(6386),_=m(5685),T=m(3894),s=m(9947),y=m(3946),h=m(5207);function P(L){_.Writable.call(this);var D=h[L];if(!D)throw new Error("Unknown message digest");this._hashType=D.hash,this._hash=e(D.hash),this._tag=D.id,this._signType=D.sign}function d(L){_.Writable.call(this);var D=h[L];if(!D)throw new Error("Unknown message digest");this._hash=e(D.hash),this._tag=D.id,this._signType=D.sign}function w(L){return new P(L)}function C(L){return new d(L)}Object.keys(h).forEach(function(L){h[L].id=t.from(h[L].id,"hex"),h[L.toLowerCase()]=h[L]}),T(P,_.Writable),P.prototype._write=function(D,z,V){this._hash.update(D),V()},P.prototype.update=function(D,z){return"string"==typeof D&&(D=t.from(D,z)),this._hash.update(D),this},P.prototype.sign=function(D,z){this.end();var V=this._hash.digest(),Y=s(V,D,this._hashType,this._signType,this._tag);return z?Y.toString(z):Y},T(d,_.Writable),d.prototype._write=function(D,z,V){this._hash.update(D),V()},d.prototype.update=function(D,z){return"string"==typeof D&&(D=t.from(D,z)),this._hash.update(D),this},d.prototype.verify=function(D,z,V){"string"==typeof z&&(z=t.from(z,V)),this.end();var Y=this._hash.digest();return y(z,Y,D,this._signType,this._tag)},We.exports={Sign:w,Verify:C,createSign:w,createVerify:C}},9947:(We,q,m)=>{var t=m(3502).Buffer,e=m(4529),_=m(8466),T=m(7715).ec,s=m(8538),y=m(2772),h=m(1308);function L(j,Q,J,ee){if((j=t.from(j.toArray())).length0&&J.ishrn(ee),J}function V(j,Q,J){var ee,me;do{for(ee=t.alloc(0);8*ee.length{var t=m(3502).Buffer,e=m(8538),_=m(7715).ec,T=m(2772),s=m(1308);function d(w,C){if(w.cmpn(0)<=0)throw new Error("invalid sig");if(w.cmp(C)>=C)throw new Error("invalid sig")}We.exports=function y(w,C,L,D,z){var V=T(L);if("ec"===V.type){if("ecdsa"!==D&&"ecdsa/rsa"!==D)throw new Error("wrong public key type");return function h(w,C,L){var D=s[L.data.algorithm.curve.join(".")];if(!D)throw new Error("unknown curve "+L.data.algorithm.curve.join("."));return new _(D).verify(C,w,L.data.subjectPrivateKey.data)}(w,C,V)}if("dsa"===V.type){if("dsa"!==D)throw new Error("wrong public key type");return function P(w,C,L){var D=L.data.p,z=L.data.q,V=L.data.g,Y=L.data.pub_key,j=T.signature.decode(w,"der"),Q=j.s,J=j.r;d(Q,z),d(J,z);var ee=e.mont(D),me=Q.invm(z);return 0===V.toRed(ee).redPow(new e(C).mul(me).mod(z)).fromRed().mul(Y.toRed(ee).redPow(J.mul(me).mod(z)).fromRed()).mod(D).mod(z).cmp(J)}(w,C,V)}if("rsa"!==D&&"ecdsa/rsa"!==D)throw new Error("wrong public key type");C=t.concat([z,C]);for(var Y=V.modulus.byteLength(),j=[1],Q=0;C.length+j.length+2{We.exports=function(m,t){for(var e=Math.min(m.length,t.length),_=new Buffer(e),T=0;T{"use strict";var t=m(5343),e=m(8461),_="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;q.Buffer=h,q.SlowBuffer=function Q(he){return+he!=he&&(he=0),h.alloc(+he)},q.INSPECT_MAX_BYTES=50;var T=2147483647;function y(he){if(he>T)throw new RangeError('The value "'+he+'" is invalid for option "size"');var Me=new Uint8Array(he);return Object.setPrototypeOf(Me,h.prototype),Me}function h(he,Me,pe){if("number"==typeof he){if("string"==typeof Me)throw new TypeError('The "string" argument must be of type string. Received type number');return C(he)}return P(he,Me,pe)}function P(he,Me,pe){if("string"==typeof he)return function L(he,Me){if(("string"!=typeof Me||""===Me)&&(Me="utf8"),!h.isEncoding(Me))throw new TypeError("Unknown encoding: "+Me);var pe=0|J(he,Me),Ve=y(pe),Qe=Ve.write(he,Me);return Qe!==pe&&(Ve=Ve.slice(0,Qe)),Ve}(he,Me);if(ArrayBuffer.isView(he))return function z(he){if(oe(he,Uint8Array)){var Me=new Uint8Array(he);return V(Me.buffer,Me.byteOffset,Me.byteLength)}return D(he)}(he);if(null==he)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof he);if(oe(he,ArrayBuffer)||he&&oe(he.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(oe(he,SharedArrayBuffer)||he&&oe(he.buffer,SharedArrayBuffer)))return V(he,Me,pe);if("number"==typeof he)throw new TypeError('The "value" argument must not be of type number. Received type number');var Ve=he.valueOf&&he.valueOf();if(null!=Ve&&Ve!==he)return h.from(Ve,Me,pe);var Qe=function Y(he){if(h.isBuffer(he)){var Me=0|j(he.length),pe=y(Me);return 0===pe.length||he.copy(pe,0,0,Me),pe}return void 0!==he.length?"number"!=typeof he.length||Fe(he.length)?y(0):D(he):"Buffer"===he.type&&Array.isArray(he.data)?D(he.data):void 0}(he);if(Qe)return Qe;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof he[Symbol.toPrimitive])return h.from(he[Symbol.toPrimitive]("string"),Me,pe);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof he)}function d(he){if("number"!=typeof he)throw new TypeError('"size" argument must be of type number');if(he<0)throw new RangeError('The value "'+he+'" is invalid for option "size"')}function C(he){return d(he),y(he<0?0:0|j(he))}function D(he){for(var Me=he.length<0?0:0|j(he.length),pe=y(Me),Ve=0;Ve=T)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+T.toString(16)+" bytes");return 0|he}function J(he,Me){if(h.isBuffer(he))return he.length;if(ArrayBuffer.isView(he)||oe(he,ArrayBuffer))return he.byteLength;if("string"!=typeof he)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof he);var pe=he.length,Ve=arguments.length>2&&!0===arguments[2];if(!Ve&&0===pe)return 0;for(var Qe=!1;;)switch(Me){case"ascii":case"latin1":case"binary":return pe;case"utf8":case"utf-8":return at(he).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*pe;case"hex":return pe>>>1;case"base64":return fe(he).length;default:if(Qe)return Ve?-1:at(he).length;Me=(""+Me).toLowerCase(),Qe=!0}}function ee(he,Me,pe){var Ve=!1;if((void 0===Me||Me<0)&&(Me=0),Me>this.length||((void 0===pe||pe>this.length)&&(pe=this.length),pe<=0)||(pe>>>=0)<=(Me>>>=0))return"";for(he||(he="utf8");;)switch(he){case"hex":return x(this,Me,pe);case"utf8":case"utf-8":return f(this,Me,pe);case"ascii":return I(this,Me,pe);case"latin1":case"binary":return k(this,Me,pe);case"base64":return a(this,Me,pe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n(this,Me,pe);default:if(Ve)throw new TypeError("Unknown encoding: "+he);he=(he+"").toLowerCase(),Ve=!0}}function me(he,Me,pe){var Ve=he[Me];he[Me]=he[pe],he[pe]=Ve}function re(he,Me,pe,Ve,Qe){if(0===he.length)return-1;if("string"==typeof pe?(Ve=pe,pe=0):pe>2147483647?pe=2147483647:pe<-2147483648&&(pe=-2147483648),Fe(pe=+pe)&&(pe=Qe?0:he.length-1),pe<0&&(pe=he.length+pe),pe>=he.length){if(Qe)return-1;pe=he.length-1}else if(pe<0){if(!Qe)return-1;pe=0}if("string"==typeof Me&&(Me=h.from(Me,Ve)),h.isBuffer(Me))return 0===Me.length?-1:ie(he,Me,pe,Ve,Qe);if("number"==typeof Me)return Me&=255,"function"==typeof Uint8Array.prototype.indexOf?Qe?Uint8Array.prototype.indexOf.call(he,Me,pe):Uint8Array.prototype.lastIndexOf.call(he,Me,pe):ie(he,[Me],pe,Ve,Qe);throw new TypeError("val must be string, number or Buffer")}function ie(he,Me,pe,Ve,Qe){var lt,Pe=1,de=he.length,rt=Me.length;if(void 0!==Ve&&("ucs2"===(Ve=String(Ve).toLowerCase())||"ucs-2"===Ve||"utf16le"===Ve||"utf-16le"===Ve)){if(he.length<2||Me.length<2)return-1;Pe=2,de/=2,rt/=2,pe/=2}function Ke(yt,be){return 1===Pe?yt[be]:yt.readUInt16BE(be*Pe)}if(Qe){var Ut=-1;for(lt=pe;ltde&&(pe=de-rt),lt=pe;lt>=0;lt--){for(var ht=!0,Ge=0;GeQe&&(Ve=Qe):Ve=Qe;var Pe=Me.length;Ve>Pe/2&&(Ve=Pe/2);for(var de=0;de>8,Pe.push(pe%256),Pe.push(Ve);return Pe}(Me,he.length-pe),he,pe,Ve)}function a(he,Me,pe){return t.fromByteArray(0===Me&&pe===he.length?he:he.slice(Me,pe))}function f(he,Me,pe){pe=Math.min(he.length,pe);for(var Ve=[],Qe=Me;Qe239?4:Pe>223?3:Pe>191?2:1;if(Qe+rt<=pe)switch(rt){case 1:Pe<128&&(de=Pe);break;case 2:128==(192&(Ke=he[Qe+1]))&&(ht=(31&Pe)<<6|63&Ke)>127&&(de=ht);break;case 3:lt=he[Qe+2],128==(192&(Ke=he[Qe+1]))&&128==(192<)&&(ht=(15&Pe)<<12|(63&Ke)<<6|63<)>2047&&(ht<55296||ht>57343)&&(de=ht);break;case 4:lt=he[Qe+2],Ut=he[Qe+3],128==(192&(Ke=he[Qe+1]))&&128==(192<)&&128==(192&Ut)&&(ht=(15&Pe)<<18|(63&Ke)<<12|(63<)<<6|63&Ut)>65535&&ht<1114112&&(de=ht)}null===de?(de=65533,rt=1):de>65535&&(Ve.push((de-=65536)>>>10&1023|55296),de=56320|1023&de),Ve.push(de),Qe+=rt}return function v(he){var Me=he.length;if(Me<=l)return String.fromCharCode.apply(String,he);for(var pe="",Ve=0;VeQe.length?h.from(de).copy(Qe,Pe):Uint8Array.prototype.set.call(Qe,de,Pe);else{if(!h.isBuffer(de))throw new TypeError('"list" argument must be an Array of Buffers');de.copy(Qe,Pe)}Pe+=de.length}return Qe},h.byteLength=J,h.prototype._isBuffer=!0,h.prototype.swap16=function(){var Me=this.length;if(Me%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var pe=0;pepe&&(Me+=" ... "),""},_&&(h.prototype[_]=h.prototype.inspect),h.prototype.compare=function(Me,pe,Ve,Qe,Pe){if(oe(Me,Uint8Array)&&(Me=h.from(Me,Me.offset,Me.byteLength)),!h.isBuffer(Me))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Me);if(void 0===pe&&(pe=0),void 0===Ve&&(Ve=Me?Me.length:0),void 0===Qe&&(Qe=0),void 0===Pe&&(Pe=this.length),pe<0||Ve>Me.length||Qe<0||Pe>this.length)throw new RangeError("out of range index");if(Qe>=Pe&&pe>=Ve)return 0;if(Qe>=Pe)return-1;if(pe>=Ve)return 1;if(this===Me)return 0;for(var de=(Pe>>>=0)-(Qe>>>=0),rt=(Ve>>>=0)-(pe>>>=0),Ke=Math.min(de,rt),lt=this.slice(Qe,Pe),Ut=Me.slice(pe,Ve),ht=0;ht>>=0,isFinite(Ve)?(Ve>>>=0,void 0===Qe&&(Qe="utf8")):(Qe=Ve,Ve=void 0)}var Pe=this.length-pe;if((void 0===Ve||Ve>Pe)&&(Ve=Pe),Me.length>0&&(Ve<0||pe<0)||pe>this.length)throw new RangeError("Attempt to write outside buffer bounds");Qe||(Qe="utf8");for(var de=!1;;)switch(Qe){case"hex":return se(this,Me,pe,Ve);case"utf8":case"utf-8":return ce(this,Me,pe,Ve);case"ascii":case"latin1":case"binary":return Ce(this,Me,pe,Ve);case"base64":return M(this,Me,pe,Ve);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i(this,Me,pe,Ve);default:if(de)throw new TypeError("Unknown encoding: "+Qe);Qe=(""+Qe).toLowerCase(),de=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var l=4096;function I(he,Me,pe){var Ve="";pe=Math.min(he.length,pe);for(var Qe=Me;QeVe)&&(pe=Ve);for(var Qe="",Pe=Me;Pepe)throw new RangeError("Trying to access beyond buffer length")}function W(he,Me,pe,Ve,Qe,Pe){if(!h.isBuffer(he))throw new TypeError('"buffer" argument must be a Buffer instance');if(Me>Qe||Mehe.length)throw new RangeError("Index out of range")}function O(he,Me,pe,Ve,Qe,Pe){if(pe+Ve>he.length)throw new RangeError("Index out of range");if(pe<0)throw new RangeError("Index out of range")}function U(he,Me,pe,Ve,Qe){return Me=+Me,pe>>>=0,Qe||O(he,0,pe,4),e.write(he,Me,pe,Ve,23,4),pe+4}function ge(he,Me,pe,Ve,Qe){return Me=+Me,pe>>>=0,Qe||O(he,0,pe,8),e.write(he,Me,pe,Ve,52,8),pe+8}h.prototype.slice=function(Me,pe){var Ve=this.length;(Me=~~Me)<0?(Me+=Ve)<0&&(Me=0):Me>Ve&&(Me=Ve),(pe=void 0===pe?Ve:~~pe)<0?(pe+=Ve)<0&&(pe=0):pe>Ve&&(pe=Ve),pe>>=0,pe>>>=0,Ve||g(Me,pe,this.length);for(var Qe=this[Me],Pe=1,de=0;++de>>=0,pe>>>=0,Ve||g(Me,pe,this.length);for(var Qe=this[Me+--pe],Pe=1;pe>0&&(Pe*=256);)Qe+=this[Me+--pe]*Pe;return Qe},h.prototype.readUint8=h.prototype.readUInt8=function(Me,pe){return Me>>>=0,pe||g(Me,1,this.length),this[Me]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(Me,pe){return Me>>>=0,pe||g(Me,2,this.length),this[Me]|this[Me+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(Me,pe){return Me>>>=0,pe||g(Me,2,this.length),this[Me]<<8|this[Me+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(Me,pe){return Me>>>=0,pe||g(Me,4,this.length),(this[Me]|this[Me+1]<<8|this[Me+2]<<16)+16777216*this[Me+3]},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(Me,pe){return Me>>>=0,pe||g(Me,4,this.length),16777216*this[Me]+(this[Me+1]<<16|this[Me+2]<<8|this[Me+3])},h.prototype.readIntLE=function(Me,pe,Ve){Me>>>=0,pe>>>=0,Ve||g(Me,pe,this.length);for(var Qe=this[Me],Pe=1,de=0;++de=(Pe*=128)&&(Qe-=Math.pow(2,8*pe)),Qe},h.prototype.readIntBE=function(Me,pe,Ve){Me>>>=0,pe>>>=0,Ve||g(Me,pe,this.length);for(var Qe=pe,Pe=1,de=this[Me+--Qe];Qe>0&&(Pe*=256);)de+=this[Me+--Qe]*Pe;return de>=(Pe*=128)&&(de-=Math.pow(2,8*pe)),de},h.prototype.readInt8=function(Me,pe){return Me>>>=0,pe||g(Me,1,this.length),128&this[Me]?-1*(255-this[Me]+1):this[Me]},h.prototype.readInt16LE=function(Me,pe){Me>>>=0,pe||g(Me,2,this.length);var Ve=this[Me]|this[Me+1]<<8;return 32768&Ve?4294901760|Ve:Ve},h.prototype.readInt16BE=function(Me,pe){Me>>>=0,pe||g(Me,2,this.length);var Ve=this[Me+1]|this[Me]<<8;return 32768&Ve?4294901760|Ve:Ve},h.prototype.readInt32LE=function(Me,pe){return Me>>>=0,pe||g(Me,4,this.length),this[Me]|this[Me+1]<<8|this[Me+2]<<16|this[Me+3]<<24},h.prototype.readInt32BE=function(Me,pe){return Me>>>=0,pe||g(Me,4,this.length),this[Me]<<24|this[Me+1]<<16|this[Me+2]<<8|this[Me+3]},h.prototype.readFloatLE=function(Me,pe){return Me>>>=0,pe||g(Me,4,this.length),e.read(this,Me,!0,23,4)},h.prototype.readFloatBE=function(Me,pe){return Me>>>=0,pe||g(Me,4,this.length),e.read(this,Me,!1,23,4)},h.prototype.readDoubleLE=function(Me,pe){return Me>>>=0,pe||g(Me,8,this.length),e.read(this,Me,!0,52,8)},h.prototype.readDoubleBE=function(Me,pe){return Me>>>=0,pe||g(Me,8,this.length),e.read(this,Me,!1,52,8)},h.prototype.writeUintLE=h.prototype.writeUIntLE=function(Me,pe,Ve,Qe){Me=+Me,pe>>>=0,Ve>>>=0,Qe||W(this,Me,pe,Ve,Math.pow(2,8*Ve)-1,0);var de=1,rt=0;for(this[pe]=255&Me;++rt>>=0,Ve>>>=0,Qe||W(this,Me,pe,Ve,Math.pow(2,8*Ve)-1,0);var de=Ve-1,rt=1;for(this[pe+de]=255&Me;--de>=0&&(rt*=256);)this[pe+de]=Me/rt&255;return pe+Ve},h.prototype.writeUint8=h.prototype.writeUInt8=function(Me,pe,Ve){return Me=+Me,pe>>>=0,Ve||W(this,Me,pe,1,255,0),this[pe]=255&Me,pe+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(Me,pe,Ve){return Me=+Me,pe>>>=0,Ve||W(this,Me,pe,2,65535,0),this[pe]=255&Me,this[pe+1]=Me>>>8,pe+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(Me,pe,Ve){return Me=+Me,pe>>>=0,Ve||W(this,Me,pe,2,65535,0),this[pe]=Me>>>8,this[pe+1]=255&Me,pe+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(Me,pe,Ve){return Me=+Me,pe>>>=0,Ve||W(this,Me,pe,4,4294967295,0),this[pe+3]=Me>>>24,this[pe+2]=Me>>>16,this[pe+1]=Me>>>8,this[pe]=255&Me,pe+4},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(Me,pe,Ve){return Me=+Me,pe>>>=0,Ve||W(this,Me,pe,4,4294967295,0),this[pe]=Me>>>24,this[pe+1]=Me>>>16,this[pe+2]=Me>>>8,this[pe+3]=255&Me,pe+4},h.prototype.writeIntLE=function(Me,pe,Ve,Qe){if(Me=+Me,pe>>>=0,!Qe){var Pe=Math.pow(2,8*Ve-1);W(this,Me,pe,Ve,Pe-1,-Pe)}var de=0,rt=1,Ke=0;for(this[pe]=255&Me;++de>0)-Ke&255;return pe+Ve},h.prototype.writeIntBE=function(Me,pe,Ve,Qe){if(Me=+Me,pe>>>=0,!Qe){var Pe=Math.pow(2,8*Ve-1);W(this,Me,pe,Ve,Pe-1,-Pe)}var de=Ve-1,rt=1,Ke=0;for(this[pe+de]=255&Me;--de>=0&&(rt*=256);)Me<0&&0===Ke&&0!==this[pe+de+1]&&(Ke=1),this[pe+de]=(Me/rt>>0)-Ke&255;return pe+Ve},h.prototype.writeInt8=function(Me,pe,Ve){return Me=+Me,pe>>>=0,Ve||W(this,Me,pe,1,127,-128),Me<0&&(Me=255+Me+1),this[pe]=255&Me,pe+1},h.prototype.writeInt16LE=function(Me,pe,Ve){return Me=+Me,pe>>>=0,Ve||W(this,Me,pe,2,32767,-32768),this[pe]=255&Me,this[pe+1]=Me>>>8,pe+2},h.prototype.writeInt16BE=function(Me,pe,Ve){return Me=+Me,pe>>>=0,Ve||W(this,Me,pe,2,32767,-32768),this[pe]=Me>>>8,this[pe+1]=255&Me,pe+2},h.prototype.writeInt32LE=function(Me,pe,Ve){return Me=+Me,pe>>>=0,Ve||W(this,Me,pe,4,2147483647,-2147483648),this[pe]=255&Me,this[pe+1]=Me>>>8,this[pe+2]=Me>>>16,this[pe+3]=Me>>>24,pe+4},h.prototype.writeInt32BE=function(Me,pe,Ve){return Me=+Me,pe>>>=0,Ve||W(this,Me,pe,4,2147483647,-2147483648),Me<0&&(Me=4294967295+Me+1),this[pe]=Me>>>24,this[pe+1]=Me>>>16,this[pe+2]=Me>>>8,this[pe+3]=255&Me,pe+4},h.prototype.writeFloatLE=function(Me,pe,Ve){return U(this,Me,pe,!0,Ve)},h.prototype.writeFloatBE=function(Me,pe,Ve){return U(this,Me,pe,!1,Ve)},h.prototype.writeDoubleLE=function(Me,pe,Ve){return ge(this,Me,pe,!0,Ve)},h.prototype.writeDoubleBE=function(Me,pe,Ve){return ge(this,Me,pe,!1,Ve)},h.prototype.copy=function(Me,pe,Ve,Qe){if(!h.isBuffer(Me))throw new TypeError("argument should be a Buffer");if(Ve||(Ve=0),!Qe&&0!==Qe&&(Qe=this.length),pe>=Me.length&&(pe=Me.length),pe||(pe=0),Qe>0&&Qe=this.length)throw new RangeError("Index out of range");if(Qe<0)throw new RangeError("sourceEnd out of bounds");Qe>this.length&&(Qe=this.length),Me.length-pe>>=0,Ve=void 0===Ve?this.length:Ve>>>0,Me||(Me=0),"number"==typeof Me)for(de=pe;de55295&&pe<57344){if(!Qe){if(pe>56319){(Me-=3)>-1&&Pe.push(239,191,189);continue}if(de+1===Ve){(Me-=3)>-1&&Pe.push(239,191,189);continue}Qe=pe;continue}if(pe<56320){(Me-=3)>-1&&Pe.push(239,191,189),Qe=pe;continue}pe=65536+(Qe-55296<<10|pe-56320)}else Qe&&(Me-=3)>-1&&Pe.push(239,191,189);if(Qe=null,pe<128){if((Me-=1)<0)break;Pe.push(pe)}else if(pe<2048){if((Me-=2)<0)break;Pe.push(pe>>6|192,63&pe|128)}else if(pe<65536){if((Me-=3)<0)break;Pe.push(pe>>12|224,pe>>6&63|128,63&pe|128)}else{if(!(pe<1114112))throw new Error("Invalid code point");if((Me-=4)<0)break;Pe.push(pe>>18|240,pe>>12&63|128,pe>>6&63|128,63&pe|128)}}return Pe}function fe(he){return t.toByteArray(function Ue(he){if((he=(he=he.split("=")[0]).trim().replace(nt,"")).length<2)return"";for(;he.length%4!=0;)he+="=";return he}(he))}function Oe(he,Me,pe,Ve){for(var Qe=0;Qe=Me.length||Qe>=he.length);++Qe)Me[Qe+pe]=he[Qe];return Qe}function oe(he,Me){return he instanceof Me||null!=he&&null!=he.constructor&&null!=he.constructor.name&&he.constructor.name===Me.name}function Fe(he){return he!=he}var De=function(){for(var he="0123456789abcdef",Me=new Array(256),pe=0;pe<16;++pe)for(var Ve=16*pe,Qe=0;Qe<16;++Qe)Me[Ve+Qe]=he[pe]+he[Qe];return Me}()},1052:(We,q,m)=>{var t=m(3502).Buffer,e=m(295).Transform,_=m(3054).s;function s(y){e.call(this),this.hashMode="string"==typeof y,this.hashMode?this[y]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}m(3894)(s,e),s.prototype.update=function(y,h,P){"string"==typeof y&&(y=t.from(y,h));var d=this._update(y);return this.hashMode?this:(P&&(d=this._toString(d,P)),d)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(y,h,P){var d;try{this.hashMode?this._update(y):this.push(this._update(y))}catch(w){d=w}finally{P(d)}},s.prototype._flush=function(y){var h;try{this.push(this.__final())}catch(P){h=P}y(h)},s.prototype._finalOrDigest=function(y){var h=this.__final()||t.alloc(0);return y&&(h=this._toString(h,y,!0)),h},s.prototype._toString=function(y,h,P){if(this._decoder||(this._decoder=new _(h),this._encoding=h),this._encoding!==h)throw new Error("can't switch encodings");var d=this._decoder.write(y);return P&&(d+=this._decoder.end()),d},We.exports=s},6128:function(We){!function(q){"use strict";var m={bytesToHex:function(_){return function t(_){return _.map(function(T){return function e(_,T){return _.length>T?_:Array(T-_.length+1).join("0")+_}(T.toString(16),2)}).join("")}(_)},hexToBytes:function(_){if(_.length%2==1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return 0===_.indexOf("0x")&&(_=_.slice(2)),_.match(/../g).map(function(T){return parseInt(T,16)})}};We.exports?We.exports=m:q.convertHex=m}(this)},5612:function(We){!function(q){"use strict";var m={bytesToString:function(t){return t.map(function(e){return String.fromCharCode(e)}).join("")},stringToBytes:function(t){return t.split("").map(function(e){return e.charCodeAt(0)})}};m.UTF8={bytesToString:function(t){return decodeURIComponent(escape(m.bytesToString(t)))},stringToBytes:function(t){return m.stringToBytes(unescape(encodeURIComponent(t)))}},We.exports?We.exports=m:q.convertString=m}(this)},4746:(We,q,m)=>{var t=m(7715),e=m(6422);We.exports=function(h){return new T(h)};var _={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 T(y){this.curveType=_[y],this.curveType||(this.curveType={name:y}),this.curve=new t.ec(this.curveType.name),this.keys=void 0}function s(y,h,P){Array.isArray(y)||(y=y.toArray());var d=new Buffer(y);if(P&&d.length=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function P(M,i,a){var f=h(M,a);return a-1>=i&&(f|=h(M,a-1)<<4),f}function d(M,i,a,f){for(var l=0,v=Math.min(M.length,a),I=i;I=49?k-49+10:k>=17?k-17+10:k}return l}s.isBN=function(i){return i instanceof s||null!==i&&"object"==typeof i&&i.constructor.wordSize===s.wordSize&&Array.isArray(i.words)},s.max=function(i,a){return i.cmp(a)>0?i:a},s.min=function(i,a){return i.cmp(a)<0?i:a},s.prototype._init=function(i,a,f){if("number"==typeof i)return this._initNumber(i,a,f);if("object"==typeof i)return this._initArray(i,a,f);"hex"===a&&(a=16),_(a===(0|a)&&a>=2&&a<=36);var l=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(l++,this.negative=1),l=0;l-=3)this.words[v]|=(I=i[l]|i[l-1]<<8|i[l-2]<<16)<>>26-k&67108863,(k+=24)>=26&&(k-=26,v++);else if("le"===f)for(l=0,v=0;l>>26-k&67108863,(k+=24)>=26&&(k-=26,v++);return this.strip()},s.prototype._parseHex=function(i,a,f){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var l=0;l=a;l-=2)k=P(i,a,l)<=18?(v-=18,this.words[I+=1]|=k>>>26):v+=8;else for(l=(i.length-a)%2==0?a+1:a;l=18?(v-=18,this.words[I+=1]|=k>>>26):v+=8;this.strip()},s.prototype._parseBase=function(i,a,f){this.words=[0],this.length=1;for(var l=0,v=1;v<=67108863;v*=a)l++;l--,v=v/a|0;for(var I=i.length-f,k=I%l,x=Math.min(I,I-k)+f,n=0,g=f;g1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var w=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[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],L=[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 z(M,i,a){a.negative=i.negative^M.negative;var f=M.length+i.length|0;a.length=f,f=f-1|0;var l=0|M.words[0],v=0|i.words[0],I=l*v,x=I/67108864|0;a.words[0]=67108863&I;for(var n=1;n>>26,W=67108863&x,O=Math.min(n,i.length-1),U=Math.max(0,n-M.length+1);U<=O;U++)g+=(I=(l=0|M.words[n-U|0])*(v=0|i.words[U])+W)/67108864|0,W=67108863&I;a.words[n]=0|W,x=0|g}return 0!==x?a.words[n]=0|x:a.length--,a.strip()}s.prototype.toString=function(i,a){var f;if(a=0|a||1,16===(i=i||10)||"hex"===i){f="";for(var l=0,v=0,I=0;I>>24-l&16777215)||I!==this.length-1?w[6-x.length]+x+f:x+f,(l+=2)>=26&&(l-=26,I--)}for(0!==v&&(f=v.toString(16)+f);f.length%a!=0;)f="0"+f;return 0!==this.negative&&(f="-"+f),f}if(i===(0|i)&&i>=2&&i<=36){var n=C[i],g=L[i];f="";var W=this.clone();for(W.negative=0;!W.isZero();){var O=W.modn(g).toString(i);f=(W=W.idivn(g)).isZero()?O+f:w[n-O.length]+O+f}for(this.isZero()&&(f="0"+f);f.length%a!=0;)f="0"+f;return 0!==this.negative&&(f="-"+f),f}_(!1,"Base should be between 2 and 36")},s.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&&_(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(i,a){return _(typeof y<"u"),this.toArrayLike(y,i,a)},s.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},s.prototype.toArrayLike=function(i,a,f){var l=this.byteLength(),v=f||Math.max(1,l);_(l<=v,"byte array longer than desired length"),_(v>0,"Requested array length <= 0"),this.strip();var x,n,I="le"===a,k=new i(v),g=this.clone();if(I){for(n=0;!g.isZero();n++)x=g.andln(255),g.iushrn(8),k[n]=x;for(;n=4096&&(f+=13,a>>>=13),a>=64&&(f+=7,a>>>=7),a>=8&&(f+=4,a>>>=4),a>=2&&(f+=2,a>>>=2),f+a},s.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,f=0;return 8191&a||(f+=13,a>>>=13),127&a||(f+=7,a>>>=7),15&a||(f+=4,a>>>=4),3&a||(f+=2,a>>>=2),1&a||f++,f},s.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},s.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},s.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var f=0;fi.length?this.clone().iand(i):i.clone().iand(this)},s.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},s.prototype.iuxor=function(i){var a,f;this.length>i.length?(a=this,f=i):(a=i,f=this);for(var l=0;li.length?this.clone().ixor(i):i.clone().ixor(this)},s.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},s.prototype.inotn=function(i){_("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),f=i%26;this._expand(a),f>0&&a--;for(var l=0;l0&&(this.words[l]=~this.words[l]&67108863>>26-f),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,a){_("number"==typeof i&&i>=0);var f=i/26|0,l=i%26;return this._expand(f+1),this.words[f]=a?this.words[f]|1<i.length?(f=this,l=i):(f=i,l=this);for(var v=0,I=0;I>>26;for(;0!==v&&I>>26;if(this.length=f.length,0!==v)this.words[this.length]=v,this.length++;else if(f!==this)for(;Ii.length?this.clone().iadd(i):i.clone().iadd(this)},s.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 l,v,f=this.cmp(i);if(0===f)return this.negative=0,this.length=1,this.words[0]=0,this;f>0?(l=this,v=i):(l=i,v=this);for(var I=0,k=0;k>26,this.words[k]=67108863&a;for(;0!==I&&k>26,this.words[k]=67108863&a;if(0===I&&k>>13,ge=0|l[1],nt=8191&ge,Ue=ge>>>13,at=0|l[2],ye=8191&at,xe=at>>>13,fe=0|l[3],Oe=8191&fe,oe=fe>>>13,Fe=0|l[4],De=8191&Fe,he=Fe>>>13,Me=0|l[5],pe=8191&Me,Ve=Me>>>13,Qe=0|l[6],Pe=8191&Qe,de=Qe>>>13,rt=0|l[7],Ke=8191&rt,lt=rt>>>13,Ut=0|l[8],ht=8191&Ut,Ge=Ut>>>13,yt=0|l[9],be=8191&yt,qe=yt>>>13,Ie=0|v[0],X=8191&Ie,mt=Ie>>>13,Tt=0|v[1],it=8191&Tt,je=Tt>>>13,zt=0|v[2],xt=8191&zt,Nt=zt>>>13,Gt=0|v[3],ke=8191&Gt,$=Gt>>>13,ue=0|v[4],Ae=8191&ue,Je=ue>>>13,$t=0|v[5],Vt=8191&$t,ii=$t>>>13,pt=0|v[6],ot=8191&pt,ft=pt>>>13,St=0|v[7],gt=8191&St,$e=St>>>13,_t=0|v[8],vt=8191&_t,He=_t>>>13,Et=0|v[9],At=8191&Et,Qt=Et>>>13;f.negative=i.negative^a.negative,f.length=19;var zi=(k+(x=Math.imul(O,X))|0)+((8191&(n=(n=Math.imul(O,mt))+Math.imul(U,X)|0))<<13)|0;k=((g=Math.imul(U,mt))+(n>>>13)|0)+(zi>>>26)|0,zi&=67108863,x=Math.imul(nt,X),n=(n=Math.imul(nt,mt))+Math.imul(Ue,X)|0,g=Math.imul(Ue,mt);var Ni=(k+(x=x+Math.imul(O,it)|0)|0)+((8191&(n=(n=n+Math.imul(O,je)|0)+Math.imul(U,it)|0))<<13)|0;k=((g=g+Math.imul(U,je)|0)+(n>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(ye,X),n=(n=Math.imul(ye,mt))+Math.imul(xe,X)|0,g=Math.imul(xe,mt),x=x+Math.imul(nt,it)|0,n=(n=n+Math.imul(nt,je)|0)+Math.imul(Ue,it)|0,g=g+Math.imul(Ue,je)|0;var Mi=(k+(x=x+Math.imul(O,xt)|0)|0)+((8191&(n=(n=n+Math.imul(O,Nt)|0)+Math.imul(U,xt)|0))<<13)|0;k=((g=g+Math.imul(U,Nt)|0)+(n>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,x=Math.imul(Oe,X),n=(n=Math.imul(Oe,mt))+Math.imul(oe,X)|0,g=Math.imul(oe,mt),x=x+Math.imul(ye,it)|0,n=(n=n+Math.imul(ye,je)|0)+Math.imul(xe,it)|0,g=g+Math.imul(xe,je)|0,x=x+Math.imul(nt,xt)|0,n=(n=n+Math.imul(nt,Nt)|0)+Math.imul(Ue,xt)|0,g=g+Math.imul(Ue,Nt)|0;var Gi=(k+(x=x+Math.imul(O,ke)|0)|0)+((8191&(n=(n=n+Math.imul(O,$)|0)+Math.imul(U,ke)|0))<<13)|0;k=((g=g+Math.imul(U,$)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,x=Math.imul(De,X),n=(n=Math.imul(De,mt))+Math.imul(he,X)|0,g=Math.imul(he,mt),x=x+Math.imul(Oe,it)|0,n=(n=n+Math.imul(Oe,je)|0)+Math.imul(oe,it)|0,g=g+Math.imul(oe,je)|0,x=x+Math.imul(ye,xt)|0,n=(n=n+Math.imul(ye,Nt)|0)+Math.imul(xe,xt)|0,g=g+Math.imul(xe,Nt)|0,x=x+Math.imul(nt,ke)|0,n=(n=n+Math.imul(nt,$)|0)+Math.imul(Ue,ke)|0,g=g+Math.imul(Ue,$)|0;var Xe=(k+(x=x+Math.imul(O,Ae)|0)|0)+((8191&(n=(n=n+Math.imul(O,Je)|0)+Math.imul(U,Ae)|0))<<13)|0;k=((g=g+Math.imul(U,Je)|0)+(n>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,x=Math.imul(pe,X),n=(n=Math.imul(pe,mt))+Math.imul(Ve,X)|0,g=Math.imul(Ve,mt),x=x+Math.imul(De,it)|0,n=(n=n+Math.imul(De,je)|0)+Math.imul(he,it)|0,g=g+Math.imul(he,je)|0,x=x+Math.imul(Oe,xt)|0,n=(n=n+Math.imul(Oe,Nt)|0)+Math.imul(oe,xt)|0,g=g+Math.imul(oe,Nt)|0,x=x+Math.imul(ye,ke)|0,n=(n=n+Math.imul(ye,$)|0)+Math.imul(xe,ke)|0,g=g+Math.imul(xe,$)|0,x=x+Math.imul(nt,Ae)|0,n=(n=n+Math.imul(nt,Je)|0)+Math.imul(Ue,Ae)|0,g=g+Math.imul(Ue,Je)|0;var It=(k+(x=x+Math.imul(O,Vt)|0)|0)+((8191&(n=(n=n+Math.imul(O,ii)|0)+Math.imul(U,Vt)|0))<<13)|0;k=((g=g+Math.imul(U,ii)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,x=Math.imul(Pe,X),n=(n=Math.imul(Pe,mt))+Math.imul(de,X)|0,g=Math.imul(de,mt),x=x+Math.imul(pe,it)|0,n=(n=n+Math.imul(pe,je)|0)+Math.imul(Ve,it)|0,g=g+Math.imul(Ve,je)|0,x=x+Math.imul(De,xt)|0,n=(n=n+Math.imul(De,Nt)|0)+Math.imul(he,xt)|0,g=g+Math.imul(he,Nt)|0,x=x+Math.imul(Oe,ke)|0,n=(n=n+Math.imul(Oe,$)|0)+Math.imul(oe,ke)|0,g=g+Math.imul(oe,$)|0,x=x+Math.imul(ye,Ae)|0,n=(n=n+Math.imul(ye,Je)|0)+Math.imul(xe,Ae)|0,g=g+Math.imul(xe,Je)|0,x=x+Math.imul(nt,Vt)|0,n=(n=n+Math.imul(nt,ii)|0)+Math.imul(Ue,Vt)|0,g=g+Math.imul(Ue,ii)|0;var Se=(k+(x=x+Math.imul(O,ot)|0)|0)+((8191&(n=(n=n+Math.imul(O,ft)|0)+Math.imul(U,ot)|0))<<13)|0;k=((g=g+Math.imul(U,ft)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,x=Math.imul(Ke,X),n=(n=Math.imul(Ke,mt))+Math.imul(lt,X)|0,g=Math.imul(lt,mt),x=x+Math.imul(Pe,it)|0,n=(n=n+Math.imul(Pe,je)|0)+Math.imul(de,it)|0,g=g+Math.imul(de,je)|0,x=x+Math.imul(pe,xt)|0,n=(n=n+Math.imul(pe,Nt)|0)+Math.imul(Ve,xt)|0,g=g+Math.imul(Ve,Nt)|0,x=x+Math.imul(De,ke)|0,n=(n=n+Math.imul(De,$)|0)+Math.imul(he,ke)|0,g=g+Math.imul(he,$)|0,x=x+Math.imul(Oe,Ae)|0,n=(n=n+Math.imul(Oe,Je)|0)+Math.imul(oe,Ae)|0,g=g+Math.imul(oe,Je)|0,x=x+Math.imul(ye,Vt)|0,n=(n=n+Math.imul(ye,ii)|0)+Math.imul(xe,Vt)|0,g=g+Math.imul(xe,ii)|0,x=x+Math.imul(nt,ot)|0,n=(n=n+Math.imul(nt,ft)|0)+Math.imul(Ue,ot)|0,g=g+Math.imul(Ue,ft)|0;var wt=(k+(x=x+Math.imul(O,gt)|0)|0)+((8191&(n=(n=n+Math.imul(O,$e)|0)+Math.imul(U,gt)|0))<<13)|0;k=((g=g+Math.imul(U,$e)|0)+(n>>>13)|0)+(wt>>>26)|0,wt&=67108863,x=Math.imul(ht,X),n=(n=Math.imul(ht,mt))+Math.imul(Ge,X)|0,g=Math.imul(Ge,mt),x=x+Math.imul(Ke,it)|0,n=(n=n+Math.imul(Ke,je)|0)+Math.imul(lt,it)|0,g=g+Math.imul(lt,je)|0,x=x+Math.imul(Pe,xt)|0,n=(n=n+Math.imul(Pe,Nt)|0)+Math.imul(de,xt)|0,g=g+Math.imul(de,Nt)|0,x=x+Math.imul(pe,ke)|0,n=(n=n+Math.imul(pe,$)|0)+Math.imul(Ve,ke)|0,g=g+Math.imul(Ve,$)|0,x=x+Math.imul(De,Ae)|0,n=(n=n+Math.imul(De,Je)|0)+Math.imul(he,Ae)|0,g=g+Math.imul(he,Je)|0,x=x+Math.imul(Oe,Vt)|0,n=(n=n+Math.imul(Oe,ii)|0)+Math.imul(oe,Vt)|0,g=g+Math.imul(oe,ii)|0,x=x+Math.imul(ye,ot)|0,n=(n=n+Math.imul(ye,ft)|0)+Math.imul(xe,ot)|0,g=g+Math.imul(xe,ft)|0,x=x+Math.imul(nt,gt)|0,n=(n=n+Math.imul(nt,$e)|0)+Math.imul(Ue,gt)|0,g=g+Math.imul(Ue,$e)|0;var Zt=(k+(x=x+Math.imul(O,vt)|0)|0)+((8191&(n=(n=n+Math.imul(O,He)|0)+Math.imul(U,vt)|0))<<13)|0;k=((g=g+Math.imul(U,He)|0)+(n>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,x=Math.imul(be,X),n=(n=Math.imul(be,mt))+Math.imul(qe,X)|0,g=Math.imul(qe,mt),x=x+Math.imul(ht,it)|0,n=(n=n+Math.imul(ht,je)|0)+Math.imul(Ge,it)|0,g=g+Math.imul(Ge,je)|0,x=x+Math.imul(Ke,xt)|0,n=(n=n+Math.imul(Ke,Nt)|0)+Math.imul(lt,xt)|0,g=g+Math.imul(lt,Nt)|0,x=x+Math.imul(Pe,ke)|0,n=(n=n+Math.imul(Pe,$)|0)+Math.imul(de,ke)|0,g=g+Math.imul(de,$)|0,x=x+Math.imul(pe,Ae)|0,n=(n=n+Math.imul(pe,Je)|0)+Math.imul(Ve,Ae)|0,g=g+Math.imul(Ve,Je)|0,x=x+Math.imul(De,Vt)|0,n=(n=n+Math.imul(De,ii)|0)+Math.imul(he,Vt)|0,g=g+Math.imul(he,ii)|0,x=x+Math.imul(Oe,ot)|0,n=(n=n+Math.imul(Oe,ft)|0)+Math.imul(oe,ot)|0,g=g+Math.imul(oe,ft)|0,x=x+Math.imul(ye,gt)|0,n=(n=n+Math.imul(ye,$e)|0)+Math.imul(xe,gt)|0,g=g+Math.imul(xe,$e)|0,x=x+Math.imul(nt,vt)|0,n=(n=n+Math.imul(nt,He)|0)+Math.imul(Ue,vt)|0,g=g+Math.imul(Ue,He)|0;var si=(k+(x=x+Math.imul(O,At)|0)|0)+((8191&(n=(n=n+Math.imul(O,Qt)|0)+Math.imul(U,At)|0))<<13)|0;k=((g=g+Math.imul(U,Qt)|0)+(n>>>13)|0)+(si>>>26)|0,si&=67108863,x=Math.imul(be,it),n=(n=Math.imul(be,je))+Math.imul(qe,it)|0,g=Math.imul(qe,je),x=x+Math.imul(ht,xt)|0,n=(n=n+Math.imul(ht,Nt)|0)+Math.imul(Ge,xt)|0,g=g+Math.imul(Ge,Nt)|0,x=x+Math.imul(Ke,ke)|0,n=(n=n+Math.imul(Ke,$)|0)+Math.imul(lt,ke)|0,g=g+Math.imul(lt,$)|0,x=x+Math.imul(Pe,Ae)|0,n=(n=n+Math.imul(Pe,Je)|0)+Math.imul(de,Ae)|0,g=g+Math.imul(de,Je)|0,x=x+Math.imul(pe,Vt)|0,n=(n=n+Math.imul(pe,ii)|0)+Math.imul(Ve,Vt)|0,g=g+Math.imul(Ve,ii)|0,x=x+Math.imul(De,ot)|0,n=(n=n+Math.imul(De,ft)|0)+Math.imul(he,ot)|0,g=g+Math.imul(he,ft)|0,x=x+Math.imul(Oe,gt)|0,n=(n=n+Math.imul(Oe,$e)|0)+Math.imul(oe,gt)|0,g=g+Math.imul(oe,$e)|0,x=x+Math.imul(ye,vt)|0,n=(n=n+Math.imul(ye,He)|0)+Math.imul(xe,vt)|0,g=g+Math.imul(xe,He)|0;var Ai=(k+(x=x+Math.imul(nt,At)|0)|0)+((8191&(n=(n=n+Math.imul(nt,Qt)|0)+Math.imul(Ue,At)|0))<<13)|0;k=((g=g+Math.imul(Ue,Qt)|0)+(n>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,x=Math.imul(be,xt),n=(n=Math.imul(be,Nt))+Math.imul(qe,xt)|0,g=Math.imul(qe,Nt),x=x+Math.imul(ht,ke)|0,n=(n=n+Math.imul(ht,$)|0)+Math.imul(Ge,ke)|0,g=g+Math.imul(Ge,$)|0,x=x+Math.imul(Ke,Ae)|0,n=(n=n+Math.imul(Ke,Je)|0)+Math.imul(lt,Ae)|0,g=g+Math.imul(lt,Je)|0,x=x+Math.imul(Pe,Vt)|0,n=(n=n+Math.imul(Pe,ii)|0)+Math.imul(de,Vt)|0,g=g+Math.imul(de,ii)|0,x=x+Math.imul(pe,ot)|0,n=(n=n+Math.imul(pe,ft)|0)+Math.imul(Ve,ot)|0,g=g+Math.imul(Ve,ft)|0,x=x+Math.imul(De,gt)|0,n=(n=n+Math.imul(De,$e)|0)+Math.imul(he,gt)|0,g=g+Math.imul(he,$e)|0,x=x+Math.imul(Oe,vt)|0,n=(n=n+Math.imul(Oe,He)|0)+Math.imul(oe,vt)|0,g=g+Math.imul(oe,He)|0;var Oi=(k+(x=x+Math.imul(ye,At)|0)|0)+((8191&(n=(n=n+Math.imul(ye,Qt)|0)+Math.imul(xe,At)|0))<<13)|0;k=((g=g+Math.imul(xe,Qt)|0)+(n>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,x=Math.imul(be,ke),n=(n=Math.imul(be,$))+Math.imul(qe,ke)|0,g=Math.imul(qe,$),x=x+Math.imul(ht,Ae)|0,n=(n=n+Math.imul(ht,Je)|0)+Math.imul(Ge,Ae)|0,g=g+Math.imul(Ge,Je)|0,x=x+Math.imul(Ke,Vt)|0,n=(n=n+Math.imul(Ke,ii)|0)+Math.imul(lt,Vt)|0,g=g+Math.imul(lt,ii)|0,x=x+Math.imul(Pe,ot)|0,n=(n=n+Math.imul(Pe,ft)|0)+Math.imul(de,ot)|0,g=g+Math.imul(de,ft)|0,x=x+Math.imul(pe,gt)|0,n=(n=n+Math.imul(pe,$e)|0)+Math.imul(Ve,gt)|0,g=g+Math.imul(Ve,$e)|0,x=x+Math.imul(De,vt)|0,n=(n=n+Math.imul(De,He)|0)+Math.imul(he,vt)|0,g=g+Math.imul(he,He)|0;var Qi=(k+(x=x+Math.imul(Oe,At)|0)|0)+((8191&(n=(n=n+Math.imul(Oe,Qt)|0)+Math.imul(oe,At)|0))<<13)|0;k=((g=g+Math.imul(oe,Qt)|0)+(n>>>13)|0)+(Qi>>>26)|0,Qi&=67108863,x=Math.imul(be,Ae),n=(n=Math.imul(be,Je))+Math.imul(qe,Ae)|0,g=Math.imul(qe,Je),x=x+Math.imul(ht,Vt)|0,n=(n=n+Math.imul(ht,ii)|0)+Math.imul(Ge,Vt)|0,g=g+Math.imul(Ge,ii)|0,x=x+Math.imul(Ke,ot)|0,n=(n=n+Math.imul(Ke,ft)|0)+Math.imul(lt,ot)|0,g=g+Math.imul(lt,ft)|0,x=x+Math.imul(Pe,gt)|0,n=(n=n+Math.imul(Pe,$e)|0)+Math.imul(de,gt)|0,g=g+Math.imul(de,$e)|0,x=x+Math.imul(pe,vt)|0,n=(n=n+Math.imul(pe,He)|0)+Math.imul(Ve,vt)|0,g=g+Math.imul(Ve,He)|0;var en=(k+(x=x+Math.imul(De,At)|0)|0)+((8191&(n=(n=n+Math.imul(De,Qt)|0)+Math.imul(he,At)|0))<<13)|0;k=((g=g+Math.imul(he,Qt)|0)+(n>>>13)|0)+(en>>>26)|0,en&=67108863,x=Math.imul(be,Vt),n=(n=Math.imul(be,ii))+Math.imul(qe,Vt)|0,g=Math.imul(qe,ii),x=x+Math.imul(ht,ot)|0,n=(n=n+Math.imul(ht,ft)|0)+Math.imul(Ge,ot)|0,g=g+Math.imul(Ge,ft)|0,x=x+Math.imul(Ke,gt)|0,n=(n=n+Math.imul(Ke,$e)|0)+Math.imul(lt,gt)|0,g=g+Math.imul(lt,$e)|0,x=x+Math.imul(Pe,vt)|0,n=(n=n+Math.imul(Pe,He)|0)+Math.imul(de,vt)|0,g=g+Math.imul(de,He)|0;var Yi=(k+(x=x+Math.imul(pe,At)|0)|0)+((8191&(n=(n=n+Math.imul(pe,Qt)|0)+Math.imul(Ve,At)|0))<<13)|0;k=((g=g+Math.imul(Ve,Qt)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,x=Math.imul(be,ot),n=(n=Math.imul(be,ft))+Math.imul(qe,ot)|0,g=Math.imul(qe,ft),x=x+Math.imul(ht,gt)|0,n=(n=n+Math.imul(ht,$e)|0)+Math.imul(Ge,gt)|0,g=g+Math.imul(Ge,$e)|0,x=x+Math.imul(Ke,vt)|0,n=(n=n+Math.imul(Ke,He)|0)+Math.imul(lt,vt)|0,g=g+Math.imul(lt,He)|0;var Yt=(k+(x=x+Math.imul(Pe,At)|0)|0)+((8191&(n=(n=n+Math.imul(Pe,Qt)|0)+Math.imul(de,At)|0))<<13)|0;k=((g=g+Math.imul(de,Qt)|0)+(n>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,x=Math.imul(be,gt),n=(n=Math.imul(be,$e))+Math.imul(qe,gt)|0,g=Math.imul(qe,$e),x=x+Math.imul(ht,vt)|0,n=(n=n+Math.imul(ht,He)|0)+Math.imul(Ge,vt)|0,g=g+Math.imul(Ge,He)|0;var qt=(k+(x=x+Math.imul(Ke,At)|0)|0)+((8191&(n=(n=n+Math.imul(Ke,Qt)|0)+Math.imul(lt,At)|0))<<13)|0;k=((g=g+Math.imul(lt,Qt)|0)+(n>>>13)|0)+(qt>>>26)|0,qt&=67108863,x=Math.imul(be,vt),n=(n=Math.imul(be,He))+Math.imul(qe,vt)|0,g=Math.imul(qe,He);var _e=(k+(x=x+Math.imul(ht,At)|0)|0)+((8191&(n=(n=n+Math.imul(ht,Qt)|0)+Math.imul(Ge,At)|0))<<13)|0;k=((g=g+Math.imul(Ge,Qt)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863;var dt=(k+(x=Math.imul(be,At))|0)+((8191&(n=(n=Math.imul(be,Qt))+Math.imul(qe,At)|0))<<13)|0;return k=((g=Math.imul(qe,Qt))+(n>>>13)|0)+(dt>>>26)|0,dt&=67108863,I[0]=zi,I[1]=Ni,I[2]=Mi,I[3]=Gi,I[4]=Xe,I[5]=It,I[6]=Se,I[7]=wt,I[8]=Zt,I[9]=si,I[10]=Ai,I[11]=Oi,I[12]=Qi,I[13]=en,I[14]=Yi,I[15]=Yt,I[16]=qt,I[17]=_e,I[18]=dt,0!==k&&(I[19]=k,f.length++),f};function j(M,i,a){return(new Q).mulp(M,i,a)}function Q(M,i){this.x=M,this.y=i}Math.imul||(V=z),s.prototype.mulTo=function(i,a){var f,l=this.length+i.length;return f=10===this.length&&10===i.length?V(this,i,a):l<63?z(this,i,a):l<1024?function Y(M,i,a){a.negative=i.negative^M.negative,a.length=M.length+i.length;for(var f=0,l=0,v=0;v>>26)|0)>>>26,I&=67108863}a.words[v]=k,f=I,I=l}return 0!==f?a.words[v]=f:a.length--,a.strip()}(this,i,a):j(this,i,a),f},Q.prototype.makeRBT=function(i){for(var a=new Array(i),f=s.prototype._countBits(i)-1,l=0;l>=1;return l},Q.prototype.permute=function(i,a,f,l,v,I){for(var k=0;k>>=1)v++;return 1<>>=13),v>>>=13;for(I=2*a;I>=26,a+=l/67108864|0,a+=v>>>26,this.words[f]=67108863&v}return 0!==a&&(this.words[f]=a,this.length++),this},s.prototype.muln=function(i){return this.clone().imuln(i)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(i){var a=function D(M){for(var i=new Array(M.bitLength()),a=0;a>>l}return i}(i);if(0===a.length)return new s(1);for(var f=this,l=0;l=0);var v,a=i%26,f=(i-a)/26,l=67108863>>>26-a<<26-a;if(0!==a){var I=0;for(v=0;v>>26-a}I&&(this.words[v]=I,this.length++)}if(0!==f){for(v=this.length-1;v>=0;v--)this.words[v+f]=this.words[v];for(v=0;v=0),l=a?(a-a%26)/26:0;var v=i%26,I=Math.min((i-v)/26,this.length),k=67108863^67108863>>>v<I)for(this.length-=I,n=0;n=0&&(0!==g||n>=l);n--){var W=0|this.words[n];this.words[n]=g<<26-v|W>>>v,g=W&k}return x&&0!==g&&(x.words[x.length++]=g),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,a,f){return _(0===this.negative),this.iushrn(i,a,f)},s.prototype.shln=function(i){return this.clone().ishln(i)},s.prototype.ushln=function(i){return this.clone().iushln(i)},s.prototype.shrn=function(i){return this.clone().ishrn(i)},s.prototype.ushrn=function(i){return this.clone().iushrn(i)},s.prototype.testn=function(i){_("number"==typeof i&&i>=0);var a=i%26,f=(i-a)/26;return!(this.length<=f||!(this.words[f]&1<=0);var a=i%26,f=(i-a)/26;return _(0===this.negative,"imaskn works only with positive numbers"),this.length<=f?this:(0!==a&&f++,this.length=Math.min(f,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},s.prototype.isubn=function(i){if(_("number"==typeof i),_(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[v+f]=67108863&I}for(;v>26,this.words[v+f]=67108863&I;if(0===k)return this.strip();for(_(-1===k),k=0,v=0;v>26,this.words[v]=67108863&I;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var f,l=this.clone(),v=i,I=0|v.words[v.length-1];0!=(f=26-this._countBits(I))&&(v=v.ushln(f),l.iushln(f),I=0|v.words[v.length-1]);var n,x=l.length-v.length;if("mod"!==a){(n=new s(null)).length=x+1,n.words=new Array(n.length);for(var g=0;g=0;O--){var U=67108864*(0|l.words[v.length+O])+(0|l.words[v.length+O-1]);for(U=Math.min(U/I|0,67108863),l._ishlnsubmul(v,U,O);0!==l.negative;)U--,l.negative=0,l._ishlnsubmul(v,1,O),l.isZero()||(l.negative^=1);n&&(n.words[O]=U)}return n&&n.strip(),l.strip(),"div"!==a&&0!==f&&l.iushrn(f),{div:n||null,mod:l}},s.prototype.divmod=function(i,a,f){return _(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(I=this.neg().divmod(i,a),"mod"!==a&&(l=I.div.neg()),"div"!==a&&(v=I.mod.neg(),f&&0!==v.negative&&v.iadd(i)),{div:l,mod:v}):0===this.negative&&0!==i.negative?(I=this.divmod(i.neg(),a),"mod"!==a&&(l=I.div.neg()),{div:l,mod:I.mod}):this.negative&i.negative?(I=this.neg().divmod(i.neg(),a),"div"!==a&&(v=I.mod.neg(),f&&0!==v.negative&&v.isub(i)),{div:I.div,mod:v}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new s(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new s(this.modn(i.words[0]))}:this._wordDiv(i,a);var l,v,I},s.prototype.div=function(i){return this.divmod(i,"div",!1).div},s.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},s.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},s.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var f=0!==a.div.negative?a.mod.isub(i):a.mod,l=i.ushrn(1),v=i.andln(1),I=f.cmp(l);return I<0||1===v&&0===I?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},s.prototype.modn=function(i){_(i<=67108863);for(var a=(1<<26)%i,f=0,l=this.length-1;l>=0;l--)f=(a*f+(0|this.words[l]))%i;return f},s.prototype.idivn=function(i){_(i<=67108863);for(var a=0,f=this.length-1;f>=0;f--){var l=(0|this.words[f])+67108864*a;this.words[f]=l/i|0,a=l%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){_(0===i.negative),_(!i.isZero());var a=this,f=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),v=new s(0),I=new s(0),k=new s(1),x=0;a.isEven()&&f.isEven();)a.iushrn(1),f.iushrn(1),++x;for(var n=f.clone(),g=a.clone();!a.isZero();){for(var W=0,O=1;!(a.words[0]&O)&&W<26;++W,O<<=1);if(W>0)for(a.iushrn(W);W-- >0;)(l.isOdd()||v.isOdd())&&(l.iadd(n),v.isub(g)),l.iushrn(1),v.iushrn(1);for(var U=0,ge=1;!(f.words[0]&ge)&&U<26;++U,ge<<=1);if(U>0)for(f.iushrn(U);U-- >0;)(I.isOdd()||k.isOdd())&&(I.iadd(n),k.isub(g)),I.iushrn(1),k.iushrn(1);a.cmp(f)>=0?(a.isub(f),l.isub(I),v.isub(k)):(f.isub(a),I.isub(l),k.isub(v))}return{a:I,b:k,gcd:f.iushln(x)}},s.prototype._invmp=function(i){_(0===i.negative),_(!i.isZero());var W,a=this,f=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),v=new s(0),I=f.clone();a.cmpn(1)>0&&f.cmpn(1)>0;){for(var k=0,x=1;!(a.words[0]&x)&&k<26;++k,x<<=1);if(k>0)for(a.iushrn(k);k-- >0;)l.isOdd()&&l.iadd(I),l.iushrn(1);for(var n=0,g=1;!(f.words[0]&g)&&n<26;++n,g<<=1);if(n>0)for(f.iushrn(n);n-- >0;)v.isOdd()&&v.iadd(I),v.iushrn(1);a.cmp(f)>=0?(a.isub(f),l.isub(v)):(f.isub(a),v.isub(l))}return(W=0===a.cmpn(1)?l:v).cmpn(0)<0&&W.iadd(i),W},s.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),f=i.clone();a.negative=0,f.negative=0;for(var l=0;a.isEven()&&f.isEven();l++)a.iushrn(1),f.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;f.isEven();)f.iushrn(1);var v=a.cmp(f);if(v<0){var I=a;a=f,f=I}else if(0===v||0===f.cmpn(1))break;a.isub(f)}return f.iushln(l)},s.prototype.invm=function(i){return this.egcd(i).a.umod(i)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(i){return this.words[0]&i},s.prototype.bincn=function(i){_("number"==typeof i);var a=i%26,f=(i-a)/26,l=1<>>26,this.words[I]=k&=67108863}return 0!==v&&(this.words[I]=v,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var f,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)f=1;else{a&&(i=-i),_(i<=67108863,"Number is too big");var l=0|this.words[0];f=l===i?0:li.length)return 1;if(this.length=0;f--){var l=0|this.words[f],v=0|i.words[f];if(l!==v){lv&&(a=1);break}}return a},s.prototype.gtn=function(i){return 1===this.cmpn(i)},s.prototype.gt=function(i){return 1===this.cmp(i)},s.prototype.gten=function(i){return this.cmpn(i)>=0},s.prototype.gte=function(i){return this.cmp(i)>=0},s.prototype.ltn=function(i){return-1===this.cmpn(i)},s.prototype.lt=function(i){return-1===this.cmp(i)},s.prototype.lten=function(i){return this.cmpn(i)<=0},s.prototype.lte=function(i){return this.cmp(i)<=0},s.prototype.eqn=function(i){return 0===this.cmpn(i)},s.prototype.eq=function(i){return 0===this.cmp(i)},s.red=function(i){return new ce(i)},s.prototype.toRed=function(i){return _(!this.red,"Already a number in reduction context"),_(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(i){return this.red=i,this},s.prototype.forceRed=function(i){return _(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return _(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var J={k256:null,p224:null,p192:null,p25519:null};function ee(M,i){this.name=M,this.p=new s(i,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function me(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function re(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ce(M){if("string"==typeof M){var i=s._prime(M);this.m=i.p,this.prime=i}else _(M.gtn(1),"modulus must be greater than 1"),this.m=M,this.prime=null}function Ce(M){ce.call(this,M),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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 s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var f,a=i;do{this.split(a,this.tmp),f=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(f>this.n);var l=f0?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)},T(me,ee),me.prototype.split=function(i,a){for(var f=4194303,l=Math.min(i.length,9),v=0;v>>22,I=k}i.words[v-10]=I>>>=22,i.length-=0===I&&i.length>10?10:9},me.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,f=0;f>>=26,i.words[f]=v,a=l}return 0!==a&&(i.words[i.length++]=a),i},s._prime=function(i){if(J[i])return J[i];var a;if("k256"===i)a=new me;else if("p224"===i)a=new re;else if("p192"===i)a=new ie;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new se}return J[i]=a,a},ce.prototype._verify1=function(i){_(0===i.negative,"red works only with positives"),_(i.red,"red works only with red numbers")},ce.prototype._verify2=function(i,a){_(0==(i.negative|a.negative),"red works only with positives"),_(i.red&&i.red===a.red,"red works only with red numbers")},ce.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},ce.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},ce.prototype.add=function(i,a){this._verify2(i,a);var f=i.add(a);return f.cmp(this.m)>=0&&f.isub(this.m),f._forceRed(this)},ce.prototype.iadd=function(i,a){this._verify2(i,a);var f=i.iadd(a);return f.cmp(this.m)>=0&&f.isub(this.m),f},ce.prototype.sub=function(i,a){this._verify2(i,a);var f=i.sub(a);return f.cmpn(0)<0&&f.iadd(this.m),f._forceRed(this)},ce.prototype.isub=function(i,a){this._verify2(i,a);var f=i.isub(a);return f.cmpn(0)<0&&f.iadd(this.m),f},ce.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},ce.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},ce.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},ce.prototype.isqr=function(i){return this.imul(i,i.clone())},ce.prototype.sqr=function(i){return this.mul(i,i)},ce.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(_(a%2==1),3===a){var f=this.m.add(new s(1)).iushrn(2);return this.pow(i,f)}for(var l=this.m.subn(1),v=0;!l.isZero()&&0===l.andln(1);)v++,l.iushrn(1);_(!l.isZero());var I=new s(1).toRed(this),k=I.redNeg(),x=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new s(2*n*n).toRed(this);0!==this.pow(n,x).cmp(k);)n.redIAdd(k);for(var g=this.pow(n,l),W=this.pow(i,l.addn(1).iushrn(1)),O=this.pow(i,l),U=v;0!==O.cmp(I);){for(var ge=O,nt=0;0!==ge.cmp(I);nt++)ge=ge.redSqr();_(nt=0;v--){for(var g=a.words[v],W=n-1;W>=0;W--){var O=g>>W&1;I!==l[0]&&(I=this.sqr(I)),0!==O||0!==k?(k<<=1,k|=O,(4==++x||0===v&&0===W)&&(I=this.mul(I,l[k]),x=0,k=0)):x=0}n=26}return I},ce.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},ce.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new Ce(i)},T(Ce,ce),Ce.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},Ce.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},Ce.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var f=i.imul(a),l=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=f.isub(l).iushrn(this.shift),I=v;return v.cmp(this.m)>=0?I=v.isub(this.m):v.cmpn(0)<0&&(I=v.iadd(this.m)),I._forceRed(this)},Ce.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new s(0)._forceRed(this);var f=i.mul(a),l=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=f.isub(l).iushrn(this.shift),I=v;return v.cmp(this.m)>=0?I=v.isub(this.m):v.cmpn(0)<0&&(I=v.iadd(this.m)),I._forceRed(this)},Ce.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(We=m.nmd(We),this)},6386:(We,q,m)=>{"use strict";var t=m(3894),e=m(8095),_=m(5634),T=m(5244),s=m(1052);function y(h){s.call(this,"digest"),this._hash=h}t(y,s),y.prototype._update=function(h){this._hash.update(h)},y.prototype._final=function(){return this._hash.digest()},We.exports=function(P){return"md5"===(P=P.toLowerCase())?new e:"rmd160"===P||"ripemd160"===P?new _:new y(T(P))}},5640:(We,q,m)=>{var t=m(8095);We.exports=function(e){return(new t).update(e).digest()}},4529:(We,q,m)=>{"use strict";var t=m(3894),e=m(7309),_=m(1052),T=m(3502).Buffer,s=m(5640),y=m(5634),h=m(5244),P=T.alloc(128);function d(w,C){_.call(this,"digest"),"string"==typeof C&&(C=T.from(C));var L="sha512"===w||"sha384"===w?128:64;this._alg=w,this._key=C,C.length>L?C=("rmd160"===w?new y:h(w)).update(C).digest():C.length{"use strict";var t=m(3894),e=m(3502).Buffer,_=m(1052),T=e.alloc(128),s=64;function y(h,P){_.call(this,"digest"),"string"==typeof P&&(P=e.from(P)),this._alg=h,this._key=P,P.length>s?P=h(P):P.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 t=m(7793),e=Object.keys(t),_=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(e);q.getHashes=function(){return _};var T=m(9357);q.pbkdf2=T.pbkdf2,q.pbkdf2Sync=T.pbkdf2Sync;var s=m(5255);q.Cipher=s.Cipher,q.createCipher=s.createCipher,q.Cipheriv=s.Cipheriv,q.createCipheriv=s.createCipheriv,q.Decipher=s.Decipher,q.createDecipher=s.createDecipher,q.Decipheriv=s.Decipheriv,q.createDecipheriv=s.createDecipheriv,q.getCiphers=s.getCiphers,q.listCiphers=s.listCiphers;var y=m(8829);q.DiffieHellmanGroup=y.DiffieHellmanGroup,q.createDiffieHellmanGroup=y.createDiffieHellmanGroup,q.getDiffieHellman=y.getDiffieHellman,q.createDiffieHellman=y.createDiffieHellman,q.DiffieHellman=y.DiffieHellman;var h=m(3923);q.createSign=h.createSign,q.Sign=h.Sign,q.createVerify=h.createVerify,q.Verify=h.Verify,q.createECDH=m(4746);var P=m(3701);q.publicEncrypt=P.publicEncrypt,q.privateEncrypt=P.privateEncrypt,q.publicDecrypt=P.publicDecrypt,q.privateDecrypt=P.privateDecrypt;var d=m(4275);q.randomFill=d.randomFill,q.randomFillSync=d.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:(We,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:(We,q,m)=>{"use strict";var t=m(2391),e=m(3894),_={};function T(y){t.equal(y.length,8,"Invalid IV length"),this.iv=new Array(8);for(var h=0;h{"use strict";var t=m(2391);function e(_){this.options=_,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=!1!==_.padding}We.exports=e,e.prototype._init=function(){},e.prototype.update=function(T){return 0===T.length?[]:"decrypt"===this.type?this._updateDecrypt(T):this._updateEncrypt(T)},e.prototype._buffer=function(T,s){for(var y=Math.min(this.buffer.length-this.bufferOff,T.length-s),h=0;h0;h--)s+=this._buffer(T,s),y+=this._flushBuffer(P,y);return s+=this._buffer(T,s),P},e.prototype.final=function(T){var s,y;return T&&(s=this.update(T)),y="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),s?s.concat(y):y},e.prototype._pad=function(T,s){if(0===s)return!1;for(;s{"use strict";var t=m(2391),e=m(3894),_=m(7451),T=m(8170);function s(){this.tmp=new Array(2),this.keys=null}function y(P){T.call(this,P);var d=new s;this._desState=d,this.deriveKeys(d,P.key)}e(y,T),We.exports=y,y.create=function(d){return new y(d)};var h=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];y.prototype.deriveKeys=function(d,w){d.keys=new Array(32),t.equal(w.length,this.blockSize,"Invalid key length");var C=_.readUInt32BE(w,0),L=_.readUInt32BE(w,4);_.pc1(C,L,d.tmp,0),C=d.tmp[0],L=d.tmp[1];for(var D=0;D>>1];C=_.r28shl(C,z),L=_.r28shl(L,z),_.pc2(C,L,d.keys,D)}},y.prototype._update=function(d,w,C,L){var D=this._desState,z=_.readUInt32BE(d,w),V=_.readUInt32BE(d,w+4);_.ip(z,V,D.tmp,0),z=D.tmp[0],V=D.tmp[1],"encrypt"===this.type?this._encrypt(D,z,V,D.tmp,0):this._decrypt(D,z,V,D.tmp,0),V=D.tmp[1],_.writeUInt32BE(C,z=D.tmp[0],L),_.writeUInt32BE(C,V,L+4)},y.prototype._pad=function(d,w){if(!1===this.padding)return!1;for(var C=d.length-w,L=w;L>>0,z=me}_.rip(V,z,L,D)},y.prototype._decrypt=function(d,w,C,L,D){for(var z=C,V=w,Y=d.keys.length-2;Y>=0;Y-=2){var j=d.keys[Y],Q=d.keys[Y+1];_.expand(z,d.tmp,0);var J=_.substitute(j^=d.tmp[0],Q^=d.tmp[1]),me=z;z=(V^_.permute(J))>>>0,V=me}_.rip(z,V,L,D)}},1862:(We,q,m)=>{"use strict";var t=m(2391),e=m(3894),_=m(8170),T=m(4631);function s(h,P){t.equal(P.length,24,"Invalid key length");var d=P.slice(0,8),w=P.slice(8,16),C=P.slice(16,24);this.ciphers="encrypt"===h?[T.create({type:"encrypt",key:d}),T.create({type:"decrypt",key:w}),T.create({type:"encrypt",key:C})]:[T.create({type:"decrypt",key:C}),T.create({type:"encrypt",key:w}),T.create({type:"decrypt",key:d})]}function y(h){_.call(this,h);var P=new s(this.type,this.options.key);this._edeState=P}e(y,_),We.exports=y,y.create=function(P){return new y(P)},y.prototype._update=function(P,d,w,C){var L=this._edeState;L.ciphers[0]._update(P,d,w,C),L.ciphers[1]._update(w,C,w,C),L.ciphers[2]._update(w,C,w,C)},y.prototype._pad=T.prototype._pad,y.prototype._unpad=T.prototype._unpad},7451:(We,q)=>{"use strict";q.readUInt32BE=function(T,s){return(T[0+s]<<24|T[1+s]<<16|T[2+s]<<8|T[3+s])>>>0},q.writeUInt32BE=function(T,s,y){T[0+y]=s>>>24,T[1+y]=s>>>16&255,T[2+y]=s>>>8&255,T[3+y]=255&s},q.ip=function(T,s,y,h){for(var P=0,d=0,w=6;w>=0;w-=2){for(var C=0;C<=24;C+=8)P<<=1,P|=s>>>C+w&1;for(C=0;C<=24;C+=8)P<<=1,P|=T>>>C+w&1}for(w=6;w>=0;w-=2){for(C=1;C<=25;C+=8)d<<=1,d|=s>>>C+w&1;for(C=1;C<=25;C+=8)d<<=1,d|=T>>>C+w&1}y[h+0]=P>>>0,y[h+1]=d>>>0},q.rip=function(T,s,y,h){for(var P=0,d=0,w=0;w<4;w++)for(var C=24;C>=0;C-=8)P<<=1,P|=s>>>C+w&1,P<<=1,P|=T>>>C+w&1;for(w=4;w<8;w++)for(C=24;C>=0;C-=8)d<<=1,d|=s>>>C+w&1,d<<=1,d|=T>>>C+w&1;y[h+0]=P>>>0,y[h+1]=d>>>0},q.pc1=function(T,s,y,h){for(var P=0,d=0,w=7;w>=5;w--){for(var C=0;C<=24;C+=8)P<<=1,P|=s>>C+w&1;for(C=0;C<=24;C+=8)P<<=1,P|=T>>C+w&1}for(C=0;C<=24;C+=8)P<<=1,P|=s>>C+w&1;for(w=1;w<=3;w++){for(C=0;C<=24;C+=8)d<<=1,d|=s>>C+w&1;for(C=0;C<=24;C+=8)d<<=1,d|=T>>C+w&1}for(C=0;C<=24;C+=8)d<<=1,d|=T>>C+w&1;y[h+0]=P>>>0,y[h+1]=d>>>0},q.r28shl=function(T,s){return T<>>28-s};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(T,s,y,h){for(var P=0,d=0,w=m.length>>>1,C=0;C>>m[C]&1;for(C=w;C>>m[C]&1;y[h+0]=P>>>0,y[h+1]=d>>>0},q.expand=function(T,s,y){var h=0,P=0;h=(1&T)<<5|T>>>27;for(var d=23;d>=15;d-=4)h<<=6,h|=T>>>d&63;for(d=11;d>=3;d-=4)P|=T>>>d&63,P<<=6;P|=(31&T)<<1|T>>>31,s[y+0]=h>>>0,s[y+1]=P>>>0};var t=[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(T,s){for(var y=0,h=0;h<4;h++)y<<=4,y|=t[64*h+(T>>>18-6*h&63)];for(h=0;h<4;h++)y<<=4,y|=t[256+64*h+(s>>>18-6*h&63)];return y>>>0};var e=[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(T){for(var s=0,y=0;y>>e[y]&1;return s>>>0},q.padSplit=function(T,s,y){for(var h=T.toString(2);h.length{var t=m(5563),e=m(9799),_=m(1419),s={binary:!0,hex:!0,base64:!0};q.DiffieHellmanGroup=q.createDiffieHellmanGroup=q.getDiffieHellman=function T(h){var P=new Buffer(e[h].prime,"hex"),d=new Buffer(e[h].gen,"hex");return new _(P,d)},q.createDiffieHellman=q.DiffieHellman=function y(h,P,d,w){return Buffer.isBuffer(P)||void 0===s[P]?y(h,"binary",P,d):(P=P||"binary",w=w||"binary",d=d||new Buffer([2]),Buffer.isBuffer(d)||(d=new Buffer(d,w)),"number"==typeof h?new _(t(h,d),d,!0):(Buffer.isBuffer(h)||(h=new Buffer(h,P)),new _(h,d,!0)))}},1419:(We,q,m)=>{var t=m(8313),_=new(m(7079)),T=new t(24),s=new t(11),y=new t(10),h=new t(3),P=new t(7),d=m(5563),w=m(3753);function C(j,Q){return Q=Q||"utf8",Buffer.isBuffer(j)||(j=new Buffer(j,Q)),this._pub=new t(j),this}function L(j,Q){return Q=Q||"utf8",Buffer.isBuffer(j)||(j=new Buffer(j,Q)),this._priv=new t(j),this}We.exports=V;var D={};function V(j,Q,J){this.setGenerator(Q),this.__prime=new t(j),this._prime=t.mont(this.__prime),this._primeLen=j.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,J?(this.setPublicKey=C,this.setPrivateKey=L):this._primeCode=8}function Y(j,Q){var J=new Buffer(j.toArray());return Q?J.toString(Q):J}Object.defineProperty(V.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function z(j,Q){var J=Q.toString("hex"),ee=[J,j.toString(16)].join("_");if(ee in D)return D[ee];var re,me=0;if(j.isEven()||!d.simpleSieve||!d.fermatTest(j)||!_.test(j))return me+=1,D[ee]=me+="02"===J||"05"===J?8:4,me;switch(_.test(j.shrn(1))||(me+=2),J){case"02":j.mod(T).cmp(s)&&(me+=8);break;case"05":(re=j.mod(y)).cmp(h)&&re.cmp(P)&&(me+=8);break;default:me+=4}return D[ee]=me,me}(this.__prime,this.__gen)),this._primeCode}}),V.prototype.generateKeys=function(){return this._priv||(this._priv=new t(w(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},V.prototype.computeSecret=function(j){var Q=(j=(j=new t(j)).toRed(this._prime)).redPow(this._priv).fromRed(),J=new Buffer(Q.toArray()),ee=this.getPrime();if(J.length{var t=m(3753);We.exports=me,me.simpleSieve=J,me.fermatTest=ee;var e=m(8313),_=new e(24),s=new(m(7079)),y=new e(1),h=new e(2),P=new e(5),C=(new e(16),new e(8),new e(10)),L=new e(3),z=(new e(7),new e(11)),V=new e(4),j=(new e(12),null);function J(re){for(var ie=function Q(){if(null!==j)return j;var ie=[];ie[0]=2;for(var se=1,ce=3;ce<1048576;ce+=2){for(var Ce=Math.ceil(Math.sqrt(ce)),M=0;Mre;)se.ishrn(1);if(se.isEven()&&se.iadd(y),se.testn(1)||se.iadd(h),ie.cmp(h)){if(!ie.cmp(P))for(;se.mod(C).cmp(L);)se.iadd(V)}else for(;se.mod(_).cmp(z);)se.iadd(V);if(J(ce=se.shrn(1))&&J(se)&&ee(ce)&&ee(se)&&s.test(ce)&&s.test(se))return se}}},8313:function(We,q,m){!function(t,e){"use strict";function _(M,i){if(!M)throw new Error(i||"Assertion failed")}function T(M,i){M.super_=i;var a=function(){};a.prototype=i.prototype,M.prototype=new a,M.prototype.constructor=M}function s(M,i,a){if(s.isBN(M))return M;this.negative=0,this.words=null,this.length=0,this.red=null,null!==M&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(M||0,i||10,a||"be"))}var y;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{y=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:m(7748).Buffer}catch{}function h(M,i){var a=M.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function P(M,i,a){var f=h(M,a);return a-1>=i&&(f|=h(M,a-1)<<4),f}function d(M,i,a,f){for(var l=0,v=Math.min(M.length,a),I=i;I=49?k-49+10:k>=17?k-17+10:k}return l}s.isBN=function(i){return i instanceof s||null!==i&&"object"==typeof i&&i.constructor.wordSize===s.wordSize&&Array.isArray(i.words)},s.max=function(i,a){return i.cmp(a)>0?i:a},s.min=function(i,a){return i.cmp(a)<0?i:a},s.prototype._init=function(i,a,f){if("number"==typeof i)return this._initNumber(i,a,f);if("object"==typeof i)return this._initArray(i,a,f);"hex"===a&&(a=16),_(a===(0|a)&&a>=2&&a<=36);var l=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(l++,this.negative=1),l=0;l-=3)this.words[v]|=(I=i[l]|i[l-1]<<8|i[l-2]<<16)<>>26-k&67108863,(k+=24)>=26&&(k-=26,v++);else if("le"===f)for(l=0,v=0;l>>26-k&67108863,(k+=24)>=26&&(k-=26,v++);return this.strip()},s.prototype._parseHex=function(i,a,f){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var l=0;l=a;l-=2)k=P(i,a,l)<=18?(v-=18,this.words[I+=1]|=k>>>26):v+=8;else for(l=(i.length-a)%2==0?a+1:a;l=18?(v-=18,this.words[I+=1]|=k>>>26):v+=8;this.strip()},s.prototype._parseBase=function(i,a,f){this.words=[0],this.length=1;for(var l=0,v=1;v<=67108863;v*=a)l++;l--,v=v/a|0;for(var I=i.length-f,k=I%l,x=Math.min(I,I-k)+f,n=0,g=f;g1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var w=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[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],L=[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 z(M,i,a){a.negative=i.negative^M.negative;var f=M.length+i.length|0;a.length=f,f=f-1|0;var l=0|M.words[0],v=0|i.words[0],I=l*v,x=I/67108864|0;a.words[0]=67108863&I;for(var n=1;n>>26,W=67108863&x,O=Math.min(n,i.length-1),U=Math.max(0,n-M.length+1);U<=O;U++)g+=(I=(l=0|M.words[n-U|0])*(v=0|i.words[U])+W)/67108864|0,W=67108863&I;a.words[n]=0|W,x=0|g}return 0!==x?a.words[n]=0|x:a.length--,a.strip()}s.prototype.toString=function(i,a){var f;if(a=0|a||1,16===(i=i||10)||"hex"===i){f="";for(var l=0,v=0,I=0;I>>24-l&16777215)||I!==this.length-1?w[6-x.length]+x+f:x+f,(l+=2)>=26&&(l-=26,I--)}for(0!==v&&(f=v.toString(16)+f);f.length%a!=0;)f="0"+f;return 0!==this.negative&&(f="-"+f),f}if(i===(0|i)&&i>=2&&i<=36){var n=C[i],g=L[i];f="";var W=this.clone();for(W.negative=0;!W.isZero();){var O=W.modn(g).toString(i);f=(W=W.idivn(g)).isZero()?O+f:w[n-O.length]+O+f}for(this.isZero()&&(f="0"+f);f.length%a!=0;)f="0"+f;return 0!==this.negative&&(f="-"+f),f}_(!1,"Base should be between 2 and 36")},s.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&&_(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(i,a){return _(typeof y<"u"),this.toArrayLike(y,i,a)},s.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},s.prototype.toArrayLike=function(i,a,f){var l=this.byteLength(),v=f||Math.max(1,l);_(l<=v,"byte array longer than desired length"),_(v>0,"Requested array length <= 0"),this.strip();var x,n,I="le"===a,k=new i(v),g=this.clone();if(I){for(n=0;!g.isZero();n++)x=g.andln(255),g.iushrn(8),k[n]=x;for(;n=4096&&(f+=13,a>>>=13),a>=64&&(f+=7,a>>>=7),a>=8&&(f+=4,a>>>=4),a>=2&&(f+=2,a>>>=2),f+a},s.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,f=0;return 8191&a||(f+=13,a>>>=13),127&a||(f+=7,a>>>=7),15&a||(f+=4,a>>>=4),3&a||(f+=2,a>>>=2),1&a||f++,f},s.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},s.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},s.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var f=0;fi.length?this.clone().iand(i):i.clone().iand(this)},s.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},s.prototype.iuxor=function(i){var a,f;this.length>i.length?(a=this,f=i):(a=i,f=this);for(var l=0;li.length?this.clone().ixor(i):i.clone().ixor(this)},s.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},s.prototype.inotn=function(i){_("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),f=i%26;this._expand(a),f>0&&a--;for(var l=0;l0&&(this.words[l]=~this.words[l]&67108863>>26-f),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,a){_("number"==typeof i&&i>=0);var f=i/26|0,l=i%26;return this._expand(f+1),this.words[f]=a?this.words[f]|1<i.length?(f=this,l=i):(f=i,l=this);for(var v=0,I=0;I>>26;for(;0!==v&&I>>26;if(this.length=f.length,0!==v)this.words[this.length]=v,this.length++;else if(f!==this)for(;Ii.length?this.clone().iadd(i):i.clone().iadd(this)},s.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 l,v,f=this.cmp(i);if(0===f)return this.negative=0,this.length=1,this.words[0]=0,this;f>0?(l=this,v=i):(l=i,v=this);for(var I=0,k=0;k>26,this.words[k]=67108863&a;for(;0!==I&&k>26,this.words[k]=67108863&a;if(0===I&&k>>13,ge=0|l[1],nt=8191&ge,Ue=ge>>>13,at=0|l[2],ye=8191&at,xe=at>>>13,fe=0|l[3],Oe=8191&fe,oe=fe>>>13,Fe=0|l[4],De=8191&Fe,he=Fe>>>13,Me=0|l[5],pe=8191&Me,Ve=Me>>>13,Qe=0|l[6],Pe=8191&Qe,de=Qe>>>13,rt=0|l[7],Ke=8191&rt,lt=rt>>>13,Ut=0|l[8],ht=8191&Ut,Ge=Ut>>>13,yt=0|l[9],be=8191&yt,qe=yt>>>13,Ie=0|v[0],X=8191&Ie,mt=Ie>>>13,Tt=0|v[1],it=8191&Tt,je=Tt>>>13,zt=0|v[2],xt=8191&zt,Nt=zt>>>13,Gt=0|v[3],ke=8191&Gt,$=Gt>>>13,ue=0|v[4],Ae=8191&ue,Je=ue>>>13,$t=0|v[5],Vt=8191&$t,ii=$t>>>13,pt=0|v[6],ot=8191&pt,ft=pt>>>13,St=0|v[7],gt=8191&St,$e=St>>>13,_t=0|v[8],vt=8191&_t,He=_t>>>13,Et=0|v[9],At=8191&Et,Qt=Et>>>13;f.negative=i.negative^a.negative,f.length=19;var zi=(k+(x=Math.imul(O,X))|0)+((8191&(n=(n=Math.imul(O,mt))+Math.imul(U,X)|0))<<13)|0;k=((g=Math.imul(U,mt))+(n>>>13)|0)+(zi>>>26)|0,zi&=67108863,x=Math.imul(nt,X),n=(n=Math.imul(nt,mt))+Math.imul(Ue,X)|0,g=Math.imul(Ue,mt);var Ni=(k+(x=x+Math.imul(O,it)|0)|0)+((8191&(n=(n=n+Math.imul(O,je)|0)+Math.imul(U,it)|0))<<13)|0;k=((g=g+Math.imul(U,je)|0)+(n>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(ye,X),n=(n=Math.imul(ye,mt))+Math.imul(xe,X)|0,g=Math.imul(xe,mt),x=x+Math.imul(nt,it)|0,n=(n=n+Math.imul(nt,je)|0)+Math.imul(Ue,it)|0,g=g+Math.imul(Ue,je)|0;var Mi=(k+(x=x+Math.imul(O,xt)|0)|0)+((8191&(n=(n=n+Math.imul(O,Nt)|0)+Math.imul(U,xt)|0))<<13)|0;k=((g=g+Math.imul(U,Nt)|0)+(n>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,x=Math.imul(Oe,X),n=(n=Math.imul(Oe,mt))+Math.imul(oe,X)|0,g=Math.imul(oe,mt),x=x+Math.imul(ye,it)|0,n=(n=n+Math.imul(ye,je)|0)+Math.imul(xe,it)|0,g=g+Math.imul(xe,je)|0,x=x+Math.imul(nt,xt)|0,n=(n=n+Math.imul(nt,Nt)|0)+Math.imul(Ue,xt)|0,g=g+Math.imul(Ue,Nt)|0;var Gi=(k+(x=x+Math.imul(O,ke)|0)|0)+((8191&(n=(n=n+Math.imul(O,$)|0)+Math.imul(U,ke)|0))<<13)|0;k=((g=g+Math.imul(U,$)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,x=Math.imul(De,X),n=(n=Math.imul(De,mt))+Math.imul(he,X)|0,g=Math.imul(he,mt),x=x+Math.imul(Oe,it)|0,n=(n=n+Math.imul(Oe,je)|0)+Math.imul(oe,it)|0,g=g+Math.imul(oe,je)|0,x=x+Math.imul(ye,xt)|0,n=(n=n+Math.imul(ye,Nt)|0)+Math.imul(xe,xt)|0,g=g+Math.imul(xe,Nt)|0,x=x+Math.imul(nt,ke)|0,n=(n=n+Math.imul(nt,$)|0)+Math.imul(Ue,ke)|0,g=g+Math.imul(Ue,$)|0;var Xe=(k+(x=x+Math.imul(O,Ae)|0)|0)+((8191&(n=(n=n+Math.imul(O,Je)|0)+Math.imul(U,Ae)|0))<<13)|0;k=((g=g+Math.imul(U,Je)|0)+(n>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,x=Math.imul(pe,X),n=(n=Math.imul(pe,mt))+Math.imul(Ve,X)|0,g=Math.imul(Ve,mt),x=x+Math.imul(De,it)|0,n=(n=n+Math.imul(De,je)|0)+Math.imul(he,it)|0,g=g+Math.imul(he,je)|0,x=x+Math.imul(Oe,xt)|0,n=(n=n+Math.imul(Oe,Nt)|0)+Math.imul(oe,xt)|0,g=g+Math.imul(oe,Nt)|0,x=x+Math.imul(ye,ke)|0,n=(n=n+Math.imul(ye,$)|0)+Math.imul(xe,ke)|0,g=g+Math.imul(xe,$)|0,x=x+Math.imul(nt,Ae)|0,n=(n=n+Math.imul(nt,Je)|0)+Math.imul(Ue,Ae)|0,g=g+Math.imul(Ue,Je)|0;var It=(k+(x=x+Math.imul(O,Vt)|0)|0)+((8191&(n=(n=n+Math.imul(O,ii)|0)+Math.imul(U,Vt)|0))<<13)|0;k=((g=g+Math.imul(U,ii)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,x=Math.imul(Pe,X),n=(n=Math.imul(Pe,mt))+Math.imul(de,X)|0,g=Math.imul(de,mt),x=x+Math.imul(pe,it)|0,n=(n=n+Math.imul(pe,je)|0)+Math.imul(Ve,it)|0,g=g+Math.imul(Ve,je)|0,x=x+Math.imul(De,xt)|0,n=(n=n+Math.imul(De,Nt)|0)+Math.imul(he,xt)|0,g=g+Math.imul(he,Nt)|0,x=x+Math.imul(Oe,ke)|0,n=(n=n+Math.imul(Oe,$)|0)+Math.imul(oe,ke)|0,g=g+Math.imul(oe,$)|0,x=x+Math.imul(ye,Ae)|0,n=(n=n+Math.imul(ye,Je)|0)+Math.imul(xe,Ae)|0,g=g+Math.imul(xe,Je)|0,x=x+Math.imul(nt,Vt)|0,n=(n=n+Math.imul(nt,ii)|0)+Math.imul(Ue,Vt)|0,g=g+Math.imul(Ue,ii)|0;var Se=(k+(x=x+Math.imul(O,ot)|0)|0)+((8191&(n=(n=n+Math.imul(O,ft)|0)+Math.imul(U,ot)|0))<<13)|0;k=((g=g+Math.imul(U,ft)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,x=Math.imul(Ke,X),n=(n=Math.imul(Ke,mt))+Math.imul(lt,X)|0,g=Math.imul(lt,mt),x=x+Math.imul(Pe,it)|0,n=(n=n+Math.imul(Pe,je)|0)+Math.imul(de,it)|0,g=g+Math.imul(de,je)|0,x=x+Math.imul(pe,xt)|0,n=(n=n+Math.imul(pe,Nt)|0)+Math.imul(Ve,xt)|0,g=g+Math.imul(Ve,Nt)|0,x=x+Math.imul(De,ke)|0,n=(n=n+Math.imul(De,$)|0)+Math.imul(he,ke)|0,g=g+Math.imul(he,$)|0,x=x+Math.imul(Oe,Ae)|0,n=(n=n+Math.imul(Oe,Je)|0)+Math.imul(oe,Ae)|0,g=g+Math.imul(oe,Je)|0,x=x+Math.imul(ye,Vt)|0,n=(n=n+Math.imul(ye,ii)|0)+Math.imul(xe,Vt)|0,g=g+Math.imul(xe,ii)|0,x=x+Math.imul(nt,ot)|0,n=(n=n+Math.imul(nt,ft)|0)+Math.imul(Ue,ot)|0,g=g+Math.imul(Ue,ft)|0;var wt=(k+(x=x+Math.imul(O,gt)|0)|0)+((8191&(n=(n=n+Math.imul(O,$e)|0)+Math.imul(U,gt)|0))<<13)|0;k=((g=g+Math.imul(U,$e)|0)+(n>>>13)|0)+(wt>>>26)|0,wt&=67108863,x=Math.imul(ht,X),n=(n=Math.imul(ht,mt))+Math.imul(Ge,X)|0,g=Math.imul(Ge,mt),x=x+Math.imul(Ke,it)|0,n=(n=n+Math.imul(Ke,je)|0)+Math.imul(lt,it)|0,g=g+Math.imul(lt,je)|0,x=x+Math.imul(Pe,xt)|0,n=(n=n+Math.imul(Pe,Nt)|0)+Math.imul(de,xt)|0,g=g+Math.imul(de,Nt)|0,x=x+Math.imul(pe,ke)|0,n=(n=n+Math.imul(pe,$)|0)+Math.imul(Ve,ke)|0,g=g+Math.imul(Ve,$)|0,x=x+Math.imul(De,Ae)|0,n=(n=n+Math.imul(De,Je)|0)+Math.imul(he,Ae)|0,g=g+Math.imul(he,Je)|0,x=x+Math.imul(Oe,Vt)|0,n=(n=n+Math.imul(Oe,ii)|0)+Math.imul(oe,Vt)|0,g=g+Math.imul(oe,ii)|0,x=x+Math.imul(ye,ot)|0,n=(n=n+Math.imul(ye,ft)|0)+Math.imul(xe,ot)|0,g=g+Math.imul(xe,ft)|0,x=x+Math.imul(nt,gt)|0,n=(n=n+Math.imul(nt,$e)|0)+Math.imul(Ue,gt)|0,g=g+Math.imul(Ue,$e)|0;var Zt=(k+(x=x+Math.imul(O,vt)|0)|0)+((8191&(n=(n=n+Math.imul(O,He)|0)+Math.imul(U,vt)|0))<<13)|0;k=((g=g+Math.imul(U,He)|0)+(n>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,x=Math.imul(be,X),n=(n=Math.imul(be,mt))+Math.imul(qe,X)|0,g=Math.imul(qe,mt),x=x+Math.imul(ht,it)|0,n=(n=n+Math.imul(ht,je)|0)+Math.imul(Ge,it)|0,g=g+Math.imul(Ge,je)|0,x=x+Math.imul(Ke,xt)|0,n=(n=n+Math.imul(Ke,Nt)|0)+Math.imul(lt,xt)|0,g=g+Math.imul(lt,Nt)|0,x=x+Math.imul(Pe,ke)|0,n=(n=n+Math.imul(Pe,$)|0)+Math.imul(de,ke)|0,g=g+Math.imul(de,$)|0,x=x+Math.imul(pe,Ae)|0,n=(n=n+Math.imul(pe,Je)|0)+Math.imul(Ve,Ae)|0,g=g+Math.imul(Ve,Je)|0,x=x+Math.imul(De,Vt)|0,n=(n=n+Math.imul(De,ii)|0)+Math.imul(he,Vt)|0,g=g+Math.imul(he,ii)|0,x=x+Math.imul(Oe,ot)|0,n=(n=n+Math.imul(Oe,ft)|0)+Math.imul(oe,ot)|0,g=g+Math.imul(oe,ft)|0,x=x+Math.imul(ye,gt)|0,n=(n=n+Math.imul(ye,$e)|0)+Math.imul(xe,gt)|0,g=g+Math.imul(xe,$e)|0,x=x+Math.imul(nt,vt)|0,n=(n=n+Math.imul(nt,He)|0)+Math.imul(Ue,vt)|0,g=g+Math.imul(Ue,He)|0;var si=(k+(x=x+Math.imul(O,At)|0)|0)+((8191&(n=(n=n+Math.imul(O,Qt)|0)+Math.imul(U,At)|0))<<13)|0;k=((g=g+Math.imul(U,Qt)|0)+(n>>>13)|0)+(si>>>26)|0,si&=67108863,x=Math.imul(be,it),n=(n=Math.imul(be,je))+Math.imul(qe,it)|0,g=Math.imul(qe,je),x=x+Math.imul(ht,xt)|0,n=(n=n+Math.imul(ht,Nt)|0)+Math.imul(Ge,xt)|0,g=g+Math.imul(Ge,Nt)|0,x=x+Math.imul(Ke,ke)|0,n=(n=n+Math.imul(Ke,$)|0)+Math.imul(lt,ke)|0,g=g+Math.imul(lt,$)|0,x=x+Math.imul(Pe,Ae)|0,n=(n=n+Math.imul(Pe,Je)|0)+Math.imul(de,Ae)|0,g=g+Math.imul(de,Je)|0,x=x+Math.imul(pe,Vt)|0,n=(n=n+Math.imul(pe,ii)|0)+Math.imul(Ve,Vt)|0,g=g+Math.imul(Ve,ii)|0,x=x+Math.imul(De,ot)|0,n=(n=n+Math.imul(De,ft)|0)+Math.imul(he,ot)|0,g=g+Math.imul(he,ft)|0,x=x+Math.imul(Oe,gt)|0,n=(n=n+Math.imul(Oe,$e)|0)+Math.imul(oe,gt)|0,g=g+Math.imul(oe,$e)|0,x=x+Math.imul(ye,vt)|0,n=(n=n+Math.imul(ye,He)|0)+Math.imul(xe,vt)|0,g=g+Math.imul(xe,He)|0;var Ai=(k+(x=x+Math.imul(nt,At)|0)|0)+((8191&(n=(n=n+Math.imul(nt,Qt)|0)+Math.imul(Ue,At)|0))<<13)|0;k=((g=g+Math.imul(Ue,Qt)|0)+(n>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,x=Math.imul(be,xt),n=(n=Math.imul(be,Nt))+Math.imul(qe,xt)|0,g=Math.imul(qe,Nt),x=x+Math.imul(ht,ke)|0,n=(n=n+Math.imul(ht,$)|0)+Math.imul(Ge,ke)|0,g=g+Math.imul(Ge,$)|0,x=x+Math.imul(Ke,Ae)|0,n=(n=n+Math.imul(Ke,Je)|0)+Math.imul(lt,Ae)|0,g=g+Math.imul(lt,Je)|0,x=x+Math.imul(Pe,Vt)|0,n=(n=n+Math.imul(Pe,ii)|0)+Math.imul(de,Vt)|0,g=g+Math.imul(de,ii)|0,x=x+Math.imul(pe,ot)|0,n=(n=n+Math.imul(pe,ft)|0)+Math.imul(Ve,ot)|0,g=g+Math.imul(Ve,ft)|0,x=x+Math.imul(De,gt)|0,n=(n=n+Math.imul(De,$e)|0)+Math.imul(he,gt)|0,g=g+Math.imul(he,$e)|0,x=x+Math.imul(Oe,vt)|0,n=(n=n+Math.imul(Oe,He)|0)+Math.imul(oe,vt)|0,g=g+Math.imul(oe,He)|0;var Oi=(k+(x=x+Math.imul(ye,At)|0)|0)+((8191&(n=(n=n+Math.imul(ye,Qt)|0)+Math.imul(xe,At)|0))<<13)|0;k=((g=g+Math.imul(xe,Qt)|0)+(n>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,x=Math.imul(be,ke),n=(n=Math.imul(be,$))+Math.imul(qe,ke)|0,g=Math.imul(qe,$),x=x+Math.imul(ht,Ae)|0,n=(n=n+Math.imul(ht,Je)|0)+Math.imul(Ge,Ae)|0,g=g+Math.imul(Ge,Je)|0,x=x+Math.imul(Ke,Vt)|0,n=(n=n+Math.imul(Ke,ii)|0)+Math.imul(lt,Vt)|0,g=g+Math.imul(lt,ii)|0,x=x+Math.imul(Pe,ot)|0,n=(n=n+Math.imul(Pe,ft)|0)+Math.imul(de,ot)|0,g=g+Math.imul(de,ft)|0,x=x+Math.imul(pe,gt)|0,n=(n=n+Math.imul(pe,$e)|0)+Math.imul(Ve,gt)|0,g=g+Math.imul(Ve,$e)|0,x=x+Math.imul(De,vt)|0,n=(n=n+Math.imul(De,He)|0)+Math.imul(he,vt)|0,g=g+Math.imul(he,He)|0;var Qi=(k+(x=x+Math.imul(Oe,At)|0)|0)+((8191&(n=(n=n+Math.imul(Oe,Qt)|0)+Math.imul(oe,At)|0))<<13)|0;k=((g=g+Math.imul(oe,Qt)|0)+(n>>>13)|0)+(Qi>>>26)|0,Qi&=67108863,x=Math.imul(be,Ae),n=(n=Math.imul(be,Je))+Math.imul(qe,Ae)|0,g=Math.imul(qe,Je),x=x+Math.imul(ht,Vt)|0,n=(n=n+Math.imul(ht,ii)|0)+Math.imul(Ge,Vt)|0,g=g+Math.imul(Ge,ii)|0,x=x+Math.imul(Ke,ot)|0,n=(n=n+Math.imul(Ke,ft)|0)+Math.imul(lt,ot)|0,g=g+Math.imul(lt,ft)|0,x=x+Math.imul(Pe,gt)|0,n=(n=n+Math.imul(Pe,$e)|0)+Math.imul(de,gt)|0,g=g+Math.imul(de,$e)|0,x=x+Math.imul(pe,vt)|0,n=(n=n+Math.imul(pe,He)|0)+Math.imul(Ve,vt)|0,g=g+Math.imul(Ve,He)|0;var en=(k+(x=x+Math.imul(De,At)|0)|0)+((8191&(n=(n=n+Math.imul(De,Qt)|0)+Math.imul(he,At)|0))<<13)|0;k=((g=g+Math.imul(he,Qt)|0)+(n>>>13)|0)+(en>>>26)|0,en&=67108863,x=Math.imul(be,Vt),n=(n=Math.imul(be,ii))+Math.imul(qe,Vt)|0,g=Math.imul(qe,ii),x=x+Math.imul(ht,ot)|0,n=(n=n+Math.imul(ht,ft)|0)+Math.imul(Ge,ot)|0,g=g+Math.imul(Ge,ft)|0,x=x+Math.imul(Ke,gt)|0,n=(n=n+Math.imul(Ke,$e)|0)+Math.imul(lt,gt)|0,g=g+Math.imul(lt,$e)|0,x=x+Math.imul(Pe,vt)|0,n=(n=n+Math.imul(Pe,He)|0)+Math.imul(de,vt)|0,g=g+Math.imul(de,He)|0;var Yi=(k+(x=x+Math.imul(pe,At)|0)|0)+((8191&(n=(n=n+Math.imul(pe,Qt)|0)+Math.imul(Ve,At)|0))<<13)|0;k=((g=g+Math.imul(Ve,Qt)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,x=Math.imul(be,ot),n=(n=Math.imul(be,ft))+Math.imul(qe,ot)|0,g=Math.imul(qe,ft),x=x+Math.imul(ht,gt)|0,n=(n=n+Math.imul(ht,$e)|0)+Math.imul(Ge,gt)|0,g=g+Math.imul(Ge,$e)|0,x=x+Math.imul(Ke,vt)|0,n=(n=n+Math.imul(Ke,He)|0)+Math.imul(lt,vt)|0,g=g+Math.imul(lt,He)|0;var Yt=(k+(x=x+Math.imul(Pe,At)|0)|0)+((8191&(n=(n=n+Math.imul(Pe,Qt)|0)+Math.imul(de,At)|0))<<13)|0;k=((g=g+Math.imul(de,Qt)|0)+(n>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,x=Math.imul(be,gt),n=(n=Math.imul(be,$e))+Math.imul(qe,gt)|0,g=Math.imul(qe,$e),x=x+Math.imul(ht,vt)|0,n=(n=n+Math.imul(ht,He)|0)+Math.imul(Ge,vt)|0,g=g+Math.imul(Ge,He)|0;var qt=(k+(x=x+Math.imul(Ke,At)|0)|0)+((8191&(n=(n=n+Math.imul(Ke,Qt)|0)+Math.imul(lt,At)|0))<<13)|0;k=((g=g+Math.imul(lt,Qt)|0)+(n>>>13)|0)+(qt>>>26)|0,qt&=67108863,x=Math.imul(be,vt),n=(n=Math.imul(be,He))+Math.imul(qe,vt)|0,g=Math.imul(qe,He);var _e=(k+(x=x+Math.imul(ht,At)|0)|0)+((8191&(n=(n=n+Math.imul(ht,Qt)|0)+Math.imul(Ge,At)|0))<<13)|0;k=((g=g+Math.imul(Ge,Qt)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863;var dt=(k+(x=Math.imul(be,At))|0)+((8191&(n=(n=Math.imul(be,Qt))+Math.imul(qe,At)|0))<<13)|0;return k=((g=Math.imul(qe,Qt))+(n>>>13)|0)+(dt>>>26)|0,dt&=67108863,I[0]=zi,I[1]=Ni,I[2]=Mi,I[3]=Gi,I[4]=Xe,I[5]=It,I[6]=Se,I[7]=wt,I[8]=Zt,I[9]=si,I[10]=Ai,I[11]=Oi,I[12]=Qi,I[13]=en,I[14]=Yi,I[15]=Yt,I[16]=qt,I[17]=_e,I[18]=dt,0!==k&&(I[19]=k,f.length++),f};function j(M,i,a){return(new Q).mulp(M,i,a)}function Q(M,i){this.x=M,this.y=i}Math.imul||(V=z),s.prototype.mulTo=function(i,a){var f,l=this.length+i.length;return f=10===this.length&&10===i.length?V(this,i,a):l<63?z(this,i,a):l<1024?function Y(M,i,a){a.negative=i.negative^M.negative,a.length=M.length+i.length;for(var f=0,l=0,v=0;v>>26)|0)>>>26,I&=67108863}a.words[v]=k,f=I,I=l}return 0!==f?a.words[v]=f:a.length--,a.strip()}(this,i,a):j(this,i,a),f},Q.prototype.makeRBT=function(i){for(var a=new Array(i),f=s.prototype._countBits(i)-1,l=0;l>=1;return l},Q.prototype.permute=function(i,a,f,l,v,I){for(var k=0;k>>=1)v++;return 1<>>=13),v>>>=13;for(I=2*a;I>=26,a+=l/67108864|0,a+=v>>>26,this.words[f]=67108863&v}return 0!==a&&(this.words[f]=a,this.length++),this},s.prototype.muln=function(i){return this.clone().imuln(i)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(i){var a=function D(M){for(var i=new Array(M.bitLength()),a=0;a>>l}return i}(i);if(0===a.length)return new s(1);for(var f=this,l=0;l=0);var v,a=i%26,f=(i-a)/26,l=67108863>>>26-a<<26-a;if(0!==a){var I=0;for(v=0;v>>26-a}I&&(this.words[v]=I,this.length++)}if(0!==f){for(v=this.length-1;v>=0;v--)this.words[v+f]=this.words[v];for(v=0;v=0),l=a?(a-a%26)/26:0;var v=i%26,I=Math.min((i-v)/26,this.length),k=67108863^67108863>>>v<I)for(this.length-=I,n=0;n=0&&(0!==g||n>=l);n--){var W=0|this.words[n];this.words[n]=g<<26-v|W>>>v,g=W&k}return x&&0!==g&&(x.words[x.length++]=g),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,a,f){return _(0===this.negative),this.iushrn(i,a,f)},s.prototype.shln=function(i){return this.clone().ishln(i)},s.prototype.ushln=function(i){return this.clone().iushln(i)},s.prototype.shrn=function(i){return this.clone().ishrn(i)},s.prototype.ushrn=function(i){return this.clone().iushrn(i)},s.prototype.testn=function(i){_("number"==typeof i&&i>=0);var a=i%26,f=(i-a)/26;return!(this.length<=f||!(this.words[f]&1<=0);var a=i%26,f=(i-a)/26;return _(0===this.negative,"imaskn works only with positive numbers"),this.length<=f?this:(0!==a&&f++,this.length=Math.min(f,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},s.prototype.isubn=function(i){if(_("number"==typeof i),_(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[v+f]=67108863&I}for(;v>26,this.words[v+f]=67108863&I;if(0===k)return this.strip();for(_(-1===k),k=0,v=0;v>26,this.words[v]=67108863&I;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var f,l=this.clone(),v=i,I=0|v.words[v.length-1];0!=(f=26-this._countBits(I))&&(v=v.ushln(f),l.iushln(f),I=0|v.words[v.length-1]);var n,x=l.length-v.length;if("mod"!==a){(n=new s(null)).length=x+1,n.words=new Array(n.length);for(var g=0;g=0;O--){var U=67108864*(0|l.words[v.length+O])+(0|l.words[v.length+O-1]);for(U=Math.min(U/I|0,67108863),l._ishlnsubmul(v,U,O);0!==l.negative;)U--,l.negative=0,l._ishlnsubmul(v,1,O),l.isZero()||(l.negative^=1);n&&(n.words[O]=U)}return n&&n.strip(),l.strip(),"div"!==a&&0!==f&&l.iushrn(f),{div:n||null,mod:l}},s.prototype.divmod=function(i,a,f){return _(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(I=this.neg().divmod(i,a),"mod"!==a&&(l=I.div.neg()),"div"!==a&&(v=I.mod.neg(),f&&0!==v.negative&&v.iadd(i)),{div:l,mod:v}):0===this.negative&&0!==i.negative?(I=this.divmod(i.neg(),a),"mod"!==a&&(l=I.div.neg()),{div:l,mod:I.mod}):this.negative&i.negative?(I=this.neg().divmod(i.neg(),a),"div"!==a&&(v=I.mod.neg(),f&&0!==v.negative&&v.isub(i)),{div:I.div,mod:v}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new s(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new s(this.modn(i.words[0]))}:this._wordDiv(i,a);var l,v,I},s.prototype.div=function(i){return this.divmod(i,"div",!1).div},s.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},s.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},s.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var f=0!==a.div.negative?a.mod.isub(i):a.mod,l=i.ushrn(1),v=i.andln(1),I=f.cmp(l);return I<0||1===v&&0===I?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},s.prototype.modn=function(i){_(i<=67108863);for(var a=(1<<26)%i,f=0,l=this.length-1;l>=0;l--)f=(a*f+(0|this.words[l]))%i;return f},s.prototype.idivn=function(i){_(i<=67108863);for(var a=0,f=this.length-1;f>=0;f--){var l=(0|this.words[f])+67108864*a;this.words[f]=l/i|0,a=l%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){_(0===i.negative),_(!i.isZero());var a=this,f=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),v=new s(0),I=new s(0),k=new s(1),x=0;a.isEven()&&f.isEven();)a.iushrn(1),f.iushrn(1),++x;for(var n=f.clone(),g=a.clone();!a.isZero();){for(var W=0,O=1;!(a.words[0]&O)&&W<26;++W,O<<=1);if(W>0)for(a.iushrn(W);W-- >0;)(l.isOdd()||v.isOdd())&&(l.iadd(n),v.isub(g)),l.iushrn(1),v.iushrn(1);for(var U=0,ge=1;!(f.words[0]&ge)&&U<26;++U,ge<<=1);if(U>0)for(f.iushrn(U);U-- >0;)(I.isOdd()||k.isOdd())&&(I.iadd(n),k.isub(g)),I.iushrn(1),k.iushrn(1);a.cmp(f)>=0?(a.isub(f),l.isub(I),v.isub(k)):(f.isub(a),I.isub(l),k.isub(v))}return{a:I,b:k,gcd:f.iushln(x)}},s.prototype._invmp=function(i){_(0===i.negative),_(!i.isZero());var W,a=this,f=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),v=new s(0),I=f.clone();a.cmpn(1)>0&&f.cmpn(1)>0;){for(var k=0,x=1;!(a.words[0]&x)&&k<26;++k,x<<=1);if(k>0)for(a.iushrn(k);k-- >0;)l.isOdd()&&l.iadd(I),l.iushrn(1);for(var n=0,g=1;!(f.words[0]&g)&&n<26;++n,g<<=1);if(n>0)for(f.iushrn(n);n-- >0;)v.isOdd()&&v.iadd(I),v.iushrn(1);a.cmp(f)>=0?(a.isub(f),l.isub(v)):(f.isub(a),v.isub(l))}return(W=0===a.cmpn(1)?l:v).cmpn(0)<0&&W.iadd(i),W},s.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),f=i.clone();a.negative=0,f.negative=0;for(var l=0;a.isEven()&&f.isEven();l++)a.iushrn(1),f.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;f.isEven();)f.iushrn(1);var v=a.cmp(f);if(v<0){var I=a;a=f,f=I}else if(0===v||0===f.cmpn(1))break;a.isub(f)}return f.iushln(l)},s.prototype.invm=function(i){return this.egcd(i).a.umod(i)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(i){return this.words[0]&i},s.prototype.bincn=function(i){_("number"==typeof i);var a=i%26,f=(i-a)/26,l=1<>>26,this.words[I]=k&=67108863}return 0!==v&&(this.words[I]=v,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var f,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)f=1;else{a&&(i=-i),_(i<=67108863,"Number is too big");var l=0|this.words[0];f=l===i?0:li.length)return 1;if(this.length=0;f--){var l=0|this.words[f],v=0|i.words[f];if(l!==v){lv&&(a=1);break}}return a},s.prototype.gtn=function(i){return 1===this.cmpn(i)},s.prototype.gt=function(i){return 1===this.cmp(i)},s.prototype.gten=function(i){return this.cmpn(i)>=0},s.prototype.gte=function(i){return this.cmp(i)>=0},s.prototype.ltn=function(i){return-1===this.cmpn(i)},s.prototype.lt=function(i){return-1===this.cmp(i)},s.prototype.lten=function(i){return this.cmpn(i)<=0},s.prototype.lte=function(i){return this.cmp(i)<=0},s.prototype.eqn=function(i){return 0===this.cmpn(i)},s.prototype.eq=function(i){return 0===this.cmp(i)},s.red=function(i){return new ce(i)},s.prototype.toRed=function(i){return _(!this.red,"Already a number in reduction context"),_(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(i){return this.red=i,this},s.prototype.forceRed=function(i){return _(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return _(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var J={k256:null,p224:null,p192:null,p25519:null};function ee(M,i){this.name=M,this.p=new s(i,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function me(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function re(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ce(M){if("string"==typeof M){var i=s._prime(M);this.m=i.p,this.prime=i}else _(M.gtn(1),"modulus must be greater than 1"),this.m=M,this.prime=null}function Ce(M){ce.call(this,M),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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 s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var f,a=i;do{this.split(a,this.tmp),f=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(f>this.n);var l=f0?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)},T(me,ee),me.prototype.split=function(i,a){for(var f=4194303,l=Math.min(i.length,9),v=0;v>>22,I=k}i.words[v-10]=I>>>=22,i.length-=0===I&&i.length>10?10:9},me.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,f=0;f>>=26,i.words[f]=v,a=l}return 0!==a&&(i.words[i.length++]=a),i},s._prime=function(i){if(J[i])return J[i];var a;if("k256"===i)a=new me;else if("p224"===i)a=new re;else if("p192"===i)a=new ie;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new se}return J[i]=a,a},ce.prototype._verify1=function(i){_(0===i.negative,"red works only with positives"),_(i.red,"red works only with red numbers")},ce.prototype._verify2=function(i,a){_(0==(i.negative|a.negative),"red works only with positives"),_(i.red&&i.red===a.red,"red works only with red numbers")},ce.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},ce.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},ce.prototype.add=function(i,a){this._verify2(i,a);var f=i.add(a);return f.cmp(this.m)>=0&&f.isub(this.m),f._forceRed(this)},ce.prototype.iadd=function(i,a){this._verify2(i,a);var f=i.iadd(a);return f.cmp(this.m)>=0&&f.isub(this.m),f},ce.prototype.sub=function(i,a){this._verify2(i,a);var f=i.sub(a);return f.cmpn(0)<0&&f.iadd(this.m),f._forceRed(this)},ce.prototype.isub=function(i,a){this._verify2(i,a);var f=i.isub(a);return f.cmpn(0)<0&&f.iadd(this.m),f},ce.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},ce.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},ce.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},ce.prototype.isqr=function(i){return this.imul(i,i.clone())},ce.prototype.sqr=function(i){return this.mul(i,i)},ce.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(_(a%2==1),3===a){var f=this.m.add(new s(1)).iushrn(2);return this.pow(i,f)}for(var l=this.m.subn(1),v=0;!l.isZero()&&0===l.andln(1);)v++,l.iushrn(1);_(!l.isZero());var I=new s(1).toRed(this),k=I.redNeg(),x=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new s(2*n*n).toRed(this);0!==this.pow(n,x).cmp(k);)n.redIAdd(k);for(var g=this.pow(n,l),W=this.pow(i,l.addn(1).iushrn(1)),O=this.pow(i,l),U=v;0!==O.cmp(I);){for(var ge=O,nt=0;0!==ge.cmp(I);nt++)ge=ge.redSqr();_(nt=0;v--){for(var g=a.words[v],W=n-1;W>=0;W--){var O=g>>W&1;I!==l[0]&&(I=this.sqr(I)),0!==O||0!==k?(k<<=1,k|=O,(4==++x||0===v&&0===W)&&(I=this.mul(I,l[k]),x=0,k=0)):x=0}n=26}return I},ce.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},ce.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new Ce(i)},T(Ce,ce),Ce.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},Ce.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},Ce.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var f=i.imul(a),l=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=f.isub(l).iushrn(this.shift),I=v;return v.cmp(this.m)>=0?I=v.isub(this.m):v.cmpn(0)<0&&(I=v.iadd(this.m)),I._forceRed(this)},Ce.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new s(0)._forceRed(this);var f=i.mul(a),l=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=f.isub(l).iushrn(this.shift),I=v;return v.cmp(this.m)>=0?I=v.isub(this.m):v.cmpn(0)<0&&(I=v.iadd(this.m)),I._forceRed(this)},Ce.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(We=m.nmd(We),this)},4901:We=>{"use strict";var q={single_source_shortest_paths:function(m,t,e){var _={},T={};T[t]=0;var y,h,P,d,w,L,s=q.PriorityQueue.make();for(s.push(t,0);!s.empty();)for(P in d=(y=s.pop()).cost,w=m[h=y.value]||{})w.hasOwnProperty(P)&&(L=d+w[P],(typeof T[P]>"u"||T[P]>L)&&(T[P]=L,s.push(P,L),_[P]=h));if(typeof e<"u"&&typeof T[e]>"u"){var V=["Could not find a path from ",t," to ",e,"."].join("");throw new Error(V)}return _},extract_shortest_path_from_predecessor_list:function(m,t){for(var e=[],_=t;_;)e.push(_),_=m[_];return e.reverse(),e},find_path:function(m,t,e){var _=q.single_source_shortest_paths(m,t,e);return q.extract_shortest_path_from_predecessor_list(_,e)},PriorityQueue:{make:function(m){var _,t=q.PriorityQueue,e={};for(_ in m=m||{},t)t.hasOwnProperty(_)&&(e[_]=t[_]);return e.queue=[],e.sorter=m.sorter||t.default_sorter,e},default_sorter:function(m,t){return m.cost-t.cost},push:function(m,t){this.queue.push({value:m,cost:t}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};We.exports=q},7715:(We,q,m)=>{"use strict";var t=q;t.version=m(8597).i8,t.utils=m(1970),t.rand=m(7950),t.curve=m(6270),t.curves=m(2916),t.ec=m(7626),t.eddsa=m(1885)},7902:(We,q,m)=>{"use strict";var t=m(7433),e=m(1970),_=e.getNAF,T=e.getJSF,s=e.assert;function y(P,d){this.type=P,this.p=new t(d.p,16),this.red=d.prime?t.red(d.prime):t.mont(this.p),this.zero=new t(0).toRed(this.red),this.one=new t(1).toRed(this.red),this.two=new t(2).toRed(this.red),this.n=d.n&&new t(d.n,16),this.g=d.g&&this.pointFromJSON(d.g,d.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var w=this.n&&this.p.div(this.n);!w||w.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function h(P,d){this.curve=P,this.type=d,this.precomputed=null}We.exports=y,y.prototype.point=function(){throw new Error("Not implemented")},y.prototype.validate=function(){throw new Error("Not implemented")},y.prototype._fixedNafMul=function(d,w){s(d.precomputed);var C=d._getDoubles(),L=_(w,1,this._bitLength),D=(1<=V;j--)Y=(Y<<1)+L[j];z.push(Y)}for(var Q=this.jpoint(null,null,null),J=this.jpoint(null,null,null),ee=D;ee>0;ee--){for(V=0;V=0;Y--){for(var j=0;Y>=0&&0===z[Y];Y--)j++;if(Y>=0&&j++,V=V.dblp(j),Y<0)break;var Q=z[Y];s(0!==Q),V="affine"===d.type?V.mixedAdd(Q>0?D[Q-1>>1]:D[-Q-1>>1].neg()):V.add(Q>0?D[Q-1>>1]:D[-Q-1>>1].neg())}return"affine"===d.type?V.toP():V},y.prototype._wnafMulAdd=function(d,w,C,L,D){var Q,J,ee,z=this._wnafT1,V=this._wnafT2,Y=this._wnafT3,j=0;for(Q=0;Q=1;Q-=2){var re=Q-1,ie=Q;if(1===z[re]&&1===z[ie]){var se=[w[re],null,null,w[ie]];0===w[re].y.cmp(w[ie].y)?(se[1]=w[re].add(w[ie]),se[2]=w[re].toJ().mixedAdd(w[ie].neg())):0===w[re].y.cmp(w[ie].y.redNeg())?(se[1]=w[re].toJ().mixedAdd(w[ie]),se[2]=w[re].add(w[ie].neg())):(se[1]=w[re].toJ().mixedAdd(w[ie]),se[2]=w[re].toJ().mixedAdd(w[ie].neg()));var ce=[-3,-1,-5,-7,0,7,5,1,3],Ce=T(C[re],C[ie]);for(j=Math.max(Ce[0].length,j),Y[re]=new Array(j),Y[ie]=new Array(j),J=0;J=0;Q--){for(var l=0;Q>=0;){var v=!0;for(J=0;J=0&&l++,a=a.dblp(l),Q<0)break;for(J=0;J0?ee=V[J][I-1>>1]:I<0&&(ee=V[J][-I-1>>1].neg()),a="affine"===ee.type?a.mixedAdd(ee):a.add(ee))}}for(Q=0;Q=Math.ceil((d.bitLength()+1)/w.step)},h.prototype._getDoubles=function(d,w){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var C=[this],L=this,D=0;D{"use strict";var t=m(1970),e=m(7433),_=m(3894),T=m(7902),s=t.assert;function y(P){this.twisted=1!=(0|P.a),this.mOneA=this.twisted&&-1==(0|P.a),this.extended=this.mOneA,T.call(this,"edwards",P),this.a=new e(P.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new e(P.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new e(P.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|P.c)}function h(P,d,w,C,L){T.BasePoint.call(this,P,"projective"),null===d&&null===w&&null===C?(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 e(d,16),this.y=new e(w,16),this.z=C?new e(C,16):this.curve.one,this.t=L&&new e(L,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,T),We.exports=y,y.prototype._mulA=function(d){return this.mOneA?d.redNeg():this.a.redMul(d)},y.prototype._mulC=function(d){return this.oneC?d:this.c.redMul(d)},y.prototype.jpoint=function(d,w,C,L){return this.point(d,w,C,L)},y.prototype.pointFromX=function(d,w){(d=new e(d,16)).red||(d=d.toRed(this.red));var C=d.redSqr(),L=this.c2.redSub(this.a.redMul(C)),D=this.one.redSub(this.c2.redMul(this.d).redMul(C)),z=L.redMul(D.redInvm()),V=z.redSqrt();if(0!==V.redSqr().redSub(z).cmp(this.zero))throw new Error("invalid point");var Y=V.fromRed().isOdd();return(w&&!Y||!w&&Y)&&(V=V.redNeg()),this.point(d,V)},y.prototype.pointFromY=function(d,w){(d=new e(d,16)).red||(d=d.toRed(this.red));var C=d.redSqr(),L=C.redSub(this.c2),D=C.redMul(this.d).redMul(this.c2).redSub(this.a),z=L.redMul(D.redInvm());if(0===z.cmp(this.zero)){if(w)throw new Error("invalid point");return this.point(this.zero,d)}var V=z.redSqrt();if(0!==V.redSqr().redSub(z).cmp(this.zero))throw new Error("invalid point");return V.fromRed().isOdd()!==w&&(V=V.redNeg()),this.point(V,d)},y.prototype.validate=function(d){if(d.isInfinity())return!0;d.normalize();var w=d.x.redSqr(),C=d.y.redSqr(),L=w.redMul(this.a).redAdd(C),D=this.c2.redMul(this.one.redAdd(this.d.redMul(w).redMul(C)));return 0===L.cmp(D)},_(h,T.BasePoint),y.prototype.pointFromJSON=function(d){return h.fromJSON(this,d)},y.prototype.point=function(d,w,C,L){return new h(this,d,w,C,L)},h.fromJSON=function(d,w){return new h(d,w[0],w[1],w[2])},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},h.prototype._extDbl=function(){var d=this.x.redSqr(),w=this.y.redSqr(),C=this.z.redSqr();C=C.redIAdd(C);var L=this.curve._mulA(d),D=this.x.redAdd(this.y).redSqr().redISub(d).redISub(w),z=L.redAdd(w),V=z.redSub(C),Y=L.redSub(w),j=D.redMul(V),Q=z.redMul(Y),J=D.redMul(Y),ee=V.redMul(z);return this.curve.point(j,Q,ee,J)},h.prototype._projDbl=function(){var L,D,z,V,Y,j,d=this.x.redAdd(this.y).redSqr(),w=this.x.redSqr(),C=this.y.redSqr();if(this.curve.twisted){var Q=(V=this.curve._mulA(w)).redAdd(C);this.zOne?(L=d.redSub(w).redSub(C).redMul(Q.redSub(this.curve.two)),D=Q.redMul(V.redSub(C)),z=Q.redSqr().redSub(Q).redSub(Q)):(Y=this.z.redSqr(),j=Q.redSub(Y).redISub(Y),L=d.redSub(w).redISub(C).redMul(j),D=Q.redMul(V.redSub(C)),z=Q.redMul(j))}else V=w.redAdd(C),Y=this.curve._mulC(this.z).redSqr(),j=V.redSub(Y).redSub(Y),L=this.curve._mulC(d.redISub(V)).redMul(j),D=this.curve._mulC(V).redMul(w.redISub(C)),z=V.redMul(j);return this.curve.point(L,D,z)},h.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},h.prototype._extAdd=function(d){var w=this.y.redSub(this.x).redMul(d.y.redSub(d.x)),C=this.y.redAdd(this.x).redMul(d.y.redAdd(d.x)),L=this.t.redMul(this.curve.dd).redMul(d.t),D=this.z.redMul(d.z.redAdd(d.z)),z=C.redSub(w),V=D.redSub(L),Y=D.redAdd(L),j=C.redAdd(w),Q=z.redMul(V),J=Y.redMul(j),ee=z.redMul(j),me=V.redMul(Y);return this.curve.point(Q,J,me,ee)},h.prototype._projAdd=function(d){var J,ee,w=this.z.redMul(d.z),C=w.redSqr(),L=this.x.redMul(d.x),D=this.y.redMul(d.y),z=this.curve.d.redMul(L).redMul(D),V=C.redSub(z),Y=C.redAdd(z),j=this.x.redAdd(this.y).redMul(d.x.redAdd(d.y)).redISub(L).redISub(D),Q=w.redMul(V).redMul(j);return this.curve.twisted?(J=w.redMul(Y).redMul(D.redSub(this.curve._mulA(L))),ee=V.redMul(Y)):(J=w.redMul(Y).redMul(D.redSub(L)),ee=this.curve._mulC(V).redMul(Y)),this.curve.point(Q,J,ee)},h.prototype.add=function(d){return this.isInfinity()?d:d.isInfinity()?this:this.curve.extended?this._extAdd(d):this._projAdd(d)},h.prototype.mul=function(d){return this._hasDoubles(d)?this.curve._fixedNafMul(this,d):this.curve._wnafMul(this,d)},h.prototype.mulAdd=function(d,w,C){return this.curve._wnafMulAdd(1,[this,w],[d,C],2,!1)},h.prototype.jmulAdd=function(d,w,C){return this.curve._wnafMulAdd(1,[this,w],[d,C],2,!0)},h.prototype.normalize=function(){if(this.zOne)return this;var d=this.z.redInvm();return this.x=this.x.redMul(d),this.y=this.y.redMul(d),this.t&&(this.t=this.t.redMul(d)),this.z=this.curve.one,this.zOne=!0,this},h.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},h.prototype.getX=function(){return this.normalize(),this.x.fromRed()},h.prototype.getY=function(){return this.normalize(),this.y.fromRed()},h.prototype.eq=function(d){return this===d||0===this.getX().cmp(d.getX())&&0===this.getY().cmp(d.getY())},h.prototype.eqXToP=function(d){var w=d.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(w))return!0;for(var C=d.clone(),L=this.curve.redN.redMul(this.z);;){if(C.iadd(this.curve.n),C.cmp(this.curve.p)>=0)return!1;if(w.redIAdd(L),0===this.x.cmp(w))return!0}},h.prototype.toP=h.prototype.normalize,h.prototype.mixedAdd=h.prototype.add},6270:(We,q,m)=>{"use strict";var t=q;t.base=m(7902),t.short=m(1781),t.mont=m(7064),t.edwards=m(3835)},7064:(We,q,m)=>{"use strict";var t=m(7433),e=m(3894),_=m(7902),T=m(1970);function s(h){_.call(this,"mont",h),this.a=new t(h.a,16).toRed(this.red),this.b=new t(h.b,16).toRed(this.red),this.i4=new t(4).toRed(this.red).redInvm(),this.two=new t(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function y(h,P,d){_.BasePoint.call(this,h,"projective"),null===P&&null===d?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new t(P,16),this.z=new t(d,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}e(s,_),We.exports=s,s.prototype.validate=function(P){var d=P.normalize().x,w=d.redSqr(),C=w.redMul(d).redAdd(w.redMul(this.a)).redAdd(d);return 0===C.redSqrt().redSqr().cmp(C)},e(y,_.BasePoint),s.prototype.decodePoint=function(P,d){return this.point(T.toArray(P,d),1)},s.prototype.point=function(P,d){return new y(this,P,d)},s.prototype.pointFromJSON=function(P){return y.fromJSON(this,P)},y.prototype.precompute=function(){},y.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},y.fromJSON=function(P,d){return new y(P,d[0],d[1]||P.one)},y.prototype.inspect=function(){return this.isInfinity()?"":""},y.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},y.prototype.dbl=function(){var d=this.x.redAdd(this.z).redSqr(),C=this.x.redSub(this.z).redSqr(),L=d.redSub(C),D=d.redMul(C),z=L.redMul(C.redAdd(this.curve.a24.redMul(L)));return this.curve.point(D,z)},y.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},y.prototype.diffAdd=function(P,d){var w=this.x.redAdd(this.z),C=this.x.redSub(this.z),L=P.x.redAdd(P.z),z=P.x.redSub(P.z).redMul(w),V=L.redMul(C),Y=d.z.redMul(z.redAdd(V).redSqr()),j=d.x.redMul(z.redISub(V).redSqr());return this.curve.point(Y,j)},y.prototype.mul=function(P){for(var d=P.clone(),w=this,C=this.curve.point(null,null),D=[];0!==d.cmpn(0);d.iushrn(1))D.push(d.andln(1));for(var z=D.length-1;z>=0;z--)0===D[z]?(w=w.diffAdd(C,this),C=C.dbl()):(C=w.diffAdd(C,this),w=w.dbl());return C},y.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},y.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},y.prototype.eq=function(P){return 0===this.getX().cmp(P.getX())},y.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},y.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},1781:(We,q,m)=>{"use strict";var t=m(1970),e=m(7433),_=m(3894),T=m(7902),s=t.assert;function y(d){T.call(this,"short",d),this.a=new e(d.a,16).toRed(this.red),this.b=new e(d.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(d),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function h(d,w,C,L){T.BasePoint.call(this,d,"affine"),null===w&&null===C?(this.x=null,this.y=null,this.inf=!0):(this.x=new e(w,16),this.y=new e(C,16),L&&(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 P(d,w,C,L){T.BasePoint.call(this,d,"jacobian"),null===w&&null===C&&null===L?(this.x=this.curve.one,this.y=this.curve.one,this.z=new e(0)):(this.x=new e(w,16),this.y=new e(C,16),this.z=new e(L,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,T),We.exports=y,y.prototype._getEndomorphism=function(w){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var C,L;if(w.beta)C=new e(w.beta,16).toRed(this.red);else{var D=this._getEndoRoots(this.p);C=(C=D[0].cmp(D[1])<0?D[0]:D[1]).toRed(this.red)}if(w.lambda)L=new e(w.lambda,16);else{var z=this._getEndoRoots(this.n);0===this.g.mul(z[0]).x.cmp(this.g.x.redMul(C))?L=z[0]:s(0===this.g.mul(L=z[1]).x.cmp(this.g.x.redMul(C)))}return{beta:C,lambda:L,basis:w.basis?w.basis.map(function(Y){return{a:new e(Y.a,16),b:new e(Y.b,16)}}):this._getEndoBasis(L)}}},y.prototype._getEndoRoots=function(w){var C=w===this.p?this.red:e.mont(w),L=new e(2).toRed(C).redInvm(),D=L.redNeg(),z=new e(3).toRed(C).redNeg().redSqrt().redMul(L);return[D.redAdd(z).fromRed(),D.redSub(z).fromRed()]},y.prototype._getEndoBasis=function(w){for(var Q,J,ee,me,re,ie,se,Ce,M,C=this.n.ushrn(Math.floor(this.n.bitLength()/2)),L=w,D=this.n.clone(),z=new e(1),V=new e(0),Y=new e(0),j=new e(1),ce=0;0!==L.cmpn(0);){var i=D.div(L);Ce=D.sub(i.mul(L)),M=Y.sub(i.mul(z));var a=j.sub(i.mul(V));if(!ee&&Ce.cmp(C)<0)Q=se.neg(),J=z,ee=Ce.neg(),me=M;else if(ee&&2==++ce)break;se=Ce,D=L,L=Ce,Y=z,z=M,j=V,V=a}re=Ce.neg(),ie=M;var f=ee.sqr().add(me.sqr());return re.sqr().add(ie.sqr()).cmp(f)>=0&&(re=Q,ie=J),ee.negative&&(ee=ee.neg(),me=me.neg()),re.negative&&(re=re.neg(),ie=ie.neg()),[{a:ee,b:me},{a:re,b:ie}]},y.prototype._endoSplit=function(w){var C=this.endo.basis,L=C[0],D=C[1],z=D.b.mul(w).divRound(this.n),V=L.b.neg().mul(w).divRound(this.n),Y=z.mul(L.a),j=V.mul(D.a),Q=z.mul(L.b),J=V.mul(D.b);return{k1:w.sub(Y).sub(j),k2:Q.add(J).neg()}},y.prototype.pointFromX=function(w,C){(w=new e(w,16)).red||(w=w.toRed(this.red));var L=w.redSqr().redMul(w).redIAdd(w.redMul(this.a)).redIAdd(this.b),D=L.redSqrt();if(0!==D.redSqr().redSub(L).cmp(this.zero))throw new Error("invalid point");var z=D.fromRed().isOdd();return(C&&!z||!C&&z)&&(D=D.redNeg()),this.point(w,D)},y.prototype.validate=function(w){if(w.inf)return!0;var C=w.x,L=w.y,D=this.a.redMul(C),z=C.redSqr().redMul(C).redIAdd(D).redIAdd(this.b);return 0===L.redSqr().redISub(z).cmpn(0)},y.prototype._endoWnafMulAdd=function(w,C,L){for(var D=this._endoWnafT1,z=this._endoWnafT2,V=0;V":""},h.prototype.isInfinity=function(){return this.inf},h.prototype.add=function(w){if(this.inf)return w;if(w.inf)return this;if(this.eq(w))return this.dbl();if(this.neg().eq(w))return this.curve.point(null,null);if(0===this.x.cmp(w.x))return this.curve.point(null,null);var C=this.y.redSub(w.y);0!==C.cmpn(0)&&(C=C.redMul(this.x.redSub(w.x).redInvm()));var L=C.redSqr().redISub(this.x).redISub(w.x),D=C.redMul(this.x.redSub(L)).redISub(this.y);return this.curve.point(L,D)},h.prototype.dbl=function(){if(this.inf)return this;var w=this.y.redAdd(this.y);if(0===w.cmpn(0))return this.curve.point(null,null);var C=this.curve.a,L=this.x.redSqr(),D=w.redInvm(),z=L.redAdd(L).redIAdd(L).redIAdd(C).redMul(D),V=z.redSqr().redISub(this.x.redAdd(this.x)),Y=z.redMul(this.x.redSub(V)).redISub(this.y);return this.curve.point(V,Y)},h.prototype.getX=function(){return this.x.fromRed()},h.prototype.getY=function(){return this.y.fromRed()},h.prototype.mul=function(w){return w=new e(w,16),this.isInfinity()?this:this._hasDoubles(w)?this.curve._fixedNafMul(this,w):this.curve.endo?this.curve._endoWnafMulAdd([this],[w]):this.curve._wnafMul(this,w)},h.prototype.mulAdd=function(w,C,L){var D=[this,C],z=[w,L];return this.curve.endo?this.curve._endoWnafMulAdd(D,z):this.curve._wnafMulAdd(1,D,z,2)},h.prototype.jmulAdd=function(w,C,L){var D=[this,C],z=[w,L];return this.curve.endo?this.curve._endoWnafMulAdd(D,z,!0):this.curve._wnafMulAdd(1,D,z,2,!0)},h.prototype.eq=function(w){return this===w||this.inf===w.inf&&(this.inf||0===this.x.cmp(w.x)&&0===this.y.cmp(w.y))},h.prototype.neg=function(w){if(this.inf)return this;var C=this.curve.point(this.x,this.y.redNeg());if(w&&this.precomputed){var L=this.precomputed,D=function(z){return z.neg()};C.precomputed={naf:L.naf&&{wnd:L.naf.wnd,points:L.naf.points.map(D)},doubles:L.doubles&&{step:L.doubles.step,points:L.doubles.points.map(D)}}}return C},h.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},_(P,T.BasePoint),y.prototype.jpoint=function(w,C,L){return new P(this,w,C,L)},P.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var w=this.z.redInvm(),C=w.redSqr(),L=this.x.redMul(C),D=this.y.redMul(C).redMul(w);return this.curve.point(L,D)},P.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},P.prototype.add=function(w){if(this.isInfinity())return w;if(w.isInfinity())return this;var C=w.z.redSqr(),L=this.z.redSqr(),D=this.x.redMul(C),z=w.x.redMul(L),V=this.y.redMul(C.redMul(w.z)),Y=w.y.redMul(L.redMul(this.z)),j=D.redSub(z),Q=V.redSub(Y);if(0===j.cmpn(0))return 0!==Q.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var J=j.redSqr(),ee=J.redMul(j),me=D.redMul(J),re=Q.redSqr().redIAdd(ee).redISub(me).redISub(me),ie=Q.redMul(me.redISub(re)).redISub(V.redMul(ee)),se=this.z.redMul(w.z).redMul(j);return this.curve.jpoint(re,ie,se)},P.prototype.mixedAdd=function(w){if(this.isInfinity())return w.toJ();if(w.isInfinity())return this;var C=this.z.redSqr(),L=this.x,D=w.x.redMul(C),z=this.y,V=w.y.redMul(C).redMul(this.z),Y=L.redSub(D),j=z.redSub(V);if(0===Y.cmpn(0))return 0!==j.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var Q=Y.redSqr(),J=Q.redMul(Y),ee=L.redMul(Q),me=j.redSqr().redIAdd(J).redISub(ee).redISub(ee),re=j.redMul(ee.redISub(me)).redISub(z.redMul(J)),ie=this.z.redMul(Y);return this.curve.jpoint(me,re,ie)},P.prototype.dblp=function(w){if(0===w)return this;if(this.isInfinity())return this;if(!w)return this.dbl();var C;if(this.curve.zeroA||this.curve.threeA){var L=this;for(C=0;C=0)return!1;if(L.redIAdd(z),0===this.x.cmp(L))return!0}},P.prototype.inspect=function(){return this.isInfinity()?"":""},P.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},2916:(We,q,m)=>{"use strict";var P,t=q,e=m(7084),_=m(6270),s=m(1970).assert;function y(d){this.curve="short"===d.type?new _.short(d):"edwards"===d.type?new _.edwards(d):new _.mont(d),this.g=this.curve.g,this.n=this.curve.n,this.hash=d.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function h(d,w){Object.defineProperty(t,d,{configurable:!0,enumerable:!0,get:function(){var C=new y(w);return Object.defineProperty(t,d,{configurable:!0,enumerable:!0,value:C}),C}})}t.PresetCurve=y,h("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:e.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),h("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:e.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),h("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:e.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),h("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:e.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"]}),h("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:e.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"]}),h("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:e.sha256,gRed:!1,g:["9"]}),h("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:e.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{P=m(5150)}catch{P=void 0}h("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:e.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",P]})},7626:(We,q,m)=>{"use strict";var t=m(7433),e=m(2438),_=m(1970),T=m(2916),s=m(7950),y=_.assert,h=m(1259),P=m(5957);function d(w){if(!(this instanceof d))return new d(w);"string"==typeof w&&(y(Object.prototype.hasOwnProperty.call(T,w),"Unknown curve "+w),w=T[w]),w instanceof T.PresetCurve&&(w={curve:w}),this.curve=w.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=w.curve.g,this.g.precompute(w.curve.n.bitLength()+1),this.hash=w.hash||w.curve.hash}We.exports=d,d.prototype.keyPair=function(C){return new h(this,C)},d.prototype.keyFromPrivate=function(C,L){return h.fromPrivate(this,C,L)},d.prototype.keyFromPublic=function(C,L){return h.fromPublic(this,C,L)},d.prototype.genKeyPair=function(C){C||(C={});for(var L=new e({hash:this.hash,pers:C.pers,persEnc:C.persEnc||"utf8",entropy:C.entropy||s(this.hash.hmacStrength),entropyEnc:C.entropy&&C.entropyEnc||"utf8",nonce:this.n.toArray()}),D=this.n.byteLength(),z=this.n.sub(new t(2));;){var V=new t(L.generate(D));if(!(V.cmp(z)>0))return V.iaddn(1),this.keyFromPrivate(V)}},d.prototype._truncateToN=function(C,L){var D=8*C.byteLength()-this.n.bitLength();return D>0&&(C=C.ushrn(D)),!L&&C.cmp(this.n)>=0?C.sub(this.n):C},d.prototype.sign=function(C,L,D,z){"object"==typeof D&&(z=D,D=null),z||(z={}),L=this.keyFromPrivate(L,D),C=this._truncateToN(new t(C,16));for(var V=this.n.byteLength(),Y=L.getPrivate().toArray("be",V),j=C.toArray("be",V),Q=new e({hash:this.hash,entropy:Y,nonce:j,pers:z.pers,persEnc:z.persEnc||"utf8"}),J=this.n.sub(new t(1)),ee=0;;ee++){var me=z.k?z.k(ee):new t(Q.generate(this.n.byteLength()));if(!((me=this._truncateToN(me,!0)).cmpn(1)<=0||me.cmp(J)>=0)){var re=this.g.mul(me);if(!re.isInfinity()){var ie=re.getX(),se=ie.umod(this.n);if(0!==se.cmpn(0)){var ce=me.invm(this.n).mul(se.mul(L.getPrivate()).iadd(C));if(0!==(ce=ce.umod(this.n)).cmpn(0)){var Ce=(re.getY().isOdd()?1:0)|(0!==ie.cmp(se)?2:0);return z.canonical&&ce.cmp(this.nh)>0&&(ce=this.n.sub(ce),Ce^=1),new P({r:se,s:ce,recoveryParam:Ce})}}}}}},d.prototype.verify=function(C,L,D,z){C=this._truncateToN(new t(C,16)),D=this.keyFromPublic(D,z);var V=(L=new P(L,"hex")).r,Y=L.s;if(V.cmpn(1)<0||V.cmp(this.n)>=0||Y.cmpn(1)<0||Y.cmp(this.n)>=0)return!1;var ee,j=Y.invm(this.n),Q=j.mul(C).umod(this.n),J=j.mul(V).umod(this.n);return this.curve._maxwellTrick?!(ee=this.g.jmulAdd(Q,D.getPublic(),J)).isInfinity()&&ee.eqXToP(V):!(ee=this.g.mulAdd(Q,D.getPublic(),J)).isInfinity()&&0===ee.getX().umod(this.n).cmp(V)},d.prototype.recoverPubKey=function(w,C,L,D){y((3&L)===L,"The recovery param is more than two bits"),C=new P(C,D);var z=this.n,V=new t(w),Y=C.r,j=C.s,Q=1&L,J=L>>1;if(Y.cmp(this.curve.p.umod(this.curve.n))>=0&&J)throw new Error("Unable to find sencond key candinate");Y=this.curve.pointFromX(J?Y.add(this.curve.n):Y,Q);var ee=C.r.invm(z),me=z.sub(V).mul(ee).umod(z),re=j.mul(ee).umod(z);return this.g.mulAdd(me,Y,re)},d.prototype.getKeyRecoveryParam=function(w,C,L,D){if(null!==(C=new P(C,D)).recoveryParam)return C.recoveryParam;for(var z=0;z<4;z++){var V;try{V=this.recoverPubKey(w,C,z)}catch{continue}if(V.eq(L))return z}throw new Error("Unable to find valid recovery factor")}},1259:(We,q,m)=>{"use strict";var t=m(7433),_=m(1970).assert;function T(s,y){this.ec=s,this.priv=null,this.pub=null,y.priv&&this._importPrivate(y.priv,y.privEnc),y.pub&&this._importPublic(y.pub,y.pubEnc)}We.exports=T,T.fromPublic=function(y,h,P){return h instanceof T?h:new T(y,{pub:h,pubEnc:P})},T.fromPrivate=function(y,h,P){return h instanceof T?h:new T(y,{priv:h,privEnc:P})},T.prototype.validate=function(){var y=this.getPublic();return y.isInfinity()?{result:!1,reason:"Invalid public key"}:y.validate()?y.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"}},T.prototype.getPublic=function(y,h){return"string"==typeof y&&(h=y,y=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),h?this.pub.encode(h,y):this.pub},T.prototype.getPrivate=function(y){return"hex"===y?this.priv.toString(16,2):this.priv},T.prototype._importPrivate=function(y,h){this.priv=new t(y,h||16),this.priv=this.priv.umod(this.ec.curve.n)},T.prototype._importPublic=function(y,h){if(y.x||y.y)return"mont"===this.ec.curve.type?_(y.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&_(y.x&&y.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(y.x,y.y));this.pub=this.ec.curve.decodePoint(y,h)},T.prototype.derive=function(y){return y.validate()||_(y.validate(),"public point not validated"),y.mul(this.priv).getX()},T.prototype.sign=function(y,h,P){return this.ec.sign(y,this,h,P)},T.prototype.verify=function(y,h){return this.ec.verify(y,h,this)},T.prototype.inspect=function(){return""}},5957:(We,q,m)=>{"use strict";var t=m(7433),e=m(1970),_=e.assert;function T(d,w){if(d instanceof T)return d;this._importDER(d,w)||(_(d.r&&d.s,"Signature without r or s"),this.r=new t(d.r,16),this.s=new t(d.s,16),this.recoveryParam=void 0===d.recoveryParam?null:d.recoveryParam)}function s(){this.place=0}function y(d,w){var C=d[w.place++];if(!(128&C))return C;var L=15&C;if(0===L||L>4)return!1;for(var D=0,z=0,V=w.place;z>>=0;return!(D<=127)&&(w.place=V,D)}function h(d){for(var w=0,C=d.length-1;!d[w]&&!(128&d[w+1])&&w>>3);for(d.push(128|C);--C;)d.push(w>>>(C<<3)&255);d.push(w)}}We.exports=T,T.prototype._importDER=function(w,C){w=e.toArray(w,C);var L=new s;if(48!==w[L.place++])return!1;var D=y(w,L);if(!1===D||D+L.place!==w.length||2!==w[L.place++])return!1;var z=y(w,L);if(!1===z)return!1;var V=w.slice(L.place,z+L.place);if(L.place+=z,2!==w[L.place++])return!1;var Y=y(w,L);if(!1===Y||w.length!==Y+L.place)return!1;var j=w.slice(L.place,Y+L.place);if(0===V[0]){if(!(128&V[1]))return!1;V=V.slice(1)}if(0===j[0]){if(!(128&j[1]))return!1;j=j.slice(1)}return this.r=new t(V),this.s=new t(j),this.recoveryParam=null,!0},T.prototype.toDER=function(w){var C=this.r.toArray(),L=this.s.toArray();for(128&C[0]&&(C=[0].concat(C)),128&L[0]&&(L=[0].concat(L)),C=h(C),L=h(L);!(L[0]||128&L[1]);)L=L.slice(1);var D=[2];P(D,C.length),(D=D.concat(C)).push(2),P(D,L.length);var z=D.concat(L),V=[48];return P(V,z.length),V=V.concat(z),e.encode(V,w)}},1885:(We,q,m)=>{"use strict";var t=m(7084),e=m(2916),_=m(1970),T=_.assert,s=_.parseBytes,y=m(7535),h=m(8241);function P(d){if(T("ed25519"===d,"only tested with ed25519 so far"),!(this instanceof P))return new P(d);this.curve=d=e[d].curve,this.g=d.g,this.g.precompute(d.n.bitLength()+1),this.pointClass=d.point().constructor,this.encodingLength=Math.ceil(d.n.bitLength()/8),this.hash=t.sha512}We.exports=P,P.prototype.sign=function(w,C){w=s(w);var L=this.keyFromSecret(C),D=this.hashInt(L.messagePrefix(),w),z=this.g.mul(D),V=this.encodePoint(z),Y=this.hashInt(V,L.pubBytes(),w).mul(L.priv()),j=D.add(Y).umod(this.curve.n);return this.makeSignature({R:z,S:j,Rencoded:V})},P.prototype.verify=function(w,C,L){w=s(w),C=this.makeSignature(C);var D=this.keyFromPublic(L),z=this.hashInt(C.Rencoded(),D.pubBytes(),w),V=this.g.mul(C.S());return C.R().add(D.pub().mul(z)).eq(V)},P.prototype.hashInt=function(){for(var w=this.hash(),C=0;C{"use strict";var t=m(1970),e=t.assert,_=t.parseBytes,T=t.cachedProperty;function s(y,h){this.eddsa=y,this._secret=_(h.secret),y.isPoint(h.pub)?this._pub=h.pub:this._pubBytes=_(h.pub)}s.fromPublic=function(h,P){return P instanceof s?P:new s(h,{pub:P})},s.fromSecret=function(h,P){return P instanceof s?P:new s(h,{secret:P})},s.prototype.secret=function(){return this._secret},T(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),T(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),T(s,"privBytes",function(){var h=this.eddsa,P=this.hash(),d=h.encodingLength-1,w=P.slice(0,h.encodingLength);return w[0]&=248,w[d]&=127,w[d]|=64,w}),T(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),T(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),T(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(h){return e(this._secret,"KeyPair can only verify"),this.eddsa.sign(h,this)},s.prototype.verify=function(h,P){return this.eddsa.verify(h,P,this)},s.prototype.getSecret=function(h){return e(this._secret,"KeyPair is public only"),t.encode(this.secret(),h)},s.prototype.getPublic=function(h){return t.encode(this.pubBytes(),h)},We.exports=s},8241:(We,q,m)=>{"use strict";var t=m(7433),e=m(1970),_=e.assert,T=e.cachedProperty,s=e.parseBytes;function y(h,P){this.eddsa=h,"object"!=typeof P&&(P=s(P)),Array.isArray(P)&&(P={R:P.slice(0,h.encodingLength),S:P.slice(h.encodingLength)}),_(P.R&&P.S,"Signature without R or S"),h.isPoint(P.R)&&(this._R=P.R),P.S instanceof t&&(this._S=P.S),this._Rencoded=Array.isArray(P.R)?P.R:P.Rencoded,this._Sencoded=Array.isArray(P.S)?P.S:P.Sencoded}T(y,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),T(y,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),T(y,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),T(y,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),y.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},y.prototype.toHex=function(){return e.encode(this.toBytes(),"hex").toUpperCase()},We.exports=y},5150:We=>{We.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:(We,q,m)=>{"use strict";var t=q,e=m(7433),_=m(2391),T=m(8195);t.assert=_,t.toArray=T.toArray,t.zero2=T.zero2,t.toHex=T.toHex,t.encode=T.encode,t.getNAF=function s(w,C,L){var D=new Array(Math.max(w.bitLength(),L)+1);D.fill(0);for(var z=1<(z>>1)-1?(z>>1)-Q:Q):j=0,D[Y]=j,V.iushrn(1)}return D},t.getJSF=function y(w,C){var L=[[],[]];w=w.clone(),C=C.clone();for(var V,D=0,z=0;w.cmpn(-D)>0||C.cmpn(-z)>0;){var Q,J,Y=w.andln(3)+D&3,j=C.andln(3)+z&3;3===Y&&(Y=-1),3===j&&(j=-1),Q=1&Y?3!=(V=w.andln(7)+D&7)&&5!==V||2!==j?Y:-Y:0,L[0].push(Q),J=1&j?3!=(V=C.andln(7)+z&7)&&5!==V||2!==Y?j:-j:0,L[1].push(J),2*D===Q+1&&(D=1-D),2*z===J+1&&(z=1-z),w.iushrn(1),C.iushrn(1)}return L},t.cachedProperty=function h(w,C,L){var D="_"+C;w.prototype[C]=function(){return void 0!==this[D]?this[D]:this[D]=L.call(this)}},t.parseBytes=function P(w){return"string"==typeof w?t.toArray(w,"hex"):w},t.intFromLE=function d(w){return new e(w,"hex","le")}},7433:function(We,q,m){!function(t,e){"use strict";function _(M,i){if(!M)throw new Error(i||"Assertion failed")}function T(M,i){M.super_=i;var a=function(){};a.prototype=i.prototype,M.prototype=new a,M.prototype.constructor=M}function s(M,i,a){if(s.isBN(M))return M;this.negative=0,this.words=null,this.length=0,this.red=null,null!==M&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(M||0,i||10,a||"be"))}var y;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{y=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:m(5568).Buffer}catch{}function h(M,i){var a=M.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function P(M,i,a){var f=h(M,a);return a-1>=i&&(f|=h(M,a-1)<<4),f}function d(M,i,a,f){for(var l=0,v=Math.min(M.length,a),I=i;I=49?k-49+10:k>=17?k-17+10:k}return l}s.isBN=function(i){return i instanceof s||null!==i&&"object"==typeof i&&i.constructor.wordSize===s.wordSize&&Array.isArray(i.words)},s.max=function(i,a){return i.cmp(a)>0?i:a},s.min=function(i,a){return i.cmp(a)<0?i:a},s.prototype._init=function(i,a,f){if("number"==typeof i)return this._initNumber(i,a,f);if("object"==typeof i)return this._initArray(i,a,f);"hex"===a&&(a=16),_(a===(0|a)&&a>=2&&a<=36);var l=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(l++,this.negative=1),l=0;l-=3)this.words[v]|=(I=i[l]|i[l-1]<<8|i[l-2]<<16)<>>26-k&67108863,(k+=24)>=26&&(k-=26,v++);else if("le"===f)for(l=0,v=0;l>>26-k&67108863,(k+=24)>=26&&(k-=26,v++);return this.strip()},s.prototype._parseHex=function(i,a,f){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var l=0;l=a;l-=2)k=P(i,a,l)<=18?(v-=18,this.words[I+=1]|=k>>>26):v+=8;else for(l=(i.length-a)%2==0?a+1:a;l=18?(v-=18,this.words[I+=1]|=k>>>26):v+=8;this.strip()},s.prototype._parseBase=function(i,a,f){this.words=[0],this.length=1;for(var l=0,v=1;v<=67108863;v*=a)l++;l--,v=v/a|0;for(var I=i.length-f,k=I%l,x=Math.min(I,I-k)+f,n=0,g=f;g1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var w=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[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],L=[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 z(M,i,a){a.negative=i.negative^M.negative;var f=M.length+i.length|0;a.length=f,f=f-1|0;var l=0|M.words[0],v=0|i.words[0],I=l*v,x=I/67108864|0;a.words[0]=67108863&I;for(var n=1;n>>26,W=67108863&x,O=Math.min(n,i.length-1),U=Math.max(0,n-M.length+1);U<=O;U++)g+=(I=(l=0|M.words[n-U|0])*(v=0|i.words[U])+W)/67108864|0,W=67108863&I;a.words[n]=0|W,x=0|g}return 0!==x?a.words[n]=0|x:a.length--,a.strip()}s.prototype.toString=function(i,a){var f;if(a=0|a||1,16===(i=i||10)||"hex"===i){f="";for(var l=0,v=0,I=0;I>>24-l&16777215)||I!==this.length-1?w[6-x.length]+x+f:x+f,(l+=2)>=26&&(l-=26,I--)}for(0!==v&&(f=v.toString(16)+f);f.length%a!=0;)f="0"+f;return 0!==this.negative&&(f="-"+f),f}if(i===(0|i)&&i>=2&&i<=36){var n=C[i],g=L[i];f="";var W=this.clone();for(W.negative=0;!W.isZero();){var O=W.modn(g).toString(i);f=(W=W.idivn(g)).isZero()?O+f:w[n-O.length]+O+f}for(this.isZero()&&(f="0"+f);f.length%a!=0;)f="0"+f;return 0!==this.negative&&(f="-"+f),f}_(!1,"Base should be between 2 and 36")},s.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&&_(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(i,a){return _(typeof y<"u"),this.toArrayLike(y,i,a)},s.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},s.prototype.toArrayLike=function(i,a,f){var l=this.byteLength(),v=f||Math.max(1,l);_(l<=v,"byte array longer than desired length"),_(v>0,"Requested array length <= 0"),this.strip();var x,n,I="le"===a,k=new i(v),g=this.clone();if(I){for(n=0;!g.isZero();n++)x=g.andln(255),g.iushrn(8),k[n]=x;for(;n=4096&&(f+=13,a>>>=13),a>=64&&(f+=7,a>>>=7),a>=8&&(f+=4,a>>>=4),a>=2&&(f+=2,a>>>=2),f+a},s.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,f=0;return 8191&a||(f+=13,a>>>=13),127&a||(f+=7,a>>>=7),15&a||(f+=4,a>>>=4),3&a||(f+=2,a>>>=2),1&a||f++,f},s.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},s.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},s.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var f=0;fi.length?this.clone().iand(i):i.clone().iand(this)},s.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},s.prototype.iuxor=function(i){var a,f;this.length>i.length?(a=this,f=i):(a=i,f=this);for(var l=0;li.length?this.clone().ixor(i):i.clone().ixor(this)},s.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},s.prototype.inotn=function(i){_("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),f=i%26;this._expand(a),f>0&&a--;for(var l=0;l0&&(this.words[l]=~this.words[l]&67108863>>26-f),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,a){_("number"==typeof i&&i>=0);var f=i/26|0,l=i%26;return this._expand(f+1),this.words[f]=a?this.words[f]|1<i.length?(f=this,l=i):(f=i,l=this);for(var v=0,I=0;I>>26;for(;0!==v&&I>>26;if(this.length=f.length,0!==v)this.words[this.length]=v,this.length++;else if(f!==this)for(;Ii.length?this.clone().iadd(i):i.clone().iadd(this)},s.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 l,v,f=this.cmp(i);if(0===f)return this.negative=0,this.length=1,this.words[0]=0,this;f>0?(l=this,v=i):(l=i,v=this);for(var I=0,k=0;k>26,this.words[k]=67108863&a;for(;0!==I&&k>26,this.words[k]=67108863&a;if(0===I&&k>>13,ge=0|l[1],nt=8191&ge,Ue=ge>>>13,at=0|l[2],ye=8191&at,xe=at>>>13,fe=0|l[3],Oe=8191&fe,oe=fe>>>13,Fe=0|l[4],De=8191&Fe,he=Fe>>>13,Me=0|l[5],pe=8191&Me,Ve=Me>>>13,Qe=0|l[6],Pe=8191&Qe,de=Qe>>>13,rt=0|l[7],Ke=8191&rt,lt=rt>>>13,Ut=0|l[8],ht=8191&Ut,Ge=Ut>>>13,yt=0|l[9],be=8191&yt,qe=yt>>>13,Ie=0|v[0],X=8191&Ie,mt=Ie>>>13,Tt=0|v[1],it=8191&Tt,je=Tt>>>13,zt=0|v[2],xt=8191&zt,Nt=zt>>>13,Gt=0|v[3],ke=8191&Gt,$=Gt>>>13,ue=0|v[4],Ae=8191&ue,Je=ue>>>13,$t=0|v[5],Vt=8191&$t,ii=$t>>>13,pt=0|v[6],ot=8191&pt,ft=pt>>>13,St=0|v[7],gt=8191&St,$e=St>>>13,_t=0|v[8],vt=8191&_t,He=_t>>>13,Et=0|v[9],At=8191&Et,Qt=Et>>>13;f.negative=i.negative^a.negative,f.length=19;var zi=(k+(x=Math.imul(O,X))|0)+((8191&(n=(n=Math.imul(O,mt))+Math.imul(U,X)|0))<<13)|0;k=((g=Math.imul(U,mt))+(n>>>13)|0)+(zi>>>26)|0,zi&=67108863,x=Math.imul(nt,X),n=(n=Math.imul(nt,mt))+Math.imul(Ue,X)|0,g=Math.imul(Ue,mt);var Ni=(k+(x=x+Math.imul(O,it)|0)|0)+((8191&(n=(n=n+Math.imul(O,je)|0)+Math.imul(U,it)|0))<<13)|0;k=((g=g+Math.imul(U,je)|0)+(n>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(ye,X),n=(n=Math.imul(ye,mt))+Math.imul(xe,X)|0,g=Math.imul(xe,mt),x=x+Math.imul(nt,it)|0,n=(n=n+Math.imul(nt,je)|0)+Math.imul(Ue,it)|0,g=g+Math.imul(Ue,je)|0;var Mi=(k+(x=x+Math.imul(O,xt)|0)|0)+((8191&(n=(n=n+Math.imul(O,Nt)|0)+Math.imul(U,xt)|0))<<13)|0;k=((g=g+Math.imul(U,Nt)|0)+(n>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,x=Math.imul(Oe,X),n=(n=Math.imul(Oe,mt))+Math.imul(oe,X)|0,g=Math.imul(oe,mt),x=x+Math.imul(ye,it)|0,n=(n=n+Math.imul(ye,je)|0)+Math.imul(xe,it)|0,g=g+Math.imul(xe,je)|0,x=x+Math.imul(nt,xt)|0,n=(n=n+Math.imul(nt,Nt)|0)+Math.imul(Ue,xt)|0,g=g+Math.imul(Ue,Nt)|0;var Gi=(k+(x=x+Math.imul(O,ke)|0)|0)+((8191&(n=(n=n+Math.imul(O,$)|0)+Math.imul(U,ke)|0))<<13)|0;k=((g=g+Math.imul(U,$)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,x=Math.imul(De,X),n=(n=Math.imul(De,mt))+Math.imul(he,X)|0,g=Math.imul(he,mt),x=x+Math.imul(Oe,it)|0,n=(n=n+Math.imul(Oe,je)|0)+Math.imul(oe,it)|0,g=g+Math.imul(oe,je)|0,x=x+Math.imul(ye,xt)|0,n=(n=n+Math.imul(ye,Nt)|0)+Math.imul(xe,xt)|0,g=g+Math.imul(xe,Nt)|0,x=x+Math.imul(nt,ke)|0,n=(n=n+Math.imul(nt,$)|0)+Math.imul(Ue,ke)|0,g=g+Math.imul(Ue,$)|0;var Xe=(k+(x=x+Math.imul(O,Ae)|0)|0)+((8191&(n=(n=n+Math.imul(O,Je)|0)+Math.imul(U,Ae)|0))<<13)|0;k=((g=g+Math.imul(U,Je)|0)+(n>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,x=Math.imul(pe,X),n=(n=Math.imul(pe,mt))+Math.imul(Ve,X)|0,g=Math.imul(Ve,mt),x=x+Math.imul(De,it)|0,n=(n=n+Math.imul(De,je)|0)+Math.imul(he,it)|0,g=g+Math.imul(he,je)|0,x=x+Math.imul(Oe,xt)|0,n=(n=n+Math.imul(Oe,Nt)|0)+Math.imul(oe,xt)|0,g=g+Math.imul(oe,Nt)|0,x=x+Math.imul(ye,ke)|0,n=(n=n+Math.imul(ye,$)|0)+Math.imul(xe,ke)|0,g=g+Math.imul(xe,$)|0,x=x+Math.imul(nt,Ae)|0,n=(n=n+Math.imul(nt,Je)|0)+Math.imul(Ue,Ae)|0,g=g+Math.imul(Ue,Je)|0;var It=(k+(x=x+Math.imul(O,Vt)|0)|0)+((8191&(n=(n=n+Math.imul(O,ii)|0)+Math.imul(U,Vt)|0))<<13)|0;k=((g=g+Math.imul(U,ii)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,x=Math.imul(Pe,X),n=(n=Math.imul(Pe,mt))+Math.imul(de,X)|0,g=Math.imul(de,mt),x=x+Math.imul(pe,it)|0,n=(n=n+Math.imul(pe,je)|0)+Math.imul(Ve,it)|0,g=g+Math.imul(Ve,je)|0,x=x+Math.imul(De,xt)|0,n=(n=n+Math.imul(De,Nt)|0)+Math.imul(he,xt)|0,g=g+Math.imul(he,Nt)|0,x=x+Math.imul(Oe,ke)|0,n=(n=n+Math.imul(Oe,$)|0)+Math.imul(oe,ke)|0,g=g+Math.imul(oe,$)|0,x=x+Math.imul(ye,Ae)|0,n=(n=n+Math.imul(ye,Je)|0)+Math.imul(xe,Ae)|0,g=g+Math.imul(xe,Je)|0,x=x+Math.imul(nt,Vt)|0,n=(n=n+Math.imul(nt,ii)|0)+Math.imul(Ue,Vt)|0,g=g+Math.imul(Ue,ii)|0;var Se=(k+(x=x+Math.imul(O,ot)|0)|0)+((8191&(n=(n=n+Math.imul(O,ft)|0)+Math.imul(U,ot)|0))<<13)|0;k=((g=g+Math.imul(U,ft)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,x=Math.imul(Ke,X),n=(n=Math.imul(Ke,mt))+Math.imul(lt,X)|0,g=Math.imul(lt,mt),x=x+Math.imul(Pe,it)|0,n=(n=n+Math.imul(Pe,je)|0)+Math.imul(de,it)|0,g=g+Math.imul(de,je)|0,x=x+Math.imul(pe,xt)|0,n=(n=n+Math.imul(pe,Nt)|0)+Math.imul(Ve,xt)|0,g=g+Math.imul(Ve,Nt)|0,x=x+Math.imul(De,ke)|0,n=(n=n+Math.imul(De,$)|0)+Math.imul(he,ke)|0,g=g+Math.imul(he,$)|0,x=x+Math.imul(Oe,Ae)|0,n=(n=n+Math.imul(Oe,Je)|0)+Math.imul(oe,Ae)|0,g=g+Math.imul(oe,Je)|0,x=x+Math.imul(ye,Vt)|0,n=(n=n+Math.imul(ye,ii)|0)+Math.imul(xe,Vt)|0,g=g+Math.imul(xe,ii)|0,x=x+Math.imul(nt,ot)|0,n=(n=n+Math.imul(nt,ft)|0)+Math.imul(Ue,ot)|0,g=g+Math.imul(Ue,ft)|0;var wt=(k+(x=x+Math.imul(O,gt)|0)|0)+((8191&(n=(n=n+Math.imul(O,$e)|0)+Math.imul(U,gt)|0))<<13)|0;k=((g=g+Math.imul(U,$e)|0)+(n>>>13)|0)+(wt>>>26)|0,wt&=67108863,x=Math.imul(ht,X),n=(n=Math.imul(ht,mt))+Math.imul(Ge,X)|0,g=Math.imul(Ge,mt),x=x+Math.imul(Ke,it)|0,n=(n=n+Math.imul(Ke,je)|0)+Math.imul(lt,it)|0,g=g+Math.imul(lt,je)|0,x=x+Math.imul(Pe,xt)|0,n=(n=n+Math.imul(Pe,Nt)|0)+Math.imul(de,xt)|0,g=g+Math.imul(de,Nt)|0,x=x+Math.imul(pe,ke)|0,n=(n=n+Math.imul(pe,$)|0)+Math.imul(Ve,ke)|0,g=g+Math.imul(Ve,$)|0,x=x+Math.imul(De,Ae)|0,n=(n=n+Math.imul(De,Je)|0)+Math.imul(he,Ae)|0,g=g+Math.imul(he,Je)|0,x=x+Math.imul(Oe,Vt)|0,n=(n=n+Math.imul(Oe,ii)|0)+Math.imul(oe,Vt)|0,g=g+Math.imul(oe,ii)|0,x=x+Math.imul(ye,ot)|0,n=(n=n+Math.imul(ye,ft)|0)+Math.imul(xe,ot)|0,g=g+Math.imul(xe,ft)|0,x=x+Math.imul(nt,gt)|0,n=(n=n+Math.imul(nt,$e)|0)+Math.imul(Ue,gt)|0,g=g+Math.imul(Ue,$e)|0;var Zt=(k+(x=x+Math.imul(O,vt)|0)|0)+((8191&(n=(n=n+Math.imul(O,He)|0)+Math.imul(U,vt)|0))<<13)|0;k=((g=g+Math.imul(U,He)|0)+(n>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,x=Math.imul(be,X),n=(n=Math.imul(be,mt))+Math.imul(qe,X)|0,g=Math.imul(qe,mt),x=x+Math.imul(ht,it)|0,n=(n=n+Math.imul(ht,je)|0)+Math.imul(Ge,it)|0,g=g+Math.imul(Ge,je)|0,x=x+Math.imul(Ke,xt)|0,n=(n=n+Math.imul(Ke,Nt)|0)+Math.imul(lt,xt)|0,g=g+Math.imul(lt,Nt)|0,x=x+Math.imul(Pe,ke)|0,n=(n=n+Math.imul(Pe,$)|0)+Math.imul(de,ke)|0,g=g+Math.imul(de,$)|0,x=x+Math.imul(pe,Ae)|0,n=(n=n+Math.imul(pe,Je)|0)+Math.imul(Ve,Ae)|0,g=g+Math.imul(Ve,Je)|0,x=x+Math.imul(De,Vt)|0,n=(n=n+Math.imul(De,ii)|0)+Math.imul(he,Vt)|0,g=g+Math.imul(he,ii)|0,x=x+Math.imul(Oe,ot)|0,n=(n=n+Math.imul(Oe,ft)|0)+Math.imul(oe,ot)|0,g=g+Math.imul(oe,ft)|0,x=x+Math.imul(ye,gt)|0,n=(n=n+Math.imul(ye,$e)|0)+Math.imul(xe,gt)|0,g=g+Math.imul(xe,$e)|0,x=x+Math.imul(nt,vt)|0,n=(n=n+Math.imul(nt,He)|0)+Math.imul(Ue,vt)|0,g=g+Math.imul(Ue,He)|0;var si=(k+(x=x+Math.imul(O,At)|0)|0)+((8191&(n=(n=n+Math.imul(O,Qt)|0)+Math.imul(U,At)|0))<<13)|0;k=((g=g+Math.imul(U,Qt)|0)+(n>>>13)|0)+(si>>>26)|0,si&=67108863,x=Math.imul(be,it),n=(n=Math.imul(be,je))+Math.imul(qe,it)|0,g=Math.imul(qe,je),x=x+Math.imul(ht,xt)|0,n=(n=n+Math.imul(ht,Nt)|0)+Math.imul(Ge,xt)|0,g=g+Math.imul(Ge,Nt)|0,x=x+Math.imul(Ke,ke)|0,n=(n=n+Math.imul(Ke,$)|0)+Math.imul(lt,ke)|0,g=g+Math.imul(lt,$)|0,x=x+Math.imul(Pe,Ae)|0,n=(n=n+Math.imul(Pe,Je)|0)+Math.imul(de,Ae)|0,g=g+Math.imul(de,Je)|0,x=x+Math.imul(pe,Vt)|0,n=(n=n+Math.imul(pe,ii)|0)+Math.imul(Ve,Vt)|0,g=g+Math.imul(Ve,ii)|0,x=x+Math.imul(De,ot)|0,n=(n=n+Math.imul(De,ft)|0)+Math.imul(he,ot)|0,g=g+Math.imul(he,ft)|0,x=x+Math.imul(Oe,gt)|0,n=(n=n+Math.imul(Oe,$e)|0)+Math.imul(oe,gt)|0,g=g+Math.imul(oe,$e)|0,x=x+Math.imul(ye,vt)|0,n=(n=n+Math.imul(ye,He)|0)+Math.imul(xe,vt)|0,g=g+Math.imul(xe,He)|0;var Ai=(k+(x=x+Math.imul(nt,At)|0)|0)+((8191&(n=(n=n+Math.imul(nt,Qt)|0)+Math.imul(Ue,At)|0))<<13)|0;k=((g=g+Math.imul(Ue,Qt)|0)+(n>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,x=Math.imul(be,xt),n=(n=Math.imul(be,Nt))+Math.imul(qe,xt)|0,g=Math.imul(qe,Nt),x=x+Math.imul(ht,ke)|0,n=(n=n+Math.imul(ht,$)|0)+Math.imul(Ge,ke)|0,g=g+Math.imul(Ge,$)|0,x=x+Math.imul(Ke,Ae)|0,n=(n=n+Math.imul(Ke,Je)|0)+Math.imul(lt,Ae)|0,g=g+Math.imul(lt,Je)|0,x=x+Math.imul(Pe,Vt)|0,n=(n=n+Math.imul(Pe,ii)|0)+Math.imul(de,Vt)|0,g=g+Math.imul(de,ii)|0,x=x+Math.imul(pe,ot)|0,n=(n=n+Math.imul(pe,ft)|0)+Math.imul(Ve,ot)|0,g=g+Math.imul(Ve,ft)|0,x=x+Math.imul(De,gt)|0,n=(n=n+Math.imul(De,$e)|0)+Math.imul(he,gt)|0,g=g+Math.imul(he,$e)|0,x=x+Math.imul(Oe,vt)|0,n=(n=n+Math.imul(Oe,He)|0)+Math.imul(oe,vt)|0,g=g+Math.imul(oe,He)|0;var Oi=(k+(x=x+Math.imul(ye,At)|0)|0)+((8191&(n=(n=n+Math.imul(ye,Qt)|0)+Math.imul(xe,At)|0))<<13)|0;k=((g=g+Math.imul(xe,Qt)|0)+(n>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,x=Math.imul(be,ke),n=(n=Math.imul(be,$))+Math.imul(qe,ke)|0,g=Math.imul(qe,$),x=x+Math.imul(ht,Ae)|0,n=(n=n+Math.imul(ht,Je)|0)+Math.imul(Ge,Ae)|0,g=g+Math.imul(Ge,Je)|0,x=x+Math.imul(Ke,Vt)|0,n=(n=n+Math.imul(Ke,ii)|0)+Math.imul(lt,Vt)|0,g=g+Math.imul(lt,ii)|0,x=x+Math.imul(Pe,ot)|0,n=(n=n+Math.imul(Pe,ft)|0)+Math.imul(de,ot)|0,g=g+Math.imul(de,ft)|0,x=x+Math.imul(pe,gt)|0,n=(n=n+Math.imul(pe,$e)|0)+Math.imul(Ve,gt)|0,g=g+Math.imul(Ve,$e)|0,x=x+Math.imul(De,vt)|0,n=(n=n+Math.imul(De,He)|0)+Math.imul(he,vt)|0,g=g+Math.imul(he,He)|0;var Qi=(k+(x=x+Math.imul(Oe,At)|0)|0)+((8191&(n=(n=n+Math.imul(Oe,Qt)|0)+Math.imul(oe,At)|0))<<13)|0;k=((g=g+Math.imul(oe,Qt)|0)+(n>>>13)|0)+(Qi>>>26)|0,Qi&=67108863,x=Math.imul(be,Ae),n=(n=Math.imul(be,Je))+Math.imul(qe,Ae)|0,g=Math.imul(qe,Je),x=x+Math.imul(ht,Vt)|0,n=(n=n+Math.imul(ht,ii)|0)+Math.imul(Ge,Vt)|0,g=g+Math.imul(Ge,ii)|0,x=x+Math.imul(Ke,ot)|0,n=(n=n+Math.imul(Ke,ft)|0)+Math.imul(lt,ot)|0,g=g+Math.imul(lt,ft)|0,x=x+Math.imul(Pe,gt)|0,n=(n=n+Math.imul(Pe,$e)|0)+Math.imul(de,gt)|0,g=g+Math.imul(de,$e)|0,x=x+Math.imul(pe,vt)|0,n=(n=n+Math.imul(pe,He)|0)+Math.imul(Ve,vt)|0,g=g+Math.imul(Ve,He)|0;var en=(k+(x=x+Math.imul(De,At)|0)|0)+((8191&(n=(n=n+Math.imul(De,Qt)|0)+Math.imul(he,At)|0))<<13)|0;k=((g=g+Math.imul(he,Qt)|0)+(n>>>13)|0)+(en>>>26)|0,en&=67108863,x=Math.imul(be,Vt),n=(n=Math.imul(be,ii))+Math.imul(qe,Vt)|0,g=Math.imul(qe,ii),x=x+Math.imul(ht,ot)|0,n=(n=n+Math.imul(ht,ft)|0)+Math.imul(Ge,ot)|0,g=g+Math.imul(Ge,ft)|0,x=x+Math.imul(Ke,gt)|0,n=(n=n+Math.imul(Ke,$e)|0)+Math.imul(lt,gt)|0,g=g+Math.imul(lt,$e)|0,x=x+Math.imul(Pe,vt)|0,n=(n=n+Math.imul(Pe,He)|0)+Math.imul(de,vt)|0,g=g+Math.imul(de,He)|0;var Yi=(k+(x=x+Math.imul(pe,At)|0)|0)+((8191&(n=(n=n+Math.imul(pe,Qt)|0)+Math.imul(Ve,At)|0))<<13)|0;k=((g=g+Math.imul(Ve,Qt)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,x=Math.imul(be,ot),n=(n=Math.imul(be,ft))+Math.imul(qe,ot)|0,g=Math.imul(qe,ft),x=x+Math.imul(ht,gt)|0,n=(n=n+Math.imul(ht,$e)|0)+Math.imul(Ge,gt)|0,g=g+Math.imul(Ge,$e)|0,x=x+Math.imul(Ke,vt)|0,n=(n=n+Math.imul(Ke,He)|0)+Math.imul(lt,vt)|0,g=g+Math.imul(lt,He)|0;var Yt=(k+(x=x+Math.imul(Pe,At)|0)|0)+((8191&(n=(n=n+Math.imul(Pe,Qt)|0)+Math.imul(de,At)|0))<<13)|0;k=((g=g+Math.imul(de,Qt)|0)+(n>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,x=Math.imul(be,gt),n=(n=Math.imul(be,$e))+Math.imul(qe,gt)|0,g=Math.imul(qe,$e),x=x+Math.imul(ht,vt)|0,n=(n=n+Math.imul(ht,He)|0)+Math.imul(Ge,vt)|0,g=g+Math.imul(Ge,He)|0;var qt=(k+(x=x+Math.imul(Ke,At)|0)|0)+((8191&(n=(n=n+Math.imul(Ke,Qt)|0)+Math.imul(lt,At)|0))<<13)|0;k=((g=g+Math.imul(lt,Qt)|0)+(n>>>13)|0)+(qt>>>26)|0,qt&=67108863,x=Math.imul(be,vt),n=(n=Math.imul(be,He))+Math.imul(qe,vt)|0,g=Math.imul(qe,He);var _e=(k+(x=x+Math.imul(ht,At)|0)|0)+((8191&(n=(n=n+Math.imul(ht,Qt)|0)+Math.imul(Ge,At)|0))<<13)|0;k=((g=g+Math.imul(Ge,Qt)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863;var dt=(k+(x=Math.imul(be,At))|0)+((8191&(n=(n=Math.imul(be,Qt))+Math.imul(qe,At)|0))<<13)|0;return k=((g=Math.imul(qe,Qt))+(n>>>13)|0)+(dt>>>26)|0,dt&=67108863,I[0]=zi,I[1]=Ni,I[2]=Mi,I[3]=Gi,I[4]=Xe,I[5]=It,I[6]=Se,I[7]=wt,I[8]=Zt,I[9]=si,I[10]=Ai,I[11]=Oi,I[12]=Qi,I[13]=en,I[14]=Yi,I[15]=Yt,I[16]=qt,I[17]=_e,I[18]=dt,0!==k&&(I[19]=k,f.length++),f};function j(M,i,a){return(new Q).mulp(M,i,a)}function Q(M,i){this.x=M,this.y=i}Math.imul||(V=z),s.prototype.mulTo=function(i,a){var f,l=this.length+i.length;return f=10===this.length&&10===i.length?V(this,i,a):l<63?z(this,i,a):l<1024?function Y(M,i,a){a.negative=i.negative^M.negative,a.length=M.length+i.length;for(var f=0,l=0,v=0;v>>26)|0)>>>26,I&=67108863}a.words[v]=k,f=I,I=l}return 0!==f?a.words[v]=f:a.length--,a.strip()}(this,i,a):j(this,i,a),f},Q.prototype.makeRBT=function(i){for(var a=new Array(i),f=s.prototype._countBits(i)-1,l=0;l>=1;return l},Q.prototype.permute=function(i,a,f,l,v,I){for(var k=0;k>>=1)v++;return 1<>>=13),v>>>=13;for(I=2*a;I>=26,a+=l/67108864|0,a+=v>>>26,this.words[f]=67108863&v}return 0!==a&&(this.words[f]=a,this.length++),this},s.prototype.muln=function(i){return this.clone().imuln(i)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(i){var a=function D(M){for(var i=new Array(M.bitLength()),a=0;a>>l}return i}(i);if(0===a.length)return new s(1);for(var f=this,l=0;l=0);var v,a=i%26,f=(i-a)/26,l=67108863>>>26-a<<26-a;if(0!==a){var I=0;for(v=0;v>>26-a}I&&(this.words[v]=I,this.length++)}if(0!==f){for(v=this.length-1;v>=0;v--)this.words[v+f]=this.words[v];for(v=0;v=0),l=a?(a-a%26)/26:0;var v=i%26,I=Math.min((i-v)/26,this.length),k=67108863^67108863>>>v<I)for(this.length-=I,n=0;n=0&&(0!==g||n>=l);n--){var W=0|this.words[n];this.words[n]=g<<26-v|W>>>v,g=W&k}return x&&0!==g&&(x.words[x.length++]=g),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,a,f){return _(0===this.negative),this.iushrn(i,a,f)},s.prototype.shln=function(i){return this.clone().ishln(i)},s.prototype.ushln=function(i){return this.clone().iushln(i)},s.prototype.shrn=function(i){return this.clone().ishrn(i)},s.prototype.ushrn=function(i){return this.clone().iushrn(i)},s.prototype.testn=function(i){_("number"==typeof i&&i>=0);var a=i%26,f=(i-a)/26;return!(this.length<=f||!(this.words[f]&1<=0);var a=i%26,f=(i-a)/26;return _(0===this.negative,"imaskn works only with positive numbers"),this.length<=f?this:(0!==a&&f++,this.length=Math.min(f,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},s.prototype.isubn=function(i){if(_("number"==typeof i),_(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[v+f]=67108863&I}for(;v>26,this.words[v+f]=67108863&I;if(0===k)return this.strip();for(_(-1===k),k=0,v=0;v>26,this.words[v]=67108863&I;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var f,l=this.clone(),v=i,I=0|v.words[v.length-1];0!=(f=26-this._countBits(I))&&(v=v.ushln(f),l.iushln(f),I=0|v.words[v.length-1]);var n,x=l.length-v.length;if("mod"!==a){(n=new s(null)).length=x+1,n.words=new Array(n.length);for(var g=0;g=0;O--){var U=67108864*(0|l.words[v.length+O])+(0|l.words[v.length+O-1]);for(U=Math.min(U/I|0,67108863),l._ishlnsubmul(v,U,O);0!==l.negative;)U--,l.negative=0,l._ishlnsubmul(v,1,O),l.isZero()||(l.negative^=1);n&&(n.words[O]=U)}return n&&n.strip(),l.strip(),"div"!==a&&0!==f&&l.iushrn(f),{div:n||null,mod:l}},s.prototype.divmod=function(i,a,f){return _(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(I=this.neg().divmod(i,a),"mod"!==a&&(l=I.div.neg()),"div"!==a&&(v=I.mod.neg(),f&&0!==v.negative&&v.iadd(i)),{div:l,mod:v}):0===this.negative&&0!==i.negative?(I=this.divmod(i.neg(),a),"mod"!==a&&(l=I.div.neg()),{div:l,mod:I.mod}):this.negative&i.negative?(I=this.neg().divmod(i.neg(),a),"div"!==a&&(v=I.mod.neg(),f&&0!==v.negative&&v.isub(i)),{div:I.div,mod:v}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new s(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new s(this.modn(i.words[0]))}:this._wordDiv(i,a);var l,v,I},s.prototype.div=function(i){return this.divmod(i,"div",!1).div},s.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},s.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},s.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var f=0!==a.div.negative?a.mod.isub(i):a.mod,l=i.ushrn(1),v=i.andln(1),I=f.cmp(l);return I<0||1===v&&0===I?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},s.prototype.modn=function(i){_(i<=67108863);for(var a=(1<<26)%i,f=0,l=this.length-1;l>=0;l--)f=(a*f+(0|this.words[l]))%i;return f},s.prototype.idivn=function(i){_(i<=67108863);for(var a=0,f=this.length-1;f>=0;f--){var l=(0|this.words[f])+67108864*a;this.words[f]=l/i|0,a=l%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){_(0===i.negative),_(!i.isZero());var a=this,f=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),v=new s(0),I=new s(0),k=new s(1),x=0;a.isEven()&&f.isEven();)a.iushrn(1),f.iushrn(1),++x;for(var n=f.clone(),g=a.clone();!a.isZero();){for(var W=0,O=1;!(a.words[0]&O)&&W<26;++W,O<<=1);if(W>0)for(a.iushrn(W);W-- >0;)(l.isOdd()||v.isOdd())&&(l.iadd(n),v.isub(g)),l.iushrn(1),v.iushrn(1);for(var U=0,ge=1;!(f.words[0]&ge)&&U<26;++U,ge<<=1);if(U>0)for(f.iushrn(U);U-- >0;)(I.isOdd()||k.isOdd())&&(I.iadd(n),k.isub(g)),I.iushrn(1),k.iushrn(1);a.cmp(f)>=0?(a.isub(f),l.isub(I),v.isub(k)):(f.isub(a),I.isub(l),k.isub(v))}return{a:I,b:k,gcd:f.iushln(x)}},s.prototype._invmp=function(i){_(0===i.negative),_(!i.isZero());var W,a=this,f=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),v=new s(0),I=f.clone();a.cmpn(1)>0&&f.cmpn(1)>0;){for(var k=0,x=1;!(a.words[0]&x)&&k<26;++k,x<<=1);if(k>0)for(a.iushrn(k);k-- >0;)l.isOdd()&&l.iadd(I),l.iushrn(1);for(var n=0,g=1;!(f.words[0]&g)&&n<26;++n,g<<=1);if(n>0)for(f.iushrn(n);n-- >0;)v.isOdd()&&v.iadd(I),v.iushrn(1);a.cmp(f)>=0?(a.isub(f),l.isub(v)):(f.isub(a),v.isub(l))}return(W=0===a.cmpn(1)?l:v).cmpn(0)<0&&W.iadd(i),W},s.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),f=i.clone();a.negative=0,f.negative=0;for(var l=0;a.isEven()&&f.isEven();l++)a.iushrn(1),f.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;f.isEven();)f.iushrn(1);var v=a.cmp(f);if(v<0){var I=a;a=f,f=I}else if(0===v||0===f.cmpn(1))break;a.isub(f)}return f.iushln(l)},s.prototype.invm=function(i){return this.egcd(i).a.umod(i)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(i){return this.words[0]&i},s.prototype.bincn=function(i){_("number"==typeof i);var a=i%26,f=(i-a)/26,l=1<>>26,this.words[I]=k&=67108863}return 0!==v&&(this.words[I]=v,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var f,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)f=1;else{a&&(i=-i),_(i<=67108863,"Number is too big");var l=0|this.words[0];f=l===i?0:li.length)return 1;if(this.length=0;f--){var l=0|this.words[f],v=0|i.words[f];if(l!==v){lv&&(a=1);break}}return a},s.prototype.gtn=function(i){return 1===this.cmpn(i)},s.prototype.gt=function(i){return 1===this.cmp(i)},s.prototype.gten=function(i){return this.cmpn(i)>=0},s.prototype.gte=function(i){return this.cmp(i)>=0},s.prototype.ltn=function(i){return-1===this.cmpn(i)},s.prototype.lt=function(i){return-1===this.cmp(i)},s.prototype.lten=function(i){return this.cmpn(i)<=0},s.prototype.lte=function(i){return this.cmp(i)<=0},s.prototype.eqn=function(i){return 0===this.cmpn(i)},s.prototype.eq=function(i){return 0===this.cmp(i)},s.red=function(i){return new ce(i)},s.prototype.toRed=function(i){return _(!this.red,"Already a number in reduction context"),_(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(i){return this.red=i,this},s.prototype.forceRed=function(i){return _(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return _(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var J={k256:null,p224:null,p192:null,p25519:null};function ee(M,i){this.name=M,this.p=new s(i,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function me(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function re(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ce(M){if("string"==typeof M){var i=s._prime(M);this.m=i.p,this.prime=i}else _(M.gtn(1),"modulus must be greater than 1"),this.m=M,this.prime=null}function Ce(M){ce.call(this,M),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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 s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var f,a=i;do{this.split(a,this.tmp),f=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(f>this.n);var l=f0?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)},T(me,ee),me.prototype.split=function(i,a){for(var f=4194303,l=Math.min(i.length,9),v=0;v>>22,I=k}i.words[v-10]=I>>>=22,i.length-=0===I&&i.length>10?10:9},me.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,f=0;f>>=26,i.words[f]=v,a=l}return 0!==a&&(i.words[i.length++]=a),i},s._prime=function(i){if(J[i])return J[i];var a;if("k256"===i)a=new me;else if("p224"===i)a=new re;else if("p192"===i)a=new ie;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new se}return J[i]=a,a},ce.prototype._verify1=function(i){_(0===i.negative,"red works only with positives"),_(i.red,"red works only with red numbers")},ce.prototype._verify2=function(i,a){_(0==(i.negative|a.negative),"red works only with positives"),_(i.red&&i.red===a.red,"red works only with red numbers")},ce.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},ce.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},ce.prototype.add=function(i,a){this._verify2(i,a);var f=i.add(a);return f.cmp(this.m)>=0&&f.isub(this.m),f._forceRed(this)},ce.prototype.iadd=function(i,a){this._verify2(i,a);var f=i.iadd(a);return f.cmp(this.m)>=0&&f.isub(this.m),f},ce.prototype.sub=function(i,a){this._verify2(i,a);var f=i.sub(a);return f.cmpn(0)<0&&f.iadd(this.m),f._forceRed(this)},ce.prototype.isub=function(i,a){this._verify2(i,a);var f=i.isub(a);return f.cmpn(0)<0&&f.iadd(this.m),f},ce.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},ce.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},ce.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},ce.prototype.isqr=function(i){return this.imul(i,i.clone())},ce.prototype.sqr=function(i){return this.mul(i,i)},ce.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(_(a%2==1),3===a){var f=this.m.add(new s(1)).iushrn(2);return this.pow(i,f)}for(var l=this.m.subn(1),v=0;!l.isZero()&&0===l.andln(1);)v++,l.iushrn(1);_(!l.isZero());var I=new s(1).toRed(this),k=I.redNeg(),x=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new s(2*n*n).toRed(this);0!==this.pow(n,x).cmp(k);)n.redIAdd(k);for(var g=this.pow(n,l),W=this.pow(i,l.addn(1).iushrn(1)),O=this.pow(i,l),U=v;0!==O.cmp(I);){for(var ge=O,nt=0;0!==ge.cmp(I);nt++)ge=ge.redSqr();_(nt=0;v--){for(var g=a.words[v],W=n-1;W>=0;W--){var O=g>>W&1;I!==l[0]&&(I=this.sqr(I)),0!==O||0!==k?(k<<=1,k|=O,(4==++x||0===v&&0===W)&&(I=this.mul(I,l[k]),x=0,k=0)):x=0}n=26}return I},ce.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},ce.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new Ce(i)},T(Ce,ce),Ce.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},Ce.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},Ce.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var f=i.imul(a),l=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=f.isub(l).iushrn(this.shift),I=v;return v.cmp(this.m)>=0?I=v.isub(this.m):v.cmpn(0)<0&&(I=v.iadd(this.m)),I._forceRed(this)},Ce.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new s(0)._forceRed(this);var f=i.mul(a),l=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=f.isub(l).iushrn(this.shift),I=v;return v.cmp(this.m)>=0?I=v.isub(this.m):v.cmpn(0)<0&&(I=v.iadd(this.m)),I._forceRed(this)},Ce.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(We=m.nmd(We),this)},8419:We=>{"use strict";We.exports=function(m){for(var t=[],e=m.length,_=0;_=55296&&T<=56319&&e>_+1){var s=m.charCodeAt(_+1);s>=56320&&s<=57343&&(T=1024*(T-55296)+s-56320+65536,_+=1)}T<128?t.push(T):T<2048?(t.push(T>>6|192),t.push(63&T|128)):T<55296||T>=57344&&T<65536?(t.push(T>>12|224),t.push(T>>6&63|128),t.push(63&T|128)):T>=65536&&T<=1114111?(t.push(T>>18|240),t.push(T>>12&63|128),t.push(T>>6&63|128),t.push(63&T|128)):t.push(239,191,189)}return new Uint8Array(t).buffer}},9069:We=>{"use strict";var t,q="object"==typeof Reflect?Reflect:null,m=q&&"function"==typeof q.apply?q.apply:function(ee,me,re){return Function.prototype.apply.call(ee,me,re)};t=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 _=Number.isNaN||function(ee){return ee!=ee};function T(){T.init.call(this)}We.exports=T,We.exports.once=function Y(J,ee){return new Promise(function(me,re){function ie(ce){J.removeListener(ee,se),re(ce)}function se(){"function"==typeof J.removeListener&&J.removeListener("error",ie),me([].slice.call(arguments))}Q(J,ee,se,{once:!0}),"error"!==ee&&function j(J,ee,me){"function"==typeof J.on&&Q(J,"error",ee,me)}(J,ie,{once:!0})})},T.EventEmitter=T,T.prototype._events=void 0,T.prototype._eventsCount=0,T.prototype._maxListeners=void 0;var s=10;function y(J){if("function"!=typeof J)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof J)}function h(J){return void 0===J._maxListeners?T.defaultMaxListeners:J._maxListeners}function P(J,ee,me,re){var ie,se,ce;if(y(me),void 0===(se=J._events)?(se=J._events=Object.create(null),J._eventsCount=0):(void 0!==se.newListener&&(J.emit("newListener",ee,me.listener?me.listener:me),se=J._events),ce=se[ee]),void 0===ce)ce=se[ee]=me,++J._eventsCount;else if("function"==typeof ce?ce=se[ee]=re?[me,ce]:[ce,me]:re?ce.unshift(me):ce.push(me),(ie=h(J))>0&&ce.length>ie&&!ce.warned){ce.warned=!0;var Ce=new Error("Possible EventEmitter memory leak detected. "+ce.length+" "+String(ee)+" listeners added. Use emitter.setMaxListeners() to increase limit");Ce.name="MaxListenersExceededWarning",Ce.emitter=J,Ce.type=ee,Ce.count=ce.length,function e(J){console&&console.warn&&console.warn(J)}(Ce)}return J}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function w(J,ee,me){var re={fired:!1,wrapFn:void 0,target:J,type:ee,listener:me},ie=d.bind(re);return ie.listener=me,re.wrapFn=ie,ie}function C(J,ee,me){var re=J._events;if(void 0===re)return[];var ie=re[ee];return void 0===ie?[]:"function"==typeof ie?me?[ie.listener||ie]:[ie]:me?function V(J){for(var ee=new Array(J.length),me=0;me0&&(ce=me[0]),ce instanceof Error)throw ce;var Ce=new Error("Unhandled error."+(ce?" ("+ce.message+")":""));throw Ce.context=ce,Ce}var M=se[ee];if(void 0===M)return!1;if("function"==typeof M)m(M,this,me);else{var i=M.length,a=D(M,i);for(re=0;re=0;ce--)if(re[ce]===me||re[ce].listener===me){Ce=re[ce].listener,se=ce;break}if(se<0)return this;0===se?re.shift():function z(J,ee){for(;ee+1=0;ie--)this.removeListener(ee,me[ie]);return this},T.prototype.listeners=function(ee){return C(this,ee,!0)},T.prototype.rawListeners=function(ee){return C(this,ee,!1)},T.listenerCount=function(J,ee){return"function"==typeof J.listenerCount?J.listenerCount(ee):L.call(J,ee)},T.prototype.listenerCount=L,T.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},347:(We,q,m)=>{var t=m(3502).Buffer,e=m(8095);We.exports=function _(T,s,y,h){if(t.isBuffer(T)||(T=t.from(T,"binary")),s&&(t.isBuffer(s)||(s=t.from(s,"binary")),8!==s.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var P=y/8,d=t.alloc(P),w=t.alloc(h||0),C=t.alloc(0);P>0||h>0;){var L=new e;L.update(C),L.update(T),s&&L.update(s),C=L.digest();var D=0;if(P>0){var z=d.length-P;D=Math.min(P,C.length),C.copy(d,z,0,D),P-=D}if(D0){var V=w.length-h,Y=Math.min(h,C.length-D);C.copy(w,V,D,D+Y),h-=Y}}return C.fill(0),{key:d,iv:w}}},9650:(We,q,m)=>{"use strict";var t=m(3502).Buffer,e=m(5685).Transform;function s(y){e.call(this),this._block=t.allocUnsafe(y),this._blockSize=y,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}m(3894)(s,e),s.prototype._transform=function(y,h,P){var d=null;try{this.update(y,h)}catch(w){d=w}P(d)},s.prototype._flush=function(y){var h=null;try{this.push(this.digest())}catch(P){h=P}y(h)},s.prototype.update=function(y,h){if(function T(y,h){if(!t.isBuffer(y)&&"string"!=typeof y)throw new TypeError(h+" must be a string or a buffer")}(y,"Data"),this._finalized)throw new Error("Digest already called");t.isBuffer(y)||(y=t.from(y,h));for(var P=this._block,d=0;this._blockOffset+y.length-d>=this._blockSize;){for(var w=this._blockOffset;w0;++C)this._length[C]+=L,(L=this._length[C]/4294967296|0)>0&&(this._length[C]-=4294967296*L);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.prototype.digest=function(y){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var h=this._digest();void 0!==y&&(h=h.toString(y)),this._block.fill(0),this._blockOffset=0;for(var P=0;P<4;++P)this._length[P]=0;return h},s.prototype._digest=function(){throw new Error("_digest is not implemented")},We.exports=s},7084:(We,q,m)=>{var t=q;t.utils=m(9299),t.common=m(3800),t.sha=m(4962),t.ripemd=m(9458),t.hmac=m(2194),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160},3800:(We,q,m)=>{"use strict";var t=m(9299),e=m(2391);function _(){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=_,_.prototype.update=function(s,y){if(s=t.toArray(s,y),this.pending=this.pending?this.pending.concat(s):s,this.pendingTotal+=s.length,this.pending.length>=this._delta8){var h=(s=this.pending).length%this._delta8;this.pending=s.slice(s.length-h,s.length),0===this.pending.length&&(this.pending=null),s=t.join32(s,0,s.length-h,this.endian);for(var P=0;P>>24&255,P[d++]=s>>>16&255,P[d++]=s>>>8&255,P[d++]=255&s}else for(P[d++]=255&s,P[d++]=s>>>8&255,P[d++]=s>>>16&255,P[d++]=s>>>24&255,P[d++]=0,P[d++]=0,P[d++]=0,P[d++]=0,w=8;w{"use strict";var t=m(9299),e=m(2391);function _(T,s,y){if(!(this instanceof _))return new _(T,s,y);this.Hash=T,this.blockSize=T.blockSize/8,this.outSize=T.outSize/8,this.inner=null,this.outer=null,this._init(t.toArray(s,y))}We.exports=_,_.prototype._init=function(s){s.length>this.blockSize&&(s=(new this.Hash).update(s).digest()),e(s.length<=this.blockSize);for(var y=s.length;y{"use strict";var t=m(9299),e=m(3800),_=t.rotl32,T=t.sum32,s=t.sum32_3,y=t.sum32_4,h=e.BlockHash;function P(){if(!(this instanceof P))return new P;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function d(Y,j,Q,J){return Y<=15?j^Q^J:Y<=31?j&Q|~j&J:Y<=47?(j|~Q)^J:Y<=63?j&J|Q&~J:j^(Q|~J)}function C(Y){return Y<=15?1352829926:Y<=31?1548603684:Y<=47?1836072691:Y<=63?2053994217:0}t.inherits(P,h),q.ripemd160=P,P.blockSize=512,P.outSize=160,P.hmacStrength=192,P.padLength=64,P.prototype._update=function(j,Q){for(var J=this.h[0],ee=this.h[1],me=this.h[2],re=this.h[3],ie=this.h[4],se=J,ce=ee,Ce=me,M=re,i=ie,a=0;a<80;a++){var f=T(_(y(J,d(a,ee,me,re),j[L[a]+Q],(Y=a)<=15?0:Y<=31?1518500249:Y<=47?1859775393:Y<=63?2400959708:2840853838),z[a]),ie);J=ie,ie=re,re=_(me,10),me=ee,ee=f,f=T(_(y(se,d(79-a,ce,Ce,M),j[D[a]+Q],C(a)),V[a]),i),se=i,i=M,M=_(Ce,10),Ce=ce,ce=f}var Y;f=s(this.h[1],me,M),this.h[1]=s(this.h[2],re,i),this.h[2]=s(this.h[3],ie,se),this.h[3]=s(this.h[4],J,ce),this.h[4]=s(this.h[0],ee,Ce),this.h[0]=f},P.prototype._digest=function(j){return"hex"===j?t.toHex32(this.h,"little"):t.split32(this.h,"little")};var L=[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],D=[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],z=[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],V=[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:(We,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:(We,q,m)=>{"use strict";var t=m(9299),e=m(3800),_=m(3113),T=t.rotl32,s=t.sum32,y=t.sum32_5,h=_.ft_1,P=e.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function w(){if(!(this instanceof w))return new w;P.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}t.inherits(w,P),We.exports=w,w.blockSize=512,w.outSize=160,w.hmacStrength=80,w.padLength=64,w.prototype._update=function(L,D){for(var z=this.W,V=0;V<16;V++)z[V]=L[D+V];for(;V{"use strict";var t=m(9299),e=m(9342);function _(){if(!(this instanceof _))return new _;e.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}t.inherits(_,e),We.exports=_,_.blockSize=512,_.outSize=224,_.hmacStrength=192,_.padLength=64,_.prototype._digest=function(s){return"hex"===s?t.toHex32(this.h.slice(0,7),"big"):t.split32(this.h.slice(0,7),"big")}},9342:(We,q,m)=>{"use strict";var t=m(9299),e=m(3800),_=m(3113),T=m(2391),s=t.sum32,y=t.sum32_4,h=t.sum32_5,P=_.ch32,d=_.maj32,w=_.s0_256,C=_.s1_256,L=_.g0_256,D=_.g1_256,z=e.BlockHash,V=[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 Y(){if(!(this instanceof Y))return new Y;z.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=V,this.W=new Array(64)}t.inherits(Y,z),We.exports=Y,Y.blockSize=512,Y.outSize=256,Y.hmacStrength=192,Y.padLength=64,Y.prototype._update=function(Q,J){for(var ee=this.W,me=0;me<16;me++)ee[me]=Q[J+me];for(;me{"use strict";var t=m(9299),e=m(39);function _(){if(!(this instanceof _))return new _;e.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}t.inherits(_,e),We.exports=_,_.blockSize=1024,_.outSize=384,_.hmacStrength=192,_.padLength=128,_.prototype._digest=function(s){return"hex"===s?t.toHex32(this.h.slice(0,12),"big"):t.split32(this.h.slice(0,12),"big")}},39:(We,q,m)=>{"use strict";var t=m(9299),e=m(3800),_=m(2391),T=t.rotr64_hi,s=t.rotr64_lo,y=t.shr64_hi,h=t.shr64_lo,P=t.sum64,d=t.sum64_hi,w=t.sum64_lo,C=t.sum64_4_hi,L=t.sum64_4_lo,D=t.sum64_5_hi,z=t.sum64_5_lo,V=e.BlockHash,Y=[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;V.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=Y,this.W=new Array(160)}function Q(f,l,v,I,k){var x=f&v^~f&k;return x<0&&(x+=4294967296),x}function J(f,l,v,I,k,x){var n=l&I^~l&x;return n<0&&(n+=4294967296),n}function ee(f,l,v,I,k){var x=f&v^f&k^v&k;return x<0&&(x+=4294967296),x}function me(f,l,v,I,k,x){var n=l&I^l&x^I&x;return n<0&&(n+=4294967296),n}function re(f,l){var x=T(f,l,28)^T(l,f,2)^T(l,f,7);return x<0&&(x+=4294967296),x}function ie(f,l){var x=s(f,l,28)^s(l,f,2)^s(l,f,7);return x<0&&(x+=4294967296),x}function se(f,l){var x=T(f,l,14)^T(f,l,18)^T(l,f,9);return x<0&&(x+=4294967296),x}function ce(f,l){var x=s(f,l,14)^s(f,l,18)^s(l,f,9);return x<0&&(x+=4294967296),x}function Ce(f,l){var x=T(f,l,1)^T(f,l,8)^y(f,l,7);return x<0&&(x+=4294967296),x}function M(f,l){var x=s(f,l,1)^s(f,l,8)^h(f,l,7);return x<0&&(x+=4294967296),x}function i(f,l){var x=T(f,l,19)^T(l,f,29)^y(f,l,6);return x<0&&(x+=4294967296),x}function a(f,l){var x=s(f,l,19)^s(l,f,29)^h(f,l,6);return x<0&&(x+=4294967296),x}t.inherits(j,V),We.exports=j,j.blockSize=1024,j.outSize=512,j.hmacStrength=192,j.padLength=128,j.prototype._prepareBlock=function(l,v){for(var I=this.W,k=0;k<32;k++)I[k]=l[v+k];for(;k{"use strict";var e=m(9299).rotr32;function T(C,L,D){return C&L^~C&D}function s(C,L,D){return C&L^C&D^L&D}function y(C,L,D){return C^L^D}q.ft_1=function _(C,L,D,z){return 0===C?T(L,D,z):1===C||3===C?y(L,D,z):2===C?s(L,D,z):void 0},q.ch32=T,q.maj32=s,q.p32=y,q.s0_256=function h(C){return e(C,2)^e(C,13)^e(C,22)},q.s1_256=function P(C){return e(C,6)^e(C,11)^e(C,25)},q.g0_256=function d(C){return e(C,7)^e(C,18)^C>>>3},q.g1_256=function w(C){return e(C,17)^e(C,19)^C>>>10}},9299:(We,q,m)=>{"use strict";var t=m(2391),e=m(3894);function _(a,f){return!(55296!=(64512&a.charCodeAt(f))||f<0||f+1>=a.length)&&56320==(64512&a.charCodeAt(f+1))}function y(a){return(a>>>24|a>>>8&65280|a<<8&16711680|(255&a)<<24)>>>0}function P(a){return 1===a.length?"0"+a:a}function d(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=e,q.toArray=function T(a,f){if(Array.isArray(a))return a.slice();if(!a)return[];var l=[];if("string"==typeof a)if(f){if("hex"===f)for((a=a.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(a="0"+a),I=0;I>6|192,l[v++]=63&k|128):_(a,I)?(k=65536+((1023&k)<<10)+(1023&a.charCodeAt(++I)),l[v++]=k>>18|240,l[v++]=k>>12&63|128,l[v++]=k>>6&63|128,l[v++]=63&k|128):(l[v++]=k>>12|224,l[v++]=k>>6&63|128,l[v++]=63&k|128)}else for(I=0;I>>0;return k},q.split32=function C(a,f){for(var l=new Array(4*a.length),v=0,I=0;v>>24,l[I+1]=k>>>16&255,l[I+2]=k>>>8&255,l[I+3]=255&k):(l[I+3]=k>>>24,l[I+2]=k>>>16&255,l[I+1]=k>>>8&255,l[I]=255&k)}return l},q.rotr32=function L(a,f){return a>>>f|a<<32-f},q.rotl32=function D(a,f){return a<>>32-f},q.sum32=function z(a,f){return a+f>>>0},q.sum32_3=function V(a,f,l){return a+f+l>>>0},q.sum32_4=function Y(a,f,l,v){return a+f+l+v>>>0},q.sum32_5=function j(a,f,l,v,I){return a+f+l+v+I>>>0},q.sum64=function Q(a,f,l,v){var x=v+a[f+1]>>>0;a[f]=(x>>0,a[f+1]=x},q.sum64_hi=function J(a,f,l,v){return(f+v>>>0>>0},q.sum64_lo=function ee(a,f,l,v){return f+v>>>0},q.sum64_4_hi=function me(a,f,l,v,I,k,x,n){var g=0,W=f;return g+=(W=W+v>>>0)>>0)>>0)>>0},q.sum64_4_lo=function re(a,f,l,v,I,k,x,n){return f+v+k+n>>>0},q.sum64_5_hi=function ie(a,f,l,v,I,k,x,n,g,W){var O=0,U=f;return O+=(U=U+v>>>0)>>0)>>0)>>0)>>0},q.sum64_5_lo=function se(a,f,l,v,I,k,x,n,g,W){return f+v+k+n+W>>>0},q.rotr64_hi=function ce(a,f,l){return(f<<32-l|a>>>l)>>>0},q.rotr64_lo=function Ce(a,f,l){return(a<<32-l|f>>>l)>>>0},q.shr64_hi=function M(a,f,l){return a>>>l},q.shr64_lo=function i(a,f,l){return(a<<32-l|f>>>l)>>>0}},2438:(We,q,m)=>{"use strict";var t=m(7084),e=m(8195),_=m(2391);function T(s){if(!(this instanceof T))return new T(s);this.hash=s.hash,this.predResist=!!s.predResist,this.outLen=this.hash.outSize,this.minEntropy=s.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var y=e.toArray(s.entropy,s.entropyEnc||"hex"),h=e.toArray(s.nonce,s.nonceEnc||"hex"),P=e.toArray(s.pers,s.persEnc||"hex");_(y.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(y,h,P)}We.exports=T,T.prototype._init=function(y,h,P){var d=y.concat(h).concat(P);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var w=0;w=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(y.concat(P||[])),this._reseed=1},T.prototype.generate=function(y,h,P,d){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof h&&(d=P,P=h,h=null),P&&(P=e.toArray(P,d||"hex"),this._update(P));for(var w=[];w.length{q.read=function(m,t,e,_,T){var s,y,h=8*T-_-1,P=(1<>1,w=-7,C=e?T-1:0,L=e?-1:1,D=m[t+C];for(C+=L,s=D&(1<<-w)-1,D>>=-w,w+=h;w>0;s=256*s+m[t+C],C+=L,w-=8);for(y=s&(1<<-w)-1,s>>=-w,w+=_;w>0;y=256*y+m[t+C],C+=L,w-=8);if(0===s)s=1-d;else{if(s===P)return y?NaN:1/0*(D?-1:1);y+=Math.pow(2,_),s-=d}return(D?-1:1)*y*Math.pow(2,s-_)},q.write=function(m,t,e,_,T,s){var y,h,P,d=8*s-T-1,w=(1<>1,L=23===T?Math.pow(2,-24)-Math.pow(2,-77):0,D=_?0:s-1,z=_?1:-1,V=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(h=isNaN(t)?1:0,y=w):(y=Math.floor(Math.log(t)/Math.LN2),t*(P=Math.pow(2,-y))<1&&(y--,P*=2),(t+=y+C>=1?L/P:L*Math.pow(2,1-C))*P>=2&&(y++,P/=2),y+C>=w?(h=0,y=w):y+C>=1?(h=(t*P-1)*Math.pow(2,T),y+=C):(h=t*Math.pow(2,C-1)*Math.pow(2,T),y=0));T>=8;m[e+D]=255&h,D+=z,h/=256,T-=8);for(y=y<0;m[e+D]=255&y,D+=z,y/=256,d-=8);m[e+D-z]|=128*V}},3894:We=>{We.exports="function"==typeof Object.create?function(m,t){t&&(m.super_=t,m.prototype=Object.create(t.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}))}:function(m,t){if(t){m.super_=t;var e=function(){};e.prototype=t.prototype,m.prototype=new e,m.prototype.constructor=m}}},8095:(We,q,m)=>{"use strict";var t=m(3894),e=m(9650),_=m(3502).Buffer,T=new Array(16);function s(){e.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function y(C,L){return C<>>32-L}function h(C,L,D,z,V,Y,j){return y(C+(L&D|~L&z)+V+Y|0,j)+L|0}function P(C,L,D,z,V,Y,j){return y(C+(L&z|D&~z)+V+Y|0,j)+L|0}function d(C,L,D,z,V,Y,j){return y(C+(L^D^z)+V+Y|0,j)+L|0}function w(C,L,D,z,V,Y,j){return y(C+(D^(L|~z))+V+Y|0,j)+L|0}t(s,e),s.prototype._update=function(){for(var C=T,L=0;L<16;++L)C[L]=this._block.readInt32LE(4*L);var D=this._a,z=this._b,V=this._c,Y=this._d;D=h(D,z,V,Y,C[0],3614090360,7),Y=h(Y,D,z,V,C[1],3905402710,12),V=h(V,Y,D,z,C[2],606105819,17),z=h(z,V,Y,D,C[3],3250441966,22),D=h(D,z,V,Y,C[4],4118548399,7),Y=h(Y,D,z,V,C[5],1200080426,12),V=h(V,Y,D,z,C[6],2821735955,17),z=h(z,V,Y,D,C[7],4249261313,22),D=h(D,z,V,Y,C[8],1770035416,7),Y=h(Y,D,z,V,C[9],2336552879,12),V=h(V,Y,D,z,C[10],4294925233,17),z=h(z,V,Y,D,C[11],2304563134,22),D=h(D,z,V,Y,C[12],1804603682,7),Y=h(Y,D,z,V,C[13],4254626195,12),V=h(V,Y,D,z,C[14],2792965006,17),D=P(D,z=h(z,V,Y,D,C[15],1236535329,22),V,Y,C[1],4129170786,5),Y=P(Y,D,z,V,C[6],3225465664,9),V=P(V,Y,D,z,C[11],643717713,14),z=P(z,V,Y,D,C[0],3921069994,20),D=P(D,z,V,Y,C[5],3593408605,5),Y=P(Y,D,z,V,C[10],38016083,9),V=P(V,Y,D,z,C[15],3634488961,14),z=P(z,V,Y,D,C[4],3889429448,20),D=P(D,z,V,Y,C[9],568446438,5),Y=P(Y,D,z,V,C[14],3275163606,9),V=P(V,Y,D,z,C[3],4107603335,14),z=P(z,V,Y,D,C[8],1163531501,20),D=P(D,z,V,Y,C[13],2850285829,5),Y=P(Y,D,z,V,C[2],4243563512,9),V=P(V,Y,D,z,C[7],1735328473,14),D=d(D,z=P(z,V,Y,D,C[12],2368359562,20),V,Y,C[5],4294588738,4),Y=d(Y,D,z,V,C[8],2272392833,11),V=d(V,Y,D,z,C[11],1839030562,16),z=d(z,V,Y,D,C[14],4259657740,23),D=d(D,z,V,Y,C[1],2763975236,4),Y=d(Y,D,z,V,C[4],1272893353,11),V=d(V,Y,D,z,C[7],4139469664,16),z=d(z,V,Y,D,C[10],3200236656,23),D=d(D,z,V,Y,C[13],681279174,4),Y=d(Y,D,z,V,C[0],3936430074,11),V=d(V,Y,D,z,C[3],3572445317,16),z=d(z,V,Y,D,C[6],76029189,23),D=d(D,z,V,Y,C[9],3654602809,4),Y=d(Y,D,z,V,C[12],3873151461,11),V=d(V,Y,D,z,C[15],530742520,16),D=w(D,z=d(z,V,Y,D,C[2],3299628645,23),V,Y,C[0],4096336452,6),Y=w(Y,D,z,V,C[7],1126891415,10),V=w(V,Y,D,z,C[14],2878612391,15),z=w(z,V,Y,D,C[5],4237533241,21),D=w(D,z,V,Y,C[12],1700485571,6),Y=w(Y,D,z,V,C[3],2399980690,10),V=w(V,Y,D,z,C[10],4293915773,15),z=w(z,V,Y,D,C[1],2240044497,21),D=w(D,z,V,Y,C[8],1873313359,6),Y=w(Y,D,z,V,C[15],4264355552,10),V=w(V,Y,D,z,C[6],2734768916,15),z=w(z,V,Y,D,C[13],1309151649,21),D=w(D,z,V,Y,C[4],4149444226,6),Y=w(Y,D,z,V,C[11],3174756917,10),V=w(V,Y,D,z,C[2],718787259,15),z=w(z,V,Y,D,C[9],3951481745,21),this._a=this._a+D|0,this._b=this._b+z|0,this._c=this._c+V|0,this._d=this._d+Y|0},s.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 C=_.allocUnsafe(16);return C.writeInt32LE(this._a,0),C.writeInt32LE(this._b,4),C.writeInt32LE(this._c,8),C.writeInt32LE(this._d,12),C},We.exports=s},7079:(We,q,m)=>{var t=m(1378),e=m(7950);function _(T){this.rand=T||new e.Rand}We.exports=_,_.create=function(s){return new _(s)},_.prototype._randbelow=function(s){var y=s.bitLength(),h=Math.ceil(y/8);do{var P=new t(this.rand.generate(h))}while(P.cmp(s)>=0);return P},_.prototype._randrange=function(s,y){var h=y.sub(s);return s.add(this._randbelow(h))},_.prototype.test=function(s,y,h){var P=s.bitLength(),d=t.mont(s),w=new t(1).toRed(d);y||(y=Math.max(1,P/48|0));for(var C=s.subn(1),L=0;!C.testn(L);L++);for(var D=s.shrn(L),z=C.toRed(d);y>0;y--){var Y=this._randrange(new t(2),C);h&&h(Y);var j=Y.toRed(d).redPow(D);if(0!==j.cmp(w)&&0!==j.cmp(z)){for(var Q=1;Q0;y--){var z=this._randrange(new t(2),w),V=s.gcd(z);if(0!==V.cmpn(1))return V;var Y=z.toRed(P).redPow(L);if(0!==Y.cmp(d)&&0!==Y.cmp(D)){for(var j=1;j=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function P(M,i,a){var f=h(M,a);return a-1>=i&&(f|=h(M,a-1)<<4),f}function d(M,i,a,f){for(var l=0,v=Math.min(M.length,a),I=i;I=49?k-49+10:k>=17?k-17+10:k}return l}s.isBN=function(i){return i instanceof s||null!==i&&"object"==typeof i&&i.constructor.wordSize===s.wordSize&&Array.isArray(i.words)},s.max=function(i,a){return i.cmp(a)>0?i:a},s.min=function(i,a){return i.cmp(a)<0?i:a},s.prototype._init=function(i,a,f){if("number"==typeof i)return this._initNumber(i,a,f);if("object"==typeof i)return this._initArray(i,a,f);"hex"===a&&(a=16),_(a===(0|a)&&a>=2&&a<=36);var l=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(l++,this.negative=1),l=0;l-=3)this.words[v]|=(I=i[l]|i[l-1]<<8|i[l-2]<<16)<>>26-k&67108863,(k+=24)>=26&&(k-=26,v++);else if("le"===f)for(l=0,v=0;l>>26-k&67108863,(k+=24)>=26&&(k-=26,v++);return this.strip()},s.prototype._parseHex=function(i,a,f){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var l=0;l=a;l-=2)k=P(i,a,l)<=18?(v-=18,this.words[I+=1]|=k>>>26):v+=8;else for(l=(i.length-a)%2==0?a+1:a;l=18?(v-=18,this.words[I+=1]|=k>>>26):v+=8;this.strip()},s.prototype._parseBase=function(i,a,f){this.words=[0],this.length=1;for(var l=0,v=1;v<=67108863;v*=a)l++;l--,v=v/a|0;for(var I=i.length-f,k=I%l,x=Math.min(I,I-k)+f,n=0,g=f;g1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var w=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[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],L=[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 z(M,i,a){a.negative=i.negative^M.negative;var f=M.length+i.length|0;a.length=f,f=f-1|0;var l=0|M.words[0],v=0|i.words[0],I=l*v,x=I/67108864|0;a.words[0]=67108863&I;for(var n=1;n>>26,W=67108863&x,O=Math.min(n,i.length-1),U=Math.max(0,n-M.length+1);U<=O;U++)g+=(I=(l=0|M.words[n-U|0])*(v=0|i.words[U])+W)/67108864|0,W=67108863&I;a.words[n]=0|W,x=0|g}return 0!==x?a.words[n]=0|x:a.length--,a.strip()}s.prototype.toString=function(i,a){var f;if(a=0|a||1,16===(i=i||10)||"hex"===i){f="";for(var l=0,v=0,I=0;I>>24-l&16777215)||I!==this.length-1?w[6-x.length]+x+f:x+f,(l+=2)>=26&&(l-=26,I--)}for(0!==v&&(f=v.toString(16)+f);f.length%a!=0;)f="0"+f;return 0!==this.negative&&(f="-"+f),f}if(i===(0|i)&&i>=2&&i<=36){var n=C[i],g=L[i];f="";var W=this.clone();for(W.negative=0;!W.isZero();){var O=W.modn(g).toString(i);f=(W=W.idivn(g)).isZero()?O+f:w[n-O.length]+O+f}for(this.isZero()&&(f="0"+f);f.length%a!=0;)f="0"+f;return 0!==this.negative&&(f="-"+f),f}_(!1,"Base should be between 2 and 36")},s.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&&_(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(i,a){return _(typeof y<"u"),this.toArrayLike(y,i,a)},s.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},s.prototype.toArrayLike=function(i,a,f){var l=this.byteLength(),v=f||Math.max(1,l);_(l<=v,"byte array longer than desired length"),_(v>0,"Requested array length <= 0"),this.strip();var x,n,I="le"===a,k=new i(v),g=this.clone();if(I){for(n=0;!g.isZero();n++)x=g.andln(255),g.iushrn(8),k[n]=x;for(;n=4096&&(f+=13,a>>>=13),a>=64&&(f+=7,a>>>=7),a>=8&&(f+=4,a>>>=4),a>=2&&(f+=2,a>>>=2),f+a},s.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,f=0;return 8191&a||(f+=13,a>>>=13),127&a||(f+=7,a>>>=7),15&a||(f+=4,a>>>=4),3&a||(f+=2,a>>>=2),1&a||f++,f},s.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},s.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},s.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var f=0;fi.length?this.clone().iand(i):i.clone().iand(this)},s.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},s.prototype.iuxor=function(i){var a,f;this.length>i.length?(a=this,f=i):(a=i,f=this);for(var l=0;li.length?this.clone().ixor(i):i.clone().ixor(this)},s.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},s.prototype.inotn=function(i){_("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),f=i%26;this._expand(a),f>0&&a--;for(var l=0;l0&&(this.words[l]=~this.words[l]&67108863>>26-f),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,a){_("number"==typeof i&&i>=0);var f=i/26|0,l=i%26;return this._expand(f+1),this.words[f]=a?this.words[f]|1<i.length?(f=this,l=i):(f=i,l=this);for(var v=0,I=0;I>>26;for(;0!==v&&I>>26;if(this.length=f.length,0!==v)this.words[this.length]=v,this.length++;else if(f!==this)for(;Ii.length?this.clone().iadd(i):i.clone().iadd(this)},s.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 l,v,f=this.cmp(i);if(0===f)return this.negative=0,this.length=1,this.words[0]=0,this;f>0?(l=this,v=i):(l=i,v=this);for(var I=0,k=0;k>26,this.words[k]=67108863&a;for(;0!==I&&k>26,this.words[k]=67108863&a;if(0===I&&k>>13,ge=0|l[1],nt=8191&ge,Ue=ge>>>13,at=0|l[2],ye=8191&at,xe=at>>>13,fe=0|l[3],Oe=8191&fe,oe=fe>>>13,Fe=0|l[4],De=8191&Fe,he=Fe>>>13,Me=0|l[5],pe=8191&Me,Ve=Me>>>13,Qe=0|l[6],Pe=8191&Qe,de=Qe>>>13,rt=0|l[7],Ke=8191&rt,lt=rt>>>13,Ut=0|l[8],ht=8191&Ut,Ge=Ut>>>13,yt=0|l[9],be=8191&yt,qe=yt>>>13,Ie=0|v[0],X=8191&Ie,mt=Ie>>>13,Tt=0|v[1],it=8191&Tt,je=Tt>>>13,zt=0|v[2],xt=8191&zt,Nt=zt>>>13,Gt=0|v[3],ke=8191&Gt,$=Gt>>>13,ue=0|v[4],Ae=8191&ue,Je=ue>>>13,$t=0|v[5],Vt=8191&$t,ii=$t>>>13,pt=0|v[6],ot=8191&pt,ft=pt>>>13,St=0|v[7],gt=8191&St,$e=St>>>13,_t=0|v[8],vt=8191&_t,He=_t>>>13,Et=0|v[9],At=8191&Et,Qt=Et>>>13;f.negative=i.negative^a.negative,f.length=19;var zi=(k+(x=Math.imul(O,X))|0)+((8191&(n=(n=Math.imul(O,mt))+Math.imul(U,X)|0))<<13)|0;k=((g=Math.imul(U,mt))+(n>>>13)|0)+(zi>>>26)|0,zi&=67108863,x=Math.imul(nt,X),n=(n=Math.imul(nt,mt))+Math.imul(Ue,X)|0,g=Math.imul(Ue,mt);var Ni=(k+(x=x+Math.imul(O,it)|0)|0)+((8191&(n=(n=n+Math.imul(O,je)|0)+Math.imul(U,it)|0))<<13)|0;k=((g=g+Math.imul(U,je)|0)+(n>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(ye,X),n=(n=Math.imul(ye,mt))+Math.imul(xe,X)|0,g=Math.imul(xe,mt),x=x+Math.imul(nt,it)|0,n=(n=n+Math.imul(nt,je)|0)+Math.imul(Ue,it)|0,g=g+Math.imul(Ue,je)|0;var Mi=(k+(x=x+Math.imul(O,xt)|0)|0)+((8191&(n=(n=n+Math.imul(O,Nt)|0)+Math.imul(U,xt)|0))<<13)|0;k=((g=g+Math.imul(U,Nt)|0)+(n>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,x=Math.imul(Oe,X),n=(n=Math.imul(Oe,mt))+Math.imul(oe,X)|0,g=Math.imul(oe,mt),x=x+Math.imul(ye,it)|0,n=(n=n+Math.imul(ye,je)|0)+Math.imul(xe,it)|0,g=g+Math.imul(xe,je)|0,x=x+Math.imul(nt,xt)|0,n=(n=n+Math.imul(nt,Nt)|0)+Math.imul(Ue,xt)|0,g=g+Math.imul(Ue,Nt)|0;var Gi=(k+(x=x+Math.imul(O,ke)|0)|0)+((8191&(n=(n=n+Math.imul(O,$)|0)+Math.imul(U,ke)|0))<<13)|0;k=((g=g+Math.imul(U,$)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,x=Math.imul(De,X),n=(n=Math.imul(De,mt))+Math.imul(he,X)|0,g=Math.imul(he,mt),x=x+Math.imul(Oe,it)|0,n=(n=n+Math.imul(Oe,je)|0)+Math.imul(oe,it)|0,g=g+Math.imul(oe,je)|0,x=x+Math.imul(ye,xt)|0,n=(n=n+Math.imul(ye,Nt)|0)+Math.imul(xe,xt)|0,g=g+Math.imul(xe,Nt)|0,x=x+Math.imul(nt,ke)|0,n=(n=n+Math.imul(nt,$)|0)+Math.imul(Ue,ke)|0,g=g+Math.imul(Ue,$)|0;var Xe=(k+(x=x+Math.imul(O,Ae)|0)|0)+((8191&(n=(n=n+Math.imul(O,Je)|0)+Math.imul(U,Ae)|0))<<13)|0;k=((g=g+Math.imul(U,Je)|0)+(n>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,x=Math.imul(pe,X),n=(n=Math.imul(pe,mt))+Math.imul(Ve,X)|0,g=Math.imul(Ve,mt),x=x+Math.imul(De,it)|0,n=(n=n+Math.imul(De,je)|0)+Math.imul(he,it)|0,g=g+Math.imul(he,je)|0,x=x+Math.imul(Oe,xt)|0,n=(n=n+Math.imul(Oe,Nt)|0)+Math.imul(oe,xt)|0,g=g+Math.imul(oe,Nt)|0,x=x+Math.imul(ye,ke)|0,n=(n=n+Math.imul(ye,$)|0)+Math.imul(xe,ke)|0,g=g+Math.imul(xe,$)|0,x=x+Math.imul(nt,Ae)|0,n=(n=n+Math.imul(nt,Je)|0)+Math.imul(Ue,Ae)|0,g=g+Math.imul(Ue,Je)|0;var It=(k+(x=x+Math.imul(O,Vt)|0)|0)+((8191&(n=(n=n+Math.imul(O,ii)|0)+Math.imul(U,Vt)|0))<<13)|0;k=((g=g+Math.imul(U,ii)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,x=Math.imul(Pe,X),n=(n=Math.imul(Pe,mt))+Math.imul(de,X)|0,g=Math.imul(de,mt),x=x+Math.imul(pe,it)|0,n=(n=n+Math.imul(pe,je)|0)+Math.imul(Ve,it)|0,g=g+Math.imul(Ve,je)|0,x=x+Math.imul(De,xt)|0,n=(n=n+Math.imul(De,Nt)|0)+Math.imul(he,xt)|0,g=g+Math.imul(he,Nt)|0,x=x+Math.imul(Oe,ke)|0,n=(n=n+Math.imul(Oe,$)|0)+Math.imul(oe,ke)|0,g=g+Math.imul(oe,$)|0,x=x+Math.imul(ye,Ae)|0,n=(n=n+Math.imul(ye,Je)|0)+Math.imul(xe,Ae)|0,g=g+Math.imul(xe,Je)|0,x=x+Math.imul(nt,Vt)|0,n=(n=n+Math.imul(nt,ii)|0)+Math.imul(Ue,Vt)|0,g=g+Math.imul(Ue,ii)|0;var Se=(k+(x=x+Math.imul(O,ot)|0)|0)+((8191&(n=(n=n+Math.imul(O,ft)|0)+Math.imul(U,ot)|0))<<13)|0;k=((g=g+Math.imul(U,ft)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,x=Math.imul(Ke,X),n=(n=Math.imul(Ke,mt))+Math.imul(lt,X)|0,g=Math.imul(lt,mt),x=x+Math.imul(Pe,it)|0,n=(n=n+Math.imul(Pe,je)|0)+Math.imul(de,it)|0,g=g+Math.imul(de,je)|0,x=x+Math.imul(pe,xt)|0,n=(n=n+Math.imul(pe,Nt)|0)+Math.imul(Ve,xt)|0,g=g+Math.imul(Ve,Nt)|0,x=x+Math.imul(De,ke)|0,n=(n=n+Math.imul(De,$)|0)+Math.imul(he,ke)|0,g=g+Math.imul(he,$)|0,x=x+Math.imul(Oe,Ae)|0,n=(n=n+Math.imul(Oe,Je)|0)+Math.imul(oe,Ae)|0,g=g+Math.imul(oe,Je)|0,x=x+Math.imul(ye,Vt)|0,n=(n=n+Math.imul(ye,ii)|0)+Math.imul(xe,Vt)|0,g=g+Math.imul(xe,ii)|0,x=x+Math.imul(nt,ot)|0,n=(n=n+Math.imul(nt,ft)|0)+Math.imul(Ue,ot)|0,g=g+Math.imul(Ue,ft)|0;var wt=(k+(x=x+Math.imul(O,gt)|0)|0)+((8191&(n=(n=n+Math.imul(O,$e)|0)+Math.imul(U,gt)|0))<<13)|0;k=((g=g+Math.imul(U,$e)|0)+(n>>>13)|0)+(wt>>>26)|0,wt&=67108863,x=Math.imul(ht,X),n=(n=Math.imul(ht,mt))+Math.imul(Ge,X)|0,g=Math.imul(Ge,mt),x=x+Math.imul(Ke,it)|0,n=(n=n+Math.imul(Ke,je)|0)+Math.imul(lt,it)|0,g=g+Math.imul(lt,je)|0,x=x+Math.imul(Pe,xt)|0,n=(n=n+Math.imul(Pe,Nt)|0)+Math.imul(de,xt)|0,g=g+Math.imul(de,Nt)|0,x=x+Math.imul(pe,ke)|0,n=(n=n+Math.imul(pe,$)|0)+Math.imul(Ve,ke)|0,g=g+Math.imul(Ve,$)|0,x=x+Math.imul(De,Ae)|0,n=(n=n+Math.imul(De,Je)|0)+Math.imul(he,Ae)|0,g=g+Math.imul(he,Je)|0,x=x+Math.imul(Oe,Vt)|0,n=(n=n+Math.imul(Oe,ii)|0)+Math.imul(oe,Vt)|0,g=g+Math.imul(oe,ii)|0,x=x+Math.imul(ye,ot)|0,n=(n=n+Math.imul(ye,ft)|0)+Math.imul(xe,ot)|0,g=g+Math.imul(xe,ft)|0,x=x+Math.imul(nt,gt)|0,n=(n=n+Math.imul(nt,$e)|0)+Math.imul(Ue,gt)|0,g=g+Math.imul(Ue,$e)|0;var Zt=(k+(x=x+Math.imul(O,vt)|0)|0)+((8191&(n=(n=n+Math.imul(O,He)|0)+Math.imul(U,vt)|0))<<13)|0;k=((g=g+Math.imul(U,He)|0)+(n>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,x=Math.imul(be,X),n=(n=Math.imul(be,mt))+Math.imul(qe,X)|0,g=Math.imul(qe,mt),x=x+Math.imul(ht,it)|0,n=(n=n+Math.imul(ht,je)|0)+Math.imul(Ge,it)|0,g=g+Math.imul(Ge,je)|0,x=x+Math.imul(Ke,xt)|0,n=(n=n+Math.imul(Ke,Nt)|0)+Math.imul(lt,xt)|0,g=g+Math.imul(lt,Nt)|0,x=x+Math.imul(Pe,ke)|0,n=(n=n+Math.imul(Pe,$)|0)+Math.imul(de,ke)|0,g=g+Math.imul(de,$)|0,x=x+Math.imul(pe,Ae)|0,n=(n=n+Math.imul(pe,Je)|0)+Math.imul(Ve,Ae)|0,g=g+Math.imul(Ve,Je)|0,x=x+Math.imul(De,Vt)|0,n=(n=n+Math.imul(De,ii)|0)+Math.imul(he,Vt)|0,g=g+Math.imul(he,ii)|0,x=x+Math.imul(Oe,ot)|0,n=(n=n+Math.imul(Oe,ft)|0)+Math.imul(oe,ot)|0,g=g+Math.imul(oe,ft)|0,x=x+Math.imul(ye,gt)|0,n=(n=n+Math.imul(ye,$e)|0)+Math.imul(xe,gt)|0,g=g+Math.imul(xe,$e)|0,x=x+Math.imul(nt,vt)|0,n=(n=n+Math.imul(nt,He)|0)+Math.imul(Ue,vt)|0,g=g+Math.imul(Ue,He)|0;var si=(k+(x=x+Math.imul(O,At)|0)|0)+((8191&(n=(n=n+Math.imul(O,Qt)|0)+Math.imul(U,At)|0))<<13)|0;k=((g=g+Math.imul(U,Qt)|0)+(n>>>13)|0)+(si>>>26)|0,si&=67108863,x=Math.imul(be,it),n=(n=Math.imul(be,je))+Math.imul(qe,it)|0,g=Math.imul(qe,je),x=x+Math.imul(ht,xt)|0,n=(n=n+Math.imul(ht,Nt)|0)+Math.imul(Ge,xt)|0,g=g+Math.imul(Ge,Nt)|0,x=x+Math.imul(Ke,ke)|0,n=(n=n+Math.imul(Ke,$)|0)+Math.imul(lt,ke)|0,g=g+Math.imul(lt,$)|0,x=x+Math.imul(Pe,Ae)|0,n=(n=n+Math.imul(Pe,Je)|0)+Math.imul(de,Ae)|0,g=g+Math.imul(de,Je)|0,x=x+Math.imul(pe,Vt)|0,n=(n=n+Math.imul(pe,ii)|0)+Math.imul(Ve,Vt)|0,g=g+Math.imul(Ve,ii)|0,x=x+Math.imul(De,ot)|0,n=(n=n+Math.imul(De,ft)|0)+Math.imul(he,ot)|0,g=g+Math.imul(he,ft)|0,x=x+Math.imul(Oe,gt)|0,n=(n=n+Math.imul(Oe,$e)|0)+Math.imul(oe,gt)|0,g=g+Math.imul(oe,$e)|0,x=x+Math.imul(ye,vt)|0,n=(n=n+Math.imul(ye,He)|0)+Math.imul(xe,vt)|0,g=g+Math.imul(xe,He)|0;var Ai=(k+(x=x+Math.imul(nt,At)|0)|0)+((8191&(n=(n=n+Math.imul(nt,Qt)|0)+Math.imul(Ue,At)|0))<<13)|0;k=((g=g+Math.imul(Ue,Qt)|0)+(n>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,x=Math.imul(be,xt),n=(n=Math.imul(be,Nt))+Math.imul(qe,xt)|0,g=Math.imul(qe,Nt),x=x+Math.imul(ht,ke)|0,n=(n=n+Math.imul(ht,$)|0)+Math.imul(Ge,ke)|0,g=g+Math.imul(Ge,$)|0,x=x+Math.imul(Ke,Ae)|0,n=(n=n+Math.imul(Ke,Je)|0)+Math.imul(lt,Ae)|0,g=g+Math.imul(lt,Je)|0,x=x+Math.imul(Pe,Vt)|0,n=(n=n+Math.imul(Pe,ii)|0)+Math.imul(de,Vt)|0,g=g+Math.imul(de,ii)|0,x=x+Math.imul(pe,ot)|0,n=(n=n+Math.imul(pe,ft)|0)+Math.imul(Ve,ot)|0,g=g+Math.imul(Ve,ft)|0,x=x+Math.imul(De,gt)|0,n=(n=n+Math.imul(De,$e)|0)+Math.imul(he,gt)|0,g=g+Math.imul(he,$e)|0,x=x+Math.imul(Oe,vt)|0,n=(n=n+Math.imul(Oe,He)|0)+Math.imul(oe,vt)|0,g=g+Math.imul(oe,He)|0;var Oi=(k+(x=x+Math.imul(ye,At)|0)|0)+((8191&(n=(n=n+Math.imul(ye,Qt)|0)+Math.imul(xe,At)|0))<<13)|0;k=((g=g+Math.imul(xe,Qt)|0)+(n>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,x=Math.imul(be,ke),n=(n=Math.imul(be,$))+Math.imul(qe,ke)|0,g=Math.imul(qe,$),x=x+Math.imul(ht,Ae)|0,n=(n=n+Math.imul(ht,Je)|0)+Math.imul(Ge,Ae)|0,g=g+Math.imul(Ge,Je)|0,x=x+Math.imul(Ke,Vt)|0,n=(n=n+Math.imul(Ke,ii)|0)+Math.imul(lt,Vt)|0,g=g+Math.imul(lt,ii)|0,x=x+Math.imul(Pe,ot)|0,n=(n=n+Math.imul(Pe,ft)|0)+Math.imul(de,ot)|0,g=g+Math.imul(de,ft)|0,x=x+Math.imul(pe,gt)|0,n=(n=n+Math.imul(pe,$e)|0)+Math.imul(Ve,gt)|0,g=g+Math.imul(Ve,$e)|0,x=x+Math.imul(De,vt)|0,n=(n=n+Math.imul(De,He)|0)+Math.imul(he,vt)|0,g=g+Math.imul(he,He)|0;var Qi=(k+(x=x+Math.imul(Oe,At)|0)|0)+((8191&(n=(n=n+Math.imul(Oe,Qt)|0)+Math.imul(oe,At)|0))<<13)|0;k=((g=g+Math.imul(oe,Qt)|0)+(n>>>13)|0)+(Qi>>>26)|0,Qi&=67108863,x=Math.imul(be,Ae),n=(n=Math.imul(be,Je))+Math.imul(qe,Ae)|0,g=Math.imul(qe,Je),x=x+Math.imul(ht,Vt)|0,n=(n=n+Math.imul(ht,ii)|0)+Math.imul(Ge,Vt)|0,g=g+Math.imul(Ge,ii)|0,x=x+Math.imul(Ke,ot)|0,n=(n=n+Math.imul(Ke,ft)|0)+Math.imul(lt,ot)|0,g=g+Math.imul(lt,ft)|0,x=x+Math.imul(Pe,gt)|0,n=(n=n+Math.imul(Pe,$e)|0)+Math.imul(de,gt)|0,g=g+Math.imul(de,$e)|0,x=x+Math.imul(pe,vt)|0,n=(n=n+Math.imul(pe,He)|0)+Math.imul(Ve,vt)|0,g=g+Math.imul(Ve,He)|0;var en=(k+(x=x+Math.imul(De,At)|0)|0)+((8191&(n=(n=n+Math.imul(De,Qt)|0)+Math.imul(he,At)|0))<<13)|0;k=((g=g+Math.imul(he,Qt)|0)+(n>>>13)|0)+(en>>>26)|0,en&=67108863,x=Math.imul(be,Vt),n=(n=Math.imul(be,ii))+Math.imul(qe,Vt)|0,g=Math.imul(qe,ii),x=x+Math.imul(ht,ot)|0,n=(n=n+Math.imul(ht,ft)|0)+Math.imul(Ge,ot)|0,g=g+Math.imul(Ge,ft)|0,x=x+Math.imul(Ke,gt)|0,n=(n=n+Math.imul(Ke,$e)|0)+Math.imul(lt,gt)|0,g=g+Math.imul(lt,$e)|0,x=x+Math.imul(Pe,vt)|0,n=(n=n+Math.imul(Pe,He)|0)+Math.imul(de,vt)|0,g=g+Math.imul(de,He)|0;var Yi=(k+(x=x+Math.imul(pe,At)|0)|0)+((8191&(n=(n=n+Math.imul(pe,Qt)|0)+Math.imul(Ve,At)|0))<<13)|0;k=((g=g+Math.imul(Ve,Qt)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,x=Math.imul(be,ot),n=(n=Math.imul(be,ft))+Math.imul(qe,ot)|0,g=Math.imul(qe,ft),x=x+Math.imul(ht,gt)|0,n=(n=n+Math.imul(ht,$e)|0)+Math.imul(Ge,gt)|0,g=g+Math.imul(Ge,$e)|0,x=x+Math.imul(Ke,vt)|0,n=(n=n+Math.imul(Ke,He)|0)+Math.imul(lt,vt)|0,g=g+Math.imul(lt,He)|0;var Yt=(k+(x=x+Math.imul(Pe,At)|0)|0)+((8191&(n=(n=n+Math.imul(Pe,Qt)|0)+Math.imul(de,At)|0))<<13)|0;k=((g=g+Math.imul(de,Qt)|0)+(n>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,x=Math.imul(be,gt),n=(n=Math.imul(be,$e))+Math.imul(qe,gt)|0,g=Math.imul(qe,$e),x=x+Math.imul(ht,vt)|0,n=(n=n+Math.imul(ht,He)|0)+Math.imul(Ge,vt)|0,g=g+Math.imul(Ge,He)|0;var qt=(k+(x=x+Math.imul(Ke,At)|0)|0)+((8191&(n=(n=n+Math.imul(Ke,Qt)|0)+Math.imul(lt,At)|0))<<13)|0;k=((g=g+Math.imul(lt,Qt)|0)+(n>>>13)|0)+(qt>>>26)|0,qt&=67108863,x=Math.imul(be,vt),n=(n=Math.imul(be,He))+Math.imul(qe,vt)|0,g=Math.imul(qe,He);var _e=(k+(x=x+Math.imul(ht,At)|0)|0)+((8191&(n=(n=n+Math.imul(ht,Qt)|0)+Math.imul(Ge,At)|0))<<13)|0;k=((g=g+Math.imul(Ge,Qt)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863;var dt=(k+(x=Math.imul(be,At))|0)+((8191&(n=(n=Math.imul(be,Qt))+Math.imul(qe,At)|0))<<13)|0;return k=((g=Math.imul(qe,Qt))+(n>>>13)|0)+(dt>>>26)|0,dt&=67108863,I[0]=zi,I[1]=Ni,I[2]=Mi,I[3]=Gi,I[4]=Xe,I[5]=It,I[6]=Se,I[7]=wt,I[8]=Zt,I[9]=si,I[10]=Ai,I[11]=Oi,I[12]=Qi,I[13]=en,I[14]=Yi,I[15]=Yt,I[16]=qt,I[17]=_e,I[18]=dt,0!==k&&(I[19]=k,f.length++),f};function j(M,i,a){return(new Q).mulp(M,i,a)}function Q(M,i){this.x=M,this.y=i}Math.imul||(V=z),s.prototype.mulTo=function(i,a){var f,l=this.length+i.length;return f=10===this.length&&10===i.length?V(this,i,a):l<63?z(this,i,a):l<1024?function Y(M,i,a){a.negative=i.negative^M.negative,a.length=M.length+i.length;for(var f=0,l=0,v=0;v>>26)|0)>>>26,I&=67108863}a.words[v]=k,f=I,I=l}return 0!==f?a.words[v]=f:a.length--,a.strip()}(this,i,a):j(this,i,a),f},Q.prototype.makeRBT=function(i){for(var a=new Array(i),f=s.prototype._countBits(i)-1,l=0;l>=1;return l},Q.prototype.permute=function(i,a,f,l,v,I){for(var k=0;k>>=1)v++;return 1<>>=13),v>>>=13;for(I=2*a;I>=26,a+=l/67108864|0,a+=v>>>26,this.words[f]=67108863&v}return 0!==a&&(this.words[f]=a,this.length++),this},s.prototype.muln=function(i){return this.clone().imuln(i)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(i){var a=function D(M){for(var i=new Array(M.bitLength()),a=0;a>>l}return i}(i);if(0===a.length)return new s(1);for(var f=this,l=0;l=0);var v,a=i%26,f=(i-a)/26,l=67108863>>>26-a<<26-a;if(0!==a){var I=0;for(v=0;v>>26-a}I&&(this.words[v]=I,this.length++)}if(0!==f){for(v=this.length-1;v>=0;v--)this.words[v+f]=this.words[v];for(v=0;v=0),l=a?(a-a%26)/26:0;var v=i%26,I=Math.min((i-v)/26,this.length),k=67108863^67108863>>>v<I)for(this.length-=I,n=0;n=0&&(0!==g||n>=l);n--){var W=0|this.words[n];this.words[n]=g<<26-v|W>>>v,g=W&k}return x&&0!==g&&(x.words[x.length++]=g),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,a,f){return _(0===this.negative),this.iushrn(i,a,f)},s.prototype.shln=function(i){return this.clone().ishln(i)},s.prototype.ushln=function(i){return this.clone().iushln(i)},s.prototype.shrn=function(i){return this.clone().ishrn(i)},s.prototype.ushrn=function(i){return this.clone().iushrn(i)},s.prototype.testn=function(i){_("number"==typeof i&&i>=0);var a=i%26,f=(i-a)/26;return!(this.length<=f||!(this.words[f]&1<=0);var a=i%26,f=(i-a)/26;return _(0===this.negative,"imaskn works only with positive numbers"),this.length<=f?this:(0!==a&&f++,this.length=Math.min(f,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},s.prototype.isubn=function(i){if(_("number"==typeof i),_(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[v+f]=67108863&I}for(;v>26,this.words[v+f]=67108863&I;if(0===k)return this.strip();for(_(-1===k),k=0,v=0;v>26,this.words[v]=67108863&I;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var f,l=this.clone(),v=i,I=0|v.words[v.length-1];0!=(f=26-this._countBits(I))&&(v=v.ushln(f),l.iushln(f),I=0|v.words[v.length-1]);var n,x=l.length-v.length;if("mod"!==a){(n=new s(null)).length=x+1,n.words=new Array(n.length);for(var g=0;g=0;O--){var U=67108864*(0|l.words[v.length+O])+(0|l.words[v.length+O-1]);for(U=Math.min(U/I|0,67108863),l._ishlnsubmul(v,U,O);0!==l.negative;)U--,l.negative=0,l._ishlnsubmul(v,1,O),l.isZero()||(l.negative^=1);n&&(n.words[O]=U)}return n&&n.strip(),l.strip(),"div"!==a&&0!==f&&l.iushrn(f),{div:n||null,mod:l}},s.prototype.divmod=function(i,a,f){return _(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(I=this.neg().divmod(i,a),"mod"!==a&&(l=I.div.neg()),"div"!==a&&(v=I.mod.neg(),f&&0!==v.negative&&v.iadd(i)),{div:l,mod:v}):0===this.negative&&0!==i.negative?(I=this.divmod(i.neg(),a),"mod"!==a&&(l=I.div.neg()),{div:l,mod:I.mod}):this.negative&i.negative?(I=this.neg().divmod(i.neg(),a),"div"!==a&&(v=I.mod.neg(),f&&0!==v.negative&&v.isub(i)),{div:I.div,mod:v}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new s(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new s(this.modn(i.words[0]))}:this._wordDiv(i,a);var l,v,I},s.prototype.div=function(i){return this.divmod(i,"div",!1).div},s.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},s.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},s.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var f=0!==a.div.negative?a.mod.isub(i):a.mod,l=i.ushrn(1),v=i.andln(1),I=f.cmp(l);return I<0||1===v&&0===I?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},s.prototype.modn=function(i){_(i<=67108863);for(var a=(1<<26)%i,f=0,l=this.length-1;l>=0;l--)f=(a*f+(0|this.words[l]))%i;return f},s.prototype.idivn=function(i){_(i<=67108863);for(var a=0,f=this.length-1;f>=0;f--){var l=(0|this.words[f])+67108864*a;this.words[f]=l/i|0,a=l%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){_(0===i.negative),_(!i.isZero());var a=this,f=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),v=new s(0),I=new s(0),k=new s(1),x=0;a.isEven()&&f.isEven();)a.iushrn(1),f.iushrn(1),++x;for(var n=f.clone(),g=a.clone();!a.isZero();){for(var W=0,O=1;!(a.words[0]&O)&&W<26;++W,O<<=1);if(W>0)for(a.iushrn(W);W-- >0;)(l.isOdd()||v.isOdd())&&(l.iadd(n),v.isub(g)),l.iushrn(1),v.iushrn(1);for(var U=0,ge=1;!(f.words[0]&ge)&&U<26;++U,ge<<=1);if(U>0)for(f.iushrn(U);U-- >0;)(I.isOdd()||k.isOdd())&&(I.iadd(n),k.isub(g)),I.iushrn(1),k.iushrn(1);a.cmp(f)>=0?(a.isub(f),l.isub(I),v.isub(k)):(f.isub(a),I.isub(l),k.isub(v))}return{a:I,b:k,gcd:f.iushln(x)}},s.prototype._invmp=function(i){_(0===i.negative),_(!i.isZero());var W,a=this,f=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),v=new s(0),I=f.clone();a.cmpn(1)>0&&f.cmpn(1)>0;){for(var k=0,x=1;!(a.words[0]&x)&&k<26;++k,x<<=1);if(k>0)for(a.iushrn(k);k-- >0;)l.isOdd()&&l.iadd(I),l.iushrn(1);for(var n=0,g=1;!(f.words[0]&g)&&n<26;++n,g<<=1);if(n>0)for(f.iushrn(n);n-- >0;)v.isOdd()&&v.iadd(I),v.iushrn(1);a.cmp(f)>=0?(a.isub(f),l.isub(v)):(f.isub(a),v.isub(l))}return(W=0===a.cmpn(1)?l:v).cmpn(0)<0&&W.iadd(i),W},s.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),f=i.clone();a.negative=0,f.negative=0;for(var l=0;a.isEven()&&f.isEven();l++)a.iushrn(1),f.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;f.isEven();)f.iushrn(1);var v=a.cmp(f);if(v<0){var I=a;a=f,f=I}else if(0===v||0===f.cmpn(1))break;a.isub(f)}return f.iushln(l)},s.prototype.invm=function(i){return this.egcd(i).a.umod(i)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(i){return this.words[0]&i},s.prototype.bincn=function(i){_("number"==typeof i);var a=i%26,f=(i-a)/26,l=1<>>26,this.words[I]=k&=67108863}return 0!==v&&(this.words[I]=v,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var f,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)f=1;else{a&&(i=-i),_(i<=67108863,"Number is too big");var l=0|this.words[0];f=l===i?0:li.length)return 1;if(this.length=0;f--){var l=0|this.words[f],v=0|i.words[f];if(l!==v){lv&&(a=1);break}}return a},s.prototype.gtn=function(i){return 1===this.cmpn(i)},s.prototype.gt=function(i){return 1===this.cmp(i)},s.prototype.gten=function(i){return this.cmpn(i)>=0},s.prototype.gte=function(i){return this.cmp(i)>=0},s.prototype.ltn=function(i){return-1===this.cmpn(i)},s.prototype.lt=function(i){return-1===this.cmp(i)},s.prototype.lten=function(i){return this.cmpn(i)<=0},s.prototype.lte=function(i){return this.cmp(i)<=0},s.prototype.eqn=function(i){return 0===this.cmpn(i)},s.prototype.eq=function(i){return 0===this.cmp(i)},s.red=function(i){return new ce(i)},s.prototype.toRed=function(i){return _(!this.red,"Already a number in reduction context"),_(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(i){return this.red=i,this},s.prototype.forceRed=function(i){return _(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return _(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var J={k256:null,p224:null,p192:null,p25519:null};function ee(M,i){this.name=M,this.p=new s(i,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function me(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function re(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ce(M){if("string"==typeof M){var i=s._prime(M);this.m=i.p,this.prime=i}else _(M.gtn(1),"modulus must be greater than 1"),this.m=M,this.prime=null}function Ce(M){ce.call(this,M),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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 s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var f,a=i;do{this.split(a,this.tmp),f=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(f>this.n);var l=f0?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)},T(me,ee),me.prototype.split=function(i,a){for(var f=4194303,l=Math.min(i.length,9),v=0;v>>22,I=k}i.words[v-10]=I>>>=22,i.length-=0===I&&i.length>10?10:9},me.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,f=0;f>>=26,i.words[f]=v,a=l}return 0!==a&&(i.words[i.length++]=a),i},s._prime=function(i){if(J[i])return J[i];var a;if("k256"===i)a=new me;else if("p224"===i)a=new re;else if("p192"===i)a=new ie;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new se}return J[i]=a,a},ce.prototype._verify1=function(i){_(0===i.negative,"red works only with positives"),_(i.red,"red works only with red numbers")},ce.prototype._verify2=function(i,a){_(0==(i.negative|a.negative),"red works only with positives"),_(i.red&&i.red===a.red,"red works only with red numbers")},ce.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},ce.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},ce.prototype.add=function(i,a){this._verify2(i,a);var f=i.add(a);return f.cmp(this.m)>=0&&f.isub(this.m),f._forceRed(this)},ce.prototype.iadd=function(i,a){this._verify2(i,a);var f=i.iadd(a);return f.cmp(this.m)>=0&&f.isub(this.m),f},ce.prototype.sub=function(i,a){this._verify2(i,a);var f=i.sub(a);return f.cmpn(0)<0&&f.iadd(this.m),f._forceRed(this)},ce.prototype.isub=function(i,a){this._verify2(i,a);var f=i.isub(a);return f.cmpn(0)<0&&f.iadd(this.m),f},ce.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},ce.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},ce.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},ce.prototype.isqr=function(i){return this.imul(i,i.clone())},ce.prototype.sqr=function(i){return this.mul(i,i)},ce.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(_(a%2==1),3===a){var f=this.m.add(new s(1)).iushrn(2);return this.pow(i,f)}for(var l=this.m.subn(1),v=0;!l.isZero()&&0===l.andln(1);)v++,l.iushrn(1);_(!l.isZero());var I=new s(1).toRed(this),k=I.redNeg(),x=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new s(2*n*n).toRed(this);0!==this.pow(n,x).cmp(k);)n.redIAdd(k);for(var g=this.pow(n,l),W=this.pow(i,l.addn(1).iushrn(1)),O=this.pow(i,l),U=v;0!==O.cmp(I);){for(var ge=O,nt=0;0!==ge.cmp(I);nt++)ge=ge.redSqr();_(nt=0;v--){for(var g=a.words[v],W=n-1;W>=0;W--){var O=g>>W&1;I!==l[0]&&(I=this.sqr(I)),0!==O||0!==k?(k<<=1,k|=O,(4==++x||0===v&&0===W)&&(I=this.mul(I,l[k]),x=0,k=0)):x=0}n=26}return I},ce.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},ce.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new Ce(i)},T(Ce,ce),Ce.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},Ce.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},Ce.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var f=i.imul(a),l=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=f.isub(l).iushrn(this.shift),I=v;return v.cmp(this.m)>=0?I=v.isub(this.m):v.cmpn(0)<0&&(I=v.iadd(this.m)),I._forceRed(this)},Ce.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new s(0)._forceRed(this);var f=i.mul(a),l=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=f.isub(l).iushrn(this.shift),I=v;return v.cmp(this.m)>=0?I=v.isub(this.m):v.cmpn(0)<0&&(I=v.iadd(this.m)),I._forceRed(this)},Ce.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(We=m.nmd(We),this)},2391:We=>{function q(m,t){if(!m)throw new Error(t||"Assertion failed")}We.exports=q,q.equal=function(t,e,_){if(t!=e)throw new Error(_||"Assertion failed: "+t+" != "+e)}},8195:(We,q)=>{"use strict";var m=q;function e(T){return 1===T.length?"0"+T:T}function _(T){for(var s="",y=0;y>8,w=255&P;d?y.push(d,w):y.push(w)}return y},m.zero2=e,m.toHex=_,m.encode=function(s,y){return"hex"===y?_(s):s}},5768:(We,q,m)=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});var t=m(842);Object.keys(t).forEach(function(e){"default"!==e&&Object.defineProperty(q,e,{enumerable:!0,get:function(){return t[e]}})})},2999:(We,q,m)=>{"use strict";var t=m(7977);q.certificate=m(2390);var e=t.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=e;var _=t.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});q.RSAPublicKey=_;var T=t.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});q.PublicKey=T;var s=t.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())}),y=t.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});q.PrivateKey=y;var h=t.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=h;var P=t.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=P,q.DSAparam=t.define("DSAparam",function(){this.int()});var d=t.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(w),this.key("publicKey").optional().explicit(1).bitstr())});q.ECPrivateKey=d;var w=t.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});q.signature=t.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},2390:(We,q,m)=>{"use strict";var t=m(7977),e=t.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),_=t.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),T=t.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),s=t.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(T),this.key("subjectPublicKey").bitstr())}),y=t.define("RelativeDistinguishedName",function(){this.setof(_)}),h=t.define("RDNSequence",function(){this.seqof(y)}),P=t.define("Name",function(){this.choice({rdnSequence:this.use(h)})}),d=t.define("Validity",function(){this.seq().obj(this.key("notBefore").use(e),this.key("notAfter").use(e))}),w=t.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),C=t.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(T),this.key("issuer").use(P),this.key("validity").use(d),this.key("subject").use(P),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(w).optional())}),L=t.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(C),this.key("signatureAlgorithm").use(T),this.key("signatureValue").bitstr())});We.exports=L},5269:(We,q,m)=>{var t=/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,e=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,_=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,T=m(347),s=m(4330),y=m(3502).Buffer;We.exports=function(h,P){var C,d=h.toString(),w=d.match(t);if(w){var D="aes"+w[1],z=y.from(w[2],"hex"),V=y.from(w[3].replace(/[\r\n]/g,""),"base64"),Y=T(P,z.slice(0,8),parseInt(w[1],10)).key,j=[],Q=s.createDecipheriv(D,Y,z);j.push(Q.update(V)),j.push(Q.final()),C=y.concat(j)}else{var L=d.match(_);C=y.from(L[2].replace(/[\r\n]/g,""),"base64")}return{tag:d.match(e)[1],data:C}}},2772:(We,q,m)=>{var t=m(2999),e=m(2562),_=m(5269),T=m(4330),s=m(9357),y=m(3502).Buffer;function h(d){var w;"object"==typeof d&&!y.isBuffer(d)&&(w=d.passphrase,d=d.key),"string"==typeof d&&(d=y.from(d));var z,V,C=_(d,w),L=C.tag,D=C.data;switch(L){case"CERTIFICATE":V=t.certificate.decode(D,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(V||(V=t.PublicKey.decode(D,"der")),z=V.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return t.RSAPublicKey.decode(V.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return V.subjectPrivateKey=V.subjectPublicKey,{type:"ec",data:V};case"1.2.840.10040.4.1":return V.algorithm.params.pub_key=t.DSAparam.decode(V.subjectPublicKey.data,"der"),{type:"dsa",data:V.algorithm.params};default:throw new Error("unknown key id "+z)}case"ENCRYPTED PRIVATE KEY":D=function P(d,w){var C=d.algorithm.decrypt.kde.kdeparams.salt,L=parseInt(d.algorithm.decrypt.kde.kdeparams.iters.toString(),10),D=e[d.algorithm.decrypt.cipher.algo.join(".")],z=d.algorithm.decrypt.cipher.iv,V=d.subjectPrivateKey,Y=parseInt(D.split("-")[1],10)/8,j=s.pbkdf2Sync(w,C,L,Y,"sha1"),Q=T.createDecipheriv(D,j,z),J=[];return J.push(Q.update(V)),J.push(Q.final()),y.concat(J)}(D=t.EncryptedPrivateKey.decode(D,"der"),w);case"PRIVATE KEY":switch(z=(V=t.PrivateKey.decode(D,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return t.RSAPrivateKey.decode(V.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:V.algorithm.curve,privateKey:t.ECPrivateKey.decode(V.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return V.algorithm.params.priv_key=t.DSAparam.decode(V.subjectPrivateKey,"der"),{type:"dsa",params:V.algorithm.params};default:throw new Error("unknown key id "+z)}case"RSA PUBLIC KEY":return t.RSAPublicKey.decode(D,"der");case"RSA PRIVATE KEY":return t.RSAPrivateKey.decode(D,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:t.DSAPrivateKey.decode(D,"der")};case"EC PRIVATE KEY":return{curve:(D=t.ECPrivateKey.decode(D,"der")).parameters.value,privateKey:D.privateKey};default:throw new Error("unknown key type "+L)}}We.exports=h,h.signature=t.signature},9357:(We,q,m)=>{q.pbkdf2=m(415),q.pbkdf2Sync=m(7472)},415:(We,q,m)=>{var y,C,t=m(3502).Buffer,e=m(2697),_=m(8867),T=m(7472),s=m(4566),h=global.crypto&&global.crypto.subtle,P={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function L(){return C||(C=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function D(V,Y,j,Q,J){return h.importKey("raw",V,{name:"PBKDF2"},!1,["deriveBits"]).then(function(ee){return h.deriveBits({name:"PBKDF2",salt:Y,iterations:j,hash:{name:J}},ee,Q<<3)}).then(function(ee){return t.from(ee)})}We.exports=function(V,Y,j,Q,J,ee){"function"==typeof J&&(ee=J,J=void 0);var me=P[(J=J||"sha1").toLowerCase()];if(me&&"function"==typeof global.Promise){if(e(j,Q),V=s(V,_,"Password"),Y=s(Y,_,"Salt"),"function"!=typeof ee)throw new Error("No callback provided to pbkdf2");!function z(V,Y){V.then(function(j){L()(function(){Y(null,j)})},function(j){L()(function(){Y(j)})})}(function w(V){if(global.process&&!global.process.browser||!h||!h.importKey||!h.deriveBits)return Promise.resolve(!1);if(void 0!==d[V])return d[V];var Y=D(y=y||t.alloc(8),y,10,128,V).then(function(){return!0}).catch(function(){return!1});return d[V]=Y,Y}(me).then(function(re){return re?D(V,Y,j,Q,me):T(V,Y,j,Q,J)}),ee)}else L()(function(){var re;try{re=T(V,Y,j,Q,J)}catch(ie){return ee(ie)}ee(null,re)})}},8867:We=>{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",We.exports=q},2697:We=>{var q=Math.pow(2,30)-1;We.exports=function(m,t){if("number"!=typeof m)throw new TypeError("Iterations not a number");if(m<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>q||t!=t)throw new TypeError("Bad key length")}},7472:(We,q,m)=>{var t=m(5640),e=m(5634),_=m(5244),T=m(3502).Buffer,s=m(2697),y=m(8867),h=m(4566),P=T.alloc(128),d={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function w(D,z,V){var Y=function C(D){return"rmd160"===D||"ripemd160"===D?function V(Y){return(new e).update(Y).digest()}:"md5"===D?t:function z(Y){return _(D).update(Y).digest()}}(D),j="sha512"===D||"sha384"===D?128:64;z.length>j?z=Y(z):z.length{var t=m(3502).Buffer;We.exports=function(e,_,T){if(t.isBuffer(e))return e;if("string"==typeof e)return t.from(e,_);if(ArrayBuffer.isView(e))return t.from(e.buffer);throw new TypeError(T+" must be a string, a Buffer, a typed array or a DataView")}},3701:(We,q,m)=>{q.publicEncrypt=m(6562),q.privateDecrypt=m(6705),q.privateEncrypt=function(e,_){return q.publicEncrypt(e,_,!0)},q.publicDecrypt=function(e,_){return q.privateDecrypt(e,_,!0)}},6945:(We,q,m)=>{var t=m(6386),e=m(3502).Buffer;function _(T){var s=e.allocUnsafe(4);return s.writeUInt32BE(T,0),s}We.exports=function(T,s){for(var P,y=e.alloc(0),h=0;y.length=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function P(M,i,a){var f=h(M,a);return a-1>=i&&(f|=h(M,a-1)<<4),f}function d(M,i,a,f){for(var l=0,v=Math.min(M.length,a),I=i;I=49?k-49+10:k>=17?k-17+10:k}return l}s.isBN=function(i){return i instanceof s||null!==i&&"object"==typeof i&&i.constructor.wordSize===s.wordSize&&Array.isArray(i.words)},s.max=function(i,a){return i.cmp(a)>0?i:a},s.min=function(i,a){return i.cmp(a)<0?i:a},s.prototype._init=function(i,a,f){if("number"==typeof i)return this._initNumber(i,a,f);if("object"==typeof i)return this._initArray(i,a,f);"hex"===a&&(a=16),_(a===(0|a)&&a>=2&&a<=36);var l=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(l++,this.negative=1),l=0;l-=3)this.words[v]|=(I=i[l]|i[l-1]<<8|i[l-2]<<16)<>>26-k&67108863,(k+=24)>=26&&(k-=26,v++);else if("le"===f)for(l=0,v=0;l>>26-k&67108863,(k+=24)>=26&&(k-=26,v++);return this.strip()},s.prototype._parseHex=function(i,a,f){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var l=0;l=a;l-=2)k=P(i,a,l)<=18?(v-=18,this.words[I+=1]|=k>>>26):v+=8;else for(l=(i.length-a)%2==0?a+1:a;l=18?(v-=18,this.words[I+=1]|=k>>>26):v+=8;this.strip()},s.prototype._parseBase=function(i,a,f){this.words=[0],this.length=1;for(var l=0,v=1;v<=67108863;v*=a)l++;l--,v=v/a|0;for(var I=i.length-f,k=I%l,x=Math.min(I,I-k)+f,n=0,g=f;g1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var w=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[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],L=[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 z(M,i,a){a.negative=i.negative^M.negative;var f=M.length+i.length|0;a.length=f,f=f-1|0;var l=0|M.words[0],v=0|i.words[0],I=l*v,x=I/67108864|0;a.words[0]=67108863&I;for(var n=1;n>>26,W=67108863&x,O=Math.min(n,i.length-1),U=Math.max(0,n-M.length+1);U<=O;U++)g+=(I=(l=0|M.words[n-U|0])*(v=0|i.words[U])+W)/67108864|0,W=67108863&I;a.words[n]=0|W,x=0|g}return 0!==x?a.words[n]=0|x:a.length--,a.strip()}s.prototype.toString=function(i,a){var f;if(a=0|a||1,16===(i=i||10)||"hex"===i){f="";for(var l=0,v=0,I=0;I>>24-l&16777215)||I!==this.length-1?w[6-x.length]+x+f:x+f,(l+=2)>=26&&(l-=26,I--)}for(0!==v&&(f=v.toString(16)+f);f.length%a!=0;)f="0"+f;return 0!==this.negative&&(f="-"+f),f}if(i===(0|i)&&i>=2&&i<=36){var n=C[i],g=L[i];f="";var W=this.clone();for(W.negative=0;!W.isZero();){var O=W.modn(g).toString(i);f=(W=W.idivn(g)).isZero()?O+f:w[n-O.length]+O+f}for(this.isZero()&&(f="0"+f);f.length%a!=0;)f="0"+f;return 0!==this.negative&&(f="-"+f),f}_(!1,"Base should be between 2 and 36")},s.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&&_(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(i,a){return _(typeof y<"u"),this.toArrayLike(y,i,a)},s.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},s.prototype.toArrayLike=function(i,a,f){var l=this.byteLength(),v=f||Math.max(1,l);_(l<=v,"byte array longer than desired length"),_(v>0,"Requested array length <= 0"),this.strip();var x,n,I="le"===a,k=new i(v),g=this.clone();if(I){for(n=0;!g.isZero();n++)x=g.andln(255),g.iushrn(8),k[n]=x;for(;n=4096&&(f+=13,a>>>=13),a>=64&&(f+=7,a>>>=7),a>=8&&(f+=4,a>>>=4),a>=2&&(f+=2,a>>>=2),f+a},s.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,f=0;return 8191&a||(f+=13,a>>>=13),127&a||(f+=7,a>>>=7),15&a||(f+=4,a>>>=4),3&a||(f+=2,a>>>=2),1&a||f++,f},s.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},s.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},s.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var f=0;fi.length?this.clone().iand(i):i.clone().iand(this)},s.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},s.prototype.iuxor=function(i){var a,f;this.length>i.length?(a=this,f=i):(a=i,f=this);for(var l=0;li.length?this.clone().ixor(i):i.clone().ixor(this)},s.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},s.prototype.inotn=function(i){_("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),f=i%26;this._expand(a),f>0&&a--;for(var l=0;l0&&(this.words[l]=~this.words[l]&67108863>>26-f),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,a){_("number"==typeof i&&i>=0);var f=i/26|0,l=i%26;return this._expand(f+1),this.words[f]=a?this.words[f]|1<i.length?(f=this,l=i):(f=i,l=this);for(var v=0,I=0;I>>26;for(;0!==v&&I>>26;if(this.length=f.length,0!==v)this.words[this.length]=v,this.length++;else if(f!==this)for(;Ii.length?this.clone().iadd(i):i.clone().iadd(this)},s.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 l,v,f=this.cmp(i);if(0===f)return this.negative=0,this.length=1,this.words[0]=0,this;f>0?(l=this,v=i):(l=i,v=this);for(var I=0,k=0;k>26,this.words[k]=67108863&a;for(;0!==I&&k>26,this.words[k]=67108863&a;if(0===I&&k>>13,ge=0|l[1],nt=8191&ge,Ue=ge>>>13,at=0|l[2],ye=8191&at,xe=at>>>13,fe=0|l[3],Oe=8191&fe,oe=fe>>>13,Fe=0|l[4],De=8191&Fe,he=Fe>>>13,Me=0|l[5],pe=8191&Me,Ve=Me>>>13,Qe=0|l[6],Pe=8191&Qe,de=Qe>>>13,rt=0|l[7],Ke=8191&rt,lt=rt>>>13,Ut=0|l[8],ht=8191&Ut,Ge=Ut>>>13,yt=0|l[9],be=8191&yt,qe=yt>>>13,Ie=0|v[0],X=8191&Ie,mt=Ie>>>13,Tt=0|v[1],it=8191&Tt,je=Tt>>>13,zt=0|v[2],xt=8191&zt,Nt=zt>>>13,Gt=0|v[3],ke=8191&Gt,$=Gt>>>13,ue=0|v[4],Ae=8191&ue,Je=ue>>>13,$t=0|v[5],Vt=8191&$t,ii=$t>>>13,pt=0|v[6],ot=8191&pt,ft=pt>>>13,St=0|v[7],gt=8191&St,$e=St>>>13,_t=0|v[8],vt=8191&_t,He=_t>>>13,Et=0|v[9],At=8191&Et,Qt=Et>>>13;f.negative=i.negative^a.negative,f.length=19;var zi=(k+(x=Math.imul(O,X))|0)+((8191&(n=(n=Math.imul(O,mt))+Math.imul(U,X)|0))<<13)|0;k=((g=Math.imul(U,mt))+(n>>>13)|0)+(zi>>>26)|0,zi&=67108863,x=Math.imul(nt,X),n=(n=Math.imul(nt,mt))+Math.imul(Ue,X)|0,g=Math.imul(Ue,mt);var Ni=(k+(x=x+Math.imul(O,it)|0)|0)+((8191&(n=(n=n+Math.imul(O,je)|0)+Math.imul(U,it)|0))<<13)|0;k=((g=g+Math.imul(U,je)|0)+(n>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(ye,X),n=(n=Math.imul(ye,mt))+Math.imul(xe,X)|0,g=Math.imul(xe,mt),x=x+Math.imul(nt,it)|0,n=(n=n+Math.imul(nt,je)|0)+Math.imul(Ue,it)|0,g=g+Math.imul(Ue,je)|0;var Mi=(k+(x=x+Math.imul(O,xt)|0)|0)+((8191&(n=(n=n+Math.imul(O,Nt)|0)+Math.imul(U,xt)|0))<<13)|0;k=((g=g+Math.imul(U,Nt)|0)+(n>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,x=Math.imul(Oe,X),n=(n=Math.imul(Oe,mt))+Math.imul(oe,X)|0,g=Math.imul(oe,mt),x=x+Math.imul(ye,it)|0,n=(n=n+Math.imul(ye,je)|0)+Math.imul(xe,it)|0,g=g+Math.imul(xe,je)|0,x=x+Math.imul(nt,xt)|0,n=(n=n+Math.imul(nt,Nt)|0)+Math.imul(Ue,xt)|0,g=g+Math.imul(Ue,Nt)|0;var Gi=(k+(x=x+Math.imul(O,ke)|0)|0)+((8191&(n=(n=n+Math.imul(O,$)|0)+Math.imul(U,ke)|0))<<13)|0;k=((g=g+Math.imul(U,$)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,x=Math.imul(De,X),n=(n=Math.imul(De,mt))+Math.imul(he,X)|0,g=Math.imul(he,mt),x=x+Math.imul(Oe,it)|0,n=(n=n+Math.imul(Oe,je)|0)+Math.imul(oe,it)|0,g=g+Math.imul(oe,je)|0,x=x+Math.imul(ye,xt)|0,n=(n=n+Math.imul(ye,Nt)|0)+Math.imul(xe,xt)|0,g=g+Math.imul(xe,Nt)|0,x=x+Math.imul(nt,ke)|0,n=(n=n+Math.imul(nt,$)|0)+Math.imul(Ue,ke)|0,g=g+Math.imul(Ue,$)|0;var Xe=(k+(x=x+Math.imul(O,Ae)|0)|0)+((8191&(n=(n=n+Math.imul(O,Je)|0)+Math.imul(U,Ae)|0))<<13)|0;k=((g=g+Math.imul(U,Je)|0)+(n>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,x=Math.imul(pe,X),n=(n=Math.imul(pe,mt))+Math.imul(Ve,X)|0,g=Math.imul(Ve,mt),x=x+Math.imul(De,it)|0,n=(n=n+Math.imul(De,je)|0)+Math.imul(he,it)|0,g=g+Math.imul(he,je)|0,x=x+Math.imul(Oe,xt)|0,n=(n=n+Math.imul(Oe,Nt)|0)+Math.imul(oe,xt)|0,g=g+Math.imul(oe,Nt)|0,x=x+Math.imul(ye,ke)|0,n=(n=n+Math.imul(ye,$)|0)+Math.imul(xe,ke)|0,g=g+Math.imul(xe,$)|0,x=x+Math.imul(nt,Ae)|0,n=(n=n+Math.imul(nt,Je)|0)+Math.imul(Ue,Ae)|0,g=g+Math.imul(Ue,Je)|0;var It=(k+(x=x+Math.imul(O,Vt)|0)|0)+((8191&(n=(n=n+Math.imul(O,ii)|0)+Math.imul(U,Vt)|0))<<13)|0;k=((g=g+Math.imul(U,ii)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,x=Math.imul(Pe,X),n=(n=Math.imul(Pe,mt))+Math.imul(de,X)|0,g=Math.imul(de,mt),x=x+Math.imul(pe,it)|0,n=(n=n+Math.imul(pe,je)|0)+Math.imul(Ve,it)|0,g=g+Math.imul(Ve,je)|0,x=x+Math.imul(De,xt)|0,n=(n=n+Math.imul(De,Nt)|0)+Math.imul(he,xt)|0,g=g+Math.imul(he,Nt)|0,x=x+Math.imul(Oe,ke)|0,n=(n=n+Math.imul(Oe,$)|0)+Math.imul(oe,ke)|0,g=g+Math.imul(oe,$)|0,x=x+Math.imul(ye,Ae)|0,n=(n=n+Math.imul(ye,Je)|0)+Math.imul(xe,Ae)|0,g=g+Math.imul(xe,Je)|0,x=x+Math.imul(nt,Vt)|0,n=(n=n+Math.imul(nt,ii)|0)+Math.imul(Ue,Vt)|0,g=g+Math.imul(Ue,ii)|0;var Se=(k+(x=x+Math.imul(O,ot)|0)|0)+((8191&(n=(n=n+Math.imul(O,ft)|0)+Math.imul(U,ot)|0))<<13)|0;k=((g=g+Math.imul(U,ft)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,x=Math.imul(Ke,X),n=(n=Math.imul(Ke,mt))+Math.imul(lt,X)|0,g=Math.imul(lt,mt),x=x+Math.imul(Pe,it)|0,n=(n=n+Math.imul(Pe,je)|0)+Math.imul(de,it)|0,g=g+Math.imul(de,je)|0,x=x+Math.imul(pe,xt)|0,n=(n=n+Math.imul(pe,Nt)|0)+Math.imul(Ve,xt)|0,g=g+Math.imul(Ve,Nt)|0,x=x+Math.imul(De,ke)|0,n=(n=n+Math.imul(De,$)|0)+Math.imul(he,ke)|0,g=g+Math.imul(he,$)|0,x=x+Math.imul(Oe,Ae)|0,n=(n=n+Math.imul(Oe,Je)|0)+Math.imul(oe,Ae)|0,g=g+Math.imul(oe,Je)|0,x=x+Math.imul(ye,Vt)|0,n=(n=n+Math.imul(ye,ii)|0)+Math.imul(xe,Vt)|0,g=g+Math.imul(xe,ii)|0,x=x+Math.imul(nt,ot)|0,n=(n=n+Math.imul(nt,ft)|0)+Math.imul(Ue,ot)|0,g=g+Math.imul(Ue,ft)|0;var wt=(k+(x=x+Math.imul(O,gt)|0)|0)+((8191&(n=(n=n+Math.imul(O,$e)|0)+Math.imul(U,gt)|0))<<13)|0;k=((g=g+Math.imul(U,$e)|0)+(n>>>13)|0)+(wt>>>26)|0,wt&=67108863,x=Math.imul(ht,X),n=(n=Math.imul(ht,mt))+Math.imul(Ge,X)|0,g=Math.imul(Ge,mt),x=x+Math.imul(Ke,it)|0,n=(n=n+Math.imul(Ke,je)|0)+Math.imul(lt,it)|0,g=g+Math.imul(lt,je)|0,x=x+Math.imul(Pe,xt)|0,n=(n=n+Math.imul(Pe,Nt)|0)+Math.imul(de,xt)|0,g=g+Math.imul(de,Nt)|0,x=x+Math.imul(pe,ke)|0,n=(n=n+Math.imul(pe,$)|0)+Math.imul(Ve,ke)|0,g=g+Math.imul(Ve,$)|0,x=x+Math.imul(De,Ae)|0,n=(n=n+Math.imul(De,Je)|0)+Math.imul(he,Ae)|0,g=g+Math.imul(he,Je)|0,x=x+Math.imul(Oe,Vt)|0,n=(n=n+Math.imul(Oe,ii)|0)+Math.imul(oe,Vt)|0,g=g+Math.imul(oe,ii)|0,x=x+Math.imul(ye,ot)|0,n=(n=n+Math.imul(ye,ft)|0)+Math.imul(xe,ot)|0,g=g+Math.imul(xe,ft)|0,x=x+Math.imul(nt,gt)|0,n=(n=n+Math.imul(nt,$e)|0)+Math.imul(Ue,gt)|0,g=g+Math.imul(Ue,$e)|0;var Zt=(k+(x=x+Math.imul(O,vt)|0)|0)+((8191&(n=(n=n+Math.imul(O,He)|0)+Math.imul(U,vt)|0))<<13)|0;k=((g=g+Math.imul(U,He)|0)+(n>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,x=Math.imul(be,X),n=(n=Math.imul(be,mt))+Math.imul(qe,X)|0,g=Math.imul(qe,mt),x=x+Math.imul(ht,it)|0,n=(n=n+Math.imul(ht,je)|0)+Math.imul(Ge,it)|0,g=g+Math.imul(Ge,je)|0,x=x+Math.imul(Ke,xt)|0,n=(n=n+Math.imul(Ke,Nt)|0)+Math.imul(lt,xt)|0,g=g+Math.imul(lt,Nt)|0,x=x+Math.imul(Pe,ke)|0,n=(n=n+Math.imul(Pe,$)|0)+Math.imul(de,ke)|0,g=g+Math.imul(de,$)|0,x=x+Math.imul(pe,Ae)|0,n=(n=n+Math.imul(pe,Je)|0)+Math.imul(Ve,Ae)|0,g=g+Math.imul(Ve,Je)|0,x=x+Math.imul(De,Vt)|0,n=(n=n+Math.imul(De,ii)|0)+Math.imul(he,Vt)|0,g=g+Math.imul(he,ii)|0,x=x+Math.imul(Oe,ot)|0,n=(n=n+Math.imul(Oe,ft)|0)+Math.imul(oe,ot)|0,g=g+Math.imul(oe,ft)|0,x=x+Math.imul(ye,gt)|0,n=(n=n+Math.imul(ye,$e)|0)+Math.imul(xe,gt)|0,g=g+Math.imul(xe,$e)|0,x=x+Math.imul(nt,vt)|0,n=(n=n+Math.imul(nt,He)|0)+Math.imul(Ue,vt)|0,g=g+Math.imul(Ue,He)|0;var si=(k+(x=x+Math.imul(O,At)|0)|0)+((8191&(n=(n=n+Math.imul(O,Qt)|0)+Math.imul(U,At)|0))<<13)|0;k=((g=g+Math.imul(U,Qt)|0)+(n>>>13)|0)+(si>>>26)|0,si&=67108863,x=Math.imul(be,it),n=(n=Math.imul(be,je))+Math.imul(qe,it)|0,g=Math.imul(qe,je),x=x+Math.imul(ht,xt)|0,n=(n=n+Math.imul(ht,Nt)|0)+Math.imul(Ge,xt)|0,g=g+Math.imul(Ge,Nt)|0,x=x+Math.imul(Ke,ke)|0,n=(n=n+Math.imul(Ke,$)|0)+Math.imul(lt,ke)|0,g=g+Math.imul(lt,$)|0,x=x+Math.imul(Pe,Ae)|0,n=(n=n+Math.imul(Pe,Je)|0)+Math.imul(de,Ae)|0,g=g+Math.imul(de,Je)|0,x=x+Math.imul(pe,Vt)|0,n=(n=n+Math.imul(pe,ii)|0)+Math.imul(Ve,Vt)|0,g=g+Math.imul(Ve,ii)|0,x=x+Math.imul(De,ot)|0,n=(n=n+Math.imul(De,ft)|0)+Math.imul(he,ot)|0,g=g+Math.imul(he,ft)|0,x=x+Math.imul(Oe,gt)|0,n=(n=n+Math.imul(Oe,$e)|0)+Math.imul(oe,gt)|0,g=g+Math.imul(oe,$e)|0,x=x+Math.imul(ye,vt)|0,n=(n=n+Math.imul(ye,He)|0)+Math.imul(xe,vt)|0,g=g+Math.imul(xe,He)|0;var Ai=(k+(x=x+Math.imul(nt,At)|0)|0)+((8191&(n=(n=n+Math.imul(nt,Qt)|0)+Math.imul(Ue,At)|0))<<13)|0;k=((g=g+Math.imul(Ue,Qt)|0)+(n>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,x=Math.imul(be,xt),n=(n=Math.imul(be,Nt))+Math.imul(qe,xt)|0,g=Math.imul(qe,Nt),x=x+Math.imul(ht,ke)|0,n=(n=n+Math.imul(ht,$)|0)+Math.imul(Ge,ke)|0,g=g+Math.imul(Ge,$)|0,x=x+Math.imul(Ke,Ae)|0,n=(n=n+Math.imul(Ke,Je)|0)+Math.imul(lt,Ae)|0,g=g+Math.imul(lt,Je)|0,x=x+Math.imul(Pe,Vt)|0,n=(n=n+Math.imul(Pe,ii)|0)+Math.imul(de,Vt)|0,g=g+Math.imul(de,ii)|0,x=x+Math.imul(pe,ot)|0,n=(n=n+Math.imul(pe,ft)|0)+Math.imul(Ve,ot)|0,g=g+Math.imul(Ve,ft)|0,x=x+Math.imul(De,gt)|0,n=(n=n+Math.imul(De,$e)|0)+Math.imul(he,gt)|0,g=g+Math.imul(he,$e)|0,x=x+Math.imul(Oe,vt)|0,n=(n=n+Math.imul(Oe,He)|0)+Math.imul(oe,vt)|0,g=g+Math.imul(oe,He)|0;var Oi=(k+(x=x+Math.imul(ye,At)|0)|0)+((8191&(n=(n=n+Math.imul(ye,Qt)|0)+Math.imul(xe,At)|0))<<13)|0;k=((g=g+Math.imul(xe,Qt)|0)+(n>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,x=Math.imul(be,ke),n=(n=Math.imul(be,$))+Math.imul(qe,ke)|0,g=Math.imul(qe,$),x=x+Math.imul(ht,Ae)|0,n=(n=n+Math.imul(ht,Je)|0)+Math.imul(Ge,Ae)|0,g=g+Math.imul(Ge,Je)|0,x=x+Math.imul(Ke,Vt)|0,n=(n=n+Math.imul(Ke,ii)|0)+Math.imul(lt,Vt)|0,g=g+Math.imul(lt,ii)|0,x=x+Math.imul(Pe,ot)|0,n=(n=n+Math.imul(Pe,ft)|0)+Math.imul(de,ot)|0,g=g+Math.imul(de,ft)|0,x=x+Math.imul(pe,gt)|0,n=(n=n+Math.imul(pe,$e)|0)+Math.imul(Ve,gt)|0,g=g+Math.imul(Ve,$e)|0,x=x+Math.imul(De,vt)|0,n=(n=n+Math.imul(De,He)|0)+Math.imul(he,vt)|0,g=g+Math.imul(he,He)|0;var Qi=(k+(x=x+Math.imul(Oe,At)|0)|0)+((8191&(n=(n=n+Math.imul(Oe,Qt)|0)+Math.imul(oe,At)|0))<<13)|0;k=((g=g+Math.imul(oe,Qt)|0)+(n>>>13)|0)+(Qi>>>26)|0,Qi&=67108863,x=Math.imul(be,Ae),n=(n=Math.imul(be,Je))+Math.imul(qe,Ae)|0,g=Math.imul(qe,Je),x=x+Math.imul(ht,Vt)|0,n=(n=n+Math.imul(ht,ii)|0)+Math.imul(Ge,Vt)|0,g=g+Math.imul(Ge,ii)|0,x=x+Math.imul(Ke,ot)|0,n=(n=n+Math.imul(Ke,ft)|0)+Math.imul(lt,ot)|0,g=g+Math.imul(lt,ft)|0,x=x+Math.imul(Pe,gt)|0,n=(n=n+Math.imul(Pe,$e)|0)+Math.imul(de,gt)|0,g=g+Math.imul(de,$e)|0,x=x+Math.imul(pe,vt)|0,n=(n=n+Math.imul(pe,He)|0)+Math.imul(Ve,vt)|0,g=g+Math.imul(Ve,He)|0;var en=(k+(x=x+Math.imul(De,At)|0)|0)+((8191&(n=(n=n+Math.imul(De,Qt)|0)+Math.imul(he,At)|0))<<13)|0;k=((g=g+Math.imul(he,Qt)|0)+(n>>>13)|0)+(en>>>26)|0,en&=67108863,x=Math.imul(be,Vt),n=(n=Math.imul(be,ii))+Math.imul(qe,Vt)|0,g=Math.imul(qe,ii),x=x+Math.imul(ht,ot)|0,n=(n=n+Math.imul(ht,ft)|0)+Math.imul(Ge,ot)|0,g=g+Math.imul(Ge,ft)|0,x=x+Math.imul(Ke,gt)|0,n=(n=n+Math.imul(Ke,$e)|0)+Math.imul(lt,gt)|0,g=g+Math.imul(lt,$e)|0,x=x+Math.imul(Pe,vt)|0,n=(n=n+Math.imul(Pe,He)|0)+Math.imul(de,vt)|0,g=g+Math.imul(de,He)|0;var Yi=(k+(x=x+Math.imul(pe,At)|0)|0)+((8191&(n=(n=n+Math.imul(pe,Qt)|0)+Math.imul(Ve,At)|0))<<13)|0;k=((g=g+Math.imul(Ve,Qt)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,x=Math.imul(be,ot),n=(n=Math.imul(be,ft))+Math.imul(qe,ot)|0,g=Math.imul(qe,ft),x=x+Math.imul(ht,gt)|0,n=(n=n+Math.imul(ht,$e)|0)+Math.imul(Ge,gt)|0,g=g+Math.imul(Ge,$e)|0,x=x+Math.imul(Ke,vt)|0,n=(n=n+Math.imul(Ke,He)|0)+Math.imul(lt,vt)|0,g=g+Math.imul(lt,He)|0;var Yt=(k+(x=x+Math.imul(Pe,At)|0)|0)+((8191&(n=(n=n+Math.imul(Pe,Qt)|0)+Math.imul(de,At)|0))<<13)|0;k=((g=g+Math.imul(de,Qt)|0)+(n>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,x=Math.imul(be,gt),n=(n=Math.imul(be,$e))+Math.imul(qe,gt)|0,g=Math.imul(qe,$e),x=x+Math.imul(ht,vt)|0,n=(n=n+Math.imul(ht,He)|0)+Math.imul(Ge,vt)|0,g=g+Math.imul(Ge,He)|0;var qt=(k+(x=x+Math.imul(Ke,At)|0)|0)+((8191&(n=(n=n+Math.imul(Ke,Qt)|0)+Math.imul(lt,At)|0))<<13)|0;k=((g=g+Math.imul(lt,Qt)|0)+(n>>>13)|0)+(qt>>>26)|0,qt&=67108863,x=Math.imul(be,vt),n=(n=Math.imul(be,He))+Math.imul(qe,vt)|0,g=Math.imul(qe,He);var _e=(k+(x=x+Math.imul(ht,At)|0)|0)+((8191&(n=(n=n+Math.imul(ht,Qt)|0)+Math.imul(Ge,At)|0))<<13)|0;k=((g=g+Math.imul(Ge,Qt)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863;var dt=(k+(x=Math.imul(be,At))|0)+((8191&(n=(n=Math.imul(be,Qt))+Math.imul(qe,At)|0))<<13)|0;return k=((g=Math.imul(qe,Qt))+(n>>>13)|0)+(dt>>>26)|0,dt&=67108863,I[0]=zi,I[1]=Ni,I[2]=Mi,I[3]=Gi,I[4]=Xe,I[5]=It,I[6]=Se,I[7]=wt,I[8]=Zt,I[9]=si,I[10]=Ai,I[11]=Oi,I[12]=Qi,I[13]=en,I[14]=Yi,I[15]=Yt,I[16]=qt,I[17]=_e,I[18]=dt,0!==k&&(I[19]=k,f.length++),f};function j(M,i,a){return(new Q).mulp(M,i,a)}function Q(M,i){this.x=M,this.y=i}Math.imul||(V=z),s.prototype.mulTo=function(i,a){var f,l=this.length+i.length;return f=10===this.length&&10===i.length?V(this,i,a):l<63?z(this,i,a):l<1024?function Y(M,i,a){a.negative=i.negative^M.negative,a.length=M.length+i.length;for(var f=0,l=0,v=0;v>>26)|0)>>>26,I&=67108863}a.words[v]=k,f=I,I=l}return 0!==f?a.words[v]=f:a.length--,a.strip()}(this,i,a):j(this,i,a),f},Q.prototype.makeRBT=function(i){for(var a=new Array(i),f=s.prototype._countBits(i)-1,l=0;l>=1;return l},Q.prototype.permute=function(i,a,f,l,v,I){for(var k=0;k>>=1)v++;return 1<>>=13),v>>>=13;for(I=2*a;I>=26,a+=l/67108864|0,a+=v>>>26,this.words[f]=67108863&v}return 0!==a&&(this.words[f]=a,this.length++),this},s.prototype.muln=function(i){return this.clone().imuln(i)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(i){var a=function D(M){for(var i=new Array(M.bitLength()),a=0;a>>l}return i}(i);if(0===a.length)return new s(1);for(var f=this,l=0;l=0);var v,a=i%26,f=(i-a)/26,l=67108863>>>26-a<<26-a;if(0!==a){var I=0;for(v=0;v>>26-a}I&&(this.words[v]=I,this.length++)}if(0!==f){for(v=this.length-1;v>=0;v--)this.words[v+f]=this.words[v];for(v=0;v=0),l=a?(a-a%26)/26:0;var v=i%26,I=Math.min((i-v)/26,this.length),k=67108863^67108863>>>v<I)for(this.length-=I,n=0;n=0&&(0!==g||n>=l);n--){var W=0|this.words[n];this.words[n]=g<<26-v|W>>>v,g=W&k}return x&&0!==g&&(x.words[x.length++]=g),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,a,f){return _(0===this.negative),this.iushrn(i,a,f)},s.prototype.shln=function(i){return this.clone().ishln(i)},s.prototype.ushln=function(i){return this.clone().iushln(i)},s.prototype.shrn=function(i){return this.clone().ishrn(i)},s.prototype.ushrn=function(i){return this.clone().iushrn(i)},s.prototype.testn=function(i){_("number"==typeof i&&i>=0);var a=i%26,f=(i-a)/26;return!(this.length<=f||!(this.words[f]&1<=0);var a=i%26,f=(i-a)/26;return _(0===this.negative,"imaskn works only with positive numbers"),this.length<=f?this:(0!==a&&f++,this.length=Math.min(f,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},s.prototype.isubn=function(i){if(_("number"==typeof i),_(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[v+f]=67108863&I}for(;v>26,this.words[v+f]=67108863&I;if(0===k)return this.strip();for(_(-1===k),k=0,v=0;v>26,this.words[v]=67108863&I;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var f,l=this.clone(),v=i,I=0|v.words[v.length-1];0!=(f=26-this._countBits(I))&&(v=v.ushln(f),l.iushln(f),I=0|v.words[v.length-1]);var n,x=l.length-v.length;if("mod"!==a){(n=new s(null)).length=x+1,n.words=new Array(n.length);for(var g=0;g=0;O--){var U=67108864*(0|l.words[v.length+O])+(0|l.words[v.length+O-1]);for(U=Math.min(U/I|0,67108863),l._ishlnsubmul(v,U,O);0!==l.negative;)U--,l.negative=0,l._ishlnsubmul(v,1,O),l.isZero()||(l.negative^=1);n&&(n.words[O]=U)}return n&&n.strip(),l.strip(),"div"!==a&&0!==f&&l.iushrn(f),{div:n||null,mod:l}},s.prototype.divmod=function(i,a,f){return _(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(I=this.neg().divmod(i,a),"mod"!==a&&(l=I.div.neg()),"div"!==a&&(v=I.mod.neg(),f&&0!==v.negative&&v.iadd(i)),{div:l,mod:v}):0===this.negative&&0!==i.negative?(I=this.divmod(i.neg(),a),"mod"!==a&&(l=I.div.neg()),{div:l,mod:I.mod}):this.negative&i.negative?(I=this.neg().divmod(i.neg(),a),"div"!==a&&(v=I.mod.neg(),f&&0!==v.negative&&v.isub(i)),{div:I.div,mod:v}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new s(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new s(this.modn(i.words[0]))}:this._wordDiv(i,a);var l,v,I},s.prototype.div=function(i){return this.divmod(i,"div",!1).div},s.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},s.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},s.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var f=0!==a.div.negative?a.mod.isub(i):a.mod,l=i.ushrn(1),v=i.andln(1),I=f.cmp(l);return I<0||1===v&&0===I?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},s.prototype.modn=function(i){_(i<=67108863);for(var a=(1<<26)%i,f=0,l=this.length-1;l>=0;l--)f=(a*f+(0|this.words[l]))%i;return f},s.prototype.idivn=function(i){_(i<=67108863);for(var a=0,f=this.length-1;f>=0;f--){var l=(0|this.words[f])+67108864*a;this.words[f]=l/i|0,a=l%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){_(0===i.negative),_(!i.isZero());var a=this,f=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),v=new s(0),I=new s(0),k=new s(1),x=0;a.isEven()&&f.isEven();)a.iushrn(1),f.iushrn(1),++x;for(var n=f.clone(),g=a.clone();!a.isZero();){for(var W=0,O=1;!(a.words[0]&O)&&W<26;++W,O<<=1);if(W>0)for(a.iushrn(W);W-- >0;)(l.isOdd()||v.isOdd())&&(l.iadd(n),v.isub(g)),l.iushrn(1),v.iushrn(1);for(var U=0,ge=1;!(f.words[0]&ge)&&U<26;++U,ge<<=1);if(U>0)for(f.iushrn(U);U-- >0;)(I.isOdd()||k.isOdd())&&(I.iadd(n),k.isub(g)),I.iushrn(1),k.iushrn(1);a.cmp(f)>=0?(a.isub(f),l.isub(I),v.isub(k)):(f.isub(a),I.isub(l),k.isub(v))}return{a:I,b:k,gcd:f.iushln(x)}},s.prototype._invmp=function(i){_(0===i.negative),_(!i.isZero());var W,a=this,f=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),v=new s(0),I=f.clone();a.cmpn(1)>0&&f.cmpn(1)>0;){for(var k=0,x=1;!(a.words[0]&x)&&k<26;++k,x<<=1);if(k>0)for(a.iushrn(k);k-- >0;)l.isOdd()&&l.iadd(I),l.iushrn(1);for(var n=0,g=1;!(f.words[0]&g)&&n<26;++n,g<<=1);if(n>0)for(f.iushrn(n);n-- >0;)v.isOdd()&&v.iadd(I),v.iushrn(1);a.cmp(f)>=0?(a.isub(f),l.isub(v)):(f.isub(a),v.isub(l))}return(W=0===a.cmpn(1)?l:v).cmpn(0)<0&&W.iadd(i),W},s.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),f=i.clone();a.negative=0,f.negative=0;for(var l=0;a.isEven()&&f.isEven();l++)a.iushrn(1),f.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;f.isEven();)f.iushrn(1);var v=a.cmp(f);if(v<0){var I=a;a=f,f=I}else if(0===v||0===f.cmpn(1))break;a.isub(f)}return f.iushln(l)},s.prototype.invm=function(i){return this.egcd(i).a.umod(i)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(i){return this.words[0]&i},s.prototype.bincn=function(i){_("number"==typeof i);var a=i%26,f=(i-a)/26,l=1<>>26,this.words[I]=k&=67108863}return 0!==v&&(this.words[I]=v,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var f,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)f=1;else{a&&(i=-i),_(i<=67108863,"Number is too big");var l=0|this.words[0];f=l===i?0:li.length)return 1;if(this.length=0;f--){var l=0|this.words[f],v=0|i.words[f];if(l!==v){lv&&(a=1);break}}return a},s.prototype.gtn=function(i){return 1===this.cmpn(i)},s.prototype.gt=function(i){return 1===this.cmp(i)},s.prototype.gten=function(i){return this.cmpn(i)>=0},s.prototype.gte=function(i){return this.cmp(i)>=0},s.prototype.ltn=function(i){return-1===this.cmpn(i)},s.prototype.lt=function(i){return-1===this.cmp(i)},s.prototype.lten=function(i){return this.cmpn(i)<=0},s.prototype.lte=function(i){return this.cmp(i)<=0},s.prototype.eqn=function(i){return 0===this.cmpn(i)},s.prototype.eq=function(i){return 0===this.cmp(i)},s.red=function(i){return new ce(i)},s.prototype.toRed=function(i){return _(!this.red,"Already a number in reduction context"),_(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(i){return this.red=i,this},s.prototype.forceRed=function(i){return _(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return _(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var J={k256:null,p224:null,p192:null,p25519:null};function ee(M,i){this.name=M,this.p=new s(i,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function me(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function re(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ce(M){if("string"==typeof M){var i=s._prime(M);this.m=i.p,this.prime=i}else _(M.gtn(1),"modulus must be greater than 1"),this.m=M,this.prime=null}function Ce(M){ce.call(this,M),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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 s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var f,a=i;do{this.split(a,this.tmp),f=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(f>this.n);var l=f0?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)},T(me,ee),me.prototype.split=function(i,a){for(var f=4194303,l=Math.min(i.length,9),v=0;v>>22,I=k}i.words[v-10]=I>>>=22,i.length-=0===I&&i.length>10?10:9},me.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,f=0;f>>=26,i.words[f]=v,a=l}return 0!==a&&(i.words[i.length++]=a),i},s._prime=function(i){if(J[i])return J[i];var a;if("k256"===i)a=new me;else if("p224"===i)a=new re;else if("p192"===i)a=new ie;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new se}return J[i]=a,a},ce.prototype._verify1=function(i){_(0===i.negative,"red works only with positives"),_(i.red,"red works only with red numbers")},ce.prototype._verify2=function(i,a){_(0==(i.negative|a.negative),"red works only with positives"),_(i.red&&i.red===a.red,"red works only with red numbers")},ce.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},ce.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},ce.prototype.add=function(i,a){this._verify2(i,a);var f=i.add(a);return f.cmp(this.m)>=0&&f.isub(this.m),f._forceRed(this)},ce.prototype.iadd=function(i,a){this._verify2(i,a);var f=i.iadd(a);return f.cmp(this.m)>=0&&f.isub(this.m),f},ce.prototype.sub=function(i,a){this._verify2(i,a);var f=i.sub(a);return f.cmpn(0)<0&&f.iadd(this.m),f._forceRed(this)},ce.prototype.isub=function(i,a){this._verify2(i,a);var f=i.isub(a);return f.cmpn(0)<0&&f.iadd(this.m),f},ce.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},ce.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},ce.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},ce.prototype.isqr=function(i){return this.imul(i,i.clone())},ce.prototype.sqr=function(i){return this.mul(i,i)},ce.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(_(a%2==1),3===a){var f=this.m.add(new s(1)).iushrn(2);return this.pow(i,f)}for(var l=this.m.subn(1),v=0;!l.isZero()&&0===l.andln(1);)v++,l.iushrn(1);_(!l.isZero());var I=new s(1).toRed(this),k=I.redNeg(),x=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new s(2*n*n).toRed(this);0!==this.pow(n,x).cmp(k);)n.redIAdd(k);for(var g=this.pow(n,l),W=this.pow(i,l.addn(1).iushrn(1)),O=this.pow(i,l),U=v;0!==O.cmp(I);){for(var ge=O,nt=0;0!==ge.cmp(I);nt++)ge=ge.redSqr();_(nt=0;v--){for(var g=a.words[v],W=n-1;W>=0;W--){var O=g>>W&1;I!==l[0]&&(I=this.sqr(I)),0!==O||0!==k?(k<<=1,k|=O,(4==++x||0===v&&0===W)&&(I=this.mul(I,l[k]),x=0,k=0)):x=0}n=26}return I},ce.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},ce.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new Ce(i)},T(Ce,ce),Ce.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},Ce.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},Ce.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var f=i.imul(a),l=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=f.isub(l).iushrn(this.shift),I=v;return v.cmp(this.m)>=0?I=v.isub(this.m):v.cmpn(0)<0&&(I=v.iadd(this.m)),I._forceRed(this)},Ce.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new s(0)._forceRed(this);var f=i.mul(a),l=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=f.isub(l).iushrn(this.shift),I=v;return v.cmp(this.m)>=0?I=v.isub(this.m):v.cmpn(0)<0&&(I=v.iadd(this.m)),I._forceRed(this)},Ce.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(We=m.nmd(We),this)},6705:(We,q,m)=>{var t=m(2772),e=m(6945),_=m(9401),T=m(2057),s=m(8466),y=m(6386),h=m(8651),P=m(3502).Buffer;We.exports=function(D,z,V){var Y;Y=D.padding?D.padding:V?1:4;var J,j=t(D),Q=j.modulus.byteLength();if(z.length>Q||new T(z).cmp(j.modulus)>=0)throw new Error("decryption error");J=V?h(new T(z),j):s(z,j);var ee=P.alloc(Q-J.length);if(J=P.concat([ee,J],Q),4===Y)return function d(L,D){var z=L.modulus.byteLength(),V=y("sha1").update(P.alloc(0)).digest(),Y=V.length;if(0!==D[0])throw new Error("decryption error");var j=D.slice(1,Y+1),Q=D.slice(Y+1),J=_(j,e(Q,Y)),ee=_(Q,e(J,z-Y-1));if(function C(L,D){L=P.from(L),D=P.from(D);var z=0,V=L.length;L.length!==D.length&&(z++,V=Math.min(L.length,D.length));for(var Y=-1;++Y=D.length){j++;break}var Q=D.slice(2,Y-1);if(("0002"!==V.toString("hex")&&!z||"0001"!==V.toString("hex")&&z)&&j++,Q.length<8&&j++,j)throw new Error("decryption error");return D.slice(Y)}(0,J,V);if(3===Y)return J;throw new Error("unknown padding")}},6562:(We,q,m)=>{var t=m(2772),e=m(3753),_=m(6386),T=m(6945),s=m(9401),y=m(2057),h=m(8651),P=m(8466),d=m(3502).Buffer;We.exports=function(z,V,Y){var j;j=z.padding?z.padding:Y?1:4;var J,Q=t(z);if(4===j)J=function w(D,z){var V=D.modulus.byteLength(),Y=z.length,j=_("sha1").update(d.alloc(0)).digest(),Q=j.length,J=2*Q;if(Y>V-J-2)throw new Error("message too long");var ee=d.alloc(V-Y-J-2),me=V-Q-1,re=e(Q),ie=s(d.concat([j,ee,d.alloc(1,1),z],me),T(re,me)),se=s(re,T(ie,Q));return new y(d.concat([d.alloc(1),se,ie],V))}(Q,V);else if(1===j)J=function C(D,z,V){var Q,Y=z.length,j=D.modulus.byteLength();if(Y>j-11)throw new Error("message too long");return Q=V?d.alloc(j-Y-3,255):function L(D){for(var Q,z=d.allocUnsafe(D),V=0,Y=e(2*D),j=0;V=0)throw new Error("data too long for modulus")}return Y?P(J,Q):h(J,Q)}},8651:(We,q,m)=>{var t=m(2057),e=m(3502).Buffer;We.exports=function _(T,s){return e.from(T.toRed(t.mont(s.modulus)).redPow(new t(s.publicExponent)).fromRed().toArray())}},9401:We=>{We.exports=function(m,t){for(var e=m.length,_=-1;++_{const t=m(8695),e=m(1465),_=m(3210),T=m(2334);function s(y,h,P,d,w){const C=[].slice.call(arguments,1),L=C.length,D="function"==typeof C[L-1];if(!D&&!t())throw new Error("Callback required as last argument");if(!D){if(L<1)throw new Error("Too few arguments provided");return 1===L?(P=h,h=d=void 0):2===L&&!h.getContext&&(d=P,P=h,h=void 0),new Promise(function(z,V){try{const Y=e.create(P,d);z(y(Y,h,d))}catch(Y){V(Y)}})}if(L<2)throw new Error("Too few arguments provided");2===L?(w=P,P=h,h=d=void 0):3===L&&(h.getContext&&typeof w>"u"?(w=d,d=void 0):(w=d,d=P,P=h,h=void 0));try{const z=e.create(P,d);w(null,y(z,h,d))}catch(z){w(z)}}q.create=e.create,q.toCanvas=s.bind(null,_.render),q.toDataURL=s.bind(null,_.renderToDataURL),q.toString=s.bind(null,function(y,h,P){return T.render(y,P)})},8695:We=>{We.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6221:(We,q,m)=>{const t=m(4792).getSymbolSize;q.getRowColCoords=function(_){if(1===_)return[];const T=Math.floor(_/7)+2,s=t(_),y=145===s?26:2*Math.ceil((s-13)/(2*T-2)),h=[s-7];for(let P=1;P{const t=m(4016),e=["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 _(T){this.mode=t.ALPHANUMERIC,this.data=T}_.getBitsLength=function(s){return 11*Math.floor(s/2)+s%2*6},_.prototype.getLength=function(){return this.data.length},_.prototype.getBitsLength=function(){return _.getBitsLength(this.data.length)},_.prototype.write=function(s){let y;for(y=0;y+2<=this.data.length;y+=2){let h=45*e.indexOf(this.data[y]);h+=e.indexOf(this.data[y+1]),s.put(h,11)}this.data.length%2&&s.put(e.indexOf(this.data[y]),6)},We.exports=_},2118:We=>{function q(){this.buffer=[],this.length=0}q.prototype={get:function(m){const t=Math.floor(m/8);return 1==(this.buffer[t]>>>7-m%8&1)},put:function(m,t){for(let e=0;e>>t-e-1&1))},getLengthInBits:function(){return this.length},putBit:function(m){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),m&&(this.buffer[t]|=128>>>this.length%8),this.length++}},We.exports=q},4425:We=>{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,t,e,_){const T=m*this.size+t;this.data[T]=e,_&&(this.reservedBit[T]=!0)},q.prototype.get=function(m,t){return this.data[m*this.size+t]},q.prototype.xor=function(m,t,e){this.data[m*this.size+t]^=e},q.prototype.isReserved=function(m,t){return this.reservedBit[m*this.size+t]},We.exports=q},5663:(We,q,m)=>{const t=m(8419),e=m(4016);function _(T){this.mode=e.BYTE,"string"==typeof T&&(T=t(T)),this.data=new Uint8Array(T)}_.getBitsLength=function(s){return 8*s},_.prototype.getLength=function(){return this.data.length},_.prototype.getBitsLength=function(){return _.getBitsLength(this.data.length)},_.prototype.write=function(T){for(let s=0,y=this.data.length;s{const t=m(2259),e=[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],_=[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(s,y){switch(y){case t.L:return e[4*(s-1)+0];case t.M:return e[4*(s-1)+1];case t.Q:return e[4*(s-1)+2];case t.H:return e[4*(s-1)+3];default:return}},q.getTotalCodewordsCount=function(s,y){switch(y){case t.L:return _[4*(s-1)+0];case t.M:return _[4*(s-1)+1];case t.Q:return _[4*(s-1)+2];case t.H:return _[4*(s-1)+3];default:return}}},2259:(We,q)=>{q.L={bit:1},q.M={bit:0},q.Q={bit:3},q.H={bit:2},q.isValid=function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4},q.from=function(e,_){if(q.isValid(e))return e;try{return function m(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.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: "+t)}}(e)}catch{return _}}},3114:(We,q,m)=>{const t=m(4792).getSymbolSize;q.getPositions=function(T){const s=t(T);return[[0,0],[s-7,0],[0,s-7]]}},7078:(We,q,m)=>{const t=m(4792),T=t.getBCHDigit(1335);q.getEncodedBits=function(y,h){const P=y.bit<<3|h;let d=P<<10;for(;t.getBCHDigit(d)-T>=0;)d^=1335<{const m=new Uint8Array(512),t=new Uint8Array(256);(function(){let _=1;for(let T=0;T<255;T++)m[T]=_,t[_]=T,_<<=1,256&_&&(_^=285);for(let T=255;T<512;T++)m[T]=m[T-255]})(),q.log=function(_){if(_<1)throw new Error("log("+_+")");return t[_]},q.exp=function(_){return m[_]},q.mul=function(_,T){return 0===_||0===T?0:m[t[_]+t[T]]}},449:(We,q,m)=>{const t=m(4016),e=m(4792);function _(T){this.mode=t.KANJI,this.data=T}_.getBitsLength=function(s){return 13*s},_.prototype.getLength=function(){return this.data.length},_.prototype.getBitsLength=function(){return _.getBitsLength(this.data.length)},_.prototype.write=function(T){let s;for(s=0;s=33088&&y<=40956)y-=33088;else{if(!(y>=57408&&y<=60351))throw new Error("Invalid SJIS character: "+this.data[s]+"\nMake sure your charset is UTF-8");y-=49472}y=192*(y>>>8&255)+(255&y),T.put(y,13)}},We.exports=_},3667:(We,q)=>{q.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function t(e,_,T){switch(e){case q.Patterns.PATTERN000:return(_+T)%2==0;case q.Patterns.PATTERN001:return _%2==0;case q.Patterns.PATTERN010:return T%3==0;case q.Patterns.PATTERN011:return(_+T)%3==0;case q.Patterns.PATTERN100:return(Math.floor(_/2)+Math.floor(T/3))%2==0;case q.Patterns.PATTERN101:return _*T%2+_*T%3==0;case q.Patterns.PATTERN110:return(_*T%2+_*T%3)%2==0;case q.Patterns.PATTERN111:return(_*T%3+(_+T)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}q.isValid=function(_){return null!=_&&""!==_&&!isNaN(_)&&_>=0&&_<=7},q.from=function(_){return q.isValid(_)?parseInt(_,10):void 0},q.getPenaltyN1=function(_){const T=_.size;let s=0,y=0,h=0,P=null,d=null;for(let w=0;w=5&&(s+=y-5+3),P=L,y=1),L=_.get(C,w),L===d?h++:(h>=5&&(s+=h-5+3),d=L,h=1)}y>=5&&(s+=y-5+3),h>=5&&(s+=h-5+3)}return s},q.getPenaltyN2=function(_){const T=_.size;let s=0;for(let y=0;y=10&&(1488===y||93===y)&&s++,h=h<<1&2047|_.get(d,P),d>=10&&(1488===h||93===h)&&s++}return 40*s},q.getPenaltyN4=function(_){let T=0;const s=_.data.length;for(let h=0;h{const t=m(4406),e=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(s,y){if(!s.ccBits)throw new Error("Invalid mode: "+s);if(!t.isValid(y))throw new Error("Invalid version: "+y);return y>=1&&y<10?s.ccBits[0]:y<27?s.ccBits[1]:s.ccBits[2]},q.getBestModeForData=function(s){return e.testNumeric(s)?q.NUMERIC:e.testAlphanumeric(s)?q.ALPHANUMERIC:e.testKanji(s)?q.KANJI:q.BYTE},q.toString=function(s){if(s&&s.id)return s.id;throw new Error("Invalid mode")},q.isValid=function(s){return s&&s.bit&&s.ccBits},q.from=function(s,y){if(q.isValid(s))return s;try{return function _(T){if("string"!=typeof T)throw new Error("Param is not a string");switch(T.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: "+T)}}(s)}catch{return y}}},7783:(We,q,m)=>{const t=m(4016);function e(_){this.mode=t.NUMERIC,this.data=_.toString()}e.getBitsLength=function(T){return 10*Math.floor(T/3)+(T%3?T%3*3+1:0)},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(T){let s,y,h;for(s=0;s+3<=this.data.length;s+=3)y=this.data.substr(s,3),h=parseInt(y,10),T.put(h,10);const P=this.data.length-s;P>0&&(y=this.data.substr(s),h=parseInt(y,10),T.put(h,3*P+1))},We.exports=e},1106:(We,q,m)=>{const t=m(5339);q.mul=function(_,T){const s=new Uint8Array(_.length+T.length-1);for(let y=0;y<_.length;y++)for(let h=0;h=0;){const y=s[0];for(let P=0;P{const t=m(4792),e=m(2259),_=m(2118),T=m(4425),s=m(6221),y=m(3114),h=m(3667),P=m(4655),d=m(2636),w=m(2088),C=m(7078),L=m(4016),D=m(2033);function Q(ie,se,ce){const Ce=ie.size,M=C.getEncodedBits(se,ce);let i,a;for(i=0;i<15;i++)a=1==(M>>i&1),ie.set(i<6?i:i<8?i+1:Ce-15+i,8,a,!0),ie.set(8,i<8?Ce-i-1:i<9?15-i-1+1:15-i-1,a,!0);ie.set(Ce-8,8,1,!0)}function re(ie,se,ce,Ce){let M;if(Array.isArray(ie))M=D.fromArray(ie);else{if("string"!=typeof ie)throw new Error("Invalid data");{let v=se;if(!v){const I=D.rawSplit(ie);v=w.getBestVersionForData(I,ce)}M=D.fromString(ie,v||40)}}const i=w.getBestVersionForData(M,ce);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(se){if(se=0&&f<=6&&(0===l||6===l)||l>=0&&l<=6&&(0===f||6===f)||f>=2&&f<=4&&l>=2&&l<=4,!0)}}(l,se),function V(ie){const se=ie.size;for(let ce=8;ce=7&&function j(ie,se){const ce=ie.size,Ce=w.getEncodedBits(se);let M,i,a;for(let f=0;f<18;f++)M=Math.floor(f/3),i=f%3+ce-8-3,a=1==(Ce>>f&1),ie.set(M,i,a,!0),ie.set(i,M,a,!0)}(l,se),function J(ie,se){const ce=ie.size;let Ce=-1,M=ce-1,i=7,a=0;for(let f=ce-1;f>0;f-=2)for(6===f&&f--;;){for(let l=0;l<2;l++)if(!ie.isReserved(M,f-l)){let v=!1;a>>i&1)),ie.set(M,f-l,v),i--,-1===i&&(a++,i=7)}if(M+=Ce,M<0||ce<=M){M-=Ce,Ce=-Ce;break}}}(l,a),isNaN(Ce)&&(Ce=h.getBestMask(l,Q.bind(null,l,ce))),h.applyMask(Ce,l),Q(l,ce,Ce),{modules:l,version:se,errorCorrectionLevel:ce,maskPattern:Ce,segments:M}}q.create=function(se,ce){if(typeof se>"u"||""===se)throw new Error("No input text");let M,i,Ce=e.M;return typeof ce<"u"&&(Ce=e.from(ce.errorCorrectionLevel,e.M),M=w.from(ce.version),i=h.from(ce.maskPattern),ce.toSJISFunc&&t.setToSJISFunction(ce.toSJISFunc)),re(se,M,Ce,i)}},2636:(We,q,m)=>{const t=m(1106);function e(_){this.genPoly=void 0,this.degree=_,this.degree&&this.initialize(this.degree)}e.prototype.initialize=function(T){this.degree=T,this.genPoly=t.generateECPolynomial(this.degree)},e.prototype.encode=function(T){if(!this.genPoly)throw new Error("Encoder not initialized");const s=new Uint8Array(T.length+this.degree);s.set(T);const y=t.mod(s,this.genPoly),h=this.degree-y.length;if(h>0){const P=new Uint8Array(this.degree);return P.set(y,h),P}return y},We.exports=e},2699:(We,q)=>{const m="[0-9]+";let e="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";e=e.replace(/u/g,"\\u");const _="(?:(?![A-Z0-9 $%*+\\-./:]|"+e+")(?:.|[\r\n]))+";q.KANJI=new RegExp(e,"g"),q.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),q.BYTE=new RegExp(_,"g"),q.NUMERIC=new RegExp(m,"g"),q.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const T=new RegExp("^"+e+"$"),s=new RegExp("^"+m+"$"),y=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");q.testKanji=function(P){return T.test(P)},q.testNumeric=function(P){return s.test(P)},q.testAlphanumeric=function(P){return y.test(P)}},2033:(We,q,m)=>{const t=m(4016),e=m(7783),_=m(2424),T=m(5663),s=m(449),y=m(2699),h=m(4792),P=m(4901);function d(j){return unescape(encodeURIComponent(j)).length}function w(j,Q,J){const ee=[];let me;for(;null!==(me=j.exec(J));)ee.push({data:me[0],index:me.index,mode:Q,length:me[0].length});return ee}function C(j){const Q=w(y.NUMERIC,t.NUMERIC,j),J=w(y.ALPHANUMERIC,t.ALPHANUMERIC,j);let ee,me;return h.isKanjiModeEnabled()?(ee=w(y.BYTE,t.BYTE,j),me=w(y.KANJI,t.KANJI,j)):(ee=w(y.BYTE_KANJI,t.BYTE,j),me=[]),Q.concat(J,ee,me).sort(function(ie,se){return ie.index-se.index}).map(function(ie){return{data:ie.data,mode:ie.mode,length:ie.length}})}function L(j,Q){switch(Q){case t.NUMERIC:return e.getBitsLength(j);case t.ALPHANUMERIC:return _.getBitsLength(j);case t.KANJI:return s.getBitsLength(j);case t.BYTE:return T.getBitsLength(j)}}function Y(j,Q){let J;const ee=t.getBestModeForData(j);if(J=t.from(Q,ee),J!==t.BYTE&&J.bit=0?Q[Q.length-1]:null;return ee&&ee.mode===J.mode?(Q[Q.length-1].data+=J.data,Q):(Q.push(J),Q)},[])}(se))},q.rawSplit=function(Q){return q.fromArray(C(Q,h.isKanjiModeEnabled()))}},4792:(We,q)=>{let m;const t=[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(_){if(!_)throw new Error('"version" cannot be null or undefined');if(_<1||_>40)throw new Error('"version" should be in range from 1 to 40');return 4*_+17},q.getSymbolTotalCodewords=function(_){return t[_]},q.getBCHDigit=function(e){let _=0;for(;0!==e;)_++,e>>>=1;return _},q.setToSJISFunction=function(_){if("function"!=typeof _)throw new Error('"toSJISFunc" is not a valid function.');m=_},q.isKanjiModeEnabled=function(){return typeof m<"u"},q.toSJIS=function(_){return m(_)}},4406:(We,q)=>{q.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},2088:(We,q,m)=>{const t=m(4792),e=m(4655),_=m(2259),T=m(4016),s=m(4406),h=t.getBCHDigit(7973);function d(L,D){return T.getCharCountIndicator(L,D)+4}function w(L,D){let z=0;return L.forEach(function(V){const Y=d(V.mode,D);z+=Y+V.getBitsLength()}),z}q.from=function(D,z){return s.isValid(D)?parseInt(D,10):z},q.getCapacity=function(D,z,V){if(!s.isValid(D))throw new Error("Invalid QR Code version");typeof V>"u"&&(V=T.BYTE);const Q=8*(t.getSymbolTotalCodewords(D)-e.getTotalCodewordsCount(D,z));if(V===T.MIXED)return Q;const J=Q-d(V,D);switch(V){case T.NUMERIC:return Math.floor(J/10*3);case T.ALPHANUMERIC:return Math.floor(J/11*2);case T.KANJI:return Math.floor(J/13);default:return Math.floor(J/8)}},q.getBestVersionForData=function(D,z){let V;const Y=_.from(z,_.M);if(Array.isArray(D)){if(D.length>1)return function C(L,D){for(let z=1;z<=40;z++)if(w(L,z)<=q.getCapacity(z,D,T.MIXED))return z}(D,Y);if(0===D.length)return 1;V=D[0]}else V=D;return function P(L,D,z){for(let V=1;V<=40;V++)if(D<=q.getCapacity(V,z,L))return V}(V.mode,V.getLength(),Y)},q.getEncodedBits=function(D){if(!s.isValid(D)||D<7)throw new Error("Invalid QR Code version");let z=D<<12;for(;t.getBCHDigit(z)-h>=0;)z^=7973<{const t=m(6355);q.render=function(s,y,h){let P=h,d=y;typeof P>"u"&&(!y||!y.getContext)&&(P=y,y=void 0),y||(d=function _(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),P=t.getOptions(P);const w=t.getImageWidth(s.modules.size,P),C=d.getContext("2d"),L=C.createImageData(w,w);return t.qrToImageData(L.data,s,P),function e(T,s,y){T.clearRect(0,0,s.width,s.height),s.style||(s.style={}),s.height=y,s.width=y,s.style.height=y+"px",s.style.width=y+"px"}(C,d,w),C.putImageData(L,0,0),d},q.renderToDataURL=function(s,y,h){let P=h;return typeof P>"u"&&(!y||!y.getContext)&&(P=y,y=void 0),P||(P={}),q.render(s,y,P).toDataURL(P.type||"image/png",(P.rendererOpts||{}).quality)}},2334:(We,q,m)=>{const t=m(6355);function e(s,y){const h=s.a/255,P=y+'="'+s.hex+'"';return h<1?P+" "+y+'-opacity="'+h.toFixed(2).slice(1)+'"':P}function _(s,y,h){let P=s+y;return typeof h<"u"&&(P+=" "+h),P}q.render=function(y,h,P){const d=t.getOptions(h),w=y.modules.size,C=y.modules.data,L=w+2*d.margin,D=d.color.light.a?"':"",z="0&&D>0&&s[L-1]||(P+=w?_("M",D+h,.5+z+h):_("m",d,0),d=0,w=!1),D+1',j=''+D+z+"\n";return"function"==typeof P&&P(null,j),j}},6355:(We,q)=>{function m(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);(3===e.length||4===e.length)&&(e=Array.prototype.concat.apply([],e.map(function(T){return[T,T]}))),6===e.length&&e.push("F","F");const _=parseInt(e.join(""),16);return{r:_>>24&255,g:_>>16&255,b:_>>8&255,a:255&_,hex:"#"+e.slice(0,6).join("")}}q.getOptions=function(e){e||(e={}),e.color||(e.color={});const T=e.width&&e.width>=21?e.width:void 0;return{width:T,scale:T?4:e.scale||4,margin:typeof e.margin>"u"||null===e.margin||e.margin<0?4:e.margin,color:{dark:m(e.color.dark||"#000000ff"),light:m(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},q.getScale=function(e,_){return _.width&&_.width>=e+2*_.margin?_.width/(e+2*_.margin):_.scale},q.getImageWidth=function(e,_){const T=q.getScale(e,_);return Math.floor((e+2*_.margin)*T)},q.qrToImageData=function(e,_,T){const s=_.modules.size,y=_.modules.data,h=q.getScale(s,T),P=Math.floor((s+2*T.margin)*h),d=T.margin*h,w=[T.color.light,T.color.dark];for(let C=0;C=d&&L>=d&&C{"use strict";var t=65536,T=m(3502).Buffer,s=global.crypto||global.msCrypto;We.exports=s&&s.getRandomValues?function y(h,P){if(h>4294967295)throw new RangeError("requested too many random bytes");var d=T.allocUnsafe(h);if(h>0)if(h>t)for(var w=0;w{"use strict";function t(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var e=m(3502),_=m(3753),T=e.Buffer,s=e.kMaxLength,y=global.crypto||global.msCrypto,h=Math.pow(2,32)-1;function P(D,z){if("number"!=typeof D||D!=D)throw new TypeError("offset must be a number");if(D>h||D<0)throw new TypeError("offset must be a uint32");if(D>s||D>z)throw new RangeError("offset out of range")}function d(D,z,V){if("number"!=typeof D||D!=D)throw new TypeError("size must be a number");if(D>h||D<0)throw new TypeError("size must be a uint32");if(D+z>V||D>s)throw new RangeError("buffer too small")}function C(D,z,V,Y){if(process.browser){var Q=new Uint8Array(D.buffer,z,V);return y.getRandomValues(Q),Y?void process.nextTick(function(){Y(null,D)}):D}if(!Y)return _(V).copy(D,z),D;_(V,function(ee,me){if(ee)return Y(ee);me.copy(D,z),Y(null,D)})}y&&y.getRandomValues||!process.browser?(q.randomFill=function w(D,z,V,Y){if(!(T.isBuffer(D)||D instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof z)Y=z,z=0,V=D.length;else if("function"==typeof V)Y=V,V=D.length-z;else if("function"!=typeof Y)throw new TypeError('"cb" argument must be a function');return P(z,D.length),d(V,z,D.length),C(D,z,V,Y)},q.randomFillSync=function L(D,z,V){if(typeof z>"u"&&(z=0),!(T.isBuffer(D)||D instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return P(z,D.length),void 0===V&&(V=D.length-z),d(V,z,D.length),C(D,z,V)}):(q.randomFill=t,q.randomFillSync=t)},891:We=>{"use strict";var m={};function t(y,h,P){P||(P=Error);var w=function(C){function L(D,z,V){return C.call(this,function d(C,L,D){return"string"==typeof h?h:h(C,L,D)}(D,z,V))||this}return function q(y,h){y.prototype=Object.create(h.prototype),y.prototype.constructor=y,y.__proto__=h}(L,C),L}(P);w.prototype.name=P.name,w.prototype.code=y,m[y]=w}function e(y,h){if(Array.isArray(y)){var P=y.length;return y=y.map(function(d){return String(d)}),P>2?"one of ".concat(h," ").concat(y.slice(0,P-1).join(", "),", or ")+y[P-1]:2===P?"one of ".concat(h," ").concat(y[0]," or ").concat(y[1]):"of ".concat(h," ").concat(y[0])}return"of ".concat(h," ").concat(String(y))}t("ERR_INVALID_OPT_VALUE",function(y,h){return'The value "'+h+'" is invalid for option "'+y+'"'},TypeError),t("ERR_INVALID_ARG_TYPE",function(y,h,P){var d,w;if("string"==typeof h&&function _(y,h,P){return y.substr(!P||P<0?0:+P,h.length)===h}(h,"not ")?(d="must not be",h=h.replace(/^not /,"")):d="must be",function T(y,h,P){return(void 0===P||P>y.length)&&(P=y.length),y.substring(P-h.length,P)===h}(y," argument"))w="The ".concat(y," ").concat(d," ").concat(e(h,"type"));else{var C=function s(y,h,P){return"number"!=typeof P&&(P=0),!(P+h.length>y.length)&&-1!==y.indexOf(h,P)}(y,".")?"property":"argument";w='The "'.concat(y,'" ').concat(C," ").concat(d," ").concat(e(h,"type"))}return w+". Received type ".concat(typeof P)},TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",function(y){return"The "+y+" method is not implemented"}),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",function(y){return"Cannot call "+y+" after a stream was destroyed"}),t("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),t("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),t("ERR_STREAM_WRITE_AFTER_END","write after end"),t("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),t("ERR_UNKNOWN_ENCODING",function(y){return"Unknown encoding: "+y},TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),We.exports.q=m},1339:(We,q,m)=>{"use strict";var t=Object.keys||function(w){var C=[];for(var L in w)C.push(L);return C};We.exports=h;var e=m(3154),_=m(520);m(3894)(h,e);for(var T=t(_.prototype),s=0;s{"use strict";We.exports=e;var t=m(6025);function e(_){if(!(this instanceof e))return new e(_);t.call(this,_)}m(3894)(e,t),e.prototype._transform=function(_,T,s){s(null,_)}},3154:(We,q,m)=>{"use strict";var t;We.exports=M,M.ReadableState=Ce,m(9069);var w,_=function(Fe,De){return Fe.listeners(De).length},T=m(4970),s=m(3172).Buffer,y=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},d=m(4616);w=d&&d.debuglog?d.debuglog("stream"):function(){};var ee,me,re,C=m(5019),L=m(1920),z=m(7102).getHighWaterMark,V=m(891).q,Y=V.ERR_INVALID_ARG_TYPE,j=V.ERR_STREAM_PUSH_AFTER_EOF,Q=V.ERR_METHOD_NOT_IMPLEMENTED,J=V.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;m(3894)(M,T);var ie=L.errorOrDestroy,se=["error","close","destroy","pause","resume"];function Ce(oe,Fe,De){t=t||m(1339),"boolean"!=typeof De&&(De=Fe instanceof t),this.objectMode=!!(oe=oe||{}).objectMode,De&&(this.objectMode=this.objectMode||!!oe.readableObjectMode),this.highWaterMark=z(this,oe,"readableHighWaterMark",De),this.buffer=new C,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!==oe.emitClose,this.autoDestroy=!!oe.autoDestroy,this.destroyed=!1,this.defaultEncoding=oe.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,oe.encoding&&(ee||(ee=m(3054).s),this.decoder=new ee(oe.encoding),this.encoding=oe.encoding)}function M(oe){if(t=t||m(1339),!(this instanceof M))return new M(oe);this._readableState=new Ce(oe,this,this instanceof t),this.readable=!0,oe&&("function"==typeof oe.read&&(this._read=oe.read),"function"==typeof oe.destroy&&(this._destroy=oe.destroy)),T.call(this)}function i(oe,Fe,De,he,Me){w("readableAddChunk",Fe);var Ve,pe=oe._readableState;if(null===Fe)pe.reading=!1,function k(oe,Fe){if(w("onEofChunk"),!Fe.ended){if(Fe.decoder){var De=Fe.decoder.end();De&&De.length&&(Fe.buffer.push(De),Fe.length+=Fe.objectMode?1:De.length)}Fe.ended=!0,Fe.sync?x(oe):(Fe.needReadable=!1,Fe.emittedReadable||(Fe.emittedReadable=!0,n(oe)))}}(oe,pe);else if(Me||(Ve=function f(oe,Fe){var De;return!function P(oe){return s.isBuffer(oe)||oe instanceof y}(Fe)&&"string"!=typeof Fe&&void 0!==Fe&&!oe.objectMode&&(De=new Y("chunk",["string","Buffer","Uint8Array"],Fe)),De}(pe,Fe)),Ve)ie(oe,Ve);else if(pe.objectMode||Fe&&Fe.length>0)if("string"!=typeof Fe&&!pe.objectMode&&Object.getPrototypeOf(Fe)!==s.prototype&&(Fe=function h(oe){return s.from(oe)}(Fe)),he)pe.endEmitted?ie(oe,new J):a(oe,pe,Fe,!0);else if(pe.ended)ie(oe,new j);else{if(pe.destroyed)return!1;pe.reading=!1,pe.decoder&&!De?(Fe=pe.decoder.write(Fe),pe.objectMode||0!==Fe.length?a(oe,pe,Fe,!1):g(oe,pe)):a(oe,pe,Fe,!1)}else he||(pe.reading=!1,g(oe,pe));return!pe.ended&&(pe.lengthFe.highWaterMark&&(Fe.highWaterMark=function v(oe){return oe>=l?oe=l:(oe--,oe|=oe>>>1,oe|=oe>>>2,oe|=oe>>>4,oe|=oe>>>8,oe|=oe>>>16,oe++),oe}(oe)),oe<=Fe.length?oe:Fe.ended?Fe.length:(Fe.needReadable=!0,0))}function x(oe){var Fe=oe._readableState;w("emitReadable",Fe.needReadable,Fe.emittedReadable),Fe.needReadable=!1,Fe.emittedReadable||(w("emitReadable",Fe.flowing),Fe.emittedReadable=!0,process.nextTick(n,oe))}function n(oe){var Fe=oe._readableState;w("emitReadable_",Fe.destroyed,Fe.length,Fe.ended),!Fe.destroyed&&(Fe.length||Fe.ended)&&(oe.emit("readable"),Fe.emittedReadable=!1),Fe.needReadable=!Fe.flowing&&!Fe.ended&&Fe.length<=Fe.highWaterMark,at(oe)}function g(oe,Fe){Fe.readingMore||(Fe.readingMore=!0,process.nextTick(W,oe,Fe))}function W(oe,Fe){for(;!Fe.reading&&!Fe.ended&&(Fe.length0,Fe.resumeScheduled&&!Fe.paused?Fe.flowing=!0:oe.listenerCount("data")>0&&oe.resume()}function ge(oe){w("readable nexttick read 0"),oe.read(0)}function Ue(oe,Fe){w("resume",Fe.reading),Fe.reading||oe.read(0),Fe.resumeScheduled=!1,oe.emit("resume"),at(oe),Fe.flowing&&!Fe.reading&&oe.read(0)}function at(oe){var Fe=oe._readableState;for(w("flow",Fe.flowing);Fe.flowing&&null!==oe.read(););}function ye(oe,Fe){return 0===Fe.length?null:(Fe.objectMode?De=Fe.buffer.shift():!oe||oe>=Fe.length?(De=Fe.decoder?Fe.buffer.join(""):1===Fe.buffer.length?Fe.buffer.first():Fe.buffer.concat(Fe.length),Fe.buffer.clear()):De=Fe.buffer.consume(oe,Fe.decoder),De);var De}function xe(oe){var Fe=oe._readableState;w("endReadable",Fe.endEmitted),Fe.endEmitted||(Fe.ended=!0,process.nextTick(fe,Fe,oe))}function fe(oe,Fe){if(w("endReadableNT",oe.endEmitted,oe.length),!oe.endEmitted&&0===oe.length&&(oe.endEmitted=!0,Fe.readable=!1,Fe.emit("end"),oe.autoDestroy)){var De=Fe._writableState;(!De||De.autoDestroy&&De.finished)&&Fe.destroy()}}function Oe(oe,Fe){for(var De=0,he=oe.length;De=Fe.highWaterMark:Fe.length>0)||Fe.ended))return w("read: emitReadable",Fe.length,Fe.ended),0===Fe.length&&Fe.ended?xe(this):x(this),null;if(0===(oe=I(oe,Fe))&&Fe.ended)return 0===Fe.length&&xe(this),null;var Me,he=Fe.needReadable;return w("need readable",he),(0===Fe.length||Fe.length-oe0?ye(oe,Fe):null)?(Fe.needReadable=Fe.length<=Fe.highWaterMark,oe=0):(Fe.length-=oe,Fe.awaitDrain=0),0===Fe.length&&(Fe.ended||(Fe.needReadable=!0),De!==oe&&Fe.ended&&xe(this)),null!==Me&&this.emit("data",Me),Me},M.prototype._read=function(oe){ie(this,new Q("_read()"))},M.prototype.pipe=function(oe,Fe){var De=this,he=this._readableState;switch(he.pipesCount){case 0:he.pipes=oe;break;case 1:he.pipes=[he.pipes,oe];break;default:he.pipes.push(oe)}he.pipesCount+=1,w("pipe count=%d opts=%j",he.pipesCount,Fe);var pe=Fe&&!1===Fe.end||oe===process.stdout||oe===process.stderr?Ge:Qe;function Qe(){w("onend"),oe.end()}he.endEmitted?process.nextTick(pe):De.once("end",pe),oe.on("unpipe",function Ve(yt,be){w("onunpipe"),yt===De&&be&&!1===be.hasUnpiped&&(be.hasUnpiped=!0,function rt(){w("cleanup"),oe.removeListener("close",Ut),oe.removeListener("finish",ht),oe.removeListener("drain",Pe),oe.removeListener("error",lt),oe.removeListener("unpipe",Ve),De.removeListener("end",Qe),De.removeListener("end",Ge),De.removeListener("data",Ke),de=!0,he.awaitDrain&&(!oe._writableState||oe._writableState.needDrain)&&Pe()}())});var Pe=function O(oe){return function(){var De=oe._readableState;w("pipeOnDrain",De.awaitDrain),De.awaitDrain&&De.awaitDrain--,0===De.awaitDrain&&_(oe,"data")&&(De.flowing=!0,at(oe))}}(De);oe.on("drain",Pe);var de=!1;function Ke(yt){w("ondata");var be=oe.write(yt);w("dest.write",be),!1===be&&((1===he.pipesCount&&he.pipes===oe||he.pipesCount>1&&-1!==Oe(he.pipes,oe))&&!de&&(w("false write response, pause",he.awaitDrain),he.awaitDrain++),De.pause())}function lt(yt){w("onerror",yt),Ge(),oe.removeListener("error",lt),0===_(oe,"error")&&ie(oe,yt)}function Ut(){oe.removeListener("finish",ht),Ge()}function ht(){w("onfinish"),oe.removeListener("close",Ut),Ge()}function Ge(){w("unpipe"),De.unpipe(oe)}return De.on("data",Ke),function ce(oe,Fe,De){if("function"==typeof oe.prependListener)return oe.prependListener(Fe,De);oe._events&&oe._events[Fe]?Array.isArray(oe._events[Fe])?oe._events[Fe].unshift(De):oe._events[Fe]=[De,oe._events[Fe]]:oe.on(Fe,De)}(oe,"error",lt),oe.once("close",Ut),oe.once("finish",ht),oe.emit("pipe",De),he.flowing||(w("pipe resume"),De.resume()),oe},M.prototype.unpipe=function(oe){var Fe=this._readableState,De={hasUnpiped:!1};if(0===Fe.pipesCount)return this;if(1===Fe.pipesCount)return oe&&oe!==Fe.pipes||(oe||(oe=Fe.pipes),Fe.pipes=null,Fe.pipesCount=0,Fe.flowing=!1,oe&&oe.emit("unpipe",this,De)),this;if(!oe){var he=Fe.pipes,Me=Fe.pipesCount;Fe.pipes=null,Fe.pipesCount=0,Fe.flowing=!1;for(var pe=0;pe0,!1!==he.flowing&&this.resume()):"readable"===oe&&!he.endEmitted&&!he.readableListening&&(he.readableListening=he.needReadable=!0,he.flowing=!1,he.emittedReadable=!1,w("on readable",he.length,he.reading),he.length?x(this):he.reading||process.nextTick(ge,this)),De},M.prototype.removeListener=function(oe,Fe){var De=T.prototype.removeListener.call(this,oe,Fe);return"readable"===oe&&process.nextTick(U,this),De},M.prototype.removeAllListeners=function(oe){var Fe=T.prototype.removeAllListeners.apply(this,arguments);return("readable"===oe||void 0===oe)&&process.nextTick(U,this),Fe},M.prototype.resume=function(){var oe=this._readableState;return oe.flowing||(w("resume"),oe.flowing=!oe.readableListening,function nt(oe,Fe){Fe.resumeScheduled||(Fe.resumeScheduled=!0,process.nextTick(Ue,oe,Fe))}(this,oe)),oe.paused=!1,this},M.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},M.prototype.wrap=function(oe){var Fe=this,De=this._readableState,he=!1;for(var Me in oe.on("end",function(){if(w("wrapped end"),De.decoder&&!De.ended){var Ve=De.decoder.end();Ve&&Ve.length&&Fe.push(Ve)}Fe.push(null)}),oe.on("data",function(Ve){w("wrapped data"),De.decoder&&(Ve=De.decoder.write(Ve)),De.objectMode&&null==Ve||!(De.objectMode||Ve&&Ve.length)||Fe.push(Ve)||(he=!0,oe.pause())}),oe)void 0===this[Me]&&"function"==typeof oe[Me]&&(this[Me]=function(Qe){return function(){return oe[Qe].apply(oe,arguments)}}(Me));for(var pe=0;pe{"use strict";We.exports=P;var t=m(891).q,e=t.ERR_METHOD_NOT_IMPLEMENTED,_=t.ERR_MULTIPLE_CALLBACK,T=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=t.ERR_TRANSFORM_WITH_LENGTH_0,y=m(1339);function h(C,L){var D=this._transformState;D.transforming=!1;var z=D.writecb;if(null===z)return this.emit("error",new _);D.writechunk=null,D.writecb=null,null!=L&&this.push(L),z(C);var V=this._readableState;V.reading=!1,(V.needReadable||V.length{"use strict";function e(at){var ye=this;this.next=null,this.entry=null,this.finish=function(){!function Ue(at,ye,xe){var fe=at.entry;for(at.entry=null;fe;){var Oe=fe.callback;ye.pendingcb--,Oe(xe),fe=fe.next}ye.corkedRequestsFree.next=at}(ye,at)}}var _;We.exports=Ce,Ce.WritableState=se;var ce,T={deprecate:m(4364)},s=m(4970),y=m(3172).Buffer,h=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},w=m(1920),L=m(7102).getHighWaterMark,D=m(891).q,z=D.ERR_INVALID_ARG_TYPE,V=D.ERR_METHOD_NOT_IMPLEMENTED,Y=D.ERR_MULTIPLE_CALLBACK,j=D.ERR_STREAM_CANNOT_PIPE,Q=D.ERR_STREAM_DESTROYED,J=D.ERR_STREAM_NULL_VALUES,ee=D.ERR_STREAM_WRITE_AFTER_END,me=D.ERR_UNKNOWN_ENCODING,re=w.errorOrDestroy;function ie(){}function se(at,ye,xe){_=_||m(1339),"boolean"!=typeof xe&&(xe=ye instanceof _),this.objectMode=!!(at=at||{}).objectMode,xe&&(this.objectMode=this.objectMode||!!at.writableObjectMode),this.highWaterMark=L(this,at,"writableHighWaterMark",xe),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===at.decodeStrings),this.defaultEncoding=at.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Oe){!function k(at,ye){var xe=at._writableState,fe=xe.sync,Oe=xe.writecb;if("function"!=typeof Oe)throw new Y;if(function I(at){at.writing=!1,at.writecb=null,at.length-=at.writelen,at.writelen=0}(xe),ye)!function v(at,ye,xe,fe,Oe){--ye.pendingcb,xe?(process.nextTick(Oe,fe),process.nextTick(ge,at,ye),at._writableState.errorEmitted=!0,re(at,fe)):(Oe(fe),at._writableState.errorEmitted=!0,re(at,fe),ge(at,ye))}(at,xe,fe,ye,Oe);else{var oe=W(xe)||at.destroyed;!oe&&!xe.corked&&!xe.bufferProcessing&&xe.bufferedRequest&&g(at,xe),fe?process.nextTick(x,at,xe,oe,Oe):x(at,xe,oe,Oe)}}(ye,Oe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==at.emitClose,this.autoDestroy=!!at.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function Ce(at){var ye=this instanceof(_=_||m(1339));if(!ye&&!ce.call(Ce,this))return new Ce(at);this._writableState=new se(at,this,ye),this.writable=!0,at&&("function"==typeof at.write&&(this._write=at.write),"function"==typeof at.writev&&(this._writev=at.writev),"function"==typeof at.destroy&&(this._destroy=at.destroy),"function"==typeof at.final&&(this._final=at.final)),s.call(this)}function l(at,ye,xe,fe,Oe,oe,Fe){ye.writelen=fe,ye.writecb=Fe,ye.writing=!0,ye.sync=!0,ye.destroyed?ye.onwrite(new Q("write")):xe?at._writev(Oe,ye.onwrite):at._write(Oe,oe,ye.onwrite),ye.sync=!1}function x(at,ye,xe,fe){xe||function n(at,ye){0===ye.length&&ye.needDrain&&(ye.needDrain=!1,at.emit("drain"))}(at,ye),ye.pendingcb--,fe(),ge(at,ye)}function g(at,ye){ye.bufferProcessing=!0;var xe=ye.bufferedRequest;if(at._writev&&xe&&xe.next){var Oe=new Array(ye.bufferedRequestCount),oe=ye.corkedRequestsFree;oe.entry=xe;for(var Fe=0,De=!0;xe;)Oe[Fe]=xe,xe.isBuf||(De=!1),xe=xe.next,Fe+=1;Oe.allBuffers=De,l(at,ye,!0,ye.length,Oe,"",oe.finish),ye.pendingcb++,ye.lastBufferedRequest=null,oe.next?(ye.corkedRequestsFree=oe.next,oe.next=null):ye.corkedRequestsFree=new e(ye),ye.bufferedRequestCount=0}else{for(;xe;){var he=xe.chunk;if(l(at,ye,!1,ye.objectMode?1:he.length,he,xe.encoding,xe.callback),xe=xe.next,ye.bufferedRequestCount--,ye.writing)break}null===xe&&(ye.lastBufferedRequest=null)}ye.bufferedRequest=xe,ye.bufferProcessing=!1}function W(at){return at.ending&&0===at.length&&null===at.bufferedRequest&&!at.finished&&!at.writing}function O(at,ye){at._final(function(xe){ye.pendingcb--,xe&&re(at,xe),ye.prefinished=!0,at.emit("prefinish"),ge(at,ye)})}function ge(at,ye){var xe=W(ye);if(xe&&(function U(at,ye){!ye.prefinished&&!ye.finalCalled&&("function"!=typeof at._final||ye.destroyed?(ye.prefinished=!0,at.emit("prefinish")):(ye.pendingcb++,ye.finalCalled=!0,process.nextTick(O,at,ye)))}(at,ye),0===ye.pendingcb&&(ye.finished=!0,at.emit("finish"),ye.autoDestroy))){var fe=at._readableState;(!fe||fe.autoDestroy&&fe.endEmitted)&&at.destroy()}return xe}m(3894)(Ce,s),se.prototype.getBuffer=function(){for(var ye=this.bufferedRequest,xe=[];ye;)xe.push(ye),ye=ye.next;return xe},function(){try{Object.defineProperty(se.prototype,"buffer",{get:T.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(ce=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ce,Symbol.hasInstance,{value:function(ye){return!!ce.call(this,ye)||this===Ce&&ye&&ye._writableState instanceof se}})):ce=function(ye){return ye instanceof this},Ce.prototype.pipe=function(){re(this,new j)},Ce.prototype.write=function(at,ye,xe){var fe=this._writableState,Oe=!1,oe=!fe.objectMode&&function d(at){return y.isBuffer(at)||at instanceof h}(at);return oe&&!y.isBuffer(at)&&(at=function P(at){return y.from(at)}(at)),"function"==typeof ye&&(xe=ye,ye=null),oe?ye="buffer":ye||(ye=fe.defaultEncoding),"function"!=typeof xe&&(xe=ie),fe.ending?function M(at,ye){var xe=new ee;re(at,xe),process.nextTick(ye,xe)}(this,xe):(oe||function i(at,ye,xe,fe){var Oe;return null===xe?Oe=new J:"string"!=typeof xe&&!ye.objectMode&&(Oe=new z("chunk",["string","Buffer"],xe)),!Oe||(re(at,Oe),process.nextTick(fe,Oe),!1)}(this,fe,at,xe))&&(fe.pendingcb++,Oe=function f(at,ye,xe,fe,Oe,oe){if(!xe){var Fe=function a(at,ye,xe){return!at.objectMode&&!1!==at.decodeStrings&&"string"==typeof ye&&(ye=y.from(ye,xe)),ye}(ye,fe,Oe);fe!==Fe&&(xe=!0,Oe="buffer",fe=Fe)}var De=ye.objectMode?1:fe.length;ye.length+=De;var he=ye.length-1))throw new me(ye);return this._writableState.defaultEncoding=ye,this},Object.defineProperty(Ce.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(Ce.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Ce.prototype._write=function(at,ye,xe){xe(new V("_write()"))},Ce.prototype._writev=null,Ce.prototype.end=function(at,ye,xe){var fe=this._writableState;return"function"==typeof at?(xe=at,at=null,ye=null):"function"==typeof ye&&(xe=ye,ye=null),null!=at&&this.write(at,ye),fe.corked&&(fe.corked=1,this.uncork()),fe.ending||function nt(at,ye,xe){ye.ending=!0,ge(at,ye),xe&&(ye.finished?process.nextTick(xe):at.once("finish",xe)),ye.ended=!0,at.writable=!1}(this,fe,xe),this},Object.defineProperty(Ce.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(Ce.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(ye){this._writableState&&(this._writableState.destroyed=ye)}}),Ce.prototype.destroy=w.destroy,Ce.prototype._undestroy=w.undestroy,Ce.prototype._destroy=function(at,ye){ye(at)}},3872:(We,q,m)=>{"use strict";var t;function e(ee,me,re){return me=function _(ee){var me=function T(ee,me){if("object"!=typeof ee||null===ee)return ee;var re=ee[Symbol.toPrimitive];if(void 0!==re){var ie=re.call(ee,me||"default");if("object"!=typeof ie)return ie;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===me?String:Number)(ee)}(ee,"string");return"symbol"==typeof me?me:String(me)}(me),me in ee?Object.defineProperty(ee,me,{value:re,enumerable:!0,configurable:!0,writable:!0}):ee[me]=re,ee}var s=m(7542),y=Symbol("lastResolve"),h=Symbol("lastReject"),P=Symbol("error"),d=Symbol("ended"),w=Symbol("lastPromise"),C=Symbol("handlePromise"),L=Symbol("stream");function D(ee,me){return{value:ee,done:me}}function z(ee){var me=ee[y];if(null!==me){var re=ee[L].read();null!==re&&(ee[w]=null,ee[y]=null,ee[h]=null,me(D(re,!1)))}}function V(ee){process.nextTick(z,ee)}var j=Object.getPrototypeOf(function(){}),Q=Object.setPrototypeOf((e(t={get stream(){return this[L]},next:function(){var me=this,re=this[P];if(null!==re)return Promise.reject(re);if(this[d])return Promise.resolve(D(void 0,!0));if(this[L].destroyed)return new Promise(function(Ce,M){process.nextTick(function(){me[P]?M(me[P]):Ce(D(void 0,!0))})});var se,ie=this[w];if(ie)se=new Promise(function Y(ee,me){return function(re,ie){ee.then(function(){me[d]?re(D(void 0,!0)):me[C](re,ie)},ie)}}(ie,this));else{var ce=this[L].read();if(null!==ce)return Promise.resolve(D(ce,!1));se=new Promise(this[C])}return this[w]=se,se}},Symbol.asyncIterator,function(){return this}),e(t,"return",function(){var me=this;return new Promise(function(re,ie){me[L].destroy(null,function(se){se?ie(se):re(D(void 0,!0))})})}),t),j);We.exports=function(me){var re,ie=Object.create(Q,(e(re={},L,{value:me,writable:!0}),e(re,y,{value:null,writable:!0}),e(re,h,{value:null,writable:!0}),e(re,P,{value:null,writable:!0}),e(re,d,{value:me._readableState.endEmitted,writable:!0}),e(re,C,{value:function(ce,Ce){var M=ie[L].read();M?(ie[w]=null,ie[y]=null,ie[h]=null,ce(D(M,!1))):(ie[y]=ce,ie[h]=Ce)},writable:!0}),re));return ie[w]=null,s(me,function(se){if(se&&"ERR_STREAM_PREMATURE_CLOSE"!==se.code){var ce=ie[h];return null!==ce&&(ie[w]=null,ie[y]=null,ie[h]=null,ce(se)),void(ie[P]=se)}var Ce=ie[y];null!==Ce&&(ie[w]=null,ie[y]=null,ie[h]=null,Ce(D(void 0,!0))),ie[d]=!0}),me.on("readable",V.bind(null,ie)),ie}},5019:(We,q,m)=>{"use strict";function t(V,Y){var j=Object.keys(V);if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(V);Y&&(Q=Q.filter(function(J){return Object.getOwnPropertyDescriptor(V,J).enumerable})),j.push.apply(j,Q)}return j}function e(V){for(var Y=1;Y0?this.tail.next=Q:this.head=Q,this.tail=Q,++this.length}},{key:"unshift",value:function(j){var Q={data:j,next:this.head};0===this.length&&(this.tail=Q),this.head=Q,++this.length}},{key:"shift",value:function(){if(0!==this.length){var j=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,j}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(j){if(0===this.length)return"";for(var Q=this.head,J=""+Q.data;Q=Q.next;)J+=j+Q.data;return J}},{key:"concat",value:function(j){if(0===this.length)return w.alloc(0);for(var Q=w.allocUnsafe(j>>>0),J=this.head,ee=0;J;)z(J.data,Q,ee),ee+=J.data.length,J=J.next;return Q}},{key:"consume",value:function(j,Q){var J;return jme.length?me.length:j;if(ee+=re===me.length?me:me.slice(0,j),0==(j-=re)){re===me.length?(++J,this.head=Q.next?Q.next:this.tail=null):(this.head=Q,Q.data=me.slice(re));break}++J}return this.length-=J,ee}},{key:"_getBuffer",value:function(j){var Q=w.allocUnsafe(j),J=this.head,ee=1;for(J.data.copy(Q),j-=J.data.length;J=J.next;){var me=J.data,re=j>me.length?me.length:j;if(me.copy(Q,Q.length-j,0,re),0==(j-=re)){re===me.length?(++ee,this.head=J.next?J.next:this.tail=null):(this.head=J,J.data=me.slice(re));break}++ee}return this.length-=ee,Q}},{key:D,value:function(j,Q){return L(this,e(e({},Q),{},{depth:0,customInspect:!1}))}}]),V}()},1920:We=>{"use strict";function m(s,y){_(s,y),t(s)}function t(s){s._writableState&&!s._writableState.emitClose||s._readableState&&!s._readableState.emitClose||s.emit("close")}function _(s,y){s.emit("error",y)}We.exports={destroy:function q(s,y){var h=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(y?y(s):s&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(_,this,s)):process.nextTick(_,this,s)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(s||null,function(w){!y&&w?h._writableState?h._writableState.errorEmitted?process.nextTick(t,h):(h._writableState.errorEmitted=!0,process.nextTick(m,h,w)):process.nextTick(m,h,w):y?(process.nextTick(t,h),y(w)):process.nextTick(t,h)}),this)},undestroy:function e(){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 T(s,y){var h=s._readableState,P=s._writableState;h&&h.autoDestroy||P&&P.autoDestroy?s.destroy(y):s.emit("error",y)}}},7542:(We,q,m)=>{"use strict";var t=m(891).q.ERR_STREAM_PREMATURE_CLOSE;function _(){}We.exports=function s(y,h,P){if("function"==typeof h)return s(y,null,h);h||(h={}),P=function e(y){var h=!1;return function(){if(!h){h=!0;for(var P=arguments.length,d=new Array(P),w=0;w{We.exports=function(){throw new Error("Readable.from is not available in the browser")}},954:(We,q,m)=>{"use strict";var t,_=m(891).q,T=_.ERR_MISSING_ARGS,s=_.ERR_STREAM_DESTROYED;function y(D){if(D)throw D}function d(D){D()}function w(D,z){return D.pipe(z)}We.exports=function L(){for(var D=arguments.length,z=new Array(D),V=0;V0,function(ie){j||(j=ie),ie&&Q.forEach(d),!me&&(Q.forEach(d),Y(j))})});return z.reduce(w)}},7102:(We,q,m)=>{"use strict";var t=m(891).q.ERR_INVALID_OPT_VALUE;We.exports={getHighWaterMark:function _(T,s,y,h){var P=function e(T,s,y){return null!=T.highWaterMark?T.highWaterMark:s?T[y]:null}(s,h,y);if(null!=P){if(!isFinite(P)||Math.floor(P)!==P||P<0)throw new t(h?y:"highWaterMark",P);return Math.floor(P)}return T.objectMode?16:16384}}},4970:(We,q,m)=>{We.exports=m(9069).EventEmitter},5685:(We,q,m)=>{(q=We.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)},5126:We=>{"use strict";function q(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}We.exports=function m(e){return(e=e||{}).circles?function t(e){var _=[],T=[];return e.proto?function h(P){if("object"!=typeof P||null===P)return P;if(P instanceof Date)return new Date(P);if(Array.isArray(P))return s(P,h);if(P instanceof Map)return new Map(s(Array.from(P),h));if(P instanceof Set)return new Set(s(Array.from(P),h));var d={};for(var w in _.push(P),T.push(d),P){var C=P[w];if("object"!=typeof C||null===C)d[w]=C;else if(C instanceof Date)d[w]=new Date(C);else if(C instanceof Map)d[w]=new Map(s(Array.from(C),h));else if(C instanceof Set)d[w]=new Set(s(Array.from(C),h));else if(ArrayBuffer.isView(C))d[w]=q(C);else{var L=_.indexOf(C);d[w]=-1!==L?T[L]:h(C)}}return _.pop(),T.pop(),d}:function y(P){if("object"!=typeof P||null===P)return P;if(P instanceof Date)return new Date(P);if(Array.isArray(P))return s(P,y);if(P instanceof Map)return new Map(s(Array.from(P),y));if(P instanceof Set)return new Set(s(Array.from(P),y));var d={};for(var w in _.push(P),T.push(d),P)if(!1!==Object.hasOwnProperty.call(P,w)){var C=P[w];if("object"!=typeof C||null===C)d[w]=C;else if(C instanceof Date)d[w]=new Date(C);else if(C instanceof Map)d[w]=new Map(s(Array.from(C),y));else if(C instanceof Set)d[w]=new Set(s(Array.from(C),y));else if(ArrayBuffer.isView(C))d[w]=q(C);else{var L=_.indexOf(C);d[w]=-1!==L?T[L]:y(C)}}return _.pop(),T.pop(),d};function s(P,d){for(var w=Object.keys(P),C=new Array(w.length),L=0;L{"use strict";var t=m(3172).Buffer,e=m(3894),_=m(9650),T=new Array(16),s=[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],y=[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],h=[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],P=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],d=[0,1518500249,1859775393,2400959708,2840853838],w=[1352829926,1548603684,1836072691,2053994217,0];function C(){_.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function L(Q,J){return Q<>>32-J}function D(Q,J,ee,me,re,ie,se,ce){return L(Q+(J^ee^me)+ie+se|0,ce)+re|0}function z(Q,J,ee,me,re,ie,se,ce){return L(Q+(J&ee|~J&me)+ie+se|0,ce)+re|0}function V(Q,J,ee,me,re,ie,se,ce){return L(Q+((J|~ee)^me)+ie+se|0,ce)+re|0}function Y(Q,J,ee,me,re,ie,se,ce){return L(Q+(J&me|ee&~me)+ie+se|0,ce)+re|0}function j(Q,J,ee,me,re,ie,se,ce){return L(Q+(J^(ee|~me))+ie+se|0,ce)+re|0}e(C,_),C.prototype._update=function(){for(var Q=T,J=0;J<16;++J)Q[J]=this._block.readInt32LE(4*J);for(var ee=0|this._a,me=0|this._b,re=0|this._c,ie=0|this._d,se=0|this._e,ce=0|this._a,Ce=0|this._b,M=0|this._c,i=0|this._d,a=0|this._e,f=0;f<80;f+=1){var l,v;f<16?(l=D(ee,me,re,ie,se,Q[s[f]],d[0],h[f]),v=j(ce,Ce,M,i,a,Q[y[f]],w[0],P[f])):f<32?(l=z(ee,me,re,ie,se,Q[s[f]],d[1],h[f]),v=Y(ce,Ce,M,i,a,Q[y[f]],w[1],P[f])):f<48?(l=V(ee,me,re,ie,se,Q[s[f]],d[2],h[f]),v=V(ce,Ce,M,i,a,Q[y[f]],w[2],P[f])):f<64?(l=Y(ee,me,re,ie,se,Q[s[f]],d[3],h[f]),v=z(ce,Ce,M,i,a,Q[y[f]],w[3],P[f])):(l=j(ee,me,re,ie,se,Q[s[f]],d[4],h[f]),v=D(ce,Ce,M,i,a,Q[y[f]],w[4],P[f])),ee=se,se=ie,ie=L(re,10),re=me,me=l,ce=a,a=i,i=L(M,10),M=Ce,Ce=v}var I=this._b+re+i|0;this._b=this._c+ie+a|0,this._c=this._d+se+ce|0,this._d=this._e+ee+Ce|0,this._e=this._a+me+M|0,this._a=I},C.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 Q=t.alloc?t.alloc(20):new t(20);return Q.writeInt32LE(this._a,0),Q.writeInt32LE(this._b,4),Q.writeInt32LE(this._c,8),Q.writeInt32LE(this._d,12),Q.writeInt32LE(this._e,16),Q},We.exports=C},1135:(We,q,m)=>{"use strict";m.d(q,{X:()=>e});var t=m(7579);class e extends t.x{constructor(T){super(),this._value=T}get value(){return this.getValue()}_subscribe(T){const s=super._subscribe(T);return!s.closed&&T.next(this._value),s}getValue(){const{hasError:T,thrownError:s,_value:y}=this;if(T)throw s;return this._throwIfClosed(),y}next(T){super.next(this._value=T)}}},9751:(We,q,m)=>{"use strict";m.d(q,{y:()=>P});var t=m(930),e=m(727),_=m(8822),T=m(9635),s=m(2416),y=m(576),h=m(2806);let P=(()=>{class L{constructor(z){z&&(this._subscribe=z)}lift(z){const V=new L;return V.source=this,V.operator=z,V}subscribe(z,V,Y){const j=function C(L){return L&&L instanceof t.Lv||function w(L){return L&&(0,y.m)(L.next)&&(0,y.m)(L.error)&&(0,y.m)(L.complete)}(L)&&(0,e.Nn)(L)}(z)?z:new t.Hp(z,V,Y);return(0,h.x)(()=>{const{operator:Q,source:J}=this;j.add(Q?Q.call(j,J):J?this._subscribe(j):this._trySubscribe(j))}),j}_trySubscribe(z){try{return this._subscribe(z)}catch(V){z.error(V)}}forEach(z,V){return new(V=d(V))((Y,j)=>{const Q=new t.Hp({next:J=>{try{z(J)}catch(ee){j(ee),Q.unsubscribe()}},error:j,complete:Y});this.subscribe(Q)})}_subscribe(z){var V;return null===(V=this.source)||void 0===V?void 0:V.subscribe(z)}[_.L](){return this}pipe(...z){return(0,T.U)(z)(this)}toPromise(z){return new(z=d(z))((V,Y)=>{let j;this.subscribe(Q=>j=Q,Q=>Y(Q),()=>V(j))})}}return L.create=D=>new L(D),L})();function d(L){var D;return null!==(D=L??s.v.Promise)&&void 0!==D?D:Promise}},4707:(We,q,m)=>{"use strict";m.d(q,{t:()=>_});var t=m(7579),e=m(6063);class _ extends t.x{constructor(s=1/0,y=1/0,h=e.l){super(),this._bufferSize=s,this._windowTime=y,this._timestampProvider=h,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=y===1/0,this._bufferSize=Math.max(1,s),this._windowTime=Math.max(1,y)}next(s){const{isStopped:y,_buffer:h,_infiniteTimeWindow:P,_timestampProvider:d,_windowTime:w}=this;y||(h.push(s),!P&&h.push(d.now()+w)),this._trimBuffer(),super.next(s)}_subscribe(s){this._throwIfClosed(),this._trimBuffer();const y=this._innerSubscribe(s),{_infiniteTimeWindow:h,_buffer:P}=this,d=P.slice();for(let w=0;w{"use strict";m.d(q,{u:()=>P,x:()=>h});var t=m(9751),e=m(727);const T=(0,m(3888).d)(d=>function(){d(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var s=m(8737),y=m(2806);let h=(()=>{class d extends t.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(C){const L=new P(this,this);return L.operator=C,L}_throwIfClosed(){if(this.closed)throw new T}next(C){(0,y.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const L of this.currentObservers)L.next(C)}})}error(C){(0,y.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=C;const{observers:L}=this;for(;L.length;)L.shift().error(C)}})}complete(){(0,y.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:C}=this;for(;C.length;)C.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var C;return(null===(C=this.observers)||void 0===C?void 0:C.length)>0}_trySubscribe(C){return this._throwIfClosed(),super._trySubscribe(C)}_subscribe(C){return this._throwIfClosed(),this._checkFinalizedStatuses(C),this._innerSubscribe(C)}_innerSubscribe(C){const{hasError:L,isStopped:D,observers:z}=this;return L||D?e.Lc:(this.currentObservers=null,z.push(C),new e.w0(()=>{this.currentObservers=null,(0,s.P)(z,C)}))}_checkFinalizedStatuses(C){const{hasError:L,thrownError:D,isStopped:z}=this;L?C.error(D):z&&C.complete()}asObservable(){const C=new t.y;return C.source=this,C}}return d.create=(w,C)=>new P(w,C),d})();class P extends h{constructor(w,C){super(),this.destination=w,this.source=C}next(w){var C,L;null===(L=null===(C=this.destination)||void 0===C?void 0:C.next)||void 0===L||L.call(C,w)}error(w){var C,L;null===(L=null===(C=this.destination)||void 0===C?void 0:C.error)||void 0===L||L.call(C,w)}complete(){var w,C;null===(C=null===(w=this.destination)||void 0===w?void 0:w.complete)||void 0===C||C.call(w)}_subscribe(w){var C,L;return null!==(L=null===(C=this.source)||void 0===C?void 0:C.subscribe(w))&&void 0!==L?L:e.Lc}}},930:(We,q,m)=>{"use strict";m.d(q,{Hp:()=>Y,Lv:()=>L});var t=m(576),e=m(727),_=m(2416),T=m(7849),s=m(5032);const y=d("C",void 0,void 0);function d(me,re,ie){return{kind:me,value:re,error:ie}}var w=m(3410),C=m(2806);class L extends e.w0{constructor(re){super(),this.isStopped=!1,re?(this.destination=re,(0,e.Nn)(re)&&re.add(this)):this.destination=ee}static create(re,ie,se){return new Y(re,ie,se)}next(re){this.isStopped?J(function P(me){return d("N",me,void 0)}(re),this):this._next(re)}error(re){this.isStopped?J(function h(me){return d("E",void 0,me)}(re),this):(this.isStopped=!0,this._error(re))}complete(){this.isStopped?J(y,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(re){this.destination.next(re)}_error(re){try{this.destination.error(re)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const D=Function.prototype.bind;function z(me,re){return D.call(me,re)}class V{constructor(re){this.partialObserver=re}next(re){const{partialObserver:ie}=this;if(ie.next)try{ie.next(re)}catch(se){j(se)}}error(re){const{partialObserver:ie}=this;if(ie.error)try{ie.error(re)}catch(se){j(se)}else j(re)}complete(){const{partialObserver:re}=this;if(re.complete)try{re.complete()}catch(ie){j(ie)}}}class Y extends L{constructor(re,ie,se){let ce;if(super(),(0,t.m)(re)||!re)ce={next:re??void 0,error:ie??void 0,complete:se??void 0};else{let Ce;this&&_.v.useDeprecatedNextContext?(Ce=Object.create(re),Ce.unsubscribe=()=>this.unsubscribe(),ce={next:re.next&&z(re.next,Ce),error:re.error&&z(re.error,Ce),complete:re.complete&&z(re.complete,Ce)}):ce=re}this.destination=new V(ce)}}function j(me){_.v.useDeprecatedSynchronousErrorHandling?(0,C.O)(me):(0,T.h)(me)}function J(me,re){const{onStoppedNotification:ie}=_.v;ie&&w.z.setTimeout(()=>ie(me,re))}const ee={closed:!0,next:s.Z,error:function Q(me){throw me},complete:s.Z}},727:(We,q,m)=>{"use strict";m.d(q,{Lc:()=>y,w0:()=>s,Nn:()=>h});var t=m(576);const _=(0,m(3888).d)(d=>function(C){d(this),this.message=C?`${C.length} errors occurred during unsubscription:\n${C.map((L,D)=>`${D+1}) ${L.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=C});var T=m(8737);class s{constructor(w){this.initialTeardown=w,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let w;if(!this.closed){this.closed=!0;const{_parentage:C}=this;if(C)if(this._parentage=null,Array.isArray(C))for(const z of C)z.remove(this);else C.remove(this);const{initialTeardown:L}=this;if((0,t.m)(L))try{L()}catch(z){w=z instanceof _?z.errors:[z]}const{_finalizers:D}=this;if(D){this._finalizers=null;for(const z of D)try{P(z)}catch(V){w=w??[],V instanceof _?w=[...w,...V.errors]:w.push(V)}}if(w)throw new _(w)}}add(w){var C;if(w&&w!==this)if(this.closed)P(w);else{if(w instanceof s){if(w.closed||w._hasParent(this))return;w._addParent(this)}(this._finalizers=null!==(C=this._finalizers)&&void 0!==C?C:[]).push(w)}}_hasParent(w){const{_parentage:C}=this;return C===w||Array.isArray(C)&&C.includes(w)}_addParent(w){const{_parentage:C}=this;this._parentage=Array.isArray(C)?(C.push(w),C):C?[C,w]:w}_removeParent(w){const{_parentage:C}=this;C===w?this._parentage=null:Array.isArray(C)&&(0,T.P)(C,w)}remove(w){const{_finalizers:C}=this;C&&(0,T.P)(C,w),w instanceof s&&w._removeParent(this)}}s.EMPTY=(()=>{const d=new s;return d.closed=!0,d})();const y=s.EMPTY;function h(d){return d instanceof s||d&&"closed"in d&&(0,t.m)(d.remove)&&(0,t.m)(d.add)&&(0,t.m)(d.unsubscribe)}function P(d){(0,t.m)(d)?d():d.unsubscribe()}},2416:(We,q,m)=>{"use strict";m.d(q,{v:()=>t});const t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4033:(We,q,m)=>{"use strict";m.d(q,{c:()=>y});var t=m(9751),e=m(727),_=m(8343),T=m(5403),s=m(4482);class y extends t.y{constructor(P,d){super(),this.source=P,this.subjectFactory=d,this._subject=null,this._refCount=0,this._connection=null,(0,s.A)(P)&&(this.lift=P.lift)}_subscribe(P){return this.getSubject().subscribe(P)}getSubject(){const P=this._subject;return(!P||P.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:P}=this;this._subject=this._connection=null,P?.unsubscribe()}connect(){let P=this._connection;if(!P){P=this._connection=new e.w0;const d=this.getSubject();P.add(this.source.subscribe((0,T.x)(d,void 0,()=>{this._teardown(),d.complete()},w=>{this._teardown(),d.error(w)},()=>this._teardown()))),P.closed&&(this._connection=null,P=e.w0.EMPTY)}return P}refCount(){return(0,_.x)()(this)}}},9841:(We,q,m)=>{"use strict";m.d(q,{a:()=>w});var t=m(9751),e=m(4742),_=m(457),T=m(4671),s=m(3268),y=m(3269),h=m(1810),P=m(5403),d=m(9672);function w(...D){const z=(0,y.yG)(D),V=(0,y.jO)(D),{args:Y,keys:j}=(0,e.D)(D);if(0===Y.length)return(0,_.D)([],z);const Q=new t.y(function C(D,z,V=T.y){return Y=>{L(z,()=>{const{length:j}=D,Q=new Array(j);let J=j,ee=j;for(let me=0;me{const re=(0,_.D)(D[me],z);let ie=!1;re.subscribe((0,P.x)(Y,se=>{Q[me]=se,ie||(ie=!0,ee--),ee||Y.next(V(Q.slice()))},()=>{--J||Y.complete()}))},Y)},Y)}}(Y,z,j?J=>(0,h.n)(j,J):T.y));return V?Q.pipe((0,s.Z)(V)):Q}function L(D,z,V){D?(0,d.f)(V,D,z):z()}},7272:(We,q,m)=>{"use strict";m.d(q,{z:()=>s});var t=m(8189),_=m(3269),T=m(457);function s(...y){return function e(){return(0,t.J)(1)}()((0,T.D)(y,(0,_.yG)(y)))}},9770:(We,q,m)=>{"use strict";m.d(q,{P:()=>_});var t=m(9751),e=m(8421);function _(T){return new t.y(s=>{(0,e.Xf)(T()).subscribe(s)})}},515:(We,q,m)=>{"use strict";m.d(q,{E:()=>e});const e=new(m(9751).y)(s=>s.complete())},4128:(We,q,m)=>{"use strict";m.d(q,{D:()=>P});var t=m(9751),e=m(4742),_=m(8421),T=m(3269),s=m(5403),y=m(3268),h=m(1810);function P(...d){const w=(0,T.jO)(d),{args:C,keys:L}=(0,e.D)(d),D=new t.y(z=>{const{length:V}=C;if(!V)return void z.complete();const Y=new Array(V);let j=V,Q=V;for(let J=0;J{ee||(ee=!0,Q--),Y[J]=me},()=>j--,void 0,()=>{(!j||!ee)&&(Q||z.next(L?(0,h.n)(L,Y):Y),z.complete())}))}});return w?D.pipe((0,y.Z)(w)):D}},457:(We,q,m)=>{"use strict";m.d(q,{D:()=>ie});var t=m(8421),e=m(5363),_=m(4482);function T(se,ce=0){return(0,_.e)((Ce,M)=>{M.add(se.schedule(()=>Ce.subscribe(M),ce))})}var h=m(9751),d=m(2202),w=m(576),C=m(9672);function D(se,ce){if(!se)throw new Error("Iterable cannot be null");return new h.y(Ce=>{(0,C.f)(Ce,ce,()=>{const M=se[Symbol.asyncIterator]();(0,C.f)(Ce,ce,()=>{M.next().then(i=>{i.done?Ce.complete():Ce.next(i.value)})},0,!0)})})}var z=m(3670),V=m(8239),Y=m(1144),j=m(6495),Q=m(2206),J=m(4532),ee=m(3260);function ie(se,ce){return ce?function re(se,ce){if(null!=se){if((0,z.c)(se))return function s(se,ce){return(0,t.Xf)(se).pipe(T(ce),(0,e.Q)(ce))}(se,ce);if((0,Y.z)(se))return function P(se,ce){return new h.y(Ce=>{let M=0;return ce.schedule(function(){M===se.length?Ce.complete():(Ce.next(se[M++]),Ce.closed||this.schedule())})})}(se,ce);if((0,V.t)(se))return function y(se,ce){return(0,t.Xf)(se).pipe(T(ce),(0,e.Q)(ce))}(se,ce);if((0,Q.D)(se))return D(se,ce);if((0,j.T)(se))return function L(se,ce){return new h.y(Ce=>{let M;return(0,C.f)(Ce,ce,()=>{M=se[d.h](),(0,C.f)(Ce,ce,()=>{let i,a;try{({value:i,done:a}=M.next())}catch(f){return void Ce.error(f)}a?Ce.complete():Ce.next(i)},0,!0)}),()=>(0,w.m)(M?.return)&&M.return()})}(se,ce);if((0,ee.L)(se))return function me(se,ce){return D((0,ee.Q)(se),ce)}(se,ce)}throw(0,J.z)(se)}(se,ce):(0,t.Xf)(se)}},4968:(We,q,m)=>{"use strict";m.d(q,{R:()=>w});var t=m(8421),e=m(9751),_=m(5577),T=m(1144),s=m(576),y=m(3268);const h=["addListener","removeListener"],P=["addEventListener","removeEventListener"],d=["on","off"];function w(V,Y,j,Q){if((0,s.m)(j)&&(Q=j,j=void 0),Q)return w(V,Y,j).pipe((0,y.Z)(Q));const[J,ee]=function z(V){return(0,s.m)(V.addEventListener)&&(0,s.m)(V.removeEventListener)}(V)?P.map(me=>re=>V[me](Y,re,j)):function L(V){return(0,s.m)(V.addListener)&&(0,s.m)(V.removeListener)}(V)?h.map(C(V,Y)):function D(V){return(0,s.m)(V.on)&&(0,s.m)(V.off)}(V)?d.map(C(V,Y)):[];if(!J&&(0,T.z)(V))return(0,_.z)(me=>w(me,Y,j))((0,t.Xf)(V));if(!J)throw new TypeError("Invalid event target");return new e.y(me=>{const re=(...ie)=>me.next(1ee(re)})}function C(V,Y){return j=>Q=>V[j](Y,Q)}},8421:(We,q,m)=>{"use strict";m.d(q,{Xf:()=>D});var t=m(7582),e=m(1144),_=m(8239),T=m(9751),s=m(3670),y=m(2206),h=m(4532),P=m(6495),d=m(3260),w=m(576),C=m(7849),L=m(8822);function D(me){if(me instanceof T.y)return me;if(null!=me){if((0,s.c)(me))return function z(me){return new T.y(re=>{const ie=me[L.L]();if((0,w.m)(ie.subscribe))return ie.subscribe(re);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(me);if((0,e.z)(me))return function V(me){return new T.y(re=>{for(let ie=0;ie{me.then(ie=>{re.closed||(re.next(ie),re.complete())},ie=>re.error(ie)).then(null,C.h)})}(me);if((0,y.D)(me))return Q(me);if((0,P.T)(me))return function j(me){return new T.y(re=>{for(const ie of me)if(re.next(ie),re.closed)return;re.complete()})}(me);if((0,d.L)(me))return function J(me){return Q((0,d.Q)(me))}(me)}throw(0,h.z)(me)}function Q(me){return new T.y(re=>{(function ee(me,re){var ie,se,ce,Ce;return(0,t.mG)(this,void 0,void 0,function*(){try{for(ie=(0,t.KL)(me);!(se=yield ie.next()).done;)if(re.next(se.value),re.closed)return}catch(M){ce={error:M}}finally{try{se&&!se.done&&(Ce=ie.return)&&(yield Ce.call(ie))}finally{if(ce)throw ce.error}}re.complete()})})(me,re).catch(ie=>re.error(ie))})}},6451:(We,q,m)=>{"use strict";m.d(q,{T:()=>y});var t=m(8189),e=m(8421),_=m(515),T=m(3269),s=m(457);function y(...h){const P=(0,T.yG)(h),d=(0,T._6)(h,1/0),w=h;return w.length?1===w.length?(0,e.Xf)(w[0]):(0,t.J)(d)((0,s.D)(w,P)):_.E}},9646:(We,q,m)=>{"use strict";m.d(q,{of:()=>_});var t=m(3269),e=m(457);function _(...T){const s=(0,t.yG)(T);return(0,e.D)(T,s)}},2843:(We,q,m)=>{"use strict";m.d(q,{_:()=>_});var t=m(9751),e=m(576);function _(T,s){const y=(0,e.m)(T)?T:()=>T,h=P=>P.error(y());return new t.y(s?P=>s.schedule(h,0,P):h)}},2805:(We,q,m)=>{"use strict";m.d(q,{H:()=>s});var t=m(9751),e=m(4986),_=m(3532),T=m(1165);function s(y=0,h,P=e.P){let d=-1;return null!=h&&((0,_.K)(h)?P=h:d=h),new t.y(w=>{let C=(0,T.q)(y)?+y-P.now():y;C<0&&(C=0);let L=0;return P.schedule(function(){w.closed||(w.next(L++),0<=d?this.schedule(void 0,d):w.complete())},C)})}},5403:(We,q,m)=>{"use strict";m.d(q,{Q:()=>_,x:()=>e});var t=m(930);function e(T,s,y,h,P){return new _(T,s,y,h,P)}class _ extends t.Lv{constructor(s,y,h,P,d,w){super(s),this.onFinalize=d,this.shouldUnsubscribe=w,this._next=y?function(C){try{y(C)}catch(L){s.error(L)}}:super._next,this._error=P?function(C){try{P(C)}catch(L){s.error(L)}finally{this.unsubscribe()}}:super._error,this._complete=h?function(){try{h()}catch(C){s.error(C)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var s;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:y}=this;super.unsubscribe(),!y&&(null===(s=this.onFinalize)||void 0===s||s.call(this))}}}},3601:(We,q,m)=>{"use strict";m.d(q,{e:()=>h});var t=m(4986),e=m(4482),_=m(8421),T=m(5403),y=m(2805);function h(P,d=t.z){return function s(P){return(0,e.e)((d,w)=>{let C=!1,L=null,D=null,z=!1;const V=()=>{if(D?.unsubscribe(),D=null,C){C=!1;const j=L;L=null,w.next(j)}z&&w.complete()},Y=()=>{D=null,z&&w.complete()};d.subscribe((0,T.x)(w,j=>{C=!0,L=j,D||(0,_.Xf)(P(j)).subscribe(D=(0,T.x)(w,V,Y))},()=>{z=!0,(!C||!D||D.closed)&&w.complete()}))})}(()=>(0,y.H)(P,d))}},262:(We,q,m)=>{"use strict";m.d(q,{K:()=>T});var t=m(8421),e=m(5403),_=m(4482);function T(s){return(0,_.e)((y,h)=>{let w,P=null,d=!1;P=y.subscribe((0,e.x)(h,void 0,void 0,C=>{w=(0,t.Xf)(s(C,T(s)(y))),P?(P.unsubscribe(),P=null,w.subscribe(h)):d=!0})),d&&(P.unsubscribe(),P=null,w.subscribe(h))})}},4351:(We,q,m)=>{"use strict";m.d(q,{b:()=>_});var t=m(5577),e=m(576);function _(T,s){return(0,e.m)(s)?(0,t.z)(T,s,1):(0,t.z)(T,1)}},8372:(We,q,m)=>{"use strict";m.d(q,{b:()=>T});var t=m(4986),e=m(4482),_=m(5403);function T(s,y=t.z){return(0,e.e)((h,P)=>{let d=null,w=null,C=null;const L=()=>{if(d){d.unsubscribe(),d=null;const z=w;w=null,P.next(z)}};function D(){const z=C+s,V=y.now();if(V{w=z,C=y.now(),d||(d=y.schedule(D,s),P.add(d))},()=>{L(),P.complete()},void 0,()=>{w=d=null}))})}},6590:(We,q,m)=>{"use strict";m.d(q,{d:()=>_});var t=m(4482),e=m(5403);function _(T){return(0,t.e)((s,y)=>{let h=!1;s.subscribe((0,e.x)(y,P=>{h=!0,y.next(P)},()=>{h||y.next(T),y.complete()}))})}},4086:(We,q,m)=>{"use strict";m.d(q,{g:()=>d});var t=m(4986),e=m(7272),_=m(5698),T=m(8502),s=m(9718),y=m(5577);function h(w,C){return C?L=>(0,e.z)(C.pipe((0,_.q)(1),(0,T.l)()),L.pipe(h(w))):(0,y.z)((L,D)=>w(L,D).pipe((0,_.q)(1),(0,s.h)(L)))}var P=m(2805);function d(w,C=t.z){const L=(0,P.H)(w,C);return h(()=>L)}},1884:(We,q,m)=>{"use strict";m.d(q,{x:()=>T});var t=m(4671),e=m(4482),_=m(5403);function T(y,h=t.y){return y=y??s,(0,e.e)((P,d)=>{let w,C=!0;P.subscribe((0,_.x)(d,L=>{const D=h(L);(C||!y(w,D))&&(C=!1,w=D,d.next(L))}))})}function s(y,h){return y===h}},9300:(We,q,m)=>{"use strict";m.d(q,{h:()=>_});var t=m(4482),e=m(5403);function _(T,s){return(0,t.e)((y,h)=>{let P=0;y.subscribe((0,e.x)(h,d=>T.call(s,d,P++)&&h.next(d)))})}},8746:(We,q,m)=>{"use strict";m.d(q,{x:()=>e});var t=m(4482);function e(_){return(0,t.e)((T,s)=>{try{T.subscribe(s)}finally{s.add(_)}})}},590:(We,q,m)=>{"use strict";m.d(q,{P:()=>h});var t=m(6805),e=m(9300),_=m(5698),T=m(6590),s=m(8068),y=m(4671);function h(P,d){const w=arguments.length>=2;return C=>C.pipe(P?(0,e.h)((L,D)=>P(L,D,C)):y.y,(0,_.q)(1),w?(0,T.d)(d):(0,s.T)(()=>new t.K))}},8502:(We,q,m)=>{"use strict";m.d(q,{l:()=>T});var t=m(4482),e=m(5403),_=m(5032);function T(){return(0,t.e)((s,y)=>{s.subscribe((0,e.x)(y,_.Z))})}},4004:(We,q,m)=>{"use strict";m.d(q,{U:()=>_});var t=m(4482),e=m(5403);function _(T,s){return(0,t.e)((y,h)=>{let P=0;y.subscribe((0,e.x)(h,d=>{h.next(T.call(s,d,P++))}))})}},9718:(We,q,m)=>{"use strict";m.d(q,{h:()=>e});var t=m(4004);function e(_){return(0,t.U)(()=>_)}},8189:(We,q,m)=>{"use strict";m.d(q,{J:()=>_});var t=m(5577),e=m(4671);function _(T=1/0){return(0,t.z)(e.y,T)}},5577:(We,q,m)=>{"use strict";m.d(q,{z:()=>P});var t=m(4004),e=m(8421),_=m(4482),T=m(9672),s=m(5403),h=m(576);function P(d,w,C=1/0){return(0,h.m)(w)?P((L,D)=>(0,t.U)((z,V)=>w(L,z,D,V))((0,e.Xf)(d(L,D))),C):("number"==typeof w&&(C=w),(0,_.e)((L,D)=>function y(d,w,C,L,D,z,V,Y){const j=[];let Q=0,J=0,ee=!1;const me=()=>{ee&&!j.length&&!Q&&w.complete()},re=se=>Q{z&&w.next(se),Q++;let ce=!1;(0,e.Xf)(C(se,J++)).subscribe((0,s.x)(w,Ce=>{D?.(Ce),z?re(Ce):w.next(Ce)},()=>{ce=!0},void 0,()=>{if(ce)try{for(Q--;j.length&&Qie(Ce)):ie(Ce)}me()}catch(Ce){w.error(Ce)}}))};return d.subscribe((0,s.x)(w,re,()=>{ee=!0,me()})),()=>{Y?.()}}(L,D,d,C)))}},5363:(We,q,m)=>{"use strict";m.d(q,{Q:()=>T});var t=m(9672),e=m(4482),_=m(5403);function T(s,y=0){return(0,e.e)((h,P)=>{h.subscribe((0,_.x)(P,d=>(0,t.f)(P,s,()=>P.next(d),y),()=>(0,t.f)(P,s,()=>P.complete(),y),d=>(0,t.f)(P,s,()=>P.error(d),y)))})}},8343:(We,q,m)=>{"use strict";m.d(q,{x:()=>_});var t=m(4482),e=m(5403);function _(){return(0,t.e)((T,s)=>{let y=null;T._refCount++;const h=(0,e.x)(s,void 0,void 0,void 0,()=>{if(!T||T._refCount<=0||0<--T._refCount)return void(y=null);const P=T._connection,d=y;y=null,P&&(!d||P===d)&&P.unsubscribe(),s.unsubscribe()});T.subscribe(h),h.closed||(y=T.connect())})}},5026:(We,q,m)=>{"use strict";m.d(q,{R:()=>T});var t=m(4482),e=m(5403);function T(s,y){return(0,t.e)(function _(s,y,h,P,d){return(w,C)=>{let L=h,D=y,z=0;w.subscribe((0,e.x)(C,V=>{const Y=z++;D=L?s(D,V,Y):(L=!0,V),P&&C.next(D)},d&&(()=>{L&&C.next(D),C.complete()})))}}(s,y,arguments.length>=2,!0))}},3099:(We,q,m)=>{"use strict";m.d(q,{B:()=>s});var t=m(8421),e=m(7579),_=m(930),T=m(4482);function s(h={}){const{connector:P=(()=>new e.x),resetOnError:d=!0,resetOnComplete:w=!0,resetOnRefCountZero:C=!0}=h;return L=>{let D,z,V,Y=0,j=!1,Q=!1;const J=()=>{z?.unsubscribe(),z=void 0},ee=()=>{J(),D=V=void 0,j=Q=!1},me=()=>{const re=D;ee(),re?.unsubscribe()};return(0,T.e)((re,ie)=>{Y++,!Q&&!j&&J();const se=V=V??P();ie.add(()=>{Y--,0===Y&&!Q&&!j&&(z=y(me,C))}),se.subscribe(ie),!D&&Y>0&&(D=new _.Hp({next:ce=>se.next(ce),error:ce=>{Q=!0,J(),z=y(ee,d,ce),se.error(ce)},complete:()=>{j=!0,J(),z=y(ee,w),se.complete()}}),(0,t.Xf)(re).subscribe(D))})(L)}}function y(h,P,...d){if(!0===P)return void h();if(!1===P)return;const w=new _.Hp({next:()=>{w.unsubscribe(),h()}});return P(...d).subscribe(w)}},5684:(We,q,m)=>{"use strict";m.d(q,{T:()=>e});var t=m(9300);function e(_){return(0,t.h)((T,s)=>_<=s)}},8675:(We,q,m)=>{"use strict";m.d(q,{O:()=>T});var t=m(7272),e=m(3269),_=m(4482);function T(...s){const y=(0,e.yG)(s);return(0,_.e)((h,P)=>{(y?(0,t.z)(s,h,y):(0,t.z)(s,h)).subscribe(P)})}},3900:(We,q,m)=>{"use strict";m.d(q,{w:()=>T});var t=m(8421),e=m(4482),_=m(5403);function T(s,y){return(0,e.e)((h,P)=>{let d=null,w=0,C=!1;const L=()=>C&&!d&&P.complete();h.subscribe((0,_.x)(P,D=>{d?.unsubscribe();let z=0;const V=w++;(0,t.Xf)(s(D,V)).subscribe(d=(0,_.x)(P,Y=>P.next(y?y(D,Y,V,z++):Y),()=>{d=null,L()}))},()=>{C=!0,L()}))})}},5698:(We,q,m)=>{"use strict";m.d(q,{q:()=>T});var t=m(515),e=m(4482),_=m(5403);function T(s){return s<=0?()=>t.E:(0,e.e)((y,h)=>{let P=0;y.subscribe((0,_.x)(h,d=>{++P<=s&&(h.next(d),s<=P&&h.complete())}))})}},2722:(We,q,m)=>{"use strict";m.d(q,{R:()=>s});var t=m(4482),e=m(5403),_=m(8421),T=m(5032);function s(y){return(0,t.e)((h,P)=>{(0,_.Xf)(y).subscribe((0,e.x)(P,()=>P.complete(),T.Z)),!P.closed&&h.subscribe(P)})}},2529:(We,q,m)=>{"use strict";m.d(q,{o:()=>_});var t=m(4482),e=m(5403);function _(T,s=!1){return(0,t.e)((y,h)=>{let P=0;y.subscribe((0,e.x)(h,d=>{const w=T(d,P++);(w||s)&&h.next(d),!w&&h.complete()}))})}},8505:(We,q,m)=>{"use strict";m.d(q,{b:()=>s});var t=m(576),e=m(4482),_=m(5403),T=m(4671);function s(y,h,P){const d=(0,t.m)(y)||h||P?{next:y,error:h,complete:P}:y;return d?(0,e.e)((w,C)=>{var L;null===(L=d.subscribe)||void 0===L||L.call(d);let D=!0;w.subscribe((0,_.x)(C,z=>{var V;null===(V=d.next)||void 0===V||V.call(d,z),C.next(z)},()=>{var z;D=!1,null===(z=d.complete)||void 0===z||z.call(d),C.complete()},z=>{var V;D=!1,null===(V=d.error)||void 0===V||V.call(d,z),C.error(z)},()=>{var z,V;D&&(null===(z=d.unsubscribe)||void 0===z||z.call(d)),null===(V=d.finalize)||void 0===V||V.call(d)}))}):T.y}},8068:(We,q,m)=>{"use strict";m.d(q,{T:()=>T});var t=m(6805),e=m(4482),_=m(5403);function T(y=s){return(0,e.e)((h,P)=>{let d=!1;h.subscribe((0,_.x)(P,w=>{d=!0,P.next(w)},()=>d?P.complete():P.error(y())))})}function s(){return new t.K}},7414:(We,q,m)=>{"use strict";m.d(q,{V:()=>d});var t=m(4986),e=m(1165),_=m(4482),T=m(8421),s=m(3888),y=m(5403),h=m(9672);const P=(0,s.d)(C=>function(D=null){C(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=D});function d(C,L){const{first:D,each:z,with:V=w,scheduler:Y=L??t.z,meta:j=null}=(0,e.q)(C)?{first:C}:"number"==typeof C?{each:C}:C;if(null==D&&null==z)throw new TypeError("No timeout provided.");return(0,_.e)((Q,J)=>{let ee,me,re=null,ie=0;const se=ce=>{me=(0,h.f)(J,Y,()=>{try{ee.unsubscribe(),(0,T.Xf)(V({meta:j,lastValue:re,seen:ie})).subscribe(J)}catch(Ce){J.error(Ce)}},ce)};ee=Q.subscribe((0,y.x)(J,ce=>{me?.unsubscribe(),ie++,J.next(re=ce),z>0&&se(z)},void 0,void 0,()=>{me?.closed||me?.unsubscribe(),re=null})),!ie&&se(null!=D?"number"==typeof D?D:+D-Y.now():z)})}function w(C){throw new P(C)}},1365:(We,q,m)=>{"use strict";m.d(q,{M:()=>h});var t=m(4482),e=m(5403),_=m(8421),T=m(4671),s=m(5032),y=m(3269);function h(...P){const d=(0,y.jO)(P);return(0,t.e)((w,C)=>{const L=P.length,D=new Array(L);let z=P.map(()=>!1),V=!1;for(let Y=0;Y{D[Y]=j,!V&&!z[Y]&&(z[Y]=!0,(V=z.every(T.y))&&(z=null))},s.Z));w.subscribe((0,e.x)(C,Y=>{if(V){const j=[Y,...D];C.next(d?d(...j):j)}}))})}},4408:(We,q,m)=>{"use strict";m.d(q,{o:()=>s});var t=m(727);class e extends t.w0{constructor(h,P){super()}schedule(h,P=0){return this}}const _={setInterval(y,h,...P){const{delegate:d}=_;return d?.setInterval?d.setInterval(y,h,...P):setInterval(y,h,...P)},clearInterval(y){const{delegate:h}=_;return(h?.clearInterval||clearInterval)(y)},delegate:void 0};var T=m(8737);class s extends e{constructor(h,P){super(h,P),this.scheduler=h,this.work=P,this.pending=!1}schedule(h,P=0){var d;if(this.closed)return this;this.state=h;const w=this.id,C=this.scheduler;return null!=w&&(this.id=this.recycleAsyncId(C,w,P)),this.pending=!0,this.delay=P,this.id=null!==(d=this.id)&&void 0!==d?d:this.requestAsyncId(C,this.id,P),this}requestAsyncId(h,P,d=0){return _.setInterval(h.flush.bind(h,this),d)}recycleAsyncId(h,P,d=0){if(null!=d&&this.delay===d&&!1===this.pending)return P;null!=P&&_.clearInterval(P)}execute(h,P){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const d=this._execute(h,P);if(d)return d;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(h,P){let w,d=!1;try{this.work(h)}catch(C){d=!0,w=C||new Error("Scheduled action threw falsy error")}if(d)return this.unsubscribe(),w}unsubscribe(){if(!this.closed){const{id:h,scheduler:P}=this,{actions:d}=P;this.work=this.state=this.scheduler=null,this.pending=!1,(0,T.P)(d,this),null!=h&&(this.id=this.recycleAsyncId(P,h,null)),this.delay=null,super.unsubscribe()}}}},7565:(We,q,m)=>{"use strict";m.d(q,{v:()=>_});var t=m(6063);class e{constructor(s,y=e.now){this.schedulerActionCtor=s,this.now=y}schedule(s,y=0,h){return new this.schedulerActionCtor(this,s).schedule(h,y)}}e.now=t.l.now;class _ extends e{constructor(s,y=e.now){super(s,y),this.actions=[],this._active=!1}flush(s){const{actions:y}=this;if(this._active)return void y.push(s);let h;this._active=!0;do{if(h=s.execute(s.state,s.delay))break}while(s=y.shift());if(this._active=!1,h){for(;s=y.shift();)s.unsubscribe();throw h}}}},3101:(We,q,m)=>{"use strict";m.d(q,{E:()=>z});var t=m(4408);let _,e=1;const T={};function s(Y){return Y in T&&(delete T[Y],!0)}const y={setImmediate(Y){const j=e++;return T[j]=!0,_||(_=Promise.resolve()),_.then(()=>s(j)&&Y()),j},clearImmediate(Y){s(Y)}},{setImmediate:P,clearImmediate:d}=y,w={setImmediate(...Y){const{delegate:j}=w;return(j?.setImmediate||P)(...Y)},clearImmediate(Y){const{delegate:j}=w;return(j?.clearImmediate||d)(Y)},delegate:void 0};var L=m(7565);const z=new class D extends L.v{flush(j){this._active=!0;const Q=this._scheduled;this._scheduled=void 0;const{actions:J}=this;let ee;j=j||J.shift();do{if(ee=j.execute(j.state,j.delay))break}while((j=J[0])&&j.id===Q&&J.shift());if(this._active=!1,ee){for(;(j=J[0])&&j.id===Q&&J.shift();)j.unsubscribe();throw ee}}}(class C extends t.o{constructor(j,Q){super(j,Q),this.scheduler=j,this.work=Q}requestAsyncId(j,Q,J=0){return null!==J&&J>0?super.requestAsyncId(j,Q,J):(j.actions.push(this),j._scheduled||(j._scheduled=w.setImmediate(j.flush.bind(j,void 0))))}recycleAsyncId(j,Q,J=0){var ee;if(null!=J?J>0:this.delay>0)return super.recycleAsyncId(j,Q,J);const{actions:me}=j;null!=Q&&(null===(ee=me[me.length-1])||void 0===ee?void 0:ee.id)!==Q&&(w.clearImmediate(Q),j._scheduled=void 0)}})},4986:(We,q,m)=>{"use strict";m.d(q,{P:()=>T,z:()=>_});var t=m(4408);const _=new(m(7565).v)(t.o),T=_},6063:(We,q,m)=>{"use strict";m.d(q,{l:()=>t});const t={now:()=>(t.delegate||Date).now(),delegate:void 0}},233:(We,q,m)=>{"use strict";m.d(q,{N:()=>s});var t=m(4408),_=m(7565);const s=new class T extends _.v{}(class e extends t.o{constructor(P,d){super(P,d),this.scheduler=P,this.work=d}schedule(P,d=0){return d>0?super.schedule(P,d):(this.delay=d,this.state=P,this.scheduler.flush(this),this)}execute(P,d){return d>0||this.closed?super.execute(P,d):this._execute(P,d)}requestAsyncId(P,d,w=0){return null!=w&&w>0||null==w&&this.delay>0?super.requestAsyncId(P,d,w):(P.flush(this),0)}})},3410:(We,q,m)=>{"use strict";m.d(q,{z:()=>t});const t={setTimeout(e,_,...T){const{delegate:s}=t;return s?.setTimeout?s.setTimeout(e,_,...T):setTimeout(e,_,...T)},clearTimeout(e){const{delegate:_}=t;return(_?.clearTimeout||clearTimeout)(e)},delegate:void 0}},2202:(We,q,m)=>{"use strict";m.d(q,{h:()=>e});const e=function t(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(We,q,m)=>{"use strict";m.d(q,{L:()=>t});const t="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(We,q,m)=>{"use strict";m.d(q,{K:()=>e});const e=(0,m(3888).d)(_=>function(){_(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(We,q,m)=>{"use strict";m.d(q,{_6:()=>y,jO:()=>T,yG:()=>s});var t=m(576),e=m(3532);function _(h){return h[h.length-1]}function T(h){return(0,t.m)(_(h))?h.pop():void 0}function s(h){return(0,e.K)(_(h))?h.pop():void 0}function y(h,P){return"number"==typeof _(h)?h.pop():P}},4742:(We,q,m)=>{"use strict";m.d(q,{D:()=>s});const{isArray:t}=Array,{getPrototypeOf:e,prototype:_,keys:T}=Object;function s(h){if(1===h.length){const P=h[0];if(t(P))return{args:P,keys:null};if(function y(h){return h&&"object"==typeof h&&e(h)===_}(P)){const d=T(P);return{args:d.map(w=>P[w]),keys:d}}}return{args:h,keys:null}}},8737:(We,q,m)=>{"use strict";function t(e,_){if(e){const T=e.indexOf(_);0<=T&&e.splice(T,1)}}m.d(q,{P:()=>t})},3888:(We,q,m)=>{"use strict";function t(e){const T=e(s=>{Error.call(s),s.stack=(new Error).stack});return T.prototype=Object.create(Error.prototype),T.prototype.constructor=T,T}m.d(q,{d:()=>t})},1810:(We,q,m)=>{"use strict";function t(e,_){return e.reduce((T,s,y)=>(T[s]=_[y],T),{})}m.d(q,{n:()=>t})},2806:(We,q,m)=>{"use strict";m.d(q,{O:()=>T,x:()=>_});var t=m(2416);let e=null;function _(s){if(t.v.useDeprecatedSynchronousErrorHandling){const y=!e;if(y&&(e={errorThrown:!1,error:null}),s(),y){const{errorThrown:h,error:P}=e;if(e=null,h)throw P}}else s()}function T(s){t.v.useDeprecatedSynchronousErrorHandling&&e&&(e.errorThrown=!0,e.error=s)}},9672:(We,q,m)=>{"use strict";function t(e,_,T,s=0,y=!1){const h=_.schedule(function(){T(),y?e.add(this.schedule(null,s)):this.unsubscribe()},s);if(e.add(h),!y)return h}m.d(q,{f:()=>t})},4671:(We,q,m)=>{"use strict";function t(e){return e}m.d(q,{y:()=>t})},1144:(We,q,m)=>{"use strict";m.d(q,{z:()=>t});const t=e=>e&&"number"==typeof e.length&&"function"!=typeof e},2206:(We,q,m)=>{"use strict";m.d(q,{D:()=>e});var t=m(576);function e(_){return Symbol.asyncIterator&&(0,t.m)(_?.[Symbol.asyncIterator])}},1165:(We,q,m)=>{"use strict";function t(e){return e instanceof Date&&!isNaN(e)}m.d(q,{q:()=>t})},576:(We,q,m)=>{"use strict";function t(e){return"function"==typeof e}m.d(q,{m:()=>t})},3670:(We,q,m)=>{"use strict";m.d(q,{c:()=>_});var t=m(8822),e=m(576);function _(T){return(0,e.m)(T[t.L])}},6495:(We,q,m)=>{"use strict";m.d(q,{T:()=>_});var t=m(2202),e=m(576);function _(T){return(0,e.m)(T?.[t.h])}},5191:(We,q,m)=>{"use strict";m.d(q,{b:()=>_});var t=m(9751),e=m(576);function _(T){return!!T&&(T instanceof t.y||(0,e.m)(T.lift)&&(0,e.m)(T.subscribe))}},8239:(We,q,m)=>{"use strict";m.d(q,{t:()=>e});var t=m(576);function e(_){return(0,t.m)(_?.then)}},3260:(We,q,m)=>{"use strict";m.d(q,{L:()=>T,Q:()=>_});var t=m(7582),e=m(576);function _(s){return(0,t.FC)(this,arguments,function*(){const h=s.getReader();try{for(;;){const{value:P,done:d}=yield(0,t.qq)(h.read());if(d)return yield(0,t.qq)(void 0);yield yield(0,t.qq)(P)}}finally{h.releaseLock()}})}function T(s){return(0,e.m)(s?.getReader)}},3532:(We,q,m)=>{"use strict";m.d(q,{K:()=>e});var t=m(576);function e(_){return _&&(0,t.m)(_.schedule)}},4482:(We,q,m)=>{"use strict";m.d(q,{A:()=>e,e:()=>_});var t=m(576);function e(T){return(0,t.m)(T?.lift)}function _(T){return s=>{if(e(s))return s.lift(function(y){try{return T(y,this)}catch(h){this.error(h)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(We,q,m)=>{"use strict";m.d(q,{Z:()=>T});var t=m(4004);const{isArray:e}=Array;function T(s){return(0,t.U)(y=>function _(s,y){return e(y)?s(...y):s(y)}(s,y))}},5032:(We,q,m)=>{"use strict";function t(){}m.d(q,{Z:()=>t})},9635:(We,q,m)=>{"use strict";m.d(q,{U:()=>_,z:()=>e});var t=m(4671);function e(...T){return _(T)}function _(T){return 0===T.length?t.y:1===T.length?T[0]:function(y){return T.reduce((h,P)=>P(h),y)}}},7849:(We,q,m)=>{"use strict";m.d(q,{h:()=>_});var t=m(2416),e=m(3410);function _(T){e.z.setTimeout(()=>{const{onUnhandledError:s}=t.v;if(!s)throw T;s(T)})}},4532:(We,q,m)=>{"use strict";function t(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}m.d(q,{z:()=>t})},3502:(We,q,m)=>{var t=m(3172),e=t.Buffer;function _(s,y){for(var h in s)y[h]=s[h]}function T(s,y,h){return e(s,y,h)}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?We.exports=t:(_(t,q),q.Buffer=T),T.prototype=Object.create(e.prototype),_(e,T),T.from=function(s,y,h){if("number"==typeof s)throw new TypeError("Argument must not be a number");return e(s,y,h)},T.alloc=function(s,y,h){if("number"!=typeof s)throw new TypeError("Argument must be a number");var P=e(s);return void 0!==y?"string"==typeof h?P.fill(y,h):P.fill(y):P.fill(0),P},T.allocUnsafe=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return e(s)},T.allocUnsafeSlow=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return t.SlowBuffer(s)}},2038:(We,q,m)=>{"use strict";var T,t=m(3172),e=t.Buffer,_={};for(T in t)t.hasOwnProperty(T)&&("SlowBuffer"===T||"Buffer"===T||(_[T]=t[T]));var s=_.Buffer={};for(T in e)e.hasOwnProperty(T)&&("allocUnsafe"===T||"allocUnsafeSlow"===T||(s[T]=e[T]));if(_.Buffer.prototype=e.prototype,(!s.from||s.from===Uint8Array.from)&&(s.from=function(y,h,P){if("number"==typeof y)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof y);if(y&&typeof y.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof y);return e(y,h,P)}),s.alloc||(s.alloc=function(y,h,P){if("number"!=typeof y)throw new TypeError('The "size" argument must be of type number. Received type '+typeof y);if(y<0||y>=2*(1<<30))throw new RangeError('The value "'+y+'" is invalid for option "size"');var d=e(y);return h&&0!==h.length?"string"==typeof P?d.fill(h,P):d.fill(h):d.fill(0),d}),!_.kStringMaxLength)try{_.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}_.constants||(_.constants={MAX_LENGTH:_.kMaxLength},_.kStringMaxLength&&(_.constants.MAX_STRING_LENGTH=_.kStringMaxLength)),We.exports=_},6692:(We,q,m)=>{var t=m(3502).Buffer;function e(_,T){this._block=t.alloc(_),this._finalSize=T,this._blockSize=_,this._len=0}e.prototype.update=function(_,T){"string"==typeof _&&(_=t.from(_,T=T||"utf8"));for(var s=this._block,y=this._blockSize,h=_.length,P=this._len,d=0;d=this._finalSize&&(this._update(this._block),this._block.fill(0));var s=8*this._len;if(s<=4294967295)this._block.writeUInt32BE(s,this._blockSize-4);else{var y=(4294967295&s)>>>0;this._block.writeUInt32BE((s-y)/4294967296,this._blockSize-8),this._block.writeUInt32BE(y,this._blockSize-4)}this._update(this._block);var P=this._hash();return _?P.toString(_):P},e.prototype._update=function(){throw new Error("_update must be implemented by subclass")},We.exports=e},5244:(We,q,m)=>{var t=We.exports=function(_){_=_.toLowerCase();var T=t[_];if(!T)throw new Error(_+" is not supported (we accept pull requests)");return new T};t.sha=m(8932),t.sha1=m(7736),t.sha224=m(5044),t.sha256=m(5014),t.sha384=m(6540),t.sha512=m(117)},8932:(We,q,m)=>{var t=m(3894),e=m(6692),_=m(3502).Buffer,T=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function y(){this.init(),this._w=s,e.call(this,64,56)}function h(w){return w<<5|w>>>27}function P(w){return w<<30|w>>>2}function d(w,C,L,D){return 0===w?C&L|~C&D:2===w?C&L|C&D|L&D:C^L^D}t(y,e),y.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},y.prototype._update=function(w){for(var C=this._w,L=0|this._a,D=0|this._b,z=0|this._c,V=0|this._d,Y=0|this._e,j=0;j<16;++j)C[j]=w.readInt32BE(4*j);for(;j<80;++j)C[j]=C[j-3]^C[j-8]^C[j-14]^C[j-16];for(var Q=0;Q<80;++Q){var J=~~(Q/20),ee=h(L)+d(J,D,z,V)+Y+C[Q]+T[J]|0;Y=V,V=z,z=P(D),D=L,L=ee}this._a=L+this._a|0,this._b=D+this._b|0,this._c=z+this._c|0,this._d=V+this._d|0,this._e=Y+this._e|0},y.prototype._hash=function(){var w=_.allocUnsafe(20);return w.writeInt32BE(0|this._a,0),w.writeInt32BE(0|this._b,4),w.writeInt32BE(0|this._c,8),w.writeInt32BE(0|this._d,12),w.writeInt32BE(0|this._e,16),w},We.exports=y},7736:(We,q,m)=>{var t=m(3894),e=m(6692),_=m(3502).Buffer,T=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function y(){this.init(),this._w=s,e.call(this,64,56)}function h(C){return C<<1|C>>>31}function P(C){return C<<5|C>>>27}function d(C){return C<<30|C>>>2}function w(C,L,D,z){return 0===C?L&D|~L&z:2===C?L&D|L&z|D&z:L^D^z}t(y,e),y.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},y.prototype._update=function(C){for(var L=this._w,D=0|this._a,z=0|this._b,V=0|this._c,Y=0|this._d,j=0|this._e,Q=0;Q<16;++Q)L[Q]=C.readInt32BE(4*Q);for(;Q<80;++Q)L[Q]=h(L[Q-3]^L[Q-8]^L[Q-14]^L[Q-16]);for(var J=0;J<80;++J){var ee=~~(J/20),me=P(D)+w(ee,z,V,Y)+j+L[J]+T[ee]|0;j=Y,Y=V,V=d(z),z=D,D=me}this._a=D+this._a|0,this._b=z+this._b|0,this._c=V+this._c|0,this._d=Y+this._d|0,this._e=j+this._e|0},y.prototype._hash=function(){var C=_.allocUnsafe(20);return C.writeInt32BE(0|this._a,0),C.writeInt32BE(0|this._b,4),C.writeInt32BE(0|this._c,8),C.writeInt32BE(0|this._d,12),C.writeInt32BE(0|this._e,16),C},We.exports=y},5044:(We,q,m)=>{var t=m(3894),e=m(5014),_=m(6692),T=m(3502).Buffer,s=new Array(64);function y(){this.init(),this._w=s,_.call(this,64,56)}t(y,e),y.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},y.prototype._hash=function(){var h=T.allocUnsafe(28);return h.writeInt32BE(this._a,0),h.writeInt32BE(this._b,4),h.writeInt32BE(this._c,8),h.writeInt32BE(this._d,12),h.writeInt32BE(this._e,16),h.writeInt32BE(this._f,20),h.writeInt32BE(this._g,24),h},We.exports=y},5014:(We,q,m)=>{var t=m(3894),e=m(6692),_=m(3502).Buffer,T=[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],s=new Array(64);function y(){this.init(),this._w=s,e.call(this,64,56)}function h(D,z,V){return V^D&(z^V)}function P(D,z,V){return D&z|V&(D|z)}function d(D){return(D>>>2|D<<30)^(D>>>13|D<<19)^(D>>>22|D<<10)}function w(D){return(D>>>6|D<<26)^(D>>>11|D<<21)^(D>>>25|D<<7)}function C(D){return(D>>>7|D<<25)^(D>>>18|D<<14)^D>>>3}function L(D){return(D>>>17|D<<15)^(D>>>19|D<<13)^D>>>10}t(y,e),y.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},y.prototype._update=function(D){for(var z=this._w,V=0|this._a,Y=0|this._b,j=0|this._c,Q=0|this._d,J=0|this._e,ee=0|this._f,me=0|this._g,re=0|this._h,ie=0;ie<16;++ie)z[ie]=D.readInt32BE(4*ie);for(;ie<64;++ie)z[ie]=L(z[ie-2])+z[ie-7]+C(z[ie-15])+z[ie-16]|0;for(var se=0;se<64;++se){var ce=re+w(J)+h(J,ee,me)+T[se]+z[se]|0,Ce=d(V)+P(V,Y,j)|0;re=me,me=ee,ee=J,J=Q+ce|0,Q=j,j=Y,Y=V,V=ce+Ce|0}this._a=V+this._a|0,this._b=Y+this._b|0,this._c=j+this._c|0,this._d=Q+this._d|0,this._e=J+this._e|0,this._f=ee+this._f|0,this._g=me+this._g|0,this._h=re+this._h|0},y.prototype._hash=function(){var D=_.allocUnsafe(32);return D.writeInt32BE(this._a,0),D.writeInt32BE(this._b,4),D.writeInt32BE(this._c,8),D.writeInt32BE(this._d,12),D.writeInt32BE(this._e,16),D.writeInt32BE(this._f,20),D.writeInt32BE(this._g,24),D.writeInt32BE(this._h,28),D},We.exports=y},6540:(We,q,m)=>{var t=m(3894),e=m(117),_=m(6692),T=m(3502).Buffer,s=new Array(160);function y(){this.init(),this._w=s,_.call(this,128,112)}t(y,e),y.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},y.prototype._hash=function(){var h=T.allocUnsafe(48);function P(d,w,C){h.writeInt32BE(d,C),h.writeInt32BE(w,C+4)}return P(this._ah,this._al,0),P(this._bh,this._bl,8),P(this._ch,this._cl,16),P(this._dh,this._dl,24),P(this._eh,this._el,32),P(this._fh,this._fl,40),h},We.exports=y},117:(We,q,m)=>{var t=m(3894),e=m(6692),_=m(3502).Buffer,T=[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],s=new Array(160);function y(){this.init(),this._w=s,e.call(this,128,112)}function h(Y,j,Q){return Q^Y&(j^Q)}function P(Y,j,Q){return Y&j|Q&(Y|j)}function d(Y,j){return(Y>>>28|j<<4)^(j>>>2|Y<<30)^(j>>>7|Y<<25)}function w(Y,j){return(Y>>>14|j<<18)^(Y>>>18|j<<14)^(j>>>9|Y<<23)}function C(Y,j){return(Y>>>1|j<<31)^(Y>>>8|j<<24)^Y>>>7}function L(Y,j){return(Y>>>1|j<<31)^(Y>>>8|j<<24)^(Y>>>7|j<<25)}function D(Y,j){return(Y>>>19|j<<13)^(j>>>29|Y<<3)^Y>>>6}function z(Y,j){return(Y>>>19|j<<13)^(j>>>29|Y<<3)^(Y>>>6|j<<26)}function V(Y,j){return Y>>>0>>0?1:0}t(y,e),y.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},y.prototype._update=function(Y){for(var j=this._w,Q=0|this._ah,J=0|this._bh,ee=0|this._ch,me=0|this._dh,re=0|this._eh,ie=0|this._fh,se=0|this._gh,ce=0|this._hh,Ce=0|this._al,M=0|this._bl,i=0|this._cl,a=0|this._dl,f=0|this._el,l=0|this._fl,v=0|this._gl,I=0|this._hl,k=0;k<32;k+=2)j[k]=Y.readInt32BE(4*k),j[k+1]=Y.readInt32BE(4*k+4);for(;k<160;k+=2){var x=j[k-30],n=j[k-30+1],g=C(x,n),W=L(n,x),O=D(x=j[k-4],n=j[k-4+1]),U=z(n,x),Ue=j[k-32],at=j[k-32+1],ye=W+j[k-14+1]|0,xe=g+j[k-14]+V(ye,W)|0;xe=(xe=xe+O+V(ye=ye+U|0,U)|0)+Ue+V(ye=ye+at|0,at)|0,j[k]=xe,j[k+1]=ye}for(var fe=0;fe<160;fe+=2){xe=j[fe],ye=j[fe+1];var Oe=P(Q,J,ee),oe=P(Ce,M,i),Fe=d(Q,Ce),De=d(Ce,Q),he=w(re,f),Me=w(f,re),pe=T[fe],Ve=T[fe+1],Qe=h(re,ie,se),Pe=h(f,l,v),de=I+Me|0,rt=ce+he+V(de,I)|0;rt=(rt=(rt=rt+Qe+V(de=de+Pe|0,Pe)|0)+pe+V(de=de+Ve|0,Ve)|0)+xe+V(de=de+ye|0,ye)|0;var Ke=De+oe|0,lt=Fe+Oe+V(Ke,De)|0;ce=se,I=v,se=ie,v=l,ie=re,l=f,re=me+rt+V(f=a+de|0,a)|0,me=ee,a=i,ee=J,i=M,J=Q,M=Ce,Q=rt+lt+V(Ce=de+Ke|0,de)|0}this._al=this._al+Ce|0,this._bl=this._bl+M|0,this._cl=this._cl+i|0,this._dl=this._dl+a|0,this._el=this._el+f|0,this._fl=this._fl+l|0,this._gl=this._gl+v|0,this._hl=this._hl+I|0,this._ah=this._ah+Q+V(this._al,Ce)|0,this._bh=this._bh+J+V(this._bl,M)|0,this._ch=this._ch+ee+V(this._cl,i)|0,this._dh=this._dh+me+V(this._dl,a)|0,this._eh=this._eh+re+V(this._el,f)|0,this._fh=this._fh+ie+V(this._fl,l)|0,this._gh=this._gh+se+V(this._gl,v)|0,this._hh=this._hh+ce+V(this._hl,I)|0},y.prototype._hash=function(){var Y=_.allocUnsafe(64);function j(Q,J,ee){Y.writeInt32BE(Q,ee),Y.writeInt32BE(J,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),Y},We.exports=y},8012:function(We,q,m){!function(t){"use strict";var e={};We.exports?(e.bytesToHex=m(6128).bytesToHex,e.convertString=m(5612),We.exports=P):(e.bytesToHex=t.convertHex.bytesToHex,e.convertString=t.convertString,t.sha256=P);var _=[];!function(){function d(D){for(var z=Math.sqrt(D),V=2;V<=z;V++)if(!(D%V))return!1;return!0}for(var C=2,L=0;L<64;)d(C)&&(_[L]=4294967296*((D=Math.pow(C,1/3))-(0|D))|0,L++),C++;var D}();var T=function(d){for(var w=[],C=0,L=0;C>>5]|=d[C]<<24-L%32;return w},s=function(d){for(var w=[],C=0;C<32*d.length;C+=8)w.push(d[C>>>5]>>>24-C%32&255);return w},y=[],h=function(d,w,C){for(var L=d[0],D=d[1],z=d[2],V=d[3],Y=d[4],j=d[5],Q=d[6],J=d[7],ee=0;ee<64;ee++){if(ee<16)y[ee]=0|w[C+ee];else{var me=y[ee-15],ie=y[ee-2];y[ee]=((me<<25|me>>>7)^(me<<14|me>>>18)^me>>>3)+y[ee-7]+((ie<<15|ie>>>17)^(ie<<13|ie>>>19)^ie>>>10)+y[ee-16]}var Ce=L&D^L&z^D&z,a=J+((Y<<26|Y>>>6)^(Y<<21|Y>>>11)^(Y<<7|Y>>>25))+(Y&j^~Y&Q)+_[ee]+y[ee];J=Q,Q=j,j=Y,Y=V+a|0,V=z,z=D,D=L,L=a+(((L<<30|L>>>2)^(L<<19|L>>>13)^(L<<10|L>>>22))+Ce)|0}d[0]=d[0]+L|0,d[1]=d[1]+D|0,d[2]=d[2]+z|0,d[3]=d[3]+V|0,d[4]=d[4]+Y|0,d[5]=d[5]+j|0,d[6]=d[6]+Q|0,d[7]=d[7]+J|0};function P(d,w){d.constructor===String&&(d=e.convertString.UTF8.stringToBytes(d));var C=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],L=T(d),D=8*d.length;L[D>>5]|=128<<24-D%32,L[15+(D+64>>9<<4)]=D;for(var z=0;z{We.exports=_;var t=m(9069).EventEmitter;function _(){t.call(this)}m(3894)(_,t),_.Readable=m(3154),_.Writable=m(520),_.Duplex=m(1339),_.Transform=m(6025),_.PassThrough=m(6071),_.finished=m(7542),_.pipeline=m(954),_.Stream=_,_.prototype.pipe=function(T,s){var y=this;function h(z){T.writable&&!1===T.write(z)&&y.pause&&y.pause()}function P(){y.readable&&y.resume&&y.resume()}y.on("data",h),T.on("drain",P),!T._isStdio&&(!s||!1!==s.end)&&(y.on("end",w),y.on("close",C));var d=!1;function w(){d||(d=!0,T.end())}function C(){d||(d=!0,"function"==typeof T.destroy&&T.destroy())}function L(z){if(D(),0===t.listenerCount(this,"error"))throw z}function D(){y.removeListener("data",h),T.removeListener("drain",P),y.removeListener("end",w),y.removeListener("close",C),y.removeListener("error",L),T.removeListener("error",L),y.removeListener("end",D),y.removeListener("close",D),T.removeListener("close",D)}return y.on("error",L),T.on("error",L),y.on("end",D),y.on("close",D),T.on("close",D),T.emit("pipe",y),T}},3054:(We,q,m)=>{"use strict";var t=m(3502).Buffer,e=t.isEncoding||function(Q){switch((Q=""+Q)&&Q.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 s(Q){var J;switch(this.encoding=function T(Q){var J=function _(Q){if(!Q)return"utf8";for(var J;;)switch(Q){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 Q;default:if(J)return;Q=(""+Q).toLowerCase(),J=!0}}(Q);if("string"!=typeof J&&(t.isEncoding===e||!e(Q)))throw new Error("Unknown encoding: "+Q);return J||Q}(Q),this.encoding){case"utf16le":this.text=L,this.end=D,J=4;break;case"utf8":this.fillLast=d,J=4;break;case"base64":this.text=z,this.end=V,J=3;break;default:return this.write=Y,void(this.end=j)}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(J)}function y(Q){return Q<=127?0:Q>>5==6?2:Q>>4==14?3:Q>>3==30?4:Q>>6==2?-1:-2}function d(Q){var J=this.lastTotal-this.lastNeed,ee=function P(Q,J,ee){if(128!=(192&J[0]))return Q.lastNeed=0,"\ufffd";if(Q.lastNeed>1&&J.length>1){if(128!=(192&J[1]))return Q.lastNeed=1,"\ufffd";if(Q.lastNeed>2&&J.length>2&&128!=(192&J[2]))return Q.lastNeed=2,"\ufffd"}}(this,Q);return void 0!==ee?ee:this.lastNeed<=Q.length?(Q.copy(this.lastChar,J,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(Q.copy(this.lastChar,J,0,Q.length),void(this.lastNeed-=Q.length))}function L(Q,J){if((Q.length-J)%2==0){var ee=Q.toString("utf16le",J);if(ee){var me=ee.charCodeAt(ee.length-1);if(me>=55296&&me<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Q[Q.length-2],this.lastChar[1]=Q[Q.length-1],ee.slice(0,-1)}return ee}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Q[Q.length-1],Q.toString("utf16le",J,Q.length-1)}function D(Q){var J=Q&&Q.length?this.write(Q):"";return this.lastNeed?J+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):J}function z(Q,J){var ee=(Q.length-J)%3;return 0===ee?Q.toString("base64",J):(this.lastNeed=3-ee,this.lastTotal=3,1===ee?this.lastChar[0]=Q[Q.length-1]:(this.lastChar[0]=Q[Q.length-2],this.lastChar[1]=Q[Q.length-1]),Q.toString("base64",J,Q.length-ee))}function V(Q){var J=Q&&Q.length?this.write(Q):"";return this.lastNeed?J+this.lastChar.toString("base64",0,3-this.lastNeed):J}function Y(Q){return Q.toString(this.encoding)}function j(Q){return Q&&Q.length?this.write(Q):""}q.s=s,s.prototype.write=function(Q){if(0===Q.length)return"";var J,ee;if(this.lastNeed){if(void 0===(J=this.fillLast(Q)))return"";ee=this.lastNeed,this.lastNeed=0}else ee=0;return ee=0?(re>0&&(Q.lastNeed=re-1),re):--me=0?(re>0&&(Q.lastNeed=re-2),re):--me=0?(re>0&&(2===re?re=0:Q.lastNeed=re-3),re):0}(this,Q,J);if(!this.lastNeed)return Q.toString("utf8",J);this.lastTotal=ee;var me=Q.length-(ee-this.lastNeed);return Q.copy(this.lastChar,0,me),Q.toString("utf8",J,me)},s.prototype.fillLast=function(Q){if(this.lastNeed<=Q.length)return Q.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Q.copy(this.lastChar,this.lastTotal-this.lastNeed,0,Q.length),this.lastNeed-=Q.length}},2167:(We,q,m)=>{var t=m(4606);q.encode=t.encode,q.decode=t.decode},4606:(We,q)=>{"use strict";var t=[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(_){Buffer.isBuffer(_)||(_=new Buffer(_));for(var T=0,s=0,y=0,h=0,P=new Buffer(8*function e(_){var T=Math.floor(_.length/5);return _.length%5==0?T:T+1}(_));T<_.length;){var d=_[T];y>3?(h=(h=d&255>>y)<<(y=(y+5)%8)|(T+1<_.length?_[T+1]:0)>>8-y,T++):(h=d>>8-(y+5)&31,0==(y=(y+5)%8)&&T++),P[s]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(h),s++}for(T=s;T>>(T=(T+5)%8),h++,y=255&s<<8-T)}return P.slice(0,h)}},4364:We=>{function m(t){try{if(!global.localStorage)return!1}catch{return!1}var e=global.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}We.exports=function q(t,e){if(m("noDeprecation"))return t;var _=!1;return function T(){if(!_){if(m("throwDeprecation"))throw new Error(e);m("traceDeprecation")?console.trace(e):console.warn(e),_=!0}return t.apply(this,arguments)}}},950:()=>{},6601:()=>{},8623:()=>{},7748:()=>{},5568:()=>{},6619:()=>{},7108:()=>{},2361:()=>{},4616:()=>{},7340:(We,q,m)=>{"use strict";m.d(q,{F4:()=>w,IO:()=>V,LC:()=>e,SB:()=>d,X$:()=>T,ZE:()=>J,ZN:()=>Q,_j:()=>t,eR:()=>C,jt:()=>s,k1:()=>ee,l3:()=>_,oB:()=>P,pV:()=>D,ru:()=>y,vP:()=>h});class t{}class e{}const _="*";function T(me,re){return{type:7,name:me,definitions:re,options:{}}}function s(me,re=null){return{type:4,styles:re,timings:me}}function y(me,re=null){return{type:3,steps:me,options:re}}function h(me,re=null){return{type:2,steps:me,options:re}}function P(me){return{type:6,styles:me,offset:null}}function d(me,re,ie){return{type:0,name:me,styles:re,options:ie}}function w(me){return{type:5,steps:me}}function C(me,re,ie=null){return{type:1,expr:me,animation:re,options:ie}}function D(me=null){return{type:9,options:me}}function V(me,re,ie=null){return{type:11,selector:me,animation:re,options:ie}}function j(me){Promise.resolve().then(me)}class Q{constructor(re=0,ie=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=re+ie}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(re=>re()),this._onDoneFns=[])}onStart(re){this._originalOnStartFns.push(re),this._onStartFns.push(re)}onDone(re){this._originalOnDoneFns.push(re),this._onDoneFns.push(re)}onDestroy(re){this._onDestroyFns.push(re)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){j(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(re=>re()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(re=>re()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(re){this._position=this.totalTime?re*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(re){const ie="start"==re?this._onStartFns:this._onDoneFns;ie.forEach(se=>se()),ie.length=0}}class J{constructor(re){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=re;let ie=0,se=0,ce=0;const Ce=this.players.length;0==Ce?j(()=>this._onFinish()):this.players.forEach(M=>{M.onDone(()=>{++ie==Ce&&this._onFinish()}),M.onDestroy(()=>{++se==Ce&&this._onDestroy()}),M.onStart(()=>{++ce==Ce&&this._onStart()})}),this.totalTime=this.players.reduce((M,i)=>Math.max(M,i.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(re=>re()),this._onDoneFns=[])}init(){this.players.forEach(re=>re.init())}onStart(re){this._onStartFns.push(re)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(re=>re()),this._onStartFns=[])}onDone(re){this._onDoneFns.push(re)}onDestroy(re){this._onDestroyFns.push(re)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(re=>re.play())}pause(){this.players.forEach(re=>re.pause())}restart(){this.players.forEach(re=>re.restart())}finish(){this._onFinish(),this.players.forEach(re=>re.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(re=>re.destroy()),this._onDestroyFns.forEach(re=>re()),this._onDestroyFns=[])}reset(){this.players.forEach(re=>re.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(re){const ie=re*this.totalTime;this.players.forEach(se=>{const ce=se.totalTime?Math.min(1,ie/se.totalTime):1;se.setPosition(ce)})}getPosition(){const re=this.players.reduce((ie,se)=>null===ie||se.totalTime>ie.totalTime?se:ie,null);return null!=re?re.getPosition():0}beforeDestroy(){this.players.forEach(re=>{re.beforeDestroy&&re.beforeDestroy()})}triggerCallback(re){const ie="start"==re?this._onStartFns:this._onDoneFns;ie.forEach(se=>se()),ie.length=0}}const ee="!"},4761:(We,q,m)=>{"use strict";m.d(q,{$s:()=>i,Em:()=>I,Kd:()=>qe,X6:()=>Qe,ic:()=>x,kH:()=>it,mK:()=>Fe,qV:()=>oe,qm:()=>Nt,rt:()=>Gt,s1:()=>v,tE:()=>Tt,yG:()=>Pe});var t=m(6895),e=m(4650),_=m(3353),T=m(7579),s=m(727),y=m(1135),h=m(9646),P=m(9521),d=m(8505),w=m(8372),C=m(9300),L=m(4004),D=m(5698),z=m(5684),V=m(1884),Y=m(2722),j=m(1281),Q=m(9643),J=m(2289);function ie(ke,$){return(ke.getAttribute($)||"").match(/\S+/g)||[]}const ce="cdk-describedby-message",Ce="cdk-describedby-host";let M=0,i=(()=>{class ke{constructor(ue,Ae){this._platform=Ae,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+M++,this._document=ue,this._id=(0,e.f3M)(e.AFp)+"-"+M++}describe(ue,Ae,Je){if(!this._canBeDescribed(ue,Ae))return;const $t=a(Ae,Je);"string"!=typeof Ae?(f(Ae,this._id),this._messageRegistry.set($t,{messageElement:Ae,referenceCount:0})):this._messageRegistry.has($t)||this._createMessageElement(Ae,Je),this._isElementDescribedByMessage(ue,$t)||this._addMessageReference(ue,$t)}removeDescription(ue,Ae,Je){if(!Ae||!this._isElementNode(ue))return;const $t=a(Ae,Je);if(this._isElementDescribedByMessage(ue,$t)&&this._removeMessageReference(ue,$t),"string"==typeof Ae){const Vt=this._messageRegistry.get($t);Vt&&0===Vt.referenceCount&&this._deleteMessageElement($t)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const ue=this._document.querySelectorAll(`[${Ce}="${this._id}"]`);for(let Ae=0;Ae0!=Je.indexOf(ce));ue.setAttribute("aria-describedby",Ae.join(" "))}_addMessageReference(ue,Ae){const Je=this._messageRegistry.get(Ae);(function me(ke,$,ue){const Ae=ie(ke,$);Ae.some(Je=>Je.trim()==ue.trim())||(Ae.push(ue.trim()),ke.setAttribute($,Ae.join(" ")))})(ue,"aria-describedby",Je.messageElement.id),ue.setAttribute(Ce,this._id),Je.referenceCount++}_removeMessageReference(ue,Ae){const Je=this._messageRegistry.get(Ae);Je.referenceCount--,function re(ke,$,ue){const Je=ie(ke,$).filter($t=>$t!=ue.trim());Je.length?ke.setAttribute($,Je.join(" ")):ke.removeAttribute($)}(ue,"aria-describedby",Je.messageElement.id),ue.removeAttribute(Ce)}_isElementDescribedByMessage(ue,Ae){const Je=ie(ue,"aria-describedby"),$t=this._messageRegistry.get(Ae),Vt=$t&&$t.messageElement.id;return!!Vt&&-1!=Je.indexOf(Vt)}_canBeDescribed(ue,Ae){if(!this._isElementNode(ue))return!1;if(Ae&&"object"==typeof Ae)return!0;const Je=null==Ae?"":`${Ae}`.trim(),$t=ue.getAttribute("aria-label");return!(!Je||$t&&$t.trim()===Je)}_isElementNode(ue){return ue.nodeType===this._document.ELEMENT_NODE}}return ke.\u0275fac=function(ue){return new(ue||ke)(e.LFG(t.K0),e.LFG(_.t4))},ke.\u0275prov=e.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})();function a(ke,$){return"string"==typeof ke?`${$||""}/${ke}`:ke}function f(ke,$){ke.id||(ke.id=`${ce}-${$}-${M++}`)}class l{constructor($){this._items=$,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new T.x,this._typeaheadSubscription=s.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=ue=>ue.disabled,this._pressedLetters=[],this.tabOut=new T.x,this.change=new T.x,$ instanceof e.n_E&&(this._itemChangesSubscription=$.changes.subscribe(ue=>{if(this._activeItem){const Je=ue.toArray().indexOf(this._activeItem);Je>-1&&Je!==this._activeItemIndex&&(this._activeItemIndex=Je)}}))}skipPredicate($){return this._skipPredicateFn=$,this}withWrap($=!0){return this._wrap=$,this}withVerticalOrientation($=!0){return this._vertical=$,this}withHorizontalOrientation($){return this._horizontal=$,this}withAllowedModifierKeys($){return this._allowedModifierKeys=$,this}withTypeAhead($=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,d.b)(ue=>this._pressedLetters.push(ue)),(0,w.b)($),(0,C.h)(()=>this._pressedLetters.length>0),(0,L.U)(()=>this._pressedLetters.join(""))).subscribe(ue=>{const Ae=this._getItemsArray();for(let Je=1;Je!$[$t]||this._allowedModifierKeys.indexOf($t)>-1);switch(ue){case P.Mf:return void this.tabOut.next();case P.JH:if(this._vertical&&Je){this.setNextItemActive();break}return;case P.LH:if(this._vertical&&Je){this.setPreviousItemActive();break}return;case P.SV:if(this._horizontal&&Je){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case P.oh:if(this._horizontal&&Je){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case P.Sd:if(this._homeAndEnd&&Je){this.setFirstItemActive();break}return;case P.uR:if(this._homeAndEnd&&Je){this.setLastItemActive();break}return;case P.Ku:if(this._pageUpAndDown.enabled&&Je){const $t=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex($t>0?$t:0,1);break}return;case P.VM:if(this._pageUpAndDown.enabled&&Je){const $t=this._activeItemIndex+this._pageUpAndDown.delta,Vt=this._getItemsArray().length;this._setActiveItemByIndex($t=P.A&&ue<=P.Z||ue>=P.xE&&ue<=P.aO)&&this._letterKeyStream.next(String.fromCharCode(ue))))}this._pressedLetters=[],$.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($){const ue=this._getItemsArray(),Ae="number"==typeof $?$:ue.indexOf($);this._activeItem=ue[Ae]??null,this._activeItemIndex=Ae}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta($){this._wrap?this._setActiveInWrapMode($):this._setActiveInDefaultMode($)}_setActiveInWrapMode($){const ue=this._getItemsArray();for(let Ae=1;Ae<=ue.length;Ae++){const Je=(this._activeItemIndex+$*Ae+ue.length)%ue.length;if(!this._skipPredicateFn(ue[Je]))return void this.setActiveItem(Je)}}_setActiveInDefaultMode($){this._setActiveItemByIndex(this._activeItemIndex+$,$)}_setActiveItemByIndex($,ue){const Ae=this._getItemsArray();if(Ae[$]){for(;this._skipPredicateFn(Ae[$]);)if(!Ae[$+=ue])return;this.setActiveItem($)}}_getItemsArray(){return this._items instanceof e.n_E?this._items.toArray():this._items}}class v extends l{setActiveItem($){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem($),this.activeItem&&this.activeItem.setActiveStyles()}}class I extends l{constructor(){super(...arguments),this._origin="program"}setFocusOrigin($){return this._origin=$,this}setActiveItem($){super.setActiveItem($),this.activeItem&&this.activeItem.focus(this._origin)}}let x=(()=>{class ke{constructor(ue){this._platform=ue}isDisabled(ue){return ue.hasAttribute("disabled")}isVisible(ue){return function g(ke){return!!(ke.offsetWidth||ke.offsetHeight||"function"==typeof ke.getClientRects&&ke.getClientRects().length)}(ue)&&"visible"===getComputedStyle(ue).visibility}isTabbable(ue){if(!this._platform.isBrowser)return!1;const Ae=function n(ke){try{return ke.frameElement}catch{return null}}(function fe(ke){return ke.ownerDocument&&ke.ownerDocument.defaultView||window}(ue));if(Ae&&(-1===at(Ae)||!this.isVisible(Ae)))return!1;let Je=ue.nodeName.toLowerCase(),$t=at(ue);return ue.hasAttribute("contenteditable")?-1!==$t:!("iframe"===Je||"object"===Je||this._platform.WEBKIT&&this._platform.IOS&&!function ye(ke){let $=ke.nodeName.toLowerCase(),ue="input"===$&&ke.type;return"text"===ue||"password"===ue||"select"===$||"textarea"===$}(ue))&&("audio"===Je?!!ue.hasAttribute("controls")&&-1!==$t:"video"===Je?-1!==$t&&(null!==$t||this._platform.FIREFOX||ue.hasAttribute("controls")):ue.tabIndex>=0)}isFocusable(ue,Ae){return function xe(ke){return!function O(ke){return function ge(ke){return"input"==ke.nodeName.toLowerCase()}(ke)&&"hidden"==ke.type}(ke)&&(function W(ke){let $=ke.nodeName.toLowerCase();return"input"===$||"select"===$||"button"===$||"textarea"===$}(ke)||function U(ke){return function nt(ke){return"a"==ke.nodeName.toLowerCase()}(ke)&&ke.hasAttribute("href")}(ke)||ke.hasAttribute("contenteditable")||Ue(ke))}(ue)&&!this.isDisabled(ue)&&(Ae?.ignoreVisibility||this.isVisible(ue))}}return ke.\u0275fac=function(ue){return new(ue||ke)(e.LFG(_.t4))},ke.\u0275prov=e.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})();function Ue(ke){if(!ke.hasAttribute("tabindex")||void 0===ke.tabIndex)return!1;let $=ke.getAttribute("tabindex");return!(!$||isNaN(parseInt($,10)))}function at(ke){if(!Ue(ke))return null;const $=parseInt(ke.getAttribute("tabindex")||"",10);return isNaN($)?-1:$}class Oe{get enabled(){return this._enabled}set enabled($){this._enabled=$,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex($,this._startAnchor),this._toggleAnchorTabIndex($,this._endAnchor))}constructor($,ue,Ae,Je,$t=!1){this._element=$,this._checker=ue,this._ngZone=Ae,this._document=Je,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,$t||this.attachAnchors()}destroy(){const $=this._startAnchor,ue=this._endAnchor;$&&($.removeEventListener("focus",this.startAnchorListener),$.remove()),ue&&(ue.removeEventListener("focus",this.endAnchorListener),ue.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($){return new Promise(ue=>{this._executeOnStable(()=>ue(this.focusInitialElement($)))})}focusFirstTabbableElementWhenReady($){return new Promise(ue=>{this._executeOnStable(()=>ue(this.focusFirstTabbableElement($)))})}focusLastTabbableElementWhenReady($){return new Promise(ue=>{this._executeOnStable(()=>ue(this.focusLastTabbableElement($)))})}_getRegionBoundary($){const ue=this._element.querySelectorAll(`[cdk-focus-region-${$}], [cdkFocusRegion${$}], [cdk-focus-${$}]`);return"start"==$?ue.length?ue[0]:this._getFirstTabbableElement(this._element):ue.length?ue[ue.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement($){const ue=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(ue){if(!this._checker.isFocusable(ue)){const Ae=this._getFirstTabbableElement(ue);return Ae?.focus($),!!Ae}return ue.focus($),!0}return this.focusFirstTabbableElement($)}focusFirstTabbableElement($){const ue=this._getRegionBoundary("start");return ue&&ue.focus($),!!ue}focusLastTabbableElement($){const ue=this._getRegionBoundary("end");return ue&&ue.focus($),!!ue}hasAttached(){return this._hasAttached}_getFirstTabbableElement($){if(this._checker.isFocusable($)&&this._checker.isTabbable($))return $;const ue=$.children;for(let Ae=0;Ae=0;Ae--){const Je=ue[Ae].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(ue[Ae]):null;if(Je)return Je}return null}_createAnchor(){const $=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,$),$.classList.add("cdk-visually-hidden"),$.classList.add("cdk-focus-trap-anchor"),$.setAttribute("aria-hidden","true"),$}_toggleAnchorTabIndex($,ue){$?ue.setAttribute("tabindex","0"):ue.removeAttribute("tabindex")}toggleAnchors($){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex($,this._startAnchor),this._toggleAnchorTabIndex($,this._endAnchor))}_executeOnStable($){this._ngZone.isStable?$():this._ngZone.onStable.pipe((0,D.q)(1)).subscribe($)}}let oe=(()=>{class ke{constructor(ue,Ae,Je){this._checker=ue,this._ngZone=Ae,this._document=Je}create(ue,Ae=!1){return new Oe(ue,this._checker,this._ngZone,this._document,Ae)}}return ke.\u0275fac=function(ue){return new(ue||ke)(e.LFG(x),e.LFG(e.R0b),e.LFG(t.K0))},ke.\u0275prov=e.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),Fe=(()=>{class ke{get enabled(){return this.focusTrap.enabled}set enabled(ue){this.focusTrap.enabled=(0,j.Ig)(ue)}get autoCapture(){return this._autoCapture}set autoCapture(ue){this._autoCapture=(0,j.Ig)(ue)}constructor(ue,Ae,Je){this._elementRef=ue,this._focusTrapFactory=Ae,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(ue){const Ae=ue.autoCapture;Ae&&!Ae.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,_.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return ke.\u0275fac=function(ue){return new(ue||ke)(e.Y36(e.SBq),e.Y36(oe),e.Y36(t.K0))},ke.\u0275dir=e.lG2({type:ke,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[e.TTD]}),ke})();function Qe(ke){return 0===ke.buttons||0===ke.offsetX&&0===ke.offsetY}function Pe(ke){const $=ke.touches&&ke.touches[0]||ke.changedTouches&&ke.changedTouches[0];return!(!$||-1!==$.identifier||null!=$.radiusX&&1!==$.radiusX||null!=$.radiusY&&1!==$.radiusY)}const de=new e.OlP("cdk-input-modality-detector-options"),rt={ignoreKeys:[P.zL,P.jx,P.b2,P.MW,P.JU]},lt=(0,_.i$)({passive:!0,capture:!0});let Ut=(()=>{class ke{get mostRecentModality(){return this._modality.value}constructor(ue,Ae,Je,$t){this._platform=ue,this._mostRecentTarget=null,this._modality=new y.X(null),this._lastTouchMs=0,this._onKeydown=Vt=>{this._options?.ignoreKeys?.some(ii=>ii===Vt.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,_.sA)(Vt))},this._onMousedown=Vt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Qe(Vt)?"keyboard":"mouse"),this._mostRecentTarget=(0,_.sA)(Vt))},this._onTouchstart=Vt=>{Pe(Vt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,_.sA)(Vt))},this._options={...rt,...$t},this.modalityDetected=this._modality.pipe((0,z.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,V.x)()),ue.isBrowser&&Ae.runOutsideAngular(()=>{Je.addEventListener("keydown",this._onKeydown,lt),Je.addEventListener("mousedown",this._onMousedown,lt),Je.addEventListener("touchstart",this._onTouchstart,lt)})}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 ke.\u0275fac=function(ue){return new(ue||ke)(e.LFG(_.t4),e.LFG(e.R0b),e.LFG(t.K0),e.LFG(de,8))},ke.\u0275prov=e.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})();const ht=new e.OlP("liveAnnouncerElement",{providedIn:"root",factory:function Ge(){return null}}),yt=new e.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let be=0,qe=(()=>{class ke{constructor(ue,Ae,Je,$t){this._ngZone=Ae,this._defaultOptions=$t,this._document=Je,this._liveElement=ue||this._createLiveElement()}announce(ue,...Ae){const Je=this._defaultOptions;let $t,Vt;return 1===Ae.length&&"number"==typeof Ae[0]?Vt=Ae[0]:[$t,Vt]=Ae,this.clear(),clearTimeout(this._previousTimeout),$t||($t=Je&&Je.politeness?Je.politeness:"polite"),null==Vt&&Je&&(Vt=Je.duration),this._liveElement.setAttribute("aria-live",$t),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(ii=>this._currentResolve=ii)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=ue,"number"==typeof Vt&&(this._previousTimeout=setTimeout(()=>this.clear(),Vt)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const ue="cdk-live-announcer-element",Ae=this._document.getElementsByClassName(ue),Je=this._document.createElement("div");for(let $t=0;$t .cdk-overlay-container [aria-modal="true"]');for(let Je=0;Je{class ke{constructor(ue,Ae,Je,$t,Vt){this._ngZone=ue,this._platform=Ae,this._inputModalityDetector=Je,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=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new T.x,this._rootNodeFocusAndBlurListener=ii=>{for(let ot=(0,_.sA)(ii);ot;ot=ot.parentElement)"focus"===ii.type?this._onFocus(ii,ot):this._onBlur(ii,ot)},this._document=$t,this._detectionMode=Vt?.detectionMode||0}monitor(ue,Ae=!1){const Je=(0,j.fI)(ue);if(!this._platform.isBrowser||1!==Je.nodeType)return(0,h.of)(null);const $t=(0,_.kV)(Je)||this._getDocument(),Vt=this._elementInfo.get(Je);if(Vt)return Ae&&(Vt.checkChildren=!0),Vt.subject;const ii={checkChildren:Ae,subject:new T.x,rootNode:$t};return this._elementInfo.set(Je,ii),this._registerGlobalListeners(ii),ii.subject}stopMonitoring(ue){const Ae=(0,j.fI)(ue),Je=this._elementInfo.get(Ae);Je&&(Je.subject.complete(),this._setClasses(Ae),this._elementInfo.delete(Ae),this._removeGlobalListeners(Je))}focusVia(ue,Ae,Je){const $t=(0,j.fI)(ue);$t===this._getDocument().activeElement?this._getClosestElementsInfo($t).forEach(([ii,pt])=>this._originChanged(ii,Ae,pt)):(this._setOrigin(Ae),"function"==typeof $t.focus&&$t.focus(Je))}ngOnDestroy(){this._elementInfo.forEach((ue,Ae)=>this.stopMonitoring(Ae))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(ue){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(ue)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:ue&&this._isLastInteractionFromInputLabel(ue)?"mouse":"program"}_shouldBeAttributedToTouch(ue){return 1===this._detectionMode||!!ue?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(ue,Ae){ue.classList.toggle("cdk-focused",!!Ae),ue.classList.toggle("cdk-touch-focused","touch"===Ae),ue.classList.toggle("cdk-keyboard-focused","keyboard"===Ae),ue.classList.toggle("cdk-mouse-focused","mouse"===Ae),ue.classList.toggle("cdk-program-focused","program"===Ae)}_setOrigin(ue,Ae=!1){this._ngZone.runOutsideAngular(()=>{this._origin=ue,this._originFromTouchInteraction="touch"===ue&&Ae,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(ue,Ae){const Je=this._elementInfo.get(Ae),$t=(0,_.sA)(ue);!Je||!Je.checkChildren&&Ae!==$t||this._originChanged(Ae,this._getFocusOrigin($t),Je)}_onBlur(ue,Ae){const Je=this._elementInfo.get(Ae);!Je||Je.checkChildren&&ue.relatedTarget instanceof Node&&Ae.contains(ue.relatedTarget)||(this._setClasses(Ae),this._emitOrigin(Je,null))}_emitOrigin(ue,Ae){ue.subject.observers.length&&this._ngZone.run(()=>ue.subject.next(Ae))}_registerGlobalListeners(ue){if(!this._platform.isBrowser)return;const Ae=ue.rootNode,Je=this._rootNodeFocusListenerCount.get(Ae)||0;Je||this._ngZone.runOutsideAngular(()=>{Ae.addEventListener("focus",this._rootNodeFocusAndBlurListener,mt),Ae.addEventListener("blur",this._rootNodeFocusAndBlurListener,mt)}),this._rootNodeFocusListenerCount.set(Ae,Je+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,Y.R)(this._stopInputModalityDetector)).subscribe($t=>{this._setOrigin($t,!0)}))}_removeGlobalListeners(ue){const Ae=ue.rootNode;if(this._rootNodeFocusListenerCount.has(Ae)){const Je=this._rootNodeFocusListenerCount.get(Ae);Je>1?this._rootNodeFocusListenerCount.set(Ae,Je-1):(Ae.removeEventListener("focus",this._rootNodeFocusAndBlurListener,mt),Ae.removeEventListener("blur",this._rootNodeFocusAndBlurListener,mt),this._rootNodeFocusListenerCount.delete(Ae))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(ue,Ae,Je){this._setClasses(ue,Ae),this._emitOrigin(Je,Ae),this._lastFocusOrigin=Ae}_getClosestElementsInfo(ue){const Ae=[];return this._elementInfo.forEach((Je,$t)=>{($t===ue||Je.checkChildren&&$t.contains(ue))&&Ae.push([$t,Je])}),Ae}_isLastInteractionFromInputLabel(ue){const{_mostRecentTarget:Ae,mostRecentModality:Je}=this._inputModalityDetector;if("mouse"!==Je||!Ae||Ae===ue||"INPUT"!==ue.nodeName&&"TEXTAREA"!==ue.nodeName||ue.disabled)return!1;const $t=ue.labels;if($t)for(let Vt=0;Vt<$t.length;Vt++)if($t[Vt].contains(Ae))return!0;return!1}}return ke.\u0275fac=function(ue){return new(ue||ke)(e.LFG(e.R0b),e.LFG(_.t4),e.LFG(Ut),e.LFG(t.K0,8),e.LFG(X,8))},ke.\u0275prov=e.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),it=(()=>{class ke{constructor(ue,Ae){this._elementRef=ue,this._focusMonitor=Ae,this._focusOrigin=null,this.cdkFocusChange=new e.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const ue=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(ue,1===ue.nodeType&&ue.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(Ae=>{this._focusOrigin=Ae,this.cdkFocusChange.emit(Ae)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return ke.\u0275fac=function(ue){return new(ue||ke)(e.Y36(e.SBq),e.Y36(Tt))},ke.\u0275dir=e.lG2({type:ke,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),ke})();const je="cdk-high-contrast-black-on-white",zt="cdk-high-contrast-white-on-black",xt="cdk-high-contrast-active";let Nt=(()=>{class ke{constructor(ue,Ae){this._platform=ue,this._document=Ae,this._breakpointSubscription=(0,e.f3M)(J.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const ue=this._document.createElement("div");ue.style.backgroundColor="rgb(1,2,3)",ue.style.position="absolute",this._document.body.appendChild(ue);const Ae=this._document.defaultView||window,Je=Ae&&Ae.getComputedStyle?Ae.getComputedStyle(ue):null,$t=(Je&&Je.backgroundColor||"").replace(/ /g,"");switch(ue.remove(),$t){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const ue=this._document.body.classList;ue.remove(xt,je,zt),this._hasCheckedHighContrastMode=!0;const Ae=this.getHighContrastMode();1===Ae?ue.add(xt,je):2===Ae&&ue.add(xt,zt)}}}return ke.\u0275fac=function(ue){return new(ue||ke)(e.LFG(_.t4),e.LFG(t.K0))},ke.\u0275prov=e.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),Gt=(()=>{class ke{constructor(ue){ue._applyBodyHighContrastModeCssClasses()}}return ke.\u0275fac=function(ue){return new(ue||ke)(e.LFG(Nt))},ke.\u0275mod=e.oAB({type:ke}),ke.\u0275inj=e.cJS({imports:[Q.Q8]}),ke})()},445:(We,q,m)=>{"use strict";m.d(q,{Is:()=>h,vT:()=>d});var t=m(4650),e=m(6895);const _=new t.OlP("cdk-dir-doc",{providedIn:"root",factory:function T(){return(0,t.f3M)(e.K0)}}),s=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let h=(()=>{class w{constructor(L){this.value="ltr",this.change=new t.vpe,L&&(this.value=function y(w){const C=w?.toLowerCase()||"";return"auto"===C&&typeof navigator<"u"&&navigator?.language?s.test(navigator.language)?"rtl":"ltr":"rtl"===C?"rtl":"ltr"}((L.body?L.body.dir:null)||(L.documentElement?L.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return w.\u0275fac=function(L){return new(L||w)(t.LFG(_,8))},w.\u0275prov=t.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})(),d=(()=>{class w{}return w.\u0275fac=function(L){return new(L||w)},w.\u0275mod=t.oAB({type:w}),w.\u0275inj=t.cJS({}),w})()},1281:(We,q,m)=>{"use strict";m.d(q,{Eq:()=>s,HM:()=>y,Ig:()=>e,du:()=>P,fI:()=>h,su:()=>_,t6:()=>T});var t=m(4650);function e(d){return null!=d&&"false"!=`${d}`}function _(d,w=0){return T(d)?Number(d):w}function T(d){return!isNaN(parseFloat(d))&&!isNaN(Number(d))}function s(d){return Array.isArray(d)?d:[d]}function y(d){return null==d?"":"string"==typeof d?d:`${d}px`}function h(d){return d instanceof t.SBq?d.nativeElement:d}function P(d,w=/\s+/){const C=[];if(null!=d){const L=Array.isArray(d)?d:`${d}`.split(w);for(const D of L){const z=`${D}`.trim();z&&C.push(z)}}return C}},5017:(We,q,m)=>{"use strict";m.d(q,{A8:()=>C,Ov:()=>d,Z9:()=>s,eX:()=>P,k:()=>L,o2:()=>T,yy:()=>h});var t=m(4033),e=m(7579),_=m(4650);class T{}function s(D){return D&&"function"==typeof D.connect&&!(D instanceof t.c)}class h{applyChanges(z,V,Y,j,Q){z.forEachOperation((J,ee,me)=>{let re,ie;if(null==J.previousIndex){const se=Y(J,ee,me);re=V.createEmbeddedView(se.templateRef,se.context,se.index),ie=1}else null==me?(V.remove(ee),ie=3):(re=V.get(ee),V.move(re,me),ie=2);Q&&Q({context:re?.context,operation:ie,record:J})})}detach(){}}class P{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(z,V,Y,j,Q){z.forEachOperation((J,ee,me)=>{let re,ie;null==J.previousIndex?(re=this._insertView(()=>Y(J,ee,me),me,V,j(J)),ie=re?1:0):null==me?(this._detachAndCacheView(ee,V),ie=3):(re=this._moveView(ee,me,V,j(J)),ie=2),Q&&Q({context:re?.context,operation:ie,record:J})})}detach(){for(const z of this._viewCache)z.destroy();this._viewCache=[]}_insertView(z,V,Y,j){const Q=this._insertViewFromCache(V,Y);if(Q)return void(Q.context.$implicit=j);const J=z();return Y.createEmbeddedView(J.templateRef,J.context,J.index)}_detachAndCacheView(z,V){const Y=V.detach(z);this._maybeCacheView(Y,V)}_moveView(z,V,Y,j){const Q=Y.get(z);return Y.move(Q,V),Q.context.$implicit=j,Q}_maybeCacheView(z,V){if(this._viewCache.lengththis._markSelected(Q)):this._markSelected(V[0]),this._selectedToEmit.length=0)}select(...z){this._verifyValueAssignment(z),z.forEach(Y=>this._markSelected(Y));const V=this._hasQueuedChanges();return this._emitChangeEvent(),V}deselect(...z){this._verifyValueAssignment(z),z.forEach(Y=>this._unmarkSelected(Y));const V=this._hasQueuedChanges();return this._emitChangeEvent(),V}setSelection(...z){this._verifyValueAssignment(z);const V=this.selected,Y=new Set(z);z.forEach(Q=>this._markSelected(Q)),V.filter(Q=>!Y.has(Q)).forEach(Q=>this._unmarkSelected(Q));const j=this._hasQueuedChanges();return this._emitChangeEvent(),j}toggle(z){return this.isSelected(z)?this.deselect(z):this.select(z)}clear(z=!0){this._unmarkAll();const V=this._hasQueuedChanges();return z&&this._emitChangeEvent(),V}isSelected(z){return this._selection.has(this._getConcreteValue(z))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(z){this._multiple&&this.selected&&this._selected.sort(z)}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(z){z=this._getConcreteValue(z),this.isSelected(z)||(this._multiple||this._unmarkAll(),this.isSelected(z)||this._selection.add(z),this._emitChanges&&this._selectedToEmit.push(z))}_unmarkSelected(z){z=this._getConcreteValue(z),this.isSelected(z)&&(this._selection.delete(z),this._emitChanges&&this._deselectedToEmit.push(z))}_unmarkAll(){this.isEmpty()||this._selection.forEach(z=>this._unmarkSelected(z))}_verifyValueAssignment(z){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(z){if(this.compareWith){for(let V of this._selection)if(this.compareWith(z,V))return V;return z}return z}}let C=(()=>{class D{constructor(){this._listeners=[]}notify(V,Y){for(let j of this._listeners)j(V,Y)}listen(V){return this._listeners.push(V),()=>{this._listeners=this._listeners.filter(Y=>V!==Y)}}ngOnDestroy(){this._listeners=[]}}return D.\u0275fac=function(V){return new(V||D)},D.\u0275prov=_.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})();const L=new _.OlP("_ViewRepeater")},9521:(We,q,m)=>{"use strict";m.d(q,{A:()=>O,JH:()=>ee,JU:()=>y,K5:()=>s,Ku:()=>D,LH:()=>Q,L_:()=>L,MW:()=>yt,Mf:()=>_,SV:()=>J,Sd:()=>Y,VM:()=>z,Vb:()=>vi,Z:()=>Ge,ZH:()=>e,aO:()=>k,b2:()=>Ot,hY:()=>C,jx:()=>h,oh:()=>j,uR:()=>V,xE:()=>ce,yY:()=>se,zL:()=>P});const e=8,_=9,s=13,y=16,h=17,P=18,C=27,L=32,D=33,z=34,V=35,Y=36,j=37,Q=38,J=39,ee=40,se=46,ce=48,k=57,O=65,Ge=90,yt=91,Ot=224;function vi(li,...mi){return mi.length?mi.some(gi=>li[gi]):li.altKey||li.shiftKey||li.ctrlKey||li.metaKey}},2289:(We,q,m)=>{"use strict";m.d(q,{Yg:()=>ee,u3:()=>re,xu:()=>z});var t=m(4650),e=m(1281),_=m(7579),T=m(9841),s=m(7272),y=m(9751),h=m(5698),P=m(5684),d=m(8372),w=m(4004),C=m(8675),L=m(2722),D=m(3353);let z=(()=>{class ie{}return ie.\u0275fac=function(ce){return new(ce||ie)},ie.\u0275mod=t.oAB({type:ie}),ie.\u0275inj=t.cJS({}),ie})();const V=new Set;let Y,j=(()=>{class ie{constructor(ce){this._platform=ce,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):J}matchMedia(ce){return(this._platform.WEBKIT||this._platform.BLINK)&&function Q(ie){if(!V.has(ie))try{Y||(Y=document.createElement("style"),Y.setAttribute("type","text/css"),document.head.appendChild(Y)),Y.sheet&&(Y.sheet.insertRule(`@media ${ie} {body{ }}`,0),V.add(ie))}catch(se){console.error(se)}}(ce),this._matchMedia(ce)}}return ie.\u0275fac=function(ce){return new(ce||ie)(t.LFG(D.t4))},ie.\u0275prov=t.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})();function J(ie){return{matches:"all"===ie||""===ie,media:ie,addListener:()=>{},removeListener:()=>{}}}let ee=(()=>{class ie{constructor(ce,Ce){this._mediaMatcher=ce,this._zone=Ce,this._queries=new Map,this._destroySubject=new _.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(ce){return me((0,e.Eq)(ce)).some(M=>this._registerQuery(M).mql.matches)}observe(ce){const M=me((0,e.Eq)(ce)).map(a=>this._registerQuery(a).observable);let i=(0,T.a)(M);return i=(0,s.z)(i.pipe((0,h.q)(1)),i.pipe((0,P.T)(1),(0,d.b)(0))),i.pipe((0,w.U)(a=>{const f={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:v})=>{f.matches=f.matches||l,f.breakpoints[v]=l}),f}))}_registerQuery(ce){if(this._queries.has(ce))return this._queries.get(ce);const Ce=this._mediaMatcher.matchMedia(ce),i={observable:new y.y(a=>{const f=l=>this._zone.run(()=>a.next(l));return Ce.addListener(f),()=>{Ce.removeListener(f)}}).pipe((0,C.O)(Ce),(0,w.U)(({matches:a})=>({query:ce,matches:a})),(0,L.R)(this._destroySubject)),mql:Ce};return this._queries.set(ce,i),i}}return ie.\u0275fac=function(ce){return new(ce||ie)(t.LFG(j),t.LFG(t.R0b))},ie.\u0275prov=t.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})();function me(ie){return ie.map(se=>se.split(",")).reduce((se,ce)=>se.concat(ce)).map(se=>se.trim())}const re={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)"}},9643:(We,q,m)=>{"use strict";m.d(q,{Q8:()=>d,wD:()=>P});var t=m(1281),e=m(4650),_=m(9751),T=m(7579),s=m(8372);let y=(()=>{class w{create(L){return typeof MutationObserver>"u"?null:new MutationObserver(L)}}return w.\u0275fac=function(L){return new(L||w)},w.\u0275prov=e.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})(),h=(()=>{class w{constructor(L){this._mutationObserverFactory=L,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((L,D)=>this._cleanupObserver(D))}observe(L){const D=(0,t.fI)(L);return new _.y(z=>{const Y=this._observeElement(D).subscribe(z);return()=>{Y.unsubscribe(),this._unobserveElement(D)}})}_observeElement(L){if(this._observedElements.has(L))this._observedElements.get(L).count++;else{const D=new T.x,z=this._mutationObserverFactory.create(V=>D.next(V));z&&z.observe(L,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(L,{observer:z,stream:D,count:1})}return this._observedElements.get(L).stream}_unobserveElement(L){this._observedElements.has(L)&&(this._observedElements.get(L).count--,this._observedElements.get(L).count||this._cleanupObserver(L))}_cleanupObserver(L){if(this._observedElements.has(L)){const{observer:D,stream:z}=this._observedElements.get(L);D&&D.disconnect(),z.complete(),this._observedElements.delete(L)}}}return w.\u0275fac=function(L){return new(L||w)(e.LFG(y))},w.\u0275prov=e.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})(),P=(()=>{class w{get disabled(){return this._disabled}set disabled(L){this._disabled=(0,t.Ig)(L),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(L){this._debounce=(0,t.su)(L),this._subscribe()}constructor(L,D,z){this._contentObserver=L,this._elementRef=D,this._ngZone=z,this.event=new e.vpe,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const L=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?L.pipe((0,s.b)(this.debounce)):L).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return w.\u0275fac=function(L){return new(L||w)(e.Y36(h),e.Y36(e.SBq),e.Y36(e.R0b))},w.\u0275dir=e.lG2({type:w,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),w})(),d=(()=>{class w{}return w.\u0275fac=function(L){return new(L||w)},w.\u0275mod=e.oAB({type:w}),w.\u0275inj=e.cJS({providers:[y]}),w})()},8184:(We,q,m)=>{"use strict";m.d(q,{Iu:()=>x,U8:()=>Ve,X_:()=>ce,Xj:()=>k,_G:()=>W,aV:()=>Oe,pI:()=>he,xu:()=>De});var t=m(531),e=m(6895),_=m(4650),T=m(1281),s=m(3353),y=m(9300),h=m(5698),P=m(2722),d=m(2529),w=m(445),C=m(4080),L=m(7579),D=m(727),z=m(6451),V=m(9521);const Y=(0,s.Mq)();class j{constructor(de,rt){this._viewportRuler=de,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=rt}attach(){}enable(){if(this._canBeEnabled()){const de=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=de.style.left||"",this._previousHTMLStyles.top=de.style.top||"",de.style.left=(0,T.HM)(-this._previousScrollPosition.left),de.style.top=(0,T.HM)(-this._previousScrollPosition.top),de.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const de=this._document.documentElement,Ke=de.style,lt=this._document.body.style,Ut=Ke.scrollBehavior||"",ht=lt.scrollBehavior||"";this._isEnabled=!1,Ke.left=this._previousHTMLStyles.left,Ke.top=this._previousHTMLStyles.top,de.classList.remove("cdk-global-scrollblock"),Y&&(Ke.scrollBehavior=lt.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Y&&(Ke.scrollBehavior=Ut,lt.scrollBehavior=ht)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const rt=this._document.body,Ke=this._viewportRuler.getViewportSize();return rt.scrollHeight>Ke.height||rt.scrollWidth>Ke.width}}class J{constructor(de,rt,Ke,lt){this._scrollDispatcher=de,this._ngZone=rt,this._viewportRuler=Ke,this._config=lt,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(de){this._overlayRef=de}enable(){if(this._scrollSubscription)return;const de=this._scrollDispatcher.scrolled(0).pipe((0,y.h)(rt=>!rt||!this._overlayRef.overlayElement.contains(rt.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=de.subscribe(()=>{const rt=this._viewportRuler.getViewportScrollPosition().top;Math.abs(rt-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=de.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ee{enable(){}disable(){}attach(){}}function me(Pe,de){return de.some(rt=>Pe.bottomrt.bottom||Pe.rightrt.right)}function re(Pe,de){return de.some(rt=>Pe.toprt.bottom||Pe.leftrt.right)}class ie{constructor(de,rt,Ke,lt){this._scrollDispatcher=de,this._viewportRuler=rt,this._ngZone=Ke,this._config=lt,this._scrollSubscription=null}attach(de){this._overlayRef=de}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 rt=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Ke,height:lt}=this._viewportRuler.getViewportSize();me(rt,[{width:Ke,height:lt,bottom:lt,right:Ke,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 se=(()=>{class Pe{constructor(rt,Ke,lt,Ut){this._scrollDispatcher=rt,this._viewportRuler=Ke,this._ngZone=lt,this.noop=()=>new ee,this.close=ht=>new J(this._scrollDispatcher,this._ngZone,this._viewportRuler,ht),this.block=()=>new j(this._viewportRuler,this._document),this.reposition=ht=>new ie(this._scrollDispatcher,this._viewportRuler,this._ngZone,ht),this._document=Ut}}return Pe.\u0275fac=function(rt){return new(rt||Pe)(_.LFG(t.mF),_.LFG(t.rL),_.LFG(_.R0b),_.LFG(e.K0))},Pe.\u0275prov=_.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();class ce{constructor(de){if(this.scrollStrategy=new ee,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,de){const rt=Object.keys(de);for(const Ke of rt)void 0!==de[Ke]&&(this[Ke]=de[Ke])}}}class i{constructor(de,rt){this.connectionPair=de,this.scrollableViewProperties=rt}}let l=(()=>{class Pe{constructor(rt){this._attachedOverlays=[],this._document=rt}ngOnDestroy(){this.detach()}add(rt){this.remove(rt),this._attachedOverlays.push(rt)}remove(rt){const Ke=this._attachedOverlays.indexOf(rt);Ke>-1&&this._attachedOverlays.splice(Ke,1),0===this._attachedOverlays.length&&this.detach()}}return Pe.\u0275fac=function(rt){return new(rt||Pe)(_.LFG(e.K0))},Pe.\u0275prov=_.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),v=(()=>{class Pe extends l{constructor(rt,Ke){super(rt),this._ngZone=Ke,this._keydownListener=lt=>{const Ut=this._attachedOverlays;for(let ht=Ut.length-1;ht>-1;ht--)if(Ut[ht]._keydownEvents.observers.length>0){const Ge=Ut[ht]._keydownEvents;this._ngZone?this._ngZone.run(()=>Ge.next(lt)):Ge.next(lt);break}}}add(rt){super.add(rt),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):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(rt){return new(rt||Pe)(_.LFG(e.K0),_.LFG(_.R0b,8))},Pe.\u0275prov=_.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),I=(()=>{class Pe extends l{constructor(rt,Ke,lt){super(rt),this._platform=Ke,this._ngZone=lt,this._cursorStyleIsSet=!1,this._pointerDownListener=Ut=>{this._pointerDownEventTarget=(0,s.sA)(Ut)},this._clickListener=Ut=>{const ht=(0,s.sA)(Ut),Ge="click"===Ut.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:ht;this._pointerDownEventTarget=null;const yt=this._attachedOverlays.slice();for(let be=yt.length-1;be>-1;be--){const qe=yt[be];if(qe._outsidePointerEvents.observers.length<1||!qe.hasAttached())continue;if(qe.overlayElement.contains(ht)||qe.overlayElement.contains(Ge))break;const Ie=qe._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Ie.next(Ut)):Ie.next(Ut)}}}add(rt){if(super.add(rt),!this._isAttached){const Ke=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(Ke)):this._addEventListeners(Ke),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Ke.style.cursor,Ke.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const rt=this._document.body;rt.removeEventListener("pointerdown",this._pointerDownListener,!0),rt.removeEventListener("click",this._clickListener,!0),rt.removeEventListener("auxclick",this._clickListener,!0),rt.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(rt.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(rt){rt.addEventListener("pointerdown",this._pointerDownListener,!0),rt.addEventListener("click",this._clickListener,!0),rt.addEventListener("auxclick",this._clickListener,!0),rt.addEventListener("contextmenu",this._clickListener,!0)}}return Pe.\u0275fac=function(rt){return new(rt||Pe)(_.LFG(e.K0),_.LFG(s.t4),_.LFG(_.R0b,8))},Pe.\u0275prov=_.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),k=(()=>{class Pe{constructor(rt,Ke){this._platform=Ke,this._document=rt}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const rt="cdk-overlay-container";if(this._platform.isBrowser||(0,s.Oy)()){const lt=this._document.querySelectorAll(`.${rt}[platform="server"], .${rt}[platform="test"]`);for(let Ut=0;Utthis._backdropClick.next(Ie),this._backdropTransitionendHandler=Ie=>{this._disposeBackdrop(Ie.target)},this._keydownEvents=new L.x,this._outsidePointerEvents=new L.x,lt.scrollStrategy&&(this._scrollStrategy=lt.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=lt.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(de){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const rt=this._portalOutlet.attach(de);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,h.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),"function"==typeof rt?.onDestroy&&rt.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),rt}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const de=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),de}dispose(){const de=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),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,de&&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(de){de!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=de,this.hasAttached()&&(de.attach(this),this.updatePosition()))}updateSize(de){this._config={...this._config,...de},this._updateElementSize()}setDirection(de){this._config={...this._config,direction:de},this._updateElementDirection()}addPanelClass(de){this._pane&&this._toggleClasses(this._pane,de,!0)}removePanelClass(de){this._pane&&this._toggleClasses(this._pane,de,!1)}getDirection(){const de=this._config.direction;return de?"string"==typeof de?de:de.value:"ltr"}updateScrollStrategy(de){de!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=de,this.hasAttached()&&(de.attach(this),de.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const de=this._pane.style;de.width=(0,T.HM)(this._config.width),de.height=(0,T.HM)(this._config.height),de.minWidth=(0,T.HM)(this._config.minWidth),de.minHeight=(0,T.HM)(this._config.minHeight),de.maxWidth=(0,T.HM)(this._config.maxWidth),de.maxHeight=(0,T.HM)(this._config.maxHeight)}_togglePointerEvents(de){this._pane.style.pointerEvents=de?"":"none"}_attachBackdrop(){const de="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(de)})}):this._backdropElement.classList.add(de)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const de=this._backdropElement;if(de){if(this._animationsDisabled)return void this._disposeBackdrop(de);de.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{de.addEventListener("transitionend",this._backdropTransitionendHandler)}),de.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(de)},500))}}_toggleClasses(de,rt,Ke){const lt=(0,T.Eq)(rt||[]).filter(Ut=>!!Ut);lt.length&&(Ke?de.classList.add(...lt):de.classList.remove(...lt))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const de=this._ngZone.onStable.pipe((0,P.R)((0,z.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()),de.unsubscribe())})})}_disposeScrollStrategy(){const de=this._scrollStrategy;de&&(de.disable(),de.detach&&de.detach())}_disposeBackdrop(de){de&&(de.removeEventListener("click",this._backdropClickHandler),de.removeEventListener("transitionend",this._backdropTransitionendHandler),de.remove(),this._backdropElement===de&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const n="cdk-overlay-connected-position-bounding-box",g=/([A-Za-z%]+)$/;class W{get positions(){return this._preferredPositions}constructor(de,rt,Ke,lt,Ut){this._viewportRuler=rt,this._document=Ke,this._platform=lt,this._overlayContainer=Ut,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new L.x,this._resizeSubscription=D.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(de)}attach(de){this._validatePositions(),de.hostElement.classList.add(n),this._overlayRef=de,this._boundingBox=de.hostElement,this._pane=de.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const de=this._originRect,rt=this._overlayRect,Ke=this._viewportRect,lt=this._containerRect,Ut=[];let ht;for(let Ge of this._preferredPositions){let yt=this._getOriginPoint(de,lt,Ge),be=this._getOverlayPoint(yt,rt,Ge),qe=this._getOverlayFit(be,rt,Ke,Ge);if(qe.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Ge,yt);this._canFitWithFlexibleDimensions(qe,be,Ke)?Ut.push({position:Ge,origin:yt,overlayRect:rt,boundingBoxRect:this._calculateBoundingBoxRect(yt,Ge)}):(!ht||ht.overlayFit.visibleAreayt&&(yt=qe,Ge=be)}return this._isPushed=!1,void this._applyPosition(Ge.position,Ge.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(ht.position,ht.originPoint);this._applyPosition(ht.position,ht.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&O(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(n),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const de=this._lastPosition;if(de){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const rt=this._getOriginPoint(this._originRect,this._containerRect,de);this._applyPosition(de,rt)}else this.apply()}withScrollableContainers(de){return this._scrollables=de,this}withPositions(de){return this._preferredPositions=de,-1===de.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(de){return this._viewportMargin=de,this}withFlexibleDimensions(de=!0){return this._hasFlexibleDimensions=de,this}withGrowAfterOpen(de=!0){return this._growAfterOpen=de,this}withPush(de=!0){return this._canPush=de,this}withLockedPosition(de=!0){return this._positionLocked=de,this}setOrigin(de){return this._origin=de,this}withDefaultOffsetX(de){return this._offsetX=de,this}withDefaultOffsetY(de){return this._offsetY=de,this}withTransformOriginOn(de){return this._transformOriginSelector=de,this}_getOriginPoint(de,rt,Ke){let lt,Ut;if("center"==Ke.originX)lt=de.left+de.width/2;else{const ht=this._isRtl()?de.right:de.left,Ge=this._isRtl()?de.left:de.right;lt="start"==Ke.originX?ht:Ge}return rt.left<0&&(lt-=rt.left),Ut="center"==Ke.originY?de.top+de.height/2:"top"==Ke.originY?de.top:de.bottom,rt.top<0&&(Ut-=rt.top),{x:lt,y:Ut}}_getOverlayPoint(de,rt,Ke){let lt,Ut;return lt="center"==Ke.overlayX?-rt.width/2:"start"===Ke.overlayX?this._isRtl()?-rt.width:0:this._isRtl()?0:-rt.width,Ut="center"==Ke.overlayY?-rt.height/2:"top"==Ke.overlayY?0:-rt.height,{x:de.x+lt,y:de.y+Ut}}_getOverlayFit(de,rt,Ke,lt){const Ut=ge(rt);let{x:ht,y:Ge}=de,yt=this._getOffset(lt,"x"),be=this._getOffset(lt,"y");yt&&(ht+=yt),be&&(Ge+=be);let X=0-Ge,mt=Ge+Ut.height-Ke.height,Tt=this._subtractOverflows(Ut.width,0-ht,ht+Ut.width-Ke.width),it=this._subtractOverflows(Ut.height,X,mt),je=Tt*it;return{visibleArea:je,isCompletelyWithinViewport:Ut.width*Ut.height===je,fitsInViewportVertically:it===Ut.height,fitsInViewportHorizontally:Tt==Ut.width}}_canFitWithFlexibleDimensions(de,rt,Ke){if(this._hasFlexibleDimensions){const lt=Ke.bottom-rt.y,Ut=Ke.right-rt.x,ht=U(this._overlayRef.getConfig().minHeight),Ge=U(this._overlayRef.getConfig().minWidth);return(de.fitsInViewportVertically||null!=ht&&ht<=lt)&&(de.fitsInViewportHorizontally||null!=Ge&&Ge<=Ut)}return!1}_pushOverlayOnScreen(de,rt,Ke){if(this._previousPushAmount&&this._positionLocked)return{x:de.x+this._previousPushAmount.x,y:de.y+this._previousPushAmount.y};const lt=ge(rt),Ut=this._viewportRect,ht=Math.max(de.x+lt.width-Ut.width,0),Ge=Math.max(de.y+lt.height-Ut.height,0),yt=Math.max(Ut.top-Ke.top-de.y,0),be=Math.max(Ut.left-Ke.left-de.x,0);let qe=0,Ie=0;return qe=lt.width<=Ut.width?be||-ht:de.xTt&&!this._isInitialRender&&!this._growAfterOpen&&(ht=de.y-Tt/2)}if("end"===rt.overlayX&&!lt||"start"===rt.overlayX&<)X=Ke.width-de.x+this._viewportMargin,qe=de.x-this._viewportMargin;else if("start"===rt.overlayX&&!lt||"end"===rt.overlayX&<)Ie=de.x,qe=Ke.right-de.x;else{const mt=Math.min(Ke.right-de.x+Ke.left,de.x),Tt=this._lastBoundingBoxSize.width;qe=2*mt,Ie=de.x-mt,qe>Tt&&!this._isInitialRender&&!this._growAfterOpen&&(Ie=de.x-Tt/2)}return{top:ht,left:Ie,bottom:Ge,right:X,width:qe,height:Ut}}_setBoundingBoxStyles(de,rt){const Ke=this._calculateBoundingBoxRect(de,rt);!this._isInitialRender&&!this._growAfterOpen&&(Ke.height=Math.min(Ke.height,this._lastBoundingBoxSize.height),Ke.width=Math.min(Ke.width,this._lastBoundingBoxSize.width));const lt={};if(this._hasExactPosition())lt.top=lt.left="0",lt.bottom=lt.right=lt.maxHeight=lt.maxWidth="",lt.width=lt.height="100%";else{const Ut=this._overlayRef.getConfig().maxHeight,ht=this._overlayRef.getConfig().maxWidth;lt.height=(0,T.HM)(Ke.height),lt.top=(0,T.HM)(Ke.top),lt.bottom=(0,T.HM)(Ke.bottom),lt.width=(0,T.HM)(Ke.width),lt.left=(0,T.HM)(Ke.left),lt.right=(0,T.HM)(Ke.right),lt.alignItems="center"===rt.overlayX?"center":"end"===rt.overlayX?"flex-end":"flex-start",lt.justifyContent="center"===rt.overlayY?"center":"bottom"===rt.overlayY?"flex-end":"flex-start",Ut&&(lt.maxHeight=(0,T.HM)(Ut)),ht&&(lt.maxWidth=(0,T.HM)(ht))}this._lastBoundingBoxSize=Ke,O(this._boundingBox.style,lt)}_resetBoundingBoxStyles(){O(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){O(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(de,rt){const Ke={},lt=this._hasExactPosition(),Ut=this._hasFlexibleDimensions,ht=this._overlayRef.getConfig();if(lt){const qe=this._viewportRuler.getViewportScrollPosition();O(Ke,this._getExactOverlayY(rt,de,qe)),O(Ke,this._getExactOverlayX(rt,de,qe))}else Ke.position="static";let Ge="",yt=this._getOffset(rt,"x"),be=this._getOffset(rt,"y");yt&&(Ge+=`translateX(${yt}px) `),be&&(Ge+=`translateY(${be}px)`),Ke.transform=Ge.trim(),ht.maxHeight&&(lt?Ke.maxHeight=(0,T.HM)(ht.maxHeight):Ut&&(Ke.maxHeight="")),ht.maxWidth&&(lt?Ke.maxWidth=(0,T.HM)(ht.maxWidth):Ut&&(Ke.maxWidth="")),O(this._pane.style,Ke)}_getExactOverlayY(de,rt,Ke){let lt={top:"",bottom:""},Ut=this._getOverlayPoint(rt,this._overlayRect,de);return this._isPushed&&(Ut=this._pushOverlayOnScreen(Ut,this._overlayRect,Ke)),"bottom"===de.overlayY?lt.bottom=this._document.documentElement.clientHeight-(Ut.y+this._overlayRect.height)+"px":lt.top=(0,T.HM)(Ut.y),lt}_getExactOverlayX(de,rt,Ke){let ht,lt={left:"",right:""},Ut=this._getOverlayPoint(rt,this._overlayRect,de);return this._isPushed&&(Ut=this._pushOverlayOnScreen(Ut,this._overlayRect,Ke)),ht=this._isRtl()?"end"===de.overlayX?"left":"right":"end"===de.overlayX?"right":"left","right"===ht?lt.right=this._document.documentElement.clientWidth-(Ut.x+this._overlayRect.width)+"px":lt.left=(0,T.HM)(Ut.x),lt}_getScrollVisibility(){const de=this._getOriginRect(),rt=this._pane.getBoundingClientRect(),Ke=this._scrollables.map(lt=>lt.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:re(de,Ke),isOriginOutsideView:me(de,Ke),isOverlayClipped:re(rt,Ke),isOverlayOutsideView:me(rt,Ke)}}_subtractOverflows(de,...rt){return rt.reduce((Ke,lt)=>Ke-Math.max(lt,0),de)}_getNarrowedViewportRect(){const de=this._document.documentElement.clientWidth,rt=this._document.documentElement.clientHeight,Ke=this._viewportRuler.getViewportScrollPosition();return{top:Ke.top+this._viewportMargin,left:Ke.left+this._viewportMargin,right:Ke.left+de-this._viewportMargin,bottom:Ke.top+rt-this._viewportMargin,width:de-2*this._viewportMargin,height:rt-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(de,rt){return"x"===rt?null==de.offsetX?this._offsetX:de.offsetX:null==de.offsetY?this._offsetY:de.offsetY}_validatePositions(){}_addPanelClasses(de){this._pane&&(0,T.Eq)(de).forEach(rt=>{""!==rt&&-1===this._appliedPanelClasses.indexOf(rt)&&(this._appliedPanelClasses.push(rt),this._pane.classList.add(rt))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(de=>{this._pane.classList.remove(de)}),this._appliedPanelClasses=[])}_getOriginRect(){const de=this._origin;if(de instanceof _.SBq)return de.nativeElement.getBoundingClientRect();if(de instanceof Element)return de.getBoundingClientRect();const rt=de.width||0,Ke=de.height||0;return{top:de.y,bottom:de.y+Ke,left:de.x,right:de.x+rt,height:Ke,width:rt}}}function O(Pe,de){for(let rt in de)de.hasOwnProperty(rt)&&(Pe[rt]=de[rt]);return Pe}function U(Pe){if("number"!=typeof Pe&&null!=Pe){const[de,rt]=Pe.split(g);return rt&&"px"!==rt?null:parseFloat(de)}return Pe||null}function ge(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 at="cdk-global-overlay-wrapper";class ye{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(de){const rt=de.getConfig();this._overlayRef=de,this._width&&!rt.width&&de.updateSize({width:this._width}),this._height&&!rt.height&&de.updateSize({height:this._height}),de.hostElement.classList.add(at),this._isDisposed=!1}top(de=""){return this._bottomOffset="",this._topOffset=de,this._alignItems="flex-start",this}left(de=""){return this._xOffset=de,this._xPosition="left",this}bottom(de=""){return this._topOffset="",this._bottomOffset=de,this._alignItems="flex-end",this}right(de=""){return this._xOffset=de,this._xPosition="right",this}start(de=""){return this._xOffset=de,this._xPosition="start",this}end(de=""){return this._xOffset=de,this._xPosition="end",this}width(de=""){return this._overlayRef?this._overlayRef.updateSize({width:de}):this._width=de,this}height(de=""){return this._overlayRef?this._overlayRef.updateSize({height:de}):this._height=de,this}centerHorizontally(de=""){return this.left(de),this._xPosition="center",this}centerVertically(de=""){return this.top(de),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const de=this._overlayRef.overlayElement.style,rt=this._overlayRef.hostElement.style,Ke=this._overlayRef.getConfig(),{width:lt,height:Ut,maxWidth:ht,maxHeight:Ge}=Ke,yt=!("100%"!==lt&&"100vw"!==lt||ht&&"100%"!==ht&&"100vw"!==ht),be=!("100%"!==Ut&&"100vh"!==Ut||Ge&&"100%"!==Ge&&"100vh"!==Ge),qe=this._xPosition,Ie=this._xOffset,X="rtl"===this._overlayRef.getConfig().direction;let mt="",Tt="",it="";yt?it="flex-start":"center"===qe?(it="center",X?Tt=Ie:mt=Ie):X?"left"===qe||"end"===qe?(it="flex-end",mt=Ie):("right"===qe||"start"===qe)&&(it="flex-start",Tt=Ie):"left"===qe||"start"===qe?(it="flex-start",mt=Ie):("right"===qe||"end"===qe)&&(it="flex-end",Tt=Ie),de.position=this._cssPosition,de.marginLeft=yt?"0":mt,de.marginTop=be?"0":this._topOffset,de.marginBottom=this._bottomOffset,de.marginRight=yt?"0":Tt,rt.justifyContent=it,rt.alignItems=be?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const de=this._overlayRef.overlayElement.style,rt=this._overlayRef.hostElement,Ke=rt.style;rt.classList.remove(at),Ke.justifyContent=Ke.alignItems=de.marginTop=de.marginBottom=de.marginLeft=de.marginRight=de.position="",this._overlayRef=null,this._isDisposed=!0}}let xe=(()=>{class Pe{constructor(rt,Ke,lt,Ut){this._viewportRuler=rt,this._document=Ke,this._platform=lt,this._overlayContainer=Ut}global(){return new ye}flexibleConnectedTo(rt){return new W(rt,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Pe.\u0275fac=function(rt){return new(rt||Pe)(_.LFG(t.rL),_.LFG(e.K0),_.LFG(s.t4),_.LFG(k))},Pe.\u0275prov=_.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),fe=0,Oe=(()=>{class Pe{constructor(rt,Ke,lt,Ut,ht,Ge,yt,be,qe,Ie,X,mt){this.scrollStrategies=rt,this._overlayContainer=Ke,this._componentFactoryResolver=lt,this._positionBuilder=Ut,this._keyboardDispatcher=ht,this._injector=Ge,this._ngZone=yt,this._document=be,this._directionality=qe,this._location=Ie,this._outsideClickDispatcher=X,this._animationsModuleType=mt}create(rt){const Ke=this._createHostElement(),lt=this._createPaneElement(Ke),Ut=this._createPortalOutlet(lt),ht=new ce(rt);return ht.direction=ht.direction||this._directionality.value,new x(Ut,Ke,lt,ht,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(rt){const Ke=this._document.createElement("div");return Ke.id="cdk-overlay-"+fe++,Ke.classList.add("cdk-overlay-pane"),rt.appendChild(Ke),Ke}_createHostElement(){const rt=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(rt),rt}_createPortalOutlet(rt){return this._appRef||(this._appRef=this._injector.get(_.z2F)),new C.u0(rt,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Pe.\u0275fac=function(rt){return new(rt||Pe)(_.LFG(se),_.LFG(k),_.LFG(_._Vd),_.LFG(xe),_.LFG(v),_.LFG(_.zs3),_.LFG(_.R0b),_.LFG(e.K0),_.LFG(w.Is),_.LFG(e.Ye),_.LFG(I),_.LFG(_.QbO,8))},Pe.\u0275prov=_.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();const oe=[{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"}],Fe=new _.OlP("cdk-connected-overlay-scroll-strategy");let De=(()=>{class Pe{constructor(rt){this.elementRef=rt}}return Pe.\u0275fac=function(rt){return new(rt||Pe)(_.Y36(_.SBq))},Pe.\u0275dir=_.lG2({type:Pe,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),Pe})(),he=(()=>{class Pe{get offsetX(){return this._offsetX}set offsetX(rt){this._offsetX=rt,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(rt){this._offsetY=rt,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(rt){this._hasBackdrop=(0,T.Ig)(rt)}get lockPosition(){return this._lockPosition}set lockPosition(rt){this._lockPosition=(0,T.Ig)(rt)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(rt){this._flexibleDimensions=(0,T.Ig)(rt)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(rt){this._growAfterOpen=(0,T.Ig)(rt)}get push(){return this._push}set push(rt){this._push=(0,T.Ig)(rt)}constructor(rt,Ke,lt,Ut,ht){this._overlay=rt,this._dir=ht,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=D.w0.EMPTY,this._attachSubscription=D.w0.EMPTY,this._detachSubscription=D.w0.EMPTY,this._positionSubscription=D.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new _.vpe,this.positionChange=new _.vpe,this.attach=new _.vpe,this.detach=new _.vpe,this.overlayKeydown=new _.vpe,this.overlayOutsideClick=new _.vpe,this._templatePortal=new C.UE(Ke,lt),this._scrollStrategyFactory=Ut,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(rt){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),rt.origin&&this.open&&this._position.apply()),rt.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=oe);const rt=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=rt.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=rt.detachments().subscribe(()=>this.detach.emit()),rt.keydownEvents().subscribe(Ke=>{this.overlayKeydown.next(Ke),Ke.keyCode===V.hY&&!this.disableClose&&!(0,V.Vb)(Ke)&&(Ke.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(Ke=>{this.overlayOutsideClick.next(Ke)})}_buildConfig(){const rt=this._position=this.positionStrategy||this._createPositionStrategy(),Ke=new ce({direction:this._dir,positionStrategy:rt,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(Ke.width=this.width),(this.height||0===this.height)&&(Ke.height=this.height),(this.minWidth||0===this.minWidth)&&(Ke.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Ke.minHeight=this.minHeight),this.backdropClass&&(Ke.backdropClass=this.backdropClass),this.panelClass&&(Ke.panelClass=this.panelClass),Ke}_updatePositionStrategy(rt){const Ke=this.positions.map(lt=>({originX:lt.originX,originY:lt.originY,overlayX:lt.overlayX,overlayY:lt.overlayY,offsetX:lt.offsetX||this.offsetX,offsetY:lt.offsetY||this.offsetY,panelClass:lt.panelClass||void 0}));return rt.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(Ke).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const rt=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(rt),rt}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof De?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(rt=>{this.backdropClick.emit(rt)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,d.o)(()=>this.positionChange.observers.length>0)).subscribe(rt=>{this.positionChange.emit(rt),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return Pe.\u0275fac=function(rt){return new(rt||Pe)(_.Y36(Oe),_.Y36(_.Rgc),_.Y36(_.s_b),_.Y36(Fe),_.Y36(w.Is,8))},Pe.\u0275dir=_.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"],standalone:!0,features:[_.TTD]}),Pe})();const pe={provide:Fe,deps:[Oe],useFactory:function Me(Pe){return()=>Pe.scrollStrategies.reposition()}};let Ve=(()=>{class Pe{}return Pe.\u0275fac=function(rt){return new(rt||Pe)},Pe.\u0275mod=_.oAB({type:Pe}),Pe.\u0275inj=_.cJS({providers:[Oe,pe],imports:[w.vT,C.eL,t.Cl,t.Cl]}),Pe})()},3353:(We,q,m)=>{"use strict";m.d(q,{Mq:()=>z,Oy:()=>me,_i:()=>V,ht:()=>J,i$:()=>C,kV:()=>Q,qK:()=>P,sA:()=>ee,t4:()=>T});var t=m(4650),e=m(6895);let _;try{_=typeof Intl<"u"&&Intl.v8BreakIterator}catch{_=!1}let y,T=(()=>{class re{constructor(se){this._platformId=se,this.isBrowser=this._platformId?(0,e.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&&!_)&&typeof CSS<"u"&&!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 re.\u0275fac=function(se){return new(se||re)(t.LFG(t.Lbi))},re.\u0275prov=t.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})();const h=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function P(){if(y)return y;if("object"!=typeof document||!document)return y=new Set(h),y;let re=document.createElement("input");return y=new Set(h.filter(ie=>(re.setAttribute("type",ie),re.type===ie))),y}let d,L,D,Y;function C(re){return function w(){if(null==d&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>d=!0}))}finally{d=d||!1}return d}()?re:!!re.capture}function z(){if(null==D){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return D=!1,D;if("scrollBehavior"in document.documentElement.style)D=!0;else{const re=Element.prototype.scrollTo;D=!!re&&!/\{\s*\[native code\]\s*\}/.test(re.toString())}}return D}function V(){if("object"!=typeof document||!document)return 0;if(null==L){const re=document.createElement("div"),ie=re.style;re.dir="rtl",ie.width="1px",ie.overflow="auto",ie.visibility="hidden",ie.pointerEvents="none",ie.position="absolute";const se=document.createElement("div"),ce=se.style;ce.width="2px",ce.height="1px",re.appendChild(se),document.body.appendChild(re),L=0,0===re.scrollLeft&&(re.scrollLeft=1,L=0===re.scrollLeft?1:2),re.remove()}return L}function Q(re){if(function j(){if(null==Y){const re=typeof document<"u"?document.head:null;Y=!(!re||!re.createShadowRoot&&!re.attachShadow)}return Y}()){const ie=re.getRootNode?re.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&ie instanceof ShadowRoot)return ie}return null}function J(){let re=typeof document<"u"&&document?document.activeElement:null;for(;re&&re.shadowRoot;){const ie=re.shadowRoot.activeElement;if(ie===re)break;re=ie}return re}function ee(re){return re.composedPath?re.composedPath()[0]:re.target}function me(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},4080:(We,q,m)=>{"use strict";m.d(q,{C5:()=>w,Pl:()=>J,UE:()=>C,eL:()=>me,en:()=>D,ig:()=>j,u0:()=>V});var t=m(4650),e=m(6895);class d{attach(se){return this._attachedHost=se,se.attach(this)}detach(){let se=this._attachedHost;null!=se&&(this._attachedHost=null,se.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(se){this._attachedHost=se}}class w extends d{constructor(se,ce,Ce,M,i){super(),this.component=se,this.viewContainerRef=ce,this.injector=Ce,this.componentFactoryResolver=M,this.projectableNodes=i}}class C extends d{constructor(se,ce,Ce,M){super(),this.templateRef=se,this.viewContainerRef=ce,this.context=Ce,this.injector=M}get origin(){return this.templateRef.elementRef}attach(se,ce=this.context){return this.context=ce,super.attach(se)}detach(){return this.context=void 0,super.detach()}}class L extends d{constructor(se){super(),this.element=se instanceof t.SBq?se.nativeElement:se}}class D{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(se){return se instanceof w?(this._attachedPortal=se,this.attachComponentPortal(se)):se instanceof C?(this._attachedPortal=se,this.attachTemplatePortal(se)):this.attachDomPortal&&se instanceof L?(this._attachedPortal=se,this.attachDomPortal(se)):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(se){this._disposeFn=se}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class V extends D{constructor(se,ce,Ce,M,i){super(),this.outletElement=se,this._componentFactoryResolver=ce,this._appRef=Ce,this._defaultInjector=M,this.attachDomPortal=a=>{const f=a.element,l=this._document.createComment("dom-portal");f.parentNode.insertBefore(l,f),this.outletElement.appendChild(f),this._attachedPortal=a,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(f,l)})},this._document=i}attachComponentPortal(se){const Ce=(se.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(se.component);let M;return se.viewContainerRef?(M=se.viewContainerRef.createComponent(Ce,se.viewContainerRef.length,se.injector||se.viewContainerRef.injector,se.projectableNodes||void 0),this.setDisposeFn(()=>M.destroy())):(M=Ce.create(se.injector||this._defaultInjector||t.zs3.NULL),this._appRef.attachView(M.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(M.hostView),M.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(M)),this._attachedPortal=se,M}attachTemplatePortal(se){let ce=se.viewContainerRef,Ce=ce.createEmbeddedView(se.templateRef,se.context,{injector:se.injector});return Ce.rootNodes.forEach(M=>this.outletElement.appendChild(M)),Ce.detectChanges(),this.setDisposeFn(()=>{let M=ce.indexOf(Ce);-1!==M&&ce.remove(M)}),this._attachedPortal=se,Ce}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(se){return se.hostView.rootNodes[0]}}let j=(()=>{class ie extends C{constructor(ce,Ce){super(ce,Ce)}}return ie.\u0275fac=function(ce){return new(ce||ie)(t.Y36(t.Rgc),t.Y36(t.s_b))},ie.\u0275dir=t.lG2({type:ie,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[t.qOj]}),ie})(),J=(()=>{class ie extends D{constructor(ce,Ce,M){super(),this._componentFactoryResolver=ce,this._viewContainerRef=Ce,this._isInitialized=!1,this.attached=new t.vpe,this.attachDomPortal=i=>{const a=i.element,f=this._document.createComment("dom-portal");i.setAttachedHost(this),a.parentNode.insertBefore(f,a),this._getRootNode().appendChild(a),this._attachedPortal=i,super.setDisposeFn(()=>{f.parentNode&&f.parentNode.replaceChild(a,f)})},this._document=M}get portal(){return this._attachedPortal}set portal(ce){this.hasAttached()&&!ce&&!this._isInitialized||(this.hasAttached()&&super.detach(),ce&&super.attach(ce),this._attachedPortal=ce||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(ce){ce.setAttachedHost(this);const Ce=null!=ce.viewContainerRef?ce.viewContainerRef:this._viewContainerRef,i=(ce.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ce.component),a=Ce.createComponent(i,Ce.length,ce.injector||Ce.injector,ce.projectableNodes||void 0);return Ce!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=ce,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(ce){ce.setAttachedHost(this);const Ce=this._viewContainerRef.createEmbeddedView(ce.templateRef,ce.context,{injector:ce.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=ce,this._attachedRef=Ce,this.attached.emit(Ce),Ce}_getRootNode(){const ce=this._viewContainerRef.element.nativeElement;return ce.nodeType===ce.ELEMENT_NODE?ce:ce.parentNode}}return ie.\u0275fac=function(ce){return new(ce||ie)(t.Y36(t._Vd),t.Y36(t.s_b),t.Y36(e.K0))},ie.\u0275dir=t.lG2({type:ie,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[t.qOj]}),ie})(),me=(()=>{class ie{}return ie.\u0275fac=function(ce){return new(ce||ie)},ie.\u0275mod=t.oAB({type:ie}),ie.\u0275inj=t.cJS({}),ie})()},531:(We,q,m)=>{"use strict";m.d(q,{PQ:()=>l,ZD:()=>Ue,mF:()=>f,Cl:()=>at,rL:()=>I});var t=m(1281),e=m(4650),_=m(7579),T=m(9646),s=m(9751),y=m(4968),h=m(4408),P=m(727);const d={schedule(ye){let xe=requestAnimationFrame,fe=cancelAnimationFrame;const{delegate:Oe}=d;Oe&&(xe=Oe.requestAnimationFrame,fe=Oe.cancelAnimationFrame);const oe=xe(Fe=>{fe=void 0,ye(Fe)});return new P.w0(()=>fe?.(oe))},requestAnimationFrame(...ye){const{delegate:xe}=d;return(xe?.requestAnimationFrame||requestAnimationFrame)(...ye)},cancelAnimationFrame(...ye){const{delegate:xe}=d;return(xe?.cancelAnimationFrame||cancelAnimationFrame)(...ye)},delegate:void 0};var C=m(7565);const D=new class L extends C.v{flush(xe){this._active=!0;const fe=this._scheduled;this._scheduled=void 0;const{actions:Oe}=this;let oe;xe=xe||Oe.shift();do{if(oe=xe.execute(xe.state,xe.delay))break}while((xe=Oe[0])&&xe.id===fe&&Oe.shift());if(this._active=!1,oe){for(;(xe=Oe[0])&&xe.id===fe&&Oe.shift();)xe.unsubscribe();throw oe}}}(class w extends h.o{constructor(xe,fe){super(xe,fe),this.scheduler=xe,this.work=fe}requestAsyncId(xe,fe,Oe=0){return null!==Oe&&Oe>0?super.requestAsyncId(xe,fe,Oe):(xe.actions.push(this),xe._scheduled||(xe._scheduled=d.requestAnimationFrame(()=>xe.flush(void 0))))}recycleAsyncId(xe,fe,Oe=0){var oe;if(null!=Oe?Oe>0:this.delay>0)return super.recycleAsyncId(xe,fe,Oe);const{actions:Fe}=xe;null!=fe&&(null===(oe=Fe[Fe.length-1])||void 0===oe?void 0:oe.id)!==fe&&(d.cancelAnimationFrame(fe),xe._scheduled=void 0)}});var V=m(3101),Y=m(3601),j=m(9300),Q=m(2722),J=m(8675),ee=m(3353),me=m(6895),re=m(445);const ie=["contentWrapper"],se=["*"],ce=new e.OlP("VIRTUAL_SCROLL_STRATEGY");let f=(()=>{class ye{constructor(fe,Oe,oe){this._ngZone=fe,this._platform=Oe,this._scrolled=new _.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=oe}register(fe){this.scrollContainers.has(fe)||this.scrollContainers.set(fe,fe.elementScrolled().subscribe(()=>this._scrolled.next(fe)))}deregister(fe){const Oe=this.scrollContainers.get(fe);Oe&&(Oe.unsubscribe(),this.scrollContainers.delete(fe))}scrolled(fe=20){return this._platform.isBrowser?new s.y(Oe=>{this._globalSubscription||this._addGlobalListener();const oe=fe>0?this._scrolled.pipe((0,Y.e)(fe)).subscribe(Oe):this._scrolled.subscribe(Oe);return this._scrolledCount++,()=>{oe.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,T.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((fe,Oe)=>this.deregister(Oe)),this._scrolled.complete()}ancestorScrolled(fe,Oe){const oe=this.getAncestorScrollContainers(fe);return this.scrolled(Oe).pipe((0,j.h)(Fe=>!Fe||oe.indexOf(Fe)>-1))}getAncestorScrollContainers(fe){const Oe=[];return this.scrollContainers.forEach((oe,Fe)=>{this._scrollableContainsElement(Fe,fe)&&Oe.push(Fe)}),Oe}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(fe,Oe){let oe=(0,t.fI)(Oe),Fe=fe.getElementRef().nativeElement;do{if(oe==Fe)return!0}while(oe=oe.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const fe=this._getWindow();return(0,y.R)(fe.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return ye.\u0275fac=function(fe){return new(fe||ye)(e.LFG(e.R0b),e.LFG(ee.t4),e.LFG(me.K0,8))},ye.\u0275prov=e.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),l=(()=>{class ye{constructor(fe,Oe,oe,Fe){this.elementRef=fe,this.scrollDispatcher=Oe,this.ngZone=oe,this.dir=Fe,this._destroyed=new _.x,this._elementScrolled=new s.y(De=>this.ngZone.runOutsideAngular(()=>(0,y.R)(this.elementRef.nativeElement,"scroll").pipe((0,Q.R)(this._destroyed)).subscribe(De)))}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(fe){const Oe=this.elementRef.nativeElement,oe=this.dir&&"rtl"==this.dir.value;null==fe.left&&(fe.left=oe?fe.end:fe.start),null==fe.right&&(fe.right=oe?fe.start:fe.end),null!=fe.bottom&&(fe.top=Oe.scrollHeight-Oe.clientHeight-fe.bottom),oe&&0!=(0,ee._i)()?(null!=fe.left&&(fe.right=Oe.scrollWidth-Oe.clientWidth-fe.left),2==(0,ee._i)()?fe.left=fe.right:1==(0,ee._i)()&&(fe.left=fe.right?-fe.right:fe.right)):null!=fe.right&&(fe.left=Oe.scrollWidth-Oe.clientWidth-fe.right),this._applyScrollToOptions(fe)}_applyScrollToOptions(fe){const Oe=this.elementRef.nativeElement;(0,ee.Mq)()?Oe.scrollTo(fe):(null!=fe.top&&(Oe.scrollTop=fe.top),null!=fe.left&&(Oe.scrollLeft=fe.left))}measureScrollOffset(fe){const Oe="left",Fe=this.elementRef.nativeElement;if("top"==fe)return Fe.scrollTop;if("bottom"==fe)return Fe.scrollHeight-Fe.clientHeight-Fe.scrollTop;const De=this.dir&&"rtl"==this.dir.value;return"start"==fe?fe=De?"right":Oe:"end"==fe&&(fe=De?Oe:"right"),De&&2==(0,ee._i)()?fe==Oe?Fe.scrollWidth-Fe.clientWidth-Fe.scrollLeft:Fe.scrollLeft:De&&1==(0,ee._i)()?fe==Oe?Fe.scrollLeft+Fe.scrollWidth-Fe.clientWidth:-Fe.scrollLeft:fe==Oe?Fe.scrollLeft:Fe.scrollWidth-Fe.clientWidth-Fe.scrollLeft}}return ye.\u0275fac=function(fe){return new(fe||ye)(e.Y36(e.SBq),e.Y36(f),e.Y36(e.R0b),e.Y36(re.Is,8))},ye.\u0275dir=e.lG2({type:ye,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),ye})(),I=(()=>{class ye{constructor(fe,Oe,oe){this._platform=fe,this._change=new _.x,this._changeListener=Fe=>{this._change.next(Fe)},this._document=oe,Oe.runOutsideAngular(()=>{if(fe.isBrowser){const Fe=this._getWindow();Fe.addEventListener("resize",this._changeListener),Fe.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const fe=this._getWindow();fe.removeEventListener("resize",this._changeListener),fe.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const fe={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),fe}getViewportRect(){const fe=this.getViewportScrollPosition(),{width:Oe,height:oe}=this.getViewportSize();return{top:fe.top,left:fe.left,bottom:fe.top+oe,right:fe.left+Oe,height:oe,width:Oe}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const fe=this._document,Oe=this._getWindow(),oe=fe.documentElement,Fe=oe.getBoundingClientRect();return{top:-Fe.top||fe.body.scrollTop||Oe.scrollY||oe.scrollTop||0,left:-Fe.left||fe.body.scrollLeft||Oe.scrollX||oe.scrollLeft||0}}change(fe=20){return fe>0?this._change.pipe((0,Y.e)(fe)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const fe=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:fe.innerWidth,height:fe.innerHeight}:{width:0,height:0}}}return ye.\u0275fac=function(fe){return new(fe||ye)(e.LFG(ee.t4),e.LFG(e.R0b),e.LFG(me.K0,8))},ye.\u0275prov=e.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})();const k=new e.OlP("VIRTUAL_SCROLLABLE");let x=(()=>{class ye extends l{constructor(fe,Oe,oe,Fe){super(fe,Oe,oe,Fe)}measureViewportSize(fe){const Oe=this.elementRef.nativeElement;return"horizontal"===fe?Oe.clientWidth:Oe.clientHeight}}return ye.\u0275fac=function(fe){return new(fe||ye)(e.Y36(e.SBq),e.Y36(f),e.Y36(e.R0b),e.Y36(re.Is,8))},ye.\u0275dir=e.lG2({type:ye,features:[e.qOj]}),ye})();const g=typeof requestAnimationFrame<"u"?D:V.E;let W=(()=>{class ye extends x{get orientation(){return this._orientation}set orientation(fe){this._orientation!==fe&&(this._orientation=fe,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(fe){this._appendOnly=(0,t.Ig)(fe)}constructor(fe,Oe,oe,Fe,De,he,Me,pe){super(fe,he,oe,De),this.elementRef=fe,this._changeDetectorRef=Oe,this._scrollStrategy=Fe,this.scrollable=pe,this._platform=(0,e.f3M)(ee.t4),this._detachedSubject=new _.x,this._renderedRangeSubject=new _.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new s.y(Ve=>this._scrollStrategy.scrolledIndexChange.subscribe(Qe=>Promise.resolve().then(()=>this.ngZone.run(()=>Ve.next(Qe))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=P.w0.EMPTY,this._viewportChanges=Me.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe((0,J.O)(null),(0,Y.e)(0,g)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(fe){this.ngZone.runOutsideAngular(()=>{this._forOf=fe,this._forOf.dataStream.pipe((0,Q.R)(this._detachedSubject)).subscribe(Oe=>{const oe=Oe.length;oe!==this._dataLength&&(this._dataLength=oe,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(fe){return this.getElementRef().nativeElement.getBoundingClientRect()[fe]}setTotalContentSize(fe){this._totalContentSize!==fe&&(this._totalContentSize=fe,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(fe){(function n(ye,xe){return ye.start==xe.start&&ye.end==xe.end})(this._renderedRange,fe)||(this.appendOnly&&(fe={start:0,end:Math.max(this._renderedRange.end,fe.end)}),this._renderedRangeSubject.next(this._renderedRange=fe),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(fe,Oe="to-start"){fe=this.appendOnly&&"to-start"===Oe?0:fe;const Fe="horizontal"==this.orientation,De=Fe?"X":"Y";let Me=`translate${De}(${Number((Fe&&this.dir&&"rtl"==this.dir.value?-1:1)*fe)}px)`;this._renderedContentOffset=fe,"to-end"===Oe&&(Me+=` translate${De}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=Me&&(this._renderedContentTransform=Me,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(fe,Oe="auto"){const oe={behavior:Oe};"horizontal"===this.orientation?oe.start=fe:oe.top=fe,this.scrollable.scrollTo(oe)}scrollToIndex(fe,Oe="auto"){this._scrollStrategy.scrollToIndex(fe,Oe)}measureScrollOffset(fe){let Oe;return Oe=this.scrollable==this?oe=>super.measureScrollOffset(oe):oe=>this.scrollable.measureScrollOffset(oe),Math.max(0,Oe(fe??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(fe){let Oe;const De="rtl"==this.dir?.value;Oe="start"==fe?De?"right":"left":"end"==fe?De?"left":"right":fe||("horizontal"===this.orientation?"left":"top");const he=this.scrollable.measureBoundingClientRectWithScrollOffset(Oe);return this.elementRef.nativeElement.getBoundingClientRect()[Oe]-he}measureRenderedContentSize(){const fe=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?fe.offsetWidth:fe.offsetHeight}measureRangeSize(fe){return this._forOf?this._forOf.measureRangeSize(fe,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(fe){fe&&this._runAfterChangeDetection.push(fe),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const fe=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const Oe of fe)Oe()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return ye.\u0275fac=function(fe){return new(fe||ye)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(ce,8),e.Y36(re.Is,8),e.Y36(f),e.Y36(I),e.Y36(k,8))},ye.\u0275cmp=e.Xpm({type:ye,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(fe,Oe){if(1&fe&&e.Gf(ie,7),2&fe){let oe;e.iGM(oe=e.CRH())&&(Oe._contentWrapper=oe.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(fe,Oe){2&fe&&e.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===Oe.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==Oe.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[e._Bn([{provide:l,useFactory:(xe,fe)=>xe||fe,deps:[[new e.FiY,new e.tBr(k)],ye]}]),e.qOj,e.jDz],ngContentSelectors:se,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(fe,Oe){1&fe&&(e.F$t(),e.TgZ(0,"div",0,1),e.Hsn(2),e.qZA(),e._UZ(3,"div",2)),2&fe&&(e.xp6(3),e.Udp("width",Oe._totalContentWidth)("height",Oe._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),ye})(),Ue=(()=>{class ye{}return ye.\u0275fac=function(fe){return new(fe||ye)},ye.\u0275mod=e.oAB({type:ye}),ye.\u0275inj=e.cJS({}),ye})(),at=(()=>{class ye{}return ye.\u0275fac=function(fe){return new(fe||ye)},ye.\u0275mod=e.oAB({type:ye}),ye.\u0275inj=e.cJS({imports:[re.vT,Ue,W,re.vT,Ue]}),ye})()},2138:(We,q,m)=>{"use strict";m.d(q,{B8:()=>ee,KL:()=>D,U5:()=>ie,be:()=>J,gx:()=>Q,po:()=>re,st:()=>me,u6:()=>z});var t=m(4761),e=m(445),_=m(1281),T=m(9521),s=m(4650),y=m(3353),h=m(7579),P=m(9646),d=m(8675),w=m(2722);function C(se,ce){1&se&&s.Hsn(0)}const L=["*"];let D=(()=>{class se{constructor(Ce){this._elementRef=Ce}focus(){this._elementRef.nativeElement.focus()}}return se.\u0275fac=function(Ce){return new(Ce||se)(s.Y36(s.SBq))},se.\u0275dir=s.lG2({type:se,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),se})(),z=(()=>{class se{constructor(Ce){this.template=Ce}}return se.\u0275fac=function(Ce){return new(Ce||se)(s.Y36(s.Rgc))},se.\u0275dir=s.lG2({type:se,selectors:[["","cdkStepLabel",""]]}),se})(),V=0;const Q=new s.OlP("STEPPER_GLOBAL_OPTIONS");let J=(()=>{class se{get editable(){return this._editable}set editable(Ce){this._editable=(0,_.Ig)(Ce)}get optional(){return this._optional}set optional(Ce){this._optional=(0,_.Ig)(Ce)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(Ce){this._completedOverride=(0,_.Ig)(Ce)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(Ce){this._customError=(0,_.Ig)(Ce)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(Ce,M){this._stepper=Ce,this.interacted=!1,this.interactedStream=new s.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=M||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}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(){return this._stepperOptions.showError??null!=this._customError}}return se.\u0275fac=function(Ce){return new(Ce||se)(s.Y36((0,s.Gpc)(()=>ee)),s.Y36(Q,8))},se.\u0275cmp=s.Xpm({type:se,selectors:[["cdk-step"]],contentQueries:function(Ce,M,i){if(1&Ce&&s.Suo(i,z,5),2&Ce){let a;s.iGM(a=s.CRH())&&(M.stepLabel=a.first)}},viewQuery:function(Ce,M){if(1&Ce&&s.Gf(s.Rgc,7),2&Ce){let i;s.iGM(i=s.CRH())&&(M.content=i.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:[s.TTD],ngContentSelectors:L,decls:1,vars:0,template:function(Ce,M){1&Ce&&(s.F$t(),s.YNc(0,C,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),se})(),ee=(()=>{class se{get linear(){return this._linear}set linear(Ce){this._linear=(0,_.Ig)(Ce)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Ce){const M=(0,_.su)(Ce);this.steps&&this._steps?(this._isValidIndex(M),this.selected?._markAsInteracted(),this._selectedIndex!==M&&!this._anyControlsInvalidOrPending(M)&&(M>=this._selectedIndex||this.steps.toArray()[M].editable)&&this._updateSelectedItemIndex(M)):this._selectedIndex=M}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(Ce){this.selectedIndex=Ce&&this.steps?this.steps.toArray().indexOf(Ce):-1}get orientation(){return this._orientation}set orientation(Ce){this._orientation=Ce,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===Ce)}constructor(Ce,M,i){this._dir=Ce,this._changeDetectorRef=M,this._elementRef=i,this._destroyed=new h.x,this.steps=new s.n_E,this._sortedHeaders=new s.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new s.vpe,this._orientation="horizontal",this._groupId=V++}ngAfterContentInit(){this._steps.changes.pipe((0,d.O)(this._steps),(0,w.R)(this._destroyed)).subscribe(Ce=>{this.steps.reset(Ce.filter(M=>M._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,d.O)(this._stepHeader),(0,w.R)(this._destroyed)).subscribe(Ce=>{this._sortedHeaders.reset(Ce.toArray().sort((M,i)=>M._elementRef.nativeElement.compareDocumentPosition(i._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new t.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,P.of)()).pipe((0,d.O)(this._layoutDirection()),(0,w.R)(this._destroyed)).subscribe(Ce=>this._keyManager.withHorizontalOrientation(Ce)),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._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(Ce=>Ce.reset()),this._stateChanged()}_getStepLabelId(Ce){return`cdk-step-label-${this._groupId}-${Ce}`}_getStepContentId(Ce){return`cdk-step-content-${this._groupId}-${Ce}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(Ce){const M=Ce-this._selectedIndex;return M<0?"rtl"===this._layoutDirection()?"next":"previous":M>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(Ce,M="number"){const i=this.steps.toArray()[Ce],a=this._isCurrentStep(Ce);return i._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(i,a):this._getGuidelineLogic(i,a,M)}_getDefaultIndicatorLogic(Ce,M){return Ce._showError()&&Ce.hasError&&!M?"error":!Ce.completed||M?"number":Ce.editable?"edit":"done"}_getGuidelineLogic(Ce,M,i="number"){return Ce._showError()&&Ce.hasError&&!M?"error":Ce.completed&&!M?"done":Ce.completed&&M?i:Ce.editable&&M?"edit":i}_isCurrentStep(Ce){return this._selectedIndex===Ce}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(Ce){const M=this.steps.toArray();this.selectionChange.emit({selectedIndex:Ce,previouslySelectedIndex:this._selectedIndex,selectedStep:M[Ce],previouslySelectedStep:M[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(Ce):this._keyManager.updateActiveItem(Ce),this._selectedIndex=Ce,this._stateChanged()}_onKeydown(Ce){const M=(0,T.Vb)(Ce),i=Ce.keyCode,a=this._keyManager;null==a.activeItemIndex||M||i!==T.L_&&i!==T.K5?a.setFocusOrigin("keyboard").onKeydown(Ce):(this.selectedIndex=a.activeItemIndex,Ce.preventDefault())}_anyControlsInvalidOrPending(Ce){return!!(this._linear&&Ce>=0)&&this.steps.toArray().slice(0,Ce).some(M=>{const i=M.stepControl;return(i?i.invalid||i.pending||!M.interacted:!M.completed)&&!M.optional&&!M._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const Ce=this._elementRef.nativeElement,M=(0,y.ht)();return Ce===M||Ce.contains(M)}_isValidIndex(Ce){return Ce>-1&&(!this.steps||Ce{class se{constructor(Ce){this._stepper=Ce,this.type="submit"}}return se.\u0275fac=function(Ce){return new(Ce||se)(s.Y36(ee))},se.\u0275dir=s.lG2({type:se,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(Ce,M){1&Ce&&s.NdJ("click",function(){return M._stepper.next()}),2&Ce&&s.Ikx("type",M.type)},inputs:{type:"type"}}),se})(),re=(()=>{class se{constructor(Ce){this._stepper=Ce,this.type="button"}}return se.\u0275fac=function(Ce){return new(Ce||se)(s.Y36(ee))},se.\u0275dir=s.lG2({type:se,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(Ce,M){1&Ce&&s.NdJ("click",function(){return M._stepper.previous()}),2&Ce&&s.Ikx("type",M.type)},inputs:{type:"type"}}),se})(),ie=(()=>{class se{}return se.\u0275fac=function(Ce){return new(Ce||se)},se.\u0275mod=s.oAB({type:se}),se.\u0275inj=s.cJS({imports:[e.vT]}),se})()},7851:(We,q,m)=>{"use strict";m.d(q,{HI:()=>V,Hs:()=>ce,Ud:()=>l,VY:()=>z,XJ:()=>f,Xx:()=>i,_0:()=>se,cu:()=>Y,nZ:()=>I,rO:()=>Q});var t=m(5017),e=m(5191),_=m(7579),T=m(1135),s=m(9646),y=m(5698),h=m(9300),P=m(2722),d=m(4650),w=m(1281),C=m(445);class L{constructor(){this.expansionModel=new t.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 n=[x];n.push(...this.getDescendants(x)),this.expansionModel.select(...n.map(g=>this._trackByValue(g)))}collapseDescendants(x){let n=[x];n.push(...this.getDescendants(x)),this.expansionModel.deselect(...n.map(g=>this._trackByValue(g)))}_trackByValue(x){return this.trackBy?this.trackBy(x):x}}class z extends L{constructor(x,n){super(),this.getChildren=x,this.options=n,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const x=this.dataNodes.reduce((n,g)=>[...n,...this.getDescendants(g),g],[]);this.expansionModel.select(...x.map(n=>this._trackByValue(n)))}getDescendants(x){const n=[];return this._getDescendants(n,x),n.splice(1)}_getDescendants(x,n){x.push(n);const g=this.getChildren(n);Array.isArray(g)?g.forEach(W=>this._getDescendants(x,W)):(0,e.b)(g)&&g.pipe((0,y.q)(1),(0,h.h)(Boolean)).subscribe(W=>{for(const O of W)this._getDescendants(x,O)})}}const V=new d.OlP("CDK_TREE_NODE_OUTLET_NODE");let Y=(()=>{class k{constructor(n,g){this.viewContainer=n,this._node=g}}return k.\u0275fac=function(n){return new(n||k)(d.Y36(d.s_b),d.Y36(V,8))},k.\u0275dir=d.lG2({type:k,selectors:[["","cdkTreeNodeOutlet",""]]}),k})();class j{constructor(x){this.$implicit=x}}let Q=(()=>{class k{constructor(n){this.template=n}}return k.\u0275fac=function(n){return new(n||k)(d.Y36(d.Rgc))},k.\u0275dir=d.lG2({type:k,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),k})(),se=(()=>{class k{get dataSource(){return this._dataSource}set dataSource(n){this._dataSource!==n&&this._switchDataSource(n)}constructor(n,g){this._differs=n,this._changeDetectorRef=g,this._onDestroy=new _.x,this._levels=new Map,this.viewChange=new T.X({start:0,end:Number.MAX_VALUE})}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 n=this._nodeDefs.filter(g=>!g.when);this._defaultNodeDef=n[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(n){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),n||this._nodeOutlet.viewContainer.clear(),this._dataSource=n,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let n;(0,t.Z9)(this._dataSource)?n=this._dataSource.connect(this):(0,e.b)(this._dataSource)?n=this._dataSource:Array.isArray(this._dataSource)&&(n=(0,s.of)(this._dataSource)),n&&(this._dataSubscription=n.pipe((0,P.R)(this._onDestroy)).subscribe(g=>this.renderNodeChanges(g)))}renderNodeChanges(n,g=this._dataDiffer,W=this._nodeOutlet.viewContainer,O){const U=g.diff(n);U&&(U.forEachOperation((ge,nt,Ue)=>{if(null==ge.previousIndex)this.insertNode(n[Ue],Ue,W,O);else if(null==Ue)W.remove(nt),this._levels.delete(ge.item);else{const at=W.get(nt);W.move(at,Ue)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(n,g){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(O=>O.when&&O.when(g,n))||this._defaultNodeDef}insertNode(n,g,W,O){const U=this._getNodeDef(n,g),ge=new j(n);ge.level=this.treeControl.getLevel?this.treeControl.getLevel(n):typeof O<"u"&&this._levels.has(O)?this._levels.get(O)+1:0,this._levels.set(n,ge.level),(W||this._nodeOutlet.viewContainer).createEmbeddedView(U.template,ge,g),ce.mostRecentTreeNode&&(ce.mostRecentTreeNode.data=n)}}return k.\u0275fac=function(n){return new(n||k)(d.Y36(d.ZZ4),d.Y36(d.sBO))},k.\u0275cmp=d.Xpm({type:k,selectors:[["cdk-tree"]],contentQueries:function(n,g,W){if(1&n&&d.Suo(W,Q,5),2&n){let O;d.iGM(O=d.CRH())&&(g._nodeDefs=O)}},viewQuery:function(n,g){if(1&n&&d.Gf(Y,7),2&n){let W;d.iGM(W=d.CRH())&&(g._nodeOutlet=W.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(n,g){1&n&&d.GkF(0,0)},dependencies:[Y],encapsulation:2}),k})(),ce=(()=>{class k{get role(){return"treeitem"}set role(n){this._elementRef.nativeElement.setAttribute("role",n)}get data(){return this._data}set data(n){n!==this._data&&(this._data=n,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}constructor(n,g){this._elementRef=n,this._tree=g,this._destroyed=new _.x,this._dataChanges=new _.x,k.mostRecentTreeNode=this,this.role="treeitem"}ngOnInit(){this._parentNodeAriaLevel=function Ce(k){let x=k.parentElement;for(;x&&!M(x);)x=x.parentElement;return x?x.classList.contains("cdk-nested-tree-node")?(0,w.su)(x.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){k.mostRecentTreeNode===this&&(k.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return k.mostRecentTreeNode=null,k.\u0275fac=function(n){return new(n||k)(d.Y36(d.SBq),d.Y36(se))},k.\u0275dir=d.lG2({type:k,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(n,g){2&n&&d.uIk("aria-expanded",g.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),k})();function M(k){const x=k.classList;return!(!x?.contains("cdk-nested-tree-node")&&!x?.contains("cdk-tree"))}let i=(()=>{class k extends ce{constructor(n,g,W){super(n,g),this._differs=W}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const n=this._tree.treeControl.getChildren(this.data);Array.isArray(n)?this.updateChildrenNodes(n):(0,e.b)(n)&&n.pipe((0,P.R)(this._destroyed)).subscribe(g=>this.updateChildrenNodes(g)),this.nodeOutlet.changes.pipe((0,P.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(n){const g=this._getNodeOutlet();n&&(this._children=n),g&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,g.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const n=this._getNodeOutlet();n&&(n.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const n=this.nodeOutlet;return n&&n.find(g=>!g._node||g._node===this)}}return k.\u0275fac=function(n){return new(n||k)(d.Y36(d.SBq),d.Y36(se),d.Y36(d.ZZ4))},k.\u0275dir=d.lG2({type:k,selectors:[["cdk-nested-tree-node"]],contentQueries:function(n,g,W){if(1&n&&d.Suo(W,Y,5),2&n){let O;d.iGM(O=d.CRH())&&(g.nodeOutlet=O)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[d._Bn([{provide:ce,useExisting:k},{provide:V,useExisting:k}]),d.qOj]}),k})();const a=/([A-Za-z%]+)$/;let f=(()=>{class k{get level(){return this._level}set level(n){this._setLevelInput(n)}get indent(){return this._indent}set indent(n){this._setIndentInput(n)}constructor(n,g,W,O){this._treeNode=n,this._tree=g,this._element=W,this._dir=O,this._destroyed=new _.x,this.indentUnits="px",this._indent=40,this._setPadding(),O&&O.change.pipe((0,P.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),n._dataChanges.subscribe(()=>this._setPadding())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const n=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,g=null==this._level?n:this._level;return"number"==typeof g?`${g*this._indent}${this.indentUnits}`:null}_setPadding(n=!1){const g=this._paddingIndent();if(g!==this._currentPadding||n){const W=this._element.nativeElement,O=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",U="paddingLeft"===O?"paddingRight":"paddingLeft";W.style[O]=g||"",W.style[U]="",this._currentPadding=g}}_setLevelInput(n){this._level=(0,w.su)(n,null),this._setPadding()}_setIndentInput(n){let g=n,W="px";if("string"==typeof n){const O=n.split(a);g=O[0],W=O[1]||W}this.indentUnits=W,this._indent=(0,w.su)(g),this._setPadding()}}return k.\u0275fac=function(n){return new(n||k)(d.Y36(ce),d.Y36(se),d.Y36(d.SBq),d.Y36(C.Is,8))},k.\u0275dir=d.lG2({type:k,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),k})(),l=(()=>{class k{get recursive(){return this._recursive}set recursive(n){this._recursive=(0,w.Ig)(n)}constructor(n,g){this._tree=n,this._treeNode=g,this._recursive=!1}_toggle(n){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),n.stopPropagation()}}return k.\u0275fac=function(n){return new(n||k)(d.Y36(se),d.Y36(ce))},k.\u0275dir=d.lG2({type:k,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(n,g){1&n&&d.NdJ("click",function(O){return g._toggle(O)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),k})(),I=(()=>{class k{}return k.\u0275fac=function(n){return new(n||k)},k.\u0275mod=d.oAB({type:k}),k.\u0275inj=d.cJS({}),k})()},6895:(We,q,m)=>{"use strict";m.d(q,{Do:()=>J,ED:()=>ta,EM:()=>Cr,HT:()=>T,JF:()=>cr,JJ:()=>Io,K0:()=>y,Mx:()=>Yi,NF:()=>Hr,Nd:()=>Ia,O5:()=>gi,OU:()=>ao,Ov:()=>Tn,PC:()=>Kt,PM:()=>sa,RF:()=>oa,S$:()=>Y,Ts:()=>Nr,V_:()=>d,Ye:()=>ee,b0:()=>Q,bD:()=>Aa,ez:()=>ko,gd:()=>ia,i8:()=>Vn,mk:()=>_e,n9:()=>Ea,q:()=>_,rS:()=>zn,sg:()=>vi,tP:()=>ri,uU:()=>jn,w_:()=>s});var t=m(4650);let e=null;function _(){return e}function T(ze){e||(e=ze)}class s{}const y=new t.OlP("DocumentToken");let h=(()=>{class ze{historyGo(te){throw new Error("Not implemented")}}return ze.\u0275fac=function(te){return new(te||ze)},ze.\u0275prov=t.Yz7({token:ze,factory:function(){return function P(){return(0,t.LFG)(w)}()},providedIn:"platform"}),ze})();const d=new t.OlP("Location Initialized");let w=(()=>{class ze extends h{constructor(te){super(),this._doc=te,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return _().getBaseHref(this._doc)}onPopState(te){const Ee=_().getGlobalEventTarget(this._doc,"window");return Ee.addEventListener("popstate",te,!1),()=>Ee.removeEventListener("popstate",te)}onHashChange(te){const Ee=_().getGlobalEventTarget(this._doc,"window");return Ee.addEventListener("hashchange",te,!1),()=>Ee.removeEventListener("hashchange",te)}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(te){this._location.pathname=te}pushState(te,Ee,tt){C()?this._history.pushState(te,Ee,tt):this._location.hash=tt}replaceState(te,Ee,tt){C()?this._history.replaceState(te,Ee,tt):this._location.hash=tt}forward(){this._history.forward()}back(){this._history.back()}historyGo(te=0){this._history.go(te)}getState(){return this._history.state}}return ze.\u0275fac=function(te){return new(te||ze)(t.LFG(y))},ze.\u0275prov=t.Yz7({token:ze,factory:function(){return function L(){return new w((0,t.LFG)(y))}()},providedIn:"platform"}),ze})();function C(){return!!window.history.pushState}function D(ze,ne){if(0==ze.length)return ne;if(0==ne.length)return ze;let te=0;return ze.endsWith("/")&&te++,ne.startsWith("/")&&te++,2==te?ze+ne.substring(1):1==te?ze+ne:ze+"/"+ne}function z(ze){const ne=ze.match(/#|\?|$/),te=ne&&ne.index||ze.length;return ze.slice(0,te-("/"===ze[te-1]?1:0))+ze.slice(te)}function V(ze){return ze&&"?"!==ze[0]?"?"+ze:ze}let Y=(()=>{class ze{historyGo(te){throw new Error("Not implemented")}}return ze.\u0275fac=function(te){return new(te||ze)},ze.\u0275prov=t.Yz7({token:ze,factory:function(){return(0,t.f3M)(Q)},providedIn:"root"}),ze})();const j=new t.OlP("appBaseHref");let Q=(()=>{class ze extends Y{constructor(te,Ee){super(),this._platformLocation=te,this._removeListenerFns=[],this._baseHref=Ee??this._platformLocation.getBaseHrefFromDOM()??(0,t.f3M)(y).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(te){this._removeListenerFns.push(this._platformLocation.onPopState(te),this._platformLocation.onHashChange(te))}getBaseHref(){return this._baseHref}prepareExternalUrl(te){return D(this._baseHref,te)}path(te=!1){const Ee=this._platformLocation.pathname+V(this._platformLocation.search),tt=this._platformLocation.hash;return tt&&te?`${Ee}${tt}`:Ee}pushState(te,Ee,tt,Ne){const Rt=this.prepareExternalUrl(tt+V(Ne));this._platformLocation.pushState(te,Ee,Rt)}replaceState(te,Ee,tt,Ne){const Rt=this.prepareExternalUrl(tt+V(Ne));this._platformLocation.replaceState(te,Ee,Rt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(te=0){this._platformLocation.historyGo?.(te)}}return ze.\u0275fac=function(te){return new(te||ze)(t.LFG(h),t.LFG(j,8))},ze.\u0275prov=t.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})(),J=(()=>{class ze extends Y{constructor(te,Ee){super(),this._platformLocation=te,this._baseHref="",this._removeListenerFns=[],null!=Ee&&(this._baseHref=Ee)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(te){this._removeListenerFns.push(this._platformLocation.onPopState(te),this._platformLocation.onHashChange(te))}getBaseHref(){return this._baseHref}path(te=!1){let Ee=this._platformLocation.hash;return null==Ee&&(Ee="#"),Ee.length>0?Ee.substring(1):Ee}prepareExternalUrl(te){const Ee=D(this._baseHref,te);return Ee.length>0?"#"+Ee:Ee}pushState(te,Ee,tt,Ne){let Rt=this.prepareExternalUrl(tt+V(Ne));0==Rt.length&&(Rt=this._platformLocation.pathname),this._platformLocation.pushState(te,Ee,Rt)}replaceState(te,Ee,tt,Ne){let Rt=this.prepareExternalUrl(tt+V(Ne));0==Rt.length&&(Rt=this._platformLocation.pathname),this._platformLocation.replaceState(te,Ee,Rt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(te=0){this._platformLocation.historyGo?.(te)}}return ze.\u0275fac=function(te){return new(te||ze)(t.LFG(h),t.LFG(j,8))},ze.\u0275prov=t.Yz7({token:ze,factory:ze.\u0275fac}),ze})(),ee=(()=>{class ze{constructor(te){this._subject=new t.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=te;const Ee=this._locationStrategy.getBaseHref();this._basePath=function se(ze){if(new RegExp("^(https?:)?//").test(ze)){const[,te]=ze.split(/\/\/[^\/]+/);return te}return ze}(z(ie(Ee))),this._locationStrategy.onPopState(tt=>{this._subject.emit({url:this.path(!0),pop:!0,state:tt.state,type:tt.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(te=!1){return this.normalize(this._locationStrategy.path(te))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(te,Ee=""){return this.path()==this.normalize(te+V(Ee))}normalize(te){return ze.stripTrailingSlash(function re(ze,ne){if(!ze||!ne.startsWith(ze))return ne;const te=ne.substring(ze.length);return""===te||["/",";","?","#"].includes(te[0])?te:ne}(this._basePath,ie(te)))}prepareExternalUrl(te){return te&&"/"!==te[0]&&(te="/"+te),this._locationStrategy.prepareExternalUrl(te)}go(te,Ee="",tt=null){this._locationStrategy.pushState(tt,"",te,Ee),this._notifyUrlChangeListeners(this.prepareExternalUrl(te+V(Ee)),tt)}replaceState(te,Ee="",tt=null){this._locationStrategy.replaceState(tt,"",te,Ee),this._notifyUrlChangeListeners(this.prepareExternalUrl(te+V(Ee)),tt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(te=0){this._locationStrategy.historyGo?.(te)}onUrlChange(te){return this._urlChangeListeners.push(te),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Ee=>{this._notifyUrlChangeListeners(Ee.url,Ee.state)})),()=>{const Ee=this._urlChangeListeners.indexOf(te);this._urlChangeListeners.splice(Ee,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(te="",Ee){this._urlChangeListeners.forEach(tt=>tt(te,Ee))}subscribe(te,Ee,tt){return this._subject.subscribe({next:te,error:Ee,complete:tt})}}return ze.normalizeQueryParams=V,ze.joinWithSlash=D,ze.stripTrailingSlash=z,ze.\u0275fac=function(te){return new(te||ze)(t.LFG(Y))},ze.\u0275prov=t.Yz7({token:ze,factory:function(){return function me(){return new ee((0,t.LFG)(Y))}()},providedIn:"root"}),ze})();function ie(ze){return ze.replace(/\/index.html$/,"")}var Ce=(()=>((Ce=Ce||{})[Ce.Decimal=0]="Decimal",Ce[Ce.Percent=1]="Percent",Ce[Ce.Currency=2]="Currency",Ce[Ce.Scientific=3]="Scientific",Ce))(),i=(()=>((i=i||{})[i.Format=0]="Format",i[i.Standalone=1]="Standalone",i))(),a=(()=>((a=a||{})[a.Narrow=0]="Narrow",a[a.Abbreviated=1]="Abbreviated",a[a.Wide=2]="Wide",a[a.Short=3]="Short",a))(),f=(()=>((f=f||{})[f.Short=0]="Short",f[f.Medium=1]="Medium",f[f.Long=2]="Long",f[f.Full=3]="Full",f))(),l=(()=>((l=l||{})[l.Decimal=0]="Decimal",l[l.Group=1]="Group",l[l.List=2]="List",l[l.PercentSign=3]="PercentSign",l[l.PlusSign=4]="PlusSign",l[l.MinusSign=5]="MinusSign",l[l.Exponential=6]="Exponential",l[l.SuperscriptingExponent=7]="SuperscriptingExponent",l[l.PerMille=8]="PerMille",l[l.Infinity=9]="Infinity",l[l.NaN=10]="NaN",l[l.TimeSeparator=11]="TimeSeparator",l[l.CurrencyDecimal=12]="CurrencyDecimal",l[l.CurrencyGroup=13]="CurrencyGroup",l))();function U(ze,ne){return pe((0,t.cg1)(ze)[t.wAp.DateFormat],ne)}function ge(ze,ne){return pe((0,t.cg1)(ze)[t.wAp.TimeFormat],ne)}function nt(ze,ne){return pe((0,t.cg1)(ze)[t.wAp.DateTimeFormat],ne)}function Ue(ze,ne){const te=(0,t.cg1)(ze),Ee=te[t.wAp.NumberSymbols][ne];if(typeof Ee>"u"){if(ne===l.CurrencyDecimal)return te[t.wAp.NumberSymbols][l.Decimal];if(ne===l.CurrencyGroup)return te[t.wAp.NumberSymbols][l.Group]}return Ee}function Fe(ze){if(!ze[t.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${ze[t.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function pe(ze,ne){for(let te=ne;te>-1;te--)if(typeof ze[te]<"u")return ze[te];throw new Error("Locale data API: locale data undefined")}function Ve(ze){const[ne,te]=ze.split(":");return{hours:+ne,minutes:+te}}const rt=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ke={},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 Ut=(()=>((Ut=Ut||{})[Ut.Short=0]="Short",Ut[Ut.ShortGMT=1]="ShortGMT",Ut[Ut.Long=2]="Long",Ut[Ut.Extended=3]="Extended",Ut))(),ht=(()=>((ht=ht||{})[ht.FullYear=0]="FullYear",ht[ht.Month=1]="Month",ht[ht.Date=2]="Date",ht[ht.Hours=3]="Hours",ht[ht.Minutes=4]="Minutes",ht[ht.Seconds=5]="Seconds",ht[ht.FractionalSeconds=6]="FractionalSeconds",ht[ht.Day=7]="Day",ht))(),Ge=(()=>((Ge=Ge||{})[Ge.DayPeriods=0]="DayPeriods",Ge[Ge.Days=1]="Days",Ge[Ge.Months=2]="Months",Ge[Ge.Eras=3]="Eras",Ge))();function yt(ze,ne,te,Ee){let tt=function ot(ze){if(St(ze))return ze;if("number"==typeof ze&&!isNaN(ze))return new Date(ze);if("string"==typeof ze){if(ze=ze.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(ze)){const[tt,Ne=1,Rt=1]=ze.split("-").map(ni=>+ni);return be(tt,Ne-1,Rt)}const te=parseFloat(ze);if(!isNaN(ze-te))return new Date(te);let Ee;if(Ee=ze.match(rt))return function ft(ze){const ne=new Date(0);let te=0,Ee=0;const tt=ze[8]?ne.setUTCFullYear:ne.setFullYear,Ne=ze[8]?ne.setUTCHours:ne.setHours;ze[9]&&(te=Number(ze[9]+ze[10]),Ee=Number(ze[9]+ze[11])),tt.call(ne,Number(ze[1]),Number(ze[2])-1,Number(ze[3]));const Rt=Number(ze[4]||0)-te,ni=Number(ze[5]||0)-Ee,ti=Number(ze[6]||0),bi=Math.floor(1e3*parseFloat("0."+(ze[7]||0)));return Ne.call(ne,Rt,ni,ti,bi),ne}(Ee)}const ne=new Date(ze);if(!St(ne))throw new Error(`Unable to convert "${ze}" into a date`);return ne}(ze);ne=qe(te,ne)||ne;let ni,Rt=[];for(;ne;){if(ni=lt.exec(ne),!ni){Rt.push(ne);break}{Rt=Rt.concat(ni.slice(1));const Si=Rt.pop();if(!Si)break;ne=Si}}let ti=tt.getTimezoneOffset();Ee&&(ti=Vt(Ee,ti),tt=function pt(ze,ne,te){const Ee=te?-1:1,tt=ze.getTimezoneOffset();return function ii(ze,ne){return(ze=new Date(ze.getTime())).setMinutes(ze.getMinutes()+ne),ze}(ze,Ee*(Vt(ne,tt)-tt))}(tt,Ee,!0));let bi="";return Rt.forEach(Si=>{const Pi=function $t(ze){if(Je[ze])return Je[ze];let ne;switch(ze){case"G":case"GG":case"GGG":ne=je(Ge.Eras,a.Abbreviated);break;case"GGGG":ne=je(Ge.Eras,a.Wide);break;case"GGGGG":ne=je(Ge.Eras,a.Narrow);break;case"y":ne=Tt(ht.FullYear,1,0,!1,!0);break;case"yy":ne=Tt(ht.FullYear,2,0,!0,!0);break;case"yyy":ne=Tt(ht.FullYear,3,0,!1,!0);break;case"yyyy":ne=Tt(ht.FullYear,4,0,!1,!0);break;case"Y":ne=Ae(1);break;case"YY":ne=Ae(2,!0);break;case"YYY":ne=Ae(3);break;case"YYYY":ne=Ae(4);break;case"M":case"L":ne=Tt(ht.Month,1,1);break;case"MM":case"LL":ne=Tt(ht.Month,2,1);break;case"MMM":ne=je(Ge.Months,a.Abbreviated);break;case"MMMM":ne=je(Ge.Months,a.Wide);break;case"MMMMM":ne=je(Ge.Months,a.Narrow);break;case"LLL":ne=je(Ge.Months,a.Abbreviated,i.Standalone);break;case"LLLL":ne=je(Ge.Months,a.Wide,i.Standalone);break;case"LLLLL":ne=je(Ge.Months,a.Narrow,i.Standalone);break;case"w":ne=ue(1);break;case"ww":ne=ue(2);break;case"W":ne=ue(1,!0);break;case"d":ne=Tt(ht.Date,1);break;case"dd":ne=Tt(ht.Date,2);break;case"c":case"cc":ne=Tt(ht.Day,1);break;case"ccc":ne=je(Ge.Days,a.Abbreviated,i.Standalone);break;case"cccc":ne=je(Ge.Days,a.Wide,i.Standalone);break;case"ccccc":ne=je(Ge.Days,a.Narrow,i.Standalone);break;case"cccccc":ne=je(Ge.Days,a.Short,i.Standalone);break;case"E":case"EE":case"EEE":ne=je(Ge.Days,a.Abbreviated);break;case"EEEE":ne=je(Ge.Days,a.Wide);break;case"EEEEE":ne=je(Ge.Days,a.Narrow);break;case"EEEEEE":ne=je(Ge.Days,a.Short);break;case"a":case"aa":case"aaa":ne=je(Ge.DayPeriods,a.Abbreviated);break;case"aaaa":ne=je(Ge.DayPeriods,a.Wide);break;case"aaaaa":ne=je(Ge.DayPeriods,a.Narrow);break;case"b":case"bb":case"bbb":ne=je(Ge.DayPeriods,a.Abbreviated,i.Standalone,!0);break;case"bbbb":ne=je(Ge.DayPeriods,a.Wide,i.Standalone,!0);break;case"bbbbb":ne=je(Ge.DayPeriods,a.Narrow,i.Standalone,!0);break;case"B":case"BB":case"BBB":ne=je(Ge.DayPeriods,a.Abbreviated,i.Format,!0);break;case"BBBB":ne=je(Ge.DayPeriods,a.Wide,i.Format,!0);break;case"BBBBB":ne=je(Ge.DayPeriods,a.Narrow,i.Format,!0);break;case"h":ne=Tt(ht.Hours,1,-12);break;case"hh":ne=Tt(ht.Hours,2,-12);break;case"H":ne=Tt(ht.Hours,1);break;case"HH":ne=Tt(ht.Hours,2);break;case"m":ne=Tt(ht.Minutes,1);break;case"mm":ne=Tt(ht.Minutes,2);break;case"s":ne=Tt(ht.Seconds,1);break;case"ss":ne=Tt(ht.Seconds,2);break;case"S":ne=Tt(ht.FractionalSeconds,1);break;case"SS":ne=Tt(ht.FractionalSeconds,2);break;case"SSS":ne=Tt(ht.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ne=xt(Ut.Short);break;case"ZZZZZ":ne=xt(Ut.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ne=xt(Ut.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ne=xt(Ut.Long);break;default:return null}return Je[ze]=ne,ne}(Si);bi+=Pi?Pi(tt,te,ti):"''"===Si?"'":Si.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),bi}function be(ze,ne,te){const Ee=new Date(0);return Ee.setFullYear(ze,ne,te),Ee.setHours(0,0,0),Ee}function qe(ze,ne){const te=function I(ze){return(0,t.cg1)(ze)[t.wAp.LocaleId]}(ze);if(Ke[te]=Ke[te]||{},Ke[te][ne])return Ke[te][ne];let Ee="";switch(ne){case"shortDate":Ee=U(ze,f.Short);break;case"mediumDate":Ee=U(ze,f.Medium);break;case"longDate":Ee=U(ze,f.Long);break;case"fullDate":Ee=U(ze,f.Full);break;case"shortTime":Ee=ge(ze,f.Short);break;case"mediumTime":Ee=ge(ze,f.Medium);break;case"longTime":Ee=ge(ze,f.Long);break;case"fullTime":Ee=ge(ze,f.Full);break;case"short":const tt=qe(ze,"shortTime"),Ne=qe(ze,"shortDate");Ee=Ie(nt(ze,f.Short),[tt,Ne]);break;case"medium":const Rt=qe(ze,"mediumTime"),ni=qe(ze,"mediumDate");Ee=Ie(nt(ze,f.Medium),[Rt,ni]);break;case"long":const ti=qe(ze,"longTime"),bi=qe(ze,"longDate");Ee=Ie(nt(ze,f.Long),[ti,bi]);break;case"full":const Si=qe(ze,"fullTime"),Pi=qe(ze,"fullDate");Ee=Ie(nt(ze,f.Full),[Si,Pi])}return Ee&&(Ke[te][ne]=Ee),Ee}function Ie(ze,ne){return ne&&(ze=ze.replace(/\{([^}]+)}/g,function(te,Ee){return null!=ne&&Ee in ne?ne[Ee]:te})),ze}function X(ze,ne,te="-",Ee,tt){let Ne="";(ze<0||tt&&ze<=0)&&(tt?ze=1-ze:(ze=-ze,Ne=te));let Rt=String(ze);for(;Rt.length0||ni>-te)&&(ni+=te),ze===ht.Hours)0===ni&&-12===te&&(ni=12);else if(ze===ht.FractionalSeconds)return function mt(ze,ne){return X(ze,3).substring(0,ne)}(ni,ne);const ti=Ue(Rt,l.MinusSign);return X(ni,ne,ti,Ee,tt)}}function je(ze,ne,te=i.Format,Ee=!1){return function(tt,Ne){return function zt(ze,ne,te,Ee,tt,Ne){switch(te){case Ge.Months:return function n(ze,ne,te){const Ee=(0,t.cg1)(ze),Ne=pe([Ee[t.wAp.MonthsFormat],Ee[t.wAp.MonthsStandalone]],ne);return pe(Ne,te)}(ne,tt,Ee)[ze.getMonth()];case Ge.Days:return function x(ze,ne,te){const Ee=(0,t.cg1)(ze),Ne=pe([Ee[t.wAp.DaysFormat],Ee[t.wAp.DaysStandalone]],ne);return pe(Ne,te)}(ne,tt,Ee)[ze.getDay()];case Ge.DayPeriods:const Rt=ze.getHours(),ni=ze.getMinutes();if(Ne){const bi=function De(ze){const ne=(0,t.cg1)(ze);return Fe(ne),(ne[t.wAp.ExtraData][2]||[]).map(Ee=>"string"==typeof Ee?Ve(Ee):[Ve(Ee[0]),Ve(Ee[1])])}(ne),Si=function he(ze,ne,te){const Ee=(0,t.cg1)(ze);Fe(Ee);const Ne=pe([Ee[t.wAp.ExtraData][0],Ee[t.wAp.ExtraData][1]],ne)||[];return pe(Ne,te)||[]}(ne,tt,Ee),Pi=bi.findIndex(qi=>{if(Array.isArray(qi)){const[tn,hn]=qi,da=Rt>=tn.hours&&ni>=tn.minutes,ma=Rt0?Math.floor(tt/60):Math.ceil(tt/60);switch(ze){case Ut.Short:return(tt>=0?"+":"")+X(Rt,2,Ne)+X(Math.abs(tt%60),2,Ne);case Ut.ShortGMT:return"GMT"+(tt>=0?"+":"")+X(Rt,1,Ne);case Ut.Long:return"GMT"+(tt>=0?"+":"")+X(Rt,2,Ne)+":"+X(Math.abs(tt%60),2,Ne);case Ut.Extended:return 0===Ee?"Z":(tt>=0?"+":"")+X(Rt,2,Ne)+":"+X(Math.abs(tt%60),2,Ne);default:throw new Error(`Unknown zone width "${ze}"`)}}}const Nt=0,Gt=4;function $(ze){return be(ze.getFullYear(),ze.getMonth(),ze.getDate()+(Gt-ze.getDay()))}function ue(ze,ne=!1){return function(te,Ee){let tt;if(ne){const Ne=new Date(te.getFullYear(),te.getMonth(),1).getDay()-1,Rt=te.getDate();tt=1+Math.floor((Rt+Ne)/7)}else{const Ne=$(te),Rt=function ke(ze){const ne=be(ze,Nt,1).getDay();return be(ze,0,1+(ne<=Gt?Gt:Gt+7)-ne)}(Ne.getFullYear()),ni=Ne.getTime()-Rt.getTime();tt=1+Math.round(ni/6048e5)}return X(tt,ze,Ue(Ee,l.MinusSign))}}function Ae(ze,ne=!1){return function(te,Ee){return X($(te).getFullYear(),ze,Ue(Ee,l.MinusSign),ne)}}const Je={};function Vt(ze,ne){ze=ze.replace(/:/g,"");const te=Date.parse("Jan 01, 1970 00:00:00 "+ze)/6e4;return isNaN(te)?ne:te}function St(ze){return ze instanceof Date&&!isNaN(ze.valueOf())}const gt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,$e=22,_t=".",vt="0",He=";",Et=",",At="#";function si(ze){const ne=parseInt(ze);if(isNaN(ne))throw new Error("Invalid integer literal when parsing "+ze);return ne}function Yi(ze,ne){ne=encodeURIComponent(ne);for(const te of ze.split(";")){const Ee=te.indexOf("="),[tt,Ne]=-1==Ee?[te,""]:[te.slice(0,Ee),te.slice(Ee+1)];if(tt.trim()===ne)return decodeURIComponent(Ne)}return null}const Yt=/\s+/,qt=[];let _e=(()=>{class ze{constructor(te,Ee,tt,Ne){this._iterableDiffers=te,this._keyValueDiffers=Ee,this._ngEl=tt,this._renderer=Ne,this.initialClasses=qt,this.stateMap=new Map}set klass(te){this.initialClasses=null!=te?te.trim().split(Yt):qt}set ngClass(te){this.rawClass="string"==typeof te?te.trim().split(Yt):te}ngDoCheck(){for(const Ee of this.initialClasses)this._updateState(Ee,!0);const te=this.rawClass;if(Array.isArray(te)||te instanceof Set)for(const Ee of te)this._updateState(Ee,!0);else if(null!=te)for(const Ee of Object.keys(te))this._updateState(Ee,Boolean(te[Ee]));this._applyStateDiff()}_updateState(te,Ee){const tt=this.stateMap.get(te);void 0!==tt?(tt.enabled!==Ee&&(tt.changed=!0,tt.enabled=Ee),tt.touched=!0):this.stateMap.set(te,{enabled:Ee,changed:!0,touched:!0})}_applyStateDiff(){for(const te of this.stateMap){const Ee=te[0],tt=te[1];tt.changed?(this._toggleClass(Ee,tt.enabled),tt.changed=!1):tt.touched||(tt.enabled&&this._toggleClass(Ee,!1),this.stateMap.delete(Ee)),tt.touched=!1}}_toggleClass(te,Ee){(te=te.trim()).length>0&&te.split(Yt).forEach(tt=>{Ee?this._renderer.addClass(this._ngEl.nativeElement,tt):this._renderer.removeClass(this._ngEl.nativeElement,tt)})}}return ze.\u0275fac=function(te){return new(te||ze)(t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.SBq),t.Y36(t.Qsj))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),ze})();class Ot{constructor(ne,te,Ee,tt){this.$implicit=ne,this.ngForOf=te,this.index=Ee,this.count=tt}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 vi=(()=>{class ze{set ngForOf(te){this._ngForOf=te,this._ngForOfDirty=!0}set ngForTrackBy(te){this._trackByFn=te}get ngForTrackBy(){return this._trackByFn}constructor(te,Ee,tt){this._viewContainer=te,this._template=Ee,this._differs=tt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(te){te&&(this._template=te)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const te=this._ngForOf;!this._differ&&te&&(this._differ=this._differs.find(te).create(this.ngForTrackBy))}if(this._differ){const te=this._differ.diff(this._ngForOf);te&&this._applyChanges(te)}}_applyChanges(te){const Ee=this._viewContainer;te.forEachOperation((tt,Ne,Rt)=>{if(null==tt.previousIndex)Ee.createEmbeddedView(this._template,new Ot(tt.item,this._ngForOf,-1,-1),null===Rt?void 0:Rt);else if(null==Rt)Ee.remove(null===Ne?void 0:Ne);else if(null!==Ne){const ni=Ee.get(Ne);Ee.move(ni,Rt),li(ni,tt)}});for(let tt=0,Ne=Ee.length;tt{li(Ee.get(tt.currentIndex),tt)})}static ngTemplateContextGuard(te,Ee){return!0}}return ze.\u0275fac=function(te){return new(te||ze)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(t.ZZ4))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),ze})();function li(ze,ne){ze.context.$implicit=ne.item}let gi=(()=>{class ze{constructor(te,Ee){this._viewContainer=te,this._context=new Ui,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ee}set ngIf(te){this._context.$implicit=this._context.ngIf=te,this._updateView()}set ngIfThen(te){Un("ngIfThen",te),this._thenTemplateRef=te,this._thenViewRef=null,this._updateView()}set ngIfElse(te){Un("ngIfElse",te),this._elseTemplateRef=te,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(te,Ee){return!0}}return ze.\u0275fac=function(te){return new(te||ze)(t.Y36(t.s_b),t.Y36(t.Rgc))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),ze})();class Ui{constructor(){this.$implicit=null,this.ngIf=null}}function Un(ze,ne){if(ne&&!ne.createEmbeddedView)throw new Error(`${ze} must be a TemplateRef, but received '${(0,t.AaK)(ne)}'.`)}class Dn{constructor(ne,te){this._viewContainerRef=ne,this._templateRef=te,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(ne){ne&&!this._created?this.create():!ne&&this._created&&this.destroy()}}let oa=(()=>{class ze{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(te){this._ngSwitch=te,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(te){this._defaultViews.push(te)}_matchCase(te){const Ee=te==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Ee,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Ee}_updateDefaultCases(te){if(this._defaultViews.length>0&&te!==this._defaultUsed){this._defaultUsed=te;for(const Ee of this._defaultViews)Ee.enforceState(te)}}}return ze.\u0275fac=function(te){return new(te||ze)},ze.\u0275dir=t.lG2({type:ze,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),ze})(),Ea=(()=>{class ze{constructor(te,Ee,tt){this.ngSwitch=tt,tt._addCase(),this._view=new Dn(te,Ee)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return ze.\u0275fac=function(te){return new(te||ze)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(oa,9))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),ze})(),ta=(()=>{class ze{constructor(te,Ee,tt){tt._addDefault(new Dn(te,Ee))}}return ze.\u0275fac=function(te){return new(te||ze)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(oa,9))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","ngSwitchDefault",""]],standalone:!0}),ze})(),Kt=(()=>{class ze{constructor(te,Ee,tt){this._ngEl=te,this._differs=Ee,this._renderer=tt,this._ngStyle=null,this._differ=null}set ngStyle(te){this._ngStyle=te,!this._differ&&te&&(this._differ=this._differs.find(te).create())}ngDoCheck(){if(this._differ){const te=this._differ.diff(this._ngStyle);te&&this._applyChanges(te)}}_setStyle(te,Ee){const[tt,Ne]=te.split("."),Rt=-1===tt.indexOf("-")?void 0:t.JOm.DashCase;null!=Ee?this._renderer.setStyle(this._ngEl.nativeElement,tt,Ne?`${Ee}${Ne}`:Ee,Rt):this._renderer.removeStyle(this._ngEl.nativeElement,tt,Rt)}_applyChanges(te){te.forEachRemovedItem(Ee=>this._setStyle(Ee.key,null)),te.forEachAddedItem(Ee=>this._setStyle(Ee.key,Ee.currentValue)),te.forEachChangedItem(Ee=>this._setStyle(Ee.key,Ee.currentValue))}}return ze.\u0275fac=function(te){return new(te||ze)(t.Y36(t.SBq),t.Y36(t.aQg),t.Y36(t.Qsj))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),ze})(),ri=(()=>{class ze{constructor(te){this._viewContainerRef=te,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(te){if(te.ngTemplateOutlet||te.ngTemplateOutletInjector){const Ee=this._viewContainerRef;if(this._viewRef&&Ee.remove(Ee.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:tt,ngTemplateOutletContext:Ne,ngTemplateOutletInjector:Rt}=this;this._viewRef=Ee.createEmbeddedView(tt,Ne,Rt?{injector:Rt}:void 0)}else this._viewRef=null}else this._viewRef&&te.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return ze.\u0275fac=function(te){return new(te||ze)(t.Y36(t.s_b))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[t.TTD]}),ze})();function Hi(ze,ne){return new t.vHH(2100,!1)}class ln{createSubscription(ne,te){return ne.subscribe({next:te,error:Ee=>{throw Ee}})}dispose(ne){ne.unsubscribe()}}class Gn{createSubscription(ne,te){return ne.then(te,Ee=>{throw Ee})}dispose(ne){}}const Hn=new Gn,_a=new ln;let Tn=(()=>{class ze{constructor(te){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=te}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(te){return this._obj?te!==this._obj?(this._dispose(),this.transform(te)):this._latestValue:(te&&this._subscribe(te),this._latestValue)}_subscribe(te){this._obj=te,this._strategy=this._selectStrategy(te),this._subscription=this._strategy.createSubscription(te,Ee=>this._updateLatestValue(te,Ee))}_selectStrategy(te){if((0,t.QGY)(te))return Hn;if((0,t.F4k)(te))return _a;throw Hi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(te,Ee){te===this._obj&&(this._latestValue=Ee,this._ref.markForCheck())}}return ze.\u0275fac=function(te){return new(te||ze)(t.Y36(t.sBO,16))},ze.\u0275pipe=t.Yjl({name:"async",type:ze,pure:!1,standalone:!0}),ze})(),Vn=(()=>{class ze{transform(te){if(null==te)return null;if("string"!=typeof te)throw Hi();return te.toLowerCase()}}return ze.\u0275fac=function(te){return new(te||ze)},ze.\u0275pipe=t.Yjl({name:"lowercase",type:ze,pure:!0,standalone:!0}),ze})();const xo=/(?:[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 zn=(()=>{class ze{transform(te){if(null==te)return null;if("string"!=typeof te)throw Hi();return te.replace(xo,Ee=>Ee[0].toUpperCase()+Ee.slice(1).toLowerCase())}}return ze.\u0275fac=function(te){return new(te||ze)},ze.\u0275pipe=t.Yjl({name:"titlecase",type:ze,pure:!0,standalone:!0}),ze})(),ia=(()=>{class ze{transform(te){if(null==te)return null;if("string"!=typeof te)throw Hi();return te.toUpperCase()}}return ze.\u0275fac=function(te){return new(te||ze)},ze.\u0275pipe=t.Yjl({name:"uppercase",type:ze,pure:!0,standalone:!0}),ze})();const Pr=new t.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),xr=new t.OlP("DATE_PIPE_DEFAULT_OPTIONS");let jn=(()=>{class ze{constructor(te,Ee,tt){this.locale=te,this.defaultTimezone=Ee,this.defaultOptions=tt}transform(te,Ee,tt,Ne){if(null==te||""===te||te!=te)return null;try{return yt(te,Ee??this.defaultOptions?.dateFormat??"mediumDate",Ne||this.locale,tt??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Rt){throw Hi()}}}return ze.\u0275fac=function(te){return new(te||ze)(t.Y36(t.soG,16),t.Y36(Pr,24),t.Y36(xr,24))},ze.\u0275pipe=t.Yjl({name:"date",type:ze,pure:!0,standalone:!0}),ze})(),Nr=(()=>{class ze{transform(te){return JSON.stringify(te,null,2)}}return ze.\u0275fac=function(te){return new(te||ze)},ze.\u0275pipe=t.Yjl({name:"json",type:ze,pure:!1,standalone:!0}),ze})(),Ia=(()=>{class ze{constructor(te){this.differs=te,this.keyValues=[],this.compareFn=wa}transform(te,Ee=wa){if(!te||!(te instanceof Map)&&"object"!=typeof te)return null;this.differ||(this.differ=this.differs.find(te).create());const tt=this.differ.diff(te),Ne=Ee!==this.compareFn;return tt&&(this.keyValues=[],tt.forEachItem(Rt=>{this.keyValues.push(function Yr(ze,ne){return{key:ze,value:ne}}(Rt.key,Rt.currentValue))})),(tt||Ne)&&(this.keyValues.sort(Ee),this.compareFn=Ee),this.keyValues}}return ze.\u0275fac=function(te){return new(te||ze)(t.Y36(t.aQg,16))},ze.\u0275pipe=t.Yjl({name:"keyvalue",type:ze,pure:!1,standalone:!0}),ze})();function wa(ze,ne){const te=ze.key,Ee=ne.key;if(te===Ee)return 0;if(void 0===te)return 1;if(void 0===Ee)return-1;if(null===te)return 1;if(null===Ee)return-1;if("string"==typeof te&&"string"==typeof Ee)return te{class ze{constructor(te){this._locale=te}transform(te,Ee,tt){if(!function pr(ze){return!(null==ze||""===ze||ze!=ze)}(te))return null;tt=tt||this._locale;try{return function Xe(ze,ne,te){return function Ni(ze,ne,te,Ee,tt,Ne,Rt=!1){let ni="",ti=!1;if(isFinite(ze)){let bi=function wt(ze){let Ee,tt,Ne,Rt,ni,ne=Math.abs(ze)+"",te=0;for((tt=ne.indexOf(_t))>-1&&(ne=ne.replace(_t,"")),(Ne=ne.search(/e/i))>0?(tt<0&&(tt=Ne),tt+=+ne.slice(Ne+1),ne=ne.substring(0,Ne)):tt<0&&(tt=ne.length),Ne=0;ne.charAt(Ne)===vt;Ne++);if(Ne===(ni=ne.length))Ee=[0],tt=1;else{for(ni--;ne.charAt(ni)===vt;)ni--;for(tt-=Ne,Ee=[],Rt=0;Ne<=ni;Ne++,Rt++)Ee[Rt]=Number(ne.charAt(Ne))}return tt>$e&&(Ee=Ee.splice(0,$e-1),te=tt-1,tt=1),{digits:Ee,exponent:te,integerLen:tt}}(ze);Rt&&(bi=function Se(ze){if(0===ze.digits[0])return ze;const ne=ze.digits.length-ze.integerLen;return ze.exponent?ze.exponent+=2:(0===ne?ze.digits.push(0,0):1===ne&&ze.digits.push(0),ze.integerLen+=2),ze}(bi));let Si=ne.minInt,Pi=ne.minFrac,qi=ne.maxFrac;if(Ne){const ha=Ne.match(gt);if(null===ha)throw new Error(`${Ne} is not a valid digit info`);const ua=ha[1],ra=ha[3],Da=ha[5];null!=ua&&(Si=si(ua)),null!=ra&&(Pi=si(ra)),null!=Da?qi=si(Da):null!=ra&&Pi>qi&&(qi=Pi)}!function Zt(ze,ne,te){if(ne>te)throw new Error(`The minimum number of digits after fraction (${ne}) is higher than the maximum (${te}).`);let Ee=ze.digits,tt=Ee.length-ze.integerLen;const Ne=Math.min(Math.max(ne,tt),te);let Rt=Ne+ze.integerLen,ni=Ee[Rt];if(Rt>0){Ee.splice(Math.max(ze.integerLen,Rt));for(let Pi=Rt;Pi=5)if(Rt-1<0){for(let Pi=0;Pi>Rt;Pi--)Ee.unshift(0),ze.integerLen++;Ee.unshift(1),ze.integerLen++}else Ee[Rt-1]++;for(;tt=bi?hn.pop():ti=!1),qi>=10?1:0},0);Si&&(Ee.unshift(Si),ze.integerLen++)}(bi,Pi,qi);let tn=bi.digits,hn=bi.integerLen;const da=bi.exponent;let ma=[];for(ti=tn.every(ha=>!ha);hn0?ma=tn.splice(hn,tn.length):(ma=tn,tn=[0]);const ka=[];for(tn.length>=ne.lgSize&&ka.unshift(tn.splice(-ne.lgSize,tn.length).join(""));tn.length>ne.gSize;)ka.unshift(tn.splice(-ne.gSize,tn.length).join(""));tn.length&&ka.unshift(tn.join("")),ni=ka.join(Ue(te,Ee)),ma.length&&(ni+=Ue(te,tt)+ma.join("")),da&&(ni+=Ue(te,l.Exponential)+"+"+da)}else ni=Ue(te,l.Infinity);return ni=ze<0&&!ti?ne.negPre+ni+ne.negSuf:ne.posPre+ni+ne.posSuf,ni}(ze,function It(ze,ne="-"){const te={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Ee=ze.split(He),tt=Ee[0],Ne=Ee[1],Rt=-1!==tt.indexOf(_t)?tt.split(_t):[tt.substring(0,tt.lastIndexOf(vt)+1),tt.substring(tt.lastIndexOf(vt)+1)],ni=Rt[0],ti=Rt[1]||"";te.posPre=ni.substring(0,ni.indexOf(At));for(let Si=0;Si{class ze{transform(te,Ee,tt){if(null==te)return null;if(!this.supports(te))throw Hi();return te.slice(Ee,tt)}supports(te){return"string"==typeof te||Array.isArray(te)}}return ze.\u0275fac=function(te){return new(te||ze)},ze.\u0275pipe=t.Yjl({name:"slice",type:ze,pure:!1,standalone:!0}),ze})(),ko=(()=>{class ze{}return ze.\u0275fac=function(te){return new(te||ze)},ze.\u0275mod=t.oAB({type:ze}),ze.\u0275inj=t.cJS({}),ze})();const Aa="browser",Kr="server";function Hr(ze){return ze===Aa}function sa(ze){return ze===Kr}let Cr=(()=>{class ze{}return ze.\u0275prov=(0,t.Yz7)({token:ze,providedIn:"root",factory:()=>new Oo((0,t.LFG)(y),window)}),ze})();class Oo{constructor(ne,te){this.document=ne,this.window=te,this.offset=()=>[0,0]}setOffset(ne){this.offset=Array.isArray(ne)?()=>ne:ne}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(ne){this.supportsScrolling()&&this.window.scrollTo(ne[0],ne[1])}scrollToAnchor(ne){if(!this.supportsScrolling())return;const te=function Qr(ze,ne){const te=ze.getElementById(ne)||ze.getElementsByName(ne)[0];if(te)return te;if("function"==typeof ze.createTreeWalker&&ze.body&&(ze.body.createShadowRoot||ze.body.attachShadow)){const Ee=ze.createTreeWalker(ze.body,NodeFilter.SHOW_ELEMENT);let tt=Ee.currentNode;for(;tt;){const Ne=tt.shadowRoot;if(Ne){const Rt=Ne.getElementById(ne)||Ne.querySelector(`[name="${ne}"]`);if(Rt)return Rt}tt=Ee.nextNode()}}return null}(this.document,ne);te&&(this.scrollToElement(te),te.focus())}setHistoryScrollRestoration(ne){if(this.supportScrollRestoration()){const te=this.window.history;te&&te.scrollRestoration&&(te.scrollRestoration=ne)}}scrollToElement(ne){const te=ne.getBoundingClientRect(),Ee=te.left+this.window.pageXOffset,tt=te.top+this.window.pageYOffset,Ne=this.offset();this.window.scrollTo(Ee-Ne[0],tt-Ne[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const ne=oo(this.window.history)||oo(Object.getPrototypeOf(this.window.history));return!(!ne||!ne.writable&&!ne.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function oo(ze){return Object.getOwnPropertyDescriptor(ze,"scrollRestoration")}class cr{}},529:(We,q,m)=>{"use strict";m.d(q,{JF:()=>xt,LE:()=>Q,TP:()=>g,eN:()=>I});var t=m(6895),e=m(4650),_=m(9646),T=m(9751),s=m(4351),y=m(9300),h=m(4004);class P{}class d{}class w{constructor($){this.normalizedNames=new Map,this.lazyUpdate=null,$?this.lazyInit="string"==typeof $?()=>{this.headers=new Map,$.split("\n").forEach(ue=>{const Ae=ue.indexOf(":");if(Ae>0){const Je=ue.slice(0,Ae),$t=Je.toLowerCase(),Vt=ue.slice(Ae+1).trim();this.maybeSetNormalizedName(Je,$t),this.headers.has($t)?this.headers.get($t).push(Vt):this.headers.set($t,[Vt])}})}:()=>{this.headers=new Map,Object.entries($).forEach(([ue,Ae])=>{let Je;if(Je="string"==typeof Ae?[Ae]:"number"==typeof Ae?[Ae.toString()]:Ae.map($t=>$t.toString()),Je.length>0){const $t=ue.toLowerCase();this.headers.set($t,Je),this.maybeSetNormalizedName(ue,$t)}})}:this.headers=new Map}has($){return this.init(),this.headers.has($.toLowerCase())}get($){this.init();const ue=this.headers.get($.toLowerCase());return ue&&ue.length>0?ue[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll($){return this.init(),this.headers.get($.toLowerCase())||null}append($,ue){return this.clone({name:$,value:ue,op:"a"})}set($,ue){return this.clone({name:$,value:ue,op:"s"})}delete($,ue){return this.clone({name:$,value:ue,op:"d"})}maybeSetNormalizedName($,ue){this.normalizedNames.has(ue)||this.normalizedNames.set(ue,$)}init(){this.lazyInit&&(this.lazyInit instanceof w?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach($=>this.applyUpdate($)),this.lazyUpdate=null))}copyFrom($){$.init(),Array.from($.headers.keys()).forEach(ue=>{this.headers.set(ue,$.headers.get(ue)),this.normalizedNames.set(ue,$.normalizedNames.get(ue))})}clone($){const ue=new w;return ue.lazyInit=this.lazyInit&&this.lazyInit instanceof w?this.lazyInit:this,ue.lazyUpdate=(this.lazyUpdate||[]).concat([$]),ue}applyUpdate($){const ue=$.name.toLowerCase();switch($.op){case"a":case"s":let Ae=$.value;if("string"==typeof Ae&&(Ae=[Ae]),0===Ae.length)return;this.maybeSetNormalizedName($.name,ue);const Je=("a"===$.op?this.headers.get(ue):void 0)||[];Je.push(...Ae),this.headers.set(ue,Je);break;case"d":const $t=$.value;if($t){let Vt=this.headers.get(ue);if(!Vt)return;Vt=Vt.filter(ii=>-1===$t.indexOf(ii)),0===Vt.length?(this.headers.delete(ue),this.normalizedNames.delete(ue)):this.headers.set(ue,Vt)}else this.headers.delete(ue),this.normalizedNames.delete(ue)}}forEach($){this.init(),Array.from(this.normalizedNames.keys()).forEach(ue=>$(this.normalizedNames.get(ue),this.headers.get(ue)))}}class L{encodeKey($){return Y($)}encodeValue($){return Y($)}decodeKey($){return decodeURIComponent($)}decodeValue($){return decodeURIComponent($)}}const z=/%(\d[a-f0-9])/gi,V={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Y(ke){return encodeURIComponent(ke).replace(z,($,ue)=>V[ue]??$)}function j(ke){return`${ke}`}class Q{constructor($={}){if(this.updates=null,this.cloneFrom=null,this.encoder=$.encoder||new L,$.fromString){if($.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function D(ke,$){const ue=new Map;return ke.length>0&&ke.replace(/^\?/,"").split("&").forEach(Je=>{const $t=Je.indexOf("="),[Vt,ii]=-1==$t?[$.decodeKey(Je),""]:[$.decodeKey(Je.slice(0,$t)),$.decodeValue(Je.slice($t+1))],pt=ue.get(Vt)||[];pt.push(ii),ue.set(Vt,pt)}),ue}($.fromString,this.encoder)}else $.fromObject?(this.map=new Map,Object.keys($.fromObject).forEach(ue=>{const Ae=$.fromObject[ue],Je=Array.isArray(Ae)?Ae.map(j):[j(Ae)];this.map.set(ue,Je)})):this.map=null}has($){return this.init(),this.map.has($)}get($){this.init();const ue=this.map.get($);return ue?ue[0]:null}getAll($){return this.init(),this.map.get($)||null}keys(){return this.init(),Array.from(this.map.keys())}append($,ue){return this.clone({param:$,value:ue,op:"a"})}appendAll($){const ue=[];return Object.keys($).forEach(Ae=>{const Je=$[Ae];Array.isArray(Je)?Je.forEach($t=>{ue.push({param:Ae,value:$t,op:"a"})}):ue.push({param:Ae,value:Je,op:"a"})}),this.clone(ue)}set($,ue){return this.clone({param:$,value:ue,op:"s"})}delete($,ue){return this.clone({param:$,value:ue,op:"d"})}toString(){return this.init(),this.keys().map($=>{const ue=this.encoder.encodeKey($);return this.map.get($).map(Ae=>ue+"="+this.encoder.encodeValue(Ae)).join("&")}).filter($=>""!==$).join("&")}clone($){const ue=new Q({encoder:this.encoder});return ue.cloneFrom=this.cloneFrom||this,ue.updates=(this.updates||[]).concat($),ue}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach($=>this.map.set($,this.cloneFrom.map.get($))),this.updates.forEach($=>{switch($.op){case"a":case"s":const ue=("a"===$.op?this.map.get($.param):void 0)||[];ue.push(j($.value)),this.map.set($.param,ue);break;case"d":if(void 0===$.value){this.map.delete($.param);break}{let Ae=this.map.get($.param)||[];const Je=Ae.indexOf(j($.value));-1!==Je&&Ae.splice(Je,1),Ae.length>0?this.map.set($.param,Ae):this.map.delete($.param)}}}),this.cloneFrom=this.updates=null)}}class ee{constructor(){this.map=new Map}set($,ue){return this.map.set($,ue),this}get($){return this.map.has($)||this.map.set($,$.defaultValue()),this.map.get($)}delete($){return this.map.delete($),this}has($){return this.map.has($)}keys(){return this.map.keys()}}function re(ke){return typeof ArrayBuffer<"u"&&ke instanceof ArrayBuffer}function ie(ke){return typeof Blob<"u"&&ke instanceof Blob}function se(ke){return typeof FormData<"u"&&ke instanceof FormData}class Ce{constructor($,ue,Ae,Je){let $t;if(this.url=ue,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=$.toUpperCase(),function me(ke){switch(ke){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Je?(this.body=void 0!==Ae?Ae:null,$t=Je):$t=Ae,$t&&(this.reportProgress=!!$t.reportProgress,this.withCredentials=!!$t.withCredentials,$t.responseType&&(this.responseType=$t.responseType),$t.headers&&(this.headers=$t.headers),$t.context&&(this.context=$t.context),$t.params&&(this.params=$t.params)),this.headers||(this.headers=new w),this.context||(this.context=new ee),this.params){const Vt=this.params.toString();if(0===Vt.length)this.urlWithParams=ue;else{const ii=ue.indexOf("?");this.urlWithParams=ue+(-1===ii?"?":iiSt.set(gt,$.setHeaders[gt]),pt)),$.setParams&&(ot=Object.keys($.setParams).reduce((St,gt)=>St.set(gt,$.setParams[gt]),ot)),new Ce(ue,Ae,$t,{params:ot,headers:pt,context:ft,reportProgress:ii,responseType:Je,withCredentials:Vt})}}var M=(()=>((M=M||{})[M.Sent=0]="Sent",M[M.UploadProgress=1]="UploadProgress",M[M.ResponseHeader=2]="ResponseHeader",M[M.DownloadProgress=3]="DownloadProgress",M[M.Response=4]="Response",M[M.User=5]="User",M))();class i{constructor($,ue=200,Ae="OK"){this.headers=$.headers||new w,this.status=void 0!==$.status?$.status:ue,this.statusText=$.statusText||Ae,this.url=$.url||null,this.ok=this.status>=200&&this.status<300}}class a extends i{constructor($={}){super($),this.type=M.ResponseHeader}clone($={}){return new a({headers:$.headers||this.headers,status:void 0!==$.status?$.status:this.status,statusText:$.statusText||this.statusText,url:$.url||this.url||void 0})}}class f extends i{constructor($={}){super($),this.type=M.Response,this.body=void 0!==$.body?$.body:null}clone($={}){return new f({body:void 0!==$.body?$.body:this.body,headers:$.headers||this.headers,status:void 0!==$.status?$.status:this.status,statusText:$.statusText||this.statusText,url:$.url||this.url||void 0})}}class l extends i{constructor($){super($,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${$.url||"(unknown url)"}`:`Http failure response for ${$.url||"(unknown url)"}: ${$.status} ${$.statusText}`,this.error=$.error||null}}function v(ke,$){return{body:$,headers:ke.headers,context:ke.context,observe:ke.observe,params:ke.params,reportProgress:ke.reportProgress,responseType:ke.responseType,withCredentials:ke.withCredentials}}let I=(()=>{class ke{constructor(ue){this.handler=ue}request(ue,Ae,Je={}){let $t;if(ue instanceof Ce)$t=ue;else{let pt,ot;pt=Je.headers instanceof w?Je.headers:new w(Je.headers),Je.params&&(ot=Je.params instanceof Q?Je.params:new Q({fromObject:Je.params})),$t=new Ce(ue,Ae,void 0!==Je.body?Je.body:null,{headers:pt,context:Je.context,params:ot,reportProgress:Je.reportProgress,responseType:Je.responseType||"json",withCredentials:Je.withCredentials})}const Vt=(0,_.of)($t).pipe((0,s.b)(pt=>this.handler.handle(pt)));if(ue instanceof Ce||"events"===Je.observe)return Vt;const ii=Vt.pipe((0,y.h)(pt=>pt instanceof f));switch(Je.observe||"body"){case"body":switch($t.responseType){case"arraybuffer":return ii.pipe((0,h.U)(pt=>{if(null!==pt.body&&!(pt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return pt.body}));case"blob":return ii.pipe((0,h.U)(pt=>{if(null!==pt.body&&!(pt.body instanceof Blob))throw new Error("Response is not a Blob.");return pt.body}));case"text":return ii.pipe((0,h.U)(pt=>{if(null!==pt.body&&"string"!=typeof pt.body)throw new Error("Response is not a string.");return pt.body}));default:return ii.pipe((0,h.U)(pt=>pt.body))}case"response":return ii;default:throw new Error(`Unreachable: unhandled observe type ${Je.observe}}`)}}delete(ue,Ae={}){return this.request("DELETE",ue,Ae)}get(ue,Ae={}){return this.request("GET",ue,Ae)}head(ue,Ae={}){return this.request("HEAD",ue,Ae)}jsonp(ue,Ae){return this.request("JSONP",ue,{params:(new Q).append(Ae,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(ue,Ae={}){return this.request("OPTIONS",ue,Ae)}patch(ue,Ae,Je={}){return this.request("PATCH",ue,v(Je,Ae))}post(ue,Ae,Je={}){return this.request("POST",ue,v(Je,Ae))}put(ue,Ae,Je={}){return this.request("PUT",ue,v(Je,Ae))}}return ke.\u0275fac=function(ue){return new(ue||ke)(e.LFG(P))},ke.\u0275prov=e.Yz7({token:ke,factory:ke.\u0275fac}),ke})();function k(ke,$){return $(ke)}function x(ke,$){return(ue,Ae)=>$.intercept(ue,{handle:Je=>ke(Je,Ae)})}const g=new e.OlP("HTTP_INTERCEPTORS"),W=new e.OlP("HTTP_INTERCEPTOR_FNS");function O(){let ke=null;return($,ue)=>(null===ke&&(ke=((0,e.f3M)(g,{optional:!0})??[]).reduceRight(x,k)),ke($,ue))}let U=(()=>{class ke extends P{constructor(ue,Ae){super(),this.backend=ue,this.injector=Ae,this.chain=null}handle(ue){if(null===this.chain){const Ae=Array.from(new Set(this.injector.get(W)));this.chain=Ae.reduceRight((Je,$t)=>function n(ke,$,ue){return(Ae,Je)=>ue.runInContext(()=>$(Ae,$t=>ke($t,Je)))}(Je,$t,this.injector),k)}return this.chain(ue,Ae=>this.backend.handle(Ae))}}return ke.\u0275fac=function(ue){return new(ue||ke)(e.LFG(d),e.LFG(e.lqb))},ke.\u0275prov=e.Yz7({token:ke,factory:ke.\u0275fac}),ke})();const he=/^\)\]\}',?\n/;let pe=(()=>{class ke{constructor(ue){this.xhrFactory=ue}handle(ue){if("JSONP"===ue.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new T.y(Ae=>{const Je=this.xhrFactory.build();if(Je.open(ue.method,ue.urlWithParams),ue.withCredentials&&(Je.withCredentials=!0),ue.headers.forEach(($e,_t)=>Je.setRequestHeader($e,_t.join(","))),ue.headers.has("Accept")||Je.setRequestHeader("Accept","application/json, text/plain, */*"),!ue.headers.has("Content-Type")){const $e=ue.detectContentTypeHeader();null!==$e&&Je.setRequestHeader("Content-Type",$e)}if(ue.responseType){const $e=ue.responseType.toLowerCase();Je.responseType="json"!==$e?$e:"text"}const $t=ue.serializeBody();let Vt=null;const ii=()=>{if(null!==Vt)return Vt;const $e=Je.statusText||"OK",_t=new w(Je.getAllResponseHeaders()),vt=function Me(ke){return"responseURL"in ke&&ke.responseURL?ke.responseURL:/^X-Request-URL:/m.test(ke.getAllResponseHeaders())?ke.getResponseHeader("X-Request-URL"):null}(Je)||ue.url;return Vt=new a({headers:_t,status:Je.status,statusText:$e,url:vt}),Vt},pt=()=>{let{headers:$e,status:_t,statusText:vt,url:He}=ii(),Et=null;204!==_t&&(Et=typeof Je.response>"u"?Je.responseText:Je.response),0===_t&&(_t=Et?200:0);let At=_t>=200&&_t<300;if("json"===ue.responseType&&"string"==typeof Et){const Qt=Et;Et=Et.replace(he,"");try{Et=""!==Et?JSON.parse(Et):null}catch(zi){Et=Qt,At&&(At=!1,Et={error:zi,text:Et})}}At?(Ae.next(new f({body:Et,headers:$e,status:_t,statusText:vt,url:He||void 0})),Ae.complete()):Ae.error(new l({error:Et,headers:$e,status:_t,statusText:vt,url:He||void 0}))},ot=$e=>{const{url:_t}=ii(),vt=new l({error:$e,status:Je.status||0,statusText:Je.statusText||"Unknown Error",url:_t||void 0});Ae.error(vt)};let ft=!1;const St=$e=>{ft||(Ae.next(ii()),ft=!0);let _t={type:M.DownloadProgress,loaded:$e.loaded};$e.lengthComputable&&(_t.total=$e.total),"text"===ue.responseType&&Je.responseText&&(_t.partialText=Je.responseText),Ae.next(_t)},gt=$e=>{let _t={type:M.UploadProgress,loaded:$e.loaded};$e.lengthComputable&&(_t.total=$e.total),Ae.next(_t)};return Je.addEventListener("load",pt),Je.addEventListener("error",ot),Je.addEventListener("timeout",ot),Je.addEventListener("abort",ot),ue.reportProgress&&(Je.addEventListener("progress",St),null!==$t&&Je.upload&&Je.upload.addEventListener("progress",gt)),Je.send($t),Ae.next({type:M.Sent}),()=>{Je.removeEventListener("error",ot),Je.removeEventListener("abort",ot),Je.removeEventListener("load",pt),Je.removeEventListener("timeout",ot),ue.reportProgress&&(Je.removeEventListener("progress",St),null!==$t&&Je.upload&&Je.upload.removeEventListener("progress",gt)),Je.readyState!==Je.DONE&&Je.abort()}})}}return ke.\u0275fac=function(ue){return new(ue||ke)(e.LFG(t.JF))},ke.\u0275prov=e.Yz7({token:ke,factory:ke.\u0275fac}),ke})();const Ve=new e.OlP("XSRF_ENABLED"),Pe=new e.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),rt=new e.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Ke{}let lt=(()=>{class ke{constructor(ue,Ae,Je){this.doc=ue,this.platform=Ae,this.cookieName=Je,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const ue=this.doc.cookie||"";return ue!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,t.Mx)(ue,this.cookieName),this.lastCookieString=ue),this.lastToken}}return ke.\u0275fac=function(ue){return new(ue||ke)(e.LFG(t.K0),e.LFG(e.Lbi),e.LFG(Pe))},ke.\u0275prov=e.Yz7({token:ke,factory:ke.\u0275fac}),ke})();function Ut(ke,$){const ue=ke.url.toLowerCase();if(!(0,e.f3M)(Ve)||"GET"===ke.method||"HEAD"===ke.method||ue.startsWith("http://")||ue.startsWith("https://"))return $(ke);const Ae=(0,e.f3M)(Ke).getToken(),Je=(0,e.f3M)(rt);return null!=Ae&&!ke.headers.has(Je)&&(ke=ke.clone({headers:ke.headers.set(Je,Ae)})),$(ke)}var Ge=(()=>((Ge=Ge||{})[Ge.Interceptors=0]="Interceptors",Ge[Ge.LegacyInterceptors=1]="LegacyInterceptors",Ge[Ge.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Ge[Ge.NoXsrfProtection=3]="NoXsrfProtection",Ge[Ge.JsonpSupport=4]="JsonpSupport",Ge[Ge.RequestsMadeViaParent=5]="RequestsMadeViaParent",Ge))();function yt(ke,$){return{\u0275kind:ke,\u0275providers:$}}function be(...ke){const $=[I,pe,U,{provide:P,useExisting:U},{provide:d,useExisting:pe},{provide:W,useValue:Ut,multi:!0},{provide:Ve,useValue:!0},{provide:Ke,useClass:lt}];for(const ue of ke)$.push(...ue.\u0275providers);return(0,e.MR2)($)}const Ie=new e.OlP("LEGACY_INTERCEPTOR_FN");let xt=(()=>{class ke{}return ke.\u0275fac=function(ue){return new(ue||ke)},ke.\u0275mod=e.oAB({type:ke}),ke.\u0275inj=e.cJS({providers:[be(yt(Ge.LegacyInterceptors,[{provide:Ie,useFactory:O},{provide:W,useExisting:Ie,multi:!0}]))]}),ke})()},4650:(We,q,m)=>{"use strict";m.d(q,{$8M:()=>uc,$WT:()=>Ai,$Z:()=>ac,AFp:()=>U6,ALo:()=>d6,AaK:()=>P,AsE:()=>b0,BQk:()=>jh,CHM:()=>so,CRH:()=>y6,CZH:()=>bu,CqO:()=>w4,D6c:()=>xg,DdM:()=>t6,Dn7:()=>_m,EJc:()=>p8,EiD:()=>P2,EpF:()=>x4,F$t:()=>m0,F4k:()=>C4,FYo:()=>xs,FiY:()=>$r,Gf:()=>v6,GfV:()=>j2,GkF:()=>Kh,Gpc:()=>C,Gre:()=>Ol,HOy:()=>Ja,Hsn:()=>Nf,Ikx:()=>r3,JOm:()=>_s,JVY:()=>S2,JZr:()=>Y,Jf7:()=>Ld,KtG:()=>Ws,L6k:()=>th,LAX:()=>ih,LFG:()=>xt,Lbi:()=>Z6,Lck:()=>Hl,MAs:()=>y4,MGl:()=>p0,MMx:()=>$a,MR2:()=>fh,NdJ:()=>f0,O4$:()=>fs,OlP:()=>Ca,Oqu:()=>$d,P3R:()=>F2,PXZ:()=>A8,Q6J:()=>Af,QGY:()=>If,QbO:()=>f8,Qsj:()=>Z2,R0b:()=>cc,RDi:()=>q0,Rgc:()=>gu,SBq:()=>_1,Sil:()=>v8,Suo:()=>b6,TTD:()=>gr,TgZ:()=>qd,Tol:()=>v0,Udp:()=>Ss,VKq:()=>mm,W1O:()=>S6,WFA:()=>kf,WLB:()=>i6,X6Q:()=>O8,XFs:()=>Ve,Xpm:()=>At,Xts:()=>u1,Y36:()=>rs,YKP:()=>bo,YNc:()=>b4,Yjl:()=>Se,Yz7:()=>Ue,Z0I:()=>fe,ZZ4:()=>H3,_Bn:()=>Fl,_UZ:()=>Lf,_Vd:()=>Al,_c5:()=>j8,_uU:()=>oc,aQg:()=>Xm,c2e:()=>Y6,cJS:()=>ye,cg1:()=>s3,d8E:()=>lu,dDg:()=>eg,dqk:()=>lt,eBb:()=>E2,eFA:()=>rg,eJc:()=>Em,ekj:()=>xn,eoX:()=>tg,f3M:()=>Gt,g9A:()=>W6,h0i:()=>Gs,hGG:()=>K8,hYB:()=>Qh,hij:()=>N1,iGM:()=>_6,ifc:()=>pt,ip1:()=>B6,jDz:()=>Lo,kEZ:()=>pm,kL8:()=>Q4,kcU:()=>hc,lG2:()=>It,lcZ:()=>h6,lnq:()=>rl,lqb:()=>Cc,lri:()=>X6,mCW:()=>l1,n5z:()=>ll,n_E:()=>C3,oAB:()=>Mi,oJD:()=>_d,oxw:()=>Rf,pB0:()=>nh,q3G:()=>Qa,qLn:()=>il,qOj:()=>pf,qZA:()=>Yh,qzn:()=>Xc,rWj:()=>$6,s9C:()=>Ff,sBO:()=>R8,s_b:()=>_u,soG:()=>yu,tBr:()=>To,tb:()=>ng,tp0:()=>Ns,uIk:()=>Gh,vHH:()=>j,vpe:()=>Oc,wAp:()=>Mn,xi3:()=>u6,xp6:()=>Od,ynx:()=>u0,z2F:()=>O3,z3N:()=>po,zSh:()=>El,zs3:()=>ic});var t=m(7579),e=m(727),_=m(9751),T=m(6451),s=m(3099);function y(o){for(let c in o)if(o[c]===y)return c;throw Error("Could not find renamed property on target object.")}function h(o,c){for(const p in c)c.hasOwnProperty(p)&&!o.hasOwnProperty(p)&&(o[p]=c[p])}function P(o){if("string"==typeof o)return o;if(Array.isArray(o))return"["+o.map(P).join(", ")+"]";if(null==o)return""+o;if(o.overriddenName)return`${o.overriddenName}`;if(o.name)return`${o.name}`;const c=o.toString();if(null==c)return""+c;const p=c.indexOf("\n");return-1===p?c:c.substring(0,p)}function d(o,c){return null==o||""===o?null===c?"":c:null==c||""===c?o:o+" "+c}const w=y({__forward_ref__:y});function C(o){return o.__forward_ref__=C,o.toString=function(){return P(this())},o}function L(o){return D(o)?o():o}function D(o){return"function"==typeof o&&o.hasOwnProperty(w)&&o.__forward_ref__===C}function z(o){return o&&!!o.\u0275providers}const Y="https://g.co/ng/security#xss";class j extends Error{constructor(c,p){super(Q(c,p)),this.code=c}}function Q(o,c){return`NG0${Math.abs(o)}${c?": "+c.trim():""}`}function J(o){return"string"==typeof o?o:null==o?"":String(o)}function se(o,c){throw new j(-201,!1)}function W(o,c){null==o&&function O(o,c,p,E){throw new Error(`ASSERTION ERROR: ${o}`+(null==E?"":` [Expected=> ${p} ${E} ${c} <=Actual]`))}(c,o,null,"!=")}function Ue(o){return{token:o.token,providedIn:o.providedIn||null,factory:o.factory,value:void 0}}function ye(o){return{providers:o.providers||[],imports:o.imports||[]}}function xe(o){return Oe(o,De)||Oe(o,Me)}function fe(o){return null!==xe(o)}function Oe(o,c){return o.hasOwnProperty(c)?o[c]:null}function Fe(o){return o&&(o.hasOwnProperty(he)||o.hasOwnProperty(pe))?o[he]:null}const De=y({\u0275prov:y}),he=y({\u0275inj:y}),Me=y({ngInjectableDef:y}),pe=y({ngInjectorDef:y});var Ve=(()=>((Ve=Ve||{})[Ve.Default=0]="Default",Ve[Ve.Host=1]="Host",Ve[Ve.Self=2]="Self",Ve[Ve.SkipSelf=4]="SkipSelf",Ve[Ve.Optional=8]="Optional",Ve))();let Qe;function de(o){const c=Qe;return Qe=o,c}function rt(o,c,p){const E=xe(o);return E&&"root"==E.providedIn?void 0===E.value?E.value=E.factory():E.value:p&Ve.Optional?null:void 0!==c?c:void se(P(o))}const lt=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),yt={},be="__NG_DI_FLAG__",qe="ngTempTokenPath",Ie="ngTokenPath",X=/\n/gm,mt="\u0275",Tt="__source";let it;function je(o){const c=it;return it=o,c}function zt(o,c=Ve.Default){if(void 0===it)throw new j(-203,!1);return null===it?rt(o,void 0,c):it.get(o,c&Ve.Optional?null:void 0,c)}function xt(o,c=Ve.Default){return(function Pe(){return Qe}()||zt)(L(o),c)}function Gt(o,c=Ve.Default){return xt(o,ke(c))}function ke(o){return typeof o>"u"||"number"==typeof o?o:0|(o.optional&&8)|(o.host&&1)|(o.self&&2)|(o.skipSelf&&4)}function $(o){const c=[];for(let p=0;p((ii=ii||{})[ii.OnPush=0]="OnPush",ii[ii.Default=1]="Default",ii))(),pt=(()=>{return(o=pt||(pt={}))[o.Emulated=0]="Emulated",o[o.None=2]="None",o[o.ShadowDom=3]="ShadowDom",pt;var o})();const ot={},ft=[],St=y({\u0275cmp:y}),gt=y({\u0275dir:y}),$e=y({\u0275pipe:y}),_t=y({\u0275mod:y}),vt=y({\u0275fac:y}),He=y({__NG_ELEMENT_ID__:y});let Et=0;function At(o){return Vt(()=>{const c=Qi(o),p={...c,decls:o.decls,vars:o.vars,template:o.template,consts:o.consts||null,ngContentSelectors:o.ngContentSelectors,onPush:o.changeDetection===ii.OnPush,directiveDefs:null,pipeDefs:null,dependencies:c.standalone&&o.dependencies||null,getStandaloneInjector:null,data:o.data||{},encapsulation:o.encapsulation||pt.Emulated,id:"c"+Et++,styles:o.styles||ft,_:null,schemas:o.schemas||null,tView:null};en(p);const E=o.dependencies;return p.directiveDefs=Yi(E,!1),p.pipeDefs=Yi(E,!0),p})}function zi(o){return wt(o)||Zt(o)}function Ni(o){return null!==o}function Mi(o){return Vt(()=>({type:o.type,bootstrap:o.bootstrap||ft,declarations:o.declarations||ft,imports:o.imports||ft,exports:o.exports||ft,transitiveCompileScopes:null,schemas:o.schemas||null,id:o.id||null}))}function Xe(o,c){if(null==o)return ot;const p={};for(const E in o)if(o.hasOwnProperty(E)){let F=o[E],Z=F;Array.isArray(F)&&(Z=F[1],F=F[0]),p[F]=E,c&&(c[F]=Z)}return p}function It(o){return Vt(()=>{const c=Qi(o);return en(c),c})}function Se(o){return{type:o.type,name:o.name,factory:null,pure:!1!==o.pure,standalone:!0===o.standalone,onDestroy:o.type.prototype.ngOnDestroy||null}}function wt(o){return o[St]||null}function Zt(o){return o[gt]||null}function si(o){return o[$e]||null}function Ai(o){const c=wt(o)||Zt(o)||si(o);return null!==c&&c.standalone}function Oi(o,c){const p=o[_t]||null;if(!p&&!0===c)throw new Error(`Type ${P(o)} does not have '\u0275mod' property.`);return p}function Qi(o){const c={};return{type:o.type,providersResolver:null,factory:null,hostBindings:o.hostBindings||null,hostVars:o.hostVars||0,hostAttrs:o.hostAttrs||null,contentQueries:o.contentQueries||null,declaredInputs:c,exportAs:o.exportAs||null,standalone:!0===o.standalone,selectors:o.selectors||ft,viewQuery:o.viewQuery||null,features:o.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Xe(o.inputs,c),outputs:Xe(o.outputs)}}function en(o){o.features?.forEach(c=>c(o))}function Yi(o,c){if(!o)return null;const p=c?si:zi;return()=>("function"==typeof o?o():o).map(E=>p(E)).filter(Ni)}const Yt=0,qt=1,_e=2,dt=3,Dt=4,Bt=5,Ot=6,vi=7,li=8,mi=9,gi=10,Ui=11,Un=12,Dn=13,oa=14,Ea=15,ta=16,er=17,Jt=18,pi=19,Kt=20,ri=21,xi=22,ln=1,Gn=2,Hn=7,_a=8,Tn=9,Vn=10;function zn(o){return Array.isArray(o)&&"object"==typeof o[ln]}function ia(o){return Array.isArray(o)&&!0===o[ln]}function Co(o){return 0!=(4&o.flags)}function Pr(o){return o.componentOffset>-1}function xr(o){return 1==(1&o.flags)}function jn(o){return!!o.template}function Ta(o){return 0!=(256&o[_e])}function za(o,c){return o.hasOwnProperty(vt)?o[vt]:null}class sr{constructor(c,p,E){this.previousValue=c,this.currentValue=p,this.firstChange=E}isFirstChange(){return this.firstChange}}function gr(){return Cr}function Cr(o){return o.type.prototype.ngOnChanges&&(o.setInput=oo),Oo}function Oo(){const o=qr(this),c=o?.current;if(c){const p=o.previous;if(p===ot)o.previous=c;else for(let E in c)p[E]=c[E];o.current=null,this.ngOnChanges(c)}}function oo(o,c,p,E){const F=this.declaredInputs[p],Z=qr(o)||function cr(o,c){return o[Qr]=c}(o,{previous:ot,current:null}),le=Z.current||(Z.current={}),Re=Z.previous,Ye=Re[F];le[F]=new sr(Ye&&Ye.currentValue,c,Re===ot),o[E]=c}gr.ngInherit=!0;const Qr="__ngSimpleChanges__";function qr(o){return o[Qr]||null}const Va=function(o,c,p){},wr="svg";function On(o){for(;Array.isArray(o);)o=o[Yt];return o}function Mr(o,c){return On(c[o])}function ya(o,c){return On(c[o.index])}function Ft(o,c){return o.data[c]}function hi(o,c){return o[c]}function Ct(o,c){const p=c[o];return zn(p)?p:p[Yt]}function Ii(o){return 64==(64&o[_e])}function aa(o,c){return null==c?null:o[c]}function ca(o){o[Jt]=0}function Wi(o,c){o[Bt]+=c;let p=o,E=o[dt];for(;null!==E&&(1===c&&1===p[Bt]||-1===c&&0===p[Bt]);)E[Bt]+=c,p=E,E=E[dt]}const _n={lFrame:dc(null),bindingsEnabled:!0};function wi(){return _n.bindingsEnabled}function Ei(){return _n.lFrame.lView}function An(){return _n.lFrame.tView}function so(o){return _n.lFrame.contextLView=o,o[li]}function Ws(o){return _n.lFrame.contextLView=null,o}function Ba(){let o=ds();for(;null!==o&&64===o.type;)o=o.parent;return o}function ds(){return _n.lFrame.currentTNode}function Sr(o,c){const p=_n.lFrame;p.currentTNode=o,p.isParent=c}function Xo(){return _n.lFrame.isParent}function Ds(){_n.lFrame.isParent=!1}function qn(){const o=_n.lFrame;let c=o.bindingRootIndex;return-1===c&&(c=o.bindingRootIndex=o.tView.bindingStartIndex),c}function ki(){return _n.lFrame.bindingIndex}function co(){return _n.lFrame.bindingIndex++}function Fi(o){const c=_n.lFrame,p=c.bindingIndex;return c.bindingIndex=c.bindingIndex+o,p}function lc(o,c){const p=_n.lFrame;p.bindingIndex=p.bindingRootIndex=o,dr(c)}function dr(o){_n.lFrame.currentDirectiveIndex=o}function Go(o){const c=_n.lFrame.currentDirectiveIndex;return-1===c?null:o[c]}function lo(){return _n.lFrame.currentQueryIndex}function hs(o){_n.lFrame.currentQueryIndex=o}function Ys(o){const c=o[qt];return 2===c.type?c.declTNode:1===c.type?o[Ot]:null}function Fo(o,c,p){if(p&Ve.SkipSelf){let F=c,Z=o;for(;!(F=F.parent,null!==F||p&Ve.Host||(F=Ys(Z),null===F||(Z=Z[Ea],10&F.type))););if(null===F)return!1;c=F,o=Z}const E=_n.lFrame=ks();return E.currentTNode=c,E.lView=o,!0}function Is(o){const c=ks(),p=o[qt];_n.lFrame=c,c.currentTNode=p.firstChild,c.lView=o,c.tView=p,c.contextLView=o,c.bindingIndex=p.bindingStartIndex,c.inI18n=!1}function ks(){const o=_n.lFrame,c=null===o?null:o.child;return null===c?dc(o):c}function dc(o){const c={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:o,child:null,inI18n:!1};return null!==o&&(o.child=c),c}function js(){const o=_n.lFrame;return _n.lFrame=o.parent,o.currentTNode=null,o.lView=null,o}const Ya=js;function es(){const o=js();o.isParent=!0,o.tView=null,o.selectedIndex=-1,o.contextLView=null,o.elementDepthCount=0,o.currentDirectiveIndex=-1,o.currentNamespace=null,o.bindingRootIndex=-1,o.bindingIndex=-1,o.currentQueryIndex=0}function ja(){return _n.lFrame.selectedIndex}function Ho(o){_n.lFrame.selectedIndex=o}function la(){const o=_n.lFrame;return Ft(o.tView,o.selectedIndex)}function fs(){_n.lFrame.currentNamespace=wr}function hc(){!function Wn(){_n.lFrame.currentNamespace=null}()}function La(o,c){for(let p=c.directiveStart,E=c.directiveEnd;p=E)break}else c[Ye]<0&&(o[Jt]+=65536),(Re>11>16&&(3&o[_e])===c){o[_e]+=2048,Va(4,Re,Z);try{Z.call(Re)}finally{Va(5,Re,Z)}}}else{Va(4,Re,Z);try{Z.call(Re)}finally{Va(5,Re,Z)}}}const Ee=-1;class tt{constructor(c,p,E){this.factory=c,this.resolving=!1,this.canSeeViewProviders=p,this.injectImpl=E}}function tn(o,c,p){let E=0;for(;Ec){le=Z-1;break}}}for(;Z>16}(o),E=c;for(;p>0;)E=E[Ea],p--;return E}let Ma=!0;function Tr(o){const c=Ma;return Ma=o,c}const ho=255,zr=5;let ol=0;const Wo={};function Nc(o,c){const p=Gl(o,c);if(-1!==p)return p;const E=c[qt];E.firstCreatePass&&(o.injectorIndex=c.length,Ar(E.data,o),Ar(c,null),Ar(E.blueprint,null));const F=Os(o,c),Z=o.injectorIndex;if(ha(F)){const le=ua(F),Re=Da(F,c),Ye=Re[qt].data;for(let bt=0;bt<8;bt++)c[Z+bt]=Re[le+bt]|Ye[le+bt]}return c[Z+8]=F,Z}function Ar(o,c){o.push(0,0,0,0,0,0,0,0,c)}function Gl(o,c){return-1===o.injectorIndex||o.parent&&o.parent.injectorIndex===o.injectorIndex||null===c[o.injectorIndex+8]?-1:o.injectorIndex}function Os(o,c){if(o.parent&&-1!==o.parent.injectorIndex)return o.parent.injectorIndex;let p=0,E=null,F=c;for(;null!==F;){if(E=V1(F),null===E)return Ee;if(p++,F=F[Ea],-1!==E.injectorIndex)return E.injectorIndex|p<<16}return Ee}function Fc(o,c,p){!function Ul(o,c,p){let E;"string"==typeof p?E=p.charCodeAt(0)||0:p.hasOwnProperty(He)&&(E=p[He]),null==E&&(E=p[He]=ol++);const F=E&ho;c.data[o+(F>>zr)]|=1<=0?c&ho:Jr:c}(p);if("function"==typeof Z){if(!Fo(c,o,E))return E&Ve.Host?cl(F,0,E):H1(c,p,E,F);try{const le=Z(E);if(null!=le||E&Ve.Optional)return le;se()}finally{Ya()}}else if("number"==typeof Z){let le=null,Re=Gl(o,c),Ye=Ee,bt=E&Ve.Host?c[ta][Ot]:null;for((-1===Re||E&Ve.SkipSelf)&&(Ye=-1===Re?Os(o,c):c[Re+8],Ye!==Ee&&Zl(E,!1)?(le=c[qt],Re=ua(Ye),c=Da(Ye,c)):Re=-1);-1!==Re;){const Pt=c[qt];if(Ps(Z,Re,Pt.data)){const ei=Hc(Re,c,p,le,E,bt);if(ei!==Wo)return ei}Ye=c[Re+8],Ye!==Ee&&Zl(E,c[qt].data[Re+8]===bt)&&Ps(Z,Re,c)?(le=Pt,Re=ua(Ye),c=Da(Ye,c)):Re=-1}}return F}function Hc(o,c,p,E,F,Z){const le=c[qt],Re=le.data[o+8],Pt=Ks(Re,le,p,null==E?Pr(Re)&&Ma:E!=le&&0!=(3&Re.type),F&Ve.Host&&Z===Re);return null!==Pt?tr(c,le,Pt,Re):Wo}function Ks(o,c,p,E,F){const Z=o.providerIndexes,le=c.data,Re=1048575&Z,Ye=o.directiveStart,Pt=Z>>20,di=F?Re+Pt:o.directiveEnd;for(let yi=E?Re:Re+Pt;yi=Ye&&Ri.type===p)return yi}if(F){const yi=le[Ye];if(yi&&jn(yi)&&yi.type===p)return Ye}return null}function tr(o,c,p,E){let F=o[p];const Z=c.data;if(function Ne(o){return o instanceof tt}(F)){const le=F;le.resolving&&function me(o,c){const p=c?`. Dependency path: ${c.join(" > ")} > ${o}`:"";throw new j(-200,`Circular dependency in DI detected for ${o}${p}`)}(function ee(o){return"function"==typeof o?o.name||o.toString():"object"==typeof o&&null!=o&&"function"==typeof o.type?o.type.name||o.type.toString():J(o)}(Z[p]));const Re=Tr(le.canSeeViewProviders);le.resolving=!0;const Ye=le.injectImpl?de(le.injectImpl):null;Fo(o,E,Ve.Default);try{F=o[p]=le.factory(void 0,Z,o,E),c.firstCreatePass&&p>=E.directiveStart&&function xa(o,c,p){const{ngOnChanges:E,ngOnInit:F,ngDoCheck:Z}=c.type.prototype;if(E){const le=Cr(c);(p.preOrderHooks??(p.preOrderHooks=[])).push(o,le),(p.preOrderCheckHooks??(p.preOrderCheckHooks=[])).push(o,le)}F&&(p.preOrderHooks??(p.preOrderHooks=[])).push(0-o,F),Z&&((p.preOrderHooks??(p.preOrderHooks=[])).push(o,Z),(p.preOrderCheckHooks??(p.preOrderCheckHooks=[])).push(o,Z))}(p,Z[p],c)}finally{null!==Ye&&de(Ye),Tr(Re),le.resolving=!1,Ya()}}return F}function Ps(o,c,p){return!!(p[c+(o>>zr)]&1<{const c=o.prototype.constructor,p=c[vt]||dl(c),E=Object.prototype;let F=Object.getPrototypeOf(o.prototype).constructor;for(;F&&F!==E;){const Z=F[vt]||dl(F);if(Z&&Z!==p)return Z;F=Object.getPrototypeOf(F)}return Z=>new Z})}function dl(o){return D(o)?()=>{const c=dl(L(o));return c&&c()}:za(o)}function V1(o){const c=o[qt],p=c.type;return 2===p?c.declTNode:1===p?o[Ot]:null}function uc(o){return function sl(o,c){if("class"===c)return o.classes;if("style"===c)return o.styles;const p=o.attrs;if(p){const E=p.length;let F=0;for(;F{const E=function Vc(o){return function(...p){if(o){const E=o(...p);for(const F in E)this[F]=E[F]}}}(c);function F(...Z){if(this instanceof F)return E.apply(this,Z),this;const le=new F(...Z);return Re.annotation=le,Re;function Re(Ye,bt,Pt){const ei=Ye.hasOwnProperty(uo)?Ye[uo]:Object.defineProperty(Ye,uo,{value:[]})[uo];for(;ei.length<=Pt;)ei.push(null);return(ei[Pt]=ei[Pt]||[]).push(le),Ye}}return p&&(F.prototype=Object.create(p.prototype)),F.prototype.ngMetadataName=o,F.annotationCls=F,F})}class Ca{constructor(c,p){this._desc=c,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof p?this.__NG_ELEMENT_ID__=p:void 0!==p&&(this.\u0275prov=Ue({token:this,providedIn:p.providedIn||"root",factory:p.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function ve(o,c){o.forEach(p=>Array.isArray(p)?ve(p,c):c(p))}function we(o,c,p){c>=o.length?o.push(p):o.splice(c,0,p)}function ae(o,c){return c>=o.length-1?o.pop():o.splice(c,1)[0]}function Be(o,c){const p=[];for(let E=0;E=0?o[1|E]=p:(E=~E,function Ht(o,c,p,E){let F=o.length;if(F==c)o.push(p,E);else if(1===F)o.push(E,o[0]),o[0]=p;else{for(F--,o.push(o[F-1],o[F]);F>c;)o[F]=o[F-2],F--;o[c]=p,o[c+1]=E}}(o,E,c,p)),E}function rn(o,c){const p=an(o,c);if(p>=0)return o[1|p]}function an(o,c){return function ar(o,c,p){let E=0,F=o.length>>p;for(;F!==E;){const Z=E+(F-E>>1),le=o[Z<c?F=Z:E=Z+1}return~(F<({token:o})),-1),$r=ue(Yo("Optional"),8),Ns=ue(Yo("SkipSelf"),4);var _s=(()=>((_s=_s||{})[_s.Important=1]="Important",_s[_s.DashCase=2]="DashCase",_s))();const m2=new Map;let z0=0;const qs="__ngContext__";function eo(o,c){zn(c)?(o[qs]=c[Kt],function Lu(o){m2.set(o[Kt],o)}(c)):o[qs]=c}let _l;function _2(o,c){return _l(o,c)}function gc(o){const c=o[dt];return ia(c)?c[dt]:c}function Hs(o){return jc(o[Dn])}function ql(o){return jc(o[Dt])}function jc(o){for(;null!==o&&!ia(o);)o=o[Dt];return o}function Kc(o,c,p,E,F){if(null!=E){let Z,le=!1;ia(E)?Z=E:zn(E)&&(le=!0,E=E[Yt]);const Re=On(E);0===o&&null!==p?null==F?Xs(c,p,Re):bc(c,p,Re,F||null,!0):1===o&&null!==p?bc(c,p,Re,F||null,!0):2===o?function x2(o,c,p){const E=ad(o,c);E&&function Z0(o,c,p,E){o.removeChild(c,p,E)}(o,E,c,p)}(c,Re,le):3===o&&c.destroyNode(Re),null!=Z&&function od(o,c,p,E,F){const Z=p[Hn];Z!==On(p)&&Kc(c,o,E,Z,F);for(let Re=Vn;Re0&&(o[p-1][Dt]=E[Dt]);const Z=ae(o,Vn+c);!function Pu(o,c){zs(o,c,c[Ui],2,null,null),c[Yt]=null,c[Ot]=null}(E[qt],E);const le=Z[pi];null!==le&&le.detachView(Z[qt]),E[dt]=null,E[Dt]=null,E[_e]&=-65}return E}function _c(o,c){if(!(128&c[_e])){const p=c[Ui];p.destroyNode&&zs(o,c,p,3,null,null),function Fu(o){let c=o[Dn];if(!c)return td(o[qt],o);for(;c;){let p=null;if(zn(c))p=c[Dn];else{const E=c[Vn];E&&(p=E)}if(!p){for(;c&&!c[Dt]&&c!==o;)zn(c)&&td(c[qt],c),c=c[dt];null===c&&(c=o),zn(c)&&td(c[qt],c),p=c&&c[Dt]}c=p}}(c)}}function td(o,c){if(!(128&c[_e])){c[_e]&=-65,c[_e]|=128,function id(o,c){let p;if(null!=o&&null!=(p=o.destroyHooks))for(let E=0;E=0?E[F=le]():E[F=-le].unsubscribe(),Z+=2}else{const le=E[F=p[Z+1]];p[Z].call(le)}if(null!==E){for(let Z=F+1;Z-1){const{encapsulation:Z}=o.data[E.directiveStart+F];if(Z===pt.None||Z===pt.Emulated)return null}return ya(E,p)}}(o,c.parent,p)}function bc(o,c,p,E,F){o.insertBefore(c,p,E,F)}function Xs(o,c,p){o.appendChild(c,p)}function qc(o,c,p,E,F){null!==E?bc(o,c,p,E,F):Xs(o,c,p)}function ad(o,c){return o.parentNode(c)}function Y0(o,c,p){return b2(o,c,p)}let y2,a1,s1,wl,b2=function j0(o,c,p){return 40&o.type?ya(o,p):null};function yl(o,c,p,E){const F=bl(o,E,c),Z=c[Ui],Re=Y0(E.parent||c[Ot],E,c);if(null!=F)if(Array.isArray(p))for(let Ye=0;Yeo,createScript:o=>o,createScriptURL:o=>o})}catch{}return a1}()?.createHTML(o)||o}function q0(o){s1=o}function c1(){if(void 0===wl&&(wl=null,lt.trustedTypes))try{wl=lt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:o=>o,createScript:o=>o,createScriptURL:o=>o})}catch{}return wl}function cd(o){return c1()?.createHTML(o)||o}function ld(o){return c1()?.createScriptURL(o)||o}class yc{constructor(c){this.changingThisBreaksApplicationSecurity=c}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Y})`}}class dd extends yc{getTypeName(){return"HTML"}}class J0 extends yc{getTypeName(){return"Style"}}class hd extends yc{getTypeName(){return"Script"}}class X0 extends yc{getTypeName(){return"URL"}}class $0 extends yc{getTypeName(){return"ResourceURL"}}function po(o){return o instanceof yc?o.changingThisBreaksApplicationSecurity:o}function Xc(o,c){const p=function eh(o){return o instanceof yc&&o.getTypeName()||null}(o);if(null!=p&&p!==c){if("ResourceURL"===p&&"URL"===c)return!0;throw new Error(`Required a safe ${c}, got a ${p} (see ${Y})`)}return p===c}function S2(o){return new dd(o)}function th(o){return new J0(o)}function E2(o){return new hd(o)}function ih(o){return new X0(o)}function nh(o){return new $0(o)}class A2{constructor(c){this.inertDocumentHelper=c}getInertBodyElement(c){c=""+c;try{const p=(new window.DOMParser).parseFromString($n(c),"text/html").body;return null===p?this.inertDocumentHelper.getInertBodyElement(c):(p.removeChild(p.firstChild),p)}catch{return null}}}class ah{constructor(c){this.defaultDoc=c,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(c){const p=this.inertDocument.createElement("template");return p.innerHTML=$n(c),p}}const L2=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function l1(o){return(o=String(o)).match(L2)?o:"unsafe:"+o}function bs(o){const c={};for(const p of o.split(","))c[p]=!0;return c}function Ml(...o){const c={};for(const p of o)for(const E in p)p.hasOwnProperty(E)&&(c[E]=!0);return c}const ud=bs("area,br,col,hr,img,wbr"),D2=bs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),fd=bs("rp,rt"),md=Ml(ud,Ml(D2,bs("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ml(fd,bs("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ml(fd,D2)),d1=bs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),pd=Ml(d1,bs("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),bs("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),sh=bs("script,style,template");class ch{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(c){let p=c.firstChild,E=!0;for(;p;)if(p.nodeType===Node.ELEMENT_NODE?E=this.startElement(p):p.nodeType===Node.TEXT_NODE?this.chars(p.nodeValue):this.sanitizedSomething=!0,E&&p.firstChild)p=p.firstChild;else for(;p;){p.nodeType===Node.ELEMENT_NODE&&this.endElement(p);let F=this.checkClobberedElement(p,p.nextSibling);if(F){p=F;break}p=this.checkClobberedElement(p,p.parentNode)}return this.buf.join("")}startElement(c){const p=c.nodeName.toLowerCase();if(!md.hasOwnProperty(p))return this.sanitizedSomething=!0,!sh.hasOwnProperty(p);this.buf.push("<"),this.buf.push(p);const E=c.attributes;for(let F=0;F"),!0}endElement(c){const p=c.nodeName.toLowerCase();md.hasOwnProperty(p)&&!ud.hasOwnProperty(p)&&(this.buf.push(""))}chars(c){this.buf.push(O2(c))}checkClobberedElement(c,p){if(p&&(c.compareDocumentPosition(p)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${c.outerHTML}`);return p}}const k2=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,lh=/([^\#-~ |!])/g;function O2(o){return o.replace(/&/g,"&").replace(k2,function(c){return"&#"+(1024*(c.charCodeAt(0)-55296)+(c.charCodeAt(1)-56320)+65536)+";"}).replace(lh,function(c){return"&#"+c.charCodeAt(0)+";"}).replace(//g,">")}let h1;function P2(o,c){let p=null;try{h1=h1||function T2(o){const c=new ah(o);return function rh(){try{return!!(new window.DOMParser).parseFromString($n(""),"text/html")}catch{return!1}}()?new A2(c):c}(o);let E=c?String(c):"";p=h1.getInertBodyElement(E);let F=5,Z=E;do{if(0===F)throw new Error("Failed to sanitize html because the input is unstable");F--,E=Z,Z=p.innerHTML,p=h1.getInertBodyElement(E)}while(E!==Z);return $n((new ch).sanitizeChildren(gd(p)||p))}finally{if(p){const E=gd(p)||p;for(;E.firstChild;)E.removeChild(E.firstChild)}}}function gd(o){return"content"in o&&function R2(o){return o.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===o.nodeName}(o)?o.content:null}var Qa=(()=>((Qa=Qa||{})[Qa.NONE=0]="NONE",Qa[Qa.HTML=1]="HTML",Qa[Qa.STYLE=2]="STYLE",Qa[Qa.SCRIPT=3]="SCRIPT",Qa[Qa.URL=4]="URL",Qa[Qa.RESOURCE_URL=5]="RESOURCE_URL",Qa))();function _d(o){const c=ys();return c?cd(c.sanitize(Qa.HTML,o)||""):Xc(o,"HTML")?cd(po(o)):P2(function w2(){return void 0!==s1?s1:typeof document<"u"?document:void 0}(),J(o))}function N2(o){const c=ys();return c?c.sanitize(Qa.URL,o)||"":Xc(o,"URL")?po(o):l1(J(o))}function vd(o){const c=ys();if(c)return ld(c.sanitize(Qa.RESOURCE_URL,o)||"");if(Xc(o,"ResourceURL"))return ld(po(o));throw new j(904,!1)}function F2(o,c,p){return function Ku(o,c){return"src"===c&&("embed"===o||"frame"===o||"iframe"===o||"media"===o||"script"===o)||"href"===c&&("base"===o||"link"===o)?vd:N2}(c,p)(o)}function ys(){const o=Ei();return o&&o[Un]}const u1=new Ca("ENVIRONMENT_INITIALIZER"),H2=new Ca("INJECTOR",-1),z2=new Ca("INJECTOR_DEF_TYPES");class bd{get(c,p=yt){if(p===yt){const E=new Error(`NullInjectorError: No provider for ${P(c)}!`);throw E.name="NullInjectorError",E}return p}}function fh(o){return{\u0275providers:o}}function yd(...o){return{\u0275providers:mh(0,o),\u0275fromNgModule:!0}}function mh(o,...c){const p=[],E=new Set;let F;return ve(c,Z=>{const le=Z;xd(le,p,[],E)&&(F||(F=[]),F.push(le))}),void 0!==F&&f1(F,p),p}function f1(o,c){for(let p=0;p{c.push(Z)})}}function xd(o,c,p,E){if(!(o=L(o)))return!1;let F=null,Z=Fe(o);const le=!Z&&wt(o);if(Z||le){if(le&&!le.standalone)return!1;F=o}else{const Ye=o.ngModule;if(Z=Fe(Ye),!Z)return!1;F=Ye}const Re=E.has(F);if(le){if(Re)return!1;if(E.add(F),le.dependencies){const Ye="function"==typeof le.dependencies?le.dependencies():le.dependencies;for(const bt of Ye)xd(bt,c,p,E)}}else{if(!Z)return!1;{if(null!=Z.imports&&!Re){let bt;E.add(F);try{ve(Z.imports,Pt=>{xd(Pt,c,p,E)&&(bt||(bt=[]),bt.push(Pt))})}finally{}void 0!==bt&&f1(bt,c)}if(!Re){const bt=za(F)||(()=>new F);c.push({provide:F,useFactory:bt,deps:ft},{provide:z2,useValue:F,multi:!0},{provide:u1,useValue:()=>xt(F),multi:!0})}const Ye=Z.providers;null==Ye||Re||m1(Ye,Pt=>{c.push(Pt)})}}return F!==o&&void 0!==o.providers}function m1(o,c){for(let p of o)z(p)&&(p=p.\u0275providers),Array.isArray(p)?m1(p,c):c(p)}const Vr=y({provide:String,useValue:y});function Sl(o){return null!==o&&"object"==typeof o&&Vr in o}function ec(o){return"function"==typeof o}const El=new Ca("Set Injector scope."),p1={},ph={};let g1;function $c(){return void 0===g1&&(g1=new bd),g1}class Cc{}class Cd extends Cc{get destroyed(){return this._destroyed}constructor(c,p,E,F){super(),this.parent=p,this.source=E,this.scopes=F,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,tl(c,le=>this.processProvider(le)),this.records.set(H2,el(void 0,this)),F.has("environment")&&this.records.set(Cc,el(void 0,this));const Z=this.records.get(El);null!=Z&&"string"==typeof Z.value&&this.scopes.add(Z.value),this.injectorDefTypes=new Set(this.get(z2.multi,ft,Ve.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const c of this._ngOnDestroyHooks)c.ngOnDestroy();for(const c of this._onDestroyHooks)c()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(c){this._onDestroyHooks.push(c)}runInContext(c){this.assertNotDestroyed();const p=je(this),E=de(void 0);try{return c()}finally{je(p),de(E)}}get(c,p=yt,E=Ve.Default){this.assertNotDestroyed(),E=ke(E);const F=je(this),Z=de(void 0);try{if(!(E&Ve.SkipSelf)){let Re=this.records.get(c);if(void 0===Re){const Ye=function vh(o){return"function"==typeof o||"object"==typeof o&&o instanceof Ca}(c)&&xe(c);Re=Ye&&this.injectableDefInScope(Ye)?el(wc(c),p1):null,this.records.set(c,Re)}if(null!=Re)return this.hydrate(c,Re)}return(E&Ve.Self?$c():this.parent).get(c,p=E&Ve.Optional&&p===yt?null:p)}catch(le){if("NullInjectorError"===le.name){if((le[qe]=le[qe]||[]).unshift(P(c)),F)throw le;return function Je(o,c,p,E){const F=o[qe];throw c[Tt]&&F.unshift(c[Tt]),o.message=function $t(o,c,p,E=null){o=o&&"\n"===o.charAt(0)&&o.charAt(1)==mt?o.slice(2):o;let F=P(c);if(Array.isArray(c))F=c.map(P).join(" -> ");else if("object"==typeof c){let Z=[];for(let le in c)if(c.hasOwnProperty(le)){let Re=c[le];Z.push(le+":"+("string"==typeof Re?JSON.stringify(Re):P(Re)))}F=`{${Z.join(", ")}}`}return`${p}${E?"("+E+")":""}[${F}]: ${o.replace(X,"\n ")}`}("\n"+o.message,F,p,E),o[Ie]=F,o[qe]=null,o}(le,c,"R3InjectorError",this.source)}throw le}finally{de(Z),je(F)}}resolveInjectorInitializers(){const c=je(this),p=de(void 0);try{const E=this.get(u1.multi,ft,Ve.Self);for(const F of E)F()}finally{je(c),de(p)}}toString(){const c=[],p=this.records;for(const E of p.keys())c.push(P(E));return`R3Injector[${c.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new j(205,!1)}processProvider(c){let p=ec(c=L(c))?c:L(c&&c.provide);const E=function gh(o){return Sl(o)?el(void 0,o.useValue):el(U2(o),p1)}(c);if(ec(c)||!0!==c.multi)this.records.get(p);else{let F=this.records.get(p);F||(F=el(void 0,p1,!0),F.factory=()=>$(F.multi),this.records.set(p,F)),p=c,F.multi.push(c)}this.records.set(p,E)}hydrate(c,p){return p.value===p1&&(p.value=ph,p.value=p.factory()),"object"==typeof p.value&&p.value&&function _h(o){return null!==o&&"object"==typeof o&&"function"==typeof o.ngOnDestroy}(p.value)&&this._ngOnDestroyHooks.add(p.value),p.value}injectableDefInScope(c){if(!c.providedIn)return!1;const p=L(c.providedIn);return"string"==typeof p?"any"===p||this.scopes.has(p):this.injectorDefTypes.has(p)}}function wc(o){const c=xe(o),p=null!==c?c.factory:za(o);if(null!==p)return p;if(o instanceof Ca)throw new j(204,!1);if(o instanceof Function)return function Qu(o){const c=o.length;if(c>0)throw Be(c,"?"),new j(204,!1);const p=function oe(o){return o&&(o[De]||o[Me])||null}(o);return null!==p?()=>p.factory(o):()=>new o}(o);throw new j(204,!1)}function U2(o,c,p){let E;if(ec(o)){const F=L(o);return za(F)||wc(F)}if(Sl(o))E=()=>L(o.useValue);else if(function B2(o){return!(!o||!o.useFactory)}(o))E=()=>o.useFactory(...$(o.deps||[]));else if(function V2(o){return!(!o||!o.useExisting)}(o))E=()=>xt(L(o.useExisting));else{const F=L(o&&(o.useClass||o.provide));if(!function G2(o){return!!o.deps}(o))return za(F)||wc(F);E=()=>new F(...$(o.deps))}return E}function el(o,c,p=!1){return{factory:o,value:c,multi:p?[]:void 0}}function tl(o,c){for(const p of o)Array.isArray(p)?tl(p,c):p&&z(p)?tl(p.\u0275providers,c):c(p)}class wd{}class W2{}class Sd{resolveComponentFactory(c){throw function Tl(o){const c=Error(`No component factory found for ${P(o)}. Did you add it to @NgModule.entryComponents?`);return c.ngComponent=o,c}(c)}}let Al=(()=>{class o{}return o.NULL=new Sd,o})();function Ed(){return Br(Ba(),Ei())}function Br(o,c){return new _1(ya(o,c))}let _1=(()=>{class o{constructor(p){this.nativeElement=p}}return o.__NG_ELEMENT_ID__=Ed,o})();function bh(o){return o instanceof _1?o.nativeElement:o}class xs{}let Z2=(()=>{class o{}return o.__NG_ELEMENT_ID__=()=>function Y2(){const o=Ei(),p=Ct(Ba().index,o);return(zn(p)?p:o)[Ui]}(),o})(),Td=(()=>{class o{}return o.\u0275prov=Ue({token:o,providedIn:"root",factory:()=>null}),o})();class j2{constructor(c){this.full=c,this.major=c.split(".")[0],this.minor=c.split(".")[1],this.patch=c.split(".").slice(2).join(".")}}const v1=new j2("15.2.9"),Ll={},b1="ngOriginalError";function Ad(o){return o[b1]}class il{constructor(){this._console=console}handleError(c){const p=this._findOriginalError(c);this._console.error("ERROR",c),p&&this._console.error("ORIGINAL ERROR",p)}_findOriginalError(c){let p=c&&Ad(c);for(;p&&Ad(p);)p=Ad(p);return p||null}}function Ld(o){return o.ownerDocument.defaultView}function Cs(o){return o instanceof Function?o():o}function Mh(o,c,p){let E=o.length;for(;;){const F=o.indexOf(c,p);if(-1===F)return F;if(0===F||o.charCodeAt(F-1)<=32){const Z=c.length;if(F+Z===E||o.charCodeAt(F+Z)<=32)return F}p=F+1}}const q2="ng-template";function Ju(o,c,p){let E=0,F=!0;for(;EZ?"":F[ei+1].toLowerCase();const yi=8&E?di:null;if(yi&&-1!==Mh(yi,bt,0)||2&E&&bt!==di){if(ns(E))return!1;le=!0}}}}else{if(!le&&!ns(E)&&!ns(Ye))return!1;if(le&&ns(Ye))continue;le=!1,E=Ye|1&E}}return ns(E)||le}function ns(o){return 0==(1&o)}function J2(o,c,p,E){if(null===c)return-1;let F=0;if(E||!p){let Z=!1;for(;F-1)for(p++;p0?'="'+Re+'"':"")+"]"}else 8&E?F+="."+le:4&E&&(F+=" "+le);else""!==F&&!ns(le)&&(c+=e0(Z,F),F=""),E=le,Z=Z||!ns(E);p++}return""!==F&&(c+=e0(Z,F)),c}const Nn={};function Od(o){Pd(An(),Ei(),ja()+o,!1)}function Pd(o,c,p,E){if(!E)if(3==(3&c[_e])){const Z=o.preOrderCheckHooks;null!==Z&&ji(c,Z,p)}else{const Z=o.preOrderHooks;null!==Z&&Kn(c,Z,0,p)}Ho(p)}function Hd(o,c=null,p=null,E){const F=zd(o,c,p,E);return F.resolveInjectorInitializers(),F}function zd(o,c=null,p=null,E,F=new Set){const Z=[p||ft,yd(o)];return E=E||("object"==typeof o?void 0:P(o)),new Cd(Z,c||$c(),E||null,F)}let ic=(()=>{class o{static create(p,E){if(Array.isArray(p))return Hd({name:""},E,p,"");{const F=p.name??"";return Hd({name:F},p.parent,p.providers,F)}}}return o.THROW_IF_NOT_FOUND=yt,o.NULL=new bd,o.\u0275prov=Ue({token:o,providedIn:"any",factory:()=>xt(H2)}),o.__NG_ELEMENT_ID__=-1,o})();function rs(o,c=Ve.Default){const p=Ei();return null===p?xt(o,c):z1(Ba(),p,L(o),c)}function ac(){throw new Error("invalid")}function Vd(o,c){const p=o.contentQueries;if(null!==p)for(let E=0;Exi&&Pd(o,c,xi,!1),Va(le?2:0,F),p(E,F)}finally{Ho(Z),Va(le?3:1,F)}}function M1(o,c,p){if(Co(c)){const F=c.directiveEnd;for(let Z=c.directiveStart;Z0;){const p=o[--c];if("number"==typeof p&&p<0)return p}return 0})(le)!=Re&&le.push(Re),le.push(p,E,Z)}}(o,c,E,Ao(o,p,F.hostVars,Nn),F)}function rc(o,c,p,E,F,Z){const le=ya(o,c);!function sf(o,c,p,E,F,Z,le){if(null==Z)o.removeAttribute(c,F,p);else{const Re=null==le?J(Z):le(Z,E||"",F);o.setAttribute(c,F,Re,p)}}(c[Ui],le,Z,o.value,p,E,F)}function cf(o,c,p,E,F,Z){const le=Z[c];if(null!==le){const Re=E.setInput;for(let Ye=0;Ye0&&Rh(p)}}function Rh(o){for(let E=Hs(o);null!==E;E=ql(E))for(let F=Vn;F0&&Rh(Z)}const p=o[qt].components;if(null!==p)for(let E=0;E0&&Rh(F)}}function lf(o,c){const p=Ct(c,o),E=p[qt];(function $3(o,c){for(let p=c.length;p-1&&($l(c,E),ae(p,E))}this._attachedToViewContainer=!1}_c(this._lView[qt],this._lView)}onDestroy(c){G3(this._lView[qt],this._lView,null,c)}markForCheck(){Fh(this._cdRefInjectingView||this._lView)}detach(){this._lView[_e]&=-65}reattach(){this._lView[_e]|=64}detectChanges(){Hh(this._lView[qt],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new j(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Nu(o,c){zs(o,c,c[Ui],2,null,null)}(this._lView[qt],this._lView)}attachToAppRef(c){if(this._attachedToViewContainer)throw new j(902,!1);this._appRef=c}}class i4 extends T1{constructor(c){super(c),this._view=c}detectChanges(){const c=this._view;Hh(c[qt],c,c[li],!1)}checkNoChanges(){}get context(){return null}}class Uh extends Al{constructor(c){super(),this.ngModule=c}resolveComponentFactory(c){const p=wt(c);return new Ud(p,this.ngModule)}}function uf(o){const c=[];for(let p in o)o.hasOwnProperty(p)&&c.push({propName:o[p],templateName:p});return c}class ff{constructor(c,p){this.injector=c,this.parentInjector=p}get(c,p,E){E=ke(E);const F=this.injector.get(c,Ll,E);return F!==Ll||p===Ll?F:this.parentInjector.get(c,p,E)}}class Ud extends W2{get inputs(){return uf(this.componentDef.inputs)}get outputs(){return uf(this.componentDef.outputs)}constructor(c,p){super(),this.componentDef=c,this.ngModule=p,this.componentType=c.type,this.selector=function Dh(o){return o.map(t0).join(",")}(c.selectors),this.ngContentSelectors=c.ngContentSelectors?c.ngContentSelectors:[],this.isBoundToModule=!!p}create(c,p,E,F){let Z=(F=F||this.ngModule)instanceof Cc?F:F?.injector;Z&&null!==this.componentDef.getStandaloneInjector&&(Z=this.componentDef.getStandaloneInjector(Z)||Z);const le=Z?new ff(c,Z):c,Re=le.get(xs,null);if(null===Re)throw new j(407,!1);const Ye=le.get(Td,null),bt=Re.createRenderer(null,this.componentDef),Pt=this.componentDef.selectors[0][0]||"div",ei=E?function l0(o,c,p){return o.selectRootElement(c,p===pt.ShadowDom)}(bt,E,this.componentDef.encapsulation):Qc(bt,Pt,function n4(o){const c=o.toLowerCase();return"svg"===c?wr:"math"===c?"math":null}(Pt)),di=this.componentDef.onPush?288:272,yi=Vo(0,null,null,1,0,null,null,null,null,null),Ri=wn(null,yi,null,di,null,null,Re,bt,Ye,le,null);let $i,cn;Is(Ri);try{const gn=this.componentDef;let Pn,Bi=null;gn.findHostDirectiveDefs?(Pn=[],Bi=new Map,gn.findHostDirectiveDefs(gn,Pn,Bi),Pn.push(gn)):Pn=[gn];const Bn=function r4(o,c){const p=o[qt],E=xi;return o[E]=c,Xn(p,E,2,"#host",null)}(Ri,ei),mr=function o4(o,c,p,E,F,Z,le,Re){const Ye=F[qt];!function s4(o,c,p,E){for(const F of o)c.mergedAttrs=ma(c.mergedAttrs,F.hostAttrs);null!==c.mergedAttrs&&(Bh(c,c.mergedAttrs,!0),null!==p&&fr(E,p,c))}(E,o,c,le);const bt=Z.createRenderer(c,p),Pt=wn(F,Ms(p),null,p.onPush?32:16,F[o.index],o,Z,bt,Re||null,null,null);return Ye.firstCreatePass&&af(Ye,o,E.length-1),Nh(F,Pt),F[o.index]=Pt}(Bn,ei,gn,Pn,Ri,Re,bt);cn=Ft(yi,xi),ei&&function l4(o,c,p,E){if(E)tn(o,p,["ng-version",v1.full]);else{const{attrs:F,classes:Z}=function x1(o){const c=[],p=[];let E=1,F=2;for(;E0&&sd(o,p,Z.join(" "))}}(bt,gn,ei,E),void 0!==p&&function d4(o,c,p){const E=o.projection=[];for(let F=0;F=0;E--){const F=o[E];F.hostVars=c+=F.hostVars,F.hostAttrs=ma(F.hostAttrs,p=ma(p,F.hostAttrs))}}(E)}function _f(o){return o===ot?{}:o===ft?[]:o}function h4(o,c){const p=o.viewQuery;o.viewQuery=p?(E,F)=>{c(E,F),p(E,F)}:c}function pp(o,c){const p=o.contentQueries;o.contentQueries=p?(E,F,Z)=>{c(E,F,Z),p(E,F,Z)}:c}function u4(o,c){const p=o.hostBindings;o.hostBindings=p?(E,F)=>{c(E,F),p(E,F)}:c}function A1(o){return!!yf(o)&&(Array.isArray(o)||!(o instanceof Map)&&Symbol.iterator in o)}function yf(o){return null!==o&&("function"==typeof o||"object"==typeof o)}function Ac(o,c,p){return o[c]=p}function Bo(o,c,p){return!Object.is(o[c],p)&&(o[c]=p,!0)}function L1(o,c,p,E){const F=Bo(o,c,p);return Bo(o,c+1,E)||F}function h0(o,c,p,E,F){const Z=L1(o,c,p,E);return Bo(o,c+2,F)||Z}function Gh(o,c,p,E){const F=Ei();return Bo(F,co(),c)&&(An(),rc(la(),F,o,c,p,E)),Gh}function Wd(o,c,p,E){return Bo(o,co(),p)?c+J(p)+E:Nn}function I1(o,c,p,E,F,Z){const Re=L1(o,ki(),p,F);return Fi(2),Re?c+J(p)+E+J(F)+Z:Nn}function Yd(o,c,p,E,F,Z,le,Re,Ye,bt){const ei=function Vs(o,c,p,E,F,Z){const le=L1(o,c,p,E);return L1(o,c+2,F,Z)||le}(o,ki(),p,F,le,Ye);return Fi(4),ei?c+J(p)+E+J(F)+Z+J(le)+Re+J(Ye)+bt:Nn}function b4(o,c,p,E,F,Z,le,Re){const Ye=Ei(),bt=An(),Pt=o+xi,ei=bt.firstCreatePass?function Cp(o,c,p,E,F,Z,le,Re,Ye){const bt=c.consts,Pt=Xn(c,o,4,le||null,aa(bt,Re));tf(c,p,Pt,aa(bt,Ye)),La(c,Pt);const ei=Pt.tView=Vo(2,Pt,E,F,Z,c.directiveRegistry,c.pipeRegistry,null,c.schemas,bt);return null!==c.queries&&(c.queries.template(c,Pt),ei.queries=c.queries.embeddedTView(Pt)),Pt}(Pt,bt,Ye,c,p,E,F,Z,le):bt.data[Pt];Sr(ei,!1);const di=Ye[Ui].createComment("");yl(bt,Ye,di,ei),eo(di,Ye),Nh(Ye,Ye[Pt]=J3(di,Ye,di,ei)),xr(ei)&&Bd(bt,Ye,ei),null!=le&&Ur(Ye,ei,Re)}function y4(o){return hi(function Pc(){return _n.lFrame.contextLView}(),xi+o)}function Af(o,c,p){const E=Ei();return Bo(E,co(),c)&&qo(An(),la(),E,o,c,E[Ui],p,!1),Af}function Zh(o,c,p,E,F){const le=F?"class":"style";Vh(o,p,c.inputs[le],le,E)}function qd(o,c,p,E){const F=Ei(),Z=An(),le=xi+o,Re=F[Ui],Ye=Z.firstCreatePass?function Mp(o,c,p,E,F,Z){const le=c.consts,Ye=Xn(c,o,2,E,aa(le,F));return tf(c,p,Ye,aa(le,Z)),null!==Ye.attrs&&Bh(Ye,Ye.attrs,!1),null!==Ye.mergedAttrs&&Bh(Ye,Ye.mergedAttrs,!0),null!==c.queries&&c.queries.elementStart(c,Ye),Ye}(le,Z,F,c,p,E):Z.data[le],bt=F[le]=Qc(Re,c,function Xi(){return _n.lFrame.currentNamespace}()),Pt=xr(Ye);return Sr(Ye,!0),fr(Re,bt,Ye),32!=(32&Ye.flags)&&yl(Z,F,bt,Ye),0===function et(){return _n.lFrame.elementDepthCount}()&&eo(bt,F),function Ze(){_n.lFrame.elementDepthCount++}(),Pt&&(Bd(Z,F,Ye),M1(Z,Ye,F)),null!==E&&Ur(F,Ye),qd}function Yh(){let o=Ba();Xo()?Ds():(o=o.parent,Sr(o,!1));const c=o;!function kt(){_n.lFrame.elementDepthCount--}();const p=An();return p.firstCreatePass&&(La(p,o),Co(o)&&p.queries.elementEnd(o)),null!=c.classesWithoutHost&&function bi(o){return 0!=(8&o.flags)}(c)&&Zh(p,c,Ei(),c.classesWithoutHost,!0),null!=c.stylesWithoutHost&&function Si(o){return 0!=(16&o.flags)}(c)&&Zh(p,c,Ei(),c.stylesWithoutHost,!1),Yh}function Lf(o,c,p,E){return qd(o,c,p,E),Yh(),Lf}function u0(o,c,p){const E=Ei(),F=An(),Z=o+xi,le=F.firstCreatePass?function Df(o,c,p,E,F){const Z=c.consts,le=aa(Z,E),Re=Xn(c,o,8,"ng-container",le);return null!==le&&Bh(Re,le,!0),tf(c,p,Re,aa(Z,F)),null!==c.queries&&c.queries.elementStart(c,Re),Re}(Z,F,E,c,p):F.data[Z];Sr(le,!0);const Re=E[Z]=E[Ui].createComment("");return yl(F,E,Re,le),eo(Re,E),xr(le)&&(Bd(F,E,le),M1(F,le,E)),null!=p&&Ur(E,le),u0}function jh(){let o=Ba();const c=An();return Xo()?Ds():(o=o.parent,Sr(o,!1)),c.firstCreatePass&&(La(c,o),Co(o)&&c.queries.elementEnd(o)),jh}function Kh(o,c,p){return u0(o,c,p),jh(),Kh}function x4(){return Ei()}function If(o){return!!o&&"function"==typeof o.then}function C4(o){return!!o&&"function"==typeof o.subscribe}const w4=C4;function f0(o,c,p,E){const F=Ei(),Z=An(),le=Ba();return M4(Z,F,F[Ui],le,o,c,E),f0}function kf(o,c){const p=Ba(),E=Ei(),F=An();return M4(F,E,t4(Go(F.data),p,E),p,o,c),kf}function M4(o,c,p,E,F,Z,le){const Re=xr(E),bt=o.firstCreatePass&&e4(o),Pt=c[li],ei=df(c);let di=!0;if(3&E.type||le){const $i=ya(E,c),cn=le?le($i):$i,gn=ei.length,Pn=le?Bn=>le(On(Bn[E.index])):E.index;let Bi=null;if(!le&&Re&&(Bi=function Sp(o,c,p,E){const F=o.cleanup;if(null!=F)for(let Z=0;ZYe?Re[Ye]:null}"string"==typeof le&&(Z+=2)}return null}(o,c,F,E.index)),null!==Bi)(Bi.__ngLastListenerFn__||Bi).__ngNextListenerFn__=Z,Bi.__ngLastListenerFn__=Z,di=!1;else{Z=Pf(E,c,Pt,Z,!1);const Bn=p.listen(cn,F,Z);ei.push(Z,Bn),bt&&bt.push(F,Pn,gn,gn+1)}}else Z=Pf(E,c,Pt,Z,!1);const yi=E.outputs;let Ri;if(di&&null!==yi&&(Ri=yi[F])){const $i=Ri.length;if($i)for(let cn=0;cn<$i;cn+=2){const mr=c[Ri[cn]][Ri[cn+1]].subscribe(Z),Zr=ei.length;ei.push(Z,mr),bt&&bt.push(F,E.index,Zr,-(Zr+1))}}}function Of(o,c,p,E){try{return Va(6,c,p),!1!==p(E)}catch(F){return hf(o,F),!1}finally{Va(7,c,p)}}function Pf(o,c,p,E,F){return function Z(le){if(le===Function)return E;Fh(o.componentOffset>-1?Ct(o.index,c):c);let Ye=Of(c,p,E,le),bt=Z.__ngNextListenerFn__;for(;bt;)Ye=Of(c,p,bt,le)&&Ye,bt=bt.__ngNextListenerFn__;return F&&!1===Ye&&(le.preventDefault(),le.returnValue=!1),Ye}}function Rf(o=1){return function us(o){return(_n.lFrame.contextLView=function sn(o,c){for(;o>0;)c=c[Ea],o--;return c}(o,_n.lFrame.contextLView))[li]}(o)}function S4(o,c){let p=null;const E=function Th(o){const c=o.attrs;if(null!=c){const p=c.indexOf(5);if(!(1&p))return c[p+1]}return null}(o);for(let F=0;F>17&32767}function Bf(o){return 2|o}function O1(o){return(131068&o)>>2}function Uf(o,c){return-131069&o|c<<2}function qh(o){return 1|o}function k4(o,c,p,E,F){const Z=o[p+1],le=null===c;let Re=E?Il(Z):O1(Z),Ye=!1;for(;0!==Re&&(!1===Ye||le);){const Pt=o[Re+1];O4(o[Re],c)&&(Ye=!0,o[Re+1]=E?qh(Pt):Bf(Pt)),Re=E?Il(Pt):O1(Pt)}Ye&&(o[p+1]=E?Bf(Z):qh(Z))}function O4(o,c){return null===o||null==c||(Array.isArray(o)?o[1]:o)===c||!(!Array.isArray(o)||"string"!=typeof c)&&an(o,c)>=0}const io={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function P4(o){return o.substring(io.key,io.keyEnd)}function Jn(o,c){const p=io.textEnd;return p===c?-1:(c=io.keyEnd=function N4(o,c,p){for(;c32;)c++;return c}(o,io.key=c,p),Gr(o,c,p))}function Gr(o,c,p){for(;c=0;p=Jn(c,p))Di(o,P4(c),!0)}function Es(o,c,p,E){const F=Ei(),Z=An(),le=Fi(2);Z.firstUpdatePass&&eu(Z,o,le,E),c!==Nn&&Bo(F,le,c)&&Ic(Z,Z.data[ja()],F,F[Ui],o,F[le+1]=function Kf(o,c){return null==o||""===o||("string"==typeof c?o+=c:"object"==typeof o&&(o=P(po(o)))),o}(c,p),E,le)}function ss(o,c,p,E){const F=An(),Z=Fi(2);F.firstUpdatePass&&eu(F,null,Z,E);const le=Ei();if(p!==Nn&&Bo(le,Z,p)){const Re=F.data[ja()];if(al(Re,E)&&!Zf(F,Z)){let Ye=E?Re.classesWithoutHost:Re.stylesWithoutHost;null!==Ye&&(p=d(Ye,p||"")),Zh(F,Re,le,p,E)}else!function jf(o,c,p,E,F,Z,le,Re){F===Nn&&(F=ft);let Ye=0,bt=0,Pt=0=o.expandoStartIndex}function eu(o,c,p,E){const F=o.data;if(null===F[p+1]){const Z=F[ja()],le=Zf(o,p);al(Z,E)&&null===c&&!le&&(c=!1),c=function Dp(o,c,p,E){const F=Go(o);let Z=E?c.residualClasses:c.residualStyles;if(null===F)0===(E?c.classBindings:c.styleBindings)&&(p=P1(p=Xd(null,o,c,p,E),c.attrs,E),Z=null);else{const le=c.directiveStylingLast;if(-1===le||o[le]!==F)if(p=Xd(F,o,c,p,E),null===Z){let Ye=function tu(o,c,p){const E=p?c.classBindings:c.styleBindings;if(0!==O1(E))return o[Il(E)]}(o,c,E);void 0!==Ye&&Array.isArray(Ye)&&(Ye=Xd(null,o,c,Ye[1],E),Ye=P1(Ye,c.attrs,E),function Wr(o,c,p,E){o[Il(p?c.classBindings:c.styleBindings)]=E}(o,c,E,Ye))}else Z=function iu(o,c,p){let E;const F=c.directiveEnd;for(let Z=1+c.directiveStylingLast;Z0)&&(bt=!0)):Pt=p,F)if(0!==Ye){const di=Il(o[Re+1]);o[E+1]=g0(di,Re),0!==di&&(o[di+1]=Uf(o[di+1],E)),o[Re+1]=function I4(o,c){return 131071&o|c<<17}(o[Re+1],E)}else o[E+1]=g0(Re,0),0!==Re&&(o[Re+1]=Uf(o[Re+1],E)),Re=E;else o[E+1]=g0(Ye,0),0===Re?Re=E:o[Ye+1]=Uf(o[Ye+1],E),Ye=E;bt&&(o[E+1]=Bf(o[E+1])),k4(o,Pt,E,!0),k4(o,Pt,E,!1),function Lp(o,c,p,E,F){const Z=F?o.residualClasses:o.residualStyles;null!=Z&&"string"==typeof c&&an(Z,c)>=0&&(p[E+1]=qh(p[E+1]))}(c,Pt,o,E,Z),le=g0(Re,Ye),Z?c.classBindings=le:c.styleBindings=le}(F,Z,c,p,le,E)}}function Xd(o,c,p,E,F){let Z=null;const le=p.directiveEnd;let Re=p.directiveStylingLast;for(-1===Re?Re=p.directiveStart:Re++;Re0;){const Ye=o[F],bt=Array.isArray(Ye),Pt=bt?Ye[1]:Ye,ei=null===Pt;let di=p[F+1];di===Nn&&(di=ei?ft:void 0);let yi=ei?rn(di,E):Pt===E?di:void 0;if(bt&&!R1(yi)&&(yi=rn(Ye,E)),R1(yi)&&(Re=yi,le))return Re;const Ri=o[F+1];F=le?Il(Ri):O1(Ri)}if(null!==c){let Ye=Z?c.residualClasses:c.residualStyles;null!=Ye&&(Re=rn(Ye,E))}return Re}function R1(o){return void 0!==o}function al(o,c){return 0!=(o.flags&(c?8:16))}function oc(o,c=""){const p=Ei(),E=An(),F=o+xi,Z=E.firstCreatePass?Xn(E,F,1,c,null):E.data[F],le=p[F]=function Jl(o,c){return o.createText(c)}(p[Ui],c);yl(E,p,le,Z),Sr(Z,!1)}function $d(o){return N1("",o,""),$d}function N1(o,c,p){const E=Ei(),F=Wd(E,o,c,p);return F!==Nn&&Tc(E,ja(),F),N1}function b0(o,c,p,E,F){const Z=Ei(),le=I1(Z,o,c,p,E,F);return le!==Nn&&Tc(Z,ja(),le),b0}function rl(o,c,p,E,F,Z,le){const Re=Ei(),Ye=function Zd(o,c,p,E,F,Z,le,Re){const bt=h0(o,ki(),p,F,le);return Fi(3),bt?c+J(p)+E+J(F)+Z+J(le)+Re:Nn}(Re,o,c,p,E,F,Z,le);return Ye!==Nn&&Tc(Re,ja(),Ye),rl}function Ja(o,c,p,E,F,Z,le,Re,Ye){const bt=Ei(),Pt=Yd(bt,o,c,p,E,F,Z,le,Re,Ye);return Pt!==Nn&&Tc(bt,ja(),Pt),Ja}function Ol(o,c,p){ss(Di,Us,Wd(Ei(),o,c,p),!0)}function r3(o,c,p){const E=Ei();return Bo(E,co(),c)&&qo(An(),la(),E,o,c,E[Ui],p,!0),r3}function lu(o,c,p){const E=Ei();if(Bo(E,co(),c)){const Z=An(),le=la();qo(Z,le,E,o,c,t4(Go(Z.data),le,E),p,!0)}return lu}const Pl=void 0;var sc=["en",[["a","p"],["AM","PM"],Pl],[["AM","PM"],Pl,Pl],[["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"]],Pl,[["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"]],Pl,[["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}",Pl,"{1} 'at' {0}",Pl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function o3(o){const p=Math.floor(Math.abs(o)),E=o.toString().replace(/^[^.]*\.?/,"").length;return 1===p&&0===E?1:5}];let Jo={};function s3(o){const c=function c3(o){return o.toLowerCase().replace(/_/g,"-")}(o);let p=q4(c);if(p)return p;const E=c.split("-")[0];if(p=q4(E),p)return p;if("en"===E)return sc;throw new j(701,!1)}function Q4(o){return s3(o)[Mn.PluralCase]}function q4(o){return o in Jo||(Jo[o]=lt.ng&<.ng.common&<.ng.common.locales&<.ng.common.locales[o]),Jo[o]}var Mn=(()=>((Mn=Mn||{})[Mn.LocaleId=0]="LocaleId",Mn[Mn.DayPeriodsFormat=1]="DayPeriodsFormat",Mn[Mn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Mn[Mn.DaysFormat=3]="DaysFormat",Mn[Mn.DaysStandalone=4]="DaysStandalone",Mn[Mn.MonthsFormat=5]="MonthsFormat",Mn[Mn.MonthsStandalone=6]="MonthsStandalone",Mn[Mn.Eras=7]="Eras",Mn[Mn.FirstDayOfWeek=8]="FirstDayOfWeek",Mn[Mn.WeekendRange=9]="WeekendRange",Mn[Mn.DateFormat=10]="DateFormat",Mn[Mn.TimeFormat=11]="TimeFormat",Mn[Mn.DateTimeFormat=12]="DateTimeFormat",Mn[Mn.NumberSymbols=13]="NumberSymbols",Mn[Mn.NumberFormats=14]="NumberFormats",Mn[Mn.CurrencyCode=15]="CurrencyCode",Mn[Mn.CurrencySymbol=16]="CurrencySymbol",Mn[Mn.CurrencyName=17]="CurrencyName",Mn[Mn.Currencies=18]="Currencies",Mn[Mn.Directionality=19]="Directionality",Mn[Mn.PluralCase=20]="PluralCase",Mn[Mn.ExtraData=21]="ExtraData",Mn))();const t2="en-US";let d3=t2;function Na(o,c,p,E,F){if(o=L(o),Array.isArray(o))for(let Z=0;Z>20;if(ec(o)||!o.multi){const yi=new tt(Ye,F,rs),Ri=vr(Re,c,F?Pt:Pt+di,ei);-1===Ri?(Fc(Nc(bt,le),Z,Re),vo(Z,o,c.length),c.push(Re),bt.directiveStart++,bt.directiveEnd++,F&&(bt.providerIndexes+=1048576),p.push(yi),le.push(yi)):(p[Ri]=yi,le[Ri]=yi)}else{const yi=vr(Re,c,Pt+di,ei),Ri=vr(Re,c,Pt,Pt+di),cn=Ri>=0&&p[Ri];if(F&&!cn||!F&&!(yi>=0&&p[yi])){Fc(Nc(bt,le),Z,Re);const gn=function Nl(o,c,p,E,F){const Z=new tt(o,p,rs);return Z.multi=[],Z.index=c,Z.componentProviders=0,ba(Z,F,E&&!p),Z}(F?yr:br,p.length,F,E,Ye);!F&&cn&&(p[Ri].providerFactory=gn),vo(Z,o,c.length,0),c.push(Re),bt.directiveStart++,bt.directiveEnd++,F&&(bt.providerIndexes+=1048576),p.push(gn),le.push(gn)}else vo(Z,o,yi>-1?yi:Ri,ba(p[F?Ri:yi],Ye,!F&&E));!F&&E&&cn&&p[Ri].componentProviders++}}}function vo(o,c,p,E){const F=ec(c),Z=function xc(o){return!!o.useClass}(c);if(F||Z){const Ye=(Z?L(c.useClass):c).prototype.ngOnDestroy;if(Ye){const bt=o.destroyHooks||(o.destroyHooks=[]);if(!F&&c.multi){const Pt=bt.indexOf(p);-1===Pt?bt.push(p,[E,Ye]):bt[Pt+1].push(E,Ye)}else bt.push(p,Ye)}}}function ba(o,c,p){return p&&o.componentProviders++,o.multi.push(c)-1}function vr(o,c,p,E){for(let F=p;F{p.providersResolver=(E,F)=>function Xa(o,c,p){const E=An();if(E.firstCreatePass){const F=jn(o);Na(p,E.data,E.blueprint,F,!0),Na(c,E.data,E.blueprint,F,!1)}}(E,F?F(o):o,c)}}class Gs{}class bo{}function Hl(o,c){return new Yn(o,c??null)}class Yn extends Gs{constructor(c,p){super(),this._parent=p,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Uh(this);const E=Oi(c);this._bootstrapComponents=Cs(E.bootstrap),this._r3Injector=zd(c,p,[{provide:Gs,useValue:this},{provide:Al,useValue:this.componentFactoryResolver}],P(c),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(c)}get injector(){return this._r3Injector}destroy(){const c=this._r3Injector;!c.destroyed&&c.destroy(),this.destroyCbs.forEach(p=>p()),this.destroyCbs=null}onDestroy(c){this.destroyCbs.push(c)}}class na extends bo{constructor(c){super(),this.moduleType=c}create(c){return new Yn(this.moduleType,c)}}class Ki extends Gs{constructor(c,p,E){super(),this.componentFactoryResolver=new Uh(this),this.instance=null;const F=new Cd([...c,{provide:Gs,useValue:this},{provide:Al,useValue:this.componentFactoryResolver}],p||$c(),E,new Set(["environment"]));this.injector=F,F.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(c){this.injector.onDestroy(c)}}function $a(o,c,p=null){return new Ki(o,c,p).injector}let Sa=(()=>{class o{constructor(p){this._injector=p,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(p){if(!p.standalone)return null;if(!this.cachedInjectors.has(p.id)){const E=mh(0,p.type),F=E.length>0?$a([E],this._injector,`Standalone[${p.type.name}]`):null;this.cachedInjectors.set(p.id,F)}return this.cachedInjectors.get(p.id)}ngOnDestroy(){try{for(const p of this.cachedInjectors.values())null!==p&&p.destroy()}finally{this.cachedInjectors.clear()}}}return o.\u0275prov=Ue({token:o,providedIn:"environment",factory:()=>new o(xt(Cc))}),o})();function Lo(o){o.getStandaloneInjector=c=>c.get(Sa).getOrCreateStandaloneInjector(o)}function t6(o,c,p){const E=qn()+o,F=Ei();return F[E]===Nn?Ac(F,E,p?c.call(p):c()):function Gd(o,c){return o[c]}(F,E)}function mm(o,c,p,E){return r6(Ei(),qn(),o,c,p,E)}function i6(o,c,p,E,F){return o6(Ei(),qn(),o,c,p,E,F)}function pm(o,c,p,E,F,Z){return s6(Ei(),qn(),o,c,p,E,F,Z)}function mu(o,c){const p=o[c];return p===Nn?void 0:p}function r6(o,c,p,E,F,Z){const le=c+p;return Bo(o,le,F)?Ac(o,le+1,Z?E.call(Z,F):E(F)):mu(o,le+1)}function o6(o,c,p,E,F,Z,le){const Re=c+p;return L1(o,Re,F,Z)?Ac(o,Re+2,le?E.call(le,F,Z):E(F,Z)):mu(o,Re+2)}function s6(o,c,p,E,F,Z,le,Re){const Ye=c+p;return h0(o,Ye,F,Z,le)?Ac(o,Ye+3,Re?E.call(Re,F,Z,le):E(F,Z,le)):mu(o,Ye+3)}function d6(o,c){const p=An();let E;const F=o+xi;p.firstCreatePass?(E=function gm(o,c){if(c)for(let p=c.length-1;p>=0;p--){const E=c[p];if(o===E.name)return E}}(c,p.pipeRegistry),p.data[F]=E,E.onDestroy&&(p.destroyHooks??(p.destroyHooks=[])).push(F,E.onDestroy)):E=p.data[F];const Z=E.factory||(E.factory=za(E.type)),le=de(rs);try{const Re=Tr(!1),Ye=Z();return Tr(Re),function wp(o,c,p,E){p>=o.data.length&&(o.data[p]=null,o.blueprint[p]=null),c[p]=E}(p,Ei(),F,Ye),Ye}finally{de(le)}}function h6(o,c,p){const E=o+xi,F=Ei(),Z=hi(F,E);return pu(F,E)?r6(F,qn(),c,Z.transform,p,Z):Z.transform(p)}function u6(o,c,p,E){const F=o+xi,Z=Ei(),le=hi(Z,F);return pu(Z,F)?o6(Z,qn(),c,le.transform,p,E,le):le.transform(p,E)}function _m(o,c,p,E,F){const Z=o+xi,le=Ei(),Re=hi(le,Z);return pu(le,Z)?s6(le,qn(),c,Re.transform,p,E,F,Re):Re.transform(p,E,F)}function pu(o,c){return o[qt].data[c].pure}function vm(o){return c=>{setTimeout(o,void 0,c)}}const Oc=class Vg extends t.x{constructor(c=!1){super(),this.__isAsync=c}emit(c){super.next(c)}subscribe(c,p,E){let F=c,Z=p||(()=>null),le=E;if(c&&"object"==typeof c){const Ye=c;F=Ye.next?.bind(Ye),Z=Ye.error?.bind(Ye),le=Ye.complete?.bind(Ye)}this.__isAsync&&(Z=vm(Z),F&&(F=vm(F)),le&&(le=vm(le)));const Re=super.subscribe({next:F,error:Z,complete:le});return c instanceof e.w0&&c.add(Re),Re}};function Bg(){return this._results[Symbol.iterator]()}class C3{get changes(){return this._changes||(this._changes=new Oc)}constructor(c=!1){this._emitDistinctChangesOnly=c,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const p=C3.prototype;p[Symbol.iterator]||(p[Symbol.iterator]=Bg)}get(c){return this._results[c]}map(c){return this._results.map(c)}filter(c){return this._results.filter(c)}find(c){return this._results.find(c)}reduce(c,p){return this._results.reduce(c,p)}forEach(c){this._results.forEach(c)}some(c){return this._results.some(c)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(c,p){const E=this;E.dirty=!1;const F=function So(o){return o.flat(Number.POSITIVE_INFINITY)}(c);(this._changesDetected=!function G1(o,c,p){if(o.length!==c.length)return!1;for(let E=0;E{class o{}return o.__NG_ELEMENT_ID__=Wg,o})();const Ug=gu,Gg=class extends Ug{constructor(c,p,E){super(),this._declarationLView=c,this._declarationTContainer=p,this.elementRef=E}createEmbeddedView(c,p){const E=this._declarationTContainer.tView,F=wn(this._declarationLView,E,c,16,null,E.declTNode,null,null,null,null,p||null);F[er]=this._declarationLView[this._declarationTContainer.index];const le=this._declarationLView[pi];return null!==le&&(F[pi]=le.createEmbeddedView(E)),go(E,F,c),new T1(F)}};function Wg(){return w3(Ba(),Ei())}function w3(o,c){return 4&o.type?new Gg(c,o,Br(o,c)):null}let _u=(()=>{class o{}return o.__NG_ELEMENT_ID__=Zg,o})();function Zg(){return ym(Ba(),Ei())}const Yg=_u,bm=class extends Yg{constructor(c,p,E){super(),this._lContainer=c,this._hostTNode=p,this._hostLView=E}get element(){return Br(this._hostTNode,this._hostLView)}get injector(){return new Ga(this._hostTNode,this._hostLView)}get parentInjector(){const c=Os(this._hostTNode,this._hostLView);if(ha(c)){const p=Da(c,this._hostLView),E=ua(c);return new Ga(p[qt].data[E+8],p)}return new Ga(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(c){const p=m6(this._lContainer);return null!==p&&p[c]||null}get length(){return this._lContainer.length-Vn}createEmbeddedView(c,p,E){let F,Z;"number"==typeof E?F=E:null!=E&&(F=E.index,Z=E.injector);const le=c.createEmbeddedView(p||{},Z);return this.insert(le,F),le}createComponent(c,p,E,F,Z){const le=c&&!function jo(o){return"function"==typeof o}(c);let Re;if(le)Re=p;else{const ei=p||{};Re=ei.index,E=ei.injector,F=ei.projectableNodes,Z=ei.environmentInjector||ei.ngModuleRef}const Ye=le?c:new Ud(wt(c)),bt=E||this.parentInjector;if(!Z&&null==Ye.ngModule){const di=(le?bt:this.parentInjector).get(Cc,null);di&&(Z=di)}const Pt=Ye.create(bt,F,void 0,Z);return this.insert(Pt.hostView,Re),Pt}insert(c,p){const E=c._lView,F=E[qt];if(function nn(o){return ia(o[dt])}(E)){const Pt=this.indexOf(c);if(-1!==Pt)this.detach(Pt);else{const ei=E[dt],di=new bm(ei,ei[Ot],ei[dt]);di.detach(di.indexOf(c))}}const Z=this._adjustIndex(p),le=this._lContainer;!function Hu(o,c,p,E){const F=Vn+E,Z=p.length;E>0&&(p[F-1][Dt]=c),E0)E.push(le[Re/2]);else{const bt=Z[Re+1],Pt=c[-Ye];for(let ei=Vn;ei{class o{constructor(p){this.appInits=p,this.resolve=D3,this.reject=D3,this.initialized=!1,this.done=!1,this.donePromise=new Promise((E,F)=>{this.resolve=E,this.reject=F})}runInitializers(){if(this.initialized)return;const p=[],E=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let F=0;F{Z.subscribe({complete:Re,error:Ye})});p.push(le)}}Promise.all(p).then(()=>{E()}).catch(F=>{this.reject(F)}),0===p.length&&E(),this.initialized=!0}}return o.\u0275fac=function(p){return new(p||o)(xt(B6,8))},o.\u0275prov=Ue({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const U6=new Ca("AppId",{providedIn:"root",factory:function G6(){return`${Nm()}${Nm()}${Nm()}`}});function Nm(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const W6=new Ca("Platform Initializer"),Z6=new Ca("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),f8=new Ca("AnimationModuleType");let Y6=(()=>{class o{log(p){console.log(p)}warn(p){console.warn(p)}}return o.\u0275fac=function(p){return new(p||o)},o.\u0275prov=Ue({token:o,factory:o.\u0275fac,providedIn:"platform"}),o})();const yu=new Ca("LocaleId",{providedIn:"root",factory:()=>Gt(yu,Ve.Optional|Ve.SkipSelf)||function m8(){return typeof $localize<"u"&&$localize.locale||t2}()}),p8=new Ca("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class _8{constructor(c,p){this.ngModuleFactory=c,this.componentFactories=p}}let v8=(()=>{class o{compileModuleSync(p){return new na(p)}compileModuleAsync(p){return Promise.resolve(this.compileModuleSync(p))}compileModuleAndAllComponentsSync(p){const E=this.compileModuleSync(p),Z=Cs(Oi(p).declarations).reduce((le,Re)=>{const Ye=wt(Re);return Ye&&le.push(new Ud(Ye)),le},[]);return new _8(E,Z)}compileModuleAndAllComponentsAsync(p){return Promise.resolve(this.compileModuleAndAllComponentsSync(p))}clearCache(){}clearCacheFor(p){}getModuleId(p){}}return o.\u0275fac=function(p){return new(p||o)},o.\u0275prov=Ue({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const x8=(()=>Promise.resolve(0))();function Hm(o){typeof Zone>"u"?x8.then(()=>{o&&o.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",o)}class cc{constructor({enableLongStackTrace:c=!1,shouldCoalesceEventChangeDetection:p=!1,shouldCoalesceRunChangeDetection:E=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Oc(!1),this.onMicrotaskEmpty=new Oc(!1),this.onStable=new Oc(!1),this.onError=new Oc(!1),typeof Zone>"u")throw new j(908,!1);Zone.assertZonePatched();const F=this;F._nesting=0,F._outer=F._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(F._inner=F._inner.fork(new Zone.TaskTrackingZoneSpec)),c&&Zone.longStackTraceZoneSpec&&(F._inner=F._inner.fork(Zone.longStackTraceZoneSpec)),F.shouldCoalesceEventChangeDetection=!E&&p,F.shouldCoalesceRunChangeDetection=E,F.lastRequestAnimationFrameId=-1,F.nativeRequestAnimationFrame=function C8(){let o=lt.requestAnimationFrame,c=lt.cancelAnimationFrame;if(typeof Zone<"u"&&o&&c){const p=o[Zone.__symbol__("OriginalDelegate")];p&&(o=p);const E=c[Zone.__symbol__("OriginalDelegate")];E&&(c=E)}return{nativeRequestAnimationFrame:o,nativeCancelAnimationFrame:c}}().nativeRequestAnimationFrame,function S8(o){const c=()=>{!function K6(o){o.isCheckStableRunning||-1!==o.lastRequestAnimationFrameId||(o.lastRequestAnimationFrameId=o.nativeRequestAnimationFrame.call(lt,()=>{o.fakeTopEventTask||(o.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{o.lastRequestAnimationFrameId=-1,Vm(o),o.isCheckStableRunning=!0,zm(o),o.isCheckStableRunning=!1},void 0,()=>{},()=>{})),o.fakeTopEventTask.invoke()}),Vm(o))}(o)};o._inner=o._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(p,E,F,Z,le,Re)=>{try{return Q6(o),p.invokeTask(F,Z,le,Re)}finally{(o.shouldCoalesceEventChangeDetection&&"eventTask"===Z.type||o.shouldCoalesceRunChangeDetection)&&c(),q6(o)}},onInvoke:(p,E,F,Z,le,Re,Ye)=>{try{return Q6(o),p.invoke(F,Z,le,Re,Ye)}finally{o.shouldCoalesceRunChangeDetection&&c(),q6(o)}},onHasTask:(p,E,F,Z)=>{p.hasTask(F,Z),E===F&&("microTask"==Z.change?(o._hasPendingMicrotasks=Z.microTask,Vm(o),zm(o)):"macroTask"==Z.change&&(o.hasPendingMacrotasks=Z.macroTask))},onHandleError:(p,E,F,Z)=>(p.handleError(F,Z),o.runOutsideAngular(()=>o.onError.emit(Z)),!1)})}(F)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!cc.isInAngularZone())throw new j(909,!1)}static assertNotInAngularZone(){if(cc.isInAngularZone())throw new j(909,!1)}run(c,p,E){return this._inner.run(c,p,E)}runTask(c,p,E,F){const Z=this._inner,le=Z.scheduleEventTask("NgZoneEvent: "+F,c,M8,D3,D3);try{return Z.runTask(le,p,E)}finally{Z.cancelTask(le)}}runGuarded(c,p,E){return this._inner.runGuarded(c,p,E)}runOutsideAngular(c){return this._outer.run(c)}}const M8={};function zm(o){if(0==o._nesting&&!o.hasPendingMicrotasks&&!o.isStable)try{o._nesting++,o.onMicrotaskEmpty.emit(null)}finally{if(o._nesting--,!o.hasPendingMicrotasks)try{o.runOutsideAngular(()=>o.onStable.emit(null))}finally{o.isStable=!0}}}function Vm(o){o.hasPendingMicrotasks=!!(o._hasPendingMicrotasks||(o.shouldCoalesceEventChangeDetection||o.shouldCoalesceRunChangeDetection)&&-1!==o.lastRequestAnimationFrameId)}function Q6(o){o._nesting++,o.isStable&&(o.isStable=!1,o.onUnstable.emit(null))}function q6(o){o._nesting--,zm(o)}class J6{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Oc,this.onMicrotaskEmpty=new Oc,this.onStable=new Oc,this.onError=new Oc}run(c,p,E){return c.apply(p,E)}runGuarded(c,p,E){return c.apply(p,E)}runOutsideAngular(c){return c()}runTask(c,p,E,F){return c.apply(p,E)}}const X6=new Ca(""),$6=new Ca("");let Bm,eg=(()=>{class o{constructor(p,E,F){this._ngZone=p,this.registry=E,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Bm||(function E8(o){Bm=o}(F),F.addToWindow(E)),this._watchAngularEvents(),p.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{cc.assertNotInAngularZone(),Hm(()=>{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())Hm(()=>{for(;0!==this._callbacks.length;){let p=this._callbacks.pop();clearTimeout(p.timeoutId),p.doneCb(this._didWork)}this._didWork=!1});else{let p=this.getPendingTasks();this._callbacks=this._callbacks.filter(E=>!E.updateCb||!E.updateCb(p)||(clearTimeout(E.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(p=>({source:p.source,creationLocation:p.creationLocation,data:p.data})):[]}addCallback(p,E,F){let Z=-1;E&&E>0&&(Z=setTimeout(()=>{this._callbacks=this._callbacks.filter(le=>le.timeoutId!==Z),p(this._didWork,this.getPendingTasks())},E)),this._callbacks.push({doneCb:p,timeoutId:Z,updateCb:F})}whenStable(p,E,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(p,E,F),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(p){this.registry.registerApplication(p,this)}unregisterApplication(p){this.registry.unregisterApplication(p)}findProviders(p,E,F){return[]}}return o.\u0275fac=function(p){return new(p||o)(xt(cc),xt(tg),xt($6))},o.\u0275prov=Ue({token:o,factory:o.\u0275fac}),o})(),tg=(()=>{class o{constructor(){this._applications=new Map}registerApplication(p,E){this._applications.set(p,E)}unregisterApplication(p){this._applications.delete(p)}unregisterAllApplications(){this._applications.clear()}getTestability(p){return this._applications.get(p)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(p,E=!0){return Bm?.findTestabilityInTree(this,p,E)??null}}return o.\u0275fac=function(p){return new(p||o)},o.\u0275prov=Ue({token:o,factory:o.\u0275fac,providedIn:"platform"}),o})();const Bl=!1;let F1=null;const ig=new Ca("AllowMultipleToken"),I3=new Ca("PlatformDestroyListeners"),ng=new Ca("appBootstrapListener");class A8{constructor(c,p){this.name=c,this.token=p}}function rg(o,c,p=[]){const E=`Platform: ${c}`,F=new Ca(E);return(Z=[])=>{let le=k3();if(!le||le.injector.get(ig,!1)){const Re=[...p,...Z,{provide:F,useValue:!0}];o?o(Re):function L8(o){if(F1&&!F1.get(ig,!1))throw new j(400,!1);F1=o;const c=o.get(sg);(function Um(o){const c=o.get(W6,null);c&&c.forEach(p=>p())})(o)}(function og(o=[],c){return ic.create({name:c,providers:[{provide:El,useValue:"platform"},{provide:I3,useValue:new Set([()=>F1=null])},...o]})}(Re,E))}return function I8(o){const c=k3();if(!c)throw new j(401,!1);return c}()}}function k3(){return F1?.get(sg)??null}let sg=(()=>{class o{constructor(p){this._injector=p,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(p,E){const F=function lg(o,c){let p;return p="noop"===o?new J6:("zone.js"===o?void 0:o)||new cc(c),p}(E?.ngZone,function cg(o){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!o||!o.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!o||!o.ngZoneRunCoalescing)||!1}}(E)),Z=[{provide:cc,useValue:F}];return F.run(()=>{const le=ic.create({providers:Z,parent:this.injector,name:p.moduleType.name}),Re=p.create(le),Ye=Re.injector.get(il,null);if(!Ye)throw new j(402,!1);return F.runOutsideAngular(()=>{const bt=F.onError.subscribe({next:Pt=>{Ye.handleError(Pt)}});Re.onDestroy(()=>{xu(this._modules,Re),bt.unsubscribe()})}),function dg(o,c,p){try{const E=p();return If(E)?E.catch(F=>{throw c.runOutsideAngular(()=>o.handleError(F)),F}):E}catch(E){throw c.runOutsideAngular(()=>o.handleError(E)),E}}(Ye,F,()=>{const bt=Re.injector.get(bu);return bt.runInitializers(),bt.donePromise.then(()=>(function h3(o){W(o,"Expected localeId to be defined"),"string"==typeof o&&(d3=o.toLowerCase().replace(/_/g,"-"))}(Re.injector.get(yu,t2)||t2),this._moduleDoBootstrap(Re),Re))})})}bootstrapModule(p,E=[]){const F=hg({},E);return function T8(o,c,p){const E=new na(p);return Promise.resolve(E)}(0,0,p).then(Z=>this.bootstrapModuleFactory(Z,F))}_moduleDoBootstrap(p){const E=p.injector.get(O3);if(p._bootstrapComponents.length>0)p._bootstrapComponents.forEach(F=>E.bootstrap(F));else{if(!p.instance.ngDoBootstrap)throw new j(-403,!1);p.instance.ngDoBootstrap(E)}this._modules.push(p)}onDestroy(p){this._destroyListeners.push(p)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new j(404,!1);this._modules.slice().forEach(E=>E.destroy()),this._destroyListeners.forEach(E=>E());const p=this._injector.get(I3,null);p&&(p.forEach(E=>E()),p.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return o.\u0275fac=function(p){return new(p||o)(xt(ic))},o.\u0275prov=Ue({token:o,factory:o.\u0275fac,providedIn:"platform"}),o})();function hg(o,c){return Array.isArray(c)?c.reduce(hg,o):{...o,...c}}let O3=(()=>{class o{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(p,E,F){this._zone=p,this._injector=E,this._exceptionHandler=F,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const Z=new _.y(Re=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{Re.next(this._stable),Re.complete()})}),le=new _.y(Re=>{let Ye;this._zone.runOutsideAngular(()=>{Ye=this._zone.onStable.subscribe(()=>{cc.assertNotInAngularZone(),Hm(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,Re.next(!0))})})});const bt=this._zone.onUnstable.subscribe(()=>{cc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{Re.next(!1)}))});return()=>{Ye.unsubscribe(),bt.unsubscribe()}});this.isStable=(0,T.T)(Z,le.pipe((0,s.B)()))}bootstrap(p,E){const F=p instanceof W2;if(!this._injector.get(bu).done){!F&&Ai(p);throw new j(405,Bl)}let le;le=F?p:this._injector.get(Al).resolveComponentFactory(p),this.componentTypes.push(le.componentType);const Re=function ag(o){return o.isBoundToModule}(le)?void 0:this._injector.get(Gs),bt=le.create(ic.NULL,[],E||le.selector,Re),Pt=bt.location.nativeElement,ei=bt.injector.get(X6,null);return ei?.registerApplication(Pt),bt.onDestroy(()=>{this.detachView(bt.hostView),xu(this.components,bt),ei?.unregisterApplication(Pt)}),this._loadComponent(bt),bt}tick(){if(this._runningTick)throw new j(101,!1);try{this._runningTick=!0;for(let p of this._views)p.detectChanges()}catch(p){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(p))}finally{this._runningTick=!1}}attachView(p){const E=p;this._views.push(E),E.attachToAppRef(this)}detachView(p){const E=p;xu(this._views,E),E.detachFromAppRef()}_loadComponent(p){this.attachView(p.hostView),this.tick(),this.components.push(p);const E=this._injector.get(ng,[]);E.push(...this._bootstrapListeners),E.forEach(F=>F(p))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(p=>p()),this._views.slice().forEach(p=>p.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(p){return this._destroyListeners.push(p),()=>xu(this._destroyListeners,p)}destroy(){if(this._destroyed)throw new j(406,!1);const p=this._injector;p.destroy&&!p.destroyed&&p.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return o.\u0275fac=function(p){return new(p||o)(xt(cc),xt(Cc),xt(il))},o.\u0275prov=Ue({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function xu(o,c){const p=o.indexOf(c);p>-1&&o.splice(p,1)}function O8(){return!1}let R8=(()=>{class o{}return o.__NG_ELEMENT_ID__=fg,o})();function fg(o){return function N8(o,c,p){if(Pr(o)&&!p){const E=Ct(o.index,c);return new T1(E,E)}return 47&o.type?new T1(c[ta],c):null}(Ba(),Ei(),16==(16&o))}class _g{constructor(){}supports(c){return A1(c)}create(c){return new V8(c)}}const z8=(o,c)=>c;class V8{constructor(c){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=c||z8}forEachItem(c){let p;for(p=this._itHead;null!==p;p=p._next)c(p)}forEachOperation(c){let p=this._itHead,E=this._removalsHead,F=0,Z=null;for(;p||E;){const le=!E||p&&p.currentIndex{le=this._trackByFn(F,Re),null!==p&&Object.is(p.trackById,le)?(E&&(p=this._verifyReinsertion(p,Re,le,F)),Object.is(p.item,Re)||this._addIdentityChange(p,Re)):(p=this._mismatch(p,Re,le,F),E=!0),p=p._next,F++}),this.length=F;return this._truncate(p),this.collection=c,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let c;for(c=this._previousItHead=this._itHead;null!==c;c=c._next)c._nextPrevious=c._next;for(c=this._additionsHead;null!==c;c=c._nextAdded)c.previousIndex=c.currentIndex;for(this._additionsHead=this._additionsTail=null,c=this._movesHead;null!==c;c=c._nextMoved)c.previousIndex=c.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(c,p,E,F){let Z;return null===c?Z=this._itTail:(Z=c._prev,this._remove(c)),null!==(c=null===this._unlinkedRecords?null:this._unlinkedRecords.get(E,null))?(Object.is(c.item,p)||this._addIdentityChange(c,p),this._reinsertAfter(c,Z,F)):null!==(c=null===this._linkedRecords?null:this._linkedRecords.get(E,F))?(Object.is(c.item,p)||this._addIdentityChange(c,p),this._moveAfter(c,Z,F)):c=this._addAfter(new B8(p,E),Z,F),c}_verifyReinsertion(c,p,E,F){let Z=null===this._unlinkedRecords?null:this._unlinkedRecords.get(E,null);return null!==Z?c=this._reinsertAfter(Z,c._prev,F):c.currentIndex!=F&&(c.currentIndex=F,this._addToMoves(c,F)),c}_truncate(c){for(;null!==c;){const p=c._next;this._addToRemovals(this._unlink(c)),c=p}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(c,p,E){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(c);const F=c._prevRemoved,Z=c._nextRemoved;return null===F?this._removalsHead=Z:F._nextRemoved=Z,null===Z?this._removalsTail=F:Z._prevRemoved=F,this._insertAfter(c,p,E),this._addToMoves(c,E),c}_moveAfter(c,p,E){return this._unlink(c),this._insertAfter(c,p,E),this._addToMoves(c,E),c}_addAfter(c,p,E){return this._insertAfter(c,p,E),this._additionsTail=null===this._additionsTail?this._additionsHead=c:this._additionsTail._nextAdded=c,c}_insertAfter(c,p,E){const F=null===p?this._itHead:p._next;return c._next=F,c._prev=p,null===F?this._itTail=c:F._prev=c,null===p?this._itHead=c:p._next=c,null===this._linkedRecords&&(this._linkedRecords=new vg),this._linkedRecords.put(c),c.currentIndex=E,c}_remove(c){return this._addToRemovals(this._unlink(c))}_unlink(c){null!==this._linkedRecords&&this._linkedRecords.remove(c);const p=c._prev,E=c._next;return null===p?this._itHead=E:p._next=E,null===E?this._itTail=p:E._prev=p,c}_addToMoves(c,p){return c.previousIndex===p||(this._movesTail=null===this._movesTail?this._movesHead=c:this._movesTail._nextMoved=c),c}_addToRemovals(c){return null===this._unlinkedRecords&&(this._unlinkedRecords=new vg),this._unlinkedRecords.put(c),c.currentIndex=null,c._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=c,c._prevRemoved=null):(c._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=c),c}_addIdentityChange(c,p){return c.item=p,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=c:this._identityChangesTail._nextIdentityChange=c,c}}class B8{constructor(c,p){this.item=c,this.trackById=p,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 U8{constructor(){this._head=null,this._tail=null}add(c){null===this._head?(this._head=this._tail=c,c._nextDup=null,c._prevDup=null):(this._tail._nextDup=c,c._prevDup=this._tail,c._nextDup=null,this._tail=c)}get(c,p){let E;for(E=this._head;null!==E;E=E._nextDup)if((null===p||p<=E.currentIndex)&&Object.is(E.trackById,c))return E;return null}remove(c){const p=c._prevDup,E=c._nextDup;return null===p?this._head=E:p._nextDup=E,null===E?this._tail=p:E._prevDup=p,null===this._head}}class vg{constructor(){this.map=new Map}put(c){const p=c.trackById;let E=this.map.get(p);E||(E=new U8,this.map.set(p,E)),E.add(c)}get(c,p){const F=this.map.get(c);return F?F.get(c,p):null}remove(c){const p=c.trackById;return this.map.get(p).remove(c)&&this.map.delete(p),c}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Qm(o,c,p){const E=o.previousIndex;if(null===E)return E;let F=0;return p&&E{if(p&&p.key===F)this._maybeAddToChanges(p,E),this._appendAfter=p,p=p._next;else{const Z=this._getOrCreateRecordForKey(F,E);p=this._insertBeforeOrAppend(p,Z)}}),p){p._prev&&(p._prev._next=null),this._removalsHead=p;for(let E=p;null!==E;E=E._nextRemoved)E===this._mapHead&&(this._mapHead=null),this._records.delete(E.key),E._nextRemoved=E._next,E.previousValue=E.currentValue,E.currentValue=null,E._prev=null,E._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(c,p){if(c){const E=c._prev;return p._next=c,p._prev=E,c._prev=p,E&&(E._next=p),c===this._mapHead&&(this._mapHead=p),this._appendAfter=c,c}return this._appendAfter?(this._appendAfter._next=p,p._prev=this._appendAfter):this._mapHead=p,this._appendAfter=p,null}_getOrCreateRecordForKey(c,p){if(this._records.has(c)){const F=this._records.get(c);this._maybeAddToChanges(F,p);const Z=F._prev,le=F._next;return Z&&(Z._next=le),le&&(le._prev=Z),F._next=null,F._prev=null,F}const E=new G8(c);return this._records.set(c,E),E.currentValue=p,this._addToAdditions(E),E}_reset(){if(this.isDirty){let c;for(this._previousMapHead=this._mapHead,c=this._previousMapHead;null!==c;c=c._next)c._nextPrevious=c._next;for(c=this._changesHead;null!==c;c=c._nextChanged)c.previousValue=c.currentValue;for(c=this._additionsHead;null!=c;c=c._nextAdded)c.previousValue=c.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(c,p){Object.is(p,c.currentValue)||(c.previousValue=c.currentValue,c.currentValue=p,this._addToChanges(c))}_addToAdditions(c){null===this._additionsHead?this._additionsHead=this._additionsTail=c:(this._additionsTail._nextAdded=c,this._additionsTail=c)}_addToChanges(c){null===this._changesHead?this._changesHead=this._changesTail=c:(this._changesTail._nextChanged=c,this._changesTail=c)}_forEach(c,p){c instanceof Map?c.forEach(p):Object.keys(c).forEach(E=>p(c[E],E))}}class G8{constructor(c){this.key=c,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 yg(){return new H3([new _g])}let H3=(()=>{class o{constructor(p){this.factories=p}static create(p,E){if(null!=E){const F=E.factories.slice();p=p.concat(F)}return new o(p)}static extend(p){return{provide:o,useFactory:E=>o.create(p,E||yg()),deps:[[o,new Ns,new $r]]}}find(p){const E=this.factories.find(F=>F.supports(p));if(null!=E)return E;throw new j(901,!1)}}return o.\u0275prov=Ue({token:o,providedIn:"root",factory:yg}),o})();function Jm(){return new Xm([new bg])}let Xm=(()=>{class o{constructor(p){this.factories=p}static create(p,E){if(E){const F=E.factories.slice();p=p.concat(F)}return new o(p)}static extend(p){return{provide:o,useFactory:E=>o.create(p,E||Jm()),deps:[[o,new Ns,new $r]]}}find(p){const E=this.factories.find(F=>F.supports(p));if(E)return E;throw new j(901,!1)}}return o.\u0275prov=Ue({token:o,providedIn:"root",factory:Jm}),o})();const j8=rg(null,"core",[]);let K8=(()=>{class o{constructor(p){}}return o.\u0275fac=function(p){return new(p||o)(xt(O3))},o.\u0275mod=Mi({type:o}),o.\u0275inj=ye({}),o})();function xg(o){return"boolean"==typeof o?o:null!=o&&"false"!==o}},5863:(We,q,m)=>{"use strict";function t(w){for(let C in w){let L=w[C]??"";switch(C){case"display":w.display="flex"===L?["-webkit-flex","flex"]:"inline-flex"===L?["-webkit-inline-flex","inline-flex"]:L;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":w["-webkit-"+C]=L;break;case"flex-direction":w["-webkit-flex-direction"]=L,w["flex-direction"]=L;break;case"order":w.order=w["-webkit-"+C]=isNaN(+L)?"0":L}}return w}m.d(q,{Ar:()=>T,GK:()=>t,iQ:()=>_,kt:()=>d,tj:()=>y});const e="inline",_=["row","column","row-reverse","column-reverse"];function T(w){let[C,L,D]=s(w);return function P(w,C=null,L=!1){return{display:L?"inline-flex":"flex","box-sizing":"border-box","flex-direction":w,"flex-wrap":C||null}}(C,L,D)}function s(w){w=w?.toLowerCase()??"";let[C,L,D]=w.split(" ");return _.find(z=>z===C)||(C=_[0]),L===e&&(L=D!==e?D:"",D=e),[C,h(L),!!D]}function y(w){let[C]=s(w);return C.indexOf("row")>-1}function h(w){if(w)switch(w.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":w="wrap-reverse";break;case"no":case"none":case"nowrap":w="nowrap";break;default:w="wrap"}return w}function d(w,...C){if(null==w)throw TypeError("Cannot convert undefined or null to object");for(let L of C)if(null!=L)for(let D in L)L.hasOwnProperty(D)&&(w[D]=L[D]);return w}},2233:(We,q,m)=>{"use strict";m.d(q,{Bs:()=>J,FL:()=>X,IR:()=>D,Ot:()=>be,QI:()=>me,RK:()=>re,WU:()=>j,g5:()=>Y,iR:()=>Pe,wY:()=>Q,yB:()=>Ve});var t=m(4650),e=m(6895),_=m(1135),T=m(9751),s=m(6451),y=m(7579),h=m(5863),P=m(9300),d=m(8505);const C={provide:t.tb,useFactory:function w(mt,Tt){return()=>{if((0,e.NF)(Tt)){const it=Array.from(mt.querySelectorAll(`[class*=${L}]`)),je=/\bflex-layout-.+?\b/g;it.forEach(zt=>{zt.classList.contains(`${L}ssr`)&&zt.parentNode?zt.parentNode.removeChild(zt):zt.className.replace(je,"")})}}},deps:[e.K0,t.Lbi],multi:!0},L="flex-layout-";let D=(()=>{class mt{}return mt.\u0275fac=function(it){return new(it||mt)},mt.\u0275mod=t.oAB({type:mt}),mt.\u0275inj=t.cJS({providers:[C]}),mt})();class z{constructor(Tt=!1,it="all",je="",zt="",xt=0){this.matches=Tt,this.mediaQuery=it,this.mqAlias=je,this.suffix=zt,this.priority=xt,this.property=""}clone(){return new z(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let V=(()=>{class mt{constructor(){this.stylesheet=new Map}addStyleToElement(it,je,zt){const xt=this.stylesheet.get(it);xt?xt.set(je,zt):this.stylesheet.set(it,new Map([[je,zt]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(it,je){const zt=this.stylesheet.get(it);let xt="";if(zt){const Nt=zt.get(je);("number"==typeof Nt||"string"==typeof Nt)&&(xt=Nt+"")}return xt}}return mt.\u0275fac=function(it){return new(it||mt)},mt.\u0275prov=t.Yz7({token:mt,factory:mt.\u0275fac,providedIn:"root"}),mt})();const Y={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},j=new t.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>Y}),Q=new t.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),J=new t.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function ee(mt,Tt){return mt=mt?.clone()??new z,Tt&&(mt.mqAlias=Tt.alias,mt.mediaQuery=Tt.mediaQuery,mt.suffix=Tt.suffix,mt.priority=Tt.priority),mt}class me{constructor(){this.shouldCache=!0}sideEffect(Tt,it,je){}}let re=(()=>{class mt{constructor(it,je,zt,xt){this._serverStylesheet=it,this._serverModuleLoaded=je,this._platformId=zt,this.layoutConfig=xt}applyStyleToElement(it,je,zt=null){let xt={};"string"==typeof je&&(xt[je]=zt,je=xt),xt=this.layoutConfig.disableVendorPrefixes?je:(0,h.GK)(je),this._applyMultiValueStyleToElement(xt,it)}applyStyleToElements(it,je=[]){const zt=this.layoutConfig.disableVendorPrefixes?it:(0,h.GK)(it);je.forEach(xt=>{this._applyMultiValueStyleToElement(zt,xt)})}getFlowDirection(it){const je="flex-direction";let zt=this.lookupStyle(it,je);return[zt||"row",this.lookupInlineStyle(it,je)||(0,e.PM)(this._platformId)&&this._serverModuleLoaded?zt:""]}hasWrap(it){return"wrap"===this.lookupStyle(it,"flex-wrap")}lookupAttributeValue(it,je){return it.getAttribute(je)??""}lookupInlineStyle(it,je){return(0,e.NF)(this._platformId)?it.style.getPropertyValue(je):function ie(mt,Tt){return Ce(mt)[Tt]??""}(it,je)}lookupStyle(it,je,zt=!1){let xt="";return it&&((xt=this.lookupInlineStyle(it,je))||((0,e.NF)(this._platformId)?zt||(xt=getComputedStyle(it).getPropertyValue(je)):this._serverModuleLoaded&&(xt=this._serverStylesheet.getStyleForElement(it,je)))),xt?xt.trim():""}_applyMultiValueStyleToElement(it,je){Object.keys(it).sort().forEach(zt=>{const xt=it[zt],Nt=Array.isArray(xt)?xt:[xt];Nt.sort();for(let Gt of Nt)Gt=Gt?Gt+"":"",(0,e.NF)(this._platformId)||!this._serverModuleLoaded?(0,e.NF)(this._platformId)?je.style.setProperty(zt,Gt):se(je,zt,Gt):this._serverStylesheet.addStyleToElement(je,zt,Gt)})}}return mt.\u0275fac=function(it){return new(it||mt)(t.LFG(V),t.LFG(Q),t.LFG(t.Lbi),t.LFG(j))},mt.\u0275prov=t.Yz7({token:mt,factory:mt.\u0275fac,providedIn:"root"}),mt})();function se(mt,Tt,it){Tt=Tt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const je=Ce(mt);je[Tt]=it??"",function ce(mt,Tt){let it="";for(const je in Tt)Tt[je]&&(it+=`${je}:${Tt[je]};`);mt.setAttribute("style",it)}(mt,je)}function Ce(mt){const Tt={},it=mt.getAttribute("style");if(it){const je=it.split(/;+/g);for(let zt=0;zt0){const Nt=xt.indexOf(":");if(-1===Nt)throw new Error(`Invalid CSS style: ${xt}`);Tt[xt.substr(0,Nt).trim()]=xt.substr(Nt+1).trim()}}}return Tt}function M(mt,Tt){return(Tt&&Tt.priority||0)-(mt&&mt.priority||0)}function i(mt,Tt){return(mt.priority||0)-(Tt.priority||0)}let a=(()=>{class mt{constructor(it,je,zt){this._zone=it,this._platformId=je,this._document=zt,this.source=new _.X(new z(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const it=[];return this.registry.forEach((je,zt)=>{je.matches&&it.push(zt)}),it}isActive(it){return this.registry.get(it)?.matches??this.registerQuery(it).some(zt=>zt.matches)}observe(it,je=!1){if(it&&it.length){const zt=this._observable$.pipe((0,P.h)(Nt=>!je||it.indexOf(Nt.mediaQuery)>-1)),xt=new T.y(Nt=>{const Gt=this.registerQuery(it);if(Gt.length){const ke=Gt.pop();Gt.forEach($=>{Nt.next($)}),this.source.next(ke)}Nt.complete()});return(0,s.T)(xt,zt)}return this._observable$}registerQuery(it){const je=Array.isArray(it)?it:[it],zt=[];return function l(mt,Tt){const it=mt.filter(je=>!f[je]);if(it.length>0){const je=it.join(", ");try{const zt=Tt.createElement("style");zt.setAttribute("type","text/css"),zt.styleSheet||zt.appendChild(Tt.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${je} {.fx-query-test{ }}\n`)),Tt.head.appendChild(zt),it.forEach(xt=>f[xt]=zt)}catch(zt){console.error(zt)}}}(je,this._document),je.forEach(xt=>{const Nt=ke=>{this._zone.run(()=>this.source.next(new z(ke.matches,xt)))};let Gt=this.registry.get(xt);Gt||(Gt=this.buildMQL(xt),Gt.addListener(Nt),this.pendingRemoveListenerFns.push(()=>Gt.removeListener(Nt)),this.registry.set(xt,Gt)),Gt.matches&&zt.push(new z(!0,xt))}),zt}ngOnDestroy(){let it;for(;it=this.pendingRemoveListenerFns.pop();)it()}buildMQL(it){return function I(mt,Tt){return Tt&&window.matchMedia("all").addListener?window.matchMedia(mt):function v(mt){const Tt=new EventTarget;return Tt.matches="all"===mt||""===mt,Tt.media=mt,Tt.addListener=()=>{},Tt.removeListener=()=>{},Tt.addEventListener=()=>{},Tt.dispatchEvent=()=>!1,Tt.onchange=null,Tt}(mt)}(it,(0,e.NF)(this._platformId))}}return mt.\u0275fac=function(it){return new(it||mt)(t.LFG(t.R0b),t.LFG(t.Lbi),t.LFG(e.K0))},mt.\u0275prov=t.Yz7({token:mt,factory:mt.\u0275fac,providedIn:"root"}),mt})();const f={},k=[{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}],x="(orientation: portrait) and (max-width: 599.98px)",n="(orientation: landscape) and (max-width: 959.98px)",g="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",W="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",O="(orientation: portrait) and (min-width: 840px)",U="(orientation: landscape) and (min-width: 1280px)",ge={HANDSET:`${x}, ${n}`,TABLET:`${g} , ${W}`,WEB:`${O}, ${U} `,HANDSET_PORTRAIT:`${x}`,TABLET_PORTRAIT:`${g} `,WEB_PORTRAIT:`${O}`,HANDSET_LANDSCAPE:`${n}`,TABLET_LANDSCAPE:`${W}`,WEB_LANDSCAPE:`${U}`},nt=[{alias:"handset",priority:2e3,mediaQuery:ge.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:ge.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:ge.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:ge.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:ge.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:ge.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:ge.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:ge.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:ge.WEB_PORTRAIT,overlapping:!0}],Ue=/(\.|-|_)/g;function at(mt){let Tt=mt.length>0?mt.charAt(0):"",it=mt.length>1?mt.slice(1):"";return Tt.toUpperCase()+it}const Oe=new t.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const mt=(0,t.f3M)(J),Tt=(0,t.f3M)(j),it=[].concat.apply([],(mt||[]).map(zt=>Array.isArray(zt)?zt:[zt]));return function fe(mt,Tt=[]){const it={};return mt.forEach(je=>{it[je.alias]=je}),Tt.forEach(je=>{it[je.alias]?(0,h.kt)(it[je.alias],je):it[je.alias]=je}),function xe(mt){return mt.forEach(Tt=>{Tt.suffix||(Tt.suffix=function ye(mt){return mt.replace(Ue,"|").split("|").map(at).join("")}(Tt.alias),Tt.overlapping=!!Tt.overlapping)}),mt}(Object.keys(it).map(je=>it[je]))}((Tt.disableDefaultBps?[]:k).concat(Tt.addOrientationBps?nt:[]),it)}});let oe=(()=>{class mt{constructor(it){this.findByMap=new Map,this.items=[...it].sort(i)}findByAlias(it){return it?this.findWithPredicate(it,je=>je.alias===it):null}findByQuery(it){return this.findWithPredicate(it,je=>je.mediaQuery===it)}get overlappings(){return this.items.filter(it=>it.overlapping)}get aliases(){return this.items.map(it=>it.alias)}get suffixes(){return this.items.map(it=>it?.suffix??"")}findWithPredicate(it,je){let zt=this.findByMap.get(it);return zt||(zt=this.items.find(je)??null,this.findByMap.set(it,zt)),zt??null}}return mt.\u0275fac=function(it){return new(it||mt)(t.LFG(Oe))},mt.\u0275prov=t.Yz7({token:mt,factory:mt.\u0275fac,providedIn:"root"}),mt})();const Fe="print",De={alias:Fe,mediaQuery:Fe,priority:1e3};let he=(()=>{class mt{constructor(it,je,zt){this.breakpoints=it,this.layoutConfig=je,this._document=zt,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new Me,this.deactivations=[]}withPrintQuery(it){return[...it,Fe]}isPrintEvent(it){return it.mediaQuery.startsWith(Fe)}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 je=this.breakpoints.findByQuery(it);return(je?[...this.printBreakPoints,je]:this.printBreakPoints).sort(M)}updateEvent(it){let je=this.breakpoints.findByQuery(it.mediaQuery);return this.isPrintEvent(it)&&(je=this.getEventBreakpoints(it)[0],it.mediaQuery=je?.mediaQuery??""),ee(it,je)}registerBeforeAfterPrintHooks(it){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const je=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(it,this.getEventBreakpoints(new z(!0,Fe))),it.updateStyles())},zt=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(it),it.updateStyles())};this._document.defaultView.addEventListener("beforeprint",je),this._document.defaultView.addEventListener("afterprint",zt),this.beforePrintEventListeners.push(je),this.afterPrintEventListeners.push(zt)}interceptEvents(it){return je=>{this.isPrintEvent(je)?je.matches&&!this.isPrinting?(this.startPrinting(it,this.getEventBreakpoints(je)),it.updateStyles()):!je.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(it),it.updateStyles()):this.collectActivations(it,je)}}blockPropagation(){return it=>!(this.isPrinting||this.isPrintEvent(it))}startPrinting(it,je){this.isPrinting=!0,this.formerActivations=it.activatedBreakpoints,it.activatedBreakpoints=this.queue.addPrintBreakpoints(je)}stopPrinting(it){it.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(it,je){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!je.matches){const zt=this.breakpoints.findByQuery(je.mediaQuery);if(zt){const xt=this.formerActivations&&this.formerActivations.includes(zt),Nt=!this.formerActivations&&it.activatedBreakpoints.includes(zt);(xt||Nt)&&(this.deactivations.push(zt),this.deactivations.sort(M))}}}}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 mt.\u0275fac=function(it){return new(it||mt)(t.LFG(oe),t.LFG(j),t.LFG(e.K0))},mt.\u0275prov=t.Yz7({token:mt,factory:mt.\u0275fac,providedIn:"root"}),mt})();class Me{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(Tt){return Tt.push(De),Tt.sort(M),Tt.forEach(it=>this.addBreakpoint(it)),this.printBreakpoints}addBreakpoint(Tt){Tt&&void 0===this.printBreakpoints.find(je=>je.mediaQuery===Tt.mediaQuery)&&(this.printBreakpoints=function pe(mt){return mt?.mediaQuery.startsWith(Fe)??!1}(Tt)?[Tt,...this.printBreakpoints]:[...this.printBreakpoints,Tt])}clear(){this.printBreakpoints=[]}}let Ve=(()=>{class mt{constructor(it,je,zt){this.matchMedia=it,this.breakpoints=je,this.hook=zt,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new y.x,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(it){this._activatedBreakpoints=[...it]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(it){this._useFallbacks=it}onMediaChange(it){const je=this.findByQuery(it.mediaQuery);if(je){it=ee(it,je);const zt=this.activatedBreakpoints.indexOf(je);it.matches&&-1===zt?(this._activatedBreakpoints.push(je),this._activatedBreakpoints.sort(M),this.updateStyles()):!it.matches&&-1!==zt&&(this._activatedBreakpoints.splice(zt,1),this._activatedBreakpoints.sort(M),this.updateStyles())}}init(it,je,zt,xt,Nt=[]){Qe(this.updateMap,it,je,zt),Qe(this.clearMap,it,je,xt),this.buildElementKeyMap(it,je),this.watchExtraTriggers(it,je,Nt)}getValue(it,je,zt){const xt=this.elementMap.get(it);if(xt){const Nt=void 0!==zt?xt.get(zt):this.getActivatedValues(xt,je);if(Nt)return Nt.get(je)}}hasValue(it,je){const zt=this.elementMap.get(it);if(zt){const xt=this.getActivatedValues(zt,je);if(xt)return void 0!==xt.get(je)||!1}return!1}setValue(it,je,zt,xt){let Nt=this.elementMap.get(it);if(Nt){const ke=(Nt.get(xt)??new Map).set(je,zt);Nt.set(xt,ke),this.elementMap.set(it,Nt)}else Nt=(new Map).set(xt,(new Map).set(je,zt)),this.elementMap.set(it,Nt);const Gt=this.getValue(it,je);void 0!==Gt&&this.updateElement(it,je,Gt)}trackValue(it,je){return this.subject.asObservable().pipe((0,P.h)(zt=>zt.element===it&&zt.key===je))}updateStyles(){this.elementMap.forEach((it,je)=>{const zt=new Set(this.elementKeyMap.get(je));let xt=this.getActivatedValues(it);xt&&xt.forEach((Nt,Gt)=>{this.updateElement(je,Gt,Nt),zt.delete(Gt)}),zt.forEach(Nt=>{if(xt=this.getActivatedValues(it,Nt),xt){const Gt=xt.get(Nt);this.updateElement(je,Nt,Gt)}else this.clearElement(je,Nt)})})}clearElement(it,je){const zt=this.clearMap.get(it);if(zt){const xt=zt.get(je);xt&&(xt(),this.subject.next({element:it,key:je,value:""}))}}updateElement(it,je,zt){const xt=this.updateMap.get(it);if(xt){const Nt=xt.get(je);Nt&&(Nt(zt),this.subject.next({element:it,key:je,value:zt}))}}releaseElement(it){const je=this.watcherMap.get(it);je&&(je.forEach(xt=>xt.unsubscribe()),this.watcherMap.delete(it));const zt=this.elementMap.get(it);zt&&(zt.forEach((xt,Nt)=>zt.delete(Nt)),this.elementMap.delete(it))}triggerUpdate(it,je){const zt=this.elementMap.get(it);if(zt){const xt=this.getActivatedValues(zt,je);xt&&(je?this.updateElement(it,je,xt.get(je)):xt.forEach((Nt,Gt)=>this.updateElement(it,Gt,Nt)))}}buildElementKeyMap(it,je){let zt=this.elementKeyMap.get(it);zt||(zt=new Set,this.elementKeyMap.set(it,zt)),zt.add(je)}watchExtraTriggers(it,je,zt){if(zt&&zt.length){let xt=this.watcherMap.get(it);if(xt||(xt=new Map,this.watcherMap.set(it,xt)),!xt.get(je)){const Gt=(0,s.T)(...zt).subscribe(()=>{const ke=this.getValue(it,je);this.updateElement(it,je,ke)});xt.set(je,Gt)}}}findByQuery(it){return this.breakpoints.findByQuery(it)}getActivatedValues(it,je){for(let xt=0;xtje.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(it)).pipe((0,d.b)(this.hook.interceptEvents(this)),(0,P.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return mt.\u0275fac=function(it){return new(it||mt)(t.LFG(a),t.LFG(oe),t.LFG(he))},mt.\u0275prov=t.Yz7({token:mt,factory:mt.\u0275fac,providedIn:"root"}),mt})();function Qe(mt,Tt,it,je){if(void 0!==je){const zt=mt.get(Tt)??new Map;zt.set(it,je),mt.set(Tt,zt)}}let Pe=(()=>{class mt{constructor(it,je,zt,xt){this.elementRef=it,this.styleBuilder=je,this.styler=zt,this.marshal=xt,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new y.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(je=>{if(-1!==this.inputs.indexOf(je)){const zt=je.split(".").slice(1).join(".");this.setValue(it[je].currentValue,zt)}})}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,je){const zt=this.styleBuilder,xt=zt.shouldCache;let Nt=this.styleCache.get(it);(!Nt||!xt)&&(Nt=zt.buildStyles(it,je),xt&&this.styleCache.set(it,Nt)),this.mru={...Nt},this.applyStyleToElement(Nt),zt.sideEffect(it,Nt,je)}clearStyles(){Object.keys(this.mru).forEach(it=>{this.mru[it]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(it,je=!1){if(it){const[zt,xt]=this.styler.getFlowDirection(it);if(!xt&&je){const Nt=(0,h.Ar)(zt);this.styler.applyStyleToElements(Nt,[it])}return zt.trim()}return"row"}hasWrap(it){return this.styler.hasWrap(it)}applyStyleToElement(it,je,zt=this.nativeElement){this.styler.applyStyleToElement(zt,it,je)}setValue(it,je){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,it,je)}updateWithValue(it){this.currentValue!==it&&(this.addStyles(it),this.currentValue=it)}}return mt.\u0275fac=function(it){return new(it||mt)(t.Y36(t.SBq),t.Y36(me),t.Y36(re),t.Y36(Ve))},mt.\u0275dir=t.lG2({type:mt,features:[t.TTD]}),mt})();class rt extends EventTarget{constructor(Tt){super(),this._mediaQuery=Tt,this._isActive=!1,this._listeners=[],this.onchange=null}get matches(){return this._isActive}get media(){return this._mediaQuery}destroy(){this.deactivate(),this._listeners=[]}activate(){return this._isActive||(this._isActive=!0,this._listeners.forEach(Tt=>{Tt.call(this,{matches:this.matches,media:this.media})})),this}deactivate(){return this._isActive&&(this._isActive=!1,this._listeners.forEach(Tt=>{Tt.call(this,{matches:this.matches,media:this.media})})),this}addListener(Tt){-1===this._listeners.indexOf(Tt)&&this._listeners.push(Tt),this._isActive&&Tt.call(this,{matches:this.matches,media:this.media})}removeListener(Tt){}dispatchEvent(Tt){return!1}}function be(mt,Tt="1",it="1"){let je=[Tt,it,mt],zt=mt.indexOf("calc");if(zt>0){je[2]=qe(mt.substring(zt).trim());let xt=mt.substr(0,zt).trim().split(" ");2==xt.length&&(je[0]=xt[0],je[1]=xt[1])}else if(0==zt)je[2]=qe(mt.trim());else{let xt=mt.split(" ");je=3===xt.length?xt:[Tt,it,mt]}return je}function qe(mt){return mt.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}const Ie="x";function X(mt,Tt){if(void 0===Tt)return mt;const it=je=>{const zt=+je.slice(0,-Ie.length);return mt.endsWith(Ie)&&!isNaN(zt)?`${zt*Tt.value}${Tt.unit}`:mt};return mt.includes(" ")?mt.split(" ").map(it).join(" "):it(mt)}},5829:(We,q,m)=>{"use strict";m.d(q,{Zl:()=>I,aT:()=>n,oO:()=>Y});var t=m(4650),e=m(2233),_=m(6895),y=(m(1281),m(2722),m(1481));let D=(()=>{class g extends e.iR{constructor(O,U,ge,nt,Ue,at,ye){super(O,null,U,ge),this.ngClassInstance=ye,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new _.mk(nt,Ue,O,at)),this.init(),this.setValue("","")}set klass(O){this.ngClassInstance.klass=O,this.setValue(O,"")}updateWithValue(O){this.ngClassInstance.ngClass=O,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return g.\u0275fac=function(O){return new(O||g)(t.Y36(t.SBq),t.Y36(e.RK),t.Y36(e.yB),t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.Qsj),t.Y36(_.mk,10))},g.\u0275dir=t.lG2({type:g,inputs:{klass:["class","klass"]},features:[t.qOj]}),g})();const z=["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 Y=(()=>{class g extends D{constructor(){super(...arguments),this.inputs=z}}return g.\u0275fac=function(){let W;return function(U){return(W||(W=t.n5z(g)))(U||g)}}(),g.\u0275dir=t.lG2({type:g,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:[t.qOj]}),g})();class ie{constructor(W,O,U=!0){this.key=W,this.value=O,this.key=U?W.replace(/['"]/g,"").trim():W.trim(),this.value=U?O.replace(/['"]/g,"").trim():O.trim(),this.value=this.value.replace(/;/,"")}}function se(g){let W=typeof g;return"object"===W?g.constructor===Array?"array":g.constructor===Set?"set":"object":W}function i(g){const[W,...O]=g.split(":");return new ie(W,O.join(":"))}function a(g,W){return W.key&&(g[W.key]=W.value),g}let f=(()=>{class g extends e.iR{constructor(O,U,ge,nt,Ue,at,ye,xe,fe){super(O,null,U,ge),this.sanitizer=nt,this.ngStyleInstance=ye,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new _.PC(O,Ue,at)),this.init();const Oe=this.nativeElement.getAttribute("style")??"";this.fallbackStyles=this.buildStyleMap(Oe),this.isServer=xe&&(0,_.PM)(fe)}updateWithValue(O){const U=this.buildStyleMap(O);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...U},this.isServer&&this.applyStyleToElement(U),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(O){const U=ge=>this.sanitizer.sanitize(t.q3G.STYLE,ge)??"";if(O)switch(se(O)){case"string":return k(function ce(g,W=";"){return String(g).trim().split(W).map(O=>O.trim()).filter(O=>""!==O)}(O),U);case"array":return k(O,U);default:return function M(g,W){let O=[];return"set"===se(g)?g.forEach(U=>O.push(U)):Object.keys(g).forEach(U=>{O.push(`${U}:${g[U]}`)}),function Ce(g,W){return g.map(i).filter(U=>!!U).map(U=>(W&&(U.value=W(U.value)),U)).reduce(a,{})}(O,W)}(O,U)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return g.\u0275fac=function(O){return new(O||g)(t.Y36(t.SBq),t.Y36(e.RK),t.Y36(e.yB),t.Y36(y.H7),t.Y36(t.aQg),t.Y36(t.Qsj),t.Y36(_.PC,10),t.Y36(e.wY),t.Y36(t.Lbi))},g.\u0275dir=t.lG2({type:g,features:[t.qOj]}),g})();const l=["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 I=(()=>{class g extends f{constructor(){super(...arguments),this.inputs=l}}return g.\u0275fac=function(){let W;return function(U){return(W||(W=t.n5z(g)))(U||g)}}(),g.\u0275dir=t.lG2({type:g,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:[t.qOj]}),g})();function k(g,W){return g.map(i).filter(U=>!!U).map(U=>(W&&(U.value=W(U.value)),U)).reduce(a,{})}let n=(()=>{class g{}return g.\u0275fac=function(O){return new(O||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[e.IR]}),g})()},1576:(We,q,m)=>{"use strict";m.d(q,{Wh:()=>be,ae:()=>Nt,xw:()=>C,yH:()=>v});var t=m(4650),e=m(445),_=m(2233),T=m(5863),y=(m(7579),m(2722));let h=(()=>{class Gt extends _.QI{buildStyles($,{display:ue}){const Ae=(0,T.Ar)($);return{...Ae,display:"none"===ue?ue:Ae.display}}}return Gt.\u0275fac=function(){let ke;return function(ue){return(ke||(ke=t.n5z(Gt)))(ue||Gt)}}(),Gt.\u0275prov=t.Yz7({token:Gt,factory:Gt.\u0275fac,providedIn:"root"}),Gt})();const P=["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 w=(()=>{class Gt extends _.iR{constructor($,ue,Ae,Je,$t){super($,Ae,ue,Je),this._config=$t,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue($){const Ae=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=L.get(Ae)??new Map,L.set(Ae,this.styleCache),this.currentValue!==$&&(this.addStyles($,{display:Ae}),this.currentValue=$)}}return Gt.\u0275fac=function($){return new($||Gt)(t.Y36(t.SBq),t.Y36(_.RK),t.Y36(h),t.Y36(_.yB),t.Y36(_.WU))},Gt.\u0275dir=t.lG2({type:Gt,features:[t.qOj]}),Gt})(),C=(()=>{class Gt extends w{constructor(){super(...arguments),this.inputs=P}}return Gt.\u0275fac=function(){let ke;return function(ue){return(ke||(ke=t.n5z(Gt)))(ue||Gt)}}(),Gt.\u0275dir=t.lG2({type:Gt,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:[t.qOj]}),Gt})();const L=new Map;let i=(()=>{class Gt extends _.QI{constructor($){super(),this.layoutConfig=$}buildStyles($,ue){let[Ae,Je,...$t]=$.split(" "),Vt=$t.join(" ");const ii=ue.direction.indexOf("column")>-1?"column":"row",pt=(0,T.tj)(ii)?"max-width":"max-height",ot=(0,T.tj)(ii)?"min-width":"min-height",ft=String(Vt).indexOf("calc")>-1,St=ft||"auto"===Vt,gt=String(Vt).indexOf("%")>-1&&!ft,$e=String(Vt).indexOf("px")>-1||String(Vt).indexOf("rem")>-1||String(Vt).indexOf("em")>-1||String(Vt).indexOf("vw")>-1||String(Vt).indexOf("vh")>-1;let _t=ft||$e;Ae="0"==Ae?0:Ae,Je="0"==Je?0:Je;const vt=!Ae&&!Je;let He={};const Et={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(Vt||""){case"":Vt="row"===ii?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":Ae=0,Vt="auto";break;case"grow":Vt="100%";break;case"noshrink":Je=0,Vt="auto";break;case"auto":break;case"none":Ae=0,Je=0,Vt="auto";break;default:!_t&&!gt&&!isNaN(Vt)&&(Vt+="%"),"0%"===Vt&&(_t=!0),"0px"===Vt&&(Vt="0%"),He=(0,T.kt)(Et,ft?{"flex-grow":Ae,"flex-shrink":Je,"flex-basis":_t?Vt:"100%"}:{flex:`${Ae} ${Je} ${_t?Vt:"100%"}`})}return He.flex||He["flex-grow"]||(He=(0,T.kt)(Et,ft?{"flex-grow":Ae,"flex-shrink":Je,"flex-basis":Vt}:{flex:`${Ae} ${Je} ${Vt}`})),"0%"!==Vt&&"0px"!==Vt&&"0.000000001px"!==Vt&&"auto"!==Vt&&(He[ot]=vt||_t&&Ae?Vt:null,He[pt]=vt||!St&&Je?Vt:null),He[ot]||He[pt]?ue.hasWrap&&(He[ft?"flex-basis":"flex"]=He[pt]?ft?He[pt]:`${Ae} ${Je} ${He[pt]}`:ft?He[ot]:`${Ae} ${Je} ${He[ot]}`):He=(0,T.kt)(Et,ft?{"flex-grow":Ae,"flex-shrink":Je,"flex-basis":Vt}:{flex:`${Ae} ${Je} ${Vt}`}),(0,T.kt)(He,{"box-sizing":"border-box"})}}return Gt.\u0275fac=function($){return new($||Gt)(t.LFG(_.WU))},Gt.\u0275prov=t.Yz7({token:Gt,factory:Gt.\u0275fac,providedIn:"root"}),Gt})();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 l=(()=>{class Gt extends _.iR{constructor($,ue,Ae,Je,$t){super($,Je,ue,$t),this.layoutConfig=Ae,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($){this.flexShrink=$||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow($){this.flexGrow=$||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,y.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,y.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange($){const Ae=$.value.split(" ");this.direction=Ae[0],this.wrap=void 0!==Ae[1]&&"wrap"===Ae[1],this.triggerUpdate()}updateWithValue($){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 Ae=this.direction,Je=Ae.startsWith("row"),$t=this.wrap;Je&&$t?this.styleCache=x:Je&&!$t?this.styleCache=I:!Je&&$t?this.styleCache=n:!Je&&!$t&&(this.styleCache=k);const Vt=String($).replace(";",""),ii=(0,_.Ot)(Vt,this.flexGrow,this.flexShrink);this.addStyles(ii.join(" "),{direction:Ae,hasWrap:$t})}triggerReflow(){const $=this.activatedValue;if(void 0!==$){const ue=(0,_.Ot)($+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,ue.join(" "))}}}return Gt.\u0275fac=function($){return new($||Gt)(t.Y36(t.SBq),t.Y36(_.RK),t.Y36(_.WU),t.Y36(i),t.Y36(_.yB))},Gt.\u0275dir=t.lG2({type:Gt,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[t.qOj]}),Gt})(),v=(()=>{class Gt extends l{constructor(){super(...arguments),this.inputs=a}}return Gt.\u0275fac=function(){let ke;return function(ue){return(ke||(ke=t.n5z(Gt)))(ue||Gt)}}(),Gt.\u0275dir=t.lG2({type:Gt,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:[t.qOj]}),Gt})();const I=new Map,k=new Map,x=new Map,n=new Map;let Ut=(()=>{class Gt extends _.QI{buildStyles($,ue){const Ae={},[Je,$t]=$.split(" ");switch(Je){case"center":Ae["justify-content"]="center";break;case"space-around":Ae["justify-content"]="space-around";break;case"space-between":Ae["justify-content"]="space-between";break;case"space-evenly":Ae["justify-content"]="space-evenly";break;case"end":case"flex-end":Ae["justify-content"]="flex-end";break;default:Ae["justify-content"]="flex-start"}switch($t){case"start":case"flex-start":Ae["align-items"]=Ae["align-content"]="flex-start";break;case"center":Ae["align-items"]=Ae["align-content"]="center";break;case"end":case"flex-end":Ae["align-items"]=Ae["align-content"]="flex-end";break;case"space-between":Ae["align-content"]="space-between",Ae["align-items"]="stretch";break;case"space-around":Ae["align-content"]="space-around",Ae["align-items"]="stretch";break;case"baseline":Ae["align-content"]="stretch",Ae["align-items"]="baseline";break;default:Ae["align-items"]=Ae["align-content"]="stretch"}return(0,T.kt)(Ae,{display:ue.inline?"inline-flex":"flex","flex-direction":ue.layout,"box-sizing":"border-box","max-width":"stretch"===$t?(0,T.tj)(ue.layout)?null:"100%":null,"max-height":"stretch"===$t&&(0,T.tj)(ue.layout)?"100%":null})}}return Gt.\u0275fac=function(){let ke;return function(ue){return(ke||(ke=t.n5z(Gt)))(ue||Gt)}}(),Gt.\u0275prov=t.Yz7({token:Gt,factory:Gt.\u0275fac,providedIn:"root"}),Gt})();const ht=["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 yt=(()=>{class Gt extends _.iR{constructor($,ue,Ae,Je){super($,Ae,ue,Je),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,y.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue($){const ue=this.layout||"row",Ae=this.inline;"row"===ue&&Ae?this.styleCache=Tt:"row"!==ue||Ae?"row-reverse"===ue&&Ae?this.styleCache=je:"row-reverse"!==ue||Ae?"column"===ue&&Ae?this.styleCache=it:"column"!==ue||Ae?"column-reverse"===ue&&Ae?this.styleCache=zt:"column-reverse"===ue&&!Ae&&(this.styleCache=mt):this.styleCache=Ie:this.styleCache=X:this.styleCache=qe,this.addStyles($,{layout:ue,inline:Ae})}onLayoutChange($){const ue=$.value.split(" ");this.layout=ue[0],this.inline=$.value.includes("inline"),T.iQ.find(Ae=>Ae===this.layout)||(this.layout="row"),this.triggerUpdate()}}return Gt.\u0275fac=function($){return new($||Gt)(t.Y36(t.SBq),t.Y36(_.RK),t.Y36(Ut),t.Y36(_.yB))},Gt.\u0275dir=t.lG2({type:Gt,features:[t.qOj]}),Gt})(),be=(()=>{class Gt extends yt{constructor(){super(...arguments),this.inputs=ht}}return Gt.\u0275fac=function(){let ke;return function(ue){return(ke||(ke=t.n5z(Gt)))(ue||Gt)}}(),Gt.\u0275dir=t.lG2({type:Gt,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:[t.qOj]}),Gt})();const qe=new Map,Ie=new Map,X=new Map,mt=new Map,Tt=new Map,it=new Map,je=new Map,zt=new Map;let Nt=(()=>{class Gt{}return Gt.\u0275fac=function($){return new($||Gt)},Gt.\u0275mod=t.oAB({type:Gt}),Gt.\u0275inj=t.cJS({imports:[_.IR,e.vT]}),Gt})()},4006:(We,q,m)=>{"use strict";m.d(q,{Cf:()=>Q,F:()=>Ot,Fd:()=>sr,Fj:()=>z,JJ:()=>pe,JL:()=>Ve,JU:()=>P,On:()=>ri,Q7:()=>Qr,QS:()=>ca,UX:()=>Za,Zs:()=>qr,_Y:()=>xi,a5:()=>Fe,kI:()=>me,oH:()=>Pr,p4:()=>gi,qQ:()=>Cr,qu:()=>nn,sg:()=>jn,u:()=>wa,u5:()=>_n,wV:()=>ln});var t=m(4650),e=m(6895),_=m(457),T=m(4128),s=m(4004);let y=(()=>{class ct{constructor(Ze,kt){this._renderer=Ze,this._elementRef=kt,this.onChange=wi=>{},this.onTouched=()=>{}}setProperty(Ze,kt){this._renderer.setProperty(this._elementRef.nativeElement,Ze,kt)}registerOnTouched(Ze){this.onTouched=Ze}registerOnChange(Ze){this.onChange=Ze}setDisabledState(Ze){this.setProperty("disabled",Ze)}}return ct.\u0275fac=function(Ze){return new(Ze||ct)(t.Y36(t.Qsj),t.Y36(t.SBq))},ct.\u0275dir=t.lG2({type:ct}),ct})(),h=(()=>{class ct extends y{}return ct.\u0275fac=function(){let et;return function(kt){return(et||(et=t.n5z(ct)))(kt||ct)}}(),ct.\u0275dir=t.lG2({type:ct,features:[t.qOj]}),ct})();const P=new t.OlP("NgValueAccessor"),C={provide:P,useExisting:(0,t.Gpc)(()=>z),multi:!0},D=new t.OlP("CompositionEventMode");let z=(()=>{class ct extends y{constructor(Ze,kt,wi){super(Ze,kt),this._compositionMode=wi,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function L(){const ct=(0,e.q)()?(0,e.q)().getUserAgent():"";return/android (\d+)/.test(ct.toLowerCase())}())}writeValue(Ze){this.setProperty("value",Ze??"")}_handleInput(Ze){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Ze)}_compositionStart(){this._composing=!0}_compositionEnd(Ze){this._composing=!1,this._compositionMode&&this.onChange(Ze)}}return ct.\u0275fac=function(Ze){return new(Ze||ct)(t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(D,8))},ct.\u0275dir=t.lG2({type:ct,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(Ze,kt){1&Ze&&t.NdJ("input",function(on){return kt._handleInput(on.target.value)})("blur",function(){return kt.onTouched()})("compositionstart",function(){return kt._compositionStart()})("compositionend",function(on){return kt._compositionEnd(on.target.value)})},features:[t._Bn([C]),t.qOj]}),ct})();const V=!1;function Y(ct){return null==ct||("string"==typeof ct||Array.isArray(ct))&&0===ct.length}function j(ct){return null!=ct&&"number"==typeof ct.length}const Q=new t.OlP("NgValidators"),J=new t.OlP("NgAsyncValidators"),ee=/^(?=.{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 me{static min(et){return re(et)}static max(et){return ie(et)}static required(et){return se(et)}static requiredTrue(et){return ce(et)}static email(et){return function Ce(ct){return Y(ct.value)||ee.test(ct.value)?null:{email:!0}}(et)}static minLength(et){return function M(ct){return et=>Y(et.value)||!j(et.value)?null:et.value.lengthj(et.value)&&et.value.length>ct?{maxlength:{requiredLength:ct,actualLength:et.value.length}}:null}(et)}static pattern(et){return function a(ct){if(!ct)return f;let et,Ze;return"string"==typeof ct?(Ze="","^"!==ct.charAt(0)&&(Ze+="^"),Ze+=ct,"$"!==ct.charAt(ct.length-1)&&(Ze+="$"),et=new RegExp(Ze)):(Ze=ct.toString(),et=ct),kt=>{if(Y(kt.value))return null;const wi=kt.value;return et.test(wi)?null:{pattern:{requiredPattern:Ze,actualValue:wi}}}}(et)}static nullValidator(et){return null}static compose(et){return g(et)}static composeAsync(et){return O(et)}}function re(ct){return et=>{if(Y(et.value)||Y(ct))return null;const Ze=parseFloat(et.value);return!isNaN(Ze)&&Ze{if(Y(et.value)||Y(ct))return null;const Ze=parseFloat(et.value);return!isNaN(Ze)&&Ze>ct?{max:{max:ct,actual:et.value}}:null}}function se(ct){return Y(ct.value)?{required:!0}:null}function ce(ct){return!0===ct.value?null:{required:!0}}function f(ct){return null}function l(ct){return null!=ct}function v(ct){const et=(0,t.QGY)(ct)?(0,_.D)(ct):ct;if(V&&!(0,t.CqO)(et)){let Ze="Expected async validator to return Promise or Observable.";throw"object"==typeof ct&&(Ze+=" Are you using a synchronous validator where an async validator is expected?"),new t.vHH(-1101,Ze)}return et}function I(ct){let et={};return ct.forEach(Ze=>{et=null!=Ze?{...et,...Ze}:et}),0===Object.keys(et).length?null:et}function k(ct,et){return et.map(Ze=>Ze(ct))}function n(ct){return ct.map(et=>function x(ct){return!ct.validate}(et)?et:Ze=>et.validate(Ze))}function g(ct){if(!ct)return null;const et=ct.filter(l);return 0==et.length?null:function(Ze){return I(k(Ze,et))}}function W(ct){return null!=ct?g(n(ct)):null}function O(ct){if(!ct)return null;const et=ct.filter(l);return 0==et.length?null:function(Ze){const kt=k(Ze,et).map(v);return(0,T.D)(kt).pipe((0,s.U)(I))}}function U(ct){return null!=ct?O(n(ct)):null}function ge(ct,et){return null===ct?[et]:Array.isArray(ct)?[...ct,et]:[ct,et]}function nt(ct){return ct._rawValidators}function Ue(ct){return ct._rawAsyncValidators}function at(ct){return ct?Array.isArray(ct)?ct:[ct]:[]}function ye(ct,et){return Array.isArray(ct)?ct.includes(et):ct===et}function xe(ct,et){const Ze=at(et);return at(ct).forEach(wi=>{ye(Ze,wi)||Ze.push(wi)}),Ze}function fe(ct,et){return at(et).filter(Ze=>!ye(ct,Ze))}class Oe{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(et){this._rawValidators=et||[],this._composedValidatorFn=W(this._rawValidators)}_setAsyncValidators(et){this._rawAsyncValidators=et||[],this._composedAsyncValidatorFn=U(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(et){this._onDestroyCallbacks.push(et)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(et=>et()),this._onDestroyCallbacks=[]}reset(et){this.control&&this.control.reset(et)}hasError(et,Ze){return!!this.control&&this.control.hasError(et,Ze)}getError(et,Ze){return this.control?this.control.getError(et,Ze):null}}class oe extends Oe{get formDirective(){return null}get path(){return null}}class Fe extends Oe{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class De{constructor(et){this._cd=et}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let pe=(()=>{class ct extends De{constructor(Ze){super(Ze)}}return ct.\u0275fac=function(Ze){return new(Ze||ct)(t.Y36(Fe,2))},ct.\u0275dir=t.lG2({type:ct,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Ze,kt){2&Ze&&t.ekj("ng-untouched",kt.isUntouched)("ng-touched",kt.isTouched)("ng-pristine",kt.isPristine)("ng-dirty",kt.isDirty)("ng-valid",kt.isValid)("ng-invalid",kt.isInvalid)("ng-pending",kt.isPending)},features:[t.qOj]}),ct})(),Ve=(()=>{class ct extends De{constructor(Ze){super(Ze)}}return ct.\u0275fac=function(Ze){return new(Ze||ct)(t.Y36(oe,10))},ct.\u0275dir=t.lG2({type:ct,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Ze,kt){2&Ze&&t.ekj("ng-untouched",kt.isUntouched)("ng-touched",kt.isTouched)("ng-pristine",kt.isPristine)("ng-dirty",kt.isDirty)("ng-valid",kt.isValid)("ng-invalid",kt.isInvalid)("ng-pending",kt.isPending)("ng-submitted",kt.isSubmitted)},features:[t.qOj]}),ct})();function X(ct,et){return ct?`with name: '${et}'`:`at index: ${et}`}const je=!1,zt="VALID",xt="INVALID",Nt="PENDING",Gt="DISABLED";function ke(ct){return(Je(ct)?ct.validators:ct)||null}function ue(ct,et){return(Je(et)?et.asyncValidators:ct)||null}function Je(ct){return null!=ct&&!Array.isArray(ct)&&"object"==typeof ct}function $t(ct,et,Ze){const kt=ct.controls;if(!(et?Object.keys(kt):kt).length)throw new t.vHH(1e3,je?function mt(ct){return`\n There are no form controls registered with this ${ct?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(et):"");if(!kt[Ze])throw new t.vHH(1001,je?function Tt(ct,et){return`Cannot find form control ${X(ct,et)}`}(et,Ze):"")}function Vt(ct,et,Ze){ct._forEachChild((kt,wi)=>{if(void 0===Ze[wi])throw new t.vHH(1002,je?function it(ct,et){return`Must supply a value for form control ${X(ct,et)}`}(et,wi):"")})}class ii{constructor(et,Ze){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(et),this._assignAsyncValidators(Ze)}get validator(){return this._composedValidatorFn}set validator(et){this._rawValidators=this._composedValidatorFn=et}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(et){this._rawAsyncValidators=this._composedAsyncValidatorFn=et}get parent(){return this._parent}get valid(){return this.status===zt}get invalid(){return this.status===xt}get pending(){return this.status==Nt}get disabled(){return this.status===Gt}get enabled(){return this.status!==Gt}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(et){this._assignValidators(et)}setAsyncValidators(et){this._assignAsyncValidators(et)}addValidators(et){this.setValidators(xe(et,this._rawValidators))}addAsyncValidators(et){this.setAsyncValidators(xe(et,this._rawAsyncValidators))}removeValidators(et){this.setValidators(fe(et,this._rawValidators))}removeAsyncValidators(et){this.setAsyncValidators(fe(et,this._rawAsyncValidators))}hasValidator(et){return ye(this._rawValidators,et)}hasAsyncValidator(et){return ye(this._rawAsyncValidators,et)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(et={}){this.touched=!0,this._parent&&!et.onlySelf&&this._parent.markAsTouched(et)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(et=>et.markAllAsTouched())}markAsUntouched(et={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Ze=>{Ze.markAsUntouched({onlySelf:!0})}),this._parent&&!et.onlySelf&&this._parent._updateTouched(et)}markAsDirty(et={}){this.pristine=!1,this._parent&&!et.onlySelf&&this._parent.markAsDirty(et)}markAsPristine(et={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Ze=>{Ze.markAsPristine({onlySelf:!0})}),this._parent&&!et.onlySelf&&this._parent._updatePristine(et)}markAsPending(et={}){this.status=Nt,!1!==et.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!et.onlySelf&&this._parent.markAsPending(et)}disable(et={}){const Ze=this._parentMarkedDirty(et.onlySelf);this.status=Gt,this.errors=null,this._forEachChild(kt=>{kt.disable({...et,onlySelf:!0})}),this._updateValue(),!1!==et.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...et,skipPristineCheck:Ze}),this._onDisabledChange.forEach(kt=>kt(!0))}enable(et={}){const Ze=this._parentMarkedDirty(et.onlySelf);this.status=zt,this._forEachChild(kt=>{kt.enable({...et,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:et.emitEvent}),this._updateAncestors({...et,skipPristineCheck:Ze}),this._onDisabledChange.forEach(kt=>kt(!1))}_updateAncestors(et){this._parent&&!et.onlySelf&&(this._parent.updateValueAndValidity(et),et.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(et){this._parent=et}getRawValue(){return this.value}updateValueAndValidity(et={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===zt||this.status===Nt)&&this._runAsyncValidator(et.emitEvent)),!1!==et.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!et.onlySelf&&this._parent.updateValueAndValidity(et)}_updateTreeValidity(et={emitEvent:!0}){this._forEachChild(Ze=>Ze._updateTreeValidity(et)),this.updateValueAndValidity({onlySelf:!0,emitEvent:et.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Gt:zt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(et){if(this.asyncValidator){this.status=Nt,this._hasOwnPendingAsyncValidator=!0;const Ze=v(this.asyncValidator(this));this._asyncValidationSubscription=Ze.subscribe(kt=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(kt,{emitEvent:et})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(et,Ze={}){this.errors=et,this._updateControlsErrors(!1!==Ze.emitEvent)}get(et){let Ze=et;return null==Ze||(Array.isArray(Ze)||(Ze=Ze.split(".")),0===Ze.length)?null:Ze.reduce((kt,wi)=>kt&&kt._find(wi),this)}getError(et,Ze){const kt=Ze?this.get(Ze):this;return kt&&kt.errors?kt.errors[et]:null}hasError(et,Ze){return!!this.getError(et,Ze)}get root(){let et=this;for(;et._parent;)et=et._parent;return et}_updateControlsErrors(et){this.status=this._calculateStatus(),et&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(et)}_initObservables(){this.valueChanges=new t.vpe,this.statusChanges=new t.vpe}_calculateStatus(){return this._allControlsDisabled()?Gt:this.errors?xt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Nt)?Nt:this._anyControlsHaveStatus(xt)?xt:zt}_anyControlsHaveStatus(et){return this._anyControls(Ze=>Ze.status===et)}_anyControlsDirty(){return this._anyControls(et=>et.dirty)}_anyControlsTouched(){return this._anyControls(et=>et.touched)}_updatePristine(et={}){this.pristine=!this._anyControlsDirty(),this._parent&&!et.onlySelf&&this._parent._updatePristine(et)}_updateTouched(et={}){this.touched=this._anyControlsTouched(),this._parent&&!et.onlySelf&&this._parent._updateTouched(et)}_registerOnCollectionChange(et){this._onCollectionChange=et}_setUpdateStrategy(et){Je(et)&&null!=et.updateOn&&(this._updateOn=et.updateOn)}_parentMarkedDirty(et){return!et&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(et){return null}_assignValidators(et){this._rawValidators=Array.isArray(et)?et.slice():et,this._composedValidatorFn=function $(ct){return Array.isArray(ct)?W(ct):ct||null}(this._rawValidators)}_assignAsyncValidators(et){this._rawAsyncValidators=Array.isArray(et)?et.slice():et,this._composedAsyncValidatorFn=function Ae(ct){return Array.isArray(ct)?U(ct):ct||null}(this._rawAsyncValidators)}}class pt extends ii{constructor(et,Ze,kt){super(ke(Ze),ue(kt,Ze)),this.controls=et,this._initObservables(),this._setUpdateStrategy(Ze),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(et,Ze){return this.controls[et]?this.controls[et]:(this.controls[et]=Ze,Ze.setParent(this),Ze._registerOnCollectionChange(this._onCollectionChange),Ze)}addControl(et,Ze,kt={}){this.registerControl(et,Ze),this.updateValueAndValidity({emitEvent:kt.emitEvent}),this._onCollectionChange()}removeControl(et,Ze={}){this.controls[et]&&this.controls[et]._registerOnCollectionChange(()=>{}),delete this.controls[et],this.updateValueAndValidity({emitEvent:Ze.emitEvent}),this._onCollectionChange()}setControl(et,Ze,kt={}){this.controls[et]&&this.controls[et]._registerOnCollectionChange(()=>{}),delete this.controls[et],Ze&&this.registerControl(et,Ze),this.updateValueAndValidity({emitEvent:kt.emitEvent}),this._onCollectionChange()}contains(et){return this.controls.hasOwnProperty(et)&&this.controls[et].enabled}setValue(et,Ze={}){Vt(this,!0,et),Object.keys(et).forEach(kt=>{$t(this,!0,kt),this.controls[kt].setValue(et[kt],{onlySelf:!0,emitEvent:Ze.emitEvent})}),this.updateValueAndValidity(Ze)}patchValue(et,Ze={}){null!=et&&(Object.keys(et).forEach(kt=>{const wi=this.controls[kt];wi&&wi.patchValue(et[kt],{onlySelf:!0,emitEvent:Ze.emitEvent})}),this.updateValueAndValidity(Ze))}reset(et={},Ze={}){this._forEachChild((kt,wi)=>{kt.reset(et[wi],{onlySelf:!0,emitEvent:Ze.emitEvent})}),this._updatePristine(Ze),this._updateTouched(Ze),this.updateValueAndValidity(Ze)}getRawValue(){return this._reduceChildren({},(et,Ze,kt)=>(et[kt]=Ze.getRawValue(),et))}_syncPendingControls(){let et=this._reduceChildren(!1,(Ze,kt)=>!!kt._syncPendingControls()||Ze);return et&&this.updateValueAndValidity({onlySelf:!0}),et}_forEachChild(et){Object.keys(this.controls).forEach(Ze=>{const kt=this.controls[Ze];kt&&et(kt,Ze)})}_setUpControls(){this._forEachChild(et=>{et.setParent(this),et._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(et){for(const[Ze,kt]of Object.entries(this.controls))if(this.contains(Ze)&&et(kt))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Ze,kt,wi)=>((kt.enabled||this.disabled)&&(Ze[wi]=kt.value),Ze))}_reduceChildren(et,Ze){let kt=et;return this._forEachChild((wi,on)=>{kt=Ze(kt,wi,on)}),kt}_allControlsDisabled(){for(const et of Object.keys(this.controls))if(this.controls[et].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(et){return this.controls.hasOwnProperty(et)?this.controls[et]:null}}class St extends pt{}const $e=new t.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>_t}),_t="always";function vt(ct,et){return[...et.path,ct]}function He(ct,et,Ze=_t){zi(ct,et),et.valueAccessor.writeValue(ct.value),(ct.disabled||"always"===Ze)&&et.valueAccessor.setDisabledState?.(ct.disabled),function Mi(ct,et){et.valueAccessor.registerOnChange(Ze=>{ct._pendingValue=Ze,ct._pendingChange=!0,ct._pendingDirty=!0,"change"===ct.updateOn&&Xe(ct,et)})}(ct,et),function It(ct,et){const Ze=(kt,wi)=>{et.valueAccessor.writeValue(kt),wi&&et.viewToModelUpdate(kt)};ct.registerOnChange(Ze),et._registerOnDestroy(()=>{ct._unregisterOnChange(Ze)})}(ct,et),function Gi(ct,et){et.valueAccessor.registerOnTouched(()=>{ct._pendingTouched=!0,"blur"===ct.updateOn&&ct._pendingChange&&Xe(ct,et),"submit"!==ct.updateOn&&ct.markAsTouched()})}(ct,et),function Qt(ct,et){if(et.valueAccessor.setDisabledState){const Ze=kt=>{et.valueAccessor.setDisabledState(kt)};ct.registerOnDisabledChange(Ze),et._registerOnDestroy(()=>{ct._unregisterOnDisabledChange(Ze)})}}(ct,et)}function Et(ct,et,Ze=!0){const kt=()=>{};et.valueAccessor&&(et.valueAccessor.registerOnChange(kt),et.valueAccessor.registerOnTouched(kt)),Ni(ct,et),ct&&(et._invokeOnDestroyCallbacks(),ct._registerOnCollectionChange(()=>{}))}function At(ct,et){ct.forEach(Ze=>{Ze.registerOnValidatorChange&&Ze.registerOnValidatorChange(et)})}function zi(ct,et){const Ze=nt(ct);null!==et.validator?ct.setValidators(ge(Ze,et.validator)):"function"==typeof Ze&&ct.setValidators([Ze]);const kt=Ue(ct);null!==et.asyncValidator?ct.setAsyncValidators(ge(kt,et.asyncValidator)):"function"==typeof kt&&ct.setAsyncValidators([kt]);const wi=()=>ct.updateValueAndValidity();At(et._rawValidators,wi),At(et._rawAsyncValidators,wi)}function Ni(ct,et){let Ze=!1;if(null!==ct){if(null!==et.validator){const wi=nt(ct);if(Array.isArray(wi)&&wi.length>0){const on=wi.filter(va=>va!==et.validator);on.length!==wi.length&&(Ze=!0,ct.setValidators(on))}}if(null!==et.asyncValidator){const wi=Ue(ct);if(Array.isArray(wi)&&wi.length>0){const on=wi.filter(va=>va!==et.asyncValidator);on.length!==wi.length&&(Ze=!0,ct.setAsyncValidators(on))}}}const kt=()=>{};return At(et._rawValidators,kt),At(et._rawAsyncValidators,kt),Ze}function Xe(ct,et){ct._pendingDirty&&ct.markAsDirty(),ct.setValue(ct._pendingValue,{emitModelToViewChange:!1}),et.viewToModelUpdate(ct._pendingValue),ct._pendingChange=!1}function Se(ct,et){zi(ct,et)}function en(ct,et){if(!ct.hasOwnProperty("model"))return!1;const Ze=ct.model;return!!Ze.isFirstChange()||!Object.is(et,Ze.currentValue)}function Yt(ct,et){ct._syncPendingControls(),et.forEach(Ze=>{const kt=Ze.control;"submit"===kt.updateOn&&kt._pendingChange&&(Ze.viewToModelUpdate(kt._pendingValue),kt._pendingChange=!1)})}function qt(ct,et){if(!et)return null;let Ze,kt,wi;return Array.isArray(et),et.forEach(on=>{on.constructor===z?Ze=on:function Yi(ct){return Object.getPrototypeOf(ct.constructor)===h}(on)?kt=on:wi=on}),wi||kt||Ze||null}const Dt={provide:oe,useExisting:(0,t.Gpc)(()=>Ot)},Bt=(()=>Promise.resolve())();let Ot=(()=>{class ct extends oe{constructor(Ze,kt,wi){super(),this.callSetDisabledState=wi,this.submitted=!1,this._directives=new Set,this.ngSubmit=new t.vpe,this.form=new pt({},W(Ze),U(kt))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Ze){Bt.then(()=>{const kt=this._findContainer(Ze.path);Ze.control=kt.registerControl(Ze.name,Ze.control),He(Ze.control,Ze,this.callSetDisabledState),Ze.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Ze)})}getControl(Ze){return this.form.get(Ze.path)}removeControl(Ze){Bt.then(()=>{const kt=this._findContainer(Ze.path);kt&&kt.removeControl(Ze.name),this._directives.delete(Ze)})}addFormGroup(Ze){Bt.then(()=>{const kt=this._findContainer(Ze.path),wi=new pt({});Se(wi,Ze),kt.registerControl(Ze.name,wi),wi.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Ze){Bt.then(()=>{const kt=this._findContainer(Ze.path);kt&&kt.removeControl(Ze.name)})}getFormGroup(Ze){return this.form.get(Ze.path)}updateModel(Ze,kt){Bt.then(()=>{this.form.get(Ze.path).setValue(kt)})}setValue(Ze){this.control.setValue(Ze)}onSubmit(Ze){return this.submitted=!0,Yt(this.form,this._directives),this.ngSubmit.emit(Ze),"dialog"===Ze?.target?.method}onReset(){this.resetForm()}resetForm(Ze){this.form.reset(Ze),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Ze){return Ze.pop(),Ze.length?this.form.get(Ze):this.form}}return ct.\u0275fac=function(Ze){return new(Ze||ct)(t.Y36(Q,10),t.Y36(J,10),t.Y36($e,8))},ct.\u0275dir=t.lG2({type:ct,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Ze,kt){1&Ze&&t.NdJ("submit",function(on){return kt.onSubmit(on)})("reset",function(){return kt.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([Dt]),t.qOj]}),ct})();function vi(ct,et){const Ze=ct.indexOf(et);Ze>-1&&ct.splice(Ze,1)}function li(ct){return"object"==typeof ct&&null!==ct&&2===Object.keys(ct).length&&"value"in ct&&"disabled"in ct}const mi=class extends ii{constructor(et=null,Ze,kt){super(ke(Ze),ue(kt,Ze)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(et),this._setUpdateStrategy(Ze),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Je(Ze)&&(Ze.nonNullable||Ze.initialValueIsDefault)&&(this.defaultValue=li(et)?et.value:et)}setValue(et,Ze={}){this.value=this._pendingValue=et,this._onChange.length&&!1!==Ze.emitModelToViewChange&&this._onChange.forEach(kt=>kt(this.value,!1!==Ze.emitViewToModelChange)),this.updateValueAndValidity(Ze)}patchValue(et,Ze={}){this.setValue(et,Ze)}reset(et=this.defaultValue,Ze={}){this._applyFormState(et),this.markAsPristine(Ze),this.markAsUntouched(Ze),this.setValue(this.value,Ze),this._pendingChange=!1}_updateValue(){}_anyControls(et){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(et){this._onChange.push(et)}_unregisterOnChange(et){vi(this._onChange,et)}registerOnDisabledChange(et){this._onDisabledChange.push(et)}_unregisterOnDisabledChange(et){vi(this._onDisabledChange,et)}_forEachChild(et){}_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(et){li(et)?(this.value=this._pendingValue=et.value,et.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=et}},gi=mi,pi={provide:Fe,useExisting:(0,t.Gpc)(()=>ri)},Kt=(()=>Promise.resolve())();let ri=(()=>{class ct extends Fe{constructor(Ze,kt,wi,on,va,Ei){super(),this._changeDetectorRef=va,this.callSetDisabledState=Ei,this.control=new mi,this._registered=!1,this.update=new t.vpe,this._parent=Ze,this._setValidators(kt),this._setAsyncValidators(wi),this.valueAccessor=qt(0,on)}ngOnChanges(Ze){if(this._checkForErrors(),!this._registered||"name"in Ze){if(this._registered&&(this._checkName(),this.formDirective)){const kt=Ze.name.previousValue;this.formDirective.removeControl({name:kt,path:this._getPath(kt)})}this._setUpControl()}"isDisabled"in Ze&&this._updateDisabled(Ze),en(Ze,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(Ze){this.viewModel=Ze,this.update.emit(Ze)}_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(){He(this.control,this,this.callSetDisabledState),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(Ze){Kt.then(()=>{this.control.setValue(Ze,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(Ze){const kt=Ze.isDisabled.currentValue,wi=0!==kt&&(0,t.D6c)(kt);Kt.then(()=>{wi&&!this.control.disabled?this.control.disable():!wi&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Ze){return this._parent?vt(Ze,this._parent):[Ze]}}return ct.\u0275fac=function(Ze){return new(Ze||ct)(t.Y36(oe,9),t.Y36(Q,10),t.Y36(J,10),t.Y36(P,10),t.Y36(t.sBO,8),t.Y36($e,8))},ct.\u0275dir=t.lG2({type:ct,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[t._Bn([pi]),t.qOj,t.TTD]}),ct})(),xi=(()=>{class ct{}return ct.\u0275fac=function(Ze){return new(Ze||ct)},ct.\u0275dir=t.lG2({type:ct,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),ct})();const Hi={provide:P,useExisting:(0,t.Gpc)(()=>ln),multi:!0};let ln=(()=>{class ct extends h{writeValue(Ze){this.setProperty("value",Ze??"")}registerOnChange(Ze){this.onChange=kt=>{Ze(""==kt?null:parseFloat(kt))}}}return ct.\u0275fac=function(){let et;return function(kt){return(et||(et=t.n5z(ct)))(kt||ct)}}(),ct.\u0275dir=t.lG2({type:ct,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Ze,kt){1&Ze&&t.NdJ("input",function(on){return kt.onChange(on.target.value)})("blur",function(){return kt.onTouched()})},features:[t._Bn([Hi]),t.qOj]}),ct})(),_a=(()=>{class ct{}return ct.\u0275fac=function(Ze){return new(Ze||ct)},ct.\u0275mod=t.oAB({type:ct}),ct.\u0275inj=t.cJS({}),ct})();const ia=new t.OlP("NgModelWithFormControlWarning"),Co={provide:Fe,useExisting:(0,t.Gpc)(()=>Pr)};let Pr=(()=>{class ct extends Fe{set isDisabled(Ze){}constructor(Ze,kt,wi,on,va){super(),this._ngModelWarningConfig=on,this.callSetDisabledState=va,this.update=new t.vpe,this._ngModelWarningSent=!1,this._setValidators(Ze),this._setAsyncValidators(kt),this.valueAccessor=qt(0,wi)}ngOnChanges(Ze){if(this._isControlChanged(Ze)){const kt=Ze.form.previousValue;kt&&Et(kt,this,!1),He(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}en(Ze,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Et(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Ze){this.viewModel=Ze,this.update.emit(Ze)}_isControlChanged(Ze){return Ze.hasOwnProperty("form")}}return ct._ngModelWarningSentOnce=!1,ct.\u0275fac=function(Ze){return new(Ze||ct)(t.Y36(Q,10),t.Y36(J,10),t.Y36(P,10),t.Y36(ia,8),t.Y36($e,8))},ct.\u0275dir=t.lG2({type:ct,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[t._Bn([Co]),t.qOj,t.TTD]}),ct})();const xr={provide:oe,useExisting:(0,t.Gpc)(()=>jn)};let jn=(()=>{class ct extends oe{constructor(Ze,kt,wi){super(),this.callSetDisabledState=wi,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.vpe,this._setValidators(Ze),this._setAsyncValidators(kt)}ngOnChanges(Ze){this._checkFormPresent(),Ze.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ni(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Ze){const kt=this.form.get(Ze.path);return He(kt,Ze,this.callSetDisabledState),kt.updateValueAndValidity({emitEvent:!1}),this.directives.push(Ze),kt}getControl(Ze){return this.form.get(Ze.path)}removeControl(Ze){Et(Ze.control||null,Ze,!1),function _e(ct,et){const Ze=ct.indexOf(et);Ze>-1&&ct.splice(Ze,1)}(this.directives,Ze)}addFormGroup(Ze){this._setUpFormContainer(Ze)}removeFormGroup(Ze){this._cleanUpFormContainer(Ze)}getFormGroup(Ze){return this.form.get(Ze.path)}addFormArray(Ze){this._setUpFormContainer(Ze)}removeFormArray(Ze){this._cleanUpFormContainer(Ze)}getFormArray(Ze){return this.form.get(Ze.path)}updateModel(Ze,kt){this.form.get(Ze.path).setValue(kt)}onSubmit(Ze){return this.submitted=!0,Yt(this.form,this.directives),this.ngSubmit.emit(Ze),"dialog"===Ze?.target?.method}onReset(){this.resetForm()}resetForm(Ze){this.form.reset(Ze),this.submitted=!1}_updateDomValue(){this.directives.forEach(Ze=>{const kt=Ze.control,wi=this.form.get(Ze.path);kt!==wi&&(Et(kt||null,Ze),(ct=>ct instanceof mi)(wi)&&(He(wi,Ze,this.callSetDisabledState),Ze.control=wi))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Ze){const kt=this.form.get(Ze.path);Se(kt,Ze),kt.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Ze){if(this.form){const kt=this.form.get(Ze.path);kt&&function wt(ct,et){return Ni(ct,et)}(kt,Ze)&&kt.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){zi(this.form,this),this._oldForm&&Ni(this._oldForm,this)}_checkFormPresent(){}}return ct.\u0275fac=function(Ze){return new(Ze||ct)(t.Y36(Q,10),t.Y36(J,10),t.Y36($e,8))},ct.\u0275dir=t.lG2({type:ct,selectors:[["","formGroup",""]],hostBindings:function(Ze,kt){1&Ze&&t.NdJ("submit",function(on){return kt.onSubmit(on)})("reset",function(){return kt.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([xr]),t.qOj,t.TTD]}),ct})();const Ia={provide:Fe,useExisting:(0,t.Gpc)(()=>wa)};let wa=(()=>{class ct extends Fe{set isDisabled(Ze){}constructor(Ze,kt,wi,on,va){super(),this._ngModelWarningConfig=va,this._added=!1,this.update=new t.vpe,this._ngModelWarningSent=!1,this._parent=Ze,this._setValidators(kt),this._setAsyncValidators(wi),this.valueAccessor=qt(0,on)}ngOnChanges(Ze){this._added||this._setUpControl(),en(Ze,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Ze){this.viewModel=Ze,this.update.emit(Ze)}get path(){return vt(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._added=!0}}return ct._ngModelWarningSentOnce=!1,ct.\u0275fac=function(Ze){return new(Ze||ct)(t.Y36(oe,13),t.Y36(Q,10),t.Y36(J,10),t.Y36(P,10),t.Y36(ia,8))},ct.\u0275dir=t.lG2({type:ct,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[t._Bn([Ia]),t.qOj,t.TTD]}),ct})();function Hr(ct){return"number"==typeof ct?ct:parseFloat(ct)}let sa=(()=>{class ct{constructor(){this._validator=f}ngOnChanges(Ze){if(this.inputName in Ze){const kt=this.normalizeInput(Ze[this.inputName].currentValue);this._enabled=this.enabled(kt),this._validator=this._enabled?this.createValidator(kt):f,this._onChange&&this._onChange()}}validate(Ze){return this._validator(Ze)}registerOnValidatorChange(Ze){this._onChange=Ze}enabled(Ze){return null!=Ze}}return ct.\u0275fac=function(Ze){return new(Ze||ct)},ct.\u0275dir=t.lG2({type:ct,features:[t.TTD]}),ct})();const za={provide:Q,useExisting:(0,t.Gpc)(()=>sr),multi:!0};let sr=(()=>{class ct extends sa{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=Ze=>Hr(Ze),this.createValidator=Ze=>ie(Ze)}}return ct.\u0275fac=function(){let et;return function(kt){return(et||(et=t.n5z(ct)))(kt||ct)}}(),ct.\u0275dir=t.lG2({type:ct,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Ze,kt){2&Ze&&t.uIk("max",kt._enabled?kt.max:null)},inputs:{max:"max"},features:[t._Bn([za]),t.qOj]}),ct})();const gr={provide:Q,useExisting:(0,t.Gpc)(()=>Cr),multi:!0};let Cr=(()=>{class ct extends sa{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=Ze=>Hr(Ze),this.createValidator=Ze=>re(Ze)}}return ct.\u0275fac=function(){let et;return function(kt){return(et||(et=t.n5z(ct)))(kt||ct)}}(),ct.\u0275dir=t.lG2({type:ct,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Ze,kt){2&Ze&&t.uIk("min",kt._enabled?kt.min:null)},inputs:{min:"min"},features:[t._Bn([gr]),t.qOj]}),ct})();const Oo={provide:Q,useExisting:(0,t.Gpc)(()=>Qr),multi:!0},oo={provide:Q,useExisting:(0,t.Gpc)(()=>qr),multi:!0};let Qr=(()=>{class ct extends sa{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=t.D6c,this.createValidator=Ze=>se}enabled(Ze){return Ze}}return ct.\u0275fac=function(){let et;return function(kt){return(et||(et=t.n5z(ct)))(kt||ct)}}(),ct.\u0275dir=t.lG2({type:ct,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Ze,kt){2&Ze&&t.uIk("required",kt._enabled?"":null)},inputs:{required:"required"},features:[t._Bn([Oo]),t.qOj]}),ct})(),qr=(()=>{class ct extends Qr{constructor(){super(...arguments),this.createValidator=Ze=>ce}}return ct.\u0275fac=function(){let et;return function(kt){return(et||(et=t.n5z(ct)))(kt||ct)}}(),ct.\u0275dir=t.lG2({type:ct,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Ze,kt){2&Ze&&t.uIk("required",kt._enabled?"":null)},features:[t._Bn([oo]),t.qOj]}),ct})(),Ft=(()=>{class ct{}return ct.\u0275fac=function(Ze){return new(Ze||ct)},ct.\u0275mod=t.oAB({type:ct}),ct.\u0275inj=t.cJS({imports:[_a]}),ct})();class hi extends ii{constructor(et,Ze,kt){super(ke(Ze),ue(kt,Ze)),this.controls=et,this._initObservables(),this._setUpdateStrategy(Ze),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(et){return this.controls[this._adjustIndex(et)]}push(et,Ze={}){this.controls.push(et),this._registerControl(et),this.updateValueAndValidity({emitEvent:Ze.emitEvent}),this._onCollectionChange()}insert(et,Ze,kt={}){this.controls.splice(et,0,Ze),this._registerControl(Ze),this.updateValueAndValidity({emitEvent:kt.emitEvent})}removeAt(et,Ze={}){let kt=this._adjustIndex(et);kt<0&&(kt=0),this.controls[kt]&&this.controls[kt]._registerOnCollectionChange(()=>{}),this.controls.splice(kt,1),this.updateValueAndValidity({emitEvent:Ze.emitEvent})}setControl(et,Ze,kt={}){let wi=this._adjustIndex(et);wi<0&&(wi=0),this.controls[wi]&&this.controls[wi]._registerOnCollectionChange(()=>{}),this.controls.splice(wi,1),Ze&&(this.controls.splice(wi,0,Ze),this._registerControl(Ze)),this.updateValueAndValidity({emitEvent:kt.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(et,Ze={}){Vt(this,!1,et),et.forEach((kt,wi)=>{$t(this,!1,wi),this.at(wi).setValue(kt,{onlySelf:!0,emitEvent:Ze.emitEvent})}),this.updateValueAndValidity(Ze)}patchValue(et,Ze={}){null!=et&&(et.forEach((kt,wi)=>{this.at(wi)&&this.at(wi).patchValue(kt,{onlySelf:!0,emitEvent:Ze.emitEvent})}),this.updateValueAndValidity(Ze))}reset(et=[],Ze={}){this._forEachChild((kt,wi)=>{kt.reset(et[wi],{onlySelf:!0,emitEvent:Ze.emitEvent})}),this._updatePristine(Ze),this._updateTouched(Ze),this.updateValueAndValidity(Ze)}getRawValue(){return this.controls.map(et=>et.getRawValue())}clear(et={}){this.controls.length<1||(this._forEachChild(Ze=>Ze._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:et.emitEvent}))}_adjustIndex(et){return et<0?et+this.length:et}_syncPendingControls(){let et=this.controls.reduce((Ze,kt)=>!!kt._syncPendingControls()||Ze,!1);return et&&this.updateValueAndValidity({onlySelf:!0}),et}_forEachChild(et){this.controls.forEach((Ze,kt)=>{et(Ze,kt)})}_updateValue(){this.value=this.controls.filter(et=>et.enabled||this.disabled).map(et=>et.value)}_anyControls(et){return this.controls.some(Ze=>Ze.enabled&&et(Ze))}_setUpControls(){this._forEachChild(et=>this._registerControl(et))}_allControlsDisabled(){for(const et of this.controls)if(et.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(et){et.setParent(this),et._registerOnCollectionChange(this._onCollectionChange)}_find(et){return this.at(et)??null}}function Ii(ct){return!!ct&&(void 0!==ct.asyncValidators||void 0!==ct.validators||void 0!==ct.updateOn)}let nn=(()=>{class ct{constructor(){this.useNonNullable=!1}get nonNullable(){const Ze=new ct;return Ze.useNonNullable=!0,Ze}group(Ze,kt=null){const wi=this._reduceControls(Ze);let on={};return Ii(kt)?on=kt:null!==kt&&(on.validators=kt.validator,on.asyncValidators=kt.asyncValidator),new pt(wi,on)}record(Ze,kt=null){const wi=this._reduceControls(Ze);return new St(wi,kt)}control(Ze,kt,wi){let on={};return this.useNonNullable?(Ii(kt)?on=kt:(on.validators=kt,on.asyncValidators=wi),new mi(Ze,{...on,nonNullable:!0})):new mi(Ze,kt,wi)}array(Ze,kt,wi){const on=Ze.map(va=>this._createControl(va));return new hi(on,kt,wi)}_reduceControls(Ze){const kt={};return Object.keys(Ze).forEach(wi=>{kt[wi]=this._createControl(Ze[wi])}),kt}_createControl(Ze){return Ze instanceof mi||Ze instanceof ii?Ze:Array.isArray(Ze)?this.control(Ze[0],Ze.length>1?Ze[1]:null,Ze.length>2?Ze[2]:null):this.control(Ze)}}return ct.\u0275fac=function(Ze){return new(Ze||ct)},ct.\u0275prov=t.Yz7({token:ct,factory:ct.\u0275fac,providedIn:"root"}),ct})(),ca=(()=>{class ct extends nn{group(Ze,kt=null){return super.group(Ze,kt)}control(Ze,kt,wi){return super.control(Ze,kt,wi)}array(Ze,kt,wi){return super.array(Ze,kt,wi)}}return ct.\u0275fac=function(){let et;return function(kt){return(et||(et=t.n5z(ct)))(kt||ct)}}(),ct.\u0275prov=t.Yz7({token:ct,factory:ct.\u0275fac,providedIn:"root"}),ct})(),_n=(()=>{class ct{static withConfig(Ze){return{ngModule:ct,providers:[{provide:$e,useValue:Ze.callSetDisabledState??_t}]}}}return ct.\u0275fac=function(Ze){return new(Ze||ct)},ct.\u0275mod=t.oAB({type:ct}),ct.\u0275inj=t.cJS({imports:[Ft]}),ct})(),Za=(()=>{class ct{static withConfig(Ze){return{ngModule:ct,providers:[{provide:ia,useValue:Ze.warnOnNgModelWithFormControl??"always"},{provide:$e,useValue:Ze.callSetDisabledState??_t}]}}}return ct.\u0275fac=function(Ze){return new(Ze||ct)},ct.\u0275mod=t.oAB({type:ct}),ct.\u0275inj=t.cJS({imports:[Ft]}),ct})()},7957:(We,q,m)=>{"use strict";m.d(q,{Bb:()=>Oe,XC:()=>W,ZL:()=>fe});var t=m(4650),e=m(3238),_=m(6895),T=m(531),s=m(8184),y=m(4761),h=m(1281),P=m(3353),d=m(7340),w=m(727),C=m(7579),L=m(9770),D=m(6451),z=m(9646),V=m(4968),Y=m(9521),j=m(4080),Q=m(4006),J=m(9549),ee=m(8675),me=m(3900),re=m(5698),ie=m(9300),se=m(4004),ce=m(8505),Ce=m(4086),M=m(445);const i=["panel"];function a(oe,Fe){if(1&oe&&(t.TgZ(0,"div",0,1),t.Hsn(2),t.qZA()),2&oe){const De=Fe.id,he=t.oxw();t.Q6J("id",he.id)("ngClass",he._classList)("@panelAnimation",he.isOpen?"visible":"hidden"),t.uIk("aria-label",he.ariaLabel||null)("aria-labelledby",he._getPanelAriaLabelledby(De))}}const f=["*"],l=(0,d.X$)("panelAnimation",[(0,d.SB)("void, hidden",(0,d.oB)({opacity:0,transform:"scaleY(0.8)"})),(0,d.eR)(":enter, hidden => visible",[(0,d.ru)([(0,d.jt)("0.03s linear",(0,d.oB)({opacity:1})),(0,d.jt)("0.12s cubic-bezier(0, 0, 0.2, 1)",(0,d.oB)({transform:"scaleY(1)"}))])]),(0,d.eR)(":leave, visible => hidden",[(0,d.jt)("0.075s linear",(0,d.oB)({opacity:0}))])]);let v=0;class I{constructor(Fe,De){this.source=Fe,this.option=De}}const k=(0,e.Kr)(class{}),x=new t.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function n(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1}}});let g=(()=>{class oe extends k{get isOpen(){return this._isOpen&&this.showPanel}_setColor(De){this._color=De,this._setThemeClasses(this._classList)}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(De){this._autoActiveFirstOption=(0,h.Ig)(De)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(De){this._autoSelectActiveOption=(0,h.Ig)(De)}set classList(De){this._classList=De&&De.length?(0,h.du)(De).reduce((he,Me)=>(he[Me]=!0,he),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(De,he,Me,pe){super(),this._changeDetectorRef=De,this._elementRef=he,this._defaults=Me,this._activeOptionChanges=w.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this._autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this._autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.optionSelected=new t.vpe,this.opened=new t.vpe,this.closed=new t.vpe,this.optionActivated=new t.vpe,this._classList={},this.id="mat-autocomplete-"+v++,this.inertGroups=pe?.SAFARI||!1}ngAfterContentInit(){this._keyManager=new y.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(De=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[De]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(De){this.panel&&(this.panel.nativeElement.scrollTop=De)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(De){const he=new I(this,De);this.optionSelected.emit(he)}_getPanelAriaLabelledby(De){return this.ariaLabel?null:this.ariaLabelledby?(De?De+" ":"")+this.ariaLabelledby:De}_setVisibilityClasses(De){De[this._visibleClass]=this.showPanel,De[this._hiddenClass]=!this.showPanel}_setThemeClasses(De){De["mat-primary"]="primary"===this._color,De["mat-warn"]="warn"===this._color,De["mat-accent"]="accent"===this._color}}return oe.\u0275fac=function(De){return new(De||oe)(t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(x),t.Y36(P.t4))},oe.\u0275dir=t.lG2({type:oe,viewQuery:function(De,he){if(1&De&&(t.Gf(t.Rgc,7),t.Gf(i,5)),2&De){let Me;t.iGM(Me=t.CRH())&&(he.template=Me.first),t.iGM(Me=t.CRH())&&(he.panel=Me.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[t.qOj]}),oe})(),W=(()=>{class oe extends g{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(De){this._hideSingleSelectionIndicator=(0,h.Ig)(De),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const De of this.options)De._changeDetectorRef.markForCheck()}}return oe.\u0275fac=function(){let Fe;return function(he){return(Fe||(Fe=t.n5z(oe)))(he||oe)}}(),oe.\u0275cmp=t.Xpm({type:oe,selectors:[["mat-autocomplete"]],contentQueries:function(De,he,Me){if(1&De&&(t.Suo(Me,e.K7,5),t.Suo(Me,e.ey,5)),2&De){let pe;t.iGM(pe=t.CRH())&&(he.optionGroups=pe),t.iGM(pe=t.CRH())&&(he.options=pe)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matAutocomplete"],features:[t._Bn([{provide:e.HF,useExisting:oe}]),t.qOj],ngContentSelectors:f,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(De,he){1&De&&(t.F$t(),t.YNc(0,a,3,5,"ng-template"))},dependencies:[_.mk],styles:[".mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mdc-menu-surface.mat-mdc-autocomplete-panel{width:100%;max-height:256px;position:static;visibility:hidden;transform-origin:center top;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-autocomplete-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) .mdc-menu-surface.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above .mdc-menu-surface.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[l]},changeDetection:0}),oe})();const ge={provide:Q.JU,useExisting:(0,t.Gpc)(()=>fe),multi:!0},Ue=new t.OlP("mat-autocomplete-scroll-strategy"),ye={provide:Ue,deps:[s.aV],useFactory:function at(oe){return()=>oe.scrollStrategies.reposition()}};let xe=(()=>{class oe{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(De){this._autocompleteDisabled=(0,h.Ig)(De)}constructor(De,he,Me,pe,Ve,Qe,Pe,de,rt,Ke,lt){this._element=De,this._overlay=he,this._viewContainerRef=Me,this._zone=pe,this._changeDetectorRef=Ve,this._dir=Pe,this._formField=de,this._document=rt,this._viewportRuler=Ke,this._defaults=lt,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=w.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new C.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)(()=>{const Ut=this.autocomplete?this.autocomplete.options:null;return Ut?Ut.changes.pipe((0,ee.O)(Ut),(0,me.w)(()=>(0,D.T)(...Ut.map(ht=>ht.onSelectionChange)))):this._zone.onStable.pipe((0,re.q)(1),(0,me.w)(()=>this.optionSelections))}),this._scrollStrategy=Qe}ngAfterViewInit(){const De=this._getWindow();typeof De<"u"&&this._zone.runOutsideAngular(()=>De.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(De){De.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const De=this._getWindow();typeof De<"u"&&De.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._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,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,D.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,ie.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,ie.h)(()=>this._overlayAttached)):(0,z.of)()).pipe((0,se.U)(De=>De instanceof e.rN?De:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,D.T)((0,V.R)(this._document,"click"),(0,V.R)(this._document,"auxclick"),(0,V.R)(this._document,"touchend")).pipe((0,ie.h)(De=>{const he=(0,P.sA)(De),Me=this._formField?this._formField._elementRef.nativeElement:null,pe=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&he!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!Me||!Me.contains(he))&&(!pe||!pe.contains(he))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(he)}))}writeValue(De){Promise.resolve(null).then(()=>this._assignOptionValue(De))}registerOnChange(De){this._onChange=De}registerOnTouched(De){this._onTouched=De}setDisabledState(De){this._element.nativeElement.disabled=De}_handleKeydown(De){const he=De.keyCode,Me=(0,Y.Vb)(De);if(he===Y.hY&&!Me&&De.preventDefault(),this.activeOption&&he===Y.K5&&this.panelOpen&&!Me)this.activeOption._selectViaInteraction(),this._resetActiveItem(),De.preventDefault();else if(this.autocomplete){const pe=this.autocomplete._keyManager.activeItem,Ve=he===Y.LH||he===Y.JH;he===Y.Mf||Ve&&!Me&&this.panelOpen?this.autocomplete._keyManager.onKeydown(De):Ve&&this._canOpen()&&this.openPanel(),(Ve||this.autocomplete._keyManager.activeItem!==pe)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(De){let he=De.target,Me=he.value;"number"===he.type&&(Me=""==Me?null:parseFloat(Me)),this._previousValue!==Me&&(this._previousValue=Me,this._pendingAutoselectedOption=null,this._onChange(Me),this._canOpen()&&this._document.activeElement===De.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(De=!1){this._formField&&"auto"===this._formField.floatLabel&&(De?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const De=this._zone.onStable.pipe((0,re.q)(1)),he=this.autocomplete.options.changes.pipe((0,ce.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,Ce.g)(0));return(0,D.T)(De,he).pipe((0,me.w)(()=>(this._zone.run(()=>{const Me=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),Me!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,re.q)(1)).subscribe(Me=>this._setValueAndClose(Me))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(De){const he=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(De):De;this._updateNativeInputValue(he??"")}_updateNativeInputValue(De){this._formField?this._formField._control.value=De:this._element.nativeElement.value=De,this._previousValue=De}_setValueAndClose(De){const he=De?De.source:this._pendingAutoselectedOption;he&&(this._clearPreviousSelectedOption(he),this._assignOptionValue(he.value),this._onChange(he.value),this.autocomplete._emitSelectEvent(he),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(De){this.autocomplete.options.forEach(he=>{he!==De&&he.selected&&he.deselect()})}_attachOverlay(){let De=this._overlayRef;De?(this._positionStrategy.setOrigin(this._getConnectedElement()),De.updateSize({width:this._getPanelWidth()})):(this._portal=new j.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),De=this._overlay.create(this._getOverlayConfig()),this._overlayRef=De,this._handleOverlayEvents(De),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&De&&De.updateSize({width:this._getPanelWidth()})})),De&&!De.hasAttached()&&(De.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const he=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this.panelOpen&&he!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new s.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const De=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(De),this._positionStrategy=De,De}_setStrategyPositions(De){const he=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Me=this._aboveClass,pe=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Me},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Me}];let Ve;Ve="above"===this.position?pe:"below"===this.position?he:[...he,...pe],De.withPositions(Ve)}_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 De=this.autocomplete;De.autoActiveFirstOption?De._keyManager.setFirstItemActive():De._keyManager.setActiveItem(-1)}_canOpen(){const De=this._element.nativeElement;return!De.readOnly&&!De.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(De){const he=this.autocomplete,Me=(0,e.CB)(De,he.options,he.optionGroups);if(0===De&&1===Me)he._setScrollTop(0);else if(he.panel){const pe=he.options.toArray()[De];if(pe){const Ve=pe._getHostElement(),Qe=(0,e.jH)(Ve.offsetTop,Ve.offsetHeight,he._getScrollTop(),he.panel.nativeElement.offsetHeight);he._setScrollTop(Qe)}}}_handleOverlayEvents(De){De.keydownEvents().subscribe(he=>{(he.keyCode===Y.hY&&!(0,Y.Vb)(he)||he.keyCode===Y.LH&&(0,Y.Vb)(he,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),he.stopPropagation(),he.preventDefault())}),De.outsidePointerEvents().subscribe()}}return oe.\u0275fac=function(De){return new(De||oe)(t.Y36(t.SBq),t.Y36(s.aV),t.Y36(t.s_b),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(Ue),t.Y36(M.Is,8),t.Y36(J.G_,9),t.Y36(_.K0,8),t.Y36(T.rL),t.Y36(x,8))},oe.\u0275dir=t.lG2({type:oe,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[t.TTD]}),oe})(),fe=(()=>{class oe extends xe{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}}return oe.\u0275fac=function(){let Fe;return function(he){return(Fe||(Fe=t.n5z(oe)))(he||oe)}}(),oe.\u0275dir=t.lG2({type:oe,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(De,he){1&De&&t.NdJ("focusin",function(){return he._handleFocus()})("blur",function(){return he._onTouched()})("input",function(pe){return he._handleInput(pe)})("keydown",function(pe){return he._handleKeydown(pe)})("click",function(){return he._handleClick()}),2&De&&t.uIk("autocomplete",he.autocompleteAttribute)("role",he.autocompleteDisabled?null:"combobox")("aria-autocomplete",he.autocompleteDisabled?null:"list")("aria-activedescendant",he.panelOpen&&he.activeOption?he.activeOption.id:null)("aria-expanded",he.autocompleteDisabled?null:he.panelOpen.toString())("aria-owns",he.autocompleteDisabled||!he.panelOpen||null==he.autocomplete?null:he.autocomplete.id)("aria-haspopup",he.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[t._Bn([ge]),t.qOj]}),oe})(),Oe=(()=>{class oe{}return oe.\u0275fac=function(De){return new(De||oe)},oe.\u0275mod=t.oAB({type:oe}),oe.\u0275inj=t.cJS({providers:[ye],imports:[s.U8,e.Ng,e.BQ,_.ez,T.ZD,e.Ng,e.BQ]}),oe})()},2673:(We,q,m)=>{"use strict";m.d(q,{g:()=>d,k:()=>P});var t=m(4650),e=m(3238),_=m(4761),T=m(1281);let s=0;const y=(0,e.Id)(class{}),h="mat-badge-content";let P=(()=>{class w extends y{get color(){return this._color}set color(L){this._setColor(L),this._color=L}get overlap(){return this._overlap}set overlap(L){this._overlap=(0,T.Ig)(L)}get content(){return this._content}set content(L){this._updateRenderedContent(L)}get description(){return this._description}set description(L){this._updateHostAriaDescription(L)}get hidden(){return this._hidden}set hidden(L){this._hidden=(0,T.Ig)(L)}constructor(L,D,z,V,Y){super(),this._ngZone=L,this._elementRef=D,this._ariaDescriber=z,this._renderer=V,this._animationMode=Y,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=s++,this._isInitialized=!1}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 L=this._renderer.createElement("span"),D="mat-badge-active";return L.setAttribute("id",`mat-badge-content-${this._id}`),L.setAttribute("aria-hidden","true"),L.classList.add(h),"NoopAnimations"===this._animationMode&&L.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(L),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{L.classList.add(D)})}):L.classList.add(D),L}_updateRenderedContent(L){const D=`${L??""}`.trim();this._isInitialized&&D&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=D),this._content=D}_updateHostAriaDescription(L){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),L&&this._ariaDescriber.describe(this._elementRef.nativeElement,L),this._description=L}_setColor(L){const D=this._elementRef.nativeElement.classList;D.remove(`mat-badge-${this._color}`),L&&D.add(`mat-badge-${L}`)}_clearExistingBadges(){const L=this._elementRef.nativeElement.querySelectorAll(`:scope > .${h}`);for(const D of Array.from(L))D!==this._badgeElement&&D.remove()}}return w.\u0275fac=function(L){return new(L||w)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(_.$s),t.Y36(t.Qsj),t.Y36(t.QbO,8))},w.\u0275dir=t.lG2({type:w,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(L,D){2&L&&t.ekj("mat-badge-overlap",D.overlap)("mat-badge-above",D.isAbove())("mat-badge-below",!D.isAbove())("mat-badge-before",!D.isAfter())("mat-badge-after",D.isAfter())("mat-badge-small","small"===D.size)("mat-badge-medium","medium"===D.size)("mat-badge-large","large"===D.size)("mat-badge-hidden",D.hidden||!D.content)("mat-badge-disabled",D.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:[t.qOj]}),w})(),d=(()=>{class w{}return w.\u0275fac=function(L){return new(L||w)},w.\u0275mod=t.oAB({type:w}),w.\u0275inj=t.cJS({imports:[_.rt,e.BQ,e.BQ]}),w})()},4859:(We,q,m)=>{"use strict";m.d(q,{RK:()=>k,lW:()=>se,nh:()=>l,ot:()=>n});var t=m(3353),e=m(4650),_=m(4761),T=m(3238);const s=["mat-button",""],y=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],h=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],C=["mat-mini-fab",""],D=["mat-icon-button",""],z=["*"],Q=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],J=(0,T.pj)((0,T.Id)((0,T.Kr)(class{constructor(g){this._elementRef=g}})));let ee=(()=>{class g extends J{constructor(O,U,ge,nt){super(O),this._platform=U,this._ngZone=ge,this._animationMode=nt,this._focusMonitor=(0,e.f3M)(_.tE),this._isFab=!1;const Ue=O.nativeElement.classList;for(const at of Q)this._hasHostAttributes(at.selector)&&at.mdcClasses.forEach(ye=>{Ue.add(ye)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(O="program",U){O?this._focusMonitor.focusVia(this._elementRef.nativeElement,O,U):this._elementRef.nativeElement.focus(U)}_hasHostAttributes(...O){return O.some(U=>this._elementRef.nativeElement.hasAttribute(U))}_isRippleDisabled(){return this.disableRipple||this.disabled}}return g.\u0275fac=function(O){e.$Z()},g.\u0275dir=e.lG2({type:g,viewQuery:function(O,U){if(1&O&&e.Gf(T.wG,5),2&O){let ge;e.iGM(ge=e.CRH())&&(U.ripple=ge.first)}},features:[e.qOj]}),g})(),se=(()=>{class g extends ee{constructor(O,U,ge,nt){super(O,U,ge,nt)}}return g.\u0275fac=function(O){return new(O||g)(e.Y36(e.SBq),e.Y36(t.t4),e.Y36(e.R0b),e.Y36(e.QbO,8))},g.\u0275cmp=e.Xpm({type:g,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(O,U){2&O&&(e.uIk("disabled",U.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===U._animationMode)("mat-unthemed",!U.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:s,ngContentSelectors:h,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(O,U){1&O&&(e.F$t(y),e._UZ(0,"span",0),e.Hsn(1),e.TgZ(2,"span",1),e.Hsn(3,1),e.qZA(),e.Hsn(4,2),e._UZ(5,"span",2)(6,"span",3)(7,"span",4)),2&O&&(e.ekj("mdc-button__ripple",!U._isFab)("mdc-fab__ripple",U._isFab),e.xp6(6),e.Q6J("matRippleDisabled",U._isRippleDisabled())("matRippleTrigger",U._elementRef.nativeElement))},dependencies:[T.wG],styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),g})();const Ce=new e.OlP("mat-mdc-fab-default-options",{providedIn:"root",factory:M});function M(){return{color:"accent"}}const i=M();let l=(()=>{class g extends ee{constructor(O,U,ge,nt,Ue){super(O,U,ge,nt),this._options=Ue,this._isFab=!0,this._options=this._options||i,this.color=this.defaultColor=this._options.color||i.color}}return g.\u0275fac=function(O){return new(O||g)(e.Y36(e.SBq),e.Y36(t.t4),e.Y36(e.R0b),e.Y36(e.QbO,8),e.Y36(Ce,8))},g.\u0275cmp=e.Xpm({type:g,selectors:[["button","mat-mini-fab",""]],hostVars:7,hostBindings:function(O,U){2&O&&(e.uIk("disabled",U.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===U._animationMode)("mat-unthemed",!U.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:C,ngContentSelectors:h,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(O,U){1&O&&(e.F$t(y),e._UZ(0,"span",0),e.Hsn(1),e.TgZ(2,"span",1),e.Hsn(3,1),e.qZA(),e.Hsn(4,2),e._UZ(5,"span",2)(6,"span",3)(7,"span",4)),2&O&&(e.ekj("mdc-button__ripple",!U._isFab)("mdc-fab__ripple",U._isFab),e.xp6(6),e.Q6J("matRippleDisabled",U._isRippleDisabled())("matRippleTrigger",U._elementRef.nativeElement))},dependencies:[T.wG],styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n )}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab .mdc-fab__icon{width:24px;height:24px;font-size:24px}.mdc-fab:not(.mdc-fab--extended){border-radius:50%}.mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:50%}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);background-color:var(--mdc-fab-container-color, transparent);box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);color:var(--mat-mdc-fab-color, inherit);flex-shrink:0}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-fab .mat-ripple-element,.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-fab .mat-mdc-button-touch-target,.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:not(:disabled) .mdc-fab__icon,.mat-mdc-mini-fab:not(:disabled) .mdc-fab__icon{color:var(--mdc-fab-icon-color, inherit)}.mat-mdc-fab:not(.mdc-fab--extended),.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape, 50%)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple,.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape, 50%)}.mat-mdc-fab:hover,.mat-mdc-fab:focus,.mat-mdc-mini-fab:hover,.mat-mdc-mini-fab:focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active,.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mat-mdc-fab[disabled],.mat-mdc-mini-fab[disabled]{cursor:default;pointer-events:none;box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-extended-fab{border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mat-mdc-extended-fab .mdc-fab__ripple{border-radius:24px}.mat-mdc-extended-fab .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab .mdc-fab__icon,.mat-mdc-extended-fab .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-fab__label+.mdc-fab__icon,.mat-mdc-extended-fab .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}'],encapsulation:2,changeDetection:0}),g})(),k=(()=>{class g extends ee{constructor(O,U,ge,nt){super(O,U,ge,nt)}}return g.\u0275fac=function(O){return new(O||g)(e.Y36(e.SBq),e.Y36(t.t4),e.Y36(e.R0b),e.Y36(e.QbO,8))},g.\u0275cmp=e.Xpm({type:g,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(O,U){2&O&&(e.uIk("disabled",U.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===U._animationMode)("mat-unthemed",!U.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:D,ngContentSelectors:z,decls:5,vars:3,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(O,U){1&O&&(e.F$t(),e._UZ(0,"span",0),e.Hsn(1),e._UZ(2,"span",1)(3,"span",2)(4,"span",3)),2&O&&(e.xp6(3),e.Q6J("matRippleDisabled",U._isRippleDisabled())("matRippleCentered",!0)("matRippleTrigger",U._elementRef.nativeElement))},dependencies:[T.wG],styles:['.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{max-height:48px;max-width:48px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size, 48px);width:var(--mdc-icon-button-state-layer-size, 48px);color:var(--mdc-icon-button-icon-color, inherit);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity, 0.38)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color, #000)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),g})(),n=(()=>{class g{}return g.\u0275fac=function(O){return new(O||g)},g.\u0275mod=e.oAB({type:g}),g.\u0275inj=e.cJS({imports:[T.BQ,T.si,T.BQ]}),g})()},3546:(We,q,m)=>{"use strict";m.d(q,{$j:()=>z,QW:()=>ce,a8:()=>w,dk:()=>Y,dn:()=>D,n5:()=>C});var t=m(4650),e=m(6895),_=m(3238);const T=["*"],h=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],P=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],d=new t.OlP("MAT_CARD_CONFIG");let w=(()=>{class Ce{constructor(i){this.appearance=i?.appearance||"raised"}}return Ce.\u0275fac=function(i){return new(i||Ce)(t.Y36(d,8))},Ce.\u0275cmp=t.Xpm({type:Ce,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(i,a){2&i&&t.ekj("mat-mdc-card-outlined","outlined"===a.appearance)("mdc-card--outlined","outlined"===a.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:T,decls:1,vars:0,template:function(i,a){1&i&&(t.F$t(),t.Hsn(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mat-mdc-card{position:relative;border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px));background-color:var(--mdc-elevated-card-container-color, transparent);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color, transparent)}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px))}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width, 1px);border-style:solid;border-color:var(--mdc-outlined-card-outline-color, transparent)}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0}),Ce})(),C=(()=>{class Ce{}return Ce.\u0275fac=function(i){return new(i||Ce)},Ce.\u0275dir=t.lG2({type:Ce,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]}),Ce})(),D=(()=>{class Ce{}return Ce.\u0275fac=function(i){return new(i||Ce)},Ce.\u0275dir=t.lG2({type:Ce,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]}),Ce})(),z=(()=>{class Ce{}return Ce.\u0275fac=function(i){return new(i||Ce)},Ce.\u0275dir=t.lG2({type:Ce,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]}),Ce})(),Y=(()=>{class Ce{}return Ce.\u0275fac=function(i){return new(i||Ce)},Ce.\u0275cmp=t.Xpm({type:Ce,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:P,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(i,a){1&i&&(t.F$t(h),t.Hsn(0),t.TgZ(1,"div",0),t.Hsn(2,1),t.qZA(),t.Hsn(3,2))},encapsulation:2,changeDetection:0}),Ce})(),ce=(()=>{class Ce{}return Ce.\u0275fac=function(i){return new(i||Ce)},Ce.\u0275mod=t.oAB({type:Ce}),Ce.\u0275inj=t.cJS({imports:[_.BQ,e.ez,_.BQ]}),Ce})()},6709:(We,q,m)=>{"use strict";m.d(q,{oG:()=>Y,p9:()=>ee});var t=m(4650),e=m(4006),_=m(3238),T=m(1281);const s=["input"],y=["label"],h=["*"],P=new t.OlP("mat-checkbox-default-options",{providedIn:"root",factory:d});function d(){return{color:"accent",clickAction:"check-indeterminate"}}const w={provide:e.JU,useExisting:(0,t.Gpc)(()=>Y),multi:!0};class C{}let L=0;const D=d(),z=(0,_.sb)((0,_.pj)((0,_.Kr)((0,_.Id)(class{constructor(me){this._elementRef=me}}))));let V=(()=>{class me extends z{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(ie){this._required=(0,T.Ig)(ie)}constructor(ie,se,ce,Ce,M,i,a){super(se),this._changeDetectorRef=ce,this._ngZone=Ce,this._animationMode=i,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,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||D,this.color=this.defaultColor=this._options.color||D.color,this.tabIndex=parseInt(M)||0,this.id=this._uniqueId=`${ie}${++L}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(ie){const se=(0,T.Ig)(ie);se!=this.checked&&(this._checked=se,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(ie){const se=(0,T.Ig)(ie);se!==this.disabled&&(this._disabled=se,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(ie){const se=ie!=this._indeterminate;this._indeterminate=(0,T.Ig)(ie),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(ie){this.checked=!!ie}registerOnChange(ie){this._controlValueAccessorChangeFn=ie}registerOnTouched(ie){this._onTouched=ie}setDisabledState(ie){this.disabled=ie}_transitionCheckState(ie){let se=this._currentCheckState,ce=this._getAnimationTargetElement();if(se!==ie&&ce&&(this._currentAnimationClass&&ce.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(se,ie),this._currentCheckState=ie,this._currentAnimationClass.length>0)){ce.classList.add(this._currentAnimationClass);const Ce=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{ce.classList.remove(Ce)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const ie=this._options?.clickAction;this.disabled||"noop"===ie?!this.disabled&&"noop"===ie&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==ie&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(ie){ie.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(ie,se){if("NoopAnimations"===this._animationMode)return"";switch(ie){case 0:if(1===se)return this._animationClasses.uncheckedToChecked;if(3==se)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===se?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===se?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===se?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(ie){const se=this._inputElement;se&&(se.nativeElement.indeterminate=ie)}}return me.\u0275fac=function(ie){t.$Z()},me.\u0275dir=t.lG2({type:me,viewQuery:function(ie,se){if(1&ie&&(t.Gf(s,5),t.Gf(y,5),t.Gf(_.wG,5)),2&ie){let ce;t.iGM(ce=t.CRH())&&(se._inputElement=ce.first),t.iGM(ce=t.CRH())&&(se._labelElement=ce.first),t.iGM(ce=t.CRH())&&(se.ripple=ce.first)}},inputs:{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"},features:[t.qOj]}),me})(),Y=(()=>{class me extends V{constructor(ie,se,ce,Ce,M,i){super("mat-mdc-checkbox-",ie,se,ce,Ce,M,i),this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"}}focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(ie){const se=new C;return se.source=this,se.checked=ie,se}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_onInputClick(){super._handleInputClick()}_onTouchTargetClick(){super._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(ie){ie.target&&this._labelElement.nativeElement.contains(ie.target)&&ie.stopPropagation()}}return me.\u0275fac=function(ie){return new(ie||me)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(t.R0b),t.$8M("tabindex"),t.Y36(t.QbO,8),t.Y36(P,8))},me.\u0275cmp=t.Xpm({type:me,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(ie,se){2&ie&&(t.Ikx("id",se.id),t.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),t.ekj("_mat-animation-noopable","NoopAnimations"===se._animationMode)("mdc-checkbox--disabled",se.disabled)("mat-mdc-checkbox-disabled",se.disabled)("mat-mdc-checkbox-checked",se.checked))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[t._Bn([w]),t.qOj],ngContentSelectors:h,decls:15,vars:19,consts:[[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","indeterminate","disabled","id","required","tabIndex","blur","click","change"],["input",""],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[3,"for"],["label",""]],template:function(ie,se){if(1&ie&&(t.F$t(),t.TgZ(0,"div",0),t.NdJ("click",function(Ce){return se._preventBubblingFromLabel(Ce)}),t.TgZ(1,"div",1,2)(3,"div",3),t.NdJ("click",function(){return se._onTouchTargetClick()}),t.qZA(),t.TgZ(4,"input",4,5),t.NdJ("blur",function(){return se._onBlur()})("click",function(){return se._onInputClick()})("change",function(Ce){return se._onInteractionEvent(Ce)}),t.qZA(),t._UZ(6,"div",6),t.TgZ(7,"div",7),t.O4$(),t.TgZ(8,"svg",8),t._UZ(9,"path",9),t.qZA(),t.kcU(),t._UZ(10,"div",10),t.qZA(),t._UZ(11,"div",11),t.qZA(),t.TgZ(12,"label",12,13),t.Hsn(14),t.qZA()()),2&ie){const ce=t.MAs(2);t.ekj("mdc-form-field--align-end","before"==se.labelPosition),t.xp6(4),t.ekj("mdc-checkbox--selected",se.checked),t.Q6J("checked",se.checked)("indeterminate",se.indeterminate)("disabled",se.disabled)("id",se.inputId)("required",se.required)("tabIndex",se.tabIndex),t.uIk("aria-label",se.ariaLabel||null)("aria-labelledby",se.ariaLabelledby)("aria-describedby",se.ariaDescribedby)("name",se.name)("value",se.value),t.xp6(7),t.Q6J("matRippleTrigger",ce)("matRippleDisabled",se.disableRipple||se.disabled)("matRippleCentered",!0),t.xp6(1),t.Q6J("for",se.inputId)}},dependencies:[_.wG],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size, 48px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);width:var(--mdc-checkbox-state-layer-size, 48px);height:var(--mdc-checkbox-state-layer-size, 48px)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, rgba(0, 0, 0, 0.38));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color, rgba(0, 0, 0, 0.38))}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px)}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:not([disabled])~.mdc-checkbox__ripple{opacity:.04;transform:scale(1);transition:opacity 80ms 0 cubic-bezier(0, 0, 0.2, 1),transform 80ms 0 cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:not([disabled]):focus~.mdc-checkbox__ripple{opacity:.16}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__native-control:focus:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, black)}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),me})(),J=(()=>{class me{}return me.\u0275fac=function(ie){return new(ie||me)},me.\u0275mod=t.oAB({type:me}),me.\u0275inj=t.cJS({}),me})(),ee=(()=>{class me{}return me.\u0275fac=function(ie){return new(ie||me)},me.\u0275mod=t.oAB({type:me}),me.\u0275inj=t.cJS({imports:[_.BQ,_.si,J,_.BQ,J]}),me})()},7331:(We,q,m)=>{"use strict";m.d(q,{HS:()=>fe,Hi:()=>yt});var t=m(1281),e=m(4650),_=m(6895),T=m(3238),s=m(4761),y=m(7579),h=m(6451),P=m(5698),L=(m(2722),m(8675),m(3900),m(9521));function Y(be,qe){1&be&&(e.TgZ(0,"span",8),e.Hsn(1,1),e.qZA())}function j(be,qe){1&be&&(e.TgZ(0,"span",9),e.Hsn(1,2),e.qZA())}m(445),m(4006),m(9549);const Q=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],J=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],k=new e.OlP("mat-chips-default-options"),x=new e.OlP("MatChipAvatar"),n=new e.OlP("MatChipTrailingIcon"),g=new e.OlP("MatChipRemove"),W=new e.OlP("MatChip");class O{}const U=(0,T.sb)(O,-1);let ge=(()=>{class be extends U{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(Ie){this._disabled=(0,t.Ig)(Ie)}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(Ie,X){super(),this._elementRef=Ie,this._parentChip=X,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this._allowFocusWhenDisabled=!1,"BUTTON"===Ie.nativeElement.nodeName&&Ie.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(Ie){!this.disabled&&this.isInteractive&&this._isPrimary&&(Ie.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(Ie){(Ie.keyCode===L.K5||Ie.keyCode===L.L_)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(Ie.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}}return be.\u0275fac=function(Ie){return new(Ie||be)(e.Y36(e.SBq),e.Y36(W))},be.\u0275dir=e.lG2({type:be,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(Ie,X){1&Ie&&e.NdJ("click",function(Tt){return X._handleClick(Tt)})("keydown",function(Tt){return X._handleKeydown(Tt)}),2&Ie&&(e.uIk("tabindex",X._getTabindex())("disabled",X._getDisabledAttribute())("aria-disabled",X.disabled),e.ekj("mdc-evolution-chip__action--primary",X._isPrimary)("mdc-evolution-chip__action--presentational",!X.isInteractive)("mdc-evolution-chip__action--trailing",!X._isPrimary))},inputs:{disabled:"disabled",tabIndex:"tabIndex",isInteractive:"isInteractive",_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[e.qOj]}),be})(),ye=0;const xe=(0,T.sb)((0,T.pj)((0,T.Kr)((0,T.Id)(class{constructor(be){this._elementRef=be}})),"primary"),-1);let fe=(()=>{class be extends xe{_hasFocus(){return this._hasFocusInternal}get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(Ie){this._value=Ie}get removable(){return this._removable}set removable(Ie){this._removable=(0,t.Ig)(Ie)}get highlighted(){return this._highlighted}set highlighted(Ie){this._highlighted=(0,t.Ig)(Ie)}constructor(Ie,X,mt,Tt,it,je,zt,xt){super(X),this._changeDetectorRef=Ie,this._ngZone=mt,this._focusMonitor=Tt,this._globalRippleOptions=zt,this._isRippleCentered=!1,this._onFocus=new y.x,this._onBlur=new y.x,this.role=null,this._hasFocusInternal=!1,this.id="mat-mdc-chip-"+ye++,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this._removable=!0,this._highlighted=!1,this.removed=new e.vpe,this.destroyed=new e.vpe,this.basicChipAttrName="mat-basic-chip",this._document=it,this._animationsDisabled="NoopAnimations"===je,null!=xt&&(this.tabIndex=parseInt(xt)??this.defaultTabIndex),this._monitorFocus()}ngOnInit(){const Ie=this._elementRef.nativeElement;this._isBasicChip=Ie.hasAttribute(this.basicChipAttrName)||Ie.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=(0,h.T)(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(Ie){(Ie.keyCode===L.ZH||Ie.keyCode===L.yY)&&(Ie.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(Ie){return this._getActions().find(X=>{const mt=X._elementRef.nativeElement;return mt===Ie||mt.contains(Ie)})}_getActions(){const Ie=[];return this.primaryAction&&Ie.push(this.primaryAction),this.removeIcon&&Ie.push(this.removeIcon),this.trailingIcon&&Ie.push(this.trailingIcon),Ie}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(Ie=>{const X=null!==Ie;X!==this._hasFocusInternal&&(this._hasFocusInternal=X,X?this._onFocus.next({chip:this}):this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(()=>this._ngZone.run(()=>this._onBlur.next({chip:this}))))})}}return be.\u0275fac=function(Ie){return new(Ie||be)(e.Y36(e.sBO),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(s.tE),e.Y36(_.K0),e.Y36(e.QbO,8),e.Y36(T.Y2,8),e.$8M("tabindex"))},be.\u0275cmp=e.Xpm({type:be,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(Ie,X,mt){if(1&Ie&&(e.Suo(mt,x,5),e.Suo(mt,n,5),e.Suo(mt,g,5),e.Suo(mt,x,5),e.Suo(mt,n,5),e.Suo(mt,g,5)),2&Ie){let Tt;e.iGM(Tt=e.CRH())&&(X.leadingIcon=Tt.first),e.iGM(Tt=e.CRH())&&(X.trailingIcon=Tt.first),e.iGM(Tt=e.CRH())&&(X.removeIcon=Tt.first),e.iGM(Tt=e.CRH())&&(X._allLeadingIcons=Tt),e.iGM(Tt=e.CRH())&&(X._allTrailingIcons=Tt),e.iGM(Tt=e.CRH())&&(X._allRemoveIcons=Tt)}},viewQuery:function(Ie,X){if(1&Ie&&(e.Gf(T.wG,5),e.Gf(ge,5)),2&Ie){let mt;e.iGM(mt=e.CRH())&&(X.ripple=mt.first),e.iGM(mt=e.CRH())&&(X.primaryAction=mt.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:30,hostBindings:function(Ie,X){1&Ie&&e.NdJ("keydown",function(Tt){return X._handleKeydown(Tt)}),2&Ie&&(e.Ikx("id",X.id),e.uIk("role",X.role)("tabindex",X.role?X.tabIndex:null)("aria-label",X.ariaLabel),e.ekj("mdc-evolution-chip",!X._isBasicChip)("mdc-evolution-chip--disabled",X.disabled)("mdc-evolution-chip--with-trailing-action",X._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",X.leadingIcon)("mdc-evolution-chip--with-primary-icon",X.leadingIcon)("mdc-evolution-chip--with-avatar",X.leadingIcon)("mat-mdc-chip-with-avatar",X.leadingIcon)("mat-mdc-chip-highlighted",X.highlighted)("mat-mdc-chip-disabled",X.disabled)("mat-mdc-basic-chip",X._isBasicChip)("mat-mdc-standard-chip",!X._isBasicChip)("mat-mdc-chip-with-trailing-icon",X._hasTrailingIcon())("_mat-animation-noopable",X._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",id:"id",ariaLabel:["aria-label","ariaLabel"],ariaDescription:["aria-description","ariaDescription"],value:"value",removable:"removable",highlighted:"highlighted"},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[e._Bn([{provide:W,useExisting:be}]),e.qOj],ngContentSelectors:J,decls:9,vars:6,consts:[["matRipple","",1,"mat-mdc-chip-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing",4,"ngIf"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(Ie,X){1&Ie&&(e.F$t(Q),e._UZ(0,"span",0)(1,"span",1),e.TgZ(2,"span",2)(3,"span",3),e.YNc(4,Y,2,0,"span",4),e.TgZ(5,"span",5),e.Hsn(6),e._UZ(7,"span",6),e.qZA()()(),e.YNc(8,j,2,0,"span",7)),2&Ie&&(e.Q6J("matRippleDisabled",X._isRippleDisabled())("matRippleCentered",X._isRippleCentered)("matRippleTrigger",X._elementRef.nativeElement),e.xp6(3),e.Q6J("isInteractive",!1),e.xp6(1),e.Q6J("ngIf",X.leadingIcon),e.xp6(4),e.Q6J("ngIf",X._hasTrailingIcon()))},dependencies:[_.O5,T.wG,ge],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__graphic{height:24px;width:24px;font-size:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__icon--primary{height:24px;width:24px;font-size:24px}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px);height:var(--mdc-chip-container-height, 32px)}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius, 14px 14px 14px 14px)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size, 28px);width:var(--mdc-chip-with-avatar-avatar-size, 28px);font-size:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-outline-width, 1px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-outline-width, 1px)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--selected) .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-unselected-outline-width, 1px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color, transparent)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size, 18px);width:var(--mdc-chip-with-icon-icon-size, 18px);font-size:var(--mdc-chip-with-icon-icon-size, 18px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, currentColor)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{width:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),be})(),yt=(()=>{class be{}return be.\u0275fac=function(Ie){return new(Ie||be)},be.\u0275mod=e.oAB({type:be}),be.\u0275inj=e.cJS({providers:[T.rD,{provide:k,useValue:{separatorKeyCodes:[L.K5]}}],imports:[T.BQ,_.ez,T.si,T.BQ]}),be})()},3238:(We,q,m)=>{"use strict";m.d(q,{yN:()=>ee,mZ:()=>me,_A:()=>n,rD:()=>ye,sG:()=>g,Ad:()=>k,K7:()=>X,HF:()=>yt,Y2:()=>Ke,BQ:()=>se,uc:()=>oe,XK:()=>Ue,ey:()=>zt,Ng:()=>Gt,rN:()=>it,us:()=>Ge,wG:()=>lt,si:()=>Ut,LF:()=>U,IR:()=>de,CB:()=>xt,jH:()=>Nt,pj:()=>a,Kr:()=>f,Id:()=>i,FD:()=>v,dB:()=>I,sb:()=>l});var t=m(4650),e=m(4761),_=m(445),s=m(6895),y=m(3353),h=m(1281),P=m(9751),d=m(7579),w=m(9521);const D=["text"];function z(ke,$){if(1&ke&&t._UZ(0,"mat-pseudo-checkbox",6),2&ke){const ue=t.oxw();t.Q6J("state",ue.selected?"checked":"unchecked")("disabled",ue.disabled)}}function V(ke,$){if(1&ke&&t._UZ(0,"mat-pseudo-checkbox",7),2&ke){const ue=t.oxw();t.Q6J("disabled",ue.disabled)}}function Y(ke,$){if(1&ke&&(t.TgZ(0,"span",8),t._uU(1),t.qZA()),2&ke){const ue=t.oxw();t.xp6(1),t.hij("(",ue.group.label,")")}}const j=[[["mat-icon"]],"*"],Q=["mat-icon","*"];let ee=(()=>{class ke{}return ke.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",ke.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",ke.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",ke.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",ke})(),me=(()=>{class ke{}return ke.COMPLEX="375ms",ke.ENTERING="225ms",ke.EXITING="195ms",ke})();const ie=new t.OlP("mat-sanity-checks",{providedIn:"root",factory:function re(){return!0}});let se=(()=>{class ke{constructor(ue,Ae,Je){this._sanityChecks=Ae,this._document=Je,this._hasDoneGlobalChecks=!1,ue._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(ue){return!(0,y.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[ue])}}return ke.\u0275fac=function(ue){return new(ue||ke)(t.LFG(e.qm),t.LFG(ie,8),t.LFG(s.K0))},ke.\u0275mod=t.oAB({type:ke}),ke.\u0275inj=t.cJS({imports:[_.vT,_.vT]}),ke})();function i(ke){return class extends ke{get disabled(){return this._disabled}set disabled($){this._disabled=(0,h.Ig)($)}constructor(...$){super(...$),this._disabled=!1}}}function a(ke,$){return class extends ke{get color(){return this._color}set color(ue){const Ae=ue||this.defaultColor;Ae!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),Ae&&this._elementRef.nativeElement.classList.add(`mat-${Ae}`),this._color=Ae)}constructor(...ue){super(...ue),this.defaultColor=$,this.color=$}}}function f(ke){return class extends ke{get disableRipple(){return this._disableRipple}set disableRipple($){this._disableRipple=(0,h.Ig)($)}constructor(...$){super(...$),this._disableRipple=!1}}}function l(ke,$=0){return class extends ke{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(ue){this._tabIndex=null!=ue?(0,h.su)(ue):this.defaultTabIndex}constructor(...ue){super(...ue),this._tabIndex=$,this.defaultTabIndex=$}}}function v(ke){return class extends ke{updateErrorState(){const $=this.errorState,$t=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);$t!==$&&(this.errorState=$t,this.stateChanges.next())}constructor(...$){super(...$),this.errorState=!1}}}function I(ke){return class extends ke{constructor(...$){super(...$),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new P.y(ue=>{this._isInitialized?this._notifySubscriber(ue):this._pendingSubscribers.push(ue)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber($){$.next(),$.complete()}}}const k=new t.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function x(){return(0,t.f3M)(t.soG)}});class n{constructor(){this._localeChanges=new d.x,this.localeChanges=this._localeChanges}getValidDateOrNull($){return this.isDateInstance($)&&this.isValid($)?$:null}deserialize($){return null==$||this.isDateInstance($)&&this.isValid($)?$:this.invalid()}setLocale($){this.locale=$,this._localeChanges.next()}compareDate($,ue){return this.getYear($)-this.getYear(ue)||this.getMonth($)-this.getMonth(ue)||this.getDate($)-this.getDate(ue)}sameDate($,ue){if($&&ue){let Ae=this.isValid($),Je=this.isValid(ue);return Ae&&Je?!this.compareDate($,ue):Ae==Je}return $==ue}clampDate($,ue,Ae){return ue&&this.compareDate($,ue)<0?ue:Ae&&this.compareDate($,Ae)>0?Ae:$}}const g=new t.OlP("mat-date-formats"),W=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function O(ke,$){const ue=Array(ke);for(let Ae=0;Ae{class ke extends n{constructor(ue,Ae){super(),this.useUtcForDisplay=!1,super.setLocale(ue)}getYear(ue){return ue.getFullYear()}getMonth(ue){return ue.getMonth()}getDate(ue){return ue.getDate()}getDayOfWeek(ue){return ue.getDay()}getMonthNames(ue){const Ae=new Intl.DateTimeFormat(this.locale,{month:ue,timeZone:"utc"});return O(12,Je=>this._format(Ae,new Date(2017,Je,1)))}getDateNames(){const ue=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return O(31,Ae=>this._format(ue,new Date(2017,0,Ae+1)))}getDayOfWeekNames(ue){const Ae=new Intl.DateTimeFormat(this.locale,{weekday:ue,timeZone:"utc"});return O(7,Je=>this._format(Ae,new Date(2017,0,Je+1)))}getYearName(ue){const Ae=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(Ae,ue)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(ue){return this.getDate(this._createDateWithOverflow(this.getYear(ue),this.getMonth(ue)+1,0))}clone(ue){return new Date(ue.getTime())}createDate(ue,Ae,Je){let $t=this._createDateWithOverflow(ue,Ae,Je);return $t.getMonth(),$t}today(){return new Date}parse(ue,Ae){return"number"==typeof ue?new Date(ue):ue?new Date(Date.parse(ue)):null}format(ue,Ae){if(!this.isValid(ue))throw Error("NativeDateAdapter: Cannot format invalid date.");const Je=new Intl.DateTimeFormat(this.locale,{...Ae,timeZone:"utc"});return this._format(Je,ue)}addCalendarYears(ue,Ae){return this.addCalendarMonths(ue,12*Ae)}addCalendarMonths(ue,Ae){let Je=this._createDateWithOverflow(this.getYear(ue),this.getMonth(ue)+Ae,this.getDate(ue));return this.getMonth(Je)!=((this.getMonth(ue)+Ae)%12+12)%12&&(Je=this._createDateWithOverflow(this.getYear(Je),this.getMonth(Je),0)),Je}addCalendarDays(ue,Ae){return this._createDateWithOverflow(this.getYear(ue),this.getMonth(ue),this.getDate(ue)+Ae)}toIso8601(ue){return[ue.getUTCFullYear(),this._2digit(ue.getUTCMonth()+1),this._2digit(ue.getUTCDate())].join("-")}deserialize(ue){if("string"==typeof ue){if(!ue)return null;if(W.test(ue)){let Ae=new Date(ue);if(this.isValid(Ae))return Ae}}return super.deserialize(ue)}isDateInstance(ue){return ue instanceof Date}isValid(ue){return!isNaN(ue.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(ue,Ae,Je){const $t=new Date;return $t.setFullYear(ue,Ae,Je),$t.setHours(0,0,0,0),$t}_2digit(ue){return("00"+ue).slice(-2)}_format(ue,Ae){const Je=new Date;return Je.setUTCFullYear(Ae.getFullYear(),Ae.getMonth(),Ae.getDate()),Je.setUTCHours(Ae.getHours(),Ae.getMinutes(),Ae.getSeconds(),Ae.getMilliseconds()),ue.format(Je)}}return ke.\u0275fac=function(ue){return new(ue||ke)(t.LFG(k,8),t.LFG(y.t4))},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac}),ke})();const ge={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 nt=(()=>{class ke{}return ke.\u0275fac=function(ue){return new(ue||ke)},ke.\u0275mod=t.oAB({type:ke}),ke.\u0275inj=t.cJS({providers:[{provide:n,useClass:U}]}),ke})(),Ue=(()=>{class ke{}return ke.\u0275fac=function(ue){return new(ue||ke)},ke.\u0275mod=t.oAB({type:ke}),ke.\u0275inj=t.cJS({providers:[{provide:g,useValue:ge}],imports:[nt]}),ke})(),ye=(()=>{class ke{isErrorState(ue,Ae){return!!(ue&&ue.invalid&&(ue.touched||Ae&&Ae.submitted))}}return ke.\u0275fac=function(ue){return new(ue||ke)},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),oe=(()=>{class ke{}return ke.\u0275fac=function(ue){return new(ue||ke)},ke.\u0275mod=t.oAB({type:ke}),ke.\u0275inj=t.cJS({imports:[se,se]}),ke})();class Fe{constructor($,ue,Ae,Je=!1){this._renderer=$,this.element=ue,this.config=Ae,this._animationForciblyDisabledThroughCss=Je,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const De=(0,y.i$)({passive:!0,capture:!0});class he{constructor(){this._events=new Map,this._delegateEventHandler=$=>{const ue=(0,y.sA)($);ue&&this._events.get($.type)?.forEach((Ae,Je)=>{(Je===ue||Je.contains(ue))&&Ae.forEach($t=>$t.handleEvent($))})}}addHandler($,ue,Ae,Je){const $t=this._events.get(ue);if($t){const Vt=$t.get(Ae);Vt?Vt.add(Je):$t.set(Ae,new Set([Je]))}else this._events.set(ue,new Map([[Ae,new Set([Je])]])),$.runOutsideAngular(()=>{document.addEventListener(ue,this._delegateEventHandler,De)})}removeHandler($,ue,Ae){const Je=this._events.get($);if(!Je)return;const $t=Je.get(ue);$t&&($t.delete(Ae),0===$t.size&&Je.delete(ue),0===Je.size&&(this._events.delete($),document.removeEventListener($,this._delegateEventHandler,De)))}}const Me={enterDuration:225,exitDuration:150},Ve=(0,y.i$)({passive:!0,capture:!0}),Qe=["mousedown","touchstart"],Pe=["mouseup","mouseleave","touchend","touchcancel"];class de{constructor($,ue,Ae,Je){this._target=$,this._ngZone=ue,this._platform=Je,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,Je.isBrowser&&(this._containerElement=(0,h.fI)(Ae))}fadeInRipple($,ue,Ae={}){const Je=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),$t={...Me,...Ae.animation};Ae.centered&&($=Je.left+Je.width/2,ue=Je.top+Je.height/2);const Vt=Ae.radius||function rt(ke,$,ue){const Ae=Math.max(Math.abs(ke-ue.left),Math.abs(ke-ue.right)),Je=Math.max(Math.abs($-ue.top),Math.abs($-ue.bottom));return Math.sqrt(Ae*Ae+Je*Je)}($,ue,Je),ii=$-Je.left,pt=ue-Je.top,ot=$t.enterDuration,ft=document.createElement("div");ft.classList.add("mat-ripple-element"),ft.style.left=ii-Vt+"px",ft.style.top=pt-Vt+"px",ft.style.height=2*Vt+"px",ft.style.width=2*Vt+"px",null!=Ae.color&&(ft.style.backgroundColor=Ae.color),ft.style.transitionDuration=`${ot}ms`,this._containerElement.appendChild(ft);const St=window.getComputedStyle(ft),$e=St.transitionDuration,_t="none"===St.transitionProperty||"0s"===$e||"0s, 0s"===$e||0===Je.width&&0===Je.height,vt=new Fe(this,ft,Ae,_t);ft.style.transform="scale3d(1, 1, 1)",vt.state=0,Ae.persistent||(this._mostRecentTransientRipple=vt);let He=null;return!_t&&(ot||$t.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Et=()=>this._finishRippleTransition(vt),At=()=>this._destroyRipple(vt);ft.addEventListener("transitionend",Et),ft.addEventListener("transitioncancel",At),He={onTransitionEnd:Et,onTransitionCancel:At}}),this._activeRipples.set(vt,He),(_t||!ot)&&this._finishRippleTransition(vt),vt}fadeOutRipple($){if(2===$.state||3===$.state)return;const ue=$.element,Ae={...Me,...$.config.animation};ue.style.transitionDuration=`${Ae.exitDuration}ms`,ue.style.opacity="0",$.state=2,($._animationForciblyDisabledThroughCss||!Ae.exitDuration)&&this._finishRippleTransition($)}fadeOutAll(){this._getActiveRipples().forEach($=>$.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach($=>{$.config.persistent||$.fadeOut()})}setupTriggerEvents($){const ue=(0,h.fI)($);!this._platform.isBrowser||!ue||ue===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=ue,Qe.forEach(Ae=>{de._eventManager.addHandler(this._ngZone,Ae,ue,this)}))}handleEvent($){"mousedown"===$.type?this._onMousedown($):"touchstart"===$.type?this._onTouchStart($):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Pe.forEach(ue=>{this._triggerElement.addEventListener(ue,this,Ve)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition($){0===$.state?this._startFadeOutTransition($):2===$.state&&this._destroyRipple($)}_startFadeOutTransition($){const ue=$===this._mostRecentTransientRipple,{persistent:Ae}=$.config;$.state=1,!Ae&&(!ue||!this._isPointerDown)&&$.fadeOut()}_destroyRipple($){const ue=this._activeRipples.get($)??null;this._activeRipples.delete($),this._activeRipples.size||(this._containerRect=null),$===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),$.state=3,null!==ue&&($.element.removeEventListener("transitionend",ue.onTransitionEnd),$.element.removeEventListener("transitioncancel",ue.onTransitionCancel)),$.element.remove()}_onMousedown($){const ue=(0,e.X6)($),Ae=this._lastTouchStartEvent&&Date.now(){!$.config.persistent&&(1===$.state||$.config.terminateOnPointerUp&&0===$.state)&&$.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const $=this._triggerElement;$&&(Qe.forEach(ue=>de._eventManager.removeHandler(ue,$,this)),this._pointerUpEventsRegistered&&Pe.forEach(ue=>$.removeEventListener(ue,this,Ve)))}}de._eventManager=new he;const Ke=new t.OlP("mat-ripple-global-options");let lt=(()=>{class ke{get disabled(){return this._disabled}set disabled(ue){ue&&this.fadeOutAllNonPersistent(),this._disabled=ue,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(ue){this._trigger=ue,this._setupTriggerEventsIfEnabled()}constructor(ue,Ae,Je,$t,Vt){this._elementRef=ue,this._animationMode=Vt,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=$t||{},this._rippleRenderer=new de(this,Ae,ue,Je)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."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(ue,Ae=0,Je){return"number"==typeof ue?this._rippleRenderer.fadeInRipple(ue,Ae,{...this.rippleConfig,...Je}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...ue})}}return ke.\u0275fac=function(ue){return new(ue||ke)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(y.t4),t.Y36(Ke,8),t.Y36(t.QbO,8))},ke.\u0275dir=t.lG2({type:ke,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(ue,Ae){2&ue&&t.ekj("mat-ripple-unbounded",Ae.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"]}),ke})(),Ut=(()=>{class ke{}return ke.\u0275fac=function(ue){return new(ue||ke)},ke.\u0275mod=t.oAB({type:ke}),ke.\u0275inj=t.cJS({imports:[se,se]}),ke})(),ht=(()=>{class ke{constructor(ue){this._animationMode=ue,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return ke.\u0275fac=function(ue){return new(ue||ke)(t.Y36(t.QbO,8))},ke.\u0275cmp=t.Xpm({type:ke,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(ue,Ae){2&ue&&t.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Ae.state)("mat-pseudo-checkbox-checked","checked"===Ae.state)("mat-pseudo-checkbox-disabled",Ae.disabled)("mat-pseudo-checkbox-minimal","minimal"===Ae.appearance)("mat-pseudo-checkbox-full","full"===Ae.appearance)("_mat-animation-noopable","NoopAnimations"===Ae._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(ue,Ae){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0}),ke})(),Ge=(()=>{class ke{}return ke.\u0275fac=function(ue){return new(ue||ke)},ke.\u0275mod=t.oAB({type:ke}),ke.\u0275inj=t.cJS({imports:[se]}),ke})();const yt=new t.OlP("MAT_OPTION_PARENT_COMPONENT"),X=new t.OlP("MatOptgroup");let Tt=0;class it{constructor($,ue=!1){this.source=$,this.isUserInput=ue}}let je=(()=>{class ke{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(ue){this._disabled=(0,h.Ig)(ue)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(ue,Ae,Je,$t){this._element=ue,this._changeDetectorRef=Ae,this._parent=Je,this.group=$t,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Tt++,this.onSelectionChange=new t.vpe,this._stateChanges=new d.x}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.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(ue,Ae){const Je=this._getHostElement();"function"==typeof Je.focus&&Je.focus(Ae)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(ue){(ue.keyCode===w.K5||ue.keyCode===w.L_)&&!(0,w.Vb)(ue)&&(this._selectViaInteraction(),ue.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const ue=this.viewValue;ue!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=ue)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(ue=!1){this.onSelectionChange.emit(new it(this,ue))}}return ke.\u0275fac=function(ue){t.$Z()},ke.\u0275dir=t.lG2({type:ke,viewQuery:function(ue,Ae){if(1&ue&&t.Gf(D,7),2&ue){let Je;t.iGM(Je=t.CRH())&&(Ae._text=Je.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),ke})(),zt=(()=>{class ke extends je{constructor(ue,Ae,Je,$t){super(ue,Ae,Je,$t)}}return ke.\u0275fac=function(ue){return new(ue||ke)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(yt,8),t.Y36(X,8))},ke.\u0275cmp=t.Xpm({type:ke,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(ue,Ae){1&ue&&t.NdJ("click",function(){return Ae._selectViaInteraction()})("keydown",function($t){return Ae._handleKeydown($t)}),2&ue&&(t.Ikx("id",Ae.id),t.uIk("aria-selected",Ae.selected)("aria-disabled",Ae.disabled.toString()),t.ekj("mdc-list-item--selected",Ae.selected)("mat-mdc-option-multiple",Ae.multiple)("mat-mdc-option-active",Ae.active)("mdc-list-item--disabled",Ae.disabled))},exportAs:["matOption"],features:[t.qOj],ngContentSelectors:Q,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-mdc-option-pseudo-checkbox",3,"state","disabled"],["state","checked","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(ue,Ae){1&ue&&(t.F$t(j),t.YNc(0,z,1,2,"mat-pseudo-checkbox",0),t.Hsn(1),t.TgZ(2,"span",1,2),t.Hsn(4,1),t.qZA(),t.YNc(5,V,1,1,"mat-pseudo-checkbox",3),t.YNc(6,Y,2,1,"span",4),t._UZ(7,"div",5)),2&ue&&(t.Q6J("ngIf",Ae.multiple),t.xp6(5),t.Q6J("ngIf",!Ae.multiple&&Ae.selected&&!Ae.hideSingleSelectionIndicator),t.xp6(1),t.Q6J("ngIf",Ae.group&&Ae.group._inert),t.xp6(1),t.Q6J("matRippleTrigger",Ae._getHostElement())("matRippleDisabled",Ae.disabled||Ae.disableRipple))},dependencies:[lt,s.O5,ht],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{opacity:.38;cursor:default}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),ke})();function xt(ke,$,ue){if(ue.length){let Ae=$.toArray(),Je=ue.toArray(),$t=0;for(let Vt=0;Vtue+Ae?Math.max(0,ke-Ae+$):ue}let Gt=(()=>{class ke{}return ke.\u0275fac=function(ue){return new(ue||ke)},ke.\u0275mod=t.oAB({type:ke}),ke.\u0275inj=t.cJS({imports:[Ut,s.ez,se,Ge]}),ke})()},9602:(We,q,m)=>{"use strict";m.d(q,{FA:()=>Yi,Mq:()=>ot,hl:()=>vt,nW:()=>Et});var t=m(4761),e=m(8184),_=m(4080),T=m(6895),s=m(4650),y=m(4859),h=m(531),P=m(3238),d=m(7579),w=m(727),C=m(6451),L=m(9646),D=m(9521),z=m(445),V=m(3353),Y=m(5698),j=m(8675),Q=m(9300),J=m(1281),ee=m(7340),me=m(4006),re=m(9549),ie=m(4144);const se=["mat-calendar-body",""];function ce(Yt,qt){if(1&Yt&&(s.TgZ(0,"tr",3)(1,"td",4),s._uU(2),s.qZA()()),2&Yt){const _e=s.oxw();s.xp6(1),s.Udp("padding-top",_e._cellPadding)("padding-bottom",_e._cellPadding),s.uIk("colspan",_e.numCols),s.xp6(1),s.hij(" ",_e.label," ")}}function Ce(Yt,qt){if(1&Yt&&(s.TgZ(0,"td",4),s._uU(1),s.qZA()),2&Yt){const _e=s.oxw(2);s.Udp("padding-top",_e._cellPadding)("padding-bottom",_e._cellPadding),s.uIk("colspan",_e._firstRowOffset),s.xp6(1),s.hij(" ",_e._firstRowOffset>=_e.labelMinRequiredCells?_e.label:""," ")}}function M(Yt,qt){if(1&Yt){const _e=s.EpF();s.TgZ(0,"td",8)(1,"button",9),s.NdJ("click",function(Dt){const Ot=s.CHM(_e).$implicit,vi=s.oxw(2);return s.KtG(vi._cellClicked(Ot,Dt))})("focus",function(Dt){const Ot=s.CHM(_e).$implicit,vi=s.oxw(2);return s.KtG(vi._emitActiveDateChange(Ot,Dt))}),s.TgZ(2,"span",10),s._uU(3),s.qZA(),s._UZ(4,"span",11),s.qZA()()}if(2&Yt){const _e=qt.$implicit,dt=qt.index,Dt=s.oxw().index,Bt=s.oxw();s.Udp("width",Bt._cellWidth)("padding-top",Bt._cellPadding)("padding-bottom",Bt._cellPadding),s.uIk("data-mat-row",Dt)("data-mat-col",dt),s.xp6(1),s.ekj("mat-calendar-body-disabled",!_e.enabled)("mat-calendar-body-active",Bt._isActiveCell(Dt,dt))("mat-calendar-body-range-start",Bt._isRangeStart(_e.compareValue))("mat-calendar-body-range-end",Bt._isRangeEnd(_e.compareValue))("mat-calendar-body-in-range",Bt._isInRange(_e.compareValue))("mat-calendar-body-comparison-bridge-start",Bt._isComparisonBridgeStart(_e.compareValue,Dt,dt))("mat-calendar-body-comparison-bridge-end",Bt._isComparisonBridgeEnd(_e.compareValue,Dt,dt))("mat-calendar-body-comparison-start",Bt._isComparisonStart(_e.compareValue))("mat-calendar-body-comparison-end",Bt._isComparisonEnd(_e.compareValue))("mat-calendar-body-in-comparison-range",Bt._isInComparisonRange(_e.compareValue))("mat-calendar-body-preview-start",Bt._isPreviewStart(_e.compareValue))("mat-calendar-body-preview-end",Bt._isPreviewEnd(_e.compareValue))("mat-calendar-body-in-preview",Bt._isInPreview(_e.compareValue)),s.Q6J("ngClass",_e.cssClasses)("tabindex",Bt._isActiveCell(Dt,dt)?0:-1),s.uIk("aria-label",_e.ariaLabel)("aria-disabled",!_e.enabled||null)("aria-pressed",Bt._isSelected(_e.compareValue))("aria-current",Bt.todayValue===_e.compareValue?"date":null)("aria-describedby",Bt._getDescribedby(_e.compareValue)),s.xp6(1),s.ekj("mat-calendar-body-selected",Bt._isSelected(_e.compareValue))("mat-calendar-body-comparison-identical",Bt._isComparisonIdentical(_e.compareValue))("mat-calendar-body-today",Bt.todayValue===_e.compareValue),s.xp6(1),s.hij(" ",_e.displayValue," ")}}function i(Yt,qt){if(1&Yt&&(s.TgZ(0,"tr",5),s.YNc(1,Ce,2,6,"td",6),s.YNc(2,M,5,48,"td",7),s.qZA()),2&Yt){const _e=qt.$implicit,dt=qt.index,Dt=s.oxw();s.xp6(1),s.Q6J("ngIf",0===dt&&Dt._firstRowOffset),s.xp6(1),s.Q6J("ngForOf",_e)}}function a(Yt,qt){if(1&Yt&&(s.TgZ(0,"th",5)(1,"span",6),s._uU(2),s.qZA(),s.TgZ(3,"span",7),s._uU(4),s.qZA()()),2&Yt){const _e=qt.$implicit;s.xp6(2),s.Oqu(_e.long),s.xp6(2),s.Oqu(_e.narrow)}}const f=["*"];function l(Yt,qt){}function v(Yt,qt){if(1&Yt){const _e=s.EpF();s.TgZ(0,"mat-month-view",5),s.NdJ("activeDateChange",function(Dt){s.CHM(_e);const Bt=s.oxw();return s.KtG(Bt.activeDate=Dt)})("_userSelection",function(Dt){s.CHM(_e);const Bt=s.oxw();return s.KtG(Bt._dateSelected(Dt))})("dragStarted",function(Dt){s.CHM(_e);const Bt=s.oxw();return s.KtG(Bt._dragStarted(Dt))})("dragEnded",function(Dt){s.CHM(_e);const Bt=s.oxw();return s.KtG(Bt._dragEnded(Dt))}),s.qZA()}if(2&Yt){const _e=s.oxw();s.Q6J("activeDate",_e.activeDate)("selected",_e.selected)("dateFilter",_e.dateFilter)("maxDate",_e.maxDate)("minDate",_e.minDate)("dateClass",_e.dateClass)("comparisonStart",_e.comparisonStart)("comparisonEnd",_e.comparisonEnd)("startDateAccessibleName",_e.startDateAccessibleName)("endDateAccessibleName",_e.endDateAccessibleName)("activeDrag",_e._activeDrag)}}function I(Yt,qt){if(1&Yt){const _e=s.EpF();s.TgZ(0,"mat-year-view",6),s.NdJ("activeDateChange",function(Dt){s.CHM(_e);const Bt=s.oxw();return s.KtG(Bt.activeDate=Dt)})("monthSelected",function(Dt){s.CHM(_e);const Bt=s.oxw();return s.KtG(Bt._monthSelectedInYearView(Dt))})("selectedChange",function(Dt){s.CHM(_e);const Bt=s.oxw();return s.KtG(Bt._goToDateInView(Dt,"month"))}),s.qZA()}if(2&Yt){const _e=s.oxw();s.Q6J("activeDate",_e.activeDate)("selected",_e.selected)("dateFilter",_e.dateFilter)("maxDate",_e.maxDate)("minDate",_e.minDate)("dateClass",_e.dateClass)}}function k(Yt,qt){if(1&Yt){const _e=s.EpF();s.TgZ(0,"mat-multi-year-view",7),s.NdJ("activeDateChange",function(Dt){s.CHM(_e);const Bt=s.oxw();return s.KtG(Bt.activeDate=Dt)})("yearSelected",function(Dt){s.CHM(_e);const Bt=s.oxw();return s.KtG(Bt._yearSelectedInMultiYearView(Dt))})("selectedChange",function(Dt){s.CHM(_e);const Bt=s.oxw();return s.KtG(Bt._goToDateInView(Dt,"year"))}),s.qZA()}if(2&Yt){const _e=s.oxw();s.Q6J("activeDate",_e.activeDate)("selected",_e.selected)("dateFilter",_e.dateFilter)("maxDate",_e.maxDate)("minDate",_e.minDate)("dateClass",_e.dateClass)}}function x(Yt,qt){}const n=["button"];function g(Yt,qt){1&Yt&&(s.O4$(),s.TgZ(0,"svg",3),s._UZ(1,"path",4),s.qZA())}const W=[[["","matDatepickerToggleIcon",""]]],O=["[matDatepickerToggleIcon]"];let at=(()=>{class Yt{constructor(){this.changes=new d.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",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(_e,dt){return`${_e} \u2013 ${dt}`}formatYearRangeLabel(_e,dt){return`${_e} to ${dt}`}}return Yt.\u0275fac=function(_e){return new(_e||Yt)},Yt.\u0275prov=s.Yz7({token:Yt,factory:Yt.\u0275fac,providedIn:"root"}),Yt})();class ye{constructor(qt,_e,dt,Dt,Bt={},Ot=qt,vi){this.value=qt,this.displayValue=_e,this.ariaLabel=dt,this.enabled=Dt,this.cssClasses=Bt,this.compareValue=Ot,this.rawValue=vi}}let xe=1,fe=(()=>{class Yt{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(_e,dt){this._elementRef=_e,this._ngZone=dt,this._platform=(0,s.f3M)(V.t4),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new s.vpe,this.previewChange=new s.vpe,this.activeDateChange=new s.vpe,this.dragStarted=new s.vpe,this.dragEnded=new s.vpe,this._didDragSinceMouseDown=!1,this._enterHandler=Dt=>{if(this._skipNextFocus&&"focus"===Dt.type)this._skipNextFocus=!1;else if(Dt.target&&this.isRange){const Bt=this._getCellFromElement(Dt.target);Bt&&this._ngZone.run(()=>this.previewChange.emit({value:Bt.enabled?Bt:null,event:Dt}))}},this._touchmoveHandler=Dt=>{if(!this.isRange)return;const Bt=Me(Dt),Ot=Bt?this._getCellFromElement(Bt):null;Bt!==Dt.target&&(this._didDragSinceMouseDown=!0),oe(Dt.target)&&Dt.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:Ot?.enabled?Ot:null,event:Dt}))},this._leaveHandler=Dt=>{null!==this.previewEnd&&this.isRange&&("blur"!==Dt.type&&(this._didDragSinceMouseDown=!0),Dt.target&&this._getCellFromElement(Dt.target)&&(!Dt.relatedTarget||!this._getCellFromElement(Dt.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:Dt})))},this._mousedownHandler=Dt=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;const Bt=Dt.target&&this._getCellFromElement(Dt.target);!Bt||!this._isInRange(Bt.rawValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:Bt.rawValue,event:Dt})})},this._mouseupHandler=Dt=>{if(!this.isRange)return;const Bt=oe(Dt.target);Bt?Bt.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{const Ot=this._getCellFromElement(Bt);this.dragEnded.emit({value:Ot?.rawValue??null,event:Dt})}):this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:Dt})})},this._touchendHandler=Dt=>{const Bt=Me(Dt);Bt&&this._mouseupHandler({target:Bt})},this._id="mat-calendar-body-"+xe++,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,dt.runOutsideAngular(()=>{const Dt=_e.nativeElement;Dt.addEventListener("mouseenter",this._enterHandler,!0),Dt.addEventListener("touchmove",this._touchmoveHandler,!0),Dt.addEventListener("focus",this._enterHandler,!0),Dt.addEventListener("mouseleave",this._leaveHandler,!0),Dt.addEventListener("blur",this._leaveHandler,!0),Dt.addEventListener("mousedown",this._mousedownHandler),Dt.addEventListener("touchstart",this._mousedownHandler),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(_e,dt){this._didDragSinceMouseDown||_e.enabled&&this.selectedValueChange.emit({value:_e.value,event:dt})}_emitActiveDateChange(_e,dt){_e.enabled&&this.activeDateChange.emit({value:_e.value,event:dt})}_isSelected(_e){return this.startValue===_e||this.endValue===_e}ngOnChanges(_e){const dt=_e.numCols,{rows:Dt,numCols:Bt}=this;(_e.rows||dt)&&(this._firstRowOffset=Dt&&Dt.length&&Dt[0].length?Bt-Dt[0].length:0),(_e.cellAspectRatio||dt||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Bt+"%"),(dt||!this._cellWidth)&&(this._cellWidth=100/Bt+"%")}ngOnDestroy(){const _e=this._elementRef.nativeElement;_e.removeEventListener("mouseenter",this._enterHandler,!0),_e.removeEventListener("touchmove",this._touchmoveHandler,!0),_e.removeEventListener("focus",this._enterHandler,!0),_e.removeEventListener("mouseleave",this._leaveHandler,!0),_e.removeEventListener("blur",this._leaveHandler,!0),_e.removeEventListener("mousedown",this._mousedownHandler),_e.removeEventListener("touchstart",this._mousedownHandler),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(_e,dt){let Dt=_e*this.numCols+dt;return _e&&(Dt-=this._firstRowOffset),Dt==this.activeCell}_focusActiveCell(_e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,Y.q)(1)).subscribe(()=>{setTimeout(()=>{const dt=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");dt&&(_e||(this._skipNextFocus=!0),dt.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(_e){return Fe(_e,this.startValue,this.endValue)}_isRangeEnd(_e){return De(_e,this.startValue,this.endValue)}_isInRange(_e){return he(_e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(_e){return Fe(_e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(_e,dt,Dt){if(!this._isComparisonStart(_e)||this._isRangeStart(_e)||!this._isInRange(_e))return!1;let Bt=this.rows[dt][Dt-1];if(!Bt){const Ot=this.rows[dt-1];Bt=Ot&&Ot[Ot.length-1]}return Bt&&!this._isRangeEnd(Bt.compareValue)}_isComparisonBridgeEnd(_e,dt,Dt){if(!this._isComparisonEnd(_e)||this._isRangeEnd(_e)||!this._isInRange(_e))return!1;let Bt=this.rows[dt][Dt+1];if(!Bt){const Ot=this.rows[dt+1];Bt=Ot&&Ot[0]}return Bt&&!this._isRangeStart(Bt.compareValue)}_isComparisonEnd(_e){return De(_e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(_e){return he(_e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(_e){return this.comparisonStart===this.comparisonEnd&&_e===this.comparisonStart}_isPreviewStart(_e){return Fe(_e,this.previewStart,this.previewEnd)}_isPreviewEnd(_e){return De(_e,this.previewStart,this.previewEnd)}_isInPreview(_e){return he(_e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(_e){return this.isRange?this.startValue===_e&&this.endValue===_e?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===_e?this._startDateLabelId:this.endValue===_e?this._endDateLabelId:null:null}_getCellFromElement(_e){const dt=oe(_e);if(dt){const Dt=dt.getAttribute("data-mat-row"),Bt=dt.getAttribute("data-mat-col");if(Dt&&Bt)return this.rows[parseInt(Dt)][parseInt(Bt)]}return null}}return Yt.\u0275fac=function(_e){return new(_e||Yt)(s.Y36(s.SBq),s.Y36(s.R0b))},Yt.\u0275cmp=s.Xpm({type:Yt,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[s.TTD],attrs:se,decls:6,vars:6,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],[1,"mat-calendar-body-hidden-label",3,"id"],["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-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(_e,dt){1&_e&&(s.YNc(0,ce,3,6,"tr",0),s.YNc(1,i,3,2,"tr",1),s.TgZ(2,"label",2),s._uU(3),s.qZA(),s.TgZ(4,"label",2),s._uU(5),s.qZA()),2&_e&&(s.Q6J("ngIf",dt._firstRowOffset=qt&&Yt===_e}function he(Yt,qt,_e,dt){return dt&&null!==qt&&null!==_e&&qt!==_e&&Yt>=qt&&Yt<=_e}function Me(Yt){const qt=Yt.changedTouches[0];return document.elementFromPoint(qt.clientX,qt.clientY)}class pe{constructor(qt,_e){this.start=qt,this.end=_e}}let Ve=(()=>{class Yt{constructor(_e,dt){this.selection=_e,this._adapter=dt,this._selectionChanged=new d.x,this.selectionChanged=this._selectionChanged,this.selection=_e}updateSelection(_e,dt){const Dt=this.selection;this.selection=_e,this._selectionChanged.next({selection:_e,source:dt,oldValue:Dt})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(_e){return this._adapter.isDateInstance(_e)&&this._adapter.isValid(_e)}}return Yt.\u0275fac=function(_e){s.$Z()},Yt.\u0275prov=s.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})(),Qe=(()=>{class Yt extends Ve{constructor(_e){super(null,_e)}add(_e){super.updateSelection(_e,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const _e=new Yt(this._adapter);return _e.updateSelection(this.selection,this),_e}}return Yt.\u0275fac=function(_e){return new(_e||Yt)(s.LFG(P._A))},Yt.\u0275prov=s.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})();const rt={provide:Ve,deps:[[new s.FiY,new s.tp0,Ve],P._A],useFactory:function de(Yt,qt){return Yt||new Qe(qt)}},Ut=new s.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let qe=(()=>{class Yt{get activeDate(){return this._activeDate}set activeDate(_e){const dt=this._activeDate,Dt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Dt,this.minDate,this.maxDate),this._hasSameMonthAndYear(dt,this._activeDate)||this._init()}get selected(){return this._selected}set selected(_e){this._selected=_e instanceof pe?_e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(_e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e))}get maxDate(){return this._maxDate}set maxDate(_e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e))}constructor(_e,dt,Dt,Bt,Ot){this._changeDetectorRef=_e,this._dateFormats=dt,this._dateAdapter=Dt,this._dir=Bt,this._rangeStrategy=Ot,this._rerenderSubscription=w.w0.EMPTY,this.activeDrag=null,this.selectedChange=new s.vpe,this._userSelection=new s.vpe,this.dragStarted=new s.vpe,this.dragEnded=new s.vpe,this.activeDateChange=new s.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,j.O)(null)).subscribe(()=>this._init())}ngOnChanges(_e){const dt=_e.comparisonStart||_e.comparisonEnd;dt&&!dt.firstChange&&this._setRanges(this.selected),_e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(_e){const dt=_e.value,Dt=this._getDateFromDayOfMonth(dt);let Bt,Ot;this._selected instanceof pe?(Bt=this._getDateInCurrentMonth(this._selected.start),Ot=this._getDateInCurrentMonth(this._selected.end)):Bt=Ot=this._getDateInCurrentMonth(this._selected),(Bt!==dt||Ot!==dt)&&this.selectedChange.emit(Dt),this._userSelection.emit({value:Dt,event:_e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(_e){const Dt=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(_e.value),this._dateAdapter.compareDate(Dt,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(_e){const dt=this._activeDate,Dt=this._isRtl();switch(_e.keyCode){case D.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Dt?1:-1);break;case D.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Dt?-1:1);break;case D.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case D.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case D.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case D.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case D.Ku:this.activeDate=_e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case D.VM:this.activeDate=_e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case D.K5:case D.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&_e.preventDefault());case D.hY:return void(null!=this._previewEnd&&!(0,D.Vb)(_e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:_e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:_e})),_e.preventDefault(),_e.stopPropagation()));default:return}this._dateAdapter.compareDate(dt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),_e.preventDefault()}_handleCalendarBodyKeyup(_e){(_e.keyCode===D.L_||_e.keyCode===D.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:_e}),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 _e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(_e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(_e){this._matCalendarBody._focusActiveCell(_e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:_e,value:dt}){if(this._rangeStrategy){const Dt=dt?dt.rawValue:null,Bt=this._rangeStrategy.createPreview(Dt,this.selected,_e);if(this._previewStart=this._getCellCompareValue(Bt.start),this._previewEnd=this._getCellCompareValue(Bt.end),this.activeDrag&&Dt){const Ot=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,Dt,_e);Ot&&(this._previewStart=this._getCellCompareValue(Ot.start),this._previewEnd=this._getCellCompareValue(Ot.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(_e){if(this.activeDrag)if(_e.value){const dt=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,_e.value,_e.event);this.dragEnded.emit({value:dt??null,event:_e.event})}else this.dragEnded.emit({value:null,event:_e.event})}_getDateFromDayOfMonth(_e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),_e)}_initWeekdays(){const _e=this._dateAdapter.getFirstDayOfWeek(),dt=this._dateAdapter.getDayOfWeekNames("narrow");let Bt=this._dateAdapter.getDayOfWeekNames("long").map((Ot,vi)=>({long:Ot,narrow:dt[vi]}));this._weekdays=Bt.slice(_e).concat(Bt.slice(0,_e))}_createWeekCells(){const _e=this._dateAdapter.getNumDaysInMonth(this.activeDate),dt=this._dateAdapter.getDateNames();this._weeks=[[]];for(let Dt=0,Bt=this._firstWeekOffset;Dt<_e;Dt++,Bt++){7==Bt&&(this._weeks.push([]),Bt=0);const Ot=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),Dt+1),vi=this._shouldEnableDate(Ot),li=this._dateAdapter.format(Ot,this._dateFormats.display.dateA11yLabel),mi=this.dateClass?this.dateClass(Ot,"month"):void 0;this._weeks[this._weeks.length-1].push(new ye(Dt+1,dt[Dt],li,vi,mi,this._getCellCompareValue(Ot),Ot))}}_shouldEnableDate(_e){return!!_e&&(!this.minDate||this._dateAdapter.compareDate(_e,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(_e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(_e))}_getDateInCurrentMonth(_e){return _e&&this._hasSameMonthAndYear(_e,this.activeDate)?this._dateAdapter.getDate(_e):null}_hasSameMonthAndYear(_e,dt){return!(!_e||!dt||this._dateAdapter.getMonth(_e)!=this._dateAdapter.getMonth(dt)||this._dateAdapter.getYear(_e)!=this._dateAdapter.getYear(dt))}_getCellCompareValue(_e){if(_e){const dt=this._dateAdapter.getYear(_e),Dt=this._dateAdapter.getMonth(_e),Bt=this._dateAdapter.getDate(_e);return new Date(dt,Dt,Bt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(_e){_e instanceof pe?(this._rangeStart=this._getCellCompareValue(_e.start),this._rangeEnd=this._getCellCompareValue(_e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(_e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(_e){return!this.dateFilter||this.dateFilter(_e)}_clearPreview(){this._previewStart=this._previewEnd=null}}return Yt.\u0275fac=function(_e){return new(_e||Yt)(s.Y36(s.sBO),s.Y36(P.sG,8),s.Y36(P._A,8),s.Y36(z.Is,8),s.Y36(Ut,8))},Yt.\u0275cmp=s.Xpm({type:Yt,selectors:[["mat-month-view"]],viewQuery:function(_e,dt){if(1&_e&&s.Gf(fe,5),2&_e){let Dt;s.iGM(Dt=s.CRH())&&(dt._matCalendarBody=Dt.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[s.TTD],decls:7,vars:15,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","startDateAccessibleName","endDateAccessibleName","selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(_e,dt){1&_e&&(s.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),s.YNc(3,a,5,2,"th",2),s.qZA(),s.TgZ(4,"tr"),s._UZ(5,"th",3),s.qZA()(),s.TgZ(6,"tbody",4),s.NdJ("selectedValueChange",function(Bt){return dt._dateSelected(Bt)})("activeDateChange",function(Bt){return dt._updateActiveDate(Bt)})("previewChange",function(Bt){return dt._previewChanged(Bt)})("dragStarted",function(Bt){return dt.dragStarted.emit(Bt)})("dragEnded",function(Bt){return dt._dragEnded(Bt)})("keyup",function(Bt){return dt._handleCalendarBodyKeyup(Bt)})("keydown",function(Bt){return dt._handleCalendarBodyKeydown(Bt)}),s.qZA()()),2&_e&&(s.xp6(3),s.Q6J("ngForOf",dt._weekdays),s.xp6(3),s.Q6J("label",dt._monthLabel)("rows",dt._weeks)("todayValue",dt._todayDate)("startValue",dt._rangeStart)("endValue",dt._rangeEnd)("comparisonStart",dt._comparisonRangeStart)("comparisonEnd",dt._comparisonRangeEnd)("previewStart",dt._previewStart)("previewEnd",dt._previewEnd)("isRange",dt._isRange)("labelMinRequiredCells",3)("activeCell",dt._dateAdapter.getDate(dt.activeDate)-1)("startDateAccessibleName",dt.startDateAccessibleName)("endDateAccessibleName",dt.endDateAccessibleName))},dependencies:[T.sg,fe],encapsulation:2,changeDetection:0}),Yt})();const Ie=24;let mt=(()=>{class Yt{get activeDate(){return this._activeDate}set activeDate(_e){let dt=this._activeDate;const Dt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Dt,this.minDate,this.maxDate),Tt(this._dateAdapter,dt,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(_e){this._selected=_e instanceof pe?_e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e)),this._setSelectedYear(_e)}get minDate(){return this._minDate}set minDate(_e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e))}get maxDate(){return this._maxDate}set maxDate(_e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e))}constructor(_e,dt,Dt){this._changeDetectorRef=_e,this._dateAdapter=dt,this._dir=Dt,this._rerenderSubscription=w.w0.EMPTY,this.selectedChange=new s.vpe,this.yearSelected=new s.vpe,this.activeDateChange=new s.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,j.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const dt=this._dateAdapter.getYear(this._activeDate)-it(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let Dt=0,Bt=[];Dtthis._createCellForYear(Ot))),Bt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(_e){const dt=_e.value,Dt=this._dateAdapter.createDate(dt,0,1),Bt=this._getDateFromYear(dt);this.yearSelected.emit(Dt),this.selectedChange.emit(Bt)}_updateActiveDate(_e){const Dt=this._activeDate;this.activeDate=this._getDateFromYear(_e.value),this._dateAdapter.compareDate(Dt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(_e){const dt=this._activeDate,Dt=this._isRtl();switch(_e.keyCode){case D.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Dt?1:-1);break;case D.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Dt?-1:1);break;case D.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case D.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case D.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-it(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case D.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Ie-it(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case D.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,_e.altKey?10*-Ie:-Ie);break;case D.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,_e.altKey?10*Ie:Ie);break;case D.K5:case D.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(dt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),_e.preventDefault()}_handleCalendarBodyKeyup(_e){(_e.keyCode===D.L_||_e.keyCode===D.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:_e}),this._selectionKeyPressed=!1)}_getActiveCell(){return it(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(_e){const dt=this._dateAdapter.getMonth(this.activeDate),Dt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(_e,dt,1));return this._dateAdapter.createDate(_e,dt,Math.min(this._dateAdapter.getDate(this.activeDate),Dt))}_createCellForYear(_e){const dt=this._dateAdapter.createDate(_e,0,1),Dt=this._dateAdapter.getYearName(dt),Bt=this.dateClass?this.dateClass(dt,"multi-year"):void 0;return new ye(_e,Dt,Dt,this._shouldEnableYear(_e),Bt)}_shouldEnableYear(_e){if(null==_e||this.maxDate&&_e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&_e{class Yt{get activeDate(){return this._activeDate}set activeDate(_e){let dt=this._activeDate;const Dt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Dt,this.minDate,this.maxDate),this._dateAdapter.getYear(dt)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(_e){this._selected=_e instanceof pe?_e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e)),this._setSelectedMonth(_e)}get minDate(){return this._minDate}set minDate(_e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e))}get maxDate(){return this._maxDate}set maxDate(_e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e))}constructor(_e,dt,Dt,Bt){this._changeDetectorRef=_e,this._dateFormats=dt,this._dateAdapter=Dt,this._dir=Bt,this._rerenderSubscription=w.w0.EMPTY,this.selectedChange=new s.vpe,this.monthSelected=new s.vpe,this.activeDateChange=new s.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,j.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(_e){const dt=_e.value,Dt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),dt,1);this.monthSelected.emit(Dt);const Bt=this._getDateFromMonth(dt);this.selectedChange.emit(Bt)}_updateActiveDate(_e){const Dt=this._activeDate;this.activeDate=this._getDateFromMonth(_e.value),this._dateAdapter.compareDate(Dt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(_e){const dt=this._activeDate,Dt=this._isRtl();switch(_e.keyCode){case D.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Dt?1:-1);break;case D.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Dt?-1:1);break;case D.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case D.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case D.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case D.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case D.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,_e.altKey?-10:-1);break;case D.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,_e.altKey?10:1);break;case D.K5:case D.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(dt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),_e.preventDefault()}_handleCalendarBodyKeyup(_e){(_e.keyCode===D.L_||_e.keyCode===D.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:_e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let _e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(dt=>dt.map(Dt=>this._createCellForMonth(Dt,_e[Dt]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(_e){return _e&&this._dateAdapter.getYear(_e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(_e):null}_getDateFromMonth(_e){const dt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),_e,1),Dt=this._dateAdapter.getNumDaysInMonth(dt);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),_e,Math.min(this._dateAdapter.getDate(this.activeDate),Dt))}_createCellForMonth(_e,dt){const Dt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),_e,1),Bt=this._dateAdapter.format(Dt,this._dateFormats.display.monthYearA11yLabel),Ot=this.dateClass?this.dateClass(Dt,"year"):void 0;return new ye(_e,dt.toLocaleUpperCase(),Bt,this._shouldEnableMonth(_e),Ot)}_shouldEnableMonth(_e){const dt=this._dateAdapter.getYear(this.activeDate);if(null==_e||this._isYearAndMonthAfterMaxDate(dt,_e)||this._isYearAndMonthBeforeMinDate(dt,_e))return!1;if(!this.dateFilter)return!0;for(let Bt=this._dateAdapter.createDate(dt,_e,1);this._dateAdapter.getMonth(Bt)==_e;Bt=this._dateAdapter.addCalendarDays(Bt,1))if(this.dateFilter(Bt))return!0;return!1}_isYearAndMonthAfterMaxDate(_e,dt){if(this.maxDate){const Dt=this._dateAdapter.getYear(this.maxDate),Bt=this._dateAdapter.getMonth(this.maxDate);return _e>Dt||_e===Dt&&dt>Bt}return!1}_isYearAndMonthBeforeMinDate(_e,dt){if(this.minDate){const Dt=this._dateAdapter.getYear(this.minDate),Bt=this._dateAdapter.getMonth(this.minDate);return _e{class Yt{constructor(_e,dt,Dt,Bt,Ot){this._intl=_e,this.calendar=dt,this._dateAdapter=Dt,this._dateFormats=Bt,this._id="mat-calendar-header-"+Nt++,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>Ot.markForCheck())}get periodButtonText(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}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:-Ie)}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:Ie)}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(_e,dt){return"month"==this.calendar.currentView?this._dateAdapter.getYear(_e)==this._dateAdapter.getYear(dt)&&this._dateAdapter.getMonth(_e)==this._dateAdapter.getMonth(dt):"year"==this.calendar.currentView?this._dateAdapter.getYear(_e)==this._dateAdapter.getYear(dt):Tt(this._dateAdapter,_e,dt,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){const dt=this._dateAdapter.getYear(this.calendar.activeDate)-it(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),Dt=dt+Ie-1;return[this._dateAdapter.getYearName(this._dateAdapter.createDate(dt,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(Dt,0,1))]}}return Yt.\u0275fac=function(_e){return new(_e||Yt)(s.Y36(at),s.Y36((0,s.Gpc)(()=>ke)),s.Y36(P._A,8),s.Y36(P.sG,8),s.Y36(s.sBO))},Yt.\u0275cmp=s.Xpm({type:Yt,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:f,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["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"],[1,"mat-calendar-hidden-label",3,"id"]],template:function(_e,dt){1&_e&&(s.F$t(),s.TgZ(0,"div",0)(1,"div",1)(2,"button",2),s.NdJ("click",function(){return dt.currentPeriodClicked()}),s.TgZ(3,"span",3),s._uU(4),s.qZA(),s.O4$(),s.TgZ(5,"svg",4),s._UZ(6,"polygon",5),s.qZA()(),s.kcU(),s._UZ(7,"div",6),s.Hsn(8),s.TgZ(9,"button",7),s.NdJ("click",function(){return dt.previousClicked()}),s.qZA(),s.TgZ(10,"button",8),s.NdJ("click",function(){return dt.nextClicked()}),s.qZA()()(),s.TgZ(11,"label",9),s._uU(12),s.qZA()),2&_e&&(s.xp6(2),s.uIk("aria-label",dt.periodButtonLabel)("aria-describedby",dt._periodButtonLabelId),s.xp6(2),s.Oqu(dt.periodButtonText),s.xp6(1),s.ekj("mat-calendar-invert","month"!==dt.calendar.currentView),s.xp6(4),s.Q6J("disabled",!dt.previousEnabled()),s.uIk("aria-label",dt.prevButtonLabel),s.xp6(1),s.Q6J("disabled",!dt.nextEnabled()),s.uIk("aria-label",dt.nextButtonLabel),s.xp6(1),s.Q6J("id",dt._periodButtonLabelId),s.xp6(1),s.Oqu(dt.periodButtonDescription))},dependencies:[y.lW,y.RK],encapsulation:2,changeDetection:0}),Yt})(),ke=(()=>{class Yt{get startAt(){return this._startAt}set startAt(_e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e))}get selected(){return this._selected}set selected(_e){this._selected=_e instanceof pe?_e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e))}get minDate(){return this._minDate}set minDate(_e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e))}get maxDate(){return this._maxDate}set maxDate(_e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e))}get activeDate(){return this._clampedActiveDate}set activeDate(_e){this._clampedActiveDate=this._dateAdapter.clampDate(_e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(_e){const dt=this._currentView!==_e?_e:null;this._currentView=_e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),dt&&this.viewChanged.emit(dt)}constructor(_e,dt,Dt,Bt){this._dateAdapter=dt,this._dateFormats=Dt,this._changeDetectorRef=Bt,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new s.vpe,this.yearSelected=new s.vpe,this.monthSelected=new s.vpe,this.viewChanged=new s.vpe(!0),this._userSelection=new s.vpe,this._userDragDrop=new s.vpe,this._activeDrag=null,this.stateChanges=new d.x,this._intlChanges=_e.changes.subscribe(()=>{Bt.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new _.C5(this.headerComponent||Gt),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(_e){const dt=_e.minDate&&!this._dateAdapter.sameDate(_e.minDate.previousValue,_e.minDate.currentValue)?_e.minDate:void 0,Dt=_e.maxDate&&!this._dateAdapter.sameDate(_e.maxDate.previousValue,_e.maxDate.currentValue)?_e.maxDate:void 0,Bt=dt||Dt||_e.dateFilter;if(Bt&&!Bt.firstChange){const Ot=this._getCurrentViewComponent();Ot&&(this._changeDetectorRef.detectChanges(),Ot._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(_e){const dt=_e.value;(this.selected instanceof pe||dt&&!this._dateAdapter.sameDate(dt,this.selected))&&this.selectedChange.emit(dt),this._userSelection.emit(_e)}_yearSelectedInMultiYearView(_e){this.yearSelected.emit(_e)}_monthSelectedInYearView(_e){this.monthSelected.emit(_e)}_goToDateInView(_e,dt){this.activeDate=_e,this.currentView=dt}_dragStarted(_e){this._activeDrag=_e}_dragEnded(_e){this._activeDrag&&(_e.value&&this._userDragDrop.emit(_e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return Yt.\u0275fac=function(_e){return new(_e||Yt)(s.Y36(at),s.Y36(P._A,8),s.Y36(P.sG,8),s.Y36(s.sBO))},Yt.\u0275cmp=s.Xpm({type:Yt,selectors:[["mat-calendar"]],viewQuery:function(_e,dt){if(1&_e&&(s.Gf(qe,5),s.Gf(xt,5),s.Gf(mt,5)),2&_e){let Dt;s.iGM(Dt=s.CRH())&&(dt.monthView=Dt.first),s.iGM(Dt=s.CRH())&&(dt.yearView=Dt.first),s.iGM(Dt=s.CRH())&&(dt.multiYearView=Dt.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[s._Bn([rt]),s.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","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded",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","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(_e,dt){1&_e&&(s.YNc(0,l,0,0,"ng-template",0),s.TgZ(1,"div",1),s.YNc(2,v,1,11,"mat-month-view",2),s.YNc(3,I,1,6,"mat-year-view",3),s.YNc(4,k,1,6,"mat-multi-year-view",4),s.qZA()),2&_e&&(s.Q6J("cdkPortalOutlet",dt._calendarHeaderPortal),s.xp6(1),s.Q6J("ngSwitch",dt.currentView),s.xp6(1),s.Q6J("ngSwitchCase","month"),s.xp6(1),s.Q6J("ngSwitchCase","year"),s.xp6(1),s.Q6J("ngSwitchCase","multi-year"))},dependencies:[T.RF,T.n9,t.kH,_.Pl,qe,xt,mt],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;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px}.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-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}.mat-calendar-hidden-label{display:none}'],encapsulation:2,changeDetection:0}),Yt})();const $={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 ue=0;const Ae=new s.OlP("mat-datepicker-scroll-strategy"),$t={provide:Ae,deps:[e.aV],useFactory:function Je(Yt){return()=>Yt.scrollStrategies.reposition()}},Vt=(0,P.pj)(class{constructor(Yt){this._elementRef=Yt}});let ii=(()=>{class Yt extends Vt{constructor(_e,dt,Dt,Bt,Ot,vi){super(_e),this._changeDetectorRef=dt,this._globalModel=Dt,this._dateAdapter=Bt,this._rangeSelectionStrategy=Ot,this._subscriptions=new w.w0,this._animationDone=new d.x,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=vi.closeCalendarLabel}ngOnInit(){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(_e){const dt=this._model.selection,Dt=_e.value,Bt=dt instanceof pe;if(Bt&&this._rangeSelectionStrategy){const Ot=this._rangeSelectionStrategy.selectionFinished(Dt,dt,_e.event);this._model.updateSelection(Ot,this)}else Dt&&(Bt||!this._dateAdapter.sameDate(Dt,dt))&&this._model.add(Dt);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(_e){this._model.updateSelection(_e.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(_e){this._isAnimating="start"===_e.phaseName,this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(_e,dt){this._model=_e?this._globalModel.clone():this._globalModel,this._actionsPortal=_e,dt&&this._changeDetectorRef.detectChanges()}}return Yt.\u0275fac=function(_e){return new(_e||Yt)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(Ve),s.Y36(P._A),s.Y36(Ut,8),s.Y36(at))},Yt.\u0275cmp=s.Xpm({type:Yt,selectors:[["mat-datepicker-content"]],viewQuery:function(_e,dt){if(1&_e&&s.Gf(ke,5),2&_e){let Dt;s.iGM(Dt=s.CRH())&&(dt._calendar=Dt.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(_e,dt){1&_e&&s.WFA("@transformPanel.start",function(Bt){return dt._handleAnimationEvent(Bt)})("@transformPanel.done",function(Bt){return dt._handleAnimationEvent(Bt)}),2&_e&&(s.d8E("@transformPanel",dt._animationState),s.ekj("mat-datepicker-content-touch",dt.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[s.qOj],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(_e,dt){if(1&_e&&(s.TgZ(0,"div",0)(1,"mat-calendar",1),s.NdJ("yearSelected",function(Bt){return dt.datepicker._selectYear(Bt)})("monthSelected",function(Bt){return dt.datepicker._selectMonth(Bt)})("viewChanged",function(Bt){return dt.datepicker._viewChanged(Bt)})("_userSelection",function(Bt){return dt._handleUserSelection(Bt)})("_userDragDrop",function(Bt){return dt._handleUserDragDrop(Bt)}),s.qZA(),s.YNc(2,x,0,0,"ng-template",2),s.TgZ(3,"button",3),s.NdJ("focus",function(){return dt._closeButtonFocused=!0})("blur",function(){return dt._closeButtonFocused=!1})("click",function(){return dt.datepicker.close()}),s._uU(4),s.qZA()()),2&_e){let Dt;s.ekj("mat-datepicker-content-container-with-custom-header",dt.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",dt._actionsPortal),s.uIk("aria-modal",!0)("aria-labelledby",null!==(Dt=dt._dialogLabelId)&&void 0!==Dt?Dt:void 0),s.xp6(1),s.Q6J("id",dt.datepicker.id)("ngClass",dt.datepicker.panelClass)("startAt",dt.datepicker.startAt)("startView",dt.datepicker.startView)("minDate",dt.datepicker._getMinDate())("maxDate",dt.datepicker._getMaxDate())("dateFilter",dt.datepicker._getDateFilter())("headerComponent",dt.datepicker.calendarHeaderComponent)("selected",dt._getSelected())("dateClass",dt.datepicker.dateClass)("comparisonStart",dt.comparisonStart)("comparisonEnd",dt.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",dt.startDateAccessibleName)("endDateAccessibleName",dt.endDateAccessibleName),s.xp6(1),s.Q6J("cdkPortalOutlet",dt._actionsPortal),s.xp6(1),s.ekj("cdk-visually-hidden",!dt._closeButtonFocused),s.Q6J("color",dt.color||"primary"),s.xp6(1),s.Oqu(dt._closeButtonText)}},dependencies:[T.mk,y.lW,t.mK,_.Pl,ke],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.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}}"],encapsulation:2,data:{animation:[$.transformPanel,$.fadeInCalendar]},changeDetection:0}),Yt})(),pt=(()=>{class Yt{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(_e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(_e){this._color=_e}get touchUi(){return this._touchUi}set touchUi(_e){this._touchUi=(0,J.Ig)(_e)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(_e){const dt=(0,J.Ig)(_e);dt!==this._disabled&&(this._disabled=dt,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(_e){this._restoreFocus=(0,J.Ig)(_e)}get panelClass(){return this._panelClass}set panelClass(_e){this._panelClass=(0,J.du)(_e)}get opened(){return this._opened}set opened(_e){(0,J.Ig)(_e)?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}constructor(_e,dt,Dt,Bt,Ot,vi,li){this._overlay=_e,this._ngZone=dt,this._viewContainerRef=Dt,this._dateAdapter=Ot,this._dir=vi,this._model=li,this._inputStateChanges=w.w0.EMPTY,this._document=(0,s.f3M)(T.K0),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new s.vpe,this.monthSelected=new s.vpe,this.viewChanged=new s.vpe(!0),this.openedStream=new s.vpe,this.closedStream=new s.vpe,this._opened=!1,this.id="mat-datepicker-"+ue++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new d.x,this._scrollStrategy=Bt}ngOnChanges(_e){const dt=_e.xPosition||_e.yPosition;if(dt&&!dt.firstChange&&this._overlayRef){const Dt=this._overlayRef.getConfig().positionStrategy;Dt instanceof e._G&&(this._setConnectedPositions(Dt),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(_e){this._model.add(_e)}_selectYear(_e){this.yearSelected.emit(_e)}_selectMonth(_e){this.monthSelected.emit(_e)}_viewChanged(_e){this.viewChanged.emit(_e)}registerInput(_e){return this._inputStateChanges.unsubscribe(),this.datepickerInput=_e,this._inputStateChanges=_e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(_e){this._actionsPortal=_e,this._componentRef?.instance._assignActions(_e,!0)}removeActions(_e){_e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this._focusedElementBeforeOpen=(0,V.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;const _e=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,dt=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:Dt,location:Bt}=this._componentRef;Dt._startExitAnimation(),Dt._animationDone.pipe((0,Y.q)(1)).subscribe(()=>{const Ot=this._document.activeElement;_e&&(!Ot||Ot===this._document.activeElement||Bt.nativeElement.contains(Ot))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}_e?setTimeout(dt):dt()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(_e){_e.datepicker=this,_e.color=this.color,_e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),_e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const _e=this.touchUi,dt=new _.C5(ii,this._viewContainerRef),Dt=this._overlayRef=this._overlay.create(new e.X_({positionStrategy:_e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[_e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:_e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(_e?"dialog":"popup")}));this._getCloseStream(Dt).subscribe(Bt=>{Bt&&Bt.preventDefault(),this.close()}),Dt.keydownEvents().subscribe(Bt=>{const Ot=Bt.keyCode;(Ot===D.LH||Ot===D.JH||Ot===D.oh||Ot===D.SV||Ot===D.Ku||Ot===D.VM)&&Bt.preventDefault()}),this._componentRef=Dt.attach(dt),this._forwardContentValues(this._componentRef.instance),_e||this._ngZone.onStable.pipe((0,Y.q)(1)).subscribe(()=>Dt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const _e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(_e)}_setConnectedPositions(_e){const dt="end"===this.xPosition?"end":"start",Dt="start"===dt?"end":"start",Bt="above"===this.yPosition?"bottom":"top",Ot="top"===Bt?"bottom":"top";return _e.withPositions([{originX:dt,originY:Ot,overlayX:dt,overlayY:Bt},{originX:dt,originY:Bt,overlayX:dt,overlayY:Ot},{originX:Dt,originY:Ot,overlayX:Dt,overlayY:Bt},{originX:Dt,originY:Bt,overlayX:Dt,overlayY:Ot}])}_getCloseStream(_e){const dt=["ctrlKey","shiftKey","metaKey"];return(0,C.T)(_e.backdropClick(),_e.detachments(),_e.keydownEvents().pipe((0,Q.h)(Dt=>Dt.keyCode===D.hY&&!(0,D.Vb)(Dt)||this.datepickerInput&&(0,D.Vb)(Dt,"altKey")&&Dt.keyCode===D.LH&&dt.every(Bt=>!(0,D.Vb)(Dt,Bt)))))}}return Yt.\u0275fac=function(_e){return new(_e||Yt)(s.Y36(e.aV),s.Y36(s.R0b),s.Y36(s.s_b),s.Y36(Ae),s.Y36(P._A,8),s.Y36(z.Is,8),s.Y36(Ve))},Yt.\u0275dir=s.lG2({type:Yt,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:[s.TTD]}),Yt})(),ot=(()=>{class Yt extends pt{}return Yt.\u0275fac=function(){let qt;return function(dt){return(qt||(qt=s.n5z(Yt)))(dt||Yt)}}(),Yt.\u0275cmp=s.Xpm({type:Yt,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[s._Bn([rt,{provide:pt,useExisting:Yt}]),s.qOj],decls:0,vars:0,template:function(_e,dt){},encapsulation:2,changeDetection:0}),Yt})();class ft{constructor(qt,_e){this.target=qt,this.targetElement=_e,this.value=this.target.value}}let St=(()=>{class Yt{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(_e){this._assignValueProgrammatically(_e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(_e){const dt=(0,J.Ig)(_e),Dt=this._elementRef.nativeElement;this._disabled!==dt&&(this._disabled=dt,this.stateChanges.next(void 0)),dt&&this._isInitialized&&Dt.blur&&Dt.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(_e){this._model=_e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(dt=>{if(this._shouldHandleChangeEvent(dt)){const Dt=this._getValueFromModel(dt.selection);this._lastValueValid=this._isValidValue(Dt),this._cvaOnChange(Dt),this._onTouched(),this._formatValue(Dt),this.dateInput.emit(new ft(this,this._elementRef.nativeElement)),this.dateChange.emit(new ft(this,this._elementRef.nativeElement))}})}constructor(_e,dt,Dt){this._elementRef=_e,this._dateAdapter=dt,this._dateFormats=Dt,this.dateChange=new s.vpe,this.dateInput=new s.vpe,this.stateChanges=new d.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=w.w0.EMPTY,this._localeSubscription=w.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Bt=>{const Ot=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Bt.value));return!Ot||this._matchesFilter(Ot)?null:{matDatepickerFilter:!0}},this._minValidator=Bt=>{const Ot=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Bt.value)),vi=this._getMinDate();return!vi||!Ot||this._dateAdapter.compareDate(vi,Ot)<=0?null:{matDatepickerMin:{min:vi,actual:Ot}}},this._maxValidator=Bt=>{const Ot=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Bt.value)),vi=this._getMaxDate();return!vi||!Ot||this._dateAdapter.compareDate(vi,Ot)>=0?null:{matDatepickerMax:{max:vi,actual:Ot}}},this._lastValueValid=!1,this._localeSubscription=dt.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(_e){(function gt(Yt,qt){const _e=Object.keys(Yt);for(let dt of _e){const{previousValue:Dt,currentValue:Bt}=Yt[dt];if(!qt.isDateInstance(Dt)||!qt.isDateInstance(Bt))return!0;if(!qt.sameDate(Dt,Bt))return!0}return!1})(_e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(_e){this._validatorOnChange=_e}validate(_e){return this._validator?this._validator(_e):null}writeValue(_e){this._assignValueProgrammatically(_e)}registerOnChange(_e){this._cvaOnChange=_e}registerOnTouched(_e){this._onTouched=_e}setDisabledState(_e){this.disabled=_e}_onKeydown(_e){(0,D.Vb)(_e,"altKey")&&_e.keyCode===D.JH&&["ctrlKey","shiftKey","metaKey"].every(Bt=>!(0,D.Vb)(_e,Bt))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),_e.preventDefault())}_onInput(_e){const dt=this._lastValueValid;let Dt=this._dateAdapter.parse(_e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(Dt),Dt=this._dateAdapter.getValidDateOrNull(Dt);const Bt=!this._dateAdapter.sameDate(Dt,this.value);!Dt||Bt?this._cvaOnChange(Dt):(_e&&!this.value&&this._cvaOnChange(Dt),dt!==this._lastValueValid&&this._validatorOnChange()),Bt&&(this._assignValue(Dt),this.dateInput.emit(new ft(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new ft(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(_e){this._elementRef.nativeElement.value=null!=_e?this._dateAdapter.format(_e,this._dateFormats.display.dateInput):""}_assignValue(_e){this._model?(this._assignValueToModel(_e),this._pendingValue=null):this._pendingValue=_e}_isValidValue(_e){return!_e||this._dateAdapter.isValid(_e)}_parentDisabled(){return!1}_assignValueProgrammatically(_e){_e=this._dateAdapter.deserialize(_e),this._lastValueValid=this._isValidValue(_e),_e=this._dateAdapter.getValidDateOrNull(_e),this._assignValue(_e),this._formatValue(_e)}_matchesFilter(_e){const dt=this._getDateFilter();return!dt||dt(_e)}}return Yt.\u0275fac=function(_e){return new(_e||Yt)(s.Y36(s.SBq),s.Y36(P._A,8),s.Y36(P.sG,8))},Yt.\u0275dir=s.lG2({type:Yt,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[s.TTD]}),Yt})();const $e={provide:me.JU,useExisting:(0,s.Gpc)(()=>vt),multi:!0},_t={provide:me.Cf,useExisting:(0,s.Gpc)(()=>vt),multi:!0};let vt=(()=>{class Yt extends St{set matDatepicker(_e){_e&&(this._datepicker=_e,this._closedSubscription=_e.closedStream.subscribe(()=>this._onTouched()),this._registerModel(_e.registerInput(this)))}get min(){return this._min}set min(_e){const dt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e));this._dateAdapter.sameDate(dt,this._min)||(this._min=dt,this._validatorOnChange())}get max(){return this._max}set max(_e){const dt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(_e));this._dateAdapter.sameDate(dt,this._max)||(this._max=dt,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(_e){const dt=this._matchesFilter(this.value);this._dateFilter=_e,this._matchesFilter(this.value)!==dt&&this._validatorOnChange()}constructor(_e,dt,Dt,Bt){super(_e,dt,Dt),this._formField=Bt,this._closedSubscription=w.w0.EMPTY,this._validator=me.kI.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(_e){return _e}_assignValueToModel(_e){this._model&&this._model.updateSelection(_e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(_e){return _e.source!==this}}return Yt.\u0275fac=function(_e){return new(_e||Yt)(s.Y36(s.SBq),s.Y36(P._A,8),s.Y36(P.sG,8),s.Y36(re.G_,8))},Yt.\u0275dir=s.lG2({type:Yt,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(_e,dt){1&_e&&s.NdJ("input",function(Bt){return dt._onInput(Bt.target.value)})("change",function(){return dt._onChange()})("blur",function(){return dt._onBlur()})("keydown",function(Bt){return dt._onKeydown(Bt)}),2&_e&&(s.Ikx("disabled",dt.disabled),s.uIk("aria-haspopup",dt._datepicker?"dialog":null)("aria-owns",(null==dt._datepicker?null:dt._datepicker.opened)&&dt._datepicker.id||null)("min",dt.min?dt._dateAdapter.toIso8601(dt.min):null)("max",dt.max?dt._dateAdapter.toIso8601(dt.max):null)("data-mat-calendar",dt._datepicker?dt._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[s._Bn([$e,_t,{provide:ie.Jk,useExisting:Yt}]),s.qOj]}),Yt})(),He=(()=>{class Yt{}return Yt.\u0275fac=function(_e){return new(_e||Yt)},Yt.\u0275dir=s.lG2({type:Yt,selectors:[["","matDatepickerToggleIcon",""]]}),Yt})(),Et=(()=>{class Yt{get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(_e){this._disabled=(0,J.Ig)(_e)}constructor(_e,dt,Dt){this._intl=_e,this._changeDetectorRef=dt,this._stateChanges=w.w0.EMPTY;const Bt=Number(Dt);this.tabIndex=Bt||0===Bt?Bt:null}ngOnChanges(_e){_e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(_e){this.datepicker&&!this.disabled&&(this.datepicker.open(),_e.stopPropagation())}_watchStateChanges(){const _e=this.datepicker?this.datepicker.stateChanges:(0,L.of)(),dt=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,L.of)(),Dt=this.datepicker?(0,C.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,L.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,C.T)(this._intl.changes,_e,dt,Dt).subscribe(()=>this._changeDetectorRef.markForCheck())}}return Yt.\u0275fac=function(_e){return new(_e||Yt)(s.Y36(at),s.Y36(s.sBO),s.$8M("tabindex"))},Yt.\u0275cmp=s.Xpm({type:Yt,selectors:[["mat-datepicker-toggle"]],contentQueries:function(_e,dt,Dt){if(1&_e&&s.Suo(Dt,He,5),2&_e){let Bt;s.iGM(Bt=s.CRH())&&(dt._customIcon=Bt.first)}},viewQuery:function(_e,dt){if(1&_e&&s.Gf(n,5),2&_e){let Dt;s.iGM(Dt=s.CRH())&&(dt._button=Dt.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(_e,dt){1&_e&&s.NdJ("click",function(Bt){return dt._open(Bt)}),2&_e&&(s.uIk("tabindex",null)("data-mat-calendar",dt.datepicker?dt.datepicker.id:null),s.ekj("mat-datepicker-toggle-active",dt.datepicker&&dt.datepicker.opened)("mat-accent",dt.datepicker&&"accent"===dt.datepicker.color)("mat-warn",dt.datepicker&&"warn"===dt.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[s.TTD],ngContentSelectors:O,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(_e,dt){1&_e&&(s.F$t(W),s.TgZ(0,"button",0,1),s.YNc(2,g,2,0,"svg",2),s.Hsn(3),s.qZA()),2&_e&&(s.Q6J("disabled",dt.disabled)("disableRipple",dt.disableRipple),s.uIk("aria-haspopup",dt.datepicker?"dialog":null)("aria-label",dt.ariaLabel||dt._intl.openCalendarLabel)("tabindex",dt.disabled?-1:dt.tabIndex),s.xp6(2),s.Q6J("ngIf",!dt._customIcon))},dependencies:[T.O5,y.RK],styles:[".mat-datepicker-toggle{pointer-events:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),Yt})(),Yi=(()=>{class Yt{}return Yt.\u0275fac=function(_e){return new(_e||Yt)},Yt.\u0275mod=s.oAB({type:Yt}),Yt.\u0275inj=s.cJS({providers:[at,$t],imports:[T.ez,y.ot,e.U8,t.rt,_.eL,P.BQ,h.ZD]}),Yt})()},5412:(We,q,m)=>{"use strict";m.d(q,{WI:()=>xe,Bq:()=>fe,uw:()=>pe,ZT:()=>Qe,Is:()=>lt,so:()=>at});var t=m(8184),e=m(6895),_=m(4650),T=m(4761),s=m(3353),y=m(4080),h=m(9521),P=m(7579),d=m(9770),w=m(9646),C=m(445),L=m(8675);function D(Ge,yt){}class z{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let Y=(()=>{class Ge extends y.en{constructor(be,qe,Ie,X,mt,Tt,it,je){super(),this._elementRef=be,this._focusTrapFactory=qe,this._config=X,this._interactivityChecker=mt,this._ngZone=Tt,this._overlayRef=it,this._focusMonitor=je,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=zt=>{this._portalOutlet.hasAttached();const xt=this._portalOutlet.attachDomPortal(zt);return this._contentAttached(),xt},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=Ie}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(be){this._portalOutlet.hasAttached();const qe=this._portalOutlet.attachComponentPortal(be);return this._contentAttached(),qe}attachTemplatePortal(be){this._portalOutlet.hasAttached();const qe=this._portalOutlet.attachTemplatePortal(be);return this._contentAttached(),qe}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(be,qe){this._interactivityChecker.isFocusable(be)||(be.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ie=()=>{be.removeEventListener("blur",Ie),be.removeEventListener("mousedown",Ie),be.removeAttribute("tabindex")};be.addEventListener("blur",Ie),be.addEventListener("mousedown",Ie)})),be.focus(qe)}_focusByCssSelector(be,qe){let Ie=this._elementRef.nativeElement.querySelector(be);Ie&&this._forceFocus(Ie,qe)}_trapFocus(){const be=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||be.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(qe=>{qe||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 be=this._config.restoreFocus;let qe=null;if("string"==typeof be?qe=this._document.querySelector(be):"boolean"==typeof be?qe=be?this._elementFocusedBeforeDialogWasOpened:null:be&&(qe=be),this._config.restoreFocus&&qe&&"function"==typeof qe.focus){const Ie=(0,s.ht)(),X=this._elementRef.nativeElement;(!Ie||Ie===this._document.body||Ie===X||X.contains(Ie))&&(this._focusMonitor?(this._focusMonitor.focusVia(qe,this._closeInteractionType),this._closeInteractionType=null):qe.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const be=this._elementRef.nativeElement,qe=(0,s.ht)();return be===qe||be.contains(qe)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,s.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return Ge.\u0275fac=function(be){return new(be||Ge)(_.Y36(_.SBq),_.Y36(T.qV),_.Y36(e.K0,8),_.Y36(z),_.Y36(T.ic),_.Y36(_.R0b),_.Y36(t.Iu),_.Y36(T.tE))},Ge.\u0275cmp=_.Xpm({type:Ge,selectors:[["cdk-dialog-container"]],viewQuery:function(be,qe){if(1&be&&_.Gf(y.Pl,7),2&be){let Ie;_.iGM(Ie=_.CRH())&&(qe._portalOutlet=Ie.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(be,qe){2&be&&_.uIk("id",qe._config.id||null)("role",qe._config.role)("aria-modal",qe._config.ariaModal)("aria-labelledby",qe._config.ariaLabel?null:qe._ariaLabelledBy)("aria-label",qe._config.ariaLabel)("aria-describedby",qe._config.ariaDescribedBy||null)},features:[_.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(be,qe){1&be&&_.YNc(0,D,0,0,"ng-template",0)},dependencies:[y.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),Ge})();class j{constructor(yt,be){this.overlayRef=yt,this.config=be,this.closed=new P.x,this.disableClose=be.disableClose,this.backdropClick=yt.backdropClick(),this.keydownEvents=yt.keydownEvents(),this.outsidePointerEvents=yt.outsidePointerEvents(),this.id=be.id,this.keydownEvents.subscribe(qe=>{qe.keyCode===h.hY&&!this.disableClose&&!(0,h.Vb)(qe)&&(qe.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=yt.detachments().subscribe(()=>{!1!==be.closeOnOverlayDetachments&&this.close()})}close(yt,be){if(this.containerInstance){const qe=this.closed;this.containerInstance._closeInteractionType=be?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),qe.next(yt),qe.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(yt="",be=""){return this.overlayRef.updateSize({width:yt,height:be}),this}addPanelClass(yt){return this.overlayRef.addPanelClass(yt),this}removePanelClass(yt){return this.overlayRef.removePanelClass(yt),this}}const Q=new _.OlP("DialogScrollStrategy"),J=new _.OlP("DialogData"),ee=new _.OlP("DefaultDialogConfig"),re={provide:Q,deps:[t.aV],useFactory:function me(Ge){return()=>Ge.scrollStrategies.block()}};let ie=0,se=(()=>{class Ge{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(be,qe,Ie,X,mt,Tt){this._overlay=be,this._injector=qe,this._defaultOptions=Ie,this._parentDialog=X,this._overlayContainer=mt,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new P.x,this._afterOpenedAtThisLevel=new P.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,d.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,L.O)(void 0))),this._scrollStrategy=Tt}open(be,qe){(qe={...this._defaultOptions||new z,...qe}).id=qe.id||"cdk-dialog-"+ie++,qe.id&&this.getDialogById(qe.id);const X=this._getOverlayConfig(qe),mt=this._overlay.create(X),Tt=new j(mt,qe),it=this._attachContainer(mt,Tt,qe);return Tt.containerInstance=it,this._attachDialogContent(be,Tt,it,qe),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Tt),Tt.closed.subscribe(()=>this._removeOpenDialog(Tt,!0)),this.afterOpened.next(Tt),Tt}closeAll(){ce(this.openDialogs,be=>be.close())}getDialogById(be){return this.openDialogs.find(qe=>qe.id===be)}ngOnDestroy(){ce(this._openDialogsAtThisLevel,be=>{!1===be.config.closeOnDestroy&&this._removeOpenDialog(be,!1)}),ce(this._openDialogsAtThisLevel,be=>be.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(be){const qe=new t.X_({positionStrategy:be.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:be.scrollStrategy||this._scrollStrategy(),panelClass:be.panelClass,hasBackdrop:be.hasBackdrop,direction:be.direction,minWidth:be.minWidth,minHeight:be.minHeight,maxWidth:be.maxWidth,maxHeight:be.maxHeight,width:be.width,height:be.height,disposeOnNavigation:be.closeOnNavigation});return be.backdropClass&&(qe.backdropClass=be.backdropClass),qe}_attachContainer(be,qe,Ie){const X=Ie.injector||Ie.viewContainerRef?.injector,mt=[{provide:z,useValue:Ie},{provide:j,useValue:qe},{provide:t.Iu,useValue:be}];let Tt;Ie.container?"function"==typeof Ie.container?Tt=Ie.container:(Tt=Ie.container.type,mt.push(...Ie.container.providers(Ie))):Tt=Y;const it=new y.C5(Tt,Ie.viewContainerRef,_.zs3.create({parent:X||this._injector,providers:mt}),Ie.componentFactoryResolver);return be.attach(it).instance}_attachDialogContent(be,qe,Ie,X){if(be instanceof _.Rgc){const mt=this._createInjector(X,qe,Ie,void 0);let Tt={$implicit:X.data,dialogRef:qe};X.templateContext&&(Tt={...Tt,..."function"==typeof X.templateContext?X.templateContext():X.templateContext}),Ie.attachTemplatePortal(new y.UE(be,null,Tt,mt))}else{const mt=this._createInjector(X,qe,Ie,this._injector),Tt=Ie.attachComponentPortal(new y.C5(be,X.viewContainerRef,mt,X.componentFactoryResolver));qe.componentInstance=Tt.instance}}_createInjector(be,qe,Ie,X){const mt=be.injector||be.viewContainerRef?.injector,Tt=[{provide:J,useValue:be.data},{provide:j,useValue:qe}];return be.providers&&("function"==typeof be.providers?Tt.push(...be.providers(qe,be,Ie)):Tt.push(...be.providers)),be.direction&&(!mt||!mt.get(C.Is,null,{optional:!0}))&&Tt.push({provide:C.Is,useValue:{value:be.direction,change:(0,w.of)()}}),_.zs3.create({parent:mt||X,providers:Tt})}_removeOpenDialog(be,qe){const Ie=this.openDialogs.indexOf(be);Ie>-1&&(this.openDialogs.splice(Ie,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((X,mt)=>{X?mt.setAttribute("aria-hidden",X):mt.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),qe&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const be=this._overlayContainer.getContainerElement();if(be.parentElement){const qe=be.parentElement.children;for(let Ie=qe.length-1;Ie>-1;Ie--){const X=qe[Ie];X!==be&&"SCRIPT"!==X.nodeName&&"STYLE"!==X.nodeName&&!X.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(X,X.getAttribute("aria-hidden")),X.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const be=this._parentDialog;return be?be._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return Ge.\u0275fac=function(be){return new(be||Ge)(_.LFG(t.aV),_.LFG(_.zs3),_.LFG(ee,8),_.LFG(Ge,12),_.LFG(t.Xj),_.LFG(Q))},Ge.\u0275prov=_.Yz7({token:Ge,factory:Ge.\u0275fac}),Ge})();function ce(Ge,yt){let be=Ge.length;for(;be--;)yt(Ge[be])}let Ce=(()=>{class Ge{}return Ge.\u0275fac=function(be){return new(be||Ge)},Ge.\u0275mod=_.oAB({type:Ge}),Ge.\u0275inj=_.cJS({providers:[se,re],imports:[t.U8,y.eL,T.rt,y.eL]}),Ge})();var M=m(1281),i=m(6451),a=m(9300),f=m(5698),l=m(3238);function I(Ge,yt){}m(7340);class k{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.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const x="mdc-dialog--open",n="mdc-dialog--opening",g="mdc-dialog--closing";let U=(()=>{class Ge extends Y{constructor(be,qe,Ie,X,mt,Tt,it,je){super(be,qe,Ie,X,mt,Tt,it,je),this._animationStateChanged=new _.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(be){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:be})}}return Ge.\u0275fac=function(be){return new(be||Ge)(_.Y36(_.SBq),_.Y36(T.qV),_.Y36(e.K0,8),_.Y36(k),_.Y36(T.ic),_.Y36(_.R0b),_.Y36(t.Iu),_.Y36(T.tE))},Ge.\u0275cmp=_.Xpm({type:Ge,selectors:[["ng-component"]],features:[_.qOj],decls:0,vars:0,template:function(be,qe){},encapsulation:2}),Ge})();const ge="--mat-dialog-transition-duration";function nt(Ge){return null==Ge?null:"number"==typeof Ge?Ge:Ge.endsWith("ms")?(0,M.su)(Ge.substring(0,Ge.length-2)):Ge.endsWith("s")?1e3*(0,M.su)(Ge.substring(0,Ge.length-1)):"0"===Ge?0:null}let Ue=(()=>{class Ge extends U{constructor(be,qe,Ie,X,mt,Tt,it,je,zt){super(be,qe,Ie,X,mt,Tt,it,zt),this._animationMode=je,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._openAnimationDuration=this._animationsEnabled?nt(this._config.enterAnimationDuration)??150:0,this._closeAnimationDuration=this._animationsEnabled?nt(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._openAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._closeAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._openAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(ge,`${this._openAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(n,x)),this._waitForAnimationToComplete(this._openAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(x),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._closeAnimationDuration}),this._hostElement.classList.remove(x),this._animationsEnabled?(this._hostElement.style.setProperty(ge,`${this._openAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(g)),this._waitForAnimationToComplete(this._closeAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(n,g)}_waitForAnimationToComplete(be,qe){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(qe,be)}_requestAnimationFrame(be){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(be):be()})}}return Ge.\u0275fac=function(be){return new(be||Ge)(_.Y36(_.SBq),_.Y36(T.qV),_.Y36(e.K0,8),_.Y36(k),_.Y36(T.ic),_.Y36(_.R0b),_.Y36(t.Iu),_.Y36(_.QbO,8),_.Y36(T.tE))},Ge.\u0275cmp=_.Xpm({type:Ge,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(be,qe){2&be&&(_.Ikx("id",qe._config.id),_.uIk("aria-modal",qe._config.ariaModal)("role",qe._config.role)("aria-labelledby",qe._config.ariaLabel?null:qe._ariaLabelledBy)("aria-label",qe._config.ariaLabel)("aria-describedby",qe._config.ariaDescribedBy||null),_.ekj("_mat-animation-noopable",!qe._animationsEnabled))},features:[_.qOj],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(be,qe){1&be&&(_.TgZ(0,"div",0)(1,"div",1),_.YNc(2,I,0,0,"ng-template",2),_.qZA()())},dependencies:[y.Pl],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, var(--mdc-shape-medium, 4px))}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title,.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__actions,.mat-mdc-dialog-container.mdc-dialog--scrollable.mdc-dialog-scroll-divider-footer .mdc-dialog__actions{border-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title{border-bottom-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, "Arial");line-height:var(--mdc-dialog-subhead-line-height, 14px);font-size:var(--mdc-dialog-subhead-size, 14px);font-weight:var(--mdc-dialog-subhead-weight, 500);letter-spacing:var(--mdc-dialog-subhead-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, black)}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, "Arial");line-height:var(--mdc-dialog-supporting-text-line-height, 14px);font-size:var(--mdc-dialog-supporting-text-size, 14px);font-weight:var(--mdc-dialog-supporting-text-weight, 500);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, black)}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2}),Ge})();class at{constructor(yt,be,qe){this._ref=yt,this._containerInstance=qe,this._afterOpened=new P.x,this._beforeClosed=new P.x,this._state=0,this.disableClose=be.disableClose,this.id=yt.id,qe._animationStateChanged.pipe((0,a.h)(Ie=>"opened"===Ie.state),(0,f.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),qe._animationStateChanged.pipe((0,a.h)(Ie=>"closed"===Ie.state),(0,f.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),yt.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,i.T)(this.backdropClick(),this.keydownEvents().pipe((0,a.h)(Ie=>Ie.keyCode===h.hY&&!this.disableClose&&!(0,h.Vb)(Ie)))).subscribe(Ie=>{this.disableClose||(Ie.preventDefault(),ye(this,"keydown"===Ie.type?"keyboard":"mouse"))})}close(yt){this._result=yt,this._containerInstance._animationStateChanged.pipe((0,a.h)(be=>"closing"===be.state),(0,f.q)(1)).subscribe(be=>{this._beforeClosed.next(yt),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),be.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(yt){let be=this._ref.config.positionStrategy;return yt&&(yt.left||yt.right)?yt.left?be.left(yt.left):be.right(yt.right):be.centerHorizontally(),yt&&(yt.top||yt.bottom)?yt.top?be.top(yt.top):be.bottom(yt.bottom):be.centerVertically(),this._ref.updatePosition(),this}updateSize(yt="",be=""){return this._ref.updateSize(yt,be),this}addPanelClass(yt){return this._ref.addPanelClass(yt),this}removePanelClass(yt){return this._ref.removePanelClass(yt),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function ye(Ge,yt,be){return Ge._closeInteractionType=yt,Ge.close(be)}const xe=new _.OlP("MatMdcDialogData"),fe=new _.OlP("mat-mdc-dialog-default-options"),Oe=new _.OlP("mat-mdc-dialog-scroll-strategy"),Fe={provide:Oe,deps:[t.aV],useFactory:function oe(Ge){return()=>Ge.scrollStrategies.block()}};let he=0,Me=(()=>{class Ge{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const be=this._parentDialog;return be?be._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(be,qe,Ie,X,mt,Tt,it,je,zt,xt){this._overlay=be,this._defaultOptions=Ie,this._parentDialog=X,this._dialogRefConstructor=it,this._dialogContainerType=je,this._dialogDataToken=zt,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new P.x,this._afterOpenedAtThisLevel=new P.x,this._idPrefix="mat-dialog-",this.dialogConfigClass=k,this.afterAllClosed=(0,d.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,L.O)(void 0))),this._scrollStrategy=Tt,this._dialog=qe.get(se)}open(be,qe){let Ie;(qe={...this._defaultOptions||new k,...qe}).id=qe.id||`${this._idPrefix}${he++}`,qe.scrollStrategy=qe.scrollStrategy||this._scrollStrategy();const X=this._dialog.open(be,{...qe,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:qe},{provide:z,useValue:qe}]},templateContext:()=>({dialogRef:Ie}),providers:(mt,Tt,it)=>(Ie=new this._dialogRefConstructor(mt,qe,it),Ie.updatePosition(qe?.position),[{provide:this._dialogContainerType,useValue:it},{provide:this._dialogDataToken,useValue:Tt.data},{provide:this._dialogRefConstructor,useValue:Ie}])});return Ie.componentInstance=X.componentInstance,this.openDialogs.push(Ie),this.afterOpened.next(Ie),Ie.afterClosed().subscribe(()=>{const mt=this.openDialogs.indexOf(Ie);mt>-1&&(this.openDialogs.splice(mt,1),this.openDialogs.length||this._getAfterAllClosed().next())}),Ie}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(be){return this.openDialogs.find(qe=>qe.id===be)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(be){let qe=be.length;for(;qe--;)be[qe].close()}}return Ge.\u0275fac=function(be){_.$Z()},Ge.\u0275prov=_.Yz7({token:Ge,factory:Ge.\u0275fac}),Ge})(),pe=(()=>{class Ge extends Me{constructor(be,qe,Ie,X,mt,Tt,it,je){super(be,qe,X,Tt,it,mt,at,Ue,xe,je),this._idPrefix="mat-mdc-dialog-"}}return Ge.\u0275fac=function(be){return new(be||Ge)(_.LFG(t.aV),_.LFG(_.zs3),_.LFG(e.Ye,8),_.LFG(fe,8),_.LFG(Oe),_.LFG(Ge,12),_.LFG(t.Xj),_.LFG(_.QbO,8))},Ge.\u0275prov=_.Yz7({token:Ge,factory:Ge.\u0275fac}),Ge})(),Qe=(()=>{class Ge{constructor(be,qe,Ie){this.dialogRef=be,this._elementRef=qe,this._dialog=Ie,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=function Ke(Ge,yt){let be=Ge.nativeElement.parentElement;for(;be&&!be.classList.contains("mat-mdc-dialog-container");)be=be.parentElement;return be?yt.find(qe=>qe.id===be.id):null}(this._elementRef,this._dialog.openDialogs))}ngOnChanges(be){const qe=be._matDialogClose||be._matDialogCloseResult;qe&&(this.dialogResult=qe.currentValue)}_onButtonClick(be){ye(this.dialogRef,0===be.screenX&&0===be.screenY?"keyboard":"mouse",this.dialogResult)}}return Ge.\u0275fac=function(be){return new(be||Ge)(_.Y36(at,8),_.Y36(_.SBq),_.Y36(pe))},Ge.\u0275dir=_.lG2({type:Ge,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(be,qe){1&be&&_.NdJ("click",function(X){return qe._onButtonClick(X)}),2&be&&_.uIk("aria-label",qe.ariaLabel||null)("type",qe.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[_.TTD]}),Ge})(),lt=(()=>{class Ge{}return Ge.\u0275fac=function(be){return new(be||Ge)},Ge.\u0275mod=_.oAB({type:Ge}),Ge.\u0275inj=_.cJS({providers:[pe,Fe],imports:[Ce,t.U8,y.eL,l.BQ,l.BQ]}),Ge})()},4850:(We,q,m)=>{"use strict";m.d(q,{d:()=>T,t:()=>s});var t=m(4650),e=m(1281),_=m(3238);let T=(()=>{class y{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(P){this._vertical=(0,e.Ig)(P)}get inset(){return this._inset}set inset(P){this._inset=(0,e.Ig)(P)}}return y.\u0275fac=function(P){return new(P||y)},y.\u0275cmp=t.Xpm({type:y,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(P,d){2&P&&(t.uIk("aria-orientation",d.vertical?"vertical":"horizontal"),t.ekj("mat-divider-vertical",d.vertical)("mat-divider-horizontal",!d.vertical)("mat-divider-inset",d.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(P,d){},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}"],encapsulation:2,changeDetection:0}),y})(),s=(()=>{class y{}return y.\u0275fac=function(P){return new(P||y)},y.\u0275mod=t.oAB({type:y}),y.\u0275inj=t.cJS({imports:[_.BQ,_.BQ]}),y})()},752:(We,q,m)=>{"use strict";m.d(q,{pp:()=>ye,To:()=>xe,ib:()=>W,u4:()=>Ue,yz:()=>nt,yK:()=>at});var t=m(4650),e=m(5017),_=m(1281),T=m(7579),s=m(727);let y=0;const h=new t.OlP("CdkAccordion");let P=(()=>{class fe{constructor(){this._stateChanges=new T.x,this._openCloseAllActions=new T.x,this.id="cdk-accordion-"+y++,this._multi=!1}get multi(){return this._multi}set multi(oe){this._multi=(0,_.Ig)(oe)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(oe){this._stateChanges.next(oe)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return fe.\u0275fac=function(oe){return new(oe||fe)},fe.\u0275dir=t.lG2({type:fe,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[t._Bn([{provide:h,useExisting:fe}]),t.TTD]}),fe})(),d=0,w=(()=>{class fe{get expanded(){return this._expanded}set expanded(oe){oe=(0,_.Ig)(oe),this._expanded!==oe&&(this._expanded=oe,this.expandedChange.emit(oe),oe?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(oe){this._disabled=(0,_.Ig)(oe)}constructor(oe,Fe,De){this.accordion=oe,this._changeDetectorRef=Fe,this._expansionDispatcher=De,this._openCloseAllSubscription=s.w0.EMPTY,this.closed=new t.vpe,this.opened=new t.vpe,this.destroyed=new t.vpe,this.expandedChange=new t.vpe,this.id="cdk-accordion-child-"+d++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=De.listen((he,Me)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===Me&&this.id!==he&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(oe=>{this.disabled||(this.expanded=oe)})}}return fe.\u0275fac=function(oe){return new(oe||fe)(t.Y36(h,12),t.Y36(t.sBO),t.Y36(e.A8))},fe.\u0275dir=t.lG2({type:fe,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[t._Bn([{provide:h,useValue:void 0}])]}),fe})(),C=(()=>{class fe{}return fe.\u0275fac=function(oe){return new(oe||fe)},fe.\u0275mod=t.oAB({type:fe}),fe.\u0275inj=t.cJS({}),fe})();var L=m(4080),D=m(6895),z=m(3238),V=m(4761),Y=m(1884),j=m(8675),Q=m(9300),J=m(5698),ee=m(9521),me=m(515),re=m(6451),ie=m(7340);const se=["body"];function ce(fe,Oe){}const Ce=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],M=["mat-expansion-panel-header","*","mat-action-row"];function i(fe,Oe){if(1&fe&&t._UZ(0,"span",2),2&fe){const oe=t.oxw();t.Q6J("@indicatorRotate",oe._getExpandedState())}}const a=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],f=["mat-panel-title","mat-panel-description","*"],l=new t.OlP("MAT_ACCORDION"),v="225ms cubic-bezier(0.4,0.0,0.2,1)",I={indicatorRotate:(0,ie.X$)("indicatorRotate",[(0,ie.SB)("collapsed, void",(0,ie.oB)({transform:"rotate(0deg)"})),(0,ie.SB)("expanded",(0,ie.oB)({transform:"rotate(180deg)"})),(0,ie.eR)("expanded <=> collapsed, void => collapsed",(0,ie.jt)(v))]),bodyExpansion:(0,ie.X$)("bodyExpansion",[(0,ie.SB)("collapsed, void",(0,ie.oB)({height:"0px",visibility:"hidden"})),(0,ie.SB)("expanded",(0,ie.oB)({height:"*",visibility:"visible"})),(0,ie.eR)("expanded <=> collapsed, void => collapsed",(0,ie.jt)(v))])},k=new t.OlP("MAT_EXPANSION_PANEL");let x=(()=>{class fe{constructor(oe,Fe){this._template=oe,this._expansionPanel=Fe}}return fe.\u0275fac=function(oe){return new(oe||fe)(t.Y36(t.Rgc),t.Y36(k,8))},fe.\u0275dir=t.lG2({type:fe,selectors:[["ng-template","matExpansionPanelContent",""]]}),fe})(),n=0;const g=new t.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let W=(()=>{class fe extends w{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(oe){this._hideToggle=(0,_.Ig)(oe)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(oe){this._togglePosition=oe}constructor(oe,Fe,De,he,Me,pe,Ve){super(oe,Fe,De),this._viewContainerRef=he,this._animationMode=pe,this._hideToggle=!1,this.afterExpand=new t.vpe,this.afterCollapse=new t.vpe,this._inputChanges=new T.x,this._headerId="mat-expansion-panel-header-"+n++,this._bodyAnimationDone=new T.x,this.accordion=oe,this._document=Me,this._bodyAnimationDone.pipe((0,Y.x)((Qe,Pe)=>Qe.fromState===Pe.fromState&&Qe.toState===Pe.toState)).subscribe(Qe=>{"void"!==Qe.fromState&&("expanded"===Qe.toState?this.afterExpand.emit():"collapsed"===Qe.toState&&this.afterCollapse.emit())}),Ve&&(this.hideToggle=Ve.hideToggle)}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,j.O)(null),(0,Q.h)(()=>this.expanded&&!this._portal),(0,J.q)(1)).subscribe(()=>{this._portal=new L.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(oe){this._inputChanges.next(oe)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const oe=this._document.activeElement,Fe=this._body.nativeElement;return oe===Fe||Fe.contains(oe)}return!1}}return fe.\u0275fac=function(oe){return new(oe||fe)(t.Y36(l,12),t.Y36(t.sBO),t.Y36(e.A8),t.Y36(t.s_b),t.Y36(D.K0),t.Y36(t.QbO,8),t.Y36(g,8))},fe.\u0275cmp=t.Xpm({type:fe,selectors:[["mat-expansion-panel"]],contentQueries:function(oe,Fe,De){if(1&oe&&t.Suo(De,x,5),2&oe){let he;t.iGM(he=t.CRH())&&(Fe._lazyContent=he.first)}},viewQuery:function(oe,Fe){if(1&oe&&t.Gf(se,5),2&oe){let De;t.iGM(De=t.CRH())&&(Fe._body=De.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(oe,Fe){2&oe&&t.ekj("mat-expanded",Fe.expanded)("_mat-animation-noopable","NoopAnimations"===Fe._animationMode)("mat-expansion-panel-spacing",Fe._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[t._Bn([{provide:l,useValue:void 0},{provide:k,useExisting:fe}]),t.qOj,t.TTD],ngContentSelectors:M,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(oe,Fe){1&oe&&(t.F$t(Ce),t.Hsn(0),t.TgZ(1,"div",0,1),t.NdJ("@bodyExpansion.done",function(he){return Fe._bodyAnimationDone.next(he)}),t.TgZ(3,"div",2),t.Hsn(4,1),t.YNc(5,ce,0,0,"ng-template",3),t.qZA(),t.Hsn(6,2),t.qZA()),2&oe&&(t.xp6(1),t.Q6J("@bodyExpansion",Fe._getExpandedState())("id",Fe.id),t.uIk("aria-labelledby",Fe._headerId),t.xp6(4),t.Q6J("cdkPortalOutlet",Fe._portal))},dependencies:[L.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-content[style*="visibility: hidden"] *{visibility:hidden !important}.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 .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[I.bodyExpansion]},changeDetection:0}),fe})();class U{}const ge=(0,z.sb)(U);let nt=(()=>{class fe extends ge{constructor(oe,Fe,De,he,Me,pe,Ve){super(),this.panel=oe,this._element=Fe,this._focusMonitor=De,this._changeDetectorRef=he,this._animationMode=pe,this._parentChangeSubscription=s.w0.EMPTY;const Qe=oe.accordion?oe.accordion._stateChanges.pipe((0,Q.h)(Pe=>!(!Pe.hideToggle&&!Pe.togglePosition))):me.E;this.tabIndex=parseInt(Ve||"")||0,this._parentChangeSubscription=(0,re.T)(oe.opened,oe.closed,Qe,oe._inputChanges.pipe((0,Q.h)(Pe=>!!(Pe.hideToggle||Pe.disabled||Pe.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),oe.closed.pipe((0,Q.h)(()=>oe._containsFocus())).subscribe(()=>De.focusVia(Fe,"program")),Me&&(this.expandedHeight=Me.expandedHeight,this.collapsedHeight=Me.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 oe=this._isExpanded();return oe&&this.expandedHeight?this.expandedHeight:!oe&&this.collapsedHeight?this.collapsedHeight:null}_keydown(oe){switch(oe.keyCode){case ee.L_:case ee.K5:(0,ee.Vb)(oe)||(oe.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(oe))}}focus(oe,Fe){oe?this._focusMonitor.focusVia(this._element,oe,Fe):this._element.nativeElement.focus(Fe)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(oe=>{oe&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return fe.\u0275fac=function(oe){return new(oe||fe)(t.Y36(W,1),t.Y36(t.SBq),t.Y36(V.tE),t.Y36(t.sBO),t.Y36(g,8),t.Y36(t.QbO,8),t.$8M("tabindex"))},fe.\u0275cmp=t.Xpm({type:fe,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(oe,Fe){1&oe&&t.NdJ("click",function(){return Fe._toggle()})("keydown",function(he){return Fe._keydown(he)}),2&oe&&(t.uIk("id",Fe.panel._headerId)("tabindex",Fe.tabIndex)("aria-controls",Fe._getPanelId())("aria-expanded",Fe._isExpanded())("aria-disabled",Fe.panel.disabled),t.Udp("height",Fe._getHeaderHeight()),t.ekj("mat-expanded",Fe._isExpanded())("mat-expansion-toggle-indicator-after","after"===Fe._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===Fe._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===Fe._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[t.qOj],ngContentSelectors:f,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(oe,Fe){1&oe&&(t.F$t(a),t.TgZ(0,"span",0),t.Hsn(1),t.Hsn(2,1),t.Hsn(3,2),t.qZA(),t.YNc(4,i,1,1,"span",1)),2&oe&&(t.ekj("mat-content-hide-toggle",!Fe._showToggle()),t.xp6(4),t.Q6J("ngIf",Fe._showToggle()))},dependencies:[D.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-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-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-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[I.indicatorRotate]},changeDetection:0}),fe})(),Ue=(()=>{class fe{}return fe.\u0275fac=function(oe){return new(oe||fe)},fe.\u0275dir=t.lG2({type:fe,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),fe})(),at=(()=>{class fe{}return fe.\u0275fac=function(oe){return new(oe||fe)},fe.\u0275dir=t.lG2({type:fe,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),fe})(),ye=(()=>{class fe extends P{constructor(){super(...arguments),this._ownHeaders=new t.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(oe){this._hideToggle=(0,_.Ig)(oe)}ngAfterContentInit(){this._headers.changes.pipe((0,j.O)(this._headers)).subscribe(oe=>{this._ownHeaders.reset(oe.filter(Fe=>Fe.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new V.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(oe){this._keyManager.onKeydown(oe)}_handleHeaderFocus(oe){this._keyManager.updateActiveItem(oe)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}}return fe.\u0275fac=function(){let Oe;return function(Fe){return(Oe||(Oe=t.n5z(fe)))(Fe||fe)}}(),fe.\u0275dir=t.lG2({type:fe,selectors:[["mat-accordion"]],contentQueries:function(oe,Fe,De){if(1&oe&&t.Suo(De,nt,5),2&oe){let he;t.iGM(he=t.CRH())&&(Fe._headers=he)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(oe,Fe){2&oe&&t.ekj("mat-accordion-multi",Fe.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[t._Bn([{provide:l,useExisting:fe}]),t.qOj]}),fe})(),xe=(()=>{class fe{}return fe.\u0275fac=function(oe){return new(oe||fe)},fe.\u0275mod=t.oAB({type:fe}),fe.\u0275inj=t.cJS({imports:[D.ez,z.BQ,C,L.eL]}),fe})()},9549:(We,q,m)=>{"use strict";m.d(q,{Eo:()=>Me,G_:()=>Pe,KE:()=>Ge,R9:()=>ye,TO:()=>O,bx:()=>ge,hX:()=>n,lN:()=>yt});var t=m(4650),e=m(445),_=m(3353),T=m(7579),s=m(6451),y=m(2722),h=m(6895),P=m(1281),d=m(7340),w=m(9643),C=m(3238);const L=["matFormFieldNotchedOutline",""],D=["*"],z=["textField"],V=["iconPrefixContainer"],Y=["textPrefixContainer"];function j(be,qe){1&be&&t._UZ(0,"span",19)}function Q(be,qe){if(1&be){const Ie=t.EpF();t.TgZ(0,"label",17),t.NdJ("cdkObserveContent",function(){t.CHM(Ie);const mt=t.oxw(2);return t.KtG(mt._refreshOutlineNotchWidth())}),t.Hsn(1,1),t.YNc(2,j,1,0,"span",18),t.qZA()}if(2&be){const Ie=t.oxw(2);t.Q6J("floating",Ie._shouldLabelFloat())("cdkObserveContentDisabled",!Ie._hasOutline())("id",Ie._labelId),t.uIk("for",Ie._control.id)("aria-owns",Ie._control.id),t.xp6(2),t.Q6J("ngIf",!Ie.hideRequiredMarker&&Ie._control.required)}}function J(be,qe){if(1&be&&t.YNc(0,Q,3,6,"label",16),2&be){const Ie=t.oxw();t.Q6J("ngIf",Ie._hasFloatingLabel())}}function ee(be,qe){1&be&&t._UZ(0,"div",20)}function me(be,qe){}function re(be,qe){if(1&be&&t.YNc(0,me,0,0,"ng-template",22),2&be){t.oxw(2);const Ie=t.MAs(1);t.Q6J("ngTemplateOutlet",Ie)}}function ie(be,qe){if(1&be&&(t.TgZ(0,"div",21),t.YNc(1,re,1,1,"ng-template",9),t.qZA()),2&be){const Ie=t.oxw();t.Q6J("matFormFieldNotchedOutlineOpen",Ie._shouldLabelFloat())("matFormFieldNotchedOutlineLabelWidth",Ie._labelWidth),t.xp6(1),t.Q6J("ngIf",!Ie._forceDisplayInfixLabel())}}function se(be,qe){1&be&&(t.TgZ(0,"div",23,24),t.Hsn(2,2),t.qZA())}function ce(be,qe){1&be&&(t.TgZ(0,"div",25,26),t.Hsn(2,3),t.qZA())}function Ce(be,qe){}function M(be,qe){if(1&be&&t.YNc(0,Ce,0,0,"ng-template",22),2&be){t.oxw();const Ie=t.MAs(1);t.Q6J("ngTemplateOutlet",Ie)}}function i(be,qe){1&be&&(t.TgZ(0,"div",27),t.Hsn(1,4),t.qZA())}function a(be,qe){1&be&&(t.TgZ(0,"div",28),t.Hsn(1,5),t.qZA())}function f(be,qe){1&be&&t._UZ(0,"div",29)}function l(be,qe){if(1&be&&(t.TgZ(0,"div",30),t.Hsn(1,6),t.qZA()),2&be){const Ie=t.oxw();t.Q6J("@transitionMessages",Ie._subscriptAnimationState)}}function v(be,qe){if(1&be&&(t.TgZ(0,"mat-hint",34),t._uU(1),t.qZA()),2&be){const Ie=t.oxw(2);t.Q6J("id",Ie._hintLabelId),t.xp6(1),t.Oqu(Ie.hintLabel)}}function I(be,qe){if(1&be&&(t.TgZ(0,"div",31),t.YNc(1,v,2,2,"mat-hint",32),t.Hsn(2,7),t._UZ(3,"div",33),t.Hsn(4,8),t.qZA()),2&be){const Ie=t.oxw();t.Q6J("@transitionMessages",Ie._subscriptAnimationState),t.xp6(1),t.Q6J("ngIf",Ie.hintLabel)}}const k=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],x=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let n=(()=>{class be{}return be.\u0275fac=function(Ie){return new(Ie||be)},be.\u0275dir=t.lG2({type:be,selectors:[["mat-label"]]}),be})(),g=0;const W=new t.OlP("MatError");let O=(()=>{class be{constructor(Ie,X){this.id="mat-mdc-error-"+g++,Ie||X.nativeElement.setAttribute("aria-live","polite")}}return be.\u0275fac=function(Ie){return new(Ie||be)(t.$8M("aria-live"),t.Y36(t.SBq))},be.\u0275dir=t.lG2({type:be,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(Ie,X){2&Ie&&t.Ikx("id",X.id)},inputs:{id:"id"},features:[t._Bn([{provide:W,useExisting:be}])]}),be})(),U=0,ge=(()=>{class be{constructor(){this.align="start",this.id="mat-mdc-hint-"+U++}}return be.\u0275fac=function(Ie){return new(Ie||be)},be.\u0275dir=t.lG2({type:be,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(Ie,X){2&Ie&&(t.Ikx("id",X.id),t.uIk("align",null),t.ekj("mat-mdc-form-field-hint-end","end"===X.align))},inputs:{align:"align",id:"id"}}),be})();const nt=new t.OlP("MatPrefix"),at=new t.OlP("MatSuffix");let ye=(()=>{class be{constructor(){this._isText=!1}set _isTextSelector(Ie){this._isText=!0}}return be.\u0275fac=function(Ie){return new(Ie||be)},be.\u0275dir=t.lG2({type:be,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:["matTextSuffix","_isTextSelector"]},features:[t._Bn([{provide:at,useExisting:be}])]}),be})(),xe=(()=>{class be{constructor(Ie){this._elementRef=Ie,this.floating=!1}getWidth(){return function fe(be){if(null!==be.offsetParent)return be.scrollWidth;const Ie=be.cloneNode(!0);Ie.style.setProperty("position","absolute"),Ie.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(Ie);const X=Ie.scrollWidth;return Ie.remove(),X}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}}return be.\u0275fac=function(Ie){return new(Ie||be)(t.Y36(t.SBq))},be.\u0275dir=t.lG2({type:be,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(Ie,X){2&Ie&&t.ekj("mdc-floating-label--float-above",X.floating)},inputs:{floating:"floating"}}),be})();const Oe="mdc-line-ripple--active",oe="mdc-line-ripple--deactivating";let Fe=(()=>{class be{constructor(Ie,X){this._elementRef=Ie,this._handleTransitionEnd=mt=>{const Tt=this._elementRef.nativeElement.classList,it=Tt.contains(oe);"opacity"===mt.propertyName&&it&&Tt.remove(Oe,oe)},X.runOutsideAngular(()=>{Ie.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const Ie=this._elementRef.nativeElement.classList;Ie.remove(oe),Ie.add(Oe)}deactivate(){this._elementRef.nativeElement.classList.add(oe)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}}return be.\u0275fac=function(Ie){return new(Ie||be)(t.Y36(t.SBq),t.Y36(t.R0b))},be.\u0275dir=t.lG2({type:be,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]}),be})(),De=(()=>{class be{constructor(Ie,X){this._elementRef=Ie,this._ngZone=X,this.labelWidth=0,this.open=!1}ngAfterViewInit(){const Ie=this._elementRef.nativeElement.querySelector(".mdc-floating-label");Ie?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(Ie.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>Ie.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_getNotchWidth(){return this.open?this.labelWidth>0?`calc(${this.labelWidth}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:"0px":null}}return be.\u0275fac=function(Ie){return new(Ie||be)(t.Y36(t.SBq),t.Y36(t.R0b))},be.\u0275cmp=t.Xpm({type:be,selectors:[["div","matFormFieldNotchedOutline",""]],hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(Ie,X){2&Ie&&t.ekj("mdc-notched-outline--notched",X.open)},inputs:{labelWidth:["matFormFieldNotchedOutlineLabelWidth","labelWidth"],open:["matFormFieldNotchedOutlineOpen","open"]},attrs:L,ngContentSelectors:D,decls:4,vars:2,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(Ie,X){1&Ie&&(t.F$t(),t._UZ(0,"div",0),t.TgZ(1,"div",1),t.Hsn(2),t.qZA(),t._UZ(3,"div",2)),2&Ie&&(t.xp6(1),t.Udp("width",X._getNotchWidth()))},encapsulation:2,changeDetection:0}),be})();const he={transitionMessages:(0,d.X$)("transitionMessages",[(0,d.SB)("enter",(0,d.oB)({opacity:1,transform:"translateY(0%)"})),(0,d.eR)("void => enter",[(0,d.oB)({opacity:0,transform:"translateY(-5px)"}),(0,d.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Me=(()=>{class be{}return be.\u0275fac=function(Ie){return new(Ie||be)},be.\u0275dir=t.lG2({type:be}),be})();const Pe=new t.OlP("MatFormField"),de=new t.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS");let rt=0,Ge=(()=>{class be{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(Ie){this._hideRequiredMarker=(0,P.Ig)(Ie)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(Ie){Ie!==this._floatLabel&&(this._floatLabel=Ie,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(Ie){const X=this._appearance;this._appearance=Ie||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==X&&(this._refreshOutlineNotchWidth(),this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(Ie){this._subscriptSizing=Ie||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(Ie){this._hintLabel=Ie,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(Ie){this._explicitFormFieldControl=Ie}constructor(Ie,X,mt,Tt,it,je,zt,xt){this._elementRef=Ie,this._changeDetectorRef=X,this._ngZone=mt,this._dir=Tt,this._platform=it,this._defaults=je,this._animationMode=zt,this._document=xt,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+rt++,this._hintLabelId="mat-mdc-hint-"+rt++,this._subscriptAnimationState="",this._labelWidth=0,this._destroyed=new T.x,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,je&&(je.appearance&&(this.appearance=je.appearance),this._hideRequiredMarker=Boolean(je?.hideRequiredMarker),je.color&&(this.color=je.color))}ngAfterViewInit(){this._updateFocusState(),this._refreshOutlineNotchWidth(),this._document?.fonts?.ready?this._document.fonts.ready.then(()=>{this._refreshOutlineNotchWidth(),this._changeDetectorRef.markForCheck()}):setTimeout(()=>this._refreshOutlineNotchWidth(),100),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const Ie=this._control;Ie.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${Ie.controlType}`),Ie.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),Ie.ngControl&&Ie.ngControl.valueChanges&&Ie.ngControl.valueChanges.pipe((0,y.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(Ie=>!Ie._isText),this._hasTextPrefix=!!this._prefixChildren.find(Ie=>Ie._isText),this._hasIconSuffix=!!this._suffixChildren.find(Ie=>!Ie._isText),this._hasTextSuffix=!!this._suffixChildren.find(Ie=>Ie._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,s.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,y.R)(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe((0,y.R)(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(Ie){const X=this._control?this._control.ngControl:null;return X&&X[Ie]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||(this._labelWidth=this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let Ie=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&Ie.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const X=this._hintChildren?this._hintChildren.find(Tt=>"start"===Tt.align):null,mt=this._hintChildren?this._hintChildren.find(Tt=>"end"===Tt.align):null;X?Ie.push(X.id):this._hintLabel&&Ie.push(this._hintLabelId),mt&&Ie.push(mt.id)}else this._errorChildren&&Ie.push(...this._errorChildren.map(X=>X.id));this._control.setDescribedByIds(Ie)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const Ie=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(Ie.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const X=this._iconPrefixContainer?.nativeElement,mt=this._textPrefixContainer?.nativeElement,Tt=X?.getBoundingClientRect().width??0,it=mt?.getBoundingClientRect().width??0;Ie.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${Tt+it}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const Ie=this._elementRef.nativeElement;if(Ie.getRootNode){const X=Ie.getRootNode();return X&&X!==Ie}return document.documentElement.contains(Ie)}}return be.\u0275fac=function(Ie){return new(Ie||be)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(t.R0b),t.Y36(e.Is),t.Y36(_.t4),t.Y36(de,8),t.Y36(t.QbO,8),t.Y36(h.K0))},be.\u0275cmp=t.Xpm({type:be,selectors:[["mat-form-field"]],contentQueries:function(Ie,X,mt){if(1&Ie&&(t.Suo(mt,n,5),t.Suo(mt,n,7),t.Suo(mt,Me,5),t.Suo(mt,nt,5),t.Suo(mt,at,5),t.Suo(mt,W,5),t.Suo(mt,ge,5)),2&Ie){let Tt;t.iGM(Tt=t.CRH())&&(X._labelChildNonStatic=Tt.first),t.iGM(Tt=t.CRH())&&(X._labelChildStatic=Tt.first),t.iGM(Tt=t.CRH())&&(X._formFieldControl=Tt.first),t.iGM(Tt=t.CRH())&&(X._prefixChildren=Tt),t.iGM(Tt=t.CRH())&&(X._suffixChildren=Tt),t.iGM(Tt=t.CRH())&&(X._errorChildren=Tt),t.iGM(Tt=t.CRH())&&(X._hintChildren=Tt)}},viewQuery:function(Ie,X){if(1&Ie&&(t.Gf(z,5),t.Gf(V,5),t.Gf(Y,5),t.Gf(xe,5),t.Gf(De,5),t.Gf(Fe,5)),2&Ie){let mt;t.iGM(mt=t.CRH())&&(X._textField=mt.first),t.iGM(mt=t.CRH())&&(X._iconPrefixContainer=mt.first),t.iGM(mt=t.CRH())&&(X._textPrefixContainer=mt.first),t.iGM(mt=t.CRH())&&(X._floatingLabel=mt.first),t.iGM(mt=t.CRH())&&(X._notchedOutline=mt.first),t.iGM(mt=t.CRH())&&(X._lineRipple=mt.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(Ie,X){2&Ie&&t.ekj("mat-mdc-form-field-label-always-float",X._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",X._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",X._hasIconSuffix)("mat-form-field-invalid",X._control.errorState)("mat-form-field-disabled",X._control.disabled)("mat-form-field-autofilled",X._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===X._animationMode)("mat-form-field-appearance-fill","fill"==X.appearance)("mat-form-field-appearance-outline","outline"==X.appearance)("mat-form-field-hide-placeholder",X._hasFloatingLabel()&&!X._shouldLabelFloat())("mat-focused",X._control.focused)("mat-primary","accent"!==X.color&&"warn"!==X.color)("mat-accent","accent"===X.color)("mat-warn","warn"===X.color)("ng-untouched",X._shouldForward("untouched"))("ng-touched",X._shouldForward("touched"))("ng-pristine",X._shouldForward("pristine"))("ng-dirty",X._shouldForward("dirty"))("ng-valid",X._shouldForward("valid"))("ng-invalid",X._shouldForward("invalid"))("ng-pending",X._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[t._Bn([{provide:Pe,useExisting:be}])],ngContentSelectors:x,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(Ie,X){1&Ie&&(t.F$t(k),t.YNc(0,J,1,1,"ng-template",null,0,t.W1O),t.TgZ(2,"div",1,2),t.NdJ("click",function(Tt){return X._control.onContainerClick&&X._control.onContainerClick(Tt)}),t.YNc(4,ee,1,0,"div",3),t.TgZ(5,"div",4),t.YNc(6,ie,2,3,"div",5),t.YNc(7,se,3,0,"div",6),t.YNc(8,ce,3,0,"div",7),t.TgZ(9,"div",8),t.YNc(10,M,1,1,"ng-template",9),t.Hsn(11),t.qZA(),t.YNc(12,i,2,0,"div",10),t.YNc(13,a,2,0,"div",11),t.qZA(),t.YNc(14,f,1,0,"div",12),t.qZA(),t.TgZ(15,"div",13),t.YNc(16,l,2,1,"div",14),t.YNc(17,I,5,2,"div",15),t.qZA()),2&Ie&&(t.xp6(2),t.ekj("mdc-text-field--filled",!X._hasOutline())("mdc-text-field--outlined",X._hasOutline())("mdc-text-field--no-label",!X._hasFloatingLabel())("mdc-text-field--disabled",X._control.disabled)("mdc-text-field--invalid",X._control.errorState),t.xp6(2),t.Q6J("ngIf",!X._hasOutline()&&!X._control.disabled),t.xp6(2),t.Q6J("ngIf",X._hasOutline()),t.xp6(1),t.Q6J("ngIf",X._hasIconPrefix),t.xp6(1),t.Q6J("ngIf",X._hasTextPrefix),t.xp6(2),t.Q6J("ngIf",!X._hasOutline()||X._forceDisplayInfixLabel()),t.xp6(2),t.Q6J("ngIf",X._hasTextSuffix),t.xp6(1),t.Q6J("ngIf",X._hasIconSuffix),t.xp6(1),t.Q6J("ngIf",!X._hasOutline()),t.xp6(1),t.ekj("mat-mdc-form-field-subscript-dynamic-size","dynamic"===X.subscriptSizing),t.Q6J("ngSwitch",X._getDisplayedMessages()),t.xp6(1),t.Q6J("ngSwitchCase","error"),t.xp6(1),t.Q6J("ngSwitchCase","hint"))},dependencies:[h.O5,h.tP,h.RF,h.n9,w.wD,ge,xe,De,Fe],styles:['.mdc-text-field{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{line-height:normal;pointer-events:all}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-10.25px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-10.25px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}'],encapsulation:2,data:{animation:[he.transitionMessages]},changeDetection:0}),be})(),yt=(()=>{class be{}return be.\u0275fac=function(Ie){return new(Ie||be)},be.\u0275mod=t.oAB({type:be}),be.\u0275inj=t.cJS({imports:[C.BQ,h.ez,w.Q8,C.BQ]}),be})()},782:(We,q,m)=>{"use strict";m.d(q,{DX:()=>L,Il:()=>ce,N6:()=>Ce});var t=m(4650),e=m(3238),_=m(1281),T=m(445);const s=["*"];class d{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,f){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(a),this.tracker.fill(0,0,this.tracker.length),this.positions=f.map(l=>this._trackTile(l))}_trackTile(a){const f=this._findMatchingGap(a.colspan);return this._markTilePosition(f,a),this.columnIndex=f+a.colspan,new w(this.rowIndex,f)}_findMatchingGap(a){let f=-1,l=-1;do{this.columnIndex+a>this.tracker.length?(this._nextRow(),f=this.tracker.indexOf(0,this.columnIndex),l=this._findGapEndIndex(f)):(f=this.tracker.indexOf(0,this.columnIndex),-1!=f?(l=this._findGapEndIndex(f),this.columnIndex=f+1):(this._nextRow(),f=this.tracker.indexOf(0,this.columnIndex),l=this._findGapEndIndex(f)))}while(l-f{class i{constructor(f,l){this._element=f,this._gridList=l,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(f){this._rowspan=Math.round((0,_.su)(f))}get colspan(){return this._colspan}set colspan(f){this._colspan=Math.round((0,_.su)(f))}_setStyle(f,l){this._element.nativeElement.style[f]=l}}return i.\u0275fac=function(f){return new(f||i)(t.Y36(t.SBq),t.Y36(C,8))},i.\u0275cmp=t.Xpm({type:i,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(f,l){2&f&&t.uIk("rowspan",l.rowspan)("colspan",l.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:s,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(f,l){1&f&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.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}"],encapsulation:2,changeDetection:0}),i})();const j=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class Q{constructor(){this._rows=0,this._rowspan=0}init(a,f,l,v){this._gutterSize=ie(a),this._rows=f.rowCount,this._rowspan=f.rowspan,this._cols=l,this._direction=v}getBaseTileSize(a,f){return`(${a}% - (${this._gutterSize} * ${f}))`}getTilePosition(a,f){return 0===f?"0":re(`(${a} + ${this._gutterSize}) * ${f}`)}getTileSize(a,f){return`(${a} * ${f}) + (${f-1} * ${this._gutterSize})`}setStyle(a,f,l){let v=100/this._cols,I=(this._cols-1)/this._cols;this.setColStyles(a,l,v,I),this.setRowStyles(a,f,v,I)}setColStyles(a,f,l,v){let I=this.getBaseTileSize(l,v);a._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(I,f)),a._setStyle("width",re(this.getTileSize(I,a.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(a){return`${this._rowspan} * ${this.getTileSize(a,1)}`}getComputedHeight(){return null}}class J extends Q{constructor(a){super(),this.fixedRowHeight=a}init(a,f,l,v){super.init(a,f,l,v),this.fixedRowHeight=ie(this.fixedRowHeight),j.test(this.fixedRowHeight)}setRowStyles(a,f){a._setStyle("top",this.getTilePosition(this.fixedRowHeight,f)),a._setStyle("height",re(this.getTileSize(this.fixedRowHeight,a.rowspan)))}getComputedHeight(){return["height",re(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(a){a._setListStyle(["height",null]),a._tiles&&a._tiles.forEach(f=>{f._setStyle("top",null),f._setStyle("height",null)})}}class ee extends Q{constructor(a){super(),this._parseRatio(a)}setRowStyles(a,f,l,v){this.baseTileHeight=this.getBaseTileSize(l/this.rowHeightRatio,v),a._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,f)),a._setStyle("paddingTop",re(this.getTileSize(this.baseTileHeight,a.rowspan)))}getComputedHeight(){return["paddingBottom",re(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(a){a._setListStyle(["paddingBottom",null]),a._tiles.forEach(f=>{f._setStyle("marginTop",null),f._setStyle("paddingTop",null)})}_parseRatio(a){const f=a.split(":");this.rowHeightRatio=parseFloat(f[0])/parseFloat(f[1])}}class me extends Q{setRowStyles(a,f){let I=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);a._setStyle("top",this.getTilePosition(I,f)),a._setStyle("height",re(this.getTileSize(I,a.rowspan)))}reset(a){a._tiles&&a._tiles.forEach(f=>{f._setStyle("top",null),f._setStyle("height",null)})}}function re(i){return`calc(${i})`}function ie(i){return i.match(/([A-Za-z%]+)$/)?i:`${i}px`}let ce=(()=>{class i{constructor(f,l){this._element=f,this._dir=l,this._gutter="1px"}get cols(){return this._cols}set cols(f){this._cols=Math.max(1,Math.round((0,_.su)(f)))}get gutterSize(){return this._gutter}set gutterSize(f){this._gutter=`${f??""}`}get rowHeight(){return this._rowHeight}set rowHeight(f){const l=`${f??""}`;l!==this._rowHeight&&(this._rowHeight=l,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(f){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===f?new me:f&&f.indexOf(":")>-1?new ee(f):new J(f)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new d);const f=this._tileCoordinator,l=this._tiles.filter(I=>!I._gridList||I._gridList===this),v=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,l),this._tileStyler.init(this.gutterSize,f,this.cols,v),l.forEach((I,k)=>{const x=f.positions[k];this._tileStyler.setStyle(I,x.row,x.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(f){f&&(this._element.nativeElement.style[f[0]]=f[1])}}return i.\u0275fac=function(f){return new(f||i)(t.Y36(t.SBq),t.Y36(T.Is,8))},i.\u0275cmp=t.Xpm({type:i,selectors:[["mat-grid-list"]],contentQueries:function(f,l,v){if(1&f&&t.Suo(v,L,5),2&f){let I;t.iGM(I=t.CRH())&&(l._tiles=I)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(f,l){2&f&&t.uIk("cols",l.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[t._Bn([{provide:C,useExisting:i}])],ngContentSelectors:s,decls:2,vars:0,template:function(f,l){1&f&&(t.F$t(),t.TgZ(0,"div"),t.Hsn(1),t.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}"],encapsulation:2,changeDetection:0}),i})(),Ce=(()=>{class i{}return i.\u0275fac=function(f){return new(f||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[e.uc,e.BQ,e.uc,e.BQ]}),i})()},7392:(We,q,m)=>{"use strict";m.d(q,{Hw:()=>O,Ps:()=>U});var t=m(4650),e=m(3238),_=m(1281),T=m(6895),s=m(9646),y=m(2843),h=m(4128),P=m(727),d=m(8505),w=m(4004),C=m(262),L=m(8746),D=m(3099),z=m(5698),V=m(529),Y=m(1481);const j=["*"];let Q;function ee(ge){return function J(){if(void 0===Q&&(Q=null,typeof window<"u")){const ge=window;void 0!==ge.trustedTypes&&(Q=ge.trustedTypes.createPolicy("angular#components",{createHTML:nt=>nt}))}return Q}()?.createHTML(ge)||ge}function me(ge){return Error(`Unable to find icon with the name "${ge}"`)}function ie(ge){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${ge}".`)}function se(ge){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${ge}".`)}class ce{constructor(nt,Ue,at){this.url=nt,this.svgText=Ue,this.options=at}}let Ce=(()=>{class ge{constructor(Ue,at,ye,xe){this._httpClient=Ue,this._sanitizer=at,this._errorHandler=xe,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","mat-ligature-font"],this._document=ye}addSvgIcon(Ue,at,ye){return this.addSvgIconInNamespace("",Ue,at,ye)}addSvgIconLiteral(Ue,at,ye){return this.addSvgIconLiteralInNamespace("",Ue,at,ye)}addSvgIconInNamespace(Ue,at,ye,xe){return this._addSvgIconConfig(Ue,at,new ce(ye,null,xe))}addSvgIconResolver(Ue){return this._resolvers.push(Ue),this}addSvgIconLiteralInNamespace(Ue,at,ye,xe){const fe=this._sanitizer.sanitize(t.q3G.HTML,ye);if(!fe)throw se(ye);const Oe=ee(fe);return this._addSvgIconConfig(Ue,at,new ce("",Oe,xe))}addSvgIconSet(Ue,at){return this.addSvgIconSetInNamespace("",Ue,at)}addSvgIconSetLiteral(Ue,at){return this.addSvgIconSetLiteralInNamespace("",Ue,at)}addSvgIconSetInNamespace(Ue,at,ye){return this._addSvgIconSetConfig(Ue,new ce(at,null,ye))}addSvgIconSetLiteralInNamespace(Ue,at,ye){const xe=this._sanitizer.sanitize(t.q3G.HTML,at);if(!xe)throw se(at);const fe=ee(xe);return this._addSvgIconSetConfig(Ue,new ce("",fe,ye))}registerFontClassAlias(Ue,at=Ue){return this._fontCssClassesByAlias.set(Ue,at),this}classNameForFontAlias(Ue){return this._fontCssClassesByAlias.get(Ue)||Ue}setDefaultFontSetClass(...Ue){return this._defaultFontSetClass=Ue,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Ue){const at=this._sanitizer.sanitize(t.q3G.RESOURCE_URL,Ue);if(!at)throw ie(Ue);const ye=this._cachedIconsByUrl.get(at);return ye?(0,s.of)(a(ye)):this._loadSvgIconFromConfig(new ce(Ue,null)).pipe((0,d.b)(xe=>this._cachedIconsByUrl.set(at,xe)),(0,w.U)(xe=>a(xe)))}getNamedSvgIcon(Ue,at=""){const ye=f(at,Ue);let xe=this._svgIconConfigs.get(ye);if(xe)return this._getSvgFromConfig(xe);if(xe=this._getIconConfigFromResolvers(at,Ue),xe)return this._svgIconConfigs.set(ye,xe),this._getSvgFromConfig(xe);const fe=this._iconSetConfigs.get(at);return fe?this._getSvgFromIconSetConfigs(Ue,fe):(0,y._)(me(ye))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Ue){return Ue.svgText?(0,s.of)(a(this._svgElementFromConfig(Ue))):this._loadSvgIconFromConfig(Ue).pipe((0,w.U)(at=>a(at)))}_getSvgFromIconSetConfigs(Ue,at){const ye=this._extractIconWithNameFromAnySet(Ue,at);if(ye)return(0,s.of)(ye);const xe=at.filter(fe=>!fe.svgText).map(fe=>this._loadSvgIconSetFromConfig(fe).pipe((0,C.K)(Oe=>{const Fe=`Loading icon set URL: ${this._sanitizer.sanitize(t.q3G.RESOURCE_URL,fe.url)} failed: ${Oe.message}`;return this._errorHandler.handleError(new Error(Fe)),(0,s.of)(null)})));return(0,h.D)(xe).pipe((0,w.U)(()=>{const fe=this._extractIconWithNameFromAnySet(Ue,at);if(!fe)throw me(Ue);return fe}))}_extractIconWithNameFromAnySet(Ue,at){for(let ye=at.length-1;ye>=0;ye--){const xe=at[ye];if(xe.svgText&&xe.svgText.toString().indexOf(Ue)>-1){const fe=this._svgElementFromConfig(xe),Oe=this._extractSvgIconFromSet(fe,Ue,xe.options);if(Oe)return Oe}}return null}_loadSvgIconFromConfig(Ue){return this._fetchIcon(Ue).pipe((0,d.b)(at=>Ue.svgText=at),(0,w.U)(()=>this._svgElementFromConfig(Ue)))}_loadSvgIconSetFromConfig(Ue){return Ue.svgText?(0,s.of)(null):this._fetchIcon(Ue).pipe((0,d.b)(at=>Ue.svgText=at))}_extractSvgIconFromSet(Ue,at,ye){const xe=Ue.querySelector(`[id="${at}"]`);if(!xe)return null;const fe=xe.cloneNode(!0);if(fe.removeAttribute("id"),"svg"===fe.nodeName.toLowerCase())return this._setSvgAttributes(fe,ye);if("symbol"===fe.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(fe),ye);const Oe=this._svgElementFromString(ee(""));return Oe.appendChild(fe),this._setSvgAttributes(Oe,ye)}_svgElementFromString(Ue){const at=this._document.createElement("DIV");at.innerHTML=Ue;const ye=at.querySelector("svg");if(!ye)throw Error(" tag not found");return ye}_toSvgElement(Ue){const at=this._svgElementFromString(ee("")),ye=Ue.attributes;for(let xe=0;xeee(Fe)),(0,L.x)(()=>this._inProgressUrlFetches.delete(fe)),(0,D.B)());return this._inProgressUrlFetches.set(fe,oe),oe}_addSvgIconConfig(Ue,at,ye){return this._svgIconConfigs.set(f(Ue,at),ye),this}_addSvgIconSetConfig(Ue,at){const ye=this._iconSetConfigs.get(Ue);return ye?ye.push(at):this._iconSetConfigs.set(Ue,[at]),this}_svgElementFromConfig(Ue){if(!Ue.svgElement){const at=this._svgElementFromString(Ue.svgText);this._setSvgAttributes(at,Ue.options),Ue.svgElement=at}return Ue.svgElement}_getIconConfigFromResolvers(Ue,at){for(let ye=0;yent?nt.pathname+nt.search:""}}}),n=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],g=n.map(ge=>`[${ge}]`).join(", "),W=/^url\(['"]?#(.*?)['"]?\)$/;let O=(()=>{class ge extends v{get inline(){return this._inline}set inline(Ue){this._inline=(0,_.Ig)(Ue)}get svgIcon(){return this._svgIcon}set svgIcon(Ue){Ue!==this._svgIcon&&(Ue?this._updateSvgIcon(Ue):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Ue)}get fontSet(){return this._fontSet}set fontSet(Ue){const at=this._cleanupFontValue(Ue);at!==this._fontSet&&(this._fontSet=at,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Ue){const at=this._cleanupFontValue(Ue);at!==this._fontIcon&&(this._fontIcon=at,this._updateFontIconClasses())}constructor(Ue,at,ye,xe,fe,Oe){super(Ue),this._iconRegistry=at,this._location=xe,this._errorHandler=fe,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=P.w0.EMPTY,Oe&&(Oe.color&&(this.color=this.defaultColor=Oe.color),Oe.fontSet&&(this.fontSet=Oe.fontSet)),ye||Ue.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(Ue){if(!Ue)return["",""];const at=Ue.split(":");switch(at.length){case 1:return["",at[0]];case 2:return at;default:throw Error(`Invalid icon name: "${Ue}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Ue=this._elementsWithExternalReferences;if(Ue&&Ue.size){const at=this._location.getPathname();at!==this._previousPath&&(this._previousPath=at,this._prependPathToReferences(at))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Ue){this._clearSvgElement();const at=this._location.getPathname();this._previousPath=at,this._cacheChildrenWithExternalReferences(Ue),this._prependPathToReferences(at),this._elementRef.nativeElement.appendChild(Ue)}_clearSvgElement(){const Ue=this._elementRef.nativeElement;let at=Ue.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();at--;){const ye=Ue.childNodes[at];(1!==ye.nodeType||"svg"===ye.nodeName.toLowerCase())&&ye.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Ue=this._elementRef.nativeElement,at=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(ye=>ye.length>0);this._previousFontSetClass.forEach(ye=>Ue.classList.remove(ye)),at.forEach(ye=>Ue.classList.add(ye)),this._previousFontSetClass=at,this.fontIcon!==this._previousFontIconClass&&!at.includes("mat-ligature-font")&&(this._previousFontIconClass&&Ue.classList.remove(this._previousFontIconClass),this.fontIcon&&Ue.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Ue){return"string"==typeof Ue?Ue.trim().split(" ")[0]:Ue}_prependPathToReferences(Ue){const at=this._elementsWithExternalReferences;at&&at.forEach((ye,xe)=>{ye.forEach(fe=>{xe.setAttribute(fe.name,`url('${Ue}#${fe.value}')`)})})}_cacheChildrenWithExternalReferences(Ue){const at=Ue.querySelectorAll(g),ye=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let xe=0;xe{const Oe=at[xe],oe=Oe.getAttribute(fe),Fe=oe?oe.match(W):null;if(Fe){let De=ye.get(Oe);De||(De=[],ye.set(Oe,De)),De.push({name:fe,value:Fe[1]})}})}_updateSvgIcon(Ue){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Ue){const[at,ye]=this._splitIconName(Ue);at&&(this._svgNamespace=at),ye&&(this._svgName=ye),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(ye,at).pipe((0,z.q)(1)).subscribe(xe=>this._setSvgElement(xe),xe=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${at}:${ye}! ${xe.message}`))})}}}return ge.\u0275fac=function(Ue){return new(Ue||ge)(t.Y36(t.SBq),t.Y36(Ce),t.$8M("aria-hidden"),t.Y36(k),t.Y36(t.qLn),t.Y36(I,8))},ge.\u0275cmp=t.Xpm({type:ge,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(Ue,at){2&Ue&&(t.uIk("data-mat-icon-type",at._usingFontIcon()?"font":"svg")("data-mat-icon-name",at._svgName||at.fontIcon)("data-mat-icon-namespace",at._svgNamespace||at.fontSet)("fontIcon",at._usingFontIcon()?at.fontIcon:null),t.ekj("mat-icon-inline",at.inline)("mat-icon-no-color","primary"!==at.color&&"accent"!==at.color&&"warn"!==at.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[t.qOj],ngContentSelectors:j,decls:1,vars:0,template:function(Ue,at){1&Ue&&(t.F$t(),t.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),ge})(),U=(()=>{class ge{}return ge.\u0275fac=function(Ue){return new(Ue||ge)},ge.\u0275mod=t.oAB({type:ge}),ge.\u0275inj=t.cJS({imports:[e.BQ,e.BQ]}),ge})()},4144:(We,q,m)=>{"use strict";m.d(q,{Jk:()=>V,Nt:()=>J,c:()=>ee});var t=m(1281),e=m(3353),_=m(4650),T=m(515),s=m(7579);const y=(0,e.i$)({passive:!0});let h=(()=>{class me{constructor(ie,se){this._platform=ie,this._ngZone=se,this._monitoredElements=new Map}monitor(ie){if(!this._platform.isBrowser)return T.E;const se=(0,t.fI)(ie),ce=this._monitoredElements.get(se);if(ce)return ce.subject;const Ce=new s.x,M="cdk-text-field-autofilled",i=a=>{"cdk-text-field-autofill-start"!==a.animationName||se.classList.contains(M)?"cdk-text-field-autofill-end"===a.animationName&&se.classList.contains(M)&&(se.classList.remove(M),this._ngZone.run(()=>Ce.next({target:a.target,isAutofilled:!1}))):(se.classList.add(M),this._ngZone.run(()=>Ce.next({target:a.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{se.addEventListener("animationstart",i,y),se.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(se,{subject:Ce,unlisten:()=>{se.removeEventListener("animationstart",i,y)}}),Ce}stopMonitoring(ie){const se=(0,t.fI)(ie),ce=this._monitoredElements.get(se);ce&&(ce.unlisten(),ce.subject.complete(),se.classList.remove("cdk-text-field-autofill-monitored"),se.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(se))}ngOnDestroy(){this._monitoredElements.forEach((ie,se)=>this.stopMonitoring(se))}}return me.\u0275fac=function(ie){return new(ie||me)(_.LFG(e.t4),_.LFG(_.R0b))},me.\u0275prov=_.Yz7({token:me,factory:me.\u0275fac,providedIn:"root"}),me})(),w=(()=>{class me{}return me.\u0275fac=function(ie){return new(ie||me)},me.\u0275mod=_.oAB({type:me}),me.\u0275inj=_.cJS({}),me})();var C=m(4006),L=m(3238),D=m(9549);const V=new _.OlP("MAT_INPUT_VALUE_ACCESSOR"),Y=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let j=0;const Q=(0,L.FD)(class{constructor(me,re,ie,se){this._defaultErrorStateMatcher=me,this._parentForm=re,this._parentFormGroup=ie,this.ngControl=se,this.stateChanges=new s.x}});let J=(()=>{class me extends Q{get disabled(){return this._disabled}set disabled(ie){this._disabled=(0,t.Ig)(ie),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(ie){this._id=ie||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(C.kI.required)??!1}set required(ie){this._required=(0,t.Ig)(ie)}get type(){return this._type}set type(ie){this._type=ie||"text",this._validateType(),!this._isTextarea&&(0,e.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(ie){ie!==this.value&&(this._inputValueAccessor.value=ie,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(ie){this._readonly=(0,t.Ig)(ie)}constructor(ie,se,ce,Ce,M,i,a,f,l,v){super(i,Ce,M,ce),this._elementRef=ie,this._platform=se,this._autofillMonitor=f,this._formField=v,this._uid="mat-input-"+j++,this.focused=!1,this.stateChanges=new s.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,e.qK)().has(x)),this._iOSKeyupListener=x=>{const n=x.target;!n.value&&0===n.selectionStart&&0===n.selectionEnd&&(n.setSelectionRange(1,1),n.setSelectionRange(0,0))};const I=this._elementRef.nativeElement,k=I.nodeName.toLowerCase();this._inputValueAccessor=a||I,this._previousNativeValue=this.value,this.id=this.id,se.IOS&&l.runOutsideAngular(()=>{ie.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===k,this._isTextarea="textarea"===k,this._isInFormField=!!v,this._isNativeSelect&&(this.controlType=I.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(ie=>{this.autofilled=ie.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(ie){this._elementRef.nativeElement.focus(ie)}_focusChanged(ie){ie!==this.focused&&(this.focused=ie,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const ie=this._elementRef.nativeElement.value;this._previousNativeValue!==ie&&(this._previousNativeValue=ie,this.stateChanges.next())}_dirtyCheckPlaceholder(){const ie=this._getPlaceholder();if(ie!==this._previousPlaceholder){const se=this._elementRef.nativeElement;this._previousPlaceholder=ie,ie?se.setAttribute("placeholder",ie):se.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){Y.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let ie=this._elementRef.nativeElement.validity;return ie&&ie.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const ie=this._elementRef.nativeElement,se=ie.options[0];return this.focused||ie.multiple||!this.empty||!!(ie.selectedIndex>-1&&se&&se.label)}return this.focused||!this.empty}setDescribedByIds(ie){ie.length?this._elementRef.nativeElement.setAttribute("aria-describedby",ie.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const ie=this._elementRef.nativeElement;return this._isNativeSelect&&(ie.multiple||ie.size>1)}}return me.\u0275fac=function(ie){return new(ie||me)(_.Y36(_.SBq),_.Y36(e.t4),_.Y36(C.a5,10),_.Y36(C.F,8),_.Y36(C.sg,8),_.Y36(L.rD),_.Y36(V,10),_.Y36(h),_.Y36(_.R0b),_.Y36(D.G_,8))},me.\u0275dir=_.lG2({type:me,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(ie,se){1&ie&&_.NdJ("focus",function(){return se._focusChanged(!0)})("blur",function(){return se._focusChanged(!1)})("input",function(){return se._onInput()}),2&ie&&(_.Ikx("id",se.id)("disabled",se.disabled)("required",se.required),_.uIk("name",se.name||null)("readonly",se.readonly&&!se._isNativeSelect||null)("aria-invalid",se.empty&&se.required?null:se.errorState)("aria-required",se.required)("id",se.id),_.ekj("mat-input-server",se._isServer)("mat-mdc-form-field-textarea-control",se._isInFormField&&se._isTextarea)("mat-mdc-form-field-input-control",se._isInFormField)("mdc-text-field__input",se._isInFormField)("mat-mdc-native-select-inline",se._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[_._Bn([{provide:D.Eo,useExisting:me}]),_.qOj,_.TTD]}),me})(),ee=(()=>{class me{}return me.\u0275fac=function(ie){return new(ie||me)},me.\u0275mod=_.oAB({type:me}),me.\u0275inj=_.cJS({imports:[L.BQ,D.lN,D.lN,w,L.BQ]}),me})()},6338:(We,q,m)=>{"use strict";m.d(q,{Tg:()=>Me,i$:()=>he,ie:()=>Ut});var t=m(4650),e=m(1281),_=m(3353),T=m(3238),s=m(727),y=m(6451),P=(m(7579),m(9643)),d=m(6895),w=m(4850);m(4761),m(5017),m(9521),m(4006),m(2722);const Y=["*"],Q=["unscopedContent"],J=["text"],ee=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],me=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"],O=new t.OlP("ListOption");let U=(()=>{class ht{constructor(yt){this._elementRef=yt}}return ht.\u0275fac=function(yt){return new(yt||ht)(t.Y36(t.SBq))},ht.\u0275dir=t.lG2({type:ht,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]}),ht})(),ge=(()=>{class ht{constructor(yt){this._elementRef=yt}}return ht.\u0275fac=function(yt){return new(yt||ht)(t.Y36(t.SBq))},ht.\u0275dir=t.lG2({type:ht,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]}),ht})(),nt=(()=>{class ht{}return ht.\u0275fac=function(yt){return new(yt||ht)},ht.\u0275dir=t.lG2({type:ht,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]}),ht})(),Ue=(()=>{class ht{constructor(yt){this._listOption=yt}_isAlignedAtStart(){return!this._listOption||"after"===this._listOption?._getTogglePosition()}}return ht.\u0275fac=function(yt){return new(yt||ht)(t.Y36(O,8))},ht.\u0275dir=t.lG2({type:ht,hostVars:4,hostBindings:function(yt,be){2&yt&&t.ekj("mdc-list-item__start",be._isAlignedAtStart())("mdc-list-item__end",!be._isAlignedAtStart())}}),ht})(),at=(()=>{class ht extends Ue{}return ht.\u0275fac=function(){let Ge;return function(be){return(Ge||(Ge=t.n5z(ht)))(be||ht)}}(),ht.\u0275dir=t.lG2({type:ht,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[t.qOj]}),ht})(),ye=(()=>{class ht extends Ue{}return ht.\u0275fac=function(){let Ge;return function(be){return(Ge||(Ge=t.n5z(ht)))(be||ht)}}(),ht.\u0275dir=t.lG2({type:ht,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[t.qOj]}),ht})();const xe=new t.OlP("MAT_LIST_CONFIG");let fe=(()=>{class ht{constructor(){this._isNonInteractive=!0,this._disableRipple=!1,this._disabled=!1,this._defaultOptions=(0,t.f3M)(xe,{optional:!0})}get disableRipple(){return this._disableRipple}set disableRipple(yt){this._disableRipple=(0,e.Ig)(yt)}get disabled(){return this._disabled}set disabled(yt){this._disabled=(0,e.Ig)(yt)}}return ht.\u0275fac=function(yt){return new(yt||ht)},ht.\u0275dir=t.lG2({type:ht,hostVars:1,hostBindings:function(yt,be){2&yt&&t.uIk("aria-disabled",be.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}}),ht})(),Oe=(()=>{class ht{set lines(yt){this._explicitLines=(0,e.su)(yt,null),this._updateItemLines(!1)}get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(yt){this._disableRipple=(0,e.Ig)(yt)}get disabled(){return this._disabled||!!this._listBase?.disabled}set disabled(yt){this._disabled=(0,e.Ig)(yt)}get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(yt,be,qe,Ie,X,mt){this._elementRef=yt,this._ngZone=be,this._listBase=qe,this._platform=Ie,this._explicitLines=null,this._disableRipple=!1,this._disabled=!1,this._subscriptions=new s.w0,this._rippleRenderer=null,this._hasUnscopedTextContent=!1,this.rippleConfig=X||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement="button"===this._hostElement.nodeName.toLowerCase(),this._noopAnimations="NoopAnimations"===mt,qe&&!qe._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),null!==this._rippleRenderer&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!(!this._avatars.length&&!this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new T.IR(this,this._ngZone,this._hostElement,this._platform),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add((0,y.T)(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(yt){if(!this._lines||!this._titles||!this._unscopedContent)return;yt&&this._checkDomForUnscopedTextContent();const be=this._explicitLines??this._inferLinesFromContent(),qe=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",be<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",be<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",2===be),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",3===be),this._hasUnscopedTextContent){const Ie=0===this._titles.length&&1===be;qe.classList.toggle("mdc-list-item__primary-text",Ie),qe.classList.toggle("mdc-list-item__secondary-text",!Ie)}else qe.classList.remove("mdc-list-item__primary-text"),qe.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let yt=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(yt+=1),yt}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(yt=>yt.nodeType!==yt.COMMENT_NODE).some(yt=>!(!yt.textContent||!yt.textContent.trim()))}}return ht.\u0275fac=function(yt){return new(yt||ht)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(fe,8),t.Y36(_.t4),t.Y36(T.Y2,8),t.Y36(t.QbO,8))},ht.\u0275dir=t.lG2({type:ht,contentQueries:function(yt,be,qe){if(1&yt&&(t.Suo(qe,at,4),t.Suo(qe,ye,4)),2&yt){let Ie;t.iGM(Ie=t.CRH())&&(be._avatars=Ie),t.iGM(Ie=t.CRH())&&(be._icons=Ie)}},hostVars:4,hostBindings:function(yt,be){2&yt&&(t.uIk("aria-disabled",be.disabled)("disabled",be._isButtonElement&&be.disabled||null),t.ekj("mdc-list-item--disabled",be.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}}),ht})(),he=(()=>{class ht extends fe{}return ht.\u0275fac=function(){let Ge;return function(be){return(Ge||(Ge=t.n5z(ht)))(be||ht)}}(),ht.\u0275cmp=t.Xpm({type:ht,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[t._Bn([{provide:fe,useExisting:ht}]),t.qOj],ngContentSelectors:Y,decls:1,vars:0,template:function(yt,be){1&yt&&(t.F$t(),t.Hsn(0))},styles:['@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-list-divider::after{content:"";display:block;border-bottom-width:1px;border-bottom-style:solid}}.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item__wrapper{display:block}.mdc-list-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer}.mdc-list-item:focus{outline:none}.mdc-list-item.mdc-list-item--with-one-line{height:48px}.mdc-list-item.mdc-list-item--with-two-lines{height:64px}.mdc-list-item.mdc-list-item--with-three-lines{height:88px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--disabled,.mdc-list-item.mdc-list-item--non-interactive{cursor:auto}.mdc-list-item:not(.mdc-list-item--selected):focus::before,.mdc-list-item.mdc-ripple-upgraded--background-focused::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item:not(.mdc-list-item--selected):focus::before,.mdc-list-item.mdc-ripple-upgraded--background-focused::before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px double rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item.mdc-list-item--selected::before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected:focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item.mdc-list-item--selected:focus::before{border-color:CanvasText}}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__content[for]{pointer-events:none}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item__overline-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start,.mdc-list-item--with-leading-avatar .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-avatar .mdc-list-item__start{border-radius:50%}.mdc-list-item--with-leading-icon.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--with-leading-icon .mdc-list-item__start[dir=rtl]{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-thumbnail.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-thumbnail.mdc-list-item,.mdc-list-item--with-leading-thumbnail.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-thumbnail .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-thumbnail .mdc-list-item__start,.mdc-list-item--with-leading-thumbnail .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-image.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-image.mdc-list-item,.mdc-list-item--with-leading-image.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-image .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-image .mdc-list-item__start,.mdc-list-item--with-leading-image .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-video.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-video.mdc-list-item,.mdc-list-item--with-leading-video.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-video .mdc-list-item__start{margin-left:0;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-video .mdc-list-item__start,.mdc-list-item--with-leading-video .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-checkbox.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-radio.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-radio.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-radio .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-radio .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-switch.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-switch.mdc-list-item,.mdc-list-item--with-leading-switch.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-switch .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-switch .mdc-list-item__start,.mdc-list-item--with-leading-switch .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item,.mdc-list-item--with-trailing-icon.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-icon .mdc-list-item__end,.mdc-list-item--with-trailing-icon .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item,.mdc-list-item--with-trailing-meta.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-trailing-meta .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-caption-font-family);font-size:var(--mdc-typography-caption-font-size);line-height:var(--mdc-typography-caption-line-height);font-weight:var(--mdc-typography-caption-font-weight);letter-spacing:var(--mdc-typography-caption-letter-spacing);text-decoration:var(--mdc-typography-caption-text-decoration);text-transform:var(--mdc-typography-caption-text-transform)}.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-radio.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-radio .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-radio .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-switch.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-switch.mdc-list-item,.mdc-list-item--with-trailing-switch.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-switch .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-switch .mdc-list-item__end,.mdc-list-item--with-trailing-switch .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-switch.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item{padding-left:16px;padding-right:16px}[dir=rtl] .mdc-list-item,.mdc-list-item[dir=rtl]{padding-left:16px;padding-right:16px}.mdc-list-group .mdc-deprecated-list{padding:0}.mdc-list-group__subheader{margin:calc((3rem - 1.5rem)/2) 16px}.mdc-list-divider{padding:0;background-clip:content-box}.mdc-list-divider.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset{padding-left:16px;padding-right:auto}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset,.mdc-list-divider.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:16px}.mdc-list-divider.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset{padding-left:auto;padding-right:16px}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset,.mdc-list-divider.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset[dir=rtl]{padding-left:16px;padding-right:auto}.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset{padding-left:0px;padding-right:auto}[dir=rtl] .mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:0px}[dir=rtl] .mdc-list-divider,.mdc-list-divider[dir=rtl]{padding:0}.mdc-list-item{background-color:var(--mdc-list-list-item-container-color)}.mdc-list-item.mdc-list-item--selected{background-color:var(--mdc-list-list-item-selected-container-color)}.mdc-list-item--with-one-line{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-one-line.mdc-list-item--with-leading-avatar,.mdc-list-item--with-one-line.mdc-list-item--with-leading-icon,.mdc-list-item--with-one-line.mdc-list-item--with-leading-thumbnail,.mdc-list-item--with-one-line.mdc-list-item--with-leading-checkbox,.mdc-list-item--with-one-line.mdc-list-item--with-leading-radio,.mdc-list-item--with-one-line.mdc-list-item--with-leading-switch{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-one-line.mdc-list-item--with-leading-image,.mdc-list-item--with-one-line.mdc-list-item--with-leading-video{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-two-lines{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-two-lines.mdc-list-item--with-leading-avatar,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-icon,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-thumbnail,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-checkbox,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-radio,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-switch,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-image,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-video{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-three-lines{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mdc-list-list-item-one-line-container-height)}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mdc-list-list-item-two-line-container-height)}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mdc-list-list-item-three-line-container-height)}.mdc-list-item__primary-text{color:var(--mdc-list-list-item-label-text-color)}.mdc-list-item__primary-text{font-family:var(--mdc-list-list-item-label-text-font);line-height:var(--mdc-list-list-item-label-text-line-height);font-size:var(--mdc-list-list-item-label-text-size);font-weight:var(--mdc-list-list-item-label-text-weight);letter-spacing:var(--mdc-list-list-item-label-text-tracking)}.mdc-list-item__secondary-text{color:var(--mdc-list-list-item-supporting-text-color)}.mdc-list-item__secondary-text{font-family:var(--mdc-list-list-item-supporting-text-font);line-height:var(--mdc-list-list-item-supporting-text-line-height);font-size:var(--mdc-list-list-item-supporting-text-size);font-weight:var(--mdc-list-list-item-supporting-text-weight);letter-spacing:var(--mdc-list-list-item-supporting-text-tracking)}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-leading-icon-color)}.mdc-list-item--with-leading-icon .mdc-list-item__start{width:var(--mdc-list-list-item-leading-icon-size);height:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start>i{font-size:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start .mdc-list-item__icon{font-size:var(--mdc-list-list-item-leading-icon-size);width:var(--mdc-list-list-item-leading-icon-size);height:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mdc-list-list-item-leading-avatar-size);height:var(--mdc-list-list-item-leading-avatar-size)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-supporting-text-color)}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mdc-list-list-item-trailing-supporting-text-font);line-height:var(--mdc-list-list-item-trailing-supporting-text-line-height);font-size:var(--mdc-list-list-item-trailing-supporting-text-size);font-weight:var(--mdc-list-list-item-trailing-supporting-text-weight);letter-spacing:var(--mdc-list-list-item-trailing-supporting-text-tracking)}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-icon-color)}.mdc-list-item--with-trailing-icon .mdc-list-item__end{width:var(--mdc-list-list-item-trailing-icon-size);height:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end>i{font-size:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end .mdc-list-item__icon{font-size:var(--mdc-list-list-item-trailing-icon-size);width:var(--mdc-list-list-item-trailing-icon-size);height:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-selected-trailing-icon-color)}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text,.mdc-list-item--disabled .mdc-list-item__overline-text{opacity:var(--mdc-list-list-item-disabled-label-text-opacity)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-disabled-leading-icon-color)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{opacity:var(--mdc-list-list-item-disabled-leading-icon-opacity)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-disabled-trailing-icon-color)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{opacity:var(--mdc-list-list-item-disabled-trailing-icon-opacity)}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mdc-list-list-item-hover-label-text-color)}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mdc-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mdc-list-list-item-hover-trailing-icon-color)}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mdc-list-list-item-focus-label-text-color)}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mdc-list-list-item-disabled-label-text-color)}.mdc-list-item:hover::before{background-color:var(--mdc-list-list-item-hover-state-layer-color);opacity:var(--mdc-list-list-item-hover-state-layer-opacity)}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mdc-list-list-item-disabled-state-layer-color);opacity:var(--mdc-list-list-item-disabled-state-layer-opacity)}.mdc-list-item:focus::before{background-color:var(--mdc-list-list-item-focus-state-layer-color);opacity:var(--mdc-list-list-item-focus-state-layer-opacity)}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mdc-list-list-item-disabled-label-text-opacity)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mdc-list-list-item-leading-avatar-shape);background-color:var(--mdc-list-list-item-leading-avatar-color)}.mat-mdc-list-base{--mdc-list-list-item-container-shape:0;--mdc-list-list-item-leading-avatar-shape:50%;--mdc-list-list-item-container-color:transparent;--mdc-list-list-item-selected-container-color:transparent;--mdc-list-list-item-leading-avatar-color:transparent;--mdc-list-list-item-leading-icon-size:24px;--mdc-list-list-item-leading-avatar-size:40px;--mdc-list-list-item-trailing-icon-size:24px;--mdc-list-list-item-disabled-state-layer-color:transparent;--mdc-list-list-item-disabled-state-layer-opacity:0;--mdc-list-list-item-disabled-label-text-opacity:0.38;--mdc-list-list-item-disabled-leading-icon-opacity:0.38;--mdc-list-list-item-disabled-trailing-icon-opacity:0.38}.cdk-high-contrast-active a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none}.mat-mdc-list-item>.mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-mdc-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}'],encapsulation:2,changeDetection:0}),ht})(),Me=(()=>{class ht extends Oe{get activated(){return this._activated}set activated(yt){this._activated=(0,e.Ig)(yt)}constructor(yt,be,qe,Ie,X,mt){super(yt,be,qe,Ie,X,mt),this._activated=!1}_getAriaCurrent(){return"A"===this._hostElement.nodeName&&this._activated?"page":null}}return ht.\u0275fac=function(yt){return new(yt||ht)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(fe,8),t.Y36(_.t4),t.Y36(T.Y2,8),t.Y36(t.QbO,8))},ht.\u0275cmp=t.Xpm({type:ht,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(yt,be,qe){if(1&yt&&(t.Suo(qe,ge,5),t.Suo(qe,U,5),t.Suo(qe,nt,5)),2&yt){let Ie;t.iGM(Ie=t.CRH())&&(be._lines=Ie),t.iGM(Ie=t.CRH())&&(be._titles=Ie),t.iGM(Ie=t.CRH())&&(be._meta=Ie)}},viewQuery:function(yt,be){if(1&yt&&(t.Gf(Q,5),t.Gf(J,5)),2&yt){let qe;t.iGM(qe=t.CRH())&&(be._unscopedContent=qe.first),t.iGM(qe=t.CRH())&&(be._itemText=qe.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:11,hostBindings:function(yt,be){2&yt&&(t.uIk("aria-current",be._getAriaCurrent()),t.ekj("mdc-list-item--activated",be.activated)("mdc-list-item--with-leading-avatar",0!==be._avatars.length)("mdc-list-item--with-leading-icon",0!==be._icons.length)("mdc-list-item--with-trailing-meta",0!==be._meta.length)("_mat-animation-noopable",be._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[t.qOj],ngContentSelectors:me,decls:10,vars:0,consts:[[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],["unscopedContent",""],[1,"mat-mdc-focus-indicator"]],template:function(yt,be){1&yt&&(t.F$t(ee),t.Hsn(0),t.TgZ(1,"span",0),t.Hsn(2,1),t.Hsn(3,2),t.TgZ(4,"span",1,2),t.NdJ("cdkObserveContent",function(){return be._updateItemLines(!0)}),t.Hsn(6,3),t.qZA()(),t.Hsn(7,4),t.Hsn(8,5),t._UZ(9,"div",3))},dependencies:[P.wD],encapsulation:2,changeDetection:0}),ht})(),Ut=(()=>{class ht{}return ht.\u0275fac=function(yt){return new(yt||ht)},ht.\u0275mod=t.oAB({type:ht}),ht.\u0275inj=t.cJS({imports:[P.Q8,d.ez,T.BQ,T.si,T.us,w.t]}),ht})()},8255:(We,q,m)=>{"use strict";m.d(q,{OP:()=>v,Tx:()=>pe,VK:()=>xe,p6:()=>Me});var t=m(4650),e=m(4761),_=m(1281),T=m(9521),s=m(7579),y=m(6451),h=m(727),P=m(9646),d=m(3101),w=m(8675),C=m(3900),L=m(5698),D=m(2722),z=m(9300),V=m(4086),Y=m(3238),j=m(6895),Q=m(4080),J=m(7340),ee=m(445),me=m(8184),re=m(3353),ie=m(531);const se=["mat-menu-item",""];function ce(Ve,Qe){1&Ve&&(t.O4$(),t.TgZ(0,"svg",3),t._UZ(1,"polygon",4),t.qZA())}const Ce=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],M=["mat-icon, [matMenuItemIcon]","*"];function i(Ve,Qe){if(1&Ve){const Pe=t.EpF();t.TgZ(0,"div",0),t.NdJ("keydown",function(rt){t.CHM(Pe);const Ke=t.oxw();return t.KtG(Ke._handleKeydown(rt))})("click",function(){t.CHM(Pe);const rt=t.oxw();return t.KtG(rt.closed.emit("click"))})("@transformMenu.start",function(rt){t.CHM(Pe);const Ke=t.oxw();return t.KtG(Ke._onAnimationStart(rt))})("@transformMenu.done",function(rt){t.CHM(Pe);const Ke=t.oxw();return t.KtG(Ke._onAnimationDone(rt))}),t.TgZ(1,"div",1),t.Hsn(2),t.qZA()()}if(2&Ve){const Pe=t.oxw();t.Q6J("id",Pe.panelId)("ngClass",Pe._classList)("@transformMenu",Pe._panelAnimationState),t.uIk("aria-label",Pe.ariaLabel||null)("aria-labelledby",Pe.ariaLabelledby||null)("aria-describedby",Pe.ariaDescribedby||null)}}const a=["*"],f=new t.OlP("MAT_MENU_PANEL"),l=(0,Y.Kr)((0,Y.Id)(class{}));let v=(()=>{class Ve extends l{constructor(Pe,de,rt,Ke,lt){super(),this._elementRef=Pe,this._document=de,this._focusMonitor=rt,this._parentMenu=Ke,this._changeDetectorRef=lt,this.role="menuitem",this._hovered=new s.x,this._focused=new s.x,this._highlighted=!1,this._triggersSubmenu=!1,Ke?.addItem?.(this)}focus(Pe,de){this._focusMonitor&&Pe?this._focusMonitor.focusVia(this._getHostElement(),Pe,de):this._getHostElement().focus(de),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(){const Pe=this._elementRef.nativeElement.cloneNode(!0),de=Pe.querySelectorAll("mat-icon, .material-icons");for(let rt=0;rt enter",(0,J.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,J.oB)({opacity:1,transform:"scale(1)"}))),(0,J.eR)("* => void",(0,J.jt)("100ms 25ms linear",(0,J.oB)({opacity:0})))]),fadeInItems:(0,J.X$)("fadeInItems",[(0,J.SB)("showing",(0,J.oB)({opacity:1})),(0,J.eR)("void => *",[(0,J.oB)({opacity:0}),(0,J.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let nt=0;const Ue=new t.OlP("mat-menu-default-options",{providedIn:"root",factory:function at(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let ye=(()=>{class Ve{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,_.Ig)(Pe)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(Pe){this._hasBackdrop=(0,_.Ig)(Pe)}set panelClass(Pe){const de=this._previousPanelClass;de&&de.length&&de.split(" ").forEach(rt=>{this._classList[rt]=!1}),this._previousPanelClass=Pe,Pe&&Pe.length&&(Pe.split(" ").forEach(rt=>{this._classList[rt]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(Pe){this.panelClass=Pe}constructor(Pe,de,rt,Ke){this._elementRef=Pe,this._ngZone=de,this._defaultOptions=rt,this._changeDetectorRef=Ke,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new t.n_E,this._classList={},this._panelAnimationState="void",this._animationDone=new s.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new t.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+nt++}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new e.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,w.O)(this._directDescendantItems),(0,C.w)(Pe=>(0,y.T)(...Pe.map(de=>de._focused)))).subscribe(Pe=>this._keyManager.updateActiveItem(Pe)),this._directDescendantItems.changes.subscribe(Pe=>{const de=this._keyManager;if("enter"===this._panelAnimationState&&de.activeItem?._hasFocus()){const rt=Pe.toArray(),Ke=Math.max(0,Math.min(rt.length-1,de.activeItemIndex||0));rt[Ke]&&!rt[Ke].disabled?de.setActiveItem(Ke):de.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe((0,w.O)(this._directDescendantItems),(0,C.w)(de=>(0,y.T)(...de.map(rt=>rt._hovered))))}addItem(Pe){}removeItem(Pe){}_handleKeydown(Pe){const de=Pe.keyCode,rt=this._keyManager;switch(de){case T.hY:(0,T.Vb)(Pe)||(Pe.preventDefault(),this.closed.emit("keydown"));break;case T.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case T.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(de===T.LH||de===T.JH)&&rt.setFocusOrigin("keyboard"),void rt.onKeydown(Pe)}Pe.stopPropagation()}focusFirstItem(Pe="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe((0,L.q)(1)).subscribe(()=>{let de=null;if(this._directDescendantItems.length&&(de=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!de||!de.contains(document.activeElement)){const rt=this._keyManager;rt.setFocusOrigin(Pe).setFirstItemActive(),!rt.activeItem&&de&&de.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(Pe){const de=Math.min(this._baseElevation+Pe,24),rt=`${this._elevationPrefix}${de}`,Ke=Object.keys(this._classList).find(lt=>lt.startsWith(this._elevationPrefix));(!Ke||Ke===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[rt]=!0,this._previousElevation=rt)}setPositionClasses(Pe=this.xPosition,de=this.yPosition){const rt=this._classList;rt["mat-menu-before"]="before"===Pe,rt["mat-menu-after"]="after"===Pe,rt["mat-menu-above"]="above"===de,rt["mat-menu-below"]="below"===de,this._changeDetectorRef?.markForCheck()}_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,w.O)(this._allItems)).subscribe(Pe=>{this._directDescendantItems.reset(Pe.filter(de=>de._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return Ve.\u0275fac=function(Pe){return new(Pe||Ve)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(Ue),t.Y36(t.sBO))},Ve.\u0275dir=t.lG2({type:Ve,contentQueries:function(Pe,de,rt){if(1&Pe&&(t.Suo(rt,n,5),t.Suo(rt,v,5),t.Suo(rt,v,4)),2&Pe){let Ke;t.iGM(Ke=t.CRH())&&(de.lazyContent=Ke.first),t.iGM(Ke=t.CRH())&&(de._allItems=Ke),t.iGM(Ke=t.CRH())&&(de.items=Ke)}},viewQuery:function(Pe,de){if(1&Pe&&t.Gf(t.Rgc,5),2&Pe){let rt;t.iGM(rt=t.CRH())&&(de.templateRef=rt.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"}}),Ve})(),xe=(()=>{class Ve extends ye{constructor(Pe,de,rt,Ke){super(Pe,de,rt,Ke),this._elevationPrefix="mat-elevation-z",this._baseElevation=8}}return Ve.\u0275fac=function(Pe){return new(Pe||Ve)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(Ue),t.Y36(t.sBO))},Ve.\u0275cmp=t.Xpm({type:Ve,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(Pe,de){2&Pe&&t.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[t._Bn([{provide:f,useExisting:Ve}]),t.qOj],ngContentSelectors:a,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mdc-menu-surface","mdc-menu-surface--open","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content","mdc-list"]],template:function(Pe,de){1&Pe&&(t.F$t(),t.YNc(0,i,3,6,"ng-template"))},dependencies:[j.mk],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;position:relative}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item.mdc-list-item{align-items:center}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item .mdc-list-item__primary-text{white-space:normal}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[O.transformMenu,O.fadeInItems]},changeDetection:0}),Ve})();const fe=new t.OlP("mat-menu-scroll-strategy"),oe={provide:fe,deps:[me.aV],useFactory:function Oe(Ve){return()=>Ve.scrollStrategies.reposition()}},Fe=(0,re.i$)({passive:!0});let he=(()=>{class Ve{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(de=>{this._destroyMenu(de),("click"===de||"tab"===de)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(de)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(Pe,de,rt,Ke,lt,Ut,ht,Ge,yt){this._overlay=Pe,this._element=de,this._viewContainerRef=rt,this._menuItemInstance=Ut,this._dir=ht,this._focusMonitor=Ge,this._ngZone=yt,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=h.w0.EMPTY,this._hoverSubscription=h.w0.EMPTY,this._menuCloseSubscription=h.w0.EMPTY,this._changeDetectorRef=(0,t.f3M)(t.sBO),this._handleTouchStart=be=>{(0,e.yG)(be)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new t.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new t.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=Ke,this._parentMaterialMenu=lt instanceof ye?lt:void 0,de.nativeElement.addEventListener("touchstart",this._handleTouchStart,Fe)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Fe),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&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const Pe=this.menu;if(this._menuOpen||!Pe)return;const de=this._createOverlay(Pe),rt=de.getConfig(),Ke=rt.positionStrategy;this._setPosition(Pe,Ke),rt.hasBackdrop=null==Pe.hasBackdrop?!this.triggersSubmenu():Pe.hasBackdrop,de.attach(this._getPortal(Pe)),Pe.lazyContent&&Pe.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(Pe),Pe instanceof ye&&(Pe._startAnimation(),Pe._directDescendantItems.changes.pipe((0,D.R)(Pe.close)).subscribe(()=>{Ke.withLockedPosition(!1).reapplyLastPosition(),Ke.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(Pe,de){this._focusMonitor&&Pe?this._focusMonitor.focusVia(this._element,Pe,de):this._element.nativeElement.focus(de)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(Pe){if(!this._overlayRef||!this.menuOpen)return;const de=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===Pe||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,de instanceof ye?(de._resetAnimation(),de.lazyContent?de._animationDone.pipe((0,z.h)(rt=>"void"===rt.toState),(0,L.q)(1),(0,D.R)(de.lazyContent._attached)).subscribe({next:()=>de.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),de?.lazyContent?.detach())}_initMenu(Pe){Pe.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,Pe.direction=this.dir,this._setMenuElevation(Pe),Pe.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(Pe){if(Pe.setElevation){let de=0,rt=Pe.parentMenu;for(;rt;)de++,rt=rt.parentMenu;Pe.setElevation(de)}}_setIsMenuOpen(Pe){Pe!==this._menuOpen&&(this._menuOpen=Pe,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(Pe),this._changeDetectorRef.markForCheck())}_createOverlay(Pe){if(!this._overlayRef){const de=this._getOverlayConfig(Pe);this._subscribeToPositions(Pe,de.positionStrategy),this._overlayRef=this._overlay.create(de),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(Pe){return new me.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:Pe.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:Pe.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(Pe,de){Pe.setPositionClasses&&de.positionChanges.subscribe(rt=>{const Ke="start"===rt.connectionPair.overlayX?"after":"before",lt="top"===rt.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>Pe.setPositionClasses(Ke,lt)):Pe.setPositionClasses(Ke,lt)})}_setPosition(Pe,de){let[rt,Ke]="before"===Pe.xPosition?["end","start"]:["start","end"],[lt,Ut]="above"===Pe.yPosition?["bottom","top"]:["top","bottom"],[ht,Ge]=[lt,Ut],[yt,be]=[rt,Ke],qe=0;if(this.triggersSubmenu()){if(be=rt="before"===Pe.xPosition?"start":"end",Ke=yt="end"===rt?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const Ie=this._parentMaterialMenu.items.first;this._parentInnerPadding=Ie?Ie._getHostElement().offsetTop:0}qe="bottom"===lt?this._parentInnerPadding:-this._parentInnerPadding}}else Pe.overlapTrigger||(ht="top"===lt?"bottom":"top",Ge="top"===Ut?"bottom":"top");de.withPositions([{originX:rt,originY:ht,overlayX:yt,overlayY:lt,offsetY:qe},{originX:Ke,originY:ht,overlayX:be,overlayY:lt,offsetY:qe},{originX:rt,originY:Ge,overlayX:yt,overlayY:Ut,offsetY:-qe},{originX:Ke,originY:Ge,overlayX:be,overlayY:Ut,offsetY:-qe}])}_menuClosingActions(){const Pe=this._overlayRef.backdropClick(),de=this._overlayRef.detachments(),rt=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,P.of)(),Ke=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,z.h)(lt=>lt!==this._menuItemInstance),(0,z.h)(()=>this._menuOpen)):(0,P.of)();return(0,y.T)(Pe,rt,Ke,de)}_handleMousedown(Pe){(0,e.X6)(Pe)||(this._openedBy=0===Pe.button?"mouse":void 0,this.triggersSubmenu()&&Pe.preventDefault())}_handleKeydown(Pe){const de=Pe.keyCode;(de===T.K5||de===T.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(de===T.SV&&"ltr"===this.dir||de===T.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,z.h)(Pe=>Pe===this._menuItemInstance&&!Pe.disabled),(0,V.g)(0,d.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ye&&this.menu._isAnimating?this.menu._animationDone.pipe((0,L.q)(1),(0,V.g)(0,d.E),(0,D.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(Pe){return(!this._portal||this._portal.templateRef!==Pe.templateRef)&&(this._portal=new Q.UE(Pe.templateRef,this._viewContainerRef)),this._portal}}return Ve.\u0275fac=function(Pe){return new(Pe||Ve)(t.Y36(me.aV),t.Y36(t.SBq),t.Y36(t.s_b),t.Y36(fe),t.Y36(f,8),t.Y36(v,10),t.Y36(ee.Is,8),t.Y36(e.tE),t.Y36(t.R0b))},Ve.\u0275dir=t.lG2({type:Ve,hostVars:3,hostBindings:function(Pe,de){1&Pe&&t.NdJ("click",function(Ke){return de._handleClick(Ke)})("mousedown",function(Ke){return de._handleMousedown(Ke)})("keydown",function(Ke){return de._handleKeydown(Ke)}),2&Pe&&t.uIk("aria-haspopup",de.menu?"menu":null)("aria-expanded",de.menuOpen)("aria-controls",de.menuOpen?de.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"}}),Ve})(),Me=(()=>{class Ve extends he{}return Ve.\u0275fac=function(){let Qe;return function(de){return(Qe||(Qe=t.n5z(Ve)))(de||Ve)}}(),Ve.\u0275dir=t.lG2({type:Ve,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],exportAs:["matMenuTrigger"],features:[t.qOj]}),Ve})(),pe=(()=>{class Ve{}return Ve.\u0275fac=function(Pe){return new(Pe||Ve)},Ve.\u0275mod=t.oAB({type:Ve}),Ve.\u0275inj=t.cJS({providers:[oe],imports:[j.ez,Y.si,Y.BQ,me.U8,ie.ZD,Y.BQ]}),Ve})()},8739:(We,q,m)=>{"use strict";m.d(q,{NW:()=>ce,TU:()=>Ce,ye:()=>Y});var t=m(6895),e=m(4650),_=m(7579),T=m(4859),s=m(4385),y=m(266),h=m(3238),P=m(1281),d=m(9549);function w(M,i){if(1&M&&(e.TgZ(0,"mat-option",19),e._uU(1),e.qZA()),2&M){const a=i.$implicit;e.Q6J("value",a),e.xp6(1),e.hij(" ",a," ")}}function C(M,i){if(1&M){const a=e.EpF();e.TgZ(0,"mat-form-field",16)(1,"mat-select",17),e.NdJ("selectionChange",function(l){e.CHM(a);const v=e.oxw(2);return e.KtG(v._changePageSize(l.value))}),e.YNc(2,w,2,2,"mat-option",18),e.qZA()()}if(2&M){const a=e.oxw(2);e.Q6J("appearance",a._formFieldAppearance)("color",a.color),e.xp6(1),e.Q6J("value",a.pageSize)("disabled",a.disabled)("aria-labelledby",a._pageSizeLabelId)("panelClass",a.selectConfig.panelClass||"")("disableOptionCentering",a.selectConfig.disableOptionCentering),e.xp6(1),e.Q6J("ngForOf",a._displayedPageSizeOptions)}}function L(M,i){if(1&M&&(e.TgZ(0,"div",20),e._uU(1),e.qZA()),2&M){const a=e.oxw(2);e.xp6(1),e.Oqu(a.pageSize)}}function D(M,i){if(1&M&&(e.TgZ(0,"div",12)(1,"div",13),e._uU(2),e.qZA(),e.YNc(3,C,3,8,"mat-form-field",14),e.YNc(4,L,2,1,"div",15),e.qZA()),2&M){const a=e.oxw();e.xp6(1),e.s9C("id",a._pageSizeLabelId),e.xp6(1),e.hij(" ",a._intl.itemsPerPageLabel," "),e.xp6(1),e.Q6J("ngIf",a._displayedPageSizeOptions.length>1),e.xp6(1),e.Q6J("ngIf",a._displayedPageSizeOptions.length<=1)}}function z(M,i){if(1&M){const a=e.EpF();e.TgZ(0,"button",21),e.NdJ("click",function(){e.CHM(a);const l=e.oxw();return e.KtG(l.firstPage())}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",22),e.qZA()()}if(2&M){const a=e.oxw();e.Q6J("matTooltip",a._intl.firstPageLabel)("matTooltipDisabled",a._previousButtonsDisabled())("matTooltipPosition","above")("disabled",a._previousButtonsDisabled()),e.uIk("aria-label",a._intl.firstPageLabel)}}function V(M,i){if(1&M){const a=e.EpF();e.O4$(),e.kcU(),e.TgZ(0,"button",23),e.NdJ("click",function(){e.CHM(a);const l=e.oxw();return e.KtG(l.lastPage())}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",24),e.qZA()()}if(2&M){const a=e.oxw();e.Q6J("matTooltip",a._intl.lastPageLabel)("matTooltipDisabled",a._nextButtonsDisabled())("matTooltipPosition","above")("disabled",a._nextButtonsDisabled()),e.uIk("aria-label",a._intl.lastPageLabel)}}let Y=(()=>{class M{constructor(){this.changes=new _.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(a,f,l)=>{if(0==l||0==f)return`0 of ${l}`;const v=a*f;return`${v+1} \u2013 ${v<(l=Math.max(l,0))?Math.min(v+f,l):v+f} of ${l}`}}}return M.\u0275fac=function(a){return new(a||M)},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})();const Q={provide:Y,deps:[[new e.FiY,new e.tp0,Y]],useFactory:function j(M){return M||new Y}},me=new e.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),re=(0,h.Id)((0,h.dB)(class{}));let ie=(()=>{class M extends re{get pageIndex(){return this._pageIndex}set pageIndex(a){this._pageIndex=Math.max((0,P.su)(a),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(a){this._length=(0,P.su)(a),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(a){this._pageSize=Math.max((0,P.su)(a),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(a){this._pageSizeOptions=(a||[]).map(f=>(0,P.su)(f)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(a){this._hidePageSize=(0,P.Ig)(a)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(a){this._showFirstLastButtons=(0,P.Ig)(a)}constructor(a,f,l){if(super(),this._intl=a,this._changeDetectorRef=f,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new e.vpe,this._intlChanges=a.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),l){const{pageSize:v,pageSizeOptions:I,hidePageSize:k,showFirstLastButtons:x}=l;null!=v&&(this._pageSize=v),null!=I&&(this._pageSizeOptions=I),null!=k&&(this._hidePageSize=k),null!=x&&(this._showFirstLastButtons=x)}}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const a=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(a)}previousPage(){if(!this.hasPreviousPage())return;const a=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(a)}firstPage(){if(!this.hasPreviousPage())return;const a=this.pageIndex;this.pageIndex=0,this._emitPageEvent(a)}lastPage(){if(!this.hasNextPage())return;const a=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(a)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const a=this.getNumberOfPages()-1;return this.pageIndexa-f),this._changeDetectorRef.markForCheck())}_emitPageEvent(a){this.page.emit({previousPageIndex:a,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return M.\u0275fac=function(a){e.$Z()},M.\u0275dir=e.lG2({type:M,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[e.qOj]}),M})(),se=0,ce=(()=>{class M extends ie{constructor(a,f,l){super(a,f,l),this._pageSizeLabelId="mat-paginator-page-size-label-"+se++,this._formFieldAppearance=l?.formFieldAppearance||"outline"}}return M.\u0275fac=function(a){return new(a||M)(e.Y36(Y),e.Y36(e.sBO),e.Y36(me,8))},M.\u0275cmp=e.Xpm({type:M,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[e.qOj],decls:14,vars:14,consts:[[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],["class","mat-mdc-paginator-page-size",4,"ngIf"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-mdc-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-mdc-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-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-page-size-label",3,"id"],["class","mat-mdc-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-mdc-paginator-page-size-value",4,"ngIf"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],["hideSingleSelectionIndicator","",3,"value","disabled","aria-labelledby","panelClass","disableOptionCentering","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-mdc-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-mdc-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-mdc-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(a,f){1&a&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,D,5,4,"div",2),e.TgZ(3,"div",3)(4,"div",4),e._uU(5),e.qZA(),e.YNc(6,z,3,5,"button",5),e.TgZ(7,"button",6),e.NdJ("click",function(){return f.previousPage()}),e.O4$(),e.TgZ(8,"svg",7),e._UZ(9,"path",8),e.qZA()(),e.kcU(),e.TgZ(10,"button",9),e.NdJ("click",function(){return f.nextPage()}),e.O4$(),e.TgZ(11,"svg",7),e._UZ(12,"path",10),e.qZA()(),e.YNc(13,V,3,5,"button",11),e.qZA()()()),2&a&&(e.xp6(2),e.Q6J("ngIf",!f.hidePageSize),e.xp6(3),e.hij(" ",f._intl.getRangeLabel(f.pageIndex,f.pageSize,f.length)," "),e.xp6(1),e.Q6J("ngIf",f.showFirstLastButtons),e.xp6(1),e.Q6J("matTooltip",f._intl.previousPageLabel)("matTooltipDisabled",f._previousButtonsDisabled())("matTooltipPosition","above")("disabled",f._previousButtonsDisabled()),e.uIk("aria-label",f._intl.previousPageLabel),e.xp6(3),e.Q6J("matTooltip",f._intl.nextPageLabel)("matTooltipDisabled",f._nextButtonsDisabled())("matTooltipPosition","above")("disabled",f._nextButtonsDisabled()),e.uIk("aria-label",f._intl.nextPageLabel),e.xp6(3),e.Q6J("ngIf",f.showFirstLastButtons))},dependencies:[t.sg,t.O5,T.RK,d.KE,s.gD,h.ey,y.gM],styles:[".mat-mdc-paginator{display:block}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.cdk-high-contrast-active .mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),M})(),Ce=(()=>{class M{}return M.\u0275fac=function(a){return new(a||M)},M.\u0275mod=e.oAB({type:M}),M.\u0275inj=e.cJS({providers:[Q],imports:[t.ez,T.ot,s.LD,y.AV]}),M})()},3162:(We,q,m)=>{"use strict";m.d(q,{Cv:()=>C,pW:()=>d});var t=m(4650),_=(m(6895),m(3238)),T=m(1281);const s=new t.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),P=(0,_.pj)(class{constructor(L){this._elementRef=L}},"primary");let d=(()=>{class L extends P{constructor(z,V,Y,j,Q){super(z),this._ngZone=V,this._changeDetectorRef=Y,this._animationMode=j,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new t.vpe,this._mode="determinate",this._transitionendHandler=J=>{0===this.animationEnd.observers.length||!J.target||!J.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation="NoopAnimations"===j,Q&&(Q.color&&(this.color=this.defaultColor=Q.color),this.mode=Q.mode||this.mode)}get value(){return this._value}set value(z){this._value=w((0,T.su)(z)),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(z){this._bufferValue=w((0,T.su)(z)),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(z){this._mode=z,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}}return L.\u0275fac=function(z){return new(z||L)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(t.QbO,8),t.Y36(s,8))},L.\u0275cmp=t.Xpm({type:L,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:8,hostBindings:function(z,V){2&z&&(t.uIk("aria-valuenow",V._isIndeterminate()?null:V.value)("mode",V.mode),t.ekj("_mat-animation-noopable",V._isNoopAnimation)("mdc-linear-progress--animation-ready",!V._isNoopAnimation)("mdc-linear-progress--indeterminate",V._isIndeterminate()))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[t.qOj],decls:7,vars:4,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(z,V){1&z&&(t.TgZ(0,"div",0),t._UZ(1,"div",1)(2,"div",2),t.qZA(),t.TgZ(3,"div",3),t._UZ(4,"span",4),t.qZA(),t.TgZ(5,"div",5),t._UZ(6,"span",4),t.qZA()),2&z&&(t.xp6(1),t.Udp("flex-basis",V._getBufferBarFlexBasis()),t.xp6(2),t.Udp("transform",V._getPrimaryBarTransform()))},styles:["@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half, 83.67142%))}100%{transform:translateX(var(--mdc-linear-progress-primary-full, 200.611057%))}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter, 37.651913%))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half, 84.386165%))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full, 160.277782%))}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(-10px)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half-neg, -83.67142%))}100%{transform:translateX(var(--mdc-linear-progress-primary-full-neg, -200.611057%))}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter-neg, -37.651913%))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half-neg, -84.386165%))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full-neg, -160.277782%))}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}@media screen and (forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;width:100%;height:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid}.mdc-linear-progress__buffer{display:flex;position:absolute;width:100%;height:100%}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering 250ms infinite linear}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__bar{right:0;-webkit-transform-origin:center right;transform-origin:center right}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__buffer-dots,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}.mdc-linear-progress--closed{opacity:0}.mdc-linear-progress--closed-animation-off .mdc-linear-progress__buffer-dots{animation:none}.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar,.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar .mdc-linear-progress__bar-inner{animation:none}.mdc-linear-progress__bar-inner{border-color:var(--mdc-linear-progress-active-indicator-color, #6200ee)}.mdc-linear-progress__buffer-dots{background-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23e6e6e6'/%3E%3C/svg%3E\")}.mdc-linear-progress__buffer-bar{background-color:#e6e6e6}.mdc-linear-progress{height:var(--mdc-linear-progress-track-height, 4px)}.mdc-linear-progress__bar-inner{border-top-width:var(--mdc-linear-progress-track-height, 4px)}.mdc-linear-progress__buffer-dots{background-size:10px var(--mdc-linear-progress-track-height, 4px)}.mat-mdc-progress-bar{display:block}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}"],encapsulation:2,changeDetection:0}),L})();function w(L,D=0,z=100){return Math.max(D,Math.min(z,L))}let C=(()=>{class L{}return L.\u0275fac=function(z){return new(z||L)},L.\u0275mod=t.oAB({type:L}),L.\u0275inj=t.cJS({imports:[_.BQ]}),L})()},1572:(We,q,m)=>{"use strict";m.d(q,{Cq:()=>z,Ou:()=>L});var t=m(4650),e=m(3238),_=m(1281),T=m(6895);const s=["determinateSpinner"];function y(V,Y){if(1&V&&(t.O4$(),t.TgZ(0,"svg",11),t._UZ(1,"circle",12),t.qZA()),2&V){const j=t.oxw();t.uIk("viewBox",j._viewBox()),t.xp6(1),t.Udp("stroke-dasharray",j._strokeCircumference(),"px")("stroke-dashoffset",j._strokeCircumference()/2,"px")("stroke-width",j._circleStrokeWidth(),"%"),t.uIk("r",j._circleRadius())}}const h=(0,e.pj)(class{constructor(V){this._elementRef=V}},"primary"),P=new t.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function d(){return{diameter:w}}}),w=100;let L=(()=>{class V extends h{constructor(j,Q,J){super(j),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=w,this._noopAnimations="NoopAnimations"===Q&&!!J&&!J._forceAnimations,J&&(J.color&&(this.color=this.defaultColor=J.color),J.diameter&&(this.diameter=J.diameter),J.strokeWidth&&(this.strokeWidth=J.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(j){this._value=Math.max(0,Math.min(100,(0,_.su)(j)))}get diameter(){return this._diameter}set diameter(j){this._diameter=(0,_.su)(j)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(j){this._strokeWidth=(0,_.su)(j)}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const j=2*this._circleRadius()+this.strokeWidth;return`0 0 ${j} ${j}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}}return V.\u0275fac=function(j){return new(j||V)(t.Y36(t.SBq),t.Y36(t.QbO,8),t.Y36(P))},V.\u0275cmp=t.Xpm({type:V,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(j,Q){if(1&j&&t.Gf(s,5),2&j){let J;t.iGM(J=t.CRH())&&(Q._determinateCircle=J.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:12,hostBindings:function(j,Q){2&j&&(t.uIk("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===Q.mode?Q.value:null)("mode",Q.mode),t.Udp("width",Q.diameter,"px")("height",Q.diameter,"px"),t.ekj("_mat-animation-noopable",Q._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===Q.mode))},inputs:{color:"color",mode:"mode",value:"value",diameter:"diameter",strokeWidth:"strokeWidth"},exportAs:["matProgressSpinner"],features:[t.qOj],decls:14,vars:11,consts:[["circle",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["determinateSpinner",""],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(j,Q){if(1&j&&(t.YNc(0,y,2,8,"ng-template",null,0,t.W1O),t.TgZ(2,"div",1,2),t.O4$(),t.TgZ(4,"svg",3),t._UZ(5,"circle",4),t.qZA()(),t.kcU(),t.TgZ(6,"div",5)(7,"div",6)(8,"div",7),t.GkF(9,8),t.qZA(),t.TgZ(10,"div",9),t.GkF(11,8),t.qZA(),t.TgZ(12,"div",10),t.GkF(13,8),t.qZA()()()),2&j){const J=t.MAs(1);t.xp6(4),t.uIk("viewBox",Q._viewBox()),t.xp6(1),t.Udp("stroke-dasharray",Q._strokeCircumference(),"px")("stroke-dashoffset",Q._strokeDashOffset(),"px")("stroke-width",Q._circleStrokeWidth(),"%"),t.uIk("r",Q._circleRadius()),t.xp6(4),t.Q6J("ngTemplateOutlet",J),t.xp6(2),t.Q6J("ngTemplateOutlet",J),t.xp6(2),t.Q6J("ngTemplateOutlet",J)}},dependencies:[T.tP],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color, transparent)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0}),V})(),z=(()=>{class V{}return V.\u0275fac=function(j){return new(j||V)},V.\u0275mod=t.oAB({type:V}),V.\u0275inj=t.cJS({imports:[T.ez,e.BQ]}),V})()},1948:(We,q,m)=>{"use strict";m.d(q,{Fk:()=>re,U0:()=>me,VQ:()=>ee});var t=m(4650),e=m(3238),_=m(4761),T=m(1281),s=m(5017),y=m(4006),h=m(6895);const P=["input"],d=["*"];let w=0;class C{constructor(se,ce){this.source=se,this.value=ce}}const L={provide:y.JU,useExisting:(0,t.Gpc)(()=>ee),multi:!0},D=new t.OlP("MatRadioGroup"),z=new t.OlP("mat-radio-default-options",{providedIn:"root",factory:function V(){return{color:"accent"}}});let Y=(()=>{class ie{get name(){return this._name}set name(ce){this._name=ce,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(ce){this._labelPosition="before"===ce?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(ce){this._value!==ce&&(this._value=ce,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(ce){this._selected=ce,this.value=ce?ce.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(ce){this._disabled=(0,T.Ig)(ce),this._markRadiosForCheck()}get required(){return this._required}set required(ce){this._required=(0,T.Ig)(ce),this._markRadiosForCheck()}constructor(ce){this._changeDetector=ce,this._value=null,this._name="mat-radio-group-"+w++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new t.vpe}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(ce=>{ce.name=this.name,ce._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(Ce=>{Ce.checked=this.value===Ce.value,Ce.checked&&(this._selected=Ce)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new C(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(ce=>ce._markForCheck())}writeValue(ce){this.value=ce,this._changeDetector.markForCheck()}registerOnChange(ce){this._controlValueAccessorChangeFn=ce}registerOnTouched(ce){this.onTouched=ce}setDisabledState(ce){this.disabled=ce,this._changeDetector.markForCheck()}}return ie.\u0275fac=function(ce){return new(ce||ie)(t.Y36(t.sBO))},ie.\u0275dir=t.lG2({type:ie,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),ie})();class j{constructor(se){this._elementRef=se}}const Q=(0,e.Kr)((0,e.sb)(j));let J=(()=>{class ie extends Q{get checked(){return this._checked}set checked(ce){const Ce=(0,T.Ig)(ce);this._checked!==Ce&&(this._checked=Ce,Ce&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!Ce&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),Ce&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(ce){this._value!==ce&&(this._value=ce,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===ce),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(ce){this._labelPosition=ce}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(ce){this._setDisabled((0,T.Ig)(ce))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(ce){this._required=(0,T.Ig)(ce)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(ce){this._color=ce}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(ce,Ce,M,i,a,f,l,v){super(Ce),this._changeDetector=M,this._focusMonitor=i,this._radioDispatcher=a,this._providerOverride=l,this._uniqueId="mat-radio-"+ ++w,this.id=this._uniqueId,this.change=new t.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=ce,this._noopAnimations="NoopAnimations"===f,v&&(this.tabIndex=(0,T.su)(v,0))}focus(ce,Ce){Ce?this._focusMonitor.focusVia(this._inputElement,Ce,ce):this._inputElement.nativeElement.focus(ce)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((ce,Ce)=>{ce!==this.id&&Ce===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(ce=>{!ce&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new C(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(ce){ce.stopPropagation()}_onInputInteraction(ce){if(ce.stopPropagation(),!this.checked&&!this.disabled){const Ce=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),Ce&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(ce){this._onInputInteraction(ce),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(ce){this._disabled!==ce&&(this._disabled=ce,this._changeDetector.markForCheck())}_updateTabIndex(){const ce=this.radioGroup;let Ce;if(Ce=ce&&ce.selected&&!this.disabled?ce.selected===this?this.tabIndex:-1:this.tabIndex,Ce!==this._previousTabIndex){const M=this._inputElement?.nativeElement;M&&(M.setAttribute("tabindex",Ce+""),this._previousTabIndex=Ce)}}}return ie.\u0275fac=function(ce){t.$Z()},ie.\u0275dir=t.lG2({type:ie,viewQuery:function(ce,Ce){if(1&ce&&t.Gf(P,5),2&ce){let M;t.iGM(M=t.CRH())&&(Ce._inputElement=M.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:[t.qOj]}),ie})(),ee=(()=>{class ie extends Y{}return ie.\u0275fac=function(){let se;return function(Ce){return(se||(se=t.n5z(ie)))(Ce||ie)}}(),ie.\u0275dir=t.lG2({type:ie,selectors:[["mat-radio-group"]],contentQueries:function(ce,Ce,M){if(1&ce&&t.Suo(M,me,5),2&ce){let i;t.iGM(i=t.CRH())&&(Ce._radios=i)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],exportAs:["matRadioGroup"],features:[t._Bn([L,{provide:D,useExisting:ie}]),t.qOj]}),ie})(),me=(()=>{class ie extends J{constructor(ce,Ce,M,i,a,f,l,v){super(ce,Ce,M,i,a,f,l,v)}}return ie.\u0275fac=function(ce){return new(ce||ie)(t.Y36(D,8),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(_.tE),t.Y36(s.A8),t.Y36(t.QbO,8),t.Y36(z,8),t.$8M("tabindex"))},ie.\u0275cmp=t.Xpm({type:ie,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(ce,Ce){1&ce&&t.NdJ("focus",function(){return Ce._inputElement.nativeElement.focus()}),2&ce&&(t.uIk("id",Ce.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),t.ekj("mat-primary","primary"===Ce.color)("mat-accent","accent"===Ce.color)("mat-warn","warn"===Ce.color)("mat-mdc-radio-checked",Ce.checked)("_mat-animation-noopable",Ce._noopAnimations))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[t.qOj],ngContentSelectors:d,decls:13,vars:17,consts:[[1,"mdc-form-field"],["formField",""],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"id","checked","disabled","required","change"],["input",""],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[3,"for"]],template:function(ce,Ce){if(1&ce&&(t.F$t(),t.TgZ(0,"div",0,1)(2,"div",2)(3,"div",3),t.NdJ("click",function(i){return Ce._onTouchTargetClick(i)}),t.qZA(),t.TgZ(4,"input",4,5),t.NdJ("change",function(i){return Ce._onInputInteraction(i)}),t.qZA(),t.TgZ(6,"div",6),t._UZ(7,"div",7)(8,"div",8),t.qZA(),t.TgZ(9,"div",9),t._UZ(10,"div",10),t.qZA()(),t.TgZ(11,"label",11),t.Hsn(12),t.qZA()()),2&ce){const M=t.MAs(1);t.ekj("mdc-form-field--align-end","before"==Ce.labelPosition),t.xp6(2),t.ekj("mdc-radio--disabled",Ce.disabled),t.xp6(2),t.Q6J("id",Ce.inputId)("checked",Ce.checked)("disabled",Ce.disabled)("required",Ce.required),t.uIk("name",Ce.name)("value",Ce.value)("aria-label",Ce.ariaLabel)("aria-labelledby",Ce.ariaLabelledby)("aria-describedby",Ce.ariaDescribedby),t.xp6(5),t.Q6J("matRippleTrigger",M)("matRippleDisabled",Ce._isRippleDisabled())("matRippleCentered",!0),t.xp6(2),t.Q6J("for",Ce.inputId)}},dependencies:[e.wG],styles:['.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio[hidden]{display:none}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size, 40px) - 20px) / 2)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-focus-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-hover-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-pressed-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color, #000)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color, #000)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size, 40px) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size, 40px) - 20px) / 2);width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);right:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);left:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-mdc-radio-ripple-color, transparent)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-mdc-radio-checked-ripple-color, transparent)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-mdc-radio-checked-ripple-color, transparent)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}[dir=rtl] .mat-mdc-radio-touch-target{left:0;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0}),ie})(),re=(()=>{class ie{}return ie.\u0275fac=function(ce){return new(ce||ie)},ie.\u0275mod=t.oAB({type:ie}),ie.\u0275inj=t.cJS({imports:[e.BQ,h.ez,e.si,e.BQ]}),ie})()},4385:(We,q,m)=>{"use strict";m.d(q,{$L:()=>xe,LD:()=>Oe,PG:()=>U,gD:()=>fe});var t=m(8184),e=m(6895),_=m(4650),T=m(3238),s=m(9549),y=m(531),h=m(4761),P=m(445),d=m(1281),w=m(5017),C=m(9521),L=m(4006),D=m(7579),z=m(9770),V=m(6451),Y=m(8675),j=m(3900),Q=m(5698),J=m(9300),ee=m(4004),me=m(1884),re=m(2722),ie=m(7340);const se=["trigger"],ce=["panel"];function Ce(oe,Fe){if(1&oe&&(_.TgZ(0,"span",10),_._uU(1),_.qZA()),2&oe){const De=_.oxw();_.xp6(1),_.Oqu(De.placeholder)}}function M(oe,Fe){if(1&oe&&(_.TgZ(0,"span",14),_._uU(1),_.qZA()),2&oe){const De=_.oxw(2);_.xp6(1),_.Oqu(De.triggerValue)}}function i(oe,Fe){1&oe&&_.Hsn(0,0,["*ngSwitchCase","true"])}function a(oe,Fe){if(1&oe&&(_.TgZ(0,"span",11),_.YNc(1,M,2,1,"span",12),_.YNc(2,i,1,0,"ng-content",13),_.qZA()),2&oe){const De=_.oxw();_.Q6J("ngSwitch",!!De.customTrigger),_.xp6(2),_.Q6J("ngSwitchCase",!0)}}function f(oe,Fe){if(1&oe){const De=_.EpF();_.O4$(),_.kcU(),_.TgZ(0,"div",15,16),_.NdJ("@transformPanel.done",function(Me){_.CHM(De);const pe=_.oxw();return _.KtG(pe._panelDoneAnimatingStream.next(Me.toState))})("keydown",function(Me){_.CHM(De);const pe=_.oxw();return _.KtG(pe._handleKeydown(Me))}),_.Hsn(2,1),_.qZA()}if(2&oe){const De=_.oxw();_.Gre("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",De._getPanelTheme(),""),_.Q6J("ngClass",De.panelClass)("@transformPanel","showing"),_.uIk("id",De.id+"-panel")("aria-multiselectable",De.multiple)("aria-label",De.ariaLabel||null)("aria-labelledby",De._getPanelAriaLabelledby())}}const l=[[["mat-select-trigger"]],"*"],v=["mat-select-trigger","*"],I={transformPanelWrap:(0,ie.X$)("transformPanelWrap",[(0,ie.eR)("* => void",(0,ie.IO)("@transformPanel",[(0,ie.pV)()],{optional:!0}))]),transformPanel:(0,ie.X$)("transformPanel",[(0,ie.SB)("void",(0,ie.oB)({opacity:0,transform:"scale(1, 0.8)"})),(0,ie.eR)("void => showing",(0,ie.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ie.oB)({opacity:1,transform:"scale(1, 1)"}))),(0,ie.eR)("* => void",(0,ie.jt)("100ms linear",(0,ie.oB)({opacity:0})))])};let g=0;const W=new _.OlP("mat-select-scroll-strategy"),U=new _.OlP("MAT_SELECT_CONFIG"),ge={provide:W,deps:[t.aV],useFactory:function O(oe){return()=>oe.scrollStrategies.reposition()}},nt=new _.OlP("MatSelectTrigger");class Ue{constructor(Fe,De){this.source=Fe,this.value=De}}const at=(0,T.Kr)((0,T.sb)((0,T.Id)((0,T.FD)(class{constructor(oe,Fe,De,he,Me){this._elementRef=oe,this._defaultErrorStateMatcher=Fe,this._parentForm=De,this._parentFormGroup=he,this.ngControl=Me,this.stateChanges=new D.x}}))));let ye=(()=>{class oe extends at{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(De){this._placeholder=De,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(L.kI.required)??!1}set required(De){this._required=(0,d.Ig)(De),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(De){this._multiple=(0,d.Ig)(De)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(De){this._disableOptionCentering=(0,d.Ig)(De)}get compareWith(){return this._compareWith}set compareWith(De){this._compareWith=De,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(De){this._assignValue(De)&&this._onChange(De)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(De){this._typeaheadDebounceInterval=(0,d.su)(De)}get id(){return this._id}set id(De){this._id=De||this._uid,this.stateChanges.next()}constructor(De,he,Me,pe,Ve,Qe,Pe,de,rt,Ke,lt,Ut,ht,Ge){super(Ve,pe,Pe,de,Ke),this._viewportRuler=De,this._changeDetectorRef=he,this._ngZone=Me,this._dir=Qe,this._parentFormField=rt,this._liveAnnouncer=ht,this._defaultOptions=Ge,this._panelOpen=!1,this._compareWith=(yt,be)=>yt===be,this._uid="mat-select-"+g++,this._triggerAriaLabelledBy=null,this._destroy=new D.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+g++,this._panelDoneAnimatingStream=new D.x,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,z.P)(()=>{const yt=this.options;return yt?yt.changes.pipe((0,Y.O)(yt),(0,j.w)(()=>(0,V.T)(...yt.map(be=>be.onSelectionChange)))):this._ngZone.onStable.pipe((0,Q.q)(1),(0,j.w)(()=>this.optionSelectionChanges))}),this.openedChange=new _.vpe,this._openedStream=this.openedChange.pipe((0,J.h)(yt=>yt),(0,ee.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,J.h)(yt=>!yt),(0,ee.U)(()=>{})),this.selectionChange=new _.vpe,this.valueChange=new _.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=Ge?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=Ge.typeaheadDebounceInterval),this._scrollStrategyFactory=Ut,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(lt)||0,this.id=this.id}ngOnInit(){this._selectionModel=new w.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,me.x)(),(0,re.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,re.R)(this._destroy)).subscribe(De=>{De.added.forEach(he=>he.select()),De.removed.forEach(he=>he.deselect())}),this.options.changes.pipe((0,Y.O)(null),(0,re.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const De=this._getTriggerAriaLabelledby(),he=this.ngControl;if(De!==this._triggerAriaLabelledBy){const Me=this._elementRef.nativeElement;this._triggerAriaLabelledBy=De,De?Me.setAttribute("aria-labelledby",De):Me.removeAttribute("aria-labelledby")}he&&(this._previousControl!==he.control&&(void 0!==this._previousControl&&null!==he.disabled&&he.disabled!==this.disabled&&(this.disabled=he.disabled),this._previousControl=he.control),this.updateErrorState())}ngOnChanges(De){(De.disabled||De.userAriaDescribedBy)&&this.stateChanges.next(),De.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),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(De){this._assignValue(De)}registerOnChange(De){this._onChange=De}registerOnTouched(De){this._onTouched=De}setDisabledState(De){this.disabled=De,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const De=this._selectionModel.selected.map(he=>he.viewValue);return this._isRtl()&&De.reverse(),De.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(De){this.disabled||(this.panelOpen?this._handleOpenKeydown(De):this._handleClosedKeydown(De))}_handleClosedKeydown(De){const he=De.keyCode,Me=he===C.JH||he===C.LH||he===C.oh||he===C.SV,pe=he===C.K5||he===C.L_,Ve=this._keyManager;if(!Ve.isTyping()&&pe&&!(0,C.Vb)(De)||(this.multiple||De.altKey)&&Me)De.preventDefault(),this.open();else if(!this.multiple){const Qe=this.selected;Ve.onKeydown(De);const Pe=this.selected;Pe&&Qe!==Pe&&this._liveAnnouncer.announce(Pe.viewValue,1e4)}}_handleOpenKeydown(De){const he=this._keyManager,Me=De.keyCode,pe=Me===C.JH||Me===C.LH,Ve=he.isTyping();if(pe&&De.altKey)De.preventDefault(),this.close();else if(Ve||Me!==C.K5&&Me!==C.L_||!he.activeItem||(0,C.Vb)(De))if(!Ve&&this._multiple&&Me===C.A&&De.ctrlKey){De.preventDefault();const Qe=this.options.some(Pe=>!Pe.disabled&&!Pe.selected);this.options.forEach(Pe=>{Pe.disabled||(Qe?Pe.select():Pe.deselect())})}else{const Qe=he.activeItemIndex;he.onKeydown(De),this._multiple&&pe&&De.shiftKey&&he.activeItem&&he.activeItemIndex!==Qe&&he.activeItem._selectViaInteraction()}else De.preventDefault(),he.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,Q.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.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(De){if(this.options.forEach(he=>he.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&De)Array.isArray(De),De.forEach(he=>this._selectOptionByValue(he)),this._sortValues();else{const he=this._selectOptionByValue(De);he?this._keyManager.updateActiveItem(he):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(De){const he=this.options.find(Me=>{if(this._selectionModel.isSelected(Me))return!1;try{return null!=Me.value&&this._compareWith(Me.value,De)}catch{return!1}});return he&&this._selectionModel.select(he),he}_assignValue(De){return!!(De!==this._value||this._multiple&&Array.isArray(De))&&(this.options&&this._setSelectionByValue(De),this._value=De,!0)}_initKeyManager(){this._keyManager=new h.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const De=(0,V.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,re.R)(De)).subscribe(he=>{this._onSelect(he.source,he.isUserInput),he.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,V.T)(...this.options.map(he=>he._stateChanges)).pipe((0,re.R)(De)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(De,he){const Me=this._selectionModel.isSelected(De);null!=De.value||this._multiple?(Me!==De.selected&&(De.selected?this._selectionModel.select(De):this._selectionModel.deselect(De)),he&&this._keyManager.setActiveItem(De),this.multiple&&(this._sortValues(),he&&this.focus())):(De.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(De.value)),Me!==this._selectionModel.isSelected(De)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const De=this.options.toArray();this._selectionModel.sort((he,Me)=>this.sortComparator?this.sortComparator(he,Me,De):De.indexOf(he)-De.indexOf(Me)),this.stateChanges.next()}}_propagateChanges(De){let he=null;he=this.multiple?this.selected.map(Me=>Me.value):this.selected?this.selected.value:De,this._value=he,this.valueChange.emit(he),this._onChange(he),this.selectionChange.emit(this._getChangeEvent(he)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(De){this._elementRef.nativeElement.focus(De)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const De=this._parentFormField?.getLabelId();return this.ariaLabelledby?(De?De+" ":"")+this.ariaLabelledby:De}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const De=this._parentFormField?.getLabelId();let he=(De?De+" ":"")+this._valueId;return this.ariaLabelledby&&(he+=" "+this.ariaLabelledby),he}_panelDoneAnimating(De){this.openedChange.emit(De)}setDescribedByIds(De){De.length?this._elementRef.nativeElement.setAttribute("aria-describedby",De.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return oe.\u0275fac=function(De){return new(De||oe)(_.Y36(y.rL),_.Y36(_.sBO),_.Y36(_.R0b),_.Y36(T.rD),_.Y36(_.SBq),_.Y36(P.Is,8),_.Y36(L.F,8),_.Y36(L.sg,8),_.Y36(s.G_,8),_.Y36(L.a5,10),_.$8M("tabindex"),_.Y36(W),_.Y36(h.Kd),_.Y36(U,8))},oe.\u0275dir=_.lG2({type:oe,viewQuery:function(De,he){if(1&De&&(_.Gf(se,5),_.Gf(ce,5),_.Gf(t.pI,5)),2&De){let Me;_.iGM(Me=_.CRH())&&(he.trigger=Me.first),_.iGM(Me=_.CRH())&&(he.panel=Me.first),_.iGM(Me=_.CRH())&&(he._overlayDir=Me.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],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:[_.qOj,_.TTD]}),oe})(),xe=(()=>{class oe{}return oe.\u0275fac=function(De){return new(De||oe)},oe.\u0275dir=_.lG2({type:oe,selectors:[["mat-select-trigger"]],features:[_._Bn([{provide:nt,useExisting:oe}])]}),oe})(),fe=(()=>{class oe extends ye{constructor(){super(...arguments),this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,re.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(),this._changeDetectorRef.detectChanges())})}ngAfterViewInit(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin())}open(){this._overlayWidth=this._getOverlayWidth(),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(De){const he=this.options.toArray()[De];if(he){const Me=this.panel.nativeElement,pe=(0,T.CB)(De,this.options,this.optionGroups),Ve=he._getHostElement();Me.scrollTop=0===De&&1===pe?0:(0,T.jH)(Ve.offsetTop,Ve.offsetHeight,Me.scrollTop,Me.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(De){return new Ue(this,De)}_getOverlayWidth(){return(this._preferredOverlayOrigin instanceof t.xu?this._preferredOverlayOrigin.elementRef:this._preferredOverlayOrigin||this._elementRef).nativeElement.getBoundingClientRect().width}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(De){this._hideSingleSelectionIndicator=(0,d.Ig)(De),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const De of this.options)De._changeDetectorRef.markForCheck()}}return oe.\u0275fac=function(){let Fe;return function(he){return(Fe||(Fe=_.n5z(oe)))(he||oe)}}(),oe.\u0275cmp=_.Xpm({type:oe,selectors:[["mat-select"]],contentQueries:function(De,he,Me){if(1&De&&(_.Suo(Me,nt,5),_.Suo(Me,T.ey,5),_.Suo(Me,T.K7,5)),2&De){let pe;_.iGM(pe=_.CRH())&&(he.customTrigger=pe.first),_.iGM(pe=_.CRH())&&(he.options=pe),_.iGM(pe=_.CRH())&&(he.optionGroups=pe)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(De,he){1&De&&_.NdJ("keydown",function(pe){return he._handleKeydown(pe)})("focus",function(){return he._onFocus()})("blur",function(){return he._onBlur()}),2&De&&(_.uIk("id",he.id)("tabindex",he.tabIndex)("aria-controls",he.panelOpen?he.id+"-panel":null)("aria-expanded",he.panelOpen)("aria-label",he.ariaLabel||null)("aria-required",he.required.toString())("aria-disabled",he.disabled.toString())("aria-invalid",he.errorState)("aria-activedescendant",he._getAriaActiveDescendant()),_.ekj("mat-mdc-select-disabled",he.disabled)("mat-mdc-select-invalid",he.errorState)("mat-mdc-select-required",he.required)("mat-mdc-select-empty",he.empty)("mat-mdc-select-multiple",he.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[_._Bn([{provide:s.Eo,useExisting:oe},{provide:T.HF,useExisting:oe}]),_.qOj],ngContentSelectors:v,decls:11,vars:11,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(De,he){if(1&De&&(_.F$t(l),_.TgZ(0,"div",0,1),_.NdJ("click",function(){return he.toggle()}),_.TgZ(3,"div",2),_.YNc(4,Ce,2,1,"span",3),_.YNc(5,a,3,2,"span",4),_.qZA(),_.TgZ(6,"div",5)(7,"div",6),_.O4$(),_.TgZ(8,"svg",7),_._UZ(9,"path",8),_.qZA()()()(),_.YNc(10,f,3,9,"ng-template",9),_.NdJ("backdropClick",function(){return he.close()})("attach",function(){return he._onAttached()})("detach",function(){return he.close()})),2&De){const Me=_.MAs(1);_.uIk("aria-owns",he.panelOpen?he.id+"-panel":null),_.xp6(3),_.Q6J("ngSwitch",he.empty),_.uIk("id",he._valueId),_.xp6(1),_.Q6J("ngSwitchCase",!0),_.xp6(1),_.Q6J("ngSwitchCase",!1),_.xp6(5),_.Q6J("cdkConnectedOverlayPanelClass",he._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",he._scrollStrategy)("cdkConnectedOverlayOrigin",he._preferredOverlayOrigin||Me)("cdkConnectedOverlayOpen",he.panelOpen)("cdkConnectedOverlayPositions",he._positions)("cdkConnectedOverlayWidth",he._overlayWidth)}},dependencies:[e.mk,e.RF,e.n9,e.ED,t.pI,t.xu],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mat-mdc-select{display:inline-block;width:100%;outline:none}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}.mdc-menu-surface.mat-mdc-select-panel{width:100%;max-height:275px;position:static;outline:0;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-select-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) .mdc-menu-surface.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above .mdc-menu-surface.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[I.transformPanel]},changeDetection:0}),oe})(),Oe=(()=>{class oe{}return oe.\u0275fac=function(De){return new(De||oe)},oe.\u0275mod=_.oAB({type:oe}),oe.\u0275inj=_.cJS({providers:[ge],imports:[e.ez,t.U8,T.Ng,T.BQ,y.ZD,s.lN,T.Ng,T.BQ]}),oe})()},3267:(We,q,m)=>{"use strict";m.d(q,{JX:()=>nt,Rh:()=>ge,SJ:()=>at,TM:()=>Ue});var t=m(531),e=m(6895),_=m(4650),T=m(3238),s=m(4761),y=m(445),h=m(1281),P=m(9521),d=m(3353),w=m(7579),C=m(4968),L=m(6451),D=m(9300),z=m(4004),V=m(9718),Y=m(2722),j=m(1884),Q=m(5698),J=m(8675),ee=m(8372),me=m(7340);const re=["*"],ie=["content"];function se(ye,xe){if(1&ye){const fe=_.EpF();_.TgZ(0,"div",2),_.NdJ("click",function(){_.CHM(fe);const oe=_.oxw();return _.KtG(oe._onBackdropClicked())}),_.qZA()}if(2&ye){const fe=_.oxw();_.ekj("mat-drawer-shown",fe._isShowingBackdrop())}}function ce(ye,xe){1&ye&&(_.TgZ(0,"mat-drawer-content"),_.Hsn(1,2),_.qZA())}const Ce=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],M=["mat-drawer","mat-drawer-content","*"];function i(ye,xe){if(1&ye){const fe=_.EpF();_.TgZ(0,"div",2),_.NdJ("click",function(){_.CHM(fe);const oe=_.oxw();return _.KtG(oe._onBackdropClicked())}),_.qZA()}if(2&ye){const fe=_.oxw();_.ekj("mat-drawer-shown",fe._isShowingBackdrop())}}function a(ye,xe){1&ye&&(_.TgZ(0,"mat-sidenav-content"),_.Hsn(1,2),_.qZA())}const f=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],l=["mat-sidenav","mat-sidenav-content","*"],I={transformDrawer:(0,me.X$)("transform",[(0,me.SB)("open, open-instant",(0,me.oB)({transform:"none",visibility:"visible"})),(0,me.SB)("void",(0,me.oB)({"box-shadow":"none",visibility:"hidden"})),(0,me.eR)("void => open-instant",(0,me.jt)("0ms")),(0,me.eR)("void <=> open, open-instant => void",(0,me.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},x=new _.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function g(){return!1}}),n=new _.OlP("MAT_DRAWER_CONTAINER");let W=(()=>{class ye extends t.PQ{constructor(fe,Oe,oe,Fe,De){super(oe,Fe,De),this._changeDetectorRef=fe,this._container=Oe}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return ye.\u0275fac=function(fe){return new(fe||ye)(_.Y36(_.sBO),_.Y36((0,_.Gpc)(()=>U)),_.Y36(_.SBq),_.Y36(t.mF),_.Y36(_.R0b))},ye.\u0275cmp=_.Xpm({type:ye,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(fe,Oe){2&fe&&_.Udp("margin-left",Oe._container._contentMargins.left,"px")("margin-right",Oe._container._contentMargins.right,"px")},features:[_._Bn([{provide:t.PQ,useExisting:ye}]),_.qOj],ngContentSelectors:re,decls:1,vars:0,template:function(fe,Oe){1&fe&&(_.F$t(),_.Hsn(0))},encapsulation:2,changeDetection:0}),ye})(),O=(()=>{class ye{get position(){return this._position}set position(fe){(fe="end"===fe?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(fe),this._position=fe,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(fe){this._mode=fe,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(fe){this._disableClose=(0,h.Ig)(fe)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(fe){("true"===fe||"false"===fe||null==fe)&&(fe=(0,h.Ig)(fe)),this._autoFocus=fe}get opened(){return this._opened}set opened(fe){this.toggle((0,h.Ig)(fe))}constructor(fe,Oe,oe,Fe,De,he,Me,pe){this._elementRef=fe,this._focusTrapFactory=Oe,this._focusMonitor=oe,this._platform=Fe,this._ngZone=De,this._interactivityChecker=he,this._doc=Me,this._container=pe,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new w.x,this._animationEnd=new w.x,this._animationState="void",this.openedChange=new _.vpe(!0),this._openedStream=this.openedChange.pipe((0,D.h)(Ve=>Ve),(0,z.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,D.h)(Ve=>Ve.fromState!==Ve.toState&&0===Ve.toState.indexOf("open")),(0,V.h)(void 0)),this._closedStream=this.openedChange.pipe((0,D.h)(Ve=>!Ve),(0,z.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,D.h)(Ve=>Ve.fromState!==Ve.toState&&"void"===Ve.toState),(0,V.h)(void 0)),this._destroyed=new w.x,this.onPositionChanged=new _.vpe,this._modeChanged=new w.x,this.openedChange.subscribe(Ve=>{Ve?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,C.R)(this._elementRef.nativeElement,"keydown").pipe((0,D.h)(Ve=>Ve.keyCode===P.hY&&!this.disableClose&&!(0,P.Vb)(Ve)),(0,Y.R)(this._destroyed)).subscribe(Ve=>this._ngZone.run(()=>{this.close(),Ve.stopPropagation(),Ve.preventDefault()}))}),this._animationEnd.pipe((0,j.x)((Ve,Qe)=>Ve.fromState===Qe.fromState&&Ve.toState===Qe.toState)).subscribe(Ve=>{const{fromState:Qe,toState:Pe}=Ve;(0===Pe.indexOf("open")&&"void"===Qe||"void"===Pe&&0===Qe.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(fe,Oe){this._interactivityChecker.isFocusable(fe)||(fe.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const oe=()=>{fe.removeEventListener("blur",oe),fe.removeEventListener("mousedown",oe),fe.removeAttribute("tabindex")};fe.addEventListener("blur",oe),fe.addEventListener("mousedown",oe)})),fe.focus(Oe)}_focusByCssSelector(fe,Oe){let oe=this._elementRef.nativeElement.querySelector(fe);oe&&this._forceFocus(oe,Oe)}_takeFocus(){if(!this._focusTrap)return;const fe=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Oe=>{!Oe&&"function"==typeof this._elementRef.nativeElement.focus&&fe.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(fe){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,fe):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const fe=this._doc.activeElement;return!!fe&&this._elementRef.nativeElement.contains(fe)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(fe){return this.toggle(!0,fe)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(fe=!this.opened,Oe){fe&&Oe&&(this._openedVia=Oe);const oe=this._setOpen(fe,!fe&&this._isFocusWithinDrawer(),this._openedVia||"program");return fe||(this._openedVia=null),oe}_setOpen(fe,Oe,oe){return this._opened=fe,fe?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",Oe&&this._restoreFocus(oe)),this._updateFocusTrapState(),new Promise(Fe=>{this.openedChange.pipe((0,Q.q)(1)).subscribe(De=>Fe(De?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(fe){const Oe=this._elementRef.nativeElement,oe=Oe.parentNode;"end"===fe?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),oe.insertBefore(this._anchor,Oe)),oe.appendChild(Oe)):this._anchor&&this._anchor.parentNode.insertBefore(Oe,this._anchor)}}return ye.\u0275fac=function(fe){return new(fe||ye)(_.Y36(_.SBq),_.Y36(s.qV),_.Y36(s.tE),_.Y36(d.t4),_.Y36(_.R0b),_.Y36(s.ic),_.Y36(e.K0,8),_.Y36(n,8))},ye.\u0275cmp=_.Xpm({type:ye,selectors:[["mat-drawer"]],viewQuery:function(fe,Oe){if(1&fe&&_.Gf(ie,5),2&fe){let oe;_.iGM(oe=_.CRH())&&(Oe._content=oe.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(fe,Oe){1&fe&&_.WFA("@transform.start",function(Fe){return Oe._animationStarted.next(Fe)})("@transform.done",function(Fe){return Oe._animationEnd.next(Fe)}),2&fe&&(_.uIk("align",null),_.d8E("@transform",Oe._animationState),_.ekj("mat-drawer-end","end"===Oe.position)("mat-drawer-over","over"===Oe.mode)("mat-drawer-push","push"===Oe.mode)("mat-drawer-side","side"===Oe.mode)("mat-drawer-opened",Oe.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:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(fe,Oe){1&fe&&(_.F$t(),_.TgZ(0,"div",0,1),_.Hsn(2),_.qZA())},dependencies:[t.PQ],encapsulation:2,data:{animation:[I.transformDrawer]},changeDetection:0}),ye})(),U=(()=>{class ye{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(fe){this._autosize=(0,h.Ig)(fe)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(fe){this._backdropOverride=null==fe?null:(0,h.Ig)(fe)}get scrollable(){return this._userContent||this._content}constructor(fe,Oe,oe,Fe,De,he=!1,Me){this._dir=fe,this._element=Oe,this._ngZone=oe,this._changeDetectorRef=Fe,this._animationMode=Me,this._drawers=new _.n_E,this.backdropClick=new _.vpe,this._destroyed=new w.x,this._doCheckSubject=new w.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new w.x,fe&&fe.change.pipe((0,Y.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),De.change().pipe((0,Y.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=he}ngAfterContentInit(){this._allDrawers.changes.pipe((0,J.O)(this._allDrawers),(0,Y.R)(this._destroyed)).subscribe(fe=>{this._drawers.reset(fe.filter(Oe=>!Oe._container||Oe._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,J.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(fe=>{this._watchDrawerToggle(fe),this._watchDrawerPosition(fe),this._watchDrawerMode(fe)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,ee.b)(10),(0,Y.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(fe=>fe.open())}close(){this._drawers.forEach(fe=>fe.close())}updateContentMargins(){let fe=0,Oe=0;if(this._left&&this._left.opened)if("side"==this._left.mode)fe+=this._left._getWidth();else if("push"==this._left.mode){const oe=this._left._getWidth();fe+=oe,Oe-=oe}if(this._right&&this._right.opened)if("side"==this._right.mode)Oe+=this._right._getWidth();else if("push"==this._right.mode){const oe=this._right._getWidth();Oe+=oe,fe-=oe}fe=fe||null,Oe=Oe||null,(fe!==this._contentMargins.left||Oe!==this._contentMargins.right)&&(this._contentMargins={left:fe,right:Oe},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(fe){fe._animationStarted.pipe((0,D.h)(Oe=>Oe.fromState!==Oe.toState),(0,Y.R)(this._drawers.changes)).subscribe(Oe=>{"open-instant"!==Oe.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==fe.mode&&fe.openedChange.pipe((0,Y.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(fe.opened))}_watchDrawerPosition(fe){fe&&fe.onPositionChanged.pipe((0,Y.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,Q.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(fe){fe&&fe._modeChanged.pipe((0,Y.R)((0,L.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(fe){const Oe=this._element.nativeElement.classList,oe="mat-drawer-container-has-open";fe?Oe.add(oe):Oe.remove(oe)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(fe=>{"end"==fe.position?this._end=fe:this._start=fe}),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(fe=>fe&&!fe.disableClose&&this._canHaveBackdrop(fe)).forEach(fe=>fe._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(fe){return"side"!==fe.mode||!!this._backdropOverride}_isDrawerOpen(fe){return null!=fe&&fe.opened}}return ye.\u0275fac=function(fe){return new(fe||ye)(_.Y36(y.Is,8),_.Y36(_.SBq),_.Y36(_.R0b),_.Y36(_.sBO),_.Y36(t.rL),_.Y36(x),_.Y36(_.QbO,8))},ye.\u0275cmp=_.Xpm({type:ye,selectors:[["mat-drawer-container"]],contentQueries:function(fe,Oe,oe){if(1&fe&&(_.Suo(oe,W,5),_.Suo(oe,O,5)),2&fe){let Fe;_.iGM(Fe=_.CRH())&&(Oe._content=Fe.first),_.iGM(Fe=_.CRH())&&(Oe._allDrawers=Fe)}},viewQuery:function(fe,Oe){if(1&fe&&_.Gf(W,5),2&fe){let oe;_.iGM(oe=_.CRH())&&(Oe._userContent=oe.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(fe,Oe){2&fe&&_.ekj("mat-drawer-container-explicit-backdrop",Oe._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[_._Bn([{provide:n,useExisting:ye}])],ngContentSelectors:M,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(fe,Oe){1&fe&&(_.F$t(Ce),_.YNc(0,se,1,2,"div",0),_.Hsn(1),_.Hsn(2,1),_.YNc(3,ce,2,0,"mat-drawer-content",1)),2&fe&&(_.Q6J("ngIf",Oe.hasBackdrop),_.xp6(3),_.Q6J("ngIf",!Oe._content))},dependencies:[e.O5,W],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[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),ye})(),ge=(()=>{class ye extends W{constructor(fe,Oe,oe,Fe,De){super(fe,Oe,oe,Fe,De)}}return ye.\u0275fac=function(fe){return new(fe||ye)(_.Y36(_.sBO),_.Y36((0,_.Gpc)(()=>Ue)),_.Y36(_.SBq),_.Y36(t.mF),_.Y36(_.R0b))},ye.\u0275cmp=_.Xpm({type:ye,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(fe,Oe){2&fe&&_.Udp("margin-left",Oe._container._contentMargins.left,"px")("margin-right",Oe._container._contentMargins.right,"px")},features:[_._Bn([{provide:t.PQ,useExisting:ye}]),_.qOj],ngContentSelectors:re,decls:1,vars:0,template:function(fe,Oe){1&fe&&(_.F$t(),_.Hsn(0))},encapsulation:2,changeDetection:0}),ye})(),nt=(()=>{class ye extends O{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(fe){this._fixedInViewport=(0,h.Ig)(fe)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(fe){this._fixedTopGap=(0,h.su)(fe)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(fe){this._fixedBottomGap=(0,h.su)(fe)}}return ye.\u0275fac=function(){let xe;return function(Oe){return(xe||(xe=_.n5z(ye)))(Oe||ye)}}(),ye.\u0275cmp=_.Xpm({type:ye,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(fe,Oe){2&fe&&(_.uIk("align",null),_.Udp("top",Oe.fixedInViewport?Oe.fixedTopGap:null,"px")("bottom",Oe.fixedInViewport?Oe.fixedBottomGap:null,"px"),_.ekj("mat-drawer-end","end"===Oe.position)("mat-drawer-over","over"===Oe.mode)("mat-drawer-push","push"===Oe.mode)("mat-drawer-side","side"===Oe.mode)("mat-drawer-opened",Oe.opened)("mat-sidenav-fixed",Oe.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[_.qOj],ngContentSelectors:re,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(fe,Oe){1&fe&&(_.F$t(),_.TgZ(0,"div",0,1),_.Hsn(2),_.qZA())},dependencies:[t.PQ],encapsulation:2,data:{animation:[I.transformDrawer]},changeDetection:0}),ye})(),Ue=(()=>{class ye extends U{}return ye.\u0275fac=function(){let xe;return function(Oe){return(xe||(xe=_.n5z(ye)))(Oe||ye)}}(),ye.\u0275cmp=_.Xpm({type:ye,selectors:[["mat-sidenav-container"]],contentQueries:function(fe,Oe,oe){if(1&fe&&(_.Suo(oe,ge,5),_.Suo(oe,nt,5)),2&fe){let Fe;_.iGM(Fe=_.CRH())&&(Oe._content=Fe.first),_.iGM(Fe=_.CRH())&&(Oe._allDrawers=Fe)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(fe,Oe){2&fe&&_.ekj("mat-drawer-container-explicit-backdrop",Oe._backdropOverride)},exportAs:["matSidenavContainer"],features:[_._Bn([{provide:n,useExisting:ye}]),_.qOj],ngContentSelectors:l,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(fe,Oe){1&fe&&(_.F$t(f),_.YNc(0,i,1,2,"div",0),_.Hsn(1),_.Hsn(2,1),_.YNc(3,a,2,0,"mat-sidenav-content",1)),2&fe&&(_.Q6J("ngIf",Oe.hasBackdrop),_.xp6(3),_.Q6J("ngIf",!Oe._content))},dependencies:[e.O5,ge],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[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),ye})(),at=(()=>{class ye{}return ye.\u0275fac=function(fe){return new(fe||ye)},ye.\u0275mod=_.oAB({type:ye}),ye.\u0275inj=_.cJS({imports:[e.ez,T.BQ,t.ZD,t.ZD,T.BQ]}),ye})()},455:(We,q,m)=>{"use strict";m.d(q,{Rr:()=>V,rP:()=>J});var t=m(4650),e=m(4006),_=m(4761),T=m(3238),s=m(1281),y=m(6895);const h=["switch"],P=["*"],d=new t.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})}),w={provide:e.JU,useExisting:(0,t.Gpc)(()=>V),multi:!0};class C{constructor(me,re){this.source=me,this.checked=re}}let L=0;const D=(0,T.sb)((0,T.pj)((0,T.Kr)((0,T.Id)(class{constructor(ee){this._elementRef=ee}}))));let z=(()=>{class ee extends D{get required(){return this._required}set required(re){this._required=(0,s.Ig)(re)}get checked(){return this._checked}set checked(re){this._checked=(0,s.Ig)(re),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(re,ie,se,ce,Ce,M,i){super(re),this._focusMonitor=ie,this._changeDetectorRef=se,this.defaults=Ce,this._onChange=a=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new t.vpe,this.toggleChange=new t.vpe,this.tabIndex=parseInt(ce)||0,this.color=this.defaultColor=Ce.color||"accent",this._noopAnimations="NoopAnimations"===M,this.id=this._uniqueId=`${i}${++L}`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(re=>{"keyboard"===re||"program"===re?(this._focused=!0,this._changeDetectorRef.markForCheck()):re||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(re){this.checked=!!re}registerOnChange(re){this._onChange=re}registerOnTouched(re){this._onTouched=re}setDisabledState(re){this.disabled=re,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return ee.\u0275fac=function(re){t.$Z()},ee.\u0275dir=t.lG2({type:ee,inputs:{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"},features:[t.qOj]}),ee})(),V=(()=>{class ee extends z{get buttonId(){return`${this.id||this._uniqueId}-button`}constructor(re,ie,se,ce,Ce,M){super(re,ie,se,ce,Ce,M,"mat-mdc-slide-toggle-"),this._labelId=this._uniqueId+"-label"}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new C(this,this.checked)))}focus(){this._switchElement.nativeElement.focus()}_createChangeEvent(re){return new C(this,re)}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}}return ee.\u0275fac=function(re){return new(re||ee)(t.Y36(t.SBq),t.Y36(_.tE),t.Y36(t.sBO),t.$8M("tabindex"),t.Y36(d),t.Y36(t.QbO,8))},ee.\u0275cmp=t.Xpm({type:ee,selectors:[["mat-slide-toggle"]],viewQuery:function(re,ie){if(1&re&&t.Gf(h,5),2&re){let se;t.iGM(se=t.CRH())&&(ie._switchElement=se.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:11,hostBindings:function(re,ie){2&re&&(t.Ikx("id",ie.id),t.uIk("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),t.ekj("mat-mdc-slide-toggle-focused",ie._focused)("mat-mdc-slide-toggle-checked",ie.checked)("_mat-animation-noopable",ie._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[t._Bn([w]),t.qOj],ngContentSelectors:P,decls:17,vars:24,consts:[[1,"mdc-form-field"],["role","switch","type","button",1,"mdc-switch",3,"tabIndex","disabled","click"],["switch",""],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],["viewBox","0 0 24 24",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"],[3,"for","click"]],template:function(re,ie){if(1&re&&(t.F$t(),t.TgZ(0,"div",0)(1,"button",1,2),t.NdJ("click",function(){return ie._handleClick()}),t._UZ(3,"div",3),t.TgZ(4,"div",4)(5,"div",5)(6,"div",6),t._UZ(7,"div",7),t.qZA(),t.TgZ(8,"div",8),t._UZ(9,"div",9),t.qZA(),t.TgZ(10,"div",10),t.O4$(),t.TgZ(11,"svg",11),t._UZ(12,"path",12),t.qZA(),t.TgZ(13,"svg",13),t._UZ(14,"path",14),t.qZA()()()()(),t.kcU(),t.TgZ(15,"label",15),t.NdJ("click",function(ce){return ce.stopPropagation()}),t.Hsn(16),t.qZA()()),2&re){const se=t.MAs(2);t.ekj("mdc-form-field--align-end","before"==ie.labelPosition),t.xp6(1),t.ekj("mdc-switch--selected",ie.checked)("mdc-switch--unselected",!ie.checked)("mdc-switch--checked",ie.checked)("mdc-switch--disabled",ie.disabled),t.Q6J("tabIndex",ie.tabIndex)("disabled",ie.disabled),t.uIk("id",ie.buttonId)("name",ie.name)("aria-label",ie.ariaLabel)("aria-labelledby",ie._getAriaLabelledBy())("aria-describedby",ie.ariaDescribedby)("aria-required",ie.required||null)("aria-checked",ie.checked),t.xp6(8),t.Q6J("matRippleTrigger",se)("matRippleDisabled",ie.disableRipple||ie.disabled)("matRippleCentered",!0),t.xp6(6),t.Q6J("for",ie.buttonId),t.uIk("id",ie._labelId)}},dependencies:[T.wG],styles:['.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color, #fff)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mdc-switch{width:var(--mdc-switch-track-width, 36px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color, #616161)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color, #424242)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color, var(--mdc-theme-surface, #fff))}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation, 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__focus-ring-wrapper,.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height, 20px)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__handle::after{opacity:var(--mdc-switch-disabled-handle-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape, 10px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width, 20px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width, 20px))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size, 18px);height:var(--mdc-switch-selected-icon-size, 18px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size, 18px);height:var(--mdc-switch-unselected-icon-size, 18px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity, 0.04)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity, 0.04)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size, 48px);width:var(--mdc-switch-state-layer-size, 48px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height, 14px)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color, #424242)}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color, #424242)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape, 7px)}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:opacity 75ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}'],encapsulation:2,changeDetection:0}),ee})(),Q=(()=>{class ee{}return ee.\u0275fac=function(re){return new(re||ee)},ee.\u0275mod=t.oAB({type:ee}),ee.\u0275inj=t.cJS({}),ee})(),J=(()=>{class ee{}return ee.\u0275fac=function(re){return new(re||ee)},ee.\u0275mod=t.oAB({type:ee}),ee.\u0275inj=t.cJS({imports:[Q,T.BQ,T.si,y.ez,Q,T.BQ]}),ee})()},7009:(We,q,m)=>{"use strict";m.d(q,{Ve:()=>l,ZX:()=>a,ux:()=>I});var t=m(4650),e=m(7579),_=m(6895),T=m(4859),s=m(7340),y=m(4080),h=m(3353),P=m(5698),d=m(2722),w=m(4761),C=m(2289),L=m(8184),D=m(3238);function z(k,x){if(1&k){const n=t.EpF();t.TgZ(0,"div",2)(1,"button",3),t.NdJ("click",function(){t.CHM(n);const W=t.oxw();return t.KtG(W.action())}),t._uU(2),t.qZA()()}if(2&k){const n=t.oxw();t.xp6(2),t.hij(" ",n.data.action," ")}}const V=["label"];function Y(k,x){}const j=Math.pow(2,31)-1;class Q{constructor(x,n){this._overlayRef=n,this._afterDismissed=new e.x,this._afterOpened=new e.x,this._onAction=new e.x,this._dismissedByAction=!1,this.containerInstance=x,x._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(x){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(x,j))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const J=new t.OlP("MatSnackBarData");class ee{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let me=(()=>{class k{}return k.\u0275fac=function(n){return new(n||k)},k.\u0275dir=t.lG2({type:k,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]}),k})(),re=(()=>{class k{}return k.\u0275fac=function(n){return new(n||k)},k.\u0275dir=t.lG2({type:k,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]}),k})(),ie=(()=>{class k{}return k.\u0275fac=function(n){return new(n||k)},k.\u0275dir=t.lG2({type:k,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]}),k})(),se=(()=>{class k{constructor(n,g){this.snackBarRef=n,this.data=g}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return k.\u0275fac=function(n){return new(n||k)(t.Y36(Q),t.Y36(J))},k.\u0275cmp=t.Xpm({type:k,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions","",4,"ngIf"],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(n,g){1&n&&(t.TgZ(0,"div",0),t._uU(1),t.qZA(),t.YNc(2,z,3,1,"div",1)),2&n&&(t.xp6(1),t.hij(" ",g.data.message,"\n"),t.xp6(1),t.Q6J("ngIf",g.hasAction))},dependencies:[_.O5,T.lW,me,re,ie],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0}),k})();const ce={snackBarState:(0,s.X$)("state",[(0,s.SB)("void, hidden",(0,s.oB)({transform:"scale(0.8)",opacity:0})),(0,s.SB)("visible",(0,s.oB)({transform:"scale(1)",opacity:1})),(0,s.eR)("* => visible",(0,s.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,s.eR)("* => void, * => hidden",(0,s.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,s.oB)({opacity:0})))])};let Ce=0,M=(()=>{class k extends y.en{constructor(n,g,W,O,U){super(),this._ngZone=n,this._elementRef=g,this._changeDetectorRef=W,this._platform=O,this.snackBarConfig=U,this._document=(0,t.f3M)(_.K0),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new e.x,this._onExit=new e.x,this._onEnter=new e.x,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+Ce++,this.attachDomPortal=ge=>{this._assertNotAttached();const nt=this._portalOutlet.attachDomPortal(ge);return this._afterPortalAttached(),nt},this._live="assertive"!==U.politeness||U.announcementMessage?"off"===U.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(n){this._assertNotAttached();const g=this._portalOutlet.attachComponentPortal(n);return this._afterPortalAttached(),g}attachTemplatePortal(n){this._assertNotAttached();const g=this._portalOutlet.attachTemplatePortal(n);return this._afterPortalAttached(),g}onAnimationEnd(n){const{fromState:g,toState:W}=n;if(("void"===W&&"void"!==g||"hidden"===W)&&this._completeExit(),"visible"===W){const O=this._onEnter;this._ngZone.run(()=>{O.next(),O.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,P.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const n=this._elementRef.nativeElement,g=this.snackBarConfig.panelClass;g&&(Array.isArray(g)?g.forEach(W=>n.classList.add(W)):n.classList.add(g)),this._exposeToModals()}_exposeToModals(){const n=this._liveElementId,g=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let W=0;W{const g=n.getAttribute("aria-owns");if(g){const W=g.replace(this._liveElementId,"").trim();W.length>0?n.setAttribute("aria-owns",W):n.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const n=this._elementRef.nativeElement.querySelector("[aria-hidden]"),g=this._elementRef.nativeElement.querySelector("[aria-live]");if(n&&g){let W=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&n.contains(document.activeElement)&&(W=document.activeElement),n.removeAttribute("aria-hidden"),g.appendChild(n),W?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return k.\u0275fac=function(n){return new(n||k)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(h.t4),t.Y36(ee))},k.\u0275dir=t.lG2({type:k,viewQuery:function(n,g){if(1&n&&t.Gf(y.Pl,7),2&n){let W;t.iGM(W=t.CRH())&&(g._portalOutlet=W.first)}},features:[t.qOj]}),k})(),i=(()=>{class k extends M{_afterPortalAttached(){super._afterPortalAttached();const n=this._label.nativeElement,g="mdc-snackbar__label";n.classList.toggle(g,!n.querySelector(`.${g}`))}}return k.\u0275fac=function(){let x;return function(g){return(x||(x=t.n5z(k)))(g||k)}}(),k.\u0275cmp=t.Xpm({type:k,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,g){if(1&n&&t.Gf(V,7),2&n){let W;t.iGM(W=t.CRH())&&(g._label=W.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(n,g){1&n&&t.WFA("@state.done",function(O){return g.onAnimationEnd(O)}),2&n&&t.d8E("@state",g._animationState)},features:[t.qOj],decls:6,vars:3,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(n,g){1&n&&(t.TgZ(0,"div",0)(1,"div",1,2)(3,"div",3),t.YNc(4,Y,0,0,"ng-template",4),t.qZA(),t._UZ(5,"div"),t.qZA()()),2&n&&(t.xp6(5),t.uIk("aria-live",g._live)("role",g._role)("id",g._liveElementId))},dependencies:[y.Pl],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__dismiss .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__dismiss svg,.mat-mdc-snack-bar-container .mdc-snackbar__dismiss img{width:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px));height:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size, inherit);font-family:var(--mdc-snackbar-supporting-text-font, inherit);font-weight:var(--mdc-snackbar-supporting-text-weight, inherit);line-height:var(--mdc-snackbar-supporting-text-line-height, inherit)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-mdc-snack-bar-button-color, transparent);--mat-mdc-button-persistent-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{background-color:currentColor;opacity:.1}.mat-mdc-snack-bar-container .mdc-snackbar__label::before{display:none}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[ce.snackBarState]}}),k})(),a=(()=>{class k{}return k.\u0275fac=function(n){return new(n||k)},k.\u0275mod=t.oAB({type:k}),k.\u0275inj=t.cJS({imports:[L.U8,y.eL,_.ez,T.ot,D.BQ,D.BQ]}),k})();const l=new t.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function f(){return new ee}});let v=(()=>{class k{get _openedSnackBarRef(){const n=this._parentSnackBar;return n?n._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(n){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=n:this._snackBarRefAtThisLevel=n}constructor(n,g,W,O,U,ge){this._overlay=n,this._live=g,this._injector=W,this._breakpointObserver=O,this._parentSnackBar=U,this._defaultConfig=ge,this._snackBarRefAtThisLevel=null}openFromComponent(n,g){return this._attach(n,g)}openFromTemplate(n,g){return this._attach(n,g)}open(n,g="",W){const O={...this._defaultConfig,...W};return O.data={message:n,action:g},O.announcementMessage===n&&(O.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,O)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(n,g){const O=t.zs3.create({parent:g&&g.viewContainerRef&&g.viewContainerRef.injector||this._injector,providers:[{provide:ee,useValue:g}]}),U=new y.C5(this.snackBarContainerComponent,g.viewContainerRef,O),ge=n.attach(U);return ge.instance.snackBarConfig=g,ge.instance}_attach(n,g){const W={...new ee,...this._defaultConfig,...g},O=this._createOverlay(W),U=this._attachSnackBarContainer(O,W),ge=new Q(U,O);if(n instanceof t.Rgc){const nt=new y.UE(n,null,{$implicit:W.data,snackBarRef:ge});ge.instance=U.attachTemplatePortal(nt)}else{const nt=this._createInjector(W,ge),Ue=new y.C5(n,void 0,nt),at=U.attachComponentPortal(Ue);ge.instance=at.instance}return this._breakpointObserver.observe(C.u3.HandsetPortrait).pipe((0,d.R)(O.detachments())).subscribe(nt=>{O.overlayElement.classList.toggle(this.handsetCssClass,nt.matches)}),W.announcementMessage&&U._onAnnounce.subscribe(()=>{this._live.announce(W.announcementMessage,W.politeness)}),this._animateSnackBar(ge,W),this._openedSnackBarRef=ge,this._openedSnackBarRef}_animateSnackBar(n,g){n.afterDismissed().subscribe(()=>{this._openedSnackBarRef==n&&(this._openedSnackBarRef=null),g.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{n.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):n.containerInstance.enter(),g.duration&&g.duration>0&&n.afterOpened().subscribe(()=>n._dismissAfter(g.duration))}_createOverlay(n){const g=new L.X_;g.direction=n.direction;let W=this._overlay.position().global();const O="rtl"===n.direction,U="left"===n.horizontalPosition||"start"===n.horizontalPosition&&!O||"end"===n.horizontalPosition&&O,ge=!U&&"center"!==n.horizontalPosition;return U?W.left("0"):ge?W.right("0"):W.centerHorizontally(),"top"===n.verticalPosition?W.top("0"):W.bottom("0"),g.positionStrategy=W,this._overlay.create(g)}_createInjector(n,g){return t.zs3.create({parent:n&&n.viewContainerRef&&n.viewContainerRef.injector||this._injector,providers:[{provide:Q,useValue:g},{provide:J,useValue:n.data}]})}}return k.\u0275fac=function(n){return new(n||k)(t.LFG(L.aV),t.LFG(w.Kd),t.LFG(t.zs3),t.LFG(C.Yg),t.LFG(k,12),t.LFG(l))},k.\u0275prov=t.Yz7({token:k,factory:k.\u0275fac}),k})(),I=(()=>{class k extends v{constructor(n,g,W,O,U,ge){super(n,g,W,O,U,ge),this.simpleSnackBarComponent=se,this.snackBarContainerComponent=i,this.handsetCssClass="mat-mdc-snack-bar-handset"}}return k.\u0275fac=function(n){return new(n||k)(t.LFG(L.aV),t.LFG(w.Kd),t.LFG(t.zs3),t.LFG(C.Yg),t.LFG(k,12),t.LFG(l))},k.\u0275prov=t.Yz7({token:k,factory:k.\u0275fac,providedIn:a}),k})()},6308:(We,q,m)=>{"use strict";m.d(q,{JX:()=>i,YE:()=>J,nU:()=>M});var t=m(4650),e=m(4761),_=m(1281),T=m(9521),s=m(3238),y=m(7579),h=m(6451),P=m(7340),d=m(6895);const w=["mat-sort-header",""];function C(a,f){if(1&a){const l=t.EpF();t.TgZ(0,"div",3),t.NdJ("@arrowPosition.start",function(){t.CHM(l);const I=t.oxw();return t.KtG(I._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){t.CHM(l);const I=t.oxw();return t.KtG(I._disableViewStateAnimation=!1)}),t._UZ(1,"div",4),t.TgZ(2,"div",5),t._UZ(3,"div",6)(4,"div",7)(5,"div",8),t.qZA()()}if(2&a){const l=t.oxw();t.Q6J("@arrowOpacity",l._getArrowViewState())("@arrowPosition",l._getArrowViewState())("@allowChildren",l._getArrowDirectionState()),t.xp6(2),t.Q6J("@indicator",l._getArrowDirectionState()),t.xp6(1),t.Q6J("@leftPointer",l._getArrowDirectionState()),t.xp6(1),t.Q6J("@rightPointer",l._getArrowDirectionState())}}const L=["*"],j=new t.OlP("MAT_SORT_DEFAULT_OPTIONS"),Q=(0,s.dB)((0,s.Id)(class{}));let J=(()=>{class a extends Q{get direction(){return this._direction}set direction(l){this._direction=l}get disableClear(){return this._disableClear}set disableClear(l){this._disableClear=(0,_.Ig)(l)}constructor(l){super(),this._defaultOptions=l,this.sortables=new Map,this._stateChanges=new y.x,this.start="asc",this._direction="",this.sortChange=new t.vpe}register(l){this.sortables.set(l.id,l)}deregister(l){this.sortables.delete(l.id)}sort(l){this.active!=l.id?(this.active=l.id,this.direction=l.start?l.start:this.start):this.direction=this.getNextSortDirection(l),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(l){if(!l)return"";let I=function ee(a,f){let l=["asc","desc"];return"desc"==a&&l.reverse(),f||l.push(""),l}(l.start||this.start,l?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),k=I.indexOf(this.direction)+1;return k>=I.length&&(k=0),I[k]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return a.\u0275fac=function(l){return new(l||a)(t.Y36(j,8))},a.\u0275dir=t.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:[t.qOj,t.TTD]}),a})();const me=s.mZ.ENTERING+" "+s.yN.STANDARD_CURVE,re={indicator:(0,P.X$)("indicator",[(0,P.SB)("active-asc, asc",(0,P.oB)({transform:"translateY(0px)"})),(0,P.SB)("active-desc, desc",(0,P.oB)({transform:"translateY(10px)"})),(0,P.eR)("active-asc <=> active-desc",(0,P.jt)(me))]),leftPointer:(0,P.X$)("leftPointer",[(0,P.SB)("active-asc, asc",(0,P.oB)({transform:"rotate(-45deg)"})),(0,P.SB)("active-desc, desc",(0,P.oB)({transform:"rotate(45deg)"})),(0,P.eR)("active-asc <=> active-desc",(0,P.jt)(me))]),rightPointer:(0,P.X$)("rightPointer",[(0,P.SB)("active-asc, asc",(0,P.oB)({transform:"rotate(45deg)"})),(0,P.SB)("active-desc, desc",(0,P.oB)({transform:"rotate(-45deg)"})),(0,P.eR)("active-asc <=> active-desc",(0,P.jt)(me))]),arrowOpacity:(0,P.X$)("arrowOpacity",[(0,P.SB)("desc-to-active, asc-to-active, active",(0,P.oB)({opacity:1})),(0,P.SB)("desc-to-hint, asc-to-hint, hint",(0,P.oB)({opacity:.54})),(0,P.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,P.oB)({opacity:0})),(0,P.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,P.jt)("0ms")),(0,P.eR)("* <=> *",(0,P.jt)(me))]),arrowPosition:(0,P.X$)("arrowPosition",[(0,P.eR)("* => desc-to-hint, * => desc-to-active",(0,P.jt)(me,(0,P.F4)([(0,P.oB)({transform:"translateY(-25%)"}),(0,P.oB)({transform:"translateY(0)"})]))),(0,P.eR)("* => hint-to-desc, * => active-to-desc",(0,P.jt)(me,(0,P.F4)([(0,P.oB)({transform:"translateY(0)"}),(0,P.oB)({transform:"translateY(25%)"})]))),(0,P.eR)("* => asc-to-hint, * => asc-to-active",(0,P.jt)(me,(0,P.F4)([(0,P.oB)({transform:"translateY(25%)"}),(0,P.oB)({transform:"translateY(0)"})]))),(0,P.eR)("* => hint-to-asc, * => active-to-asc",(0,P.jt)(me,(0,P.F4)([(0,P.oB)({transform:"translateY(0)"}),(0,P.oB)({transform:"translateY(-25%)"})]))),(0,P.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,P.oB)({transform:"translateY(0)"})),(0,P.SB)("hint-to-desc, active-to-desc, desc",(0,P.oB)({transform:"translateY(-25%)"})),(0,P.SB)("hint-to-asc, active-to-asc, asc",(0,P.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,P.X$)("allowChildren",[(0,P.eR)("* <=> *",[(0,P.IO)("@*",(0,P.pV)(),{optional:!0})])])};let ie=(()=>{class a{constructor(){this.changes=new y.x}}return a.\u0275fac=function(l){return new(l||a)},a.\u0275prov=t.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();const ce={provide:ie,deps:[[new t.FiY,new t.tp0,ie]],useFactory:function se(a){return a||new ie}},Ce=(0,s.Id)(class{});let M=(()=>{class a extends Ce{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(l){this._updateSortActionDescription(l)}get disableClear(){return this._disableClear}set disableClear(l){this._disableClear=(0,_.Ig)(l)}constructor(l,v,I,k,x,n,g,W){super(),this._intl=l,this._changeDetectorRef=v,this._sort=I,this._columnDef=k,this._focusMonitor=x,this._elementRef=n,this._ariaDescriber=g,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",W?.arrowPosition&&(this.arrowPosition=W?.arrowPosition),this._handleStateChanges()}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(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(l=>{const v=!!l;v!==this._showIndicatorHint&&(this._setIndicatorHintVisible(v),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(l){this._isDisabled()&&l||(this._showIndicatorHint=l,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(l){this._viewState=l||{},this._disableViewStateAnimation&&(this._viewState={toState:l.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(l){!this._isDisabled()&&(l.keyCode===T.L_||l.keyCode===T.K5)&&(l.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 l=this._viewState.fromState;return(l?`${l}-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(l){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,l)),this._sortActionDescription=l}_handleStateChanges(){this._rerenderSubscription=(0,h.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(l){return new(l||a)(t.Y36(ie),t.Y36(t.sBO),t.Y36(J,8),t.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),t.Y36(e.tE),t.Y36(t.SBq),t.Y36(e.$s,8),t.Y36(j,8))},a.\u0275cmp=t.Xpm({type:a,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(l,v){1&l&&t.NdJ("click",function(){return v._handleClick()})("keydown",function(k){return v._handleKeydown(k)})("mouseenter",function(){return v._setIndicatorHintVisible(!0)})("mouseleave",function(){return v._setIndicatorHintVisible(!1)}),2&l&&(t.uIk("aria-sort",v._getAriaSortAttribute()),t.ekj("mat-sort-header-disabled",v._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[t.qOj],attrs:w,ngContentSelectors:L,decls:4,vars:7,consts:[[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(l,v){1&l&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1),t.Hsn(2),t.qZA(),t.YNc(3,C,6,6,"div",2),t.qZA()),2&l&&(t.ekj("mat-sort-header-sorted",v._isSorted())("mat-sort-header-position-before","before"===v.arrowPosition),t.uIk("tabindex",v._isDisabled()?null:0)("role",v._isDisabled()?null:"button"),t.xp6(3),t.Q6J("ngIf",v._renderArrow()))},dependencies:[d.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-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.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}"],encapsulation:2,data:{animation:[re.indicator,re.leftPointer,re.rightPointer,re.arrowOpacity,re.arrowPosition,re.allowChildren]},changeDetection:0}),a})(),i=(()=>{class a{}return a.\u0275fac=function(l){return new(l||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({providers:[ce],imports:[d.ez,s.BQ]}),a})()},8425:(We,q,m)=>{"use strict";m.d(q,{C0:()=>De,Ic:()=>Me,T5:()=>Ve,VY:()=>U,Vq:()=>he,fd:()=>pe,z9:()=>oe});var t=m(4080),e=m(2138),_=m(6895),T=m(4650),s=m(3238),y=m(7392),h=m(4761),P=m(7579),d=m(727),w=m(445),C=m(3900),L=m(4004),D=m(8675),z=m(2722),V=m(1884),Y=m(7340);function j(Qe,Pe){if(1&Qe&&T.GkF(0,8),2&Qe){const de=T.oxw();T.Q6J("ngTemplateOutlet",de.iconOverrides[de.state])("ngTemplateOutletContext",de._getIconContext())}}function Q(Qe,Pe){if(1&Qe&&(T.TgZ(0,"span",13),T._uU(1),T.qZA()),2&Qe){const de=T.oxw(2);T.xp6(1),T.Oqu(de._getDefaultTextForState(de.state))}}function J(Qe,Pe){if(1&Qe&&(T.TgZ(0,"span",14),T._uU(1),T.qZA()),2&Qe){const de=T.oxw(2);T.xp6(1),T.Oqu(de._intl.completedLabel)}}function ee(Qe,Pe){if(1&Qe&&(T.TgZ(0,"span",14),T._uU(1),T.qZA()),2&Qe){const de=T.oxw(2);T.xp6(1),T.Oqu(de._intl.editableLabel)}}function me(Qe,Pe){if(1&Qe&&(T.TgZ(0,"mat-icon",13),T._uU(1),T.qZA()),2&Qe){const de=T.oxw(2);T.xp6(1),T.Oqu(de._getDefaultTextForState(de.state))}}function re(Qe,Pe){if(1&Qe&&(T.ynx(0,9),T.YNc(1,Q,2,1,"span",10),T.YNc(2,J,2,1,"span",11),T.YNc(3,ee,2,1,"span",11),T.YNc(4,me,2,1,"mat-icon",12),T.BQk()),2&Qe){const de=T.oxw();T.Q6J("ngSwitch",de.state),T.xp6(1),T.Q6J("ngSwitchCase","number"),T.xp6(1),T.Q6J("ngIf","done"===de.state),T.xp6(1),T.Q6J("ngIf","edit"===de.state)}}function ie(Qe,Pe){if(1&Qe&&(T.TgZ(0,"div",15),T.GkF(1,16),T.qZA()),2&Qe){const de=T.oxw();T.xp6(1),T.Q6J("ngTemplateOutlet",de._templateLabel().template)}}function se(Qe,Pe){if(1&Qe&&(T.TgZ(0,"div",15),T._uU(1),T.qZA()),2&Qe){const de=T.oxw();T.xp6(1),T.Oqu(de.label)}}function ce(Qe,Pe){if(1&Qe&&(T.TgZ(0,"div",17),T._uU(1),T.qZA()),2&Qe){const de=T.oxw();T.xp6(1),T.Oqu(de._intl.optionalLabel)}}function Ce(Qe,Pe){if(1&Qe&&(T.TgZ(0,"div",18),T._uU(1),T.qZA()),2&Qe){const de=T.oxw();T.xp6(1),T.Oqu(de.errorMessage)}}function M(Qe,Pe){}function i(Qe,Pe){if(1&Qe&&(T.Hsn(0),T.YNc(1,M,0,0,"ng-template",0)),2&Qe){const de=T.oxw();T.xp6(1),T.Q6J("cdkPortalOutlet",de._portal)}}const a=["*"];function f(Qe,Pe){1&Qe&&T._UZ(0,"div",11)}const l=function(Qe,Pe){return{step:Qe,i:Pe}};function v(Qe,Pe){if(1&Qe&&(T.ynx(0),T.GkF(1,9),T.YNc(2,f,1,0,"div",10),T.BQk()),2&Qe){const de=Pe.$implicit,rt=Pe.index,Ke=Pe.last;T.oxw(2);const lt=T.MAs(4);T.xp6(1),T.Q6J("ngTemplateOutlet",lt)("ngTemplateOutletContext",T.WLB(3,l,de,rt)),T.xp6(1),T.Q6J("ngIf",!Ke)}}const I=function(Qe){return{animationDuration:Qe}},k=function(Qe,Pe){return{value:Qe,params:Pe}};function x(Qe,Pe){if(1&Qe){const de=T.EpF();T.TgZ(0,"div",12),T.NdJ("@horizontalStepTransition.done",function(Ke){T.CHM(de);const lt=T.oxw(2);return T.KtG(lt._animationDone.next(Ke))}),T.GkF(1,13),T.qZA()}if(2&Qe){const de=Pe.$implicit,rt=Pe.index,Ke=T.oxw(2);T.ekj("mat-horizontal-stepper-content-inactive",Ke.selectedIndex!==rt),T.Q6J("@horizontalStepTransition",T.WLB(8,k,Ke._getAnimationDirection(rt),T.VKq(6,I,Ke._getAnimationDuration())))("id",Ke._getStepContentId(rt)),T.uIk("aria-labelledby",Ke._getStepLabelId(rt)),T.xp6(1),T.Q6J("ngTemplateOutlet",de.content)}}function n(Qe,Pe){if(1&Qe&&(T.TgZ(0,"div",4)(1,"div",5),T.YNc(2,v,3,6,"ng-container",6),T.qZA(),T.TgZ(3,"div",7),T.YNc(4,x,2,11,"div",8),T.qZA()()),2&Qe){const de=T.oxw();T.xp6(2),T.Q6J("ngForOf",de.steps),T.xp6(2),T.Q6J("ngForOf",de.steps)}}function g(Qe,Pe){if(1&Qe){const de=T.EpF();T.TgZ(0,"div",15),T.GkF(1,9),T.TgZ(2,"div",16)(3,"div",17),T.NdJ("@verticalStepTransition.done",function(Ke){T.CHM(de);const lt=T.oxw(2);return T.KtG(lt._animationDone.next(Ke))}),T.TgZ(4,"div",18),T.GkF(5,13),T.qZA()()()()}if(2&Qe){const de=Pe.$implicit,rt=Pe.index,Ke=Pe.last,lt=T.oxw(2),Ut=T.MAs(4);T.xp6(1),T.Q6J("ngTemplateOutlet",Ut)("ngTemplateOutletContext",T.WLB(10,l,de,rt)),T.xp6(1),T.ekj("mat-stepper-vertical-line",!Ke),T.xp6(1),T.ekj("mat-vertical-stepper-content-inactive",lt.selectedIndex!==rt),T.Q6J("@verticalStepTransition",T.WLB(15,k,lt._getAnimationDirection(rt),T.VKq(13,I,lt._getAnimationDuration())))("id",lt._getStepContentId(rt)),T.uIk("aria-labelledby",lt._getStepLabelId(rt)),T.xp6(2),T.Q6J("ngTemplateOutlet",de.content)}}function W(Qe,Pe){if(1&Qe&&(T.ynx(0),T.YNc(1,g,6,18,"div",14),T.BQk()),2&Qe){const de=T.oxw();T.xp6(1),T.Q6J("ngForOf",de.steps)}}function O(Qe,Pe){if(1&Qe){const de=T.EpF();T.TgZ(0,"mat-step-header",19),T.NdJ("click",function(){const lt=T.CHM(de).step;return T.KtG(lt.select())})("keydown",function(Ke){T.CHM(de);const lt=T.oxw();return T.KtG(lt._onKeydown(Ke))}),T.qZA()}if(2&Qe){const de=Pe.step,rt=Pe.i,Ke=T.oxw();T.ekj("mat-horizontal-stepper-header","horizontal"===Ke.orientation)("mat-vertical-stepper-header","vertical"===Ke.orientation),T.Q6J("tabIndex",Ke._getFocusIndex()===rt?0:-1)("id",Ke._getStepLabelId(rt))("index",rt)("state",Ke._getIndicatorType(rt,de.state))("label",de.stepLabel||de.label)("selected",Ke.selectedIndex===rt)("active",Ke._stepIsNavigable(rt,de))("optional",de.optional)("errorMessage",de.errorMessage)("iconOverrides",Ke._iconOverrides)("disableRipple",Ke.disableRipple||!Ke._stepIsNavigable(rt,de))("color",de.color||Ke.color),T.uIk("aria-posinset",rt+1)("aria-setsize",Ke.steps.length)("aria-controls",Ke._getStepContentId(rt))("aria-selected",Ke.selectedIndex==rt)("aria-label",de.ariaLabel||null)("aria-labelledby",!de.ariaLabel&&de.ariaLabelledby?de.ariaLabelledby:null)("aria-disabled",!Ke._stepIsNavigable(rt,de)||null)}}let U=(()=>{class Qe extends e.u6{}return Qe.\u0275fac=function(){let Pe;return function(rt){return(Pe||(Pe=T.n5z(Qe)))(rt||Qe)}}(),Qe.\u0275dir=T.lG2({type:Qe,selectors:[["","matStepLabel",""]],features:[T.qOj]}),Qe})(),ge=(()=>{class Qe{constructor(){this.changes=new P.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return Qe.\u0275fac=function(de){return new(de||Qe)},Qe.\u0275prov=T.Yz7({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})();const Ue={provide:ge,deps:[[new T.FiY,new T.tp0,ge]],useFactory:function nt(Qe){return Qe||new ge}},at=(0,s.pj)(class extends e.KL{constructor(Pe){super(Pe)}},"primary");let ye=(()=>{class Qe extends at{constructor(de,rt,Ke,lt){super(Ke),this._intl=de,this._focusMonitor=rt,this._intlSubscription=de.changes.subscribe(()=>lt.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(de,rt){de?this._focusMonitor.focusVia(this._elementRef,de,rt):this._elementRef.nativeElement.focus(rt)}_stringLabel(){return this.label instanceof U?null:this.label}_templateLabel(){return this.label instanceof U?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(de){return"number"==de?`${this.index+1}`:"edit"==de?"create":"error"==de?"warning":de}}return Qe.\u0275fac=function(de){return new(de||Qe)(T.Y36(ge),T.Y36(h.tE),T.Y36(T.SBq),T.Y36(T.sBO))},Qe.\u0275cmp=T.Xpm({type:Qe,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:[T.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"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(de,rt){1&de&&(T._UZ(0,"div",0),T.TgZ(1,"div")(2,"div",1),T.YNc(3,j,1,2,"ng-container",2),T.YNc(4,re,5,4,"ng-container",3),T.qZA()(),T.TgZ(5,"div",4),T.YNc(6,ie,2,1,"div",5),T.YNc(7,se,2,1,"div",5),T.YNc(8,ce,2,1,"div",6),T.YNc(9,Ce,2,1,"div",7),T.qZA()),2&de&&(T.Q6J("matRippleTrigger",rt._getHostElement())("matRippleDisabled",rt.disableRipple),T.xp6(1),T.Gre("mat-step-icon-state-",rt.state," mat-step-icon"),T.ekj("mat-step-icon-selected",rt.selected),T.xp6(1),T.Q6J("ngSwitch",!(!rt.iconOverrides||!rt.iconOverrides[rt.state])),T.xp6(1),T.Q6J("ngSwitchCase",!0),T.xp6(2),T.ekj("mat-step-label-active",rt.active)("mat-step-label-selected",rt.selected)("mat-step-label-error","error"==rt.state),T.xp6(1),T.Q6J("ngIf",rt._templateLabel()),T.xp6(1),T.Q6J("ngIf",rt._stringLabel()),T.xp6(1),T.Q6J("ngIf",rt.optional&&"error"!=rt.state),T.xp6(1),T.Q6J("ngIf","error"==rt.state))},dependencies:[_.O5,_.tP,_.RF,_.n9,_.ED,y.Hw,s.wG],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.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{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .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}'],encapsulation:2,changeDetection:0}),Qe})();const Oe={horizontalStepTransition:(0,Y.X$)("horizontalStepTransition",[(0,Y.SB)("previous",(0,Y.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,Y.SB)("current",(0,Y.oB)({transform:"none",visibility:"inherit"})),(0,Y.SB)("next",(0,Y.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,Y.eR)("* => *",(0,Y.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),verticalStepTransition:(0,Y.X$)("verticalStepTransition",[(0,Y.SB)("previous",(0,Y.oB)({height:"0px",visibility:"hidden"})),(0,Y.SB)("next",(0,Y.oB)({height:"0px",visibility:"hidden"})),(0,Y.SB)("current",(0,Y.oB)({height:"*",visibility:"inherit"})),(0,Y.eR)("* <=> current",(0,Y.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])};let oe=(()=>{class Qe{constructor(de){this.templateRef=de}}return Qe.\u0275fac=function(de){return new(de||Qe)(T.Y36(T.Rgc))},Qe.\u0275dir=T.lG2({type:Qe,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),Qe})(),Fe=(()=>{class Qe{constructor(de){this._template=de}}return Qe.\u0275fac=function(de){return new(de||Qe)(T.Y36(T.Rgc))},Qe.\u0275dir=T.lG2({type:Qe,selectors:[["ng-template","matStepContent",""]]}),Qe})(),De=(()=>{class Qe extends e.be{constructor(de,rt,Ke,lt){super(de,lt),this._errorStateMatcher=rt,this._viewContainerRef=Ke,this._isSelected=d.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,C.w)(()=>this._stepper.selectionChange.pipe((0,L.U)(de=>de.selectedStep===this),(0,D.O)(this._stepper.selected===this)))).subscribe(de=>{de&&this._lazyContent&&!this._portal&&(this._portal=new t.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(de,rt){return this._errorStateMatcher.isErrorState(de,rt)||!!(de&&de.invalid&&this.interacted)}}return Qe.\u0275fac=function(de){return new(de||Qe)(T.Y36((0,T.Gpc)(()=>he)),T.Y36(s.rD,4),T.Y36(T.s_b),T.Y36(e.gx,8))},Qe.\u0275cmp=T.Xpm({type:Qe,selectors:[["mat-step"]],contentQueries:function(de,rt,Ke){if(1&de&&(T.Suo(Ke,U,5),T.Suo(Ke,Fe,5)),2&de){let lt;T.iGM(lt=T.CRH())&&(rt.stepLabel=lt.first),T.iGM(lt=T.CRH())&&(rt._lazyContent=lt.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[T._Bn([{provide:s.rD,useExisting:Qe},{provide:e.be,useExisting:Qe}]),T.qOj],ngContentSelectors:a,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(de,rt){1&de&&(T.F$t(),T.YNc(0,i,2,1,"ng-template"))},dependencies:[t.Pl],encapsulation:2,changeDetection:0}),Qe})(),he=(()=>{class Qe extends e.B8{get animationDuration(){return this._animationDuration}set animationDuration(de){this._animationDuration=/^\d+$/.test(de)?de+"ms":de}constructor(de,rt,Ke){super(de,rt,Ke),this.steps=new T.n_E,this.animationDone=new T.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new P.x,this._animationDuration="";const lt=Ke.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===lt?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:de,templateRef:rt})=>this._iconOverrides[de]=rt),this.steps.changes.pipe((0,z.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,V.x)((de,rt)=>de.fromState===rt.fromState&&de.toState===rt.toState),(0,z.R)(this._destroyed)).subscribe(de=>{"current"===de.toState&&this.animationDone.emit()})}_stepIsNavigable(de,rt){return rt.completed||this.selectedIndex===de||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}return Qe.\u0275fac=function(de){return new(de||Qe)(T.Y36(w.Is,8),T.Y36(T.sBO),T.Y36(T.SBq))},Qe.\u0275cmp=T.Xpm({type:Qe,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(de,rt,Ke){if(1&de&&(T.Suo(Ke,De,5),T.Suo(Ke,oe,5)),2&de){let lt;T.iGM(lt=T.CRH())&&(rt._steps=lt),T.iGM(lt=T.CRH())&&(rt._icons=lt)}},viewQuery:function(de,rt){if(1&de&&T.Gf(ye,5),2&de){let Ke;T.iGM(Ke=T.CRH())&&(rt._stepHeader=Ke)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(de,rt){2&de&&(T.uIk("aria-orientation",rt.orientation),T.ekj("mat-stepper-horizontal","horizontal"===rt.orientation)("mat-stepper-vertical","vertical"===rt.orientation)("mat-stepper-label-position-end","horizontal"===rt.orientation&&"end"==rt.labelPosition)("mat-stepper-label-position-bottom","horizontal"===rt.orientation&&"bottom"==rt.labelPosition)("mat-stepper-header-position-bottom","bottom"===rt.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[T._Bn([{provide:e.B8,useExisting:Qe}]),T.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id","mat-horizontal-stepper-content-inactive",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(de,rt){1&de&&(T.ynx(0,0),T.YNc(1,n,5,2,"div",1),T.YNc(2,W,2,1,"ng-container",2),T.BQk(),T.YNc(3,O,1,23,"ng-template",null,3,T.W1O)),2&de&&(T.Q6J("ngSwitch",rt.orientation),T.xp6(1),T.Q6J("ngSwitchCase","horizontal"),T.xp6(1),T.Q6J("ngSwitchCase","vertical"))},dependencies:[_.sg,_.O5,_.tP,_.RF,_.n9,ye],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-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.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-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{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-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[Oe.horizontalStepTransition,Oe.verticalStepTransition]},changeDetection:0}),Qe})(),Me=(()=>{class Qe extends e.st{}return Qe.\u0275fac=function(){let Pe;return function(rt){return(Pe||(Pe=T.n5z(Qe)))(rt||Qe)}}(),Qe.\u0275dir=T.lG2({type:Qe,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(de,rt){2&de&&T.Ikx("type",rt.type)},inputs:{type:"type"},features:[T.qOj]}),Qe})(),pe=(()=>{class Qe extends e.po{}return Qe.\u0275fac=function(){let Pe;return function(rt){return(Pe||(Pe=T.n5z(Qe)))(rt||Qe)}}(),Qe.\u0275dir=T.lG2({type:Qe,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(de,rt){2&de&&T.Ikx("type",rt.type)},inputs:{type:"type"},features:[T.qOj]}),Qe})(),Ve=(()=>{class Qe{}return Qe.\u0275fac=function(de){return new(de||Qe)},Qe.\u0275mod=T.oAB({type:Qe}),Qe.\u0275inj=T.cJS({providers:[Ue,s.rD],imports:[s.BQ,_.ez,t.eL,e.U5,y.Ps,s.si,s.BQ]}),Qe})()},671:(We,q,m)=>{"use strict";m.d(q,{ev:()=>ft,Dz:()=>Je,w1:()=>ii,yh:()=>ot,mD:()=>Vt,Q2:()=>vt,Ke:()=>gt,ge:()=>pt,fO:()=>$t,XQ:()=>_t,as:()=>St,Gk:()=>He,nj:()=>$e,BZ:()=>Ae,by:()=>Gi,p0:()=>zi});var t=m(4650),e=m(445),_=m(1281),T=m(5017),s=m(3353),y=m(531),h=m(6895),P=m(7579),d=m(457),w=m(1135),C=m(5191),L=m(9646),D=m(2722),z=m(5698);const V=[[["caption"]],[["colgroup"],["col"]]],Y=["caption","colgroup, col"];function J(Xe){return class extends Xe{get sticky(){return this._sticky}set sticky(It){const Se=this._sticky;this._sticky=(0,_.Ig)(It),this._hasStickyChanged=Se!==this._sticky}hasStickyChanged(){const It=this._hasStickyChanged;return this._hasStickyChanged=!1,It}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...It){super(...It),this._sticky=!1,this._hasStickyChanged=!1}}}const ee=new t.OlP("CDK_TABLE");let re=(()=>{class Xe{constructor(Se){this.template=Se}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(t.Rgc))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","cdkCellDef",""]]}),Xe})(),ie=(()=>{class Xe{constructor(Se){this.template=Se}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(t.Rgc))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","cdkHeaderCellDef",""]]}),Xe})(),se=(()=>{class Xe{constructor(Se){this.template=Se}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(t.Rgc))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","cdkFooterCellDef",""]]}),Xe})();class ce{}const Ce=J(ce);let M=(()=>{class Xe extends Ce{get name(){return this._name}set name(Se){this._setNameInput(Se)}get stickyEnd(){return this._stickyEnd}set stickyEnd(Se){const wt=this._stickyEnd;this._stickyEnd=(0,_.Ig)(Se),this._hasStickyChanged=wt!==this._stickyEnd}constructor(Se){super(),this._table=Se,this._stickyEnd=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(Se){Se&&(this._name=Se,this.cssClassFriendlyName=Se.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(ee,8))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","cdkColumnDef",""]],contentQueries:function(Se,wt,Zt){if(1&Se&&(t.Suo(Zt,re,5),t.Suo(Zt,ie,5),t.Suo(Zt,se,5)),2&Se){let si;t.iGM(si=t.CRH())&&(wt.cell=si.first),t.iGM(si=t.CRH())&&(wt.headerCell=si.first),t.iGM(si=t.CRH())&&(wt.footerCell=si.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[t._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Xe}]),t.qOj]}),Xe})();class i{constructor(It,Se){Se.nativeElement.classList.add(...It._columnCssClassName)}}let a=(()=>{class Xe extends i{constructor(Se,wt){super(Se,wt)}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(M),t.Y36(t.SBq))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[t.qOj]}),Xe})(),f=(()=>{class Xe extends i{constructor(Se,wt){if(super(Se,wt),1===Se._table?._elementRef.nativeElement.nodeType){const Zt=Se._table._elementRef.nativeElement.getAttribute("role");wt.nativeElement.setAttribute("role","grid"===Zt||"treegrid"===Zt?"gridcell":"cell")}}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(M),t.Y36(t.SBq))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[t.qOj]}),Xe})(),l=(()=>{class Xe extends i{constructor(Se,wt){if(super(Se,wt),1===Se._table?._elementRef.nativeElement.nodeType){const Zt=Se._table._elementRef.nativeElement.getAttribute("role");wt.nativeElement.setAttribute("role","grid"===Zt||"treegrid"===Zt?"gridcell":"cell")}}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(M),t.Y36(t.SBq))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[t.qOj]}),Xe})();class v{constructor(){this.tasks=[],this.endTasks=[]}}const I=new t.OlP("_COALESCED_STYLE_SCHEDULER");let k=(()=>{class Xe{constructor(Se){this._ngZone=Se,this._currentSchedule=null,this._destroyed=new P.x}schedule(Se){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(Se)}scheduleEnd(Se){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(Se)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new v,this._getScheduleObservable().pipe((0,D.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const Se=this._currentSchedule;this._currentSchedule=new v;for(const wt of Se.tasks)wt();for(const wt of Se.endTasks)wt()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,d.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,z.q)(1))}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.LFG(t.R0b))},Xe.\u0275prov=t.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})(),n=(()=>{class Xe{constructor(Se,wt){this.template=Se,this._differs=wt}ngOnChanges(Se){if(!this._columnsDiffer){const wt=Se.columns&&Se.columns.currentValue||[];this._columnsDiffer=this._differs.find(wt).create(),this._columnsDiffer.diff(wt)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(Se){return this instanceof O?Se.headerCell.template:this instanceof nt?Se.footerCell.template:Se.cell.template}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(t.Rgc),t.Y36(t.ZZ4))},Xe.\u0275dir=t.lG2({type:Xe,features:[t.TTD]}),Xe})();class g extends n{}const W=J(g);let O=(()=>{class Xe extends W{constructor(Se,wt,Zt){super(Se,wt),this._table=Zt}ngOnChanges(Se){super.ngOnChanges(Se)}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(ee,8))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[t.qOj,t.TTD]}),Xe})();class U extends n{}const ge=J(U);let nt=(()=>{class Xe extends ge{constructor(Se,wt,Zt){super(Se,wt),this._table=Zt}ngOnChanges(Se){super.ngOnChanges(Se)}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(ee,8))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[t.qOj,t.TTD]}),Xe})(),Ue=(()=>{class Xe extends n{constructor(Se,wt,Zt){super(Se,wt),this._table=Zt}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(ee,8))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[t.qOj]}),Xe})(),at=(()=>{class Xe{constructor(Se){this._viewContainer=Se,Xe.mostRecentCellOutlet=this}ngOnDestroy(){Xe.mostRecentCellOutlet===this&&(Xe.mostRecentCellOutlet=null)}}return Xe.mostRecentCellOutlet=null,Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(t.s_b))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","cdkCellOutlet",""]]}),Xe})(),ye=(()=>{class Xe{}return Xe.\u0275fac=function(Se){return new(Se||Xe)},Xe.\u0275cmp=t.Xpm({type:Xe,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Se,wt){1&Se&&t.GkF(0,0)},dependencies:[at],encapsulation:2}),Xe})(),xe=(()=>{class Xe{}return Xe.\u0275fac=function(Se){return new(Se||Xe)},Xe.\u0275cmp=t.Xpm({type:Xe,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Se,wt){1&Se&&t.GkF(0,0)},dependencies:[at],encapsulation:2}),Xe})(),fe=(()=>{class Xe{}return Xe.\u0275fac=function(Se){return new(Se||Xe)},Xe.\u0275cmp=t.Xpm({type:Xe,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Se,wt){1&Se&&t.GkF(0,0)},dependencies:[at],encapsulation:2}),Xe})(),Oe=(()=>{class Xe{constructor(Se){this.templateRef=Se,this._contentClassName="cdk-no-data-row"}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(t.Rgc))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["ng-template","cdkNoDataRow",""]]}),Xe})();const oe=["top","bottom","left","right"];class Fe{constructor(It,Se,wt,Zt,si=!0,Ai=!0,Oi){this._isNativeHtmlTable=It,this._stickCellCss=Se,this.direction=wt,this._coalescedStyleScheduler=Zt,this._isBrowser=si,this._needsPositionStickyOnElement=Ai,this._positionListener=Oi,this._cachedCellWidths=[],this._borderCellCss={top:`${Se}-border-elem-top`,bottom:`${Se}-border-elem-bottom`,left:`${Se}-border-elem-left`,right:`${Se}-border-elem-right`}}clearStickyPositioning(It,Se){const wt=[];for(const Zt of It)if(Zt.nodeType===Zt.ELEMENT_NODE){wt.push(Zt);for(let si=0;si{for(const Zt of wt)this._removeStickyStyle(Zt,Se)})}updateStickyColumns(It,Se,wt,Zt=!0){if(!It.length||!this._isBrowser||!Se.some(qt=>qt)&&!wt.some(qt=>qt))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const si=It[0],Ai=si.children.length,Oi=this._getCellWidths(si,Zt),Qi=this._getStickyStartColumnPositions(Oi,Se),en=this._getStickyEndColumnPositions(Oi,wt),Yi=Se.lastIndexOf(!0),Yt=wt.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const qt="rtl"===this.direction,_e=qt?"right":"left",dt=qt?"left":"right";for(const Dt of It)for(let Bt=0;BtSe[Bt]?Dt:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Yt?[]:Oi.slice(Yt).map((Dt,Bt)=>wt[Bt+Yt]?Dt:null).reverse()}))})}stickRows(It,Se,wt){if(!this._isBrowser)return;const Zt="bottom"===wt?It.slice().reverse():It,si="bottom"===wt?Se.slice().reverse():Se,Ai=[],Oi=[],Qi=[];for(let Yi=0,Yt=0;Yi{for(let Yi=0;Yi{Se.some(Zt=>!Zt)?this._removeStickyStyle(wt,["bottom"]):this._addStickyStyle(wt,"bottom",0,!1)})}_removeStickyStyle(It,Se){for(const Zt of Se)It.style[Zt]="",It.classList.remove(this._borderCellCss[Zt]);oe.some(Zt=>-1===Se.indexOf(Zt)&&It.style[Zt])?It.style.zIndex=this._getCalculatedZIndex(It):(It.style.zIndex="",this._needsPositionStickyOnElement&&(It.style.position=""),It.classList.remove(this._stickCellCss))}_addStickyStyle(It,Se,wt,Zt){It.classList.add(this._stickCellCss),Zt&&It.classList.add(this._borderCellCss[Se]),It.style[Se]=`${wt}px`,It.style.zIndex=this._getCalculatedZIndex(It),this._needsPositionStickyOnElement&&(It.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(It){const Se={top:100,bottom:10,left:1,right:1};let wt=0;for(const Zt of oe)It.style[Zt]&&(wt+=Se[Zt]);return wt?`${wt}`:""}_getCellWidths(It,Se=!0){if(!Se&&this._cachedCellWidths.length)return this._cachedCellWidths;const wt=[],Zt=It.children;for(let si=0;si0;si--)Se[si]&&(wt[si]=Zt,Zt+=It[si]);return wt}}const rt=new t.OlP("CDK_SPL");let lt=(()=>{class Xe{constructor(Se,wt){this.viewContainer=Se,this.elementRef=wt}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(t.s_b),t.Y36(t.SBq))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","rowOutlet",""]]}),Xe})(),Ut=(()=>{class Xe{constructor(Se,wt){this.viewContainer=Se,this.elementRef=wt}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(t.s_b),t.Y36(t.SBq))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","headerRowOutlet",""]]}),Xe})(),ht=(()=>{class Xe{constructor(Se,wt){this.viewContainer=Se,this.elementRef=wt}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(t.s_b),t.Y36(t.SBq))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","footerRowOutlet",""]]}),Xe})(),Ge=(()=>{class Xe{constructor(Se,wt){this.viewContainer=Se,this.elementRef=wt}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(t.s_b),t.Y36(t.SBq))},Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","noDataRowOutlet",""]]}),Xe})(),qe=(()=>{class Xe{get trackBy(){return this._trackByFn}set trackBy(Se){this._trackByFn=Se}get dataSource(){return this._dataSource}set dataSource(Se){this._dataSource!==Se&&this._switchDataSource(Se)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(Se){this._multiTemplateDataRows=(0,_.Ig)(Se),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(Se){this._fixedLayout=(0,_.Ig)(Se),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(Se,wt,Zt,si,Ai,Oi,Qi,en,Yi,Yt,qt,_e){this._differs=Se,this._changeDetectorRef=wt,this._elementRef=Zt,this._dir=Ai,this._platform=Qi,this._viewRepeater=en,this._coalescedStyleScheduler=Yi,this._viewportRuler=Yt,this._stickyPositioningListener=qt,this._ngZone=_e,this._onDestroy=new P.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 t.vpe,this.viewChange=new w.X({start:0,end:Number.MAX_VALUE}),si||this._elementRef.nativeElement.setAttribute("role","table"),this._document=Oi,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((Se,wt)=>this.trackBy?this.trackBy(wt.dataIndex,wt.data):wt),this._viewportRuler.change().pipe((0,D.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const wt=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||wt,this._forceRecalculateCellWidths=wt,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,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(Se=>{Se.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,T.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const Se=this._dataDiffer.diff(this._renderRows);if(!Se)return this._updateNoDataRow(),void this.contentChanged.next();const wt=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(Se,wt,(Zt,si,Ai)=>this._getEmbeddedViewArgs(Zt.item,Ai),Zt=>Zt.item.data,Zt=>{1===Zt.operation&&Zt.context&&this._renderCellTemplateForItem(Zt.record.item.rowDef,Zt.context)}),this._updateRowIndexContext(),Se.forEachIdentityChange(Zt=>{wt.get(Zt.currentIndex).context.$implicit=Zt.item.data}),this._updateNoDataRow(),this._ngZone&&t.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,z.q)(1),(0,D.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(Se){this._customColumnDefs.add(Se)}removeColumnDef(Se){this._customColumnDefs.delete(Se)}addRowDef(Se){this._customRowDefs.add(Se)}removeRowDef(Se){this._customRowDefs.delete(Se)}addHeaderRowDef(Se){this._customHeaderRowDefs.add(Se),this._headerRowDefChanged=!0}removeHeaderRowDef(Se){this._customHeaderRowDefs.delete(Se),this._headerRowDefChanged=!0}addFooterRowDef(Se){this._customFooterRowDefs.add(Se),this._footerRowDefChanged=!0}removeFooterRowDef(Se){this._customFooterRowDefs.delete(Se),this._footerRowDefChanged=!0}setNoDataRow(Se){this._customNoDataRow=Se}updateStickyHeaderRowStyles(){const Se=this._getRenderedRows(this._headerRowOutlet),Zt=this._elementRef.nativeElement.querySelector("thead");Zt&&(Zt.style.display=Se.length?"":"none");const si=this._headerRowDefs.map(Ai=>Ai.sticky);this._stickyStyler.clearStickyPositioning(Se,["top"]),this._stickyStyler.stickRows(Se,si,"top"),this._headerRowDefs.forEach(Ai=>Ai.resetStickyChanged())}updateStickyFooterRowStyles(){const Se=this._getRenderedRows(this._footerRowOutlet),Zt=this._elementRef.nativeElement.querySelector("tfoot");Zt&&(Zt.style.display=Se.length?"":"none");const si=this._footerRowDefs.map(Ai=>Ai.sticky);this._stickyStyler.clearStickyPositioning(Se,["bottom"]),this._stickyStyler.stickRows(Se,si,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,si),this._footerRowDefs.forEach(Ai=>Ai.resetStickyChanged())}updateStickyColumnStyles(){const Se=this._getRenderedRows(this._headerRowOutlet),wt=this._getRenderedRows(this._rowOutlet),Zt=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...Se,...wt,...Zt],["left","right"]),this._stickyColumnStylesNeedReset=!1),Se.forEach((si,Ai)=>{this._addStickyColumnStyles([si],this._headerRowDefs[Ai])}),this._rowDefs.forEach(si=>{const Ai=[];for(let Oi=0;Oi{this._addStickyColumnStyles([si],this._footerRowDefs[Ai])}),Array.from(this._columnDefsByName.values()).forEach(si=>si.resetStickyChanged())}_getAllRenderRows(){const Se=[],wt=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let Zt=0;Zt{const Oi=Zt&&Zt.has(Ai)?Zt.get(Ai):[];if(Oi.length){const Qi=Oi.shift();return Qi.dataIndex=wt,Qi}return{data:Se,rowDef:Ai,dataIndex:wt}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Ie(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(wt=>{this._columnDefsByName.has(wt.name),this._columnDefsByName.set(wt.name,wt)})}_cacheRowDefs(){this._headerRowDefs=Ie(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Ie(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Ie(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const Se=this._rowDefs.filter(wt=>!wt.when);this._defaultRowDef=Se[0]}_renderUpdatedColumns(){const Se=(Ai,Oi)=>Ai||!!Oi.getColumnsDiff(),wt=this._rowDefs.reduce(Se,!1);wt&&this._forceRenderDataRows();const Zt=this._headerRowDefs.reduce(Se,!1);Zt&&this._forceRenderHeaderRows();const si=this._footerRowDefs.reduce(Se,!1);return si&&this._forceRenderFooterRows(),wt||Zt||si}_switchDataSource(Se){this._data=[],(0,T.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),Se||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=Se}_observeRenderChanges(){if(!this.dataSource)return;let Se;(0,T.Z9)(this.dataSource)?Se=this.dataSource.connect(this):(0,C.b)(this.dataSource)?Se=this.dataSource:Array.isArray(this.dataSource)&&(Se=(0,L.of)(this.dataSource)),this._renderChangeSubscription=Se.pipe((0,D.R)(this._onDestroy)).subscribe(wt=>{this._data=wt||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((Se,wt)=>this._renderRow(this._headerRowOutlet,Se,wt)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((Se,wt)=>this._renderRow(this._footerRowOutlet,Se,wt)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(Se,wt){const Zt=Array.from(wt.columns||[]).map(Oi=>this._columnDefsByName.get(Oi)),si=Zt.map(Oi=>Oi.sticky),Ai=Zt.map(Oi=>Oi.stickyEnd);this._stickyStyler.updateStickyColumns(Se,si,Ai,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(Se){const wt=[];for(let Zt=0;Zt!si.when||si.when(wt,Se));else{let si=this._rowDefs.find(Ai=>Ai.when&&Ai.when(wt,Se))||this._defaultRowDef;si&&Zt.push(si)}return Zt}_getEmbeddedViewArgs(Se,wt){return{templateRef:Se.rowDef.template,context:{$implicit:Se.data},index:wt}}_renderRow(Se,wt,Zt,si={}){const Ai=Se.viewContainer.createEmbeddedView(wt.template,si,Zt);return this._renderCellTemplateForItem(wt,si),Ai}_renderCellTemplateForItem(Se,wt){for(let Zt of this._getCellTemplates(Se))at.mostRecentCellOutlet&&at.mostRecentCellOutlet._viewContainer.createEmbeddedView(Zt,wt);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const Se=this._rowOutlet.viewContainer;for(let wt=0,Zt=Se.length;wt{const Zt=this._columnDefsByName.get(wt);return Se.extractCellTemplate(Zt)}):[]}_applyNativeTableSections(){const Se=this._document.createDocumentFragment(),wt=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const Zt of wt){const si=this._document.createElement(Zt.tag);si.setAttribute("role","rowgroup");for(const Ai of Zt.outlets)si.appendChild(Ai.elementRef.nativeElement);Se.appendChild(si)}this._elementRef.nativeElement.appendChild(Se)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const Se=(wt,Zt)=>wt||Zt.hasStickyChanged();this._headerRowDefs.reduce(Se,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(Se,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(Se,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Fe(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,L.of)()).pipe((0,D.R)(this._onDestroy)).subscribe(wt=>{this._stickyStyler.direction=wt,this.updateStickyColumnStyles()})}_getOwnDefs(Se){return Se.filter(wt=>!wt._table||wt._table===this)}_updateNoDataRow(){const Se=this._customNoDataRow||this._noDataRow;if(!Se)return;const wt=0===this._rowOutlet.viewContainer.length;if(wt===this._isShowingNoDataRow)return;const Zt=this._noDataRowOutlet.viewContainer;if(wt){const si=Zt.createEmbeddedView(Se.templateRef),Ai=si.rootNodes[0];1===si.rootNodes.length&&Ai?.nodeType===this._document.ELEMENT_NODE&&(Ai.setAttribute("role","row"),Ai.classList.add(Se._contentClassName))}else Zt.clear();this._isShowingNoDataRow=wt}}return Xe.\u0275fac=function(Se){return new(Se||Xe)(t.Y36(t.ZZ4),t.Y36(t.sBO),t.Y36(t.SBq),t.$8M("role"),t.Y36(e.Is,8),t.Y36(h.K0),t.Y36(s.t4),t.Y36(T.k),t.Y36(I),t.Y36(y.rL),t.Y36(rt,12),t.Y36(t.R0b,8))},Xe.\u0275cmp=t.Xpm({type:Xe,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(Se,wt,Zt){if(1&Se&&(t.Suo(Zt,Oe,5),t.Suo(Zt,M,5),t.Suo(Zt,Ue,5),t.Suo(Zt,O,5),t.Suo(Zt,nt,5)),2&Se){let si;t.iGM(si=t.CRH())&&(wt._noDataRow=si.first),t.iGM(si=t.CRH())&&(wt._contentColumnDefs=si),t.iGM(si=t.CRH())&&(wt._contentRowDefs=si),t.iGM(si=t.CRH())&&(wt._contentHeaderRowDefs=si),t.iGM(si=t.CRH())&&(wt._contentFooterRowDefs=si)}},viewQuery:function(Se,wt){if(1&Se&&(t.Gf(lt,7),t.Gf(Ut,7),t.Gf(ht,7),t.Gf(Ge,7)),2&Se){let Zt;t.iGM(Zt=t.CRH())&&(wt._rowOutlet=Zt.first),t.iGM(Zt=t.CRH())&&(wt._headerRowOutlet=Zt.first),t.iGM(Zt=t.CRH())&&(wt._footerRowOutlet=Zt.first),t.iGM(Zt=t.CRH())&&(wt._noDataRowOutlet=Zt.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(Se,wt){2&Se&&t.ekj("cdk-table-fixed-layout",wt.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[t._Bn([{provide:ee,useExisting:Xe},{provide:T.k,useClass:T.yy},{provide:I,useClass:k},{provide:rt,useValue:null}])],ngContentSelectors:Y,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(Se,wt){1&Se&&(t.F$t(V),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[lt,Ut,ht,Ge],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),Xe})();function Ie(Xe,It){return Xe.concat(Array.from(It))}let Tt=(()=>{class Xe{}return Xe.\u0275fac=function(Se){return new(Se||Xe)},Xe.\u0275mod=t.oAB({type:Xe}),Xe.\u0275inj=t.cJS({imports:[y.Cl]}),Xe})();var it=m(3238),je=m(6451),zt=m(9841),xt=m(4004);const Nt=[[["caption"]],[["colgroup"],["col"]]],Gt=["caption","colgroup, col"];let Ae=(()=>{class Xe extends qe{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}ngOnInit(){super.ngOnInit(),this._isNativeHtmlTable&&this._elementRef.nativeElement.querySelector("tbody").classList.add("mdc-data-table__content")}}return Xe.\u0275fac=function(){let It;return function(wt){return(It||(It=t.n5z(Xe)))(wt||Xe)}}(),Xe.\u0275cmp=t.Xpm({type:Xe,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(Se,wt){2&Se&&t.ekj("mdc-table-fixed-layout",wt.fixedLayout)},exportAs:["matTable"],features:[t._Bn([{provide:qe,useExisting:Xe},{provide:ee,useExisting:Xe},{provide:I,useClass:k},{provide:T.k,useClass:T.yy},{provide:rt,useValue:null}]),t.qOj],ngContentSelectors:Gt,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(Se,wt){1&Se&&(t.F$t(Nt),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[lt,Ut,ht,Ge],styles:[".mdc-data-table{border-radius:var(--mdc-shape-medium, 4px);border-width:1px;border-style:solid}.mdc-data-table .mdc-data-table__header-cell:first-child{border-top-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:first-child,.mdc-data-table .mdc-data-table__header-cell:first-child[dir=rtl]{border-top-right-radius:var(--mdc-shape-medium, 4px);border-top-left-radius:0}.mdc-data-table .mdc-data-table__header-cell:last-child{border-top-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:last-child,.mdc-data-table .mdc-data-table__header-cell:last-child[dir=rtl]{border-top-left-radius:var(--mdc-shape-medium, 4px);border-top-right-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child{border-bottom-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child[dir=rtl]{border-bottom-right-radius:var(--mdc-shape-medium, 4px);border-bottom-left-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child{border-bottom-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child[dir=rtl]{border-bottom-left-radius:var(--mdc-shape-medium, 4px);border-bottom-right-radius:0}.mdc-data-table__cell,.mdc-data-table__header-cell{border-bottom-width:1px;border-bottom-style:solid}.mdc-data-table__pagination{border-top-width:1px;border-top-style:solid}.mdc-data-table__row:last-child .mdc-data-table__cell{border-bottom:none}.mdc-data-table__row{height:52px}.mdc-data-table__pagination{min-height:52px}.mdc-data-table__header-row{height:56px}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table--sticky-header .mdc-data-table__header-cell{position:sticky;top:0;z-index:1}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__pagination{box-sizing:border-box;display:flex;justify-content:flex-end}.mdc-data-table__pagination-trailing{margin-left:4px;margin-right:0;align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end}[dir=rtl] .mdc-data-table__pagination-trailing,.mdc-data-table__pagination-trailing[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__pagination-navigation{align-items:center;display:flex}.mdc-data-table__pagination-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__pagination-button .mdc-button__icon,.mdc-data-table__pagination-button .mdc-button__icon[dir=rtl]{transform:rotate(180deg)}[dir=rtl] .mdc-data-table__pagination-button,.mdc-data-table__pagination-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__pagination-total{margin-left:14px;margin-right:36px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-total,.mdc-data-table__pagination-total[dir=rtl]{margin-left:36px;margin-right:14px}.mdc-data-table__pagination-rows-per-page{margin-left:0;margin-right:22px;align-items:center;display:inline-flex}[dir=rtl] .mdc-data-table__pagination-rows-per-page,.mdc-data-table__pagination-rows-per-page[dir=rtl]{margin-left:22px;margin-right:0}.mdc-data-table__pagination-rows-per-page-label{margin-left:0;margin-right:12px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-rows-per-page-label,.mdc-data-table__pagination-rows-per-page-label[dir=rtl]{margin-left:12px;margin-right:0}.mdc-data-table__pagination-rows-per-page-select{min-width:var(--mdc-menu-min-width, 80px);margin:8px 0}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{width:100%;min-width:80px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{height:36px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__dropdown-icon{width:20px;height:20px}.mdc-data-table__pagination-rows-per-page-select.mdc-select--outlined .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 56px)}.mdc-data-table__pagination-rows-per-page-select .mdc-list-item.mdc-list-item--with-one-line{height:36px}.mdc-data-table__progress-indicator{display:none;position:absolute;width:100%}.mdc-data-table--in-progress .mdc-data-table__progress-indicator{display:block}.mdc-data-table__scrim{background-color:var(--mdc-theme-surface, #fff);height:100%;opacity:.32;position:absolute;top:0;width:100%}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-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table-sticky{position:sticky !important}.mat-mdc-table{table-layout:auto;white-space:normal}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table .mat-mdc-row:hover,.mat-mdc-table .mat-mdc-footer-row:hover{background-color:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2}),Xe})(),Je=(()=>{class Xe extends re{}return Xe.\u0275fac=function(){let It;return function(wt){return(It||(It=t.n5z(Xe)))(wt||Xe)}}(),Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","matCellDef",""]],features:[t._Bn([{provide:re,useExisting:Xe}]),t.qOj]}),Xe})(),$t=(()=>{class Xe extends ie{}return Xe.\u0275fac=function(){let It;return function(wt){return(It||(It=t.n5z(Xe)))(wt||Xe)}}(),Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","matHeaderCellDef",""]],features:[t._Bn([{provide:ie,useExisting:Xe}]),t.qOj]}),Xe})(),Vt=(()=>{class Xe extends se{}return Xe.\u0275fac=function(){let It;return function(wt){return(It||(It=t.n5z(Xe)))(wt||Xe)}}(),Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","matFooterCellDef",""]],features:[t._Bn([{provide:se,useExisting:Xe}]),t.qOj]}),Xe})(),ii=(()=>{class Xe extends M{get name(){return this._name}set name(Se){this._setNameInput(Se)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return Xe.\u0275fac=function(){let It;return function(wt){return(It||(It=t.n5z(Xe)))(wt||Xe)}}(),Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[t._Bn([{provide:M,useExisting:Xe},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Xe}]),t.qOj]}),Xe})(),pt=(()=>{class Xe extends a{}return Xe.\u0275fac=function(){let It;return function(wt){return(It||(It=t.n5z(Xe)))(wt||Xe)}}(),Xe.\u0275dir=t.lG2({type:Xe,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[t.qOj]}),Xe})(),ot=(()=>{class Xe extends f{}return Xe.\u0275fac=function(){let It;return function(wt){return(It||(It=t.n5z(Xe)))(wt||Xe)}}(),Xe.\u0275dir=t.lG2({type:Xe,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:[1,"mat-mdc-footer-cell","mdc-data-table__cell"],features:[t.qOj]}),Xe})(),ft=(()=>{class Xe extends l{}return Xe.\u0275fac=function(){let It;return function(wt){return(It||(It=t.n5z(Xe)))(wt||Xe)}}(),Xe.\u0275dir=t.lG2({type:Xe,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[t.qOj]}),Xe})(),St=(()=>{class Xe extends O{}return Xe.\u0275fac=function(){let It;return function(wt){return(It||(It=t.n5z(Xe)))(wt||Xe)}}(),Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[t._Bn([{provide:O,useExisting:Xe}]),t.qOj]}),Xe})(),gt=(()=>{class Xe extends nt{}return Xe.\u0275fac=function(){let It;return function(wt){return(It||(It=t.n5z(Xe)))(wt||Xe)}}(),Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[t._Bn([{provide:nt,useExisting:Xe}]),t.qOj]}),Xe})(),$e=(()=>{class Xe extends Ue{}return Xe.\u0275fac=function(){let It;return function(wt){return(It||(It=t.n5z(Xe)))(wt||Xe)}}(),Xe.\u0275dir=t.lG2({type:Xe,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[t._Bn([{provide:Ue,useExisting:Xe}]),t.qOj]}),Xe})(),_t=(()=>{class Xe extends ye{}return Xe.\u0275fac=function(){let It;return function(wt){return(It||(It=t.n5z(Xe)))(wt||Xe)}}(),Xe.\u0275cmp=t.Xpm({type:Xe,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[t._Bn([{provide:ye,useExisting:Xe}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Se,wt){1&Se&&t.GkF(0,0)},dependencies:[at],encapsulation:2}),Xe})(),vt=(()=>{class Xe extends xe{}return Xe.\u0275fac=function(){let It;return function(wt){return(It||(It=t.n5z(Xe)))(wt||Xe)}}(),Xe.\u0275cmp=t.Xpm({type:Xe,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-mdc-footer-row","mdc-data-table__row"],exportAs:["matFooterRow"],features:[t._Bn([{provide:xe,useExisting:Xe}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Se,wt){1&Se&&t.GkF(0,0)},dependencies:[at],encapsulation:2}),Xe})(),He=(()=>{class Xe extends fe{}return Xe.\u0275fac=function(){let It;return function(wt){return(It||(It=t.n5z(Xe)))(wt||Xe)}}(),Xe.\u0275cmp=t.Xpm({type:Xe,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[t._Bn([{provide:fe,useExisting:Xe}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Se,wt){1&Se&&t.GkF(0,0)},dependencies:[at],encapsulation:2}),Xe})(),zi=(()=>{class Xe{}return Xe.\u0275fac=function(Se){return new(Se||Xe)},Xe.\u0275mod=t.oAB({type:Xe}),Xe.\u0275inj=t.cJS({imports:[it.BQ,Tt,it.BQ]}),Xe})();class Mi extends T.o2{get data(){return this._data.value}set data(It){It=Array.isArray(It)?It:[],this._data.next(It),this._renderChangesSubscription||this._filterData(It)}get filter(){return this._filter.value}set filter(It){this._filter.next(It),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(It){this._sort=It,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(It){this._paginator=It,this._updateChangeSubscription()}constructor(It=[]){super(),this._renderData=new w.X([]),this._filter=new w.X(""),this._internalPageChanges=new P.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(Se,wt)=>{const Zt=Se[wt];if((0,_.t6)(Zt)){const si=Number(Zt);return si<9007199254740991?si:Zt}return Zt},this.sortData=(Se,wt)=>{const Zt=wt.active,si=wt.direction;return Zt&&""!=si?Se.sort((Ai,Oi)=>{let Qi=this.sortingDataAccessor(Ai,Zt),en=this.sortingDataAccessor(Oi,Zt);const Yi=typeof Qi,Yt=typeof en;Yi!==Yt&&("number"===Yi&&(Qi+=""),"number"===Yt&&(en+=""));let qt=0;return null!=Qi&&null!=en?Qi>en?qt=1:Qi{const Zt=Object.keys(Se).reduce((Ai,Oi)=>Ai+Se[Oi]+"\u25ec","").toLowerCase(),si=wt.trim().toLowerCase();return-1!=Zt.indexOf(si)},this._data=new w.X(It),this._updateChangeSubscription()}_updateChangeSubscription(){const It=this._sort?(0,je.T)(this._sort.sortChange,this._sort.initialized):(0,L.of)(null),Se=this._paginator?(0,je.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,L.of)(null),Zt=(0,zt.a)([this._data,this._filter]).pipe((0,xt.U)(([Oi])=>this._filterData(Oi))),si=(0,zt.a)([Zt,It]).pipe((0,xt.U)(([Oi])=>this._orderData(Oi))),Ai=(0,zt.a)([si,Se]).pipe((0,xt.U)(([Oi])=>this._pageData(Oi)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=Ai.subscribe(Oi=>this._renderData.next(Oi))}_filterData(It){return this.filteredData=null==this.filter||""===this.filter?It:It.filter(Se=>this.filterPredicate(Se,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(It){return this.sort?this.sortData(It.slice(),this.sort):It}_pageData(It){if(!this.paginator)return It;const Se=this.paginator.pageIndex*this.paginator.pageSize;return It.slice(Se,Se+this.paginator.pageSize)}_updatePaginator(It){Promise.resolve().then(()=>{const Se=this.paginator;if(Se&&(Se.length=It,Se.pageIndex>0)){const wt=Math.ceil(Se.length/Se.pageSize)-1||0,Zt=Math.min(Se.pageIndex,wt);Zt!==Se.pageIndex&&(Se.pageIndex=Zt,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class Gi extends Mi{}},3848:(We,q,m)=>{"use strict";m.d(q,{BU:()=>ft,Nh:()=>$e,Nj:()=>St,SP:()=>Ae,sW:()=>gt,uD:()=>Qe,uX:()=>mt});var t=m(6895),e=m(4650),_=m(3238),T=m(4080),s=m(9643),y=m(4761),h=m(445),P=m(727),d=m(7579),w=m(4968),C=m(9646),L=m(6451),D=m(515),z=m(9751),V=m(2805),Y=m(1135),j=m(8675),Q=m(1884),J=m(2722),ee=m(5698),me=m(3900),re=m(5684),ie=m(9300),se=m(7340),ce=m(1281),Ce=m(531),M=m(3353),i=m(9521);function a(_t,vt){}const f=function(_t){return{animationDuration:_t}},l=function(_t,vt){return{value:_t,params:vt}};function v(_t,vt){1&_t&&e.Hsn(0)}const I=["*"],k=["tabListContainer"],x=["tabList"],n=["tabListInner"],g=["nextPaginator"],W=["previousPaginator"],O=["tabBodyWrapper"],U=["tabHeader"];function ge(_t,vt){}function nt(_t,vt){if(1&_t&&e.YNc(0,ge,0,0,"ng-template",14),2&_t){const He=e.oxw().$implicit;e.Q6J("cdkPortalOutlet",He.templateLabel)}}function Ue(_t,vt){if(1&_t&&e._uU(0),2&_t){const He=e.oxw().$implicit;e.Oqu(He.textLabel)}}function at(_t,vt){if(1&_t){const He=e.EpF();e.TgZ(0,"div",6,7),e.NdJ("click",function(){const At=e.CHM(He),Qt=At.$implicit,zi=At.index,Ni=e.oxw(),Mi=e.MAs(1);return e.KtG(Ni._handleClick(Qt,Mi,zi))})("cdkFocusChange",function(At){const zi=e.CHM(He).index,Ni=e.oxw();return e.KtG(Ni._tabFocusChanged(At,zi))}),e._UZ(2,"span",8)(3,"div",9),e.TgZ(4,"span",10)(5,"span",11),e.YNc(6,nt,1,1,"ng-template",12),e.YNc(7,Ue,1,1,"ng-template",null,13,e.W1O),e.qZA()()()}if(2&_t){const He=vt.$implicit,Et=vt.index,At=e.MAs(1),Qt=e.MAs(8),zi=e.oxw();e.ekj("mdc-tab--active",zi.selectedIndex===Et),e.Q6J("id",zi._getTabLabelId(Et))("ngClass",He.labelClass)("disabled",He.disabled)("fitInkBarToContent",zi.fitInkBarToContent),e.uIk("tabIndex",zi._getTabIndex(Et))("aria-posinset",Et+1)("aria-setsize",zi._tabs.length)("aria-controls",zi._getTabContentId(Et))("aria-selected",zi.selectedIndex===Et)("aria-label",He.ariaLabel||null)("aria-labelledby",!He.ariaLabel&&He.ariaLabelledby?He.ariaLabelledby:null),e.xp6(3),e.Q6J("matRippleTrigger",At)("matRippleDisabled",He.disabled||zi.disableRipple),e.xp6(3),e.Q6J("ngIf",He.templateLabel)("ngIfElse",Qt)}}function ye(_t,vt){if(1&_t){const He=e.EpF();e.TgZ(0,"mat-tab-body",15),e.NdJ("_onCentered",function(){e.CHM(He);const At=e.oxw();return e.KtG(At._removeTabBodyWrapperHeight())})("_onCentering",function(At){e.CHM(He);const Qt=e.oxw();return e.KtG(Qt._setTabBodyWrapperHeight(At))}),e.qZA()}if(2&_t){const He=vt.$implicit,Et=vt.index,At=e.oxw();e.ekj("mat-mdc-tab-body-active",At.selectedIndex===Et),e.Q6J("id",At._getTabContentId(Et))("ngClass",He.bodyClass)("content",He.content)("position",He.position)("origin",He.origin)("animationDuration",At.animationDuration)("preserveContent",At.preserveContent),e.uIk("tabindex",null!=At.contentTabIndex&&At.selectedIndex===Et?At.contentTabIndex:null)("aria-labelledby",At._getTabLabelId(Et))}}const xe=["mat-tab-nav-bar",""],fe=["mat-tab-link",""],Oe={translateTab:(0,se.X$)("translateTab",[(0,se.SB)("center, void, left-origin-center, right-origin-center",(0,se.oB)({transform:"none"})),(0,se.SB)("left",(0,se.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,se.SB)("right",(0,se.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,se.eR)("* => left, * => right, left => center, right => center",(0,se.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,se.eR)("void => left-origin-center",[(0,se.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,se.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,se.eR)("void => right-origin-center",[(0,se.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,se.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let oe=(()=>{class _t extends T.Pl{constructor(He,Et,At,Qt){super(He,Et,Qt),this._host=At,this._centeringSub=P.w0.EMPTY,this._leavingSub=P.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,j.O)(this._host._isCenterPosition(this._host._position))).subscribe(He=>{He&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return _t.\u0275fac=function(He){return new(He||_t)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36((0,e.Gpc)(()=>De)),e.Y36(t.K0))},_t.\u0275dir=e.lG2({type:_t,selectors:[["","matTabBodyHost",""]],features:[e.qOj]}),_t})(),Fe=(()=>{class _t{set position(He){this._positionIndex=He,this._computePositionAnimationState()}constructor(He,Et,At){this._elementRef=He,this._dir=Et,this._dirChangeSubscription=P.w0.EMPTY,this._translateTabComplete=new d.x,this._onCentering=new e.vpe,this._beforeCentering=new e.vpe,this._afterLeavingCenter=new e.vpe,this._onCentered=new e.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,Et&&(this._dirChangeSubscription=Et.change.subscribe(Qt=>{this._computePositionAnimationState(Qt),At.markForCheck()})),this._translateTabComplete.pipe((0,Q.x)((Qt,zi)=>Qt.fromState===zi.fromState&&Qt.toState===zi.toState)).subscribe(Qt=>{this._isCenterPosition(Qt.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(Qt.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(He){const Et=this._isCenterPosition(He.toState);this._beforeCentering.emit(Et),Et&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(He){return"center"==He||"left-origin-center"==He||"right-origin-center"==He}_computePositionAnimationState(He=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==He?"left":"right":this._positionIndex>0?"ltr"==He?"right":"left":"center"}_computePositionFromOrigin(He){const Et=this._getLayoutDirection();return"ltr"==Et&&He<=0||"rtl"==Et&&He>0?"left-origin-center":"right-origin-center"}}return _t.\u0275fac=function(He){return new(He||_t)(e.Y36(e.SBq),e.Y36(h.Is,8),e.Y36(e.sBO))},_t.\u0275dir=e.lG2({type:_t,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),_t})(),De=(()=>{class _t extends Fe{constructor(He,Et,At){super(He,Et,At)}}return _t.\u0275fac=function(He){return new(He||_t)(e.Y36(e.SBq),e.Y36(h.Is,8),e.Y36(e.sBO))},_t.\u0275cmp=e.Xpm({type:_t,selectors:[["mat-tab-body"]],viewQuery:function(He,Et){if(1&He&&e.Gf(T.Pl,5),2&He){let At;e.iGM(At=e.CRH())&&(Et._portalHost=At.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[e.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(He,Et){1&He&&(e.TgZ(0,"div",0,1),e.NdJ("@translateTab.start",function(Qt){return Et._onTranslateTabStarted(Qt)})("@translateTab.done",function(Qt){return Et._translateTabComplete.next(Qt)}),e.YNc(2,a,0,0,"ng-template",2),e.qZA()),2&He&&e.Q6J("@translateTab",e.WLB(3,l,Et._position,e.VKq(1,f,Et.animationDuration)))},dependencies:[oe],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[Oe.translateTab]}}),_t})();const he=new e.OlP("MatTabContent");let Me=(()=>{class _t{constructor(He){this.template=He}}return _t.\u0275fac=function(He){return new(He||_t)(e.Y36(e.Rgc))},_t.\u0275dir=e.lG2({type:_t,selectors:[["","matTabContent",""]],features:[e._Bn([{provide:he,useExisting:_t}])]}),_t})();const pe=new e.OlP("MatTabLabel"),Ve=new e.OlP("MAT_TAB");let Qe=(()=>{class _t extends T.ig{constructor(He,Et,At){super(He,Et),this._closestTab=At}}return _t.\u0275fac=function(He){return new(He||_t)(e.Y36(e.Rgc),e.Y36(e.s_b),e.Y36(Ve,8))},_t.\u0275dir=e.lG2({type:_t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[e._Bn([{provide:pe,useExisting:_t}]),e.qOj]}),_t})();const Pe="mdc-tab-indicator--active",de="mdc-tab-indicator--no-transition";class rt{constructor(vt){this._items=vt}hide(){this._items.forEach(vt=>vt.deactivateInkBar())}alignToElement(vt){const He=this._items.find(At=>At.elementRef.nativeElement===vt),Et=this._currentItem;if(Et?.deactivateInkBar(),He){const At=Et?.elementRef.nativeElement.getBoundingClientRect?.();He.activateInkBar(At),this._currentItem=He}}}function Ke(_t){return class extends _t{constructor(...vt){super(...vt),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(vt){const He=(0,ce.Ig)(vt);this._fitToContent!==He&&(this._fitToContent=He,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(vt){const He=this.elementRef.nativeElement;if(!vt||!He.getBoundingClientRect||!this._inkBarContentElement)return void He.classList.add(Pe);const Et=He.getBoundingClientRect(),At=vt.width/Et.width,Qt=vt.left-Et.left;He.classList.add(de),this._inkBarContentElement.style.setProperty("transform",`translateX(${Qt}px) scaleX(${At})`),He.getBoundingClientRect(),He.classList.remove(de),He.classList.add(Pe),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(Pe)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const vt=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=vt.createElement("span"),this._inkBarContentElement=vt.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const ht=(0,_.Id)(class{}),yt=Ke((()=>{class _t extends ht{constructor(He){super(),this.elementRef=He}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return _t.\u0275fac=function(He){return new(He||_t)(e.Y36(e.SBq))},_t.\u0275dir=e.lG2({type:_t,features:[e.qOj]}),_t})());let be=(()=>{class _t extends yt{}return _t.\u0275fac=function(){let vt;return function(Et){return(vt||(vt=e.n5z(_t)))(Et||_t)}}(),_t.\u0275dir=e.lG2({type:_t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(He,Et){2&He&&(e.uIk("aria-disabled",!!Et.disabled),e.ekj("mat-mdc-tab-disabled",Et.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[e.qOj]}),_t})();const qe=(0,_.Id)(class{}),Ie=new e.OlP("MAT_TAB_GROUP");let X=(()=>{class _t extends qe{get content(){return this._contentPortal}constructor(He,Et){super(),this._viewContainerRef=He,this._closestTabGroup=Et,this.textLabel="",this._contentPortal=null,this._stateChanges=new d.x,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(He){(He.hasOwnProperty("textLabel")||He.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new T.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(He){He&&He._closestTab===this&&(this._templateLabel=He)}}return _t.\u0275fac=function(He){return new(He||_t)(e.Y36(e.s_b),e.Y36(Ie,8))},_t.\u0275dir=e.lG2({type:_t,viewQuery:function(He,Et){if(1&He&&e.Gf(e.Rgc,7),2&He){let At;e.iGM(At=e.CRH())&&(Et._implicitContent=At.first)}},inputs:{textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[e.qOj,e.TTD]}),_t})(),mt=(()=>{class _t extends X{get templateLabel(){return this._templateLabel}set templateLabel(He){this._setTemplateLabelInput(He)}}return _t.\u0275fac=function(){let vt;return function(Et){return(vt||(vt=e.n5z(_t)))(Et||_t)}}(),_t.\u0275cmp=e.Xpm({type:_t,selectors:[["mat-tab"]],contentQueries:function(He,Et,At){if(1&He&&(e.Suo(At,Me,7,e.Rgc),e.Suo(At,Qe,5)),2&He){let Qt;e.iGM(Qt=e.CRH())&&(Et._explicitContent=Qt.first),e.iGM(Qt=e.CRH())&&(Et.templateLabel=Qt.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[e._Bn([{provide:Ve,useExisting:_t}]),e.qOj],ngContentSelectors:I,decls:1,vars:0,template:function(He,Et){1&He&&(e.F$t(),e.YNc(0,v,1,0,"ng-template"))},encapsulation:2}),_t})();const Tt=(0,M.i$)({passive:!0});let zt=(()=>{class _t{get disablePagination(){return this._disablePagination}set disablePagination(He){this._disablePagination=(0,ce.Ig)(He)}get selectedIndex(){return this._selectedIndex}set selectedIndex(He){He=(0,ce.su)(He),this._selectedIndex!=He&&(this._selectedIndexChanged=!0,this._selectedIndex=He,this._keyManager&&this._keyManager.updateActiveItem(He))}constructor(He,Et,At,Qt,zi,Ni,Mi){this._elementRef=He,this._changeDetectorRef=Et,this._viewportRuler=At,this._dir=Qt,this._ngZone=zi,this._platform=Ni,this._animationMode=Mi,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new d.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new d.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new e.vpe,this.indexFocused=new e.vpe,zi.runOutsideAngular(()=>{(0,w.R)(He.nativeElement,"mouseleave").pipe((0,J.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){(0,w.R)(this._previousPaginator.nativeElement,"touchstart",Tt).pipe((0,J.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,w.R)(this._nextPaginator.nativeElement,"touchstart",Tt).pipe((0,J.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const He=this._dir?this._dir.change:(0,C.of)("ltr"),Et=this._viewportRuler.change(150),At=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new y.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,ee.q)(1)).subscribe(At),(0,L.T)(He,Et,this._items.changes,this._itemsResized()).pipe((0,J.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),At()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(Qt=>{this.indexFocused.emit(Qt),this._setTabFocus(Qt)})}_itemsResized(){return"function"!=typeof ResizeObserver?D.E:this._items.changes.pipe((0,j.O)(this._items),(0,me.w)(He=>new z.y(Et=>this._ngZone.runOutsideAngular(()=>{const At=new ResizeObserver(Qt=>Et.next(Qt));return He.forEach(Qt=>At.observe(Qt.elementRef.nativeElement)),()=>{At.disconnect()}}))),(0,re.T)(1),(0,ie.h)(He=>He.some(Et=>Et.contentRect.width>0&&Et.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(He){if(!(0,i.Vb)(He))switch(He.keyCode){case i.K5:case i.L_:if(this.focusIndex!==this.selectedIndex){const Et=this._items.get(this.focusIndex);Et&&!Et.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(He))}break;default:this._keyManager.onKeydown(He)}}_onContentChanges(){const He=this._elementRef.nativeElement.textContent;He!==this._currentTextContent&&(this._currentTextContent=He||"",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(He){!this._isValidIndex(He)||this.focusIndex===He||!this._keyManager||this._keyManager.setActiveItem(He)}_isValidIndex(He){return!this._items||!!this._items.toArray()[He]}_setTabFocus(He){if(this._showPaginationControls&&this._scrollToLabel(He),this._items&&this._items.length){this._items.toArray()[He].focus();const Et=this._tabListContainer.nativeElement;Et.scrollLeft="ltr"==this._getLayoutDirection()?0:Et.scrollWidth-Et.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const He=this.scrollDistance,Et="ltr"===this._getLayoutDirection()?-He:He;this._tabList.nativeElement.style.transform=`translateX(${Math.round(Et)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(He){this._scrollTo(He)}_scrollHeader(He){return this._scrollTo(this._scrollDistance+("before"==He?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(He){this._stopInterval(),this._scrollHeader(He)}_scrollToLabel(He){if(this.disablePagination)return;const Et=this._items?this._items.toArray()[He]:null;if(!Et)return;const At=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:Qt,offsetWidth:zi}=Et.elementRef.nativeElement;let Ni,Mi;"ltr"==this._getLayoutDirection()?(Ni=Qt,Mi=Ni+zi):(Mi=this._tabListInner.nativeElement.offsetWidth-Qt,Ni=Mi-zi);const Gi=this.scrollDistance,Xe=this.scrollDistance+At;NiXe&&(this.scrollDistance+=Math.min(Mi-Xe,Ni-Gi))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const He=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;He||(this.scrollDistance=0),He!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=He}}_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 He=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,Et=He?He.elementRef.nativeElement:null;Et?this._inkBar.alignToElement(Et):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(He,Et){Et&&null!=Et.button&&0!==Et.button||(this._stopInterval(),(0,V.H)(650,100).pipe((0,J.R)((0,L.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:At,distance:Qt}=this._scrollHeader(He);(0===Qt||Qt>=At)&&this._stopInterval()}))}_scrollTo(He){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const Et=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Et,He)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Et,distance:this._scrollDistance}}}return _t.\u0275fac=function(He){return new(He||_t)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Ce.rL),e.Y36(h.Is,8),e.Y36(e.R0b),e.Y36(M.t4),e.Y36(e.QbO,8))},_t.\u0275dir=e.lG2({type:_t,inputs:{disablePagination:"disablePagination"}}),_t})(),xt=(()=>{class _t extends zt{get disableRipple(){return this._disableRipple}set disableRipple(He){this._disableRipple=(0,ce.Ig)(He)}constructor(He,Et,At,Qt,zi,Ni,Mi){super(He,Et,At,Qt,zi,Ni,Mi),this._disableRipple=!1}_itemSelected(He){He.preventDefault()}}return _t.\u0275fac=function(He){return new(He||_t)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Ce.rL),e.Y36(h.Is,8),e.Y36(e.R0b),e.Y36(M.t4),e.Y36(e.QbO,8))},_t.\u0275dir=e.lG2({type:_t,inputs:{disableRipple:"disableRipple"},features:[e.qOj]}),_t})(),Nt=(()=>{class _t extends xt{constructor(He,Et,At,Qt,zi,Ni,Mi){super(He,Et,At,Qt,zi,Ni,Mi)}ngAfterContentInit(){this._inkBar=new rt(this._items),super.ngAfterContentInit()}}return _t.\u0275fac=function(He){return new(He||_t)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Ce.rL),e.Y36(h.Is,8),e.Y36(e.R0b),e.Y36(M.t4),e.Y36(e.QbO,8))},_t.\u0275cmp=e.Xpm({type:_t,selectors:[["mat-tab-header"]],contentQueries:function(He,Et,At){if(1&He&&e.Suo(At,be,4),2&He){let Qt;e.iGM(Qt=e.CRH())&&(Et._items=Qt)}},viewQuery:function(He,Et){if(1&He&&(e.Gf(k,7),e.Gf(x,7),e.Gf(n,7),e.Gf(g,5),e.Gf(W,5)),2&He){let At;e.iGM(At=e.CRH())&&(Et._tabListContainer=At.first),e.iGM(At=e.CRH())&&(Et._tabList=At.first),e.iGM(At=e.CRH())&&(Et._tabListInner=At.first),e.iGM(At=e.CRH())&&(Et._nextPaginator=At.first),e.iGM(At=e.CRH())&&(Et._previousPaginator=At.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(He,Et){2&He&&e.ekj("mat-mdc-tab-header-pagination-controls-enabled",Et._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==Et._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[e.qOj],ngContentSelectors:I,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(He,Et){1&He&&(e.F$t(),e.TgZ(0,"button",0,1),e.NdJ("click",function(){return Et._handlePaginatorClick("before")})("mousedown",function(Qt){return Et._handlePaginatorPress("before",Qt)})("touchend",function(){return Et._stopInterval()}),e._UZ(2,"div",2),e.qZA(),e.TgZ(3,"div",3,4),e.NdJ("keydown",function(Qt){return Et._handleKeydown(Qt)}),e.TgZ(5,"div",5,6),e.NdJ("cdkObserveContent",function(){return Et._onContentChanges()}),e.TgZ(7,"div",7,8),e.Hsn(9),e.qZA()()(),e.TgZ(10,"button",9,10),e.NdJ("mousedown",function(Qt){return Et._handlePaginatorPress("after",Qt)})("click",function(){return Et._handlePaginatorClick("after")})("touchend",function(){return Et._stopInterval()}),e._UZ(12,"div",2),e.qZA()),2&He&&(e.ekj("mat-mdc-tab-header-pagination-disabled",Et._disableScrollBefore),e.Q6J("matRippleDisabled",Et._disableScrollBefore||Et.disableRipple)("disabled",Et._disableScrollBefore||null),e.xp6(3),e.ekj("_mat-animation-noopable","NoopAnimations"===Et._animationMode),e.xp6(7),e.ekj("mat-mdc-tab-header-pagination-disabled",Et._disableScrollAfter),e.Q6J("matRippleDisabled",Et._disableScrollAfter||Et.disableRipple)("disabled",Et._disableScrollAfter||null))},dependencies:[_.wG,s.wD],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2}),_t})();const Gt=new e.OlP("MAT_TABS_CONFIG");let ke=0;const $=(0,_.pj)((0,_.Kr)(class{constructor(_t){this._elementRef=_t}}),"primary");let ue=(()=>{class _t extends ${get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(He){this._dynamicHeight=(0,ce.Ig)(He)}get selectedIndex(){return this._selectedIndex}set selectedIndex(He){this._indexToSelect=(0,ce.su)(He,null)}get animationDuration(){return this._animationDuration}set animationDuration(He){this._animationDuration=/^\d+$/.test(He+"")?He+"ms":He}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(He){this._contentTabIndex=(0,ce.su)(He,null)}get disablePagination(){return this._disablePagination}set disablePagination(He){this._disablePagination=(0,ce.Ig)(He)}get preserveContent(){return this._preserveContent}set preserveContent(He){this._preserveContent=(0,ce.Ig)(He)}get backgroundColor(){return this._backgroundColor}set backgroundColor(He){const Et=this._elementRef.nativeElement.classList;Et.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),He&&Et.add("mat-tabs-with-background",`mat-background-${He}`),this._backgroundColor=He}constructor(He,Et,At,Qt){super(He),this._changeDetectorRef=Et,this._animationMode=Qt,this._tabs=new e.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=P.w0.EMPTY,this._tabLabelSubscription=P.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new e.vpe,this.focusChange=new e.vpe,this.animationDone=new e.vpe,this.selectedTabChange=new e.vpe(!0),this._groupId=ke++,this.animationDuration=At&&At.animationDuration?At.animationDuration:"500ms",this.disablePagination=!(!At||null==At.disablePagination)&&At.disablePagination,this.dynamicHeight=!(!At||null==At.dynamicHeight)&&At.dynamicHeight,this.contentTabIndex=At?.contentTabIndex??null,this.preserveContent=!!At?.preserveContent}ngAfterContentChecked(){const He=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=He){const Et=null==this._selectedIndex;if(!Et){this.selectedTabChange.emit(this._createChangeEvent(He));const At=this._tabBodyWrapper.nativeElement;At.style.minHeight=At.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((At,Qt)=>At.isActive=Qt===He),Et||(this.selectedIndexChange.emit(He),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((Et,At)=>{Et.position=At-He,null!=this._selectedIndex&&0==Et.position&&!Et.origin&&(Et.origin=He-this._selectedIndex)}),this._selectedIndex!==He&&(this._selectedIndex=He,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const He=this._clampTabIndex(this._indexToSelect);if(He===this._selectedIndex){const Et=this._tabs.toArray();let At;for(let Qt=0;Qt{Et[He].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(He))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,j.O)(this._allTabs)).subscribe(He=>{this._tabs.reset(He.filter(Et=>Et._closestTabGroup===this||!Et._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(He){const Et=this._tabHeader;Et&&(Et.focusIndex=He)}_focusChanged(He){this._lastFocusedTabIndex=He,this.focusChange.emit(this._createChangeEvent(He))}_createChangeEvent(He){const Et=new Je;return Et.index=He,this._tabs&&this._tabs.length&&(Et.tab=this._tabs.toArray()[He]),Et}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,L.T)(...this._tabs.map(He=>He._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(He){return Math.min(this._tabs.length-1,Math.max(He||0,0))}_getTabLabelId(He){return`mat-tab-label-${this._groupId}-${He}`}_getTabContentId(He){return`mat-tab-content-${this._groupId}-${He}`}_setTabBodyWrapperHeight(He){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const Et=this._tabBodyWrapper.nativeElement;Et.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(Et.style.height=He+"px")}_removeTabBodyWrapperHeight(){const He=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=He.clientHeight,He.style.height="",this.animationDone.emit()}_handleClick(He,Et,At){Et.focusIndex=At,He.disabled||(this.selectedIndex=At)}_getTabIndex(He){return He===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(He,Et){He&&"mouse"!==He&&"touch"!==He&&(this._tabHeader.focusIndex=Et)}}return _t.\u0275fac=function(He){return new(He||_t)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Gt,8),e.Y36(e.QbO,8))},_t.\u0275dir=e.lG2({type:_t,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[e.qOj]}),_t})(),Ae=(()=>{class _t extends ue{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(He){this._fitInkBarToContent=(0,ce.Ig)(He),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(He){this._stretchTabs=(0,ce.Ig)(He)}constructor(He,Et,At,Qt){super(He,Et,At,Qt),this._fitInkBarToContent=!1,this._stretchTabs=!0,this.fitInkBarToContent=!(!At||null==At.fitInkBarToContent)&&At.fitInkBarToContent}}return _t.\u0275fac=function(He){return new(He||_t)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Gt,8),e.Y36(e.QbO,8))},_t.\u0275cmp=e.Xpm({type:_t,selectors:[["mat-tab-group"]],contentQueries:function(He,Et,At){if(1&He&&e.Suo(At,mt,5),2&He){let Qt;e.iGM(Qt=e.CRH())&&(Et._allTabs=Qt)}},viewQuery:function(He,Et){if(1&He&&(e.Gf(O,5),e.Gf(U,5)),2&He){let At;e.iGM(At=e.CRH())&&(Et._tabBodyWrapper=At.first),e.iGM(At=e.CRH())&&(Et._tabHeader=At.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:6,hostBindings:function(He,Et){2&He&&e.ekj("mat-mdc-tab-group-dynamic-height",Et.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===Et.headerPosition)("mat-mdc-tab-group-stretch-tabs",Et.stretchTabs)},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"]},exportAs:["matTabGroup"],features:[e._Bn([{provide:Ie,useExisting:_t}]),e.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-mdc-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(He,Et){1&He&&(e.TgZ(0,"mat-tab-header",0,1),e.NdJ("indexFocused",function(Qt){return Et._focusChanged(Qt)})("selectFocusedIndex",function(Qt){return Et.selectedIndex=Qt}),e.YNc(2,at,9,17,"div",2),e.qZA(),e.TgZ(3,"div",3,4),e.YNc(5,ye,1,11,"mat-tab-body",5),e.qZA()),2&He&&(e.Q6J("selectedIndex",Et.selectedIndex||0)("disableRipple",Et.disableRipple)("disablePagination",Et.disablePagination),e.xp6(2),e.Q6J("ngForOf",Et._tabs),e.xp6(1),e.ekj("_mat-animation-noopable","NoopAnimations"===Et._animationMode),e.xp6(2),e.Q6J("ngForOf",Et._tabs))},dependencies:[t.mk,t.sg,t.O5,T.Pl,_.wG,y.kH,De,be,Nt],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-tab.mdc-tab{height:48px;flex-grow:0}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none}.mat-mdc-tab .mdc-tab__text-label{display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-disabled{opacity:.4}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-mdc-tab-header-with-background-background-color, transparent)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab-indicator__content--underline,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2}),_t})();class Je{}let $t=0,Vt=(()=>{class _t extends zt{get backgroundColor(){return this._backgroundColor}set backgroundColor(He){const Et=this._elementRef.nativeElement.classList;Et.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),He&&Et.add("mat-tabs-with-background",`mat-background-${He}`),this._backgroundColor=He}get disableRipple(){return this._disableRipple}set disableRipple(He){this._disableRipple=(0,ce.Ig)(He)}constructor(He,Et,At,Qt,zi,Ni,Mi){super(He,Qt,zi,Et,At,Ni,Mi),this._disableRipple=!1,this.color="primary"}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,j.O)(null),(0,J.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const He=this._items.toArray();for(let Et=0;Et{class _t extends ii{get active(){return this._isActive}set active(He){const Et=(0,ce.Ig)(He);Et!==this._isActive&&(this._isActive=Et,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}constructor(He,Et,At,Qt,zi,Ni){super(),this._tabNavBar=He,this.elementRef=Et,this._focusMonitor=zi,this._isActive=!1,this.id="mat-tab-link-"+$t++,this.rippleConfig=At||{},this.tabIndex=parseInt(Qt)||0,"NoopAnimations"===Ni&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}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)}_handleKeydown(He){this._tabNavBar.tabPanel&&He.keyCode===i.L_&&this.elementRef.nativeElement.click()}_getAriaControls(){return this._tabNavBar.tabPanel?this._tabNavBar.tabPanel?.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.tabIndex}}return _t.\u0275fac=function(He){return new(He||_t)(e.Y36(Vt),e.Y36(e.SBq),e.Y36(_.Y2,8),e.$8M("tabindex"),e.Y36(y.tE),e.Y36(e.QbO,8))},_t.\u0275dir=e.lG2({type:_t,inputs:{active:"active",id:"id"},features:[e.qOj]}),_t})());let ft=(()=>{class _t extends Vt{get fitInkBarToContent(){return this._fitInkBarToContent.value}set fitInkBarToContent(He){this._fitInkBarToContent.next((0,ce.Ig)(He)),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(He){this._stretchTabs=(0,ce.Ig)(He)}constructor(He,Et,At,Qt,zi,Ni,Mi,Gi){super(He,Et,At,Qt,zi,Ni,Mi),this._fitInkBarToContent=new Y.X(!1),this._stretchTabs=!0,this.disablePagination=!(!Gi||null==Gi.disablePagination)&&Gi.disablePagination,this.fitInkBarToContent=!(!Gi||null==Gi.fitInkBarToContent)&&Gi.fitInkBarToContent}ngAfterContentInit(){this._inkBar=new rt(this._items),super.ngAfterContentInit()}ngAfterViewInit(){super.ngAfterViewInit()}}return _t.\u0275fac=function(He){return new(He||_t)(e.Y36(e.SBq),e.Y36(h.Is,8),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(Ce.rL),e.Y36(M.t4),e.Y36(e.QbO,8),e.Y36(Gt,8))},_t.\u0275cmp=e.Xpm({type:_t,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(He,Et,At){if(1&He&&e.Suo(At,St,5),2&He){let Qt;e.iGM(Qt=e.CRH())&&(Et._items=Qt)}},viewQuery:function(He,Et){if(1&He&&(e.Gf(k,7),e.Gf(x,7),e.Gf(n,7),e.Gf(g,5),e.Gf(W,5)),2&He){let At;e.iGM(At=e.CRH())&&(Et._tabListContainer=At.first),e.iGM(At=e.CRH())&&(Et._tabList=At.first),e.iGM(At=e.CRH())&&(Et._tabListInner=At.first),e.iGM(At=e.CRH())&&(Et._nextPaginator=At.first),e.iGM(At=e.CRH())&&(Et._previousPaginator=At.first)}},hostAttrs:[1,"mat-mdc-tab-nav-bar","mat-mdc-tab-header"],hostVars:15,hostBindings:function(He,Et){2&He&&(e.uIk("role",Et._getRole()),e.ekj("mat-mdc-tab-header-pagination-controls-enabled",Et._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==Et._getLayoutDirection())("mat-mdc-tab-nav-bar-stretch-tabs",Et.stretchTabs)("mat-primary","warn"!==Et.color&&"accent"!==Et.color)("mat-accent","accent"===Et.color)("mat-warn","warn"===Et.color)("_mat-animation-noopable","NoopAnimations"===Et._animationMode))},inputs:{color:"color",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"]},exportAs:["matTabNavBar","matTabNav"],features:[e.qOj],attrs:xe,ngContentSelectors:I,decls:13,vars:8,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-links"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(He,Et){1&He&&(e.F$t(),e.TgZ(0,"button",0,1),e.NdJ("click",function(){return Et._handlePaginatorClick("before")})("mousedown",function(Qt){return Et._handlePaginatorPress("before",Qt)})("touchend",function(){return Et._stopInterval()}),e._UZ(2,"div",2),e.qZA(),e.TgZ(3,"div",3,4),e.NdJ("keydown",function(Qt){return Et._handleKeydown(Qt)}),e.TgZ(5,"div",5,6),e.NdJ("cdkObserveContent",function(){return Et._onContentChanges()}),e.TgZ(7,"div",7,8),e.Hsn(9),e.qZA()()(),e.TgZ(10,"button",9,10),e.NdJ("mousedown",function(Qt){return Et._handlePaginatorPress("after",Qt)})("click",function(){return Et._handlePaginatorClick("after")})("touchend",function(){return Et._stopInterval()}),e._UZ(12,"div",2),e.qZA()),2&He&&(e.ekj("mat-mdc-tab-header-pagination-disabled",Et._disableScrollBefore),e.Q6J("matRippleDisabled",Et._disableScrollBefore||Et.disableRipple)("disabled",Et._disableScrollBefore||null),e.xp6(10),e.ekj("mat-mdc-tab-header-pagination-disabled",Et._disableScrollAfter),e.Q6J("matRippleDisabled",Et._disableScrollAfter||Et.disableRipple)("disabled",Et._disableScrollAfter||null))},dependencies:[_.wG,s.wD],styles:[".mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-links{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:flex-end}.mat-mdc-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-mdc-tab-header-with-background-background-color, transparent)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab .mdc-tab__text-label,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab-indicator__content--underline,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-focus-indicator::before{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}"],encapsulation:2}),_t})(),St=(()=>{class _t extends ot{constructor(He,Et,At,Qt,zi,Ni){super(He,Et,At,Qt,zi,Ni),this._destroyed=new d.x,He._fitInkBarToContent.pipe((0,J.R)(this._destroyed)).subscribe(Mi=>{this.fitInkBarToContent=Mi})}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),super.ngOnDestroy()}}return _t.\u0275fac=function(He){return new(He||_t)(e.Y36(ft),e.Y36(e.SBq),e.Y36(_.Y2,8),e.$8M("tabindex"),e.Y36(y.tE),e.Y36(e.QbO,8))},_t.\u0275cmp=e.Xpm({type:_t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-mdc-focus-indicator"],hostVars:11,hostBindings:function(He,Et){1&He&&e.NdJ("focus",function(){return Et._handleFocus()})("keydown",function(Qt){return Et._handleKeydown(Qt)}),2&He&&(e.uIk("aria-controls",Et._getAriaControls())("aria-current",Et._getAriaCurrent())("aria-disabled",Et.disabled)("aria-selected",Et._getAriaSelected())("id",Et.id)("tabIndex",Et._getTabIndex())("role",Et._getRole()),e.ekj("mat-mdc-tab-disabled",Et.disabled)("mdc-tab--active",Et.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",active:"active",id:"id"},exportAs:["matTabLink"],features:[e.qOj],attrs:fe,ngContentSelectors:I,decls:5,vars:2,consts:[[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"]],template:function(He,Et){1&He&&(e.F$t(),e._UZ(0,"span",0)(1,"div",1),e.TgZ(2,"span",2)(3,"span",3),e.Hsn(4),e.qZA()()),2&He&&(e.xp6(1),e.Q6J("matRippleTrigger",Et.elementRef.nativeElement)("matRippleDisabled",Et.rippleDisabled))},dependencies:[_.wG],styles:['.mat-mdc-tab-link{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-tab-link.mdc-tab{height:48px;flex-grow:0}.mat-mdc-tab-link .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none}.mat-mdc-tab-link .mdc-tab__text-label{display:inline-flex;align-items:center}.mat-mdc-tab-link .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab-link:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab-link.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab-link.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab-link .mat-ripple-element{opacity:.12}.mat-mdc-tab-link.mat-mdc-tab-disabled{pointer-events:none;opacity:.4}.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs .mat-mdc-tab-link{flex-grow:1}.mat-mdc-tab-link::before{margin:5px}@media(max-width: 599px){.mat-mdc-tab-link{min-width:72px}}'],encapsulation:2,changeDetection:0}),_t})(),gt=(()=>{class _t{constructor(){this.id="mat-tab-nav-panel-"+$t++}}return _t.\u0275fac=function(He){return new(He||_t)},_t.\u0275cmp=e.Xpm({type:_t,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-mdc-tab-nav-panel"],hostVars:2,hostBindings:function(He,Et){2&He&&e.uIk("aria-labelledby",Et._activeTabId)("id",Et.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:I,decls:1,vars:0,template:function(He,Et){1&He&&(e.F$t(),e.Hsn(0))},encapsulation:2,changeDetection:0}),_t})(),$e=(()=>{class _t{}return _t.\u0275fac=function(He){return new(He||_t)},_t.\u0275mod=e.oAB({type:_t}),_t.\u0275inj=e.cJS({imports:[t.ez,_.BQ,T.eL,_.si,s.Q8,y.rt,_.BQ]}),_t})()},3683:(We,q,m)=>{"use strict";m.d(q,{Ye:()=>d,g0:()=>C});var t=m(4650),e=m(3238),_=m(3353),T=m(6895);const s=["*",[["mat-toolbar-row"]]],y=["*","mat-toolbar-row"],h=(0,e.pj)(class{constructor(L){this._elementRef=L}});let P=(()=>{class L{}return L.\u0275fac=function(z){return new(z||L)},L.\u0275dir=t.lG2({type:L,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),L})(),d=(()=>{class L extends h{constructor(z,V,Y){super(z),this._platform=V,this._document=Y}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return L.\u0275fac=function(z){return new(z||L)(t.Y36(t.SBq),t.Y36(_.t4),t.Y36(T.K0))},L.\u0275cmp=t.Xpm({type:L,selectors:[["mat-toolbar"]],contentQueries:function(z,V,Y){if(1&z&&t.Suo(Y,P,5),2&z){let j;t.iGM(j=t.CRH())&&(V._toolbarRows=j)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(z,V){2&z&&t.ekj("mat-toolbar-multiple-rows",V._toolbarRows.length>0)("mat-toolbar-single-row",0===V._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[t.qOj],ngContentSelectors:y,decls:2,vars:0,template:function(z,V){1&z&&(t.F$t(s),t.Hsn(0),t.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.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%}"],encapsulation:2,changeDetection:0}),L})(),C=(()=>{class L{}return L.\u0275fac=function(z){return new(z||L)},L.\u0275mod=t.oAB({type:L}),L.\u0275inj=t.cJS({imports:[e.BQ,e.BQ]}),L})()},266:(We,q,m)=>{"use strict";m.d(q,{AV:()=>g,gM:()=>I});var t=m(2722),e=m(5698),_=m(1281),T=m(9521),s=m(4650),y=m(6895),h=m(3353),P=m(4761),d=m(445),w=m(8184),C=m(531),L=m(4080),D=m(7579),V=(m(7340),m(3238));const Y=["tooltip"],J=new s.OlP("mat-tooltip-scroll-strategy"),me={provide:J,deps:[w.aV],useFactory:function ee(W){return()=>W.scrollStrategies.reposition({scrollThrottle:20})}},ie=new s.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function re(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),ce="tooltip-panel",Ce=(0,h.i$)({passive:!0});let v=(()=>{class W{get position(){return this._position}set position(U){U!==this._position&&(this._position=U,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(U){this._positionAtOrigin=(0,_.Ig)(U),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(U){this._disabled=(0,_.Ig)(U),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(U){this._showDelay=(0,_.su)(U)}get hideDelay(){return this._hideDelay}set hideDelay(U){this._hideDelay=(0,_.su)(U),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(U){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=U?String(U).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(U){this._tooltipClass=U,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(U,ge,nt,Ue,at,ye,xe,fe,Oe,oe,Fe,De){this._overlay=U,this._elementRef=ge,this._scrollDispatcher=nt,this._viewContainerRef=Ue,this._ngZone=at,this._platform=ye,this._ariaDescriber=xe,this._focusMonitor=fe,this._dir=oe,this._defaultOptions=Fe,this._position="below",this._positionAtOrigin=!1,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 D.x,this._scrollStrategy=Oe,this._document=De,Fe&&(Fe.position&&(this.position=Fe.position),Fe.positionAtOrigin&&(this.positionAtOrigin=Fe.positionAtOrigin),Fe.touchGestures&&(this.touchGestures=Fe.touchGestures)),oe.change.pipe((0,t.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,t.R)(this._destroyed)).subscribe(U=>{U?"keyboard"===U&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const U=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([ge,nt])=>{U.removeEventListener(ge,nt,Ce)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(U,this.message,"tooltip"),this._focusMonitor.stopMonitoring(U)}show(U=this.showDelay,ge){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const nt=this._createOverlay(ge);this._detach(),this._portal=this._portal||new L.C5(this._tooltipComponent,this._viewContainerRef);const Ue=this._tooltipInstance=nt.attach(this._portal).instance;Ue._triggerElement=this._elementRef.nativeElement,Ue._mouseLeaveHideDelay=this._hideDelay,Ue.afterHidden().pipe((0,t.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),Ue.show(U)}hide(U=this.hideDelay){const ge=this._tooltipInstance;ge&&(ge.isVisible()?ge.hide(U):(ge._cancelPendingAnimations(),this._detach()))}toggle(U){this._isTooltipVisible()?this.hide():this.show(void 0,U)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(U){if(this._overlayRef){const Ue=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!U)&&Ue._origin instanceof s.SBq)return this._overlayRef;this._detach()}const ge=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),nt=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&U||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(ge);return nt.positionChanges.pipe((0,t.R)(this._destroyed)).subscribe(Ue=>{this._updateCurrentPositionClass(Ue.connectionPair),this._tooltipInstance&&Ue.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:nt,panelClass:`${this._cssClassPrefix}-${ce}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,t.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,t.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,t.R)(this._destroyed)).subscribe(Ue=>{this._isTooltipVisible()&&Ue.keyCode===T.hY&&!(0,T.Vb)(Ue)&&(Ue.preventDefault(),Ue.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(U){const ge=U.getConfig().positionStrategy,nt=this._getOrigin(),Ue=this._getOverlayPosition();ge.withPositions([this._addOffset({...nt.main,...Ue.main}),this._addOffset({...nt.fallback,...Ue.fallback})])}_addOffset(U){return U}_getOrigin(){const U=!this._dir||"ltr"==this._dir.value,ge=this.position;let nt;"above"==ge||"below"==ge?nt={originX:"center",originY:"above"==ge?"top":"bottom"}:"before"==ge||"left"==ge&&U||"right"==ge&&!U?nt={originX:"start",originY:"center"}:("after"==ge||"right"==ge&&U||"left"==ge&&!U)&&(nt={originX:"end",originY:"center"});const{x:Ue,y:at}=this._invertPosition(nt.originX,nt.originY);return{main:nt,fallback:{originX:Ue,originY:at}}}_getOverlayPosition(){const U=!this._dir||"ltr"==this._dir.value,ge=this.position;let nt;"above"==ge?nt={overlayX:"center",overlayY:"bottom"}:"below"==ge?nt={overlayX:"center",overlayY:"top"}:"before"==ge||"left"==ge&&U||"right"==ge&&!U?nt={overlayX:"end",overlayY:"center"}:("after"==ge||"right"==ge&&U||"left"==ge&&!U)&&(nt={overlayX:"start",overlayY:"center"});const{x:Ue,y:at}=this._invertPosition(nt.overlayX,nt.overlayY);return{main:nt,fallback:{overlayX:Ue,overlayY:at}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,e.q)(1),(0,t.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(U){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=U,this._tooltipInstance._markForCheck())}_invertPosition(U,ge){return"above"===this.position||"below"===this.position?"top"===ge?ge="bottom":"bottom"===ge&&(ge="top"):"end"===U?U="start":"start"===U&&(U="end"),{x:U,y:ge}}_updateCurrentPositionClass(U){const{overlayY:ge,originX:nt,originY:Ue}=U;let at;if(at="center"===ge?this._dir&&"rtl"===this._dir.value?"end"===nt?"left":"right":"start"===nt?"left":"right":"bottom"===ge&&"top"===Ue?"above":"below",at!==this._currentPosition){const ye=this._overlayRef;if(ye){const xe=`${this._cssClassPrefix}-${ce}-`;ye.removePanelClass(xe+this._currentPosition),ye.addPanelClass(xe+at)}this._currentPosition=at}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",U=>{let ge;this._setupPointerExitEventsIfNeeded(),void 0!==U.x&&void 0!==U.y&&(ge=U),this.show(void 0,ge)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",U=>{const ge=U.targetTouches?.[0],nt=ge?{x:ge.clientX,y:ge.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,nt),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const U=[];if(this._platformSupportsMouseEvents())U.push(["mouseleave",ge=>{const nt=ge.relatedTarget;(!nt||!this._overlayRef?.overlayElement.contains(nt))&&this.hide()}],["wheel",ge=>this._wheelListener(ge)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const ge=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};U.push(["touchend",ge],["touchcancel",ge])}this._addListeners(U),this._passiveListeners.push(...U)}_addListeners(U){U.forEach(([ge,nt])=>{this._elementRef.nativeElement.addEventListener(ge,nt,Ce)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(U){if(this._isTooltipVisible()){const ge=this._document.elementFromPoint(U.clientX,U.clientY),nt=this._elementRef.nativeElement;ge!==nt&&!nt.contains(ge)&&this.hide()}}_disableNativeGesturesIfNecessary(){const U=this.touchGestures;if("off"!==U){const ge=this._elementRef.nativeElement,nt=ge.style;("on"===U||"INPUT"!==ge.nodeName&&"TEXTAREA"!==ge.nodeName)&&(nt.userSelect=nt.msUserSelect=nt.webkitUserSelect=nt.MozUserSelect="none"),("on"===U||!ge.draggable)&&(nt.webkitUserDrag="none"),nt.touchAction="none",nt.webkitTapHighlightColor="transparent"}}}return W.\u0275fac=function(U){s.$Z()},W.\u0275dir=s.lG2({type:W,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),W})(),I=(()=>{class W extends v{constructor(U,ge,nt,Ue,at,ye,xe,fe,Oe,oe,Fe,De){super(U,ge,nt,Ue,at,ye,xe,fe,Oe,oe,Fe,De),this._tooltipComponent=x,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(U){const nt=!this._dir||"ltr"==this._dir.value;return"top"===U.originY?U.offsetY=-8:"bottom"===U.originY?U.offsetY=8:"start"===U.originX?U.offsetX=nt?-8:8:"end"===U.originX&&(U.offsetX=nt?8:-8),U}}return W.\u0275fac=function(U){return new(U||W)(s.Y36(w.aV),s.Y36(s.SBq),s.Y36(C.mF),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(h.t4),s.Y36(P.$s),s.Y36(P.tE),s.Y36(J),s.Y36(d.Is,8),s.Y36(ie,8),s.Y36(y.K0))},W.\u0275dir=s.lG2({type:W,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],exportAs:["matTooltip"],features:[s.qOj]}),W})(),k=(()=>{class W{constructor(U,ge){this._changeDetectorRef=U,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new D.x,this._animationsDisabled="NoopAnimations"===ge}show(U){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},U)}hide(U){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},U)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:U}){(!U||!this._triggerElement.contains(U))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:U}){(U===this._showAnimation||U===this._hideAnimation)&&this._finalizeAnimation(U===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(U){U?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(U){const ge=this._tooltip.nativeElement,nt=this._showAnimation,Ue=this._hideAnimation;if(ge.classList.remove(U?Ue:nt),ge.classList.add(U?nt:Ue),this._isVisible=U,U&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const at=getComputedStyle(ge);("0s"===at.getPropertyValue("animation-duration")||"none"===at.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}U&&this._onShow(),this._animationsDisabled&&(ge.classList.add("_mat-animation-noopable"),this._finalizeAnimation(U))}}return W.\u0275fac=function(U){return new(U||W)(s.Y36(s.sBO),s.Y36(s.QbO,8))},W.\u0275dir=s.lG2({type:W}),W})(),x=(()=>{class W extends k{constructor(U,ge,nt){super(U,nt),this._elementRef=ge,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const U=this._elementRef.nativeElement.getBoundingClientRect();return U.height>24&&U.width>=200}}return W.\u0275fac=function(U){return new(U||W)(s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(s.QbO,8))},W.\u0275cmp=s.Xpm({type:W,selectors:[["mat-tooltip-component"]],viewQuery:function(U,ge){if(1&U&&s.Gf(Y,7),2&U){let nt;s.iGM(nt=s.CRH())&&(ge._tooltip=nt.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(U,ge){1&U&&s.NdJ("mouseleave",function(Ue){return ge._handleMouseLeave(Ue)}),2&U&&s.Udp("zoom",ge.isVisible()?1:null)},features:[s.qOj],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(U,ge){1&U&&(s.TgZ(0,"div",0,1),s.NdJ("animationend",function(Ue){return ge._handleAnimationEnd(Ue)}),s.TgZ(2,"div",2),s._uU(3),s.qZA()()),2&U&&(s.ekj("mdc-tooltip--multiline",ge._isMultiline),s.Q6J("ngClass",ge.tooltipClass),s.xp6(3),s.Oqu(ge.message))},dependencies:[y.mk],styles:['.mdc-tooltip__surface{word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color, #fff)}.mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color, #000)}.mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font, inherit);font-size:var(--mdc-plain-tooltip-supporting-text-size, inherit);font-weight:var(--mdc-plain-tooltip-supporting-text-weight, inherit);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, inherit)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0}),W})(),g=(()=>{class W{}return W.\u0275fac=function(U){return new(U||W)},W.\u0275mod=s.oAB({type:W}),W.\u0275inj=s.cJS({providers:[me],imports:[P.rt,y.ez,w.U8,V.BQ,V.BQ,C.ZD]}),W})()},5423:(We,q,m)=>{"use strict";m.d(q,{Ar:()=>z,GZ:()=>L,WX:()=>me,dp:()=>Q,eu:()=>Y,fQ:()=>C,gi:()=>V,uo:()=>w});var t=m(7851),e=m(4650),_=m(3238),T=m(1281),s=m(5017),y=m(1135),h=m(6451),P=m(4004);const d=(0,_.sb)((0,_.Id)(t.Hs));let w=(()=>{class re extends d{constructor(se,ce,Ce){super(se,ce),this.tabIndex=Number(Ce)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return re.\u0275fac=function(se){return new(se||re)(e.Y36(e.SBq),e.Y36(t._0),e.$8M("tabindex"))},re.\u0275dir=e.lG2({type:re,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[e._Bn([{provide:t.Hs,useExisting:re}]),e.qOj]}),re})(),C=(()=>{class re extends t.rO{}return re.\u0275fac=function(){let ie;return function(ce){return(ie||(ie=e.n5z(re)))(ce||re)}}(),re.\u0275dir=e.lG2({type:re,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[e._Bn([{provide:t.rO,useExisting:re}]),e.qOj]}),re})(),L=(()=>{class re extends t.Xx{get disabled(){return this._disabled}set disabled(se){this._disabled=(0,T.Ig)(se)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(se){this._tabIndex=se??0}constructor(se,ce,Ce,M){super(se,ce,Ce),this._disabled=!1,this.tabIndex=Number(M)||0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return re.\u0275fac=function(se){return new(se||re)(e.Y36(e.SBq),e.Y36(t._0),e.Y36(e.ZZ4),e.$8M("tabindex"))},re.\u0275dir=e.lG2({type:re,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[e._Bn([{provide:t.Xx,useExisting:re},{provide:t.Hs,useExisting:re},{provide:t.HI,useExisting:re}]),e.qOj]}),re})(),z=(()=>{class re{constructor(se,ce){this.viewContainer=se,this._node=ce}}return re.\u0275fac=function(se){return new(se||re)(e.Y36(e.s_b),e.Y36(t.HI,8))},re.\u0275dir=e.lG2({type:re,selectors:[["","matTreeNodeOutlet",""]],features:[e._Bn([{provide:t.cu,useExisting:re}])]}),re})(),V=(()=>{class re extends t._0{}return re.\u0275fac=function(){let ie;return function(ce){return(ie||(ie=e.n5z(re)))(ce||re)}}(),re.\u0275cmp=e.Xpm({type:re,selectors:[["mat-tree"]],viewQuery:function(se,ce){if(1&se&&e.Gf(z,7),2&se){let Ce;e.iGM(Ce=e.CRH())&&(ce._nodeOutlet=Ce.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[e._Bn([{provide:t._0,useExisting:re}]),e.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(se,ce){1&se&&e.GkF(0,0)},dependencies:[z],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}"],encapsulation:2}),re})(),Y=(()=>{class re extends t.Ud{}return re.\u0275fac=function(){let ie;return function(ce){return(ie||(ie=e.n5z(re)))(ce||re)}}(),re.\u0275dir=e.lG2({type:re,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[e._Bn([{provide:t.Ud,useExisting:re}]),e.qOj]}),re})(),Q=(()=>{class re{}return re.\u0275fac=function(se){return new(se||re)},re.\u0275mod=e.oAB({type:re}),re.\u0275inj=e.cJS({imports:[t.nZ,_.BQ,_.BQ]}),re})();class me extends s.o2{constructor(){super(...arguments),this._data=new y.X([])}get data(){return this._data.value}set data(ie){this._data.next(ie)}connect(ie){return(0,h.T)(ie.viewChange,this._data).pipe((0,P.U)(()=>this.data))}disconnect(){}}},1481:(We,q,m)=>{"use strict";m.d(q,{Dx:()=>Ut,H7:()=>ii,b2:()=>Pe,q6:()=>Me,se:()=>l,t6:()=>Vt});var t=m(6895),e=m(4650);class _ extends t.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class T extends _{static makeCurrent(){(0,t.HT)(new T)}onAndCancel(gt,$e,_t){return gt.addEventListener($e,_t,!1),()=>{gt.removeEventListener($e,_t,!1)}}dispatchEvent(gt,$e){gt.dispatchEvent($e)}remove(gt){gt.parentNode&>.parentNode.removeChild(gt)}createElement(gt,$e){return($e=$e||this.getDefaultDocument()).createElement(gt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(gt){return gt.nodeType===Node.ELEMENT_NODE}isShadowRoot(gt){return gt instanceof DocumentFragment}getGlobalEventTarget(gt,$e){return"window"===$e?window:"document"===$e?gt:"body"===$e?gt.body:null}getBaseHref(gt){const $e=function y(){return s=s||document.querySelector("base"),s?s.getAttribute("href"):null}();return null==$e?null:function P(St){h=h||document.createElement("a"),h.setAttribute("href",St);const gt=h.pathname;return"/"===gt.charAt(0)?gt:`/${gt}`}($e)}resetBaseElement(){s=null}getUserAgent(){return window.navigator.userAgent}getCookie(gt){return(0,t.Mx)(document.cookie,gt)}}let h,s=null;const d=new e.OlP("TRANSITION_ID"),C=[{provide:e.ip1,useFactory:function w(St,gt,$e){return()=>{$e.get(e.CZH).donePromise.then(()=>{const _t=(0,t.q)(),vt=gt.querySelectorAll(`style[ng-transition="${St}"]`);for(let He=0;He{class St{build(){return new XMLHttpRequest}}return St.\u0275fac=function($e){return new($e||St)},St.\u0275prov=e.Yz7({token:St,factory:St.\u0275fac}),St})();const z=new e.OlP("EventManagerPlugins");let V=(()=>{class St{constructor($e,_t){this._zone=_t,this._eventNameToPlugin=new Map,$e.forEach(vt=>{vt.manager=this}),this._plugins=$e.slice().reverse()}addEventListener($e,_t,vt){return this._findPluginFor(_t).addEventListener($e,_t,vt)}addGlobalEventListener($e,_t,vt){return this._findPluginFor(_t).addGlobalEventListener($e,_t,vt)}getZone(){return this._zone}_findPluginFor($e){const _t=this._eventNameToPlugin.get($e);if(_t)return _t;const vt=this._plugins;for(let He=0;He{class St{constructor(){this.usageCount=new Map}addStyles($e){for(const _t of $e)1===this.changeUsageCount(_t,1)&&this.onStyleAdded(_t)}removeStyles($e){for(const _t of $e)0===this.changeUsageCount(_t,-1)&&this.onStyleRemoved(_t)}onStyleRemoved($e){}onStyleAdded($e){}getAllStyles(){return this.usageCount.keys()}changeUsageCount($e,_t){const vt=this.usageCount;let He=vt.get($e)??0;return He+=_t,He>0?vt.set($e,He):vt.delete($e),He}ngOnDestroy(){for(const $e of this.getAllStyles())this.onStyleRemoved($e);this.usageCount.clear()}}return St.\u0275fac=function($e){return new($e||St)},St.\u0275prov=e.Yz7({token:St,factory:St.\u0275fac}),St})(),Q=(()=>{class St extends j{constructor($e){super(),this.doc=$e,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded($e){for(const _t of this.hostNodes)this.addStyleToHost(_t,$e)}onStyleRemoved($e){const _t=this.styleRef;_t.get($e)?.forEach(He=>He.remove()),_t.delete($e)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost($e){this.hostNodes.add($e);for(const _t of this.getAllStyles())this.addStyleToHost($e,_t)}removeHost($e){this.hostNodes.delete($e)}addStyleToHost($e,_t){const vt=this.doc.createElement("style");vt.textContent=_t,$e.appendChild(vt);const He=this.styleRef.get(_t);He?He.push(vt):this.styleRef.set(_t,[vt])}resetHostNodes(){const $e=this.hostNodes;$e.clear(),$e.add(this.doc.head)}}return St.\u0275fac=function($e){return new($e||St)(e.LFG(t.K0))},St.\u0275prov=e.Yz7({token:St,factory:St.\u0275fac}),St})();const J={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},ee=/%COMP%/g,Ce=new e.OlP("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function a(St,gt){return gt.flat(100).map($e=>$e.replace(ee,St))}function f(St){return gt=>{if("__ngUnwrap__"===gt)return St;!1===St(gt)&&(gt.preventDefault(),gt.returnValue=!1)}}let l=(()=>{class St{constructor($e,_t,vt,He){this.eventManager=$e,this.sharedStylesHost=_t,this.appId=vt,this.removeStylesOnCompDestory=He,this.rendererByCompId=new Map,this.defaultRenderer=new v($e)}createRenderer($e,_t){if(!$e||!_t)return this.defaultRenderer;const vt=this.getOrCreateRenderer($e,_t);return vt instanceof W?vt.applyToHost($e):vt instanceof g&&vt.applyStyles(),vt}getOrCreateRenderer($e,_t){const vt=this.rendererByCompId;let He=vt.get(_t.id);if(!He){const Et=this.eventManager,At=this.sharedStylesHost,Qt=this.removeStylesOnCompDestory;switch(_t.encapsulation){case e.ifc.Emulated:He=new W(Et,At,_t,this.appId,Qt);break;case e.ifc.ShadowDom:return new n(Et,At,$e,_t);default:He=new g(Et,At,_t,Qt)}He.onDestroy=()=>vt.delete(_t.id),vt.set(_t.id,He)}return He}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return St.\u0275fac=function($e){return new($e||St)(e.LFG(V),e.LFG(Q),e.LFG(e.AFp),e.LFG(Ce))},St.\u0275prov=e.Yz7({token:St,factory:St.\u0275fac}),St})();class v{constructor(gt){this.eventManager=gt,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(gt,$e){return $e?document.createElementNS(J[$e]||$e,gt):document.createElement(gt)}createComment(gt){return document.createComment(gt)}createText(gt){return document.createTextNode(gt)}appendChild(gt,$e){(x(gt)?gt.content:gt).appendChild($e)}insertBefore(gt,$e,_t){gt&&(x(gt)?gt.content:gt).insertBefore($e,_t)}removeChild(gt,$e){gt&>.removeChild($e)}selectRootElement(gt,$e){let _t="string"==typeof gt?document.querySelector(gt):gt;if(!_t)throw new Error(`The selector "${gt}" did not match any elements`);return $e||(_t.textContent=""),_t}parentNode(gt){return gt.parentNode}nextSibling(gt){return gt.nextSibling}setAttribute(gt,$e,_t,vt){if(vt){$e=vt+":"+$e;const He=J[vt];He?gt.setAttributeNS(He,$e,_t):gt.setAttribute($e,_t)}else gt.setAttribute($e,_t)}removeAttribute(gt,$e,_t){if(_t){const vt=J[_t];vt?gt.removeAttributeNS(vt,$e):gt.removeAttribute(`${_t}:${$e}`)}else gt.removeAttribute($e)}addClass(gt,$e){gt.classList.add($e)}removeClass(gt,$e){gt.classList.remove($e)}setStyle(gt,$e,_t,vt){vt&(e.JOm.DashCase|e.JOm.Important)?gt.style.setProperty($e,_t,vt&e.JOm.Important?"important":""):gt.style[$e]=_t}removeStyle(gt,$e,_t){_t&e.JOm.DashCase?gt.style.removeProperty($e):gt.style[$e]=""}setProperty(gt,$e,_t){gt[$e]=_t}setValue(gt,$e){gt.nodeValue=$e}listen(gt,$e,_t){return"string"==typeof gt?this.eventManager.addGlobalEventListener(gt,$e,f(_t)):this.eventManager.addEventListener(gt,$e,f(_t))}}function x(St){return"TEMPLATE"===St.tagName&&void 0!==St.content}class n extends v{constructor(gt,$e,_t,vt){super(gt),this.sharedStylesHost=$e,this.hostEl=_t,this.shadowRoot=_t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const He=a(vt.id,vt.styles);for(const Et of He){const At=document.createElement("style");At.textContent=Et,this.shadowRoot.appendChild(At)}}nodeOrShadowRoot(gt){return gt===this.hostEl?this.shadowRoot:gt}appendChild(gt,$e){return super.appendChild(this.nodeOrShadowRoot(gt),$e)}insertBefore(gt,$e,_t){return super.insertBefore(this.nodeOrShadowRoot(gt),$e,_t)}removeChild(gt,$e){return super.removeChild(this.nodeOrShadowRoot(gt),$e)}parentNode(gt){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(gt)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class g extends v{constructor(gt,$e,_t,vt,He=_t.id){super(gt),this.sharedStylesHost=$e,this.removeStylesOnCompDestory=vt,this.rendererUsageCount=0,this.styles=a(He,_t.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class W extends g{constructor(gt,$e,_t,vt,He){const Et=vt+"-"+_t.id;super(gt,$e,_t,He,Et),this.contentAttr=function M(St){return"_ngcontent-%COMP%".replace(ee,St)}(Et),this.hostAttr=function i(St){return"_nghost-%COMP%".replace(ee,St)}(Et)}applyToHost(gt){this.applyStyles(),this.setAttribute(gt,this.hostAttr,"")}createElement(gt,$e){const _t=super.createElement(gt,$e);return super.setAttribute(_t,this.contentAttr,""),_t}}let O=(()=>{class St extends Y{constructor($e){super($e)}supports($e){return!0}addEventListener($e,_t,vt){return $e.addEventListener(_t,vt,!1),()=>this.removeEventListener($e,_t,vt)}removeEventListener($e,_t,vt){return $e.removeEventListener(_t,vt)}}return St.\u0275fac=function($e){return new($e||St)(e.LFG(t.K0))},St.\u0275prov=e.Yz7({token:St,factory:St.\u0275fac}),St})();const U=["alt","control","meta","shift"],ge={"\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"},nt={alt:St=>St.altKey,control:St=>St.ctrlKey,meta:St=>St.metaKey,shift:St=>St.shiftKey};let Ue=(()=>{class St extends Y{constructor($e){super($e)}supports($e){return null!=St.parseEventName($e)}addEventListener($e,_t,vt){const He=St.parseEventName(_t),Et=St.eventCallback(He.fullKey,vt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,t.q)().onAndCancel($e,He.domEventName,Et))}static parseEventName($e){const _t=$e.toLowerCase().split("."),vt=_t.shift();if(0===_t.length||"keydown"!==vt&&"keyup"!==vt)return null;const He=St._normalizeKey(_t.pop());let Et="",At=_t.indexOf("code");if(At>-1&&(_t.splice(At,1),Et="code."),U.forEach(zi=>{const Ni=_t.indexOf(zi);Ni>-1&&(_t.splice(Ni,1),Et+=zi+".")}),Et+=He,0!=_t.length||0===He.length)return null;const Qt={};return Qt.domEventName=vt,Qt.fullKey=Et,Qt}static matchEventFullKeyCode($e,_t){let vt=ge[$e.key]||$e.key,He="";return _t.indexOf("code.")>-1&&(vt=$e.code,He="code."),!(null==vt||!vt)&&(vt=vt.toLowerCase()," "===vt?vt="space":"."===vt&&(vt="dot"),U.forEach(Et=>{Et!==vt&&(0,nt[Et])($e)&&(He+=Et+".")}),He+=vt,He===_t)}static eventCallback($e,_t,vt){return He=>{St.matchEventFullKeyCode(He,$e)&&vt.runGuarded(()=>_t(He))}}static _normalizeKey($e){return"esc"===$e?"escape":$e}}return St.\u0275fac=function($e){return new($e||St)(e.LFG(t.K0))},St.\u0275prov=e.Yz7({token:St,factory:St.\u0275fac}),St})();const Me=(0,e.eFA)(e._c5,"browser",[{provide:e.Lbi,useValue:t.bD},{provide:e.g9A,useValue:function oe(){T.makeCurrent()},multi:!0},{provide:t.K0,useFactory:function De(){return(0,e.RDi)(document),document},deps:[]}]),pe=new e.OlP(""),Ve=[{provide:e.rWj,useClass:class L{addToWindow(gt){e.dqk.getAngularTestability=(_t,vt=!0)=>{const He=gt.findTestabilityInTree(_t,vt);if(null==He)throw new Error("Could not find testability for element.");return He},e.dqk.getAllAngularTestabilities=()=>gt.getAllTestabilities(),e.dqk.getAllAngularRootElements=()=>gt.getAllRootElements(),e.dqk.frameworkStabilizers||(e.dqk.frameworkStabilizers=[]),e.dqk.frameworkStabilizers.push(_t=>{const vt=e.dqk.getAllAngularTestabilities();let He=vt.length,Et=!1;const At=function(Qt){Et=Et||Qt,He--,0==He&&_t(Et)};vt.forEach(function(Qt){Qt.whenStable(At)})})}findTestabilityInTree(gt,$e,_t){return null==$e?null:gt.getTestability($e)??(_t?(0,t.q)().isShadowRoot($e)?this.findTestabilityInTree(gt,$e.host,!0):this.findTestabilityInTree(gt,$e.parentElement,!0):null)}},deps:[]},{provide:e.lri,useClass:e.dDg,deps:[e.R0b,e.eoX,e.rWj]},{provide:e.dDg,useClass:e.dDg,deps:[e.R0b,e.eoX,e.rWj]}],Qe=[{provide:e.zSh,useValue:"root"},{provide:e.qLn,useFactory:function Fe(){return new e.qLn},deps:[]},{provide:z,useClass:O,multi:!0,deps:[t.K0,e.R0b,e.Lbi]},{provide:z,useClass:Ue,multi:!0,deps:[t.K0]},{provide:l,useClass:l,deps:[V,Q,e.AFp,Ce]},{provide:e.FYo,useExisting:l},{provide:j,useExisting:Q},{provide:Q,useClass:Q,deps:[t.K0]},{provide:V,useClass:V,deps:[z,e.R0b]},{provide:t.JF,useClass:D,deps:[]},[]];let Pe=(()=>{class St{constructor($e){}static withServerTransition($e){return{ngModule:St,providers:[{provide:e.AFp,useValue:$e.appId},{provide:d,useExisting:e.AFp},C]}}}return St.\u0275fac=function($e){return new($e||St)(e.LFG(pe,12))},St.\u0275mod=e.oAB({type:St}),St.\u0275inj=e.cJS({providers:[...Qe,...Ve],imports:[t.ez,e.hGG]}),St})(),Ut=(()=>{class St{constructor($e){this._doc=$e}getTitle(){return this._doc.title}setTitle($e){this._doc.title=$e||""}}return St.\u0275fac=function($e){return new($e||St)(e.LFG(t.K0))},St.\u0275prov=e.Yz7({token:St,factory:function($e){let _t=null;return _t=$e?new $e:function lt(){return new Ut((0,e.LFG)(t.K0))}(),_t},providedIn:"root"}),St})();typeof window<"u"&&window;const $={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},ue=new e.OlP("HammerGestureConfig"),Ae=new e.OlP("HammerLoader");let Je=(()=>{class St{constructor(){this.events=[],this.overrides={}}buildHammer($e){const _t=new Hammer($e,this.options);_t.get("pinch").set({enable:!0}),_t.get("rotate").set({enable:!0});for(const vt in this.overrides)_t.get(vt).set(this.overrides[vt]);return _t}}return St.\u0275fac=function($e){return new($e||St)},St.\u0275prov=e.Yz7({token:St,factory:St.\u0275fac}),St})(),$t=(()=>{class St extends Y{constructor($e,_t,vt,He){super($e),this._config=_t,this.console=vt,this.loader=He,this._loaderPromise=null}supports($e){return!(!$.hasOwnProperty($e.toLowerCase())&&!this.isCustomEvent($e)||!window.Hammer&&!this.loader)}addEventListener($e,_t,vt){const He=this.manager.getZone();if(_t=_t.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||He.runOutsideAngular(()=>this.loader());let Et=!1,At=()=>{Et=!0};return He.runOutsideAngular(()=>this._loaderPromise.then(()=>{window.Hammer?Et||(At=this.addEventListener($e,_t,vt)):At=()=>{}}).catch(()=>{At=()=>{}})),()=>{At()}}return He.runOutsideAngular(()=>{const Et=this._config.buildHammer($e),At=function(Qt){He.runGuarded(function(){vt(Qt)})};return Et.on(_t,At),()=>{Et.off(_t,At),"function"==typeof Et.destroy&&Et.destroy()}})}isCustomEvent($e){return this._config.events.indexOf($e)>-1}}return St.\u0275fac=function($e){return new($e||St)(e.LFG(t.K0),e.LFG(ue),e.LFG(e.c2e),e.LFG(Ae,8))},St.\u0275prov=e.Yz7({token:St,factory:St.\u0275fac}),St})(),Vt=(()=>{class St{}return St.\u0275fac=function($e){return new($e||St)},St.\u0275mod=e.oAB({type:St}),St.\u0275inj=e.cJS({providers:[{provide:z,useClass:$t,multi:!0,deps:[t.K0,ue,e.c2e,[new e.FiY,Ae]]},{provide:ue,useClass:Je,deps:[]}]}),St})(),ii=(()=>{class St{}return St.\u0275fac=function($e){return new($e||St)},St.\u0275prov=e.Yz7({token:St,factory:function($e){let _t=null;return _t=$e?new($e||St):e.LFG(ot),_t},providedIn:"root"}),St})(),ot=(()=>{class St extends ii{constructor($e){super(),this._doc=$e}sanitize($e,_t){if(null==_t)return null;switch($e){case e.q3G.NONE:return _t;case e.q3G.HTML:return(0,e.qzn)(_t,"HTML")?(0,e.z3N)(_t):(0,e.EiD)(this._doc,String(_t)).toString();case e.q3G.STYLE:return(0,e.qzn)(_t,"Style")?(0,e.z3N)(_t):_t;case e.q3G.SCRIPT:if((0,e.qzn)(_t,"Script"))return(0,e.z3N)(_t);throw new Error("unsafe value used in a script context");case e.q3G.URL:return(0,e.qzn)(_t,"URL")?(0,e.z3N)(_t):(0,e.mCW)(String(_t));case e.q3G.RESOURCE_URL:if((0,e.qzn)(_t,"ResourceURL"))return(0,e.z3N)(_t);throw new Error(`unsafe value used in a resource URL context (see ${e.JZr})`);default:throw new Error(`Unexpected SecurityContext ${$e} (see ${e.JZr})`)}}bypassSecurityTrustHtml($e){return(0,e.JVY)($e)}bypassSecurityTrustStyle($e){return(0,e.L6k)($e)}bypassSecurityTrustScript($e){return(0,e.eBb)($e)}bypassSecurityTrustUrl($e){return(0,e.LAX)($e)}bypassSecurityTrustResourceUrl($e){return(0,e.pB0)($e)}}return St.\u0275fac=function($e){return new($e||St)(e.LFG(t.K0))},St.\u0275prov=e.Yz7({token:St,factory:function($e){let _t=null;return _t=$e?new $e:function pt(St){return new ot(St.get(t.K0))}(e.LFG(e.zs3)),_t},providedIn:"root"}),St})()},9116:(We,q,m)=>{"use strict";m.d(q,{gz:()=>jn,gk:()=>li,m2:()=>vi,Q3:()=>gi,OD:()=>Ot,Av:()=>Ea,F0:()=>Ar,rH:()=>Os,Od:()=>Fc,Bz:()=>c2,lC:()=>sa});var t=m(4650),e=m(457),_=m(9646),T=m(1135),s=m(6805),y=m(9841),h=m(7272),P=m(9770),d=m(9635),w=m(2843),C=m(9751),L=m(515),D=m(4033),z=m(7579),V=m(6895),Y=m(4004),j=m(3900),Q=m(5698),J=m(8675),ee=m(9300),me=m(5577),re=m(590),ie=m(4351),se=m(8505),ce=m(262),Ce=m(5026),M=m(4482),i=m(5403);function a(ve){return ve<=0?()=>L.E:(0,M.e)((we,ae)=>{let Be=[];we.subscribe((0,i.x)(ae,ut=>{Be.push(ut),ve{for(const ut of Be)ae.next(ut);ae.complete()},void 0,()=>{Be=null}))})}var f=m(8068),l=m(6590),v=m(4671);function I(ve,we){const ae=arguments.length>=2;return Be=>Be.pipe(ve?(0,ee.h)((ut,Lt)=>ve(ut,Lt,Be)):v.y,a(1),ae?(0,l.d)(we):(0,f.T)(()=>new s.K))}var k=m(2529),x=m(9718),n=m(8746),g=m(8343),W=m(8189),O=m(1481);const U="primary",ge=Symbol("RouteTitle");class nt{constructor(we){this.params=we||{}}has(we){return Object.prototype.hasOwnProperty.call(this.params,we)}get(we){if(this.has(we)){const ae=this.params[we];return Array.isArray(ae)?ae[0]:ae}return null}getAll(we){if(this.has(we)){const ae=this.params[we];return Array.isArray(ae)?ae:[ae]}return[]}get keys(){return Object.keys(this.params)}}function Ue(ve){return new nt(ve)}function at(ve,we,ae){const Be=ae.path.split("/");if(Be.length>ve.length||"full"===ae.pathMatch&&(we.hasChildren()||Be.lengthBe[Lt]===ut)}return ve===we}function Oe(ve){return Array.prototype.concat.apply([],ve)}function oe(ve){return ve.length>0?ve[ve.length-1]:null}function De(ve,we){for(const ae in ve)ve.hasOwnProperty(ae)&&we(ve[ae],ae)}function he(ve){return(0,t.CqO)(ve)?ve:(0,t.QGY)(ve)?(0,e.D)(Promise.resolve(ve)):(0,_.of)(ve)}const Me=!1,pe={exact:function de(ve,we,ae){if(!qe(ve.segments,we.segments)||!Ut(ve.segments,we.segments,ae)||ve.numberOfChildren!==we.numberOfChildren)return!1;for(const Be in we.children)if(!ve.children[Be]||!de(ve.children[Be],we.children[Be],ae))return!1;return!0},subset:Ke},Ve={exact:function Pe(ve,we){return xe(ve,we)},subset:function rt(ve,we){return Object.keys(we).length<=Object.keys(ve).length&&Object.keys(we).every(ae=>fe(ve[ae],we[ae]))},ignored:()=>!0};function Qe(ve,we,ae){return pe[ae.paths](ve.root,we.root,ae.matrixParams)&&Ve[ae.queryParams](ve.queryParams,we.queryParams)&&!("exact"===ae.fragment&&ve.fragment!==we.fragment)}function Ke(ve,we,ae){return lt(ve,we,we.segments,ae)}function lt(ve,we,ae,Be){if(ve.segments.length>ae.length){const ut=ve.segments.slice(0,ae.length);return!(!qe(ut,ae)||we.hasChildren()||!Ut(ut,ae,Be))}if(ve.segments.length===ae.length){if(!qe(ve.segments,ae)||!Ut(ve.segments,ae,Be))return!1;for(const ut in we.children)if(!ve.children[ut]||!Ke(ve.children[ut],we.children[ut],Be))return!1;return!0}{const ut=ae.slice(0,ve.segments.length),Lt=ae.slice(ve.segments.length);return!!(qe(ve.segments,ut)&&Ut(ve.segments,ut,Be)&&ve.children[U])&<(ve.children[U],we,Lt,Be)}}function Ut(ve,we,ae){return we.every((Be,ut)=>Ve[ae](ve[ut].parameters,Be.parameters))}class ht{constructor(we=new Ge([],{}),ae={},Be=null){this.root=we,this.queryParams=ae,this.fragment=Be}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ue(this.queryParams)),this._queryParamMap}toString(){return Tt.serialize(this)}}class Ge{constructor(we,ae){this.segments=we,this.children=ae,this.parent=null,De(ae,(Be,ut)=>Be.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return it(this)}}class yt{constructor(we,ae){this.path=we,this.parameters=ae}get parameterMap(){return this._parameterMap||(this._parameterMap=Ue(this.parameters)),this._parameterMap}toString(){return ue(this)}}function qe(ve,we){return ve.length===we.length&&ve.every((ae,Be)=>ae.path===we[Be].path)}let X=(()=>{class ve{}return ve.\u0275fac=function(ae){return new(ae||ve)},ve.\u0275prov=t.Yz7({token:ve,factory:function(){return new mt},providedIn:"root"}),ve})();class mt{parse(we){const ae=new St(we);return new ht(ae.parseRootSegment(),ae.parseQueryParams(),ae.parseFragment())}serialize(we){const ae=`/${je(we.root,!0)}`,Be=function Je(ve){const we=Object.keys(ve).map(ae=>{const Be=ve[ae];return Array.isArray(Be)?Be.map(ut=>`${xt(ae)}=${xt(ut)}`).join("&"):`${xt(ae)}=${xt(Be)}`}).filter(ae=>!!ae);return we.length?`?${we.join("&")}`:""}(we.queryParams);return`${ae}${Be}${"string"==typeof we.fragment?`#${function Nt(ve){return encodeURI(ve)}(we.fragment)}`:""}`}}const Tt=new mt;function it(ve){return ve.segments.map(we=>ue(we)).join("/")}function je(ve,we){if(!ve.hasChildren())return it(ve);if(we){const ae=ve.children[U]?je(ve.children[U],!1):"",Be=[];return De(ve.children,(ut,Lt)=>{Lt!==U&&Be.push(`${Lt}:${je(ut,!1)}`)}),Be.length>0?`${ae}(${Be.join("//")})`:ae}{const ae=function Ie(ve,we){let ae=[];return De(ve.children,(Be,ut)=>{ut===U&&(ae=ae.concat(we(Be,ut)))}),De(ve.children,(Be,ut)=>{ut!==U&&(ae=ae.concat(we(Be,ut)))}),ae}(ve,(Be,ut)=>ut===U?[je(ve.children[U],!1)]:[`${ut}:${je(Be,!1)}`]);return 1===Object.keys(ve.children).length&&null!=ve.children[U]?`${it(ve)}/${ae[0]}`:`${it(ve)}/(${ae.join("//")})`}}function zt(ve){return encodeURIComponent(ve).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function xt(ve){return zt(ve).replace(/%3B/gi,";")}function Gt(ve){return zt(ve).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ke(ve){return decodeURIComponent(ve)}function $(ve){return ke(ve.replace(/\+/g,"%20"))}function ue(ve){return`${Gt(ve.path)}${function Ae(ve){return Object.keys(ve).map(we=>`;${Gt(we)}=${Gt(ve[we])}`).join("")}(ve.parameters)}`}const $t=/^[^\/()?;=#]+/;function Vt(ve){const we=ve.match($t);return we?we[0]:""}const ii=/^[^=?&#]+/,ot=/^[^&#]+/;class St{constructor(we){this.url=we,this.remaining=we}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ge([],{}):new Ge([],this.parseChildren())}parseQueryParams(){const we={};if(this.consumeOptional("?"))do{this.parseQueryParam(we)}while(this.consumeOptional("&"));return we}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const we=[];for(this.peekStartsWith("(")||we.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),we.push(this.parseSegment());let ae={};this.peekStartsWith("/(")&&(this.capture("/"),ae=this.parseParens(!0));let Be={};return this.peekStartsWith("(")&&(Be=this.parseParens(!1)),(we.length>0||Object.keys(ae).length>0)&&(Be[U]=new Ge(we,ae)),Be}parseSegment(){const we=Vt(this.remaining);if(""===we&&this.peekStartsWith(";"))throw new t.vHH(4009,Me);return this.capture(we),new yt(ke(we),this.parseMatrixParams())}parseMatrixParams(){const we={};for(;this.consumeOptional(";");)this.parseParam(we);return we}parseParam(we){const ae=Vt(this.remaining);if(!ae)return;this.capture(ae);let Be="";if(this.consumeOptional("=")){const ut=Vt(this.remaining);ut&&(Be=ut,this.capture(Be))}we[ke(ae)]=ke(Be)}parseQueryParam(we){const ae=function pt(ve){const we=ve.match(ii);return we?we[0]:""}(this.remaining);if(!ae)return;this.capture(ae);let Be="";if(this.consumeOptional("=")){const Ht=function ft(ve){const we=ve.match(ot);return we?we[0]:""}(this.remaining);Ht&&(Be=Ht,this.capture(Be))}const ut=$(ae),Lt=$(Be);if(we.hasOwnProperty(ut)){let Ht=we[ut];Array.isArray(Ht)||(Ht=[Ht],we[ut]=Ht),Ht.push(Lt)}else we[ut]=Lt}parseParens(we){const ae={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Be=Vt(this.remaining),ut=this.remaining[Be.length];if("/"!==ut&&")"!==ut&&";"!==ut)throw new t.vHH(4010,Me);let Lt;Be.indexOf(":")>-1?(Lt=Be.slice(0,Be.indexOf(":")),this.capture(Lt),this.capture(":")):we&&(Lt=U);const Ht=this.parseChildren();ae[Lt]=1===Object.keys(Ht).length?Ht[U]:new Ge([],Ht),this.consumeOptional("//")}return ae}peekStartsWith(we){return this.remaining.startsWith(we)}consumeOptional(we){return!!this.peekStartsWith(we)&&(this.remaining=this.remaining.substring(we.length),!0)}capture(we){if(!this.consumeOptional(we))throw new t.vHH(4011,Me)}}function gt(ve){return ve.segments.length>0?new Ge([],{[U]:ve}):ve}function $e(ve){const we={};for(const Be of Object.keys(ve.children)){const Lt=$e(ve.children[Be]);(Lt.segments.length>0||Lt.hasChildren())&&(we[Be]=Lt)}return function _t(ve){if(1===ve.numberOfChildren&&ve.children[U]){const we=ve.children[U];return new Ge(ve.segments.concat(we.segments),we.children)}return ve}(new Ge(ve.segments,we))}function vt(ve){return ve instanceof ht}const He=!1;function zi(ve,we,ae,Be,ut){if(0===ae.length)return Gi(we.root,we.root,we.root,Be,ut);const Lt=function Se(ve){if("string"==typeof ve[0]&&1===ve.length&&"/"===ve[0])return new It(!0,0,ve);let we=0,ae=!1;const Be=ve.reduce((ut,Lt,Ht)=>{if("object"==typeof Lt&&null!=Lt){if(Lt.outlets){const ui={};return De(Lt.outlets,(Di,rn)=>{ui[rn]="string"==typeof Di?Di.split("/"):Di}),[...ut,{outlets:ui}]}if(Lt.segmentPath)return[...ut,Lt.segmentPath]}return"string"!=typeof Lt?[...ut,Lt]:0===Ht?(Lt.split("/").forEach((ui,Di)=>{0==Di&&"."===ui||(0==Di&&""===ui?ae=!0:".."===ui?we++:""!=ui&&ut.push(ui))}),ut):[...ut,Lt]},[]);return new It(ae,we,Be)}(ae);return Lt.toRoot()?Gi(we.root,we.root,new Ge([],{}),Be,ut):function Ht(Di){const rn=function si(ve,we,ae,Be){if(ve.isAbsolute)return new wt(we.root,!0,0);if(-1===Be)return new wt(ae,ae===we.root,0);return function Ai(ve,we,ae){let Be=ve,ut=we,Lt=ae;for(;Lt>ut;){if(Lt-=ut,Be=Be.parent,!Be)throw new t.vHH(4005,He&&"Invalid number of '../'");ut=Be.segments.length}return new wt(Be,!1,ut-Lt)}(ae,Be+(Ni(ve.commands[0])?0:1),ve.numberOfDoubleDots)}(Lt,we,ve.snapshot?._urlSegment,Di),an=rn.processChildren?en(rn.segmentGroup,rn.index,Lt.commands):Qi(rn.segmentGroup,rn.index,Lt.commands);return Gi(we.root,rn.segmentGroup,an,Be,ut)}(ve.snapshot?._lastPathIndex)}function Ni(ve){return"object"==typeof ve&&null!=ve&&!ve.outlets&&!ve.segmentPath}function Mi(ve){return"object"==typeof ve&&null!=ve&&ve.outlets}function Gi(ve,we,ae,Be,ut){let Ht,Lt={};Be&&De(Be,(Di,rn)=>{Lt[rn]=Array.isArray(Di)?Di.map(an=>`${an}`):`${Di}`}),Ht=ve===we?ae:Xe(ve,we,ae);const ui=gt($e(Ht));return new ht(ui,Lt,ut)}function Xe(ve,we,ae){const Be={};return De(ve.children,(ut,Lt)=>{Be[Lt]=ut===we?ae:Xe(ut,we,ae)}),new Ge(ve.segments,Be)}class It{constructor(we,ae,Be){if(this.isAbsolute=we,this.numberOfDoubleDots=ae,this.commands=Be,we&&Be.length>0&&Ni(Be[0]))throw new t.vHH(4003,He&&"Root segment cannot have matrix parameters");const ut=Be.find(Mi);if(ut&&ut!==oe(Be))throw new t.vHH(4004,He&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class wt{constructor(we,ae,Be){this.segmentGroup=we,this.processChildren=ae,this.index=Be}}function Qi(ve,we,ae){if(ve||(ve=new Ge([],{})),0===ve.segments.length&&ve.hasChildren())return en(ve,we,ae);const Be=function Yi(ve,we,ae){let Be=0,ut=we;const Lt={match:!1,pathIndex:0,commandIndex:0};for(;ut=ae.length)return Lt;const Ht=ve.segments[ut],ui=ae[Be];if(Mi(ui))break;const Di=`${ui}`,rn=Be0&&void 0===Di)break;if(Di&&rn&&"object"==typeof rn&&void 0===rn.outlets){if(!dt(Di,rn,Ht))return Lt;Be+=2}else{if(!dt(Di,{},Ht))return Lt;Be++}ut++}return{match:!0,pathIndex:ut,commandIndex:Be}}(ve,we,ae),ut=ae.slice(Be.commandIndex);if(Be.match&&Be.pathIndex{"string"==typeof Lt&&(Lt=[Lt]),null!==Lt&&(ut[Ht]=Qi(ve.children[Ht],we,Lt))}),De(ve.children,(Lt,Ht)=>{void 0===Be[Ht]&&(ut[Ht]=Lt)}),new Ge(ve.segments,ut)}}function Yt(ve,we,ae){const Be=ve.segments.slice(0,we);let ut=0;for(;ut{"string"==typeof ae&&(ae=[ae]),null!==ae&&(we[Be]=Yt(new Ge([],{}),0,ae))}),we}function _e(ve){const we={};return De(ve,(ae,Be)=>we[Be]=`${ae}`),we}function dt(ve,we,ae){return ve==ae.path&&xe(we,ae.parameters)}const Dt="imperative";class Bt{constructor(we,ae){this.id=we,this.url=ae}}class Ot extends Bt{constructor(we,ae,Be="imperative",ut=null){super(we,ae),this.type=0,this.navigationTrigger=Be,this.restoredState=ut}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class vi extends Bt{constructor(we,ae,Be){super(we,ae),this.urlAfterRedirects=Be,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class li extends Bt{constructor(we,ae,Be,ut){super(we,ae),this.reason=Be,this.code=ut,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class mi extends Bt{constructor(we,ae,Be,ut){super(we,ae),this.reason=Be,this.code=ut,this.type=16}}class gi extends Bt{constructor(we,ae,Be,ut){super(we,ae),this.error=Be,this.target=ut,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ui extends Bt{constructor(we,ae,Be,ut){super(we,ae),this.urlAfterRedirects=Be,this.state=ut,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Un extends Bt{constructor(we,ae,Be,ut){super(we,ae),this.urlAfterRedirects=Be,this.state=ut,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Dn extends Bt{constructor(we,ae,Be,ut,Lt){super(we,ae),this.urlAfterRedirects=Be,this.state=ut,this.shouldActivate=Lt,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class oa extends Bt{constructor(we,ae,Be,ut){super(we,ae),this.urlAfterRedirects=Be,this.state=ut,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ea extends Bt{constructor(we,ae,Be,ut){super(we,ae),this.urlAfterRedirects=Be,this.state=ut,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ta{constructor(we){this.route=we,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class er{constructor(we){this.route=we,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Jt{constructor(we){this.snapshot=we,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pi{constructor(we){this.snapshot=we,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Kt{constructor(we){this.snapshot=we,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ri{constructor(we){this.snapshot=we,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xi{constructor(we,ae,Be){this.routerEvent=we,this.position=ae,this.anchor=Be,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let Gn=(()=>{class ve{createUrlTree(ae,Be,ut,Lt,Ht,ui){return zi(ae||Be.root,ut,Lt,Ht,ui)}}return ve.\u0275fac=function(ae){return new(ae||ve)},ve.\u0275prov=t.Yz7({token:ve,factory:ve.\u0275fac}),ve})(),_a=(()=>{class ve{}return ve.\u0275fac=function(ae){return new(ae||ve)},ve.\u0275prov=t.Yz7({token:ve,factory:function(we){return Gn.\u0275fac(we)},providedIn:"root"}),ve})();class Tn{constructor(we){this._root=we}get root(){return this._root.value}parent(we){const ae=this.pathFromRoot(we);return ae.length>1?ae[ae.length-2]:null}children(we){const ae=Vn(we,this._root);return ae?ae.children.map(Be=>Be.value):[]}firstChild(we){const ae=Vn(we,this._root);return ae&&ae.children.length>0?ae.children[0].value:null}siblings(we){const ae=xo(we,this._root);return ae.length<2?[]:ae[ae.length-2].children.map(ut=>ut.value).filter(ut=>ut!==we)}pathFromRoot(we){return xo(we,this._root).map(ae=>ae.value)}}function Vn(ve,we){if(ve===we.value)return we;for(const ae of we.children){const Be=Vn(ve,ae);if(Be)return Be}return null}function xo(ve,we){if(ve===we.value)return[we];for(const ae of we.children){const Be=xo(ve,ae);if(Be.length)return Be.unshift(we),Be}return[]}class zn{constructor(we,ae){this.value=we,this.children=ae}toString(){return`TreeNode(${this.value})`}}function ia(ve){const we={};return ve&&ve.children.forEach(ae=>we[ae.value.outlet]=ae),we}class Co extends Tn{constructor(we,ae){super(we),this.snapshot=ae,Yr(this,we)}toString(){return this.snapshot.toString()}}function Pr(ve,we){const ae=function xr(ve,we){const Ht=new Rr([],{},{},"",{},U,we,null,ve.root,-1,{});return new Nr("",new zn(Ht,[]))}(ve,we),Be=new T.X([new yt("",{})]),ut=new T.X({}),Lt=new T.X({}),Ht=new T.X({}),ui=new T.X(""),Di=new jn(Be,ut,Ht,ui,Lt,U,we,ae.root);return Di.snapshot=ae.root,new Co(new zn(Di,[]),ae)}class jn{constructor(we,ae,Be,ut,Lt,Ht,ui,Di){this.url=we,this.params=ae,this.queryParams=Be,this.fragment=ut,this.data=Lt,this.outlet=Ht,this.component=ui,this.title=this.data?.pipe((0,Y.U)(rn=>rn[ge]))??(0,_.of)(void 0),this._futureSnapshot=Di}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,Y.U)(we=>Ue(we)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Y.U)(we=>Ue(we)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ta(ve,we="emptyOnly"){const ae=ve.pathFromRoot;let Be=0;if("always"!==we)for(Be=ae.length-1;Be>=1;){const ut=ae[Be],Lt=ae[Be-1];if(ut.routeConfig&&""===ut.routeConfig.path)Be--;else{if(Lt.component)break;Be--}}return function Do(ve){return ve.reduce((we,ae)=>({params:{...we.params,...ae.params},data:{...we.data,...ae.data},resolve:{...ae.data,...we.resolve,...ae.routeConfig?.data,...ae._resolvedData}}),{params:{},data:{},resolve:{}})}(ae.slice(Be))}class Rr{get title(){return this.data?.[ge]}constructor(we,ae,Be,ut,Lt,Ht,ui,Di,rn,an,fa){this.url=we,this.params=ae,this.queryParams=Be,this.fragment=ut,this.data=Lt,this.outlet=Ht,this.component=ui,this.routeConfig=Di,this._urlSegment=rn,this._lastPathIndex=an,this._resolve=fa}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=Ue(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ue(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Be=>Be.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Nr extends Tn{constructor(we,ae){super(ae),this.url=we,Yr(this,ae)}toString(){return Ia(this._root)}}function Yr(ve,we){we.value._routerState=ve,we.children.forEach(ae=>Yr(ve,ae))}function Ia(ve){const we=ve.children.length>0?` { ${ve.children.map(Ia).join(", ")} } `:"";return`${ve.value}${we}`}function wa(ve){if(ve.snapshot){const we=ve.snapshot,ae=ve._futureSnapshot;ve.snapshot=ae,xe(we.queryParams,ae.queryParams)||ve.queryParams.next(ae.queryParams),we.fragment!==ae.fragment&&ve.fragment.next(ae.fragment),xe(we.params,ae.params)||ve.params.next(ae.params),function ye(ve,we){if(ve.length!==we.length)return!1;for(let ae=0;aexe(ae.parameters,we[Be].parameters))}(ve.url,we.url);return ae&&!(!ve.parent!=!we.parent)&&(!ve.parent||Io(ve.parent,we.parent))}function jr(ve,we,ae){if(ae&&ve.shouldReuseRoute(we.value,ae.value.snapshot)){const Be=ae.value;Be._futureSnapshot=we.value;const ut=function pr(ve,we,ae){return we.children.map(Be=>{for(const ut of ae.children)if(ve.shouldReuseRoute(Be.value,ut.value.snapshot))return jr(ve,Be,ut);return jr(ve,Be)})}(ve,we,ae);return new zn(Be,ut)}{if(ve.shouldAttach(we.value)){const Lt=ve.retrieve(we.value);if(null!==Lt){const Ht=Lt.route;return Ht.value._futureSnapshot=we.value,Ht.children=we.children.map(ui=>jr(ve,ui)),Ht}}const Be=function or(ve){return new jn(new T.X(ve.url),new T.X(ve.params),new T.X(ve.queryParams),new T.X(ve.fragment),new T.X(ve.data),ve.outlet,ve.component,ve)}(we.value),ut=we.children.map(Lt=>jr(ve,Lt));return new zn(Be,ut)}}const ao="ngNavigationCancelingError";function ro(ve,we){const{redirectTo:ae,navigationBehaviorOptions:Be}=vt(we)?{redirectTo:we,navigationBehaviorOptions:void 0}:we,ut=ko(!1,0,we);return ut.url=ae,ut.navigationBehaviorOptions=Be,ut}function ko(ve,we,ae){const Be=new Error("NavigationCancelingError: "+(ve||""));return Be[ao]=!0,Be.cancellationCode=we,ae&&(Be.url=ae),Be}function Aa(ve){return Kr(ve)&&vt(ve.url)}function Kr(ve){return ve&&ve[ao]}class Fr{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Wa,this.attachRef=null}}let Wa=(()=>{class ve{constructor(){this.contexts=new Map}onChildOutletCreated(ae,Be){const ut=this.getOrCreateContext(ae);ut.outlet=Be,this.contexts.set(ae,ut)}onChildOutletDestroyed(ae){const Be=this.getContext(ae);Be&&(Be.outlet=null,Be.attachRef=null)}onOutletDeactivated(){const ae=this.contexts;return this.contexts=new Map,ae}onOutletReAttached(ae){this.contexts=ae}getOrCreateContext(ae){let Be=this.getContext(ae);return Be||(Be=new Fr,this.contexts.set(ae,Be)),Be}getContext(ae){return this.contexts.get(ae)||null}}return ve.\u0275fac=function(ae){return new(ae||ve)},ve.\u0275prov=t.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})();const Hr=!1;let sa=(()=>{class ve{constructor(){this.activated=null,this._activatedRoute=null,this.name=U,this.activateEvents=new t.vpe,this.deactivateEvents=new t.vpe,this.attachEvents=new t.vpe,this.detachEvents=new t.vpe,this.parentContexts=(0,t.f3M)(Wa),this.location=(0,t.f3M)(t.s_b),this.changeDetector=(0,t.f3M)(t.sBO),this.environmentInjector=(0,t.f3M)(t.lqb)}ngOnChanges(ae){if(ae.name){const{firstChange:Be,previousValue:ut}=ae.name;if(Be)return;this.isTrackedInParentContexts(ut)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(ut)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(ae){return this.parentContexts.getContext(ae)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const ae=this.parentContexts.getContext(this.name);ae?.route&&(ae.attachRef?this.attach(ae.attachRef,ae.route):this.activateWith(ae.route,ae.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new t.vHH(4012,Hr);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new t.vHH(4012,Hr);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new t.vHH(4012,Hr);this.location.detach();const ae=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(ae.instance),ae}attach(ae,Be){this.activated=ae,this._activatedRoute=Be,this.location.insert(ae.hostView),this.attachEvents.emit(ae.instance)}deactivate(){if(this.activated){const ae=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(ae)}}activateWith(ae,Be){if(this.isActivated)throw new t.vHH(4013,Hr);this._activatedRoute=ae;const ut=this.location,Ht=ae.snapshot.component,ui=this.parentContexts.getOrCreateContext(this.name).children,Di=new za(ae,ui,ut.injector);if(Be&&function sr(ve){return!!ve.resolveComponentFactory}(Be)){const rn=Be.resolveComponentFactory(Ht);this.activated=ut.createComponent(rn,ut.length,Di)}else this.activated=ut.createComponent(Ht,{index:ut.length,injector:Di,environmentInjector:Be??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return ve.\u0275fac=function(ae){return new(ae||ve)},ve.\u0275dir=t.lG2({type:ve,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[t.TTD]}),ve})();class za{constructor(we,ae,Be){this.route=we,this.childContexts=ae,this.parent=Be}get(we,ae){return we===jn?this.route:we===Wa?this.childContexts:this.parent.get(we,ae)}}let gr=(()=>{class ve{}return ve.\u0275fac=function(ae){return new(ae||ve)},ve.\u0275cmp=t.Xpm({type:ve,selectors:[["ng-component"]],standalone:!0,features:[t.jDz],decls:1,vars:0,template:function(ae,Be){1&ae&&t._UZ(0,"router-outlet")},dependencies:[sa],encapsulation:2}),ve})();function Cr(ve,we){return ve.providers&&!ve._injector&&(ve._injector=(0,t.MMx)(ve.providers,we,`Route: ${ve.path}`)),ve._injector??we}function wr(ve){const we=ve.children&&ve.children.map(wr),ae=we?{...ve,children:we}:{...ve};return!ae.component&&!ae.loadComponent&&(we||ae.loadChildren)&&ae.outlet&&ae.outlet!==U&&(ae.component=gr),ae}function Qn(ve){return ve.outlet||U}function On(ve,we){const ae=ve.filter(Be=>Qn(Be)===we);return ae.push(...ve.filter(Be=>Qn(Be)!==we)),ae}function lr(ve){if(!ve)return null;if(ve.routeConfig?._injector)return ve.routeConfig._injector;for(let we=ve.parent;we;we=we.parent){const ae=we.routeConfig;if(ae?._loadedInjector)return ae._loadedInjector;if(ae?._injector)return ae._injector}return null}class ya{constructor(we,ae,Be,ut){this.routeReuseStrategy=we,this.futureState=ae,this.currState=Be,this.forwardEvent=ut}activate(we){const ae=this.futureState._root,Be=this.currState?this.currState._root:null;this.deactivateChildRoutes(ae,Be,we),wa(this.futureState.root),this.activateChildRoutes(ae,Be,we)}deactivateChildRoutes(we,ae,Be){const ut=ia(ae);we.children.forEach(Lt=>{const Ht=Lt.value.outlet;this.deactivateRoutes(Lt,ut[Ht],Be),delete ut[Ht]}),De(ut,(Lt,Ht)=>{this.deactivateRouteAndItsChildren(Lt,Be)})}deactivateRoutes(we,ae,Be){const ut=we.value,Lt=ae?ae.value:null;if(ut===Lt)if(ut.component){const Ht=Be.getContext(ut.outlet);Ht&&this.deactivateChildRoutes(we,ae,Ht.children)}else this.deactivateChildRoutes(we,ae,Be);else Lt&&this.deactivateRouteAndItsChildren(ae,Be)}deactivateRouteAndItsChildren(we,ae){we.value.component&&this.routeReuseStrategy.shouldDetach(we.value.snapshot)?this.detachAndStoreRouteSubtree(we,ae):this.deactivateRouteAndOutlet(we,ae)}detachAndStoreRouteSubtree(we,ae){const Be=ae.getContext(we.value.outlet),ut=Be&&we.value.component?Be.children:ae,Lt=ia(we);for(const Ht of Object.keys(Lt))this.deactivateRouteAndItsChildren(Lt[Ht],ut);if(Be&&Be.outlet){const Ht=Be.outlet.detach(),ui=Be.children.onOutletDeactivated();this.routeReuseStrategy.store(we.value.snapshot,{componentRef:Ht,route:we,contexts:ui})}}deactivateRouteAndOutlet(we,ae){const Be=ae.getContext(we.value.outlet),ut=Be&&we.value.component?Be.children:ae,Lt=ia(we);for(const Ht of Object.keys(Lt))this.deactivateRouteAndItsChildren(Lt[Ht],ut);Be&&(Be.outlet&&(Be.outlet.deactivate(),Be.children.onOutletDeactivated()),Be.attachRef=null,Be.resolver=null,Be.route=null)}activateChildRoutes(we,ae,Be){const ut=ia(ae);we.children.forEach(Lt=>{this.activateRoutes(Lt,ut[Lt.value.outlet],Be),this.forwardEvent(new ri(Lt.value.snapshot))}),we.children.length&&this.forwardEvent(new pi(we.value.snapshot))}activateRoutes(we,ae,Be){const ut=we.value,Lt=ae?ae.value:null;if(wa(ut),ut===Lt)if(ut.component){const Ht=Be.getOrCreateContext(ut.outlet);this.activateChildRoutes(we,ae,Ht.children)}else this.activateChildRoutes(we,ae,Be);else if(ut.component){const Ht=Be.getOrCreateContext(ut.outlet);if(this.routeReuseStrategy.shouldAttach(ut.snapshot)){const ui=this.routeReuseStrategy.retrieve(ut.snapshot);this.routeReuseStrategy.store(ut.snapshot,null),Ht.children.onOutletReAttached(ui.contexts),Ht.attachRef=ui.componentRef,Ht.route=ui.route.value,Ht.outlet&&Ht.outlet.attach(ui.componentRef,ui.route.value),wa(ui.route.value),this.activateChildRoutes(we,null,Ht.children)}else{const ui=lr(ut.snapshot),Di=ui?.get(t._Vd)??null;Ht.attachRef=null,Ht.route=ut,Ht.resolver=Di,Ht.injector=ui,Ht.outlet&&Ht.outlet.activateWith(ut,Ht.injector),this.activateChildRoutes(we,null,Ht.children)}}else this.activateChildRoutes(we,null,Be)}}class Ro{constructor(we){this.path=we,this.route=this.path[this.path.length-1]}}class Ft{constructor(we,ae){this.component=we,this.route=ae}}function hi(ve,we,ae){const Be=ve._root;return Ii(Be,we?we._root:null,ae,[Be.value])}function ai(ve,we){const ae=Symbol(),Be=we.get(ve,ae);return Be===ae?"function"!=typeof ve||(0,t.Z0I)(ve)?we.get(ve):ve:Be}function Ii(ve,we,ae,Be,ut={canDeactivateChecks:[],canActivateChecks:[]}){const Lt=ia(we);return ve.children.forEach(Ht=>{(function nn(ve,we,ae,Be,ut={canDeactivateChecks:[],canActivateChecks:[]}){const Lt=ve.value,Ht=we?we.value:null,ui=ae?ae.getContext(ve.value.outlet):null;if(Ht&&Lt.routeConfig===Ht.routeConfig){const Di=function aa(ve,we,ae){if("function"==typeof ae)return ae(ve,we);switch(ae){case"pathParamsChange":return!qe(ve.url,we.url);case"pathParamsOrQueryParamsChange":return!qe(ve.url,we.url)||!xe(ve.queryParams,we.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Io(ve,we)||!xe(ve.queryParams,we.queryParams);default:return!Io(ve,we)}}(Ht,Lt,Lt.routeConfig.runGuardsAndResolvers);Di?ut.canActivateChecks.push(new Ro(Be)):(Lt.data=Ht.data,Lt._resolvedData=Ht._resolvedData),Ii(ve,we,Lt.component?ui?ui.children:null:ae,Be,ut),Di&&ui&&ui.outlet&&ui.outlet.isActivated&&ut.canDeactivateChecks.push(new Ft(ui.outlet.component,Ht))}else Ht&&ca(we,ui,ut),ut.canActivateChecks.push(new Ro(Be)),Ii(ve,null,Lt.component?ui?ui.children:null:ae,Be,ut)})(Ht,Lt[Ht.value.outlet],ae,Be.concat([Ht.value]),ut),delete Lt[Ht.value.outlet]}),De(Lt,(Ht,ui)=>ca(Ht,ae.getContext(ui),ut)),ut}function ca(ve,we,ae){const Be=ia(ve),ut=ve.value;De(Be,(Lt,Ht)=>{ca(Lt,ut.component?we?we.children.getContext(Ht):null:we,ae)}),ae.canDeactivateChecks.push(new Ft(ut.component&&we&&we.outlet&&we.outlet.isActivated?we.outlet.component:null,ut))}function Wi(ve){return"function"==typeof ve}function va(ve){return ve instanceof s.K||"EmptyError"===ve?.name}const Ei=Symbol("INITIAL_VALUE");function An(){return(0,j.w)(ve=>(0,y.a)(ve.map(we=>we.pipe((0,Q.q)(1),(0,J.O)(Ei)))).pipe((0,Y.U)(we=>{for(const ae of we)if(!0!==ae){if(ae===Ei)return Ei;if(!1===ae||ae instanceof ht)return ae}return!0}),(0,ee.h)(we=>we!==Ei),(0,Q.q)(1)))}function Zs(ve){return(0,d.z)((0,se.b)(we=>{if(vt(we))throw ro(0,we)}),(0,Y.U)(we=>!0===we))}const qn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ki(ve,we,ae,Be,ut){const Lt=Ua(ve,we,ae);return Lt.matched?function $o(ve,we,ae,Be){const ut=we.canMatch;if(!ut||0===ut.length)return(0,_.of)(!0);const Lt=ut.map(Ht=>{const ui=ai(Ht,ve);return he(function kt(ve){return ve&&Wi(ve.canMatch)}(ui)?ui.canMatch(we,ae):ve.runInContext(()=>ui(we,ae)))});return(0,_.of)(Lt).pipe(An(),Zs())}(Be=Cr(we,Be),we,ae).pipe((0,Y.U)(Ht=>!0===Ht?Lt:{...qn})):(0,_.of)(Lt)}function Ua(ve,we,ae){if(""===we.path)return"full"===we.pathMatch&&(ve.hasChildren()||ae.length>0)?{...qn}:{matched:!0,consumedSegments:[],remainingSegments:ae,parameters:{},positionalParamSegments:{}};const ut=(we.matcher||at)(ae,ve,we);if(!ut)return{...qn};const Lt={};De(ut.posParams,(ui,Di)=>{Lt[Di]=ui.path});const Ht=ut.consumed.length>0?{...Lt,...ut.consumed[ut.consumed.length-1].parameters}:Lt;return{matched:!0,consumedSegments:ut.consumed,remainingSegments:ae.slice(ut.consumed.length),parameters:Ht,positionalParamSegments:ut.posParams??{}}}function co(ve,we,ae,Be){if(ae.length>0&&function Mo(ve,we,ae){return ae.some(Be=>Er(ve,we,Be)&&Qn(Be)!==U)}(ve,ae,Be)){const Lt=new Ge(we,function No(ve,we,ae,Be){const ut={};ut[U]=Be,Be._sourceSegment=ve,Be._segmentIndexShift=we.length;for(const Lt of ae)if(""===Lt.path&&Qn(Lt)!==U){const Ht=new Ge([],{});Ht._sourceSegment=ve,Ht._segmentIndexShift=we.length,ut[Qn(Lt)]=Ht}return ut}(ve,we,Be,new Ge(ae,ve.children)));return Lt._sourceSegment=ve,Lt._segmentIndexShift=we.length,{segmentGroup:Lt,slicedSegments:[]}}if(0===ae.length&&function lc(ve,we,ae){return ae.some(Be=>Er(ve,we,Be))}(ve,ae,Be)){const Lt=new Ge(ve.segments,function Fi(ve,we,ae,Be,ut){const Lt={};for(const Ht of Be)if(Er(ve,ae,Ht)&&!ut[Qn(Ht)]){const ui=new Ge([],{});ui._sourceSegment=ve,ui._segmentIndexShift=we.length,Lt[Qn(Ht)]=ui}return{...ut,...Lt}}(ve,we,ae,Be,ve.children));return Lt._sourceSegment=ve,Lt._segmentIndexShift=we.length,{segmentGroup:Lt,slicedSegments:ae}}const ut=new Ge(ve.segments,ve.children);return ut._sourceSegment=ve,ut._segmentIndexShift=we.length,{segmentGroup:ut,slicedSegments:ae}}function Er(ve,we,ae){return(!(ve.hasChildren()||we.length>0)||"full"!==ae.pathMatch)&&""===ae.path}function dr(ve,we,ae,Be){return!!(Qn(ve)===Be||Be!==U&&Er(we,ae,ve))&&("**"===ve.path||Ua(we,ve,ae).matched)}function Go(ve,we,ae){return 0===we.length&&!ve.children[ae]}const lo=!1;class hs{constructor(we){this.segmentGroup=we||null}}class Ys{constructor(we){this.urlTree=we}}function Fo(ve){return(0,w._)(new hs(ve))}function Is(ve){return(0,w._)(new Ys(ve))}class Ya{constructor(we,ae,Be,ut,Lt){this.injector=we,this.configLoader=ae,this.urlSerializer=Be,this.urlTree=ut,this.config=Lt,this.allowRedirects=!0}apply(){const we=co(this.urlTree.root,[],[],this.config).segmentGroup,ae=new Ge(we.segments,we.children);return this.expandSegmentGroup(this.injector,this.config,ae,U).pipe((0,Y.U)(Lt=>this.createUrlTree($e(Lt),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,ce.K)(Lt=>{if(Lt instanceof Ys)return this.allowRedirects=!1,this.match(Lt.urlTree);throw Lt instanceof hs?this.noMatchError(Lt):Lt}))}match(we){return this.expandSegmentGroup(this.injector,this.config,we.root,U).pipe((0,Y.U)(ut=>this.createUrlTree($e(ut),we.queryParams,we.fragment))).pipe((0,ce.K)(ut=>{throw ut instanceof hs?this.noMatchError(ut):ut}))}noMatchError(we){return new t.vHH(4002,lo)}createUrlTree(we,ae,Be){const ut=gt(we);return new ht(ut,ae,Be)}expandSegmentGroup(we,ae,Be,ut){return 0===Be.segments.length&&Be.hasChildren()?this.expandChildren(we,ae,Be).pipe((0,Y.U)(Lt=>new Ge([],Lt))):this.expandSegment(we,Be,ae,Be.segments,ut,!0)}expandChildren(we,ae,Be){const ut=[];for(const Lt of Object.keys(Be.children))"primary"===Lt?ut.unshift(Lt):ut.push(Lt);return(0,e.D)(ut).pipe((0,ie.b)(Lt=>{const Ht=Be.children[Lt],ui=On(ae,Lt);return this.expandSegmentGroup(we,ui,Ht,Lt).pipe((0,Y.U)(Di=>({segment:Di,outlet:Lt})))}),(0,Ce.R)((Lt,Ht)=>(Lt[Ht.outlet]=Ht.segment,Lt),{}),I())}expandSegment(we,ae,Be,ut,Lt,Ht){return(0,e.D)(Be).pipe((0,ie.b)(ui=>this.expandSegmentAgainstRoute(we,ae,Be,ui,ut,Lt,Ht).pipe((0,ce.K)(rn=>{if(rn instanceof hs)return(0,_.of)(null);throw rn}))),(0,re.P)(ui=>!!ui),(0,ce.K)((ui,Di)=>{if(va(ui))return Go(ae,ut,Lt)?(0,_.of)(new Ge([],{})):Fo(ae);throw ui}))}expandSegmentAgainstRoute(we,ae,Be,ut,Lt,Ht,ui){return dr(ut,ae,Lt,Ht)?void 0===ut.redirectTo?this.matchSegmentAgainstRoute(we,ae,ut,Lt,Ht):ui&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(we,ae,Be,ut,Lt,Ht):Fo(ae):Fo(ae)}expandSegmentAgainstRouteUsingRedirect(we,ae,Be,ut,Lt,Ht){return"**"===ut.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(we,Be,ut,Ht):this.expandRegularSegmentAgainstRouteUsingRedirect(we,ae,Be,ut,Lt,Ht)}expandWildCardWithParamsAgainstRouteUsingRedirect(we,ae,Be,ut){const Lt=this.applyRedirectCommands([],Be.redirectTo,{});return Be.redirectTo.startsWith("/")?Is(Lt):this.lineralizeSegments(Be,Lt).pipe((0,me.z)(Ht=>{const ui=new Ge(Ht,{});return this.expandSegment(we,ui,ae,Ht,ut,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(we,ae,Be,ut,Lt,Ht){const{matched:ui,consumedSegments:Di,remainingSegments:rn,positionalParamSegments:an}=Ua(ae,ut,Lt);if(!ui)return Fo(ae);const fa=this.applyRedirectCommands(Di,ut.redirectTo,an);return ut.redirectTo.startsWith("/")?Is(fa):this.lineralizeSegments(ut,fa).pipe((0,me.z)(ar=>this.expandSegment(we,ae,Be,ar.concat(rn),Ht,!1)))}matchSegmentAgainstRoute(we,ae,Be,ut,Lt){return"**"===Be.path?(we=Cr(Be,we),Be.loadChildren?(Be._loadedRoutes?(0,_.of)({routes:Be._loadedRoutes,injector:Be._loadedInjector}):this.configLoader.loadChildren(we,Be)).pipe((0,Y.U)(ui=>(Be._loadedRoutes=ui.routes,Be._loadedInjector=ui.injector,new Ge(ut,{})))):(0,_.of)(new Ge(ut,{}))):ki(ae,Be,ut,we).pipe((0,j.w)(({matched:Ht,consumedSegments:ui,remainingSegments:Di})=>Ht?this.getChildConfig(we=Be._injector??we,Be,ut).pipe((0,me.z)(an=>{const fa=an.injector??we,ar=an.routes,{segmentGroup:ps,slicedSegments:is}=co(ae,ui,Di,ar),Ko=new Ge(ps.segments,ps.children);if(0===is.length&&Ko.hasChildren())return this.expandChildren(fa,ar,Ko).pipe((0,Y.U)(Eo=>new Ge(ui,Eo)));if(0===ar.length&&0===is.length)return(0,_.of)(new Ge(ui,{}));const mo=Qn(Be)===Lt;return this.expandSegment(fa,Ko,ar,is,mo?U:Lt,!0).pipe((0,Y.U)(gs=>new Ge(ui.concat(gs.segments),gs.children)))})):Fo(ae)))}getChildConfig(we,ae,Be){return ae.children?(0,_.of)({routes:ae.children,injector:we}):ae.loadChildren?void 0!==ae._loadedRoutes?(0,_.of)({routes:ae._loadedRoutes,injector:ae._loadedInjector}):function Pc(ve,we,ae,Be){const ut=we.canLoad;if(void 0===ut||0===ut.length)return(0,_.of)(!0);const Lt=ut.map(Ht=>{const ui=ai(Ht,ve);return he(function Za(ve){return ve&&Wi(ve.canLoad)}(ui)?ui.canLoad(we,ae):ve.runInContext(()=>ui(we,ae)))});return(0,_.of)(Lt).pipe(An(),Zs())}(we,ae,Be).pipe((0,me.z)(ut=>ut?this.configLoader.loadChildren(we,ae).pipe((0,se.b)(Lt=>{ae._loadedRoutes=Lt.routes,ae._loadedInjector=Lt.injector})):function dc(ve){return(0,w._)(ko(lo,3))}())):(0,_.of)({routes:[],injector:we})}lineralizeSegments(we,ae){let Be=[],ut=ae.root;for(;;){if(Be=Be.concat(ut.segments),0===ut.numberOfChildren)return(0,_.of)(Be);if(ut.numberOfChildren>1||!ut.children[U])return we.redirectTo,(0,w._)(new t.vHH(4e3,lo));ut=ut.children[U]}}applyRedirectCommands(we,ae,Be){return this.applyRedirectCreateUrlTree(ae,this.urlSerializer.parse(ae),we,Be)}applyRedirectCreateUrlTree(we,ae,Be,ut){const Lt=this.createSegmentGroup(we,ae.root,Be,ut);return new ht(Lt,this.createQueryParams(ae.queryParams,this.urlTree.queryParams),ae.fragment)}createQueryParams(we,ae){const Be={};return De(we,(ut,Lt)=>{if("string"==typeof ut&&ut.startsWith(":")){const ui=ut.substring(1);Be[Lt]=ae[ui]}else Be[Lt]=ut}),Be}createSegmentGroup(we,ae,Be,ut){const Lt=this.createSegments(we,ae.segments,Be,ut);let Ht={};return De(ae.children,(ui,Di)=>{Ht[Di]=this.createSegmentGroup(we,ui,Be,ut)}),new Ge(Lt,Ht)}createSegments(we,ae,Be,ut){return ae.map(Lt=>Lt.path.startsWith(":")?this.findPosParam(we,Lt,ut):this.findOrReturn(Lt,Be))}findPosParam(we,ae,Be){const ut=Be[ae.path.substring(1)];if(!ut)throw new t.vHH(4001,lo);return ut}findOrReturn(we,ae){let Be=0;for(const ut of ae){if(ut.path===we.path)return ae.splice(Be),ut;Be++}return we}}class sn{}class la{constructor(we,ae,Be,ut,Lt,Ht,ui){this.injector=we,this.rootComponentType=ae,this.config=Be,this.urlTree=ut,this.url=Lt,this.paramsInheritanceStrategy=Ht,this.urlSerializer=ui}recognize(){const we=co(this.urlTree.root,[],[],this.config.filter(ae=>void 0===ae.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,we,U).pipe((0,Y.U)(ae=>{if(null===ae)return null;const Be=new Rr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},U,this.rootComponentType,null,this.urlTree.root,-1,{}),ut=new zn(Be,ae),Lt=new Nr(this.url,ut);return this.inheritParamsAndData(Lt._root),Lt}))}inheritParamsAndData(we){const ae=we.value,Be=Ta(ae,this.paramsInheritanceStrategy);ae.params=Object.freeze(Be.params),ae.data=Object.freeze(Be.data),we.children.forEach(ut=>this.inheritParamsAndData(ut))}processSegmentGroup(we,ae,Be,ut){return 0===Be.segments.length&&Be.hasChildren()?this.processChildren(we,ae,Be):this.processSegment(we,ae,Be,Be.segments,ut)}processChildren(we,ae,Be){return(0,e.D)(Object.keys(Be.children)).pipe((0,ie.b)(ut=>{const Lt=Be.children[ut],Ht=On(ae,ut);return this.processSegmentGroup(we,Ht,Lt,ut)}),(0,Ce.R)((ut,Lt)=>ut&&Lt?(ut.push(...Lt),ut):null),(0,k.o)(ut=>null!==ut),(0,l.d)(null),I(),(0,Y.U)(ut=>{if(null===ut)return null;const Lt=Wn(ut);return function fs(ve){ve.sort((we,ae)=>we.value.outlet===U?-1:ae.value.outlet===U?1:we.value.outlet.localeCompare(ae.value.outlet))}(Lt),Lt}))}processSegment(we,ae,Be,ut,Lt){return(0,e.D)(ae).pipe((0,ie.b)(Ht=>this.processSegmentAgainstRoute(Ht._injector??we,Ht,Be,ut,Lt)),(0,re.P)(Ht=>!!Ht),(0,ce.K)(Ht=>{if(va(Ht))return Go(Be,ut,Lt)?(0,_.of)([]):(0,_.of)(null);throw Ht}))}processSegmentAgainstRoute(we,ae,Be,ut,Lt){if(ae.redirectTo||!dr(ae,Be,ut,Lt))return(0,_.of)(null);let Ht;if("**"===ae.path){const ui=ut.length>0?oe(ut).parameters:{},Di=La(Be)+ut.length,rn=new Rr(ut,ui,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Kn(ae),Qn(ae),ae.component??ae._loadedComponent??null,ae,xa(Be),Di,ze(ae));Ht=(0,_.of)({snapshot:rn,consumedSegments:[],remainingSegments:[]})}else Ht=ki(Be,ae,ut,we).pipe((0,Y.U)(({matched:ui,consumedSegments:Di,remainingSegments:rn,parameters:an})=>{if(!ui)return null;const fa=La(Be)+Di.length;return{snapshot:new Rr(Di,an,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Kn(ae),Qn(ae),ae.component??ae._loadedComponent??null,ae,xa(Be),fa,ze(ae)),consumedSegments:Di,remainingSegments:rn}}));return Ht.pipe((0,j.w)(ui=>{if(null===ui)return(0,_.of)(null);const{snapshot:Di,consumedSegments:rn,remainingSegments:an}=ui;we=ae._injector??we;const fa=ae._loadedInjector??we,ar=function Rc(ve){return ve.children?ve.children:ve.loadChildren?ve._loadedRoutes:[]}(ae),{segmentGroup:ps,slicedSegments:is}=co(Be,rn,an,ar.filter(mo=>void 0===mo.redirectTo));if(0===is.length&&ps.hasChildren())return this.processChildren(fa,ar,ps).pipe((0,Y.U)(mo=>null===mo?null:[new zn(Di,mo)]));if(0===ar.length&&0===is.length)return(0,_.of)([new zn(Di,[])]);const Ko=Qn(ae)===Lt;return this.processSegment(fa,ar,ps,is,Ko?U:Lt).pipe((0,Y.U)(mo=>null===mo?null:[new zn(Di,mo)]))}))}}function hc(ve){const we=ve.value.routeConfig;return we&&""===we.path&&void 0===we.redirectTo}function Wn(ve){const we=[],ae=new Set;for(const Be of ve){if(!hc(Be)){we.push(Be);continue}const ut=we.find(Lt=>Be.value.routeConfig===Lt.value.routeConfig);void 0!==ut?(ut.children.push(...Be.children),ae.add(ut)):we.push(Be)}for(const Be of ae){const ut=Wn(Be.children);we.push(new zn(Be.value,ut))}return we.filter(Be=>!ae.has(Be))}function xa(ve){let we=ve;for(;we._sourceSegment;)we=we._sourceSegment;return we}function La(ve){let we=ve,ae=we._segmentIndexShift??0;for(;we._sourceSegment;)we=we._sourceSegment,ae+=we._segmentIndexShift??0;return ae-1}function Kn(ve){return ve.data||{}}function ze(ve){return ve.resolve||{}}function ni(ve){return"string"==typeof ve.title||null===ve.title}function ti(ve){return(0,j.w)(we=>{const ae=ve(we);return ae?(0,e.D)(ae).pipe((0,Y.U)(()=>we)):(0,_.of)(we)})}const Si=new t.OlP("ROUTES");let Pi=(()=>{class ve{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,t.f3M)(t.Sil)}loadComponent(ae){if(this.componentLoaders.get(ae))return this.componentLoaders.get(ae);if(ae._loadedComponent)return(0,_.of)(ae._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(ae);const Be=he(ae.loadComponent()).pipe((0,Y.U)(tn),(0,se.b)(Lt=>{this.onLoadEndListener&&this.onLoadEndListener(ae),ae._loadedComponent=Lt}),(0,n.x)(()=>{this.componentLoaders.delete(ae)})),ut=new D.c(Be,()=>new z.x).pipe((0,g.x)());return this.componentLoaders.set(ae,ut),ut}loadChildren(ae,Be){if(this.childrenLoaders.get(Be))return this.childrenLoaders.get(Be);if(Be._loadedRoutes)return(0,_.of)({routes:Be._loadedRoutes,injector:Be._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Be);const Lt=this.loadModuleFactoryOrRoutes(Be.loadChildren).pipe((0,Y.U)(ui=>{this.onLoadEndListener&&this.onLoadEndListener(Be);let Di,rn,an=!1;Array.isArray(ui)?rn=ui:(Di=ui.create(ae).injector,rn=Oe(Di.get(Si,[],t.XFs.Self|t.XFs.Optional)));return{routes:rn.map(wr),injector:Di}}),(0,n.x)(()=>{this.childrenLoaders.delete(Be)})),Ht=new D.c(Lt,()=>new z.x).pipe((0,g.x)());return this.childrenLoaders.set(Be,Ht),Ht}loadModuleFactoryOrRoutes(ae){return he(ae()).pipe((0,Y.U)(tn),(0,me.z)(Be=>Be instanceof t.YKP||Array.isArray(Be)?(0,_.of)(Be):(0,e.D)(this.compiler.compileModuleAsync(Be))))}}return ve.\u0275fac=function(ae){return new(ae||ve)},ve.\u0275prov=t.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})();function tn(ve){return function qi(ve){return ve&&"object"==typeof ve&&"default"in ve}(ve)?ve.default:ve}let da=(()=>{class ve{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new z.x,this.configLoader=(0,t.f3M)(Pi),this.environmentInjector=(0,t.f3M)(t.lqb),this.urlSerializer=(0,t.f3M)(X),this.rootContexts=(0,t.f3M)(Wa),this.navigationId=0,this.afterPreactivation=()=>(0,_.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=ut=>this.events.next(new er(ut)),this.configLoader.onLoadStartListener=ut=>this.events.next(new ta(ut))}complete(){this.transitions?.complete()}handleNavigationRequest(ae){const Be=++this.navigationId;this.transitions?.next({...this.transitions.value,...ae,id:Be})}setupNavigations(ae){return this.transitions=new T.X({id:0,targetPageId:0,currentUrlTree:ae.currentUrlTree,currentRawUrl:ae.currentUrlTree,extractedUrl:ae.urlHandlingStrategy.extract(ae.currentUrlTree),urlAfterRedirects:ae.urlHandlingStrategy.extract(ae.currentUrlTree),rawUrl:ae.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Dt,restoredState:null,currentSnapshot:ae.routerState.snapshot,targetSnapshot:null,currentRouterState:ae.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,ee.h)(Be=>0!==Be.id),(0,Y.U)(Be=>({...Be,extractedUrl:ae.urlHandlingStrategy.extract(Be.rawUrl)})),(0,j.w)(Be=>{let ut=!1,Lt=!1;return(0,_.of)(Be).pipe((0,se.b)(Ht=>{this.currentNavigation={id:Ht.id,initialUrl:Ht.rawUrl,extractedUrl:Ht.extractedUrl,trigger:Ht.source,extras:Ht.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,j.w)(Ht=>{const ui=ae.browserUrlTree.toString(),Di=!ae.navigated||Ht.extractedUrl.toString()!==ui||ui!==ae.currentUrlTree.toString();if(!Di&&"reload"!==(Ht.extras.onSameUrlNavigation??ae.onSameUrlNavigation)){const an="";return this.events.next(new mi(Ht.id,ae.serializeUrl(Be.rawUrl),an,0)),ae.rawUrlTree=Ht.rawUrl,Ht.resolve(null),L.E}if(ae.urlHandlingStrategy.shouldProcessUrl(Ht.rawUrl))return ma(Ht.source)&&(ae.browserUrlTree=Ht.extractedUrl),(0,_.of)(Ht).pipe((0,j.w)(an=>{const fa=this.transitions?.getValue();return this.events.next(new Ot(an.id,this.urlSerializer.serialize(an.extractedUrl),an.source,an.restoredState)),fa!==this.transitions?.getValue()?L.E:Promise.resolve(an)}),function es(ve,we,ae,Be){return(0,j.w)(ut=>function js(ve,we,ae,Be,ut){return new Ya(ve,we,ae,Be,ut).apply()}(ve,we,ae,ut.extractedUrl,Be).pipe((0,Y.U)(Lt=>({...ut,urlAfterRedirects:Lt}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,ae.config),(0,se.b)(an=>{this.currentNavigation={...this.currentNavigation,finalUrl:an.urlAfterRedirects},Be.urlAfterRedirects=an.urlAfterRedirects}),function ne(ve,we,ae,Be,ut){return(0,me.z)(Lt=>function Ho(ve,we,ae,Be,ut,Lt,Ht="emptyOnly"){return new la(ve,we,ae,Be,ut,Ht,Lt).recognize().pipe((0,j.w)(ui=>null===ui?function ja(ve){return new C.y(we=>we.error(ve))}(new sn):(0,_.of)(ui)))}(ve,we,ae,Lt.urlAfterRedirects,Be.serialize(Lt.urlAfterRedirects),Be,ut).pipe((0,Y.U)(Ht=>({...Lt,targetSnapshot:Ht}))))}(this.environmentInjector,this.rootComponentType,ae.config,this.urlSerializer,ae.paramsInheritanceStrategy),(0,se.b)(an=>{if(Be.targetSnapshot=an.targetSnapshot,"eager"===ae.urlUpdateStrategy){if(!an.extras.skipLocationChange){const ar=ae.urlHandlingStrategy.merge(an.urlAfterRedirects,an.rawUrl);ae.setBrowserUrl(ar,an)}ae.browserUrlTree=an.urlAfterRedirects}const fa=new Ui(an.id,this.urlSerializer.serialize(an.extractedUrl),this.urlSerializer.serialize(an.urlAfterRedirects),an.targetSnapshot);this.events.next(fa)}));if(Di&&ae.urlHandlingStrategy.shouldProcessUrl(ae.rawUrlTree)){const{id:an,extractedUrl:fa,source:ar,restoredState:ps,extras:is}=Ht,Ko=new Ot(an,this.urlSerializer.serialize(fa),ar,ps);this.events.next(Ko);const mo=Pr(fa,this.rootComponentType).snapshot;return Be={...Ht,targetSnapshot:mo,urlAfterRedirects:fa,extras:{...is,skipLocationChange:!1,replaceUrl:!1}},(0,_.of)(Be)}{const an="";return this.events.next(new mi(Ht.id,ae.serializeUrl(Be.extractedUrl),an,1)),ae.rawUrlTree=Ht.rawUrl,Ht.resolve(null),L.E}}),(0,se.b)(Ht=>{const ui=new Un(Ht.id,this.urlSerializer.serialize(Ht.extractedUrl),this.urlSerializer.serialize(Ht.urlAfterRedirects),Ht.targetSnapshot);this.events.next(ui)}),(0,Y.U)(Ht=>Be={...Ht,guards:hi(Ht.targetSnapshot,Ht.currentSnapshot,this.rootContexts)}),function so(ve,we){return(0,me.z)(ae=>{const{targetSnapshot:Be,currentSnapshot:ut,guards:{canActivateChecks:Lt,canDeactivateChecks:Ht}}=ae;return 0===Ht.length&&0===Lt.length?(0,_.of)({...ae,guardsResult:!0}):function Ws(ve,we,ae,Be){return(0,e.D)(ve).pipe((0,me.z)(ut=>function Ds(ve,we,ae,Be,ut){const Lt=we&&we.routeConfig?we.routeConfig.canDeactivate:null;if(!Lt||0===Lt.length)return(0,_.of)(!0);const Ht=Lt.map(ui=>{const Di=lr(we)??ut,rn=ai(ui,Di);return he(function Ze(ve){return ve&&Wi(ve.canDeactivate)}(rn)?rn.canDeactivate(ve,we,ae,Be):Di.runInContext(()=>rn(ve,we,ae,Be))).pipe((0,re.P)())});return(0,_.of)(Ht).pipe(An())}(ut.component,ut.route,ae,we,Be)),(0,re.P)(ut=>!0!==ut,!0))}(Ht,Be,ut,ve).pipe((0,me.z)(ui=>ui&&function _n(ve){return"boolean"==typeof ve}(ui)?function Ba(ve,we,ae,Be){return(0,e.D)(we).pipe((0,ie.b)(ut=>(0,h.z)(function Uo(ve,we){return null!==ve&&we&&we(new Jt(ve)),(0,_.of)(!0)}(ut.route.parent,Be),function ds(ve,we){return null!==ve&&we&&we(new Kt(ve)),(0,_.of)(!0)}(ut.route,Be),function Xo(ve,we,ae){const Be=we[we.length-1],Lt=we.slice(0,we.length-1).reverse().map(Ht=>function Ct(ve){const we=ve.routeConfig?ve.routeConfig.canActivateChild:null;return we&&0!==we.length?{node:ve,guards:we}:null}(Ht)).filter(Ht=>null!==Ht).map(Ht=>(0,P.P)(()=>{const ui=Ht.guards.map(Di=>{const rn=lr(Ht.node)??ae,an=ai(Di,rn);return he(function et(ve){return ve&&Wi(ve.canActivateChild)}(an)?an.canActivateChild(Be,ve):rn.runInContext(()=>an(Be,ve))).pipe((0,re.P)())});return(0,_.of)(ui).pipe(An())}));return(0,_.of)(Lt).pipe(An())}(ve,ut.path,ae),function Sr(ve,we,ae){const Be=we.routeConfig?we.routeConfig.canActivate:null;if(!Be||0===Be.length)return(0,_.of)(!0);const ut=Be.map(Lt=>(0,P.P)(()=>{const Ht=lr(we)??ae,ui=ai(Lt,Ht);return he(function ct(ve){return ve&&Wi(ve.canActivate)}(ui)?ui.canActivate(we,ve):Ht.runInContext(()=>ui(we,ve))).pipe((0,re.P)())}));return(0,_.of)(ut).pipe(An())}(ve,ut.route,ae))),(0,re.P)(ut=>!0!==ut,!0))}(Be,Lt,ve,we):(0,_.of)(ui)),(0,Y.U)(ui=>({...ae,guardsResult:ui})))})}(this.environmentInjector,Ht=>this.events.next(Ht)),(0,se.b)(Ht=>{if(Be.guardsResult=Ht.guardsResult,vt(Ht.guardsResult))throw ro(0,Ht.guardsResult);const ui=new Dn(Ht.id,this.urlSerializer.serialize(Ht.extractedUrl),this.urlSerializer.serialize(Ht.urlAfterRedirects),Ht.targetSnapshot,!!Ht.guardsResult);this.events.next(ui)}),(0,ee.h)(Ht=>!!Ht.guardsResult||(ae.restoreHistory(Ht),this.cancelNavigationTransition(Ht,"",3),!1)),ti(Ht=>{if(Ht.guards.canActivateChecks.length)return(0,_.of)(Ht).pipe((0,se.b)(ui=>{const Di=new oa(ui.id,this.urlSerializer.serialize(ui.extractedUrl),this.urlSerializer.serialize(ui.urlAfterRedirects),ui.targetSnapshot);this.events.next(Di)}),(0,j.w)(ui=>{let Di=!1;return(0,_.of)(ui).pipe(function te(ve,we){return(0,me.z)(ae=>{const{targetSnapshot:Be,guards:{canActivateChecks:ut}}=ae;if(!ut.length)return(0,_.of)(ae);let Lt=0;return(0,e.D)(ut).pipe((0,ie.b)(Ht=>function Ee(ve,we,ae,Be){const ut=ve.routeConfig,Lt=ve._resolve;return void 0!==ut?.title&&!ni(ut)&&(Lt[ge]=ut.title),function tt(ve,we,ae,Be){const ut=function Ne(ve){return[...Object.keys(ve),...Object.getOwnPropertySymbols(ve)]}(ve);if(0===ut.length)return(0,_.of)({});const Lt={};return(0,e.D)(ut).pipe((0,me.z)(Ht=>function Rt(ve,we,ae,Be){const ut=lr(we)??Be,Lt=ai(ve,ut);return he(Lt.resolve?Lt.resolve(we,ae):ut.runInContext(()=>Lt(we,ae)))}(ve[Ht],we,ae,Be).pipe((0,re.P)(),(0,se.b)(ui=>{Lt[Ht]=ui}))),a(1),(0,x.h)(Lt),(0,ce.K)(Ht=>va(Ht)?L.E:(0,w._)(Ht)))}(Lt,ve,we,Be).pipe((0,Y.U)(Ht=>(ve._resolvedData=Ht,ve.data=Ta(ve,ae).resolve,ut&&ni(ut)&&(ve.data[ge]=ut.title),null)))}(Ht.route,Be,ve,we)),(0,se.b)(()=>Lt++),a(1),(0,me.z)(Ht=>Lt===ut.length?(0,_.of)(ae):L.E))})}(ae.paramsInheritanceStrategy,this.environmentInjector),(0,se.b)({next:()=>Di=!0,complete:()=>{Di||(ae.restoreHistory(ui),this.cancelNavigationTransition(ui,"",2))}}))}),(0,se.b)(ui=>{const Di=new Ea(ui.id,this.urlSerializer.serialize(ui.extractedUrl),this.urlSerializer.serialize(ui.urlAfterRedirects),ui.targetSnapshot);this.events.next(Di)}))}),ti(Ht=>{const ui=Di=>{const rn=[];Di.routeConfig?.loadComponent&&!Di.routeConfig._loadedComponent&&rn.push(this.configLoader.loadComponent(Di.routeConfig).pipe((0,se.b)(an=>{Di.component=an}),(0,Y.U)(()=>{})));for(const an of Di.children)rn.push(...ui(an));return rn};return(0,y.a)(ui(Ht.targetSnapshot.root)).pipe((0,l.d)(),(0,Q.q)(1))}),ti(()=>this.afterPreactivation()),(0,Y.U)(Ht=>{const ui=function no(ve,we,ae){const Be=jr(ve,we._root,ae?ae._root:void 0);return new Co(Be,we)}(ae.routeReuseStrategy,Ht.targetSnapshot,Ht.currentRouterState);return Be={...Ht,targetRouterState:ui}}),(0,se.b)(Ht=>{ae.currentUrlTree=Ht.urlAfterRedirects,ae.rawUrlTree=ae.urlHandlingStrategy.merge(Ht.urlAfterRedirects,Ht.rawUrl),ae.routerState=Ht.targetRouterState,"deferred"===ae.urlUpdateStrategy&&(Ht.extras.skipLocationChange||ae.setBrowserUrl(ae.rawUrlTree,Ht),ae.browserUrlTree=Ht.urlAfterRedirects)}),((ve,we,ae)=>(0,Y.U)(Be=>(new ya(we,Be.targetRouterState,Be.currentRouterState,ae).activate(ve),Be)))(this.rootContexts,ae.routeReuseStrategy,Ht=>this.events.next(Ht)),(0,Q.q)(1),(0,se.b)({next:Ht=>{ut=!0,this.lastSuccessfulNavigation=this.currentNavigation,ae.navigated=!0,this.events.next(new vi(Ht.id,this.urlSerializer.serialize(Ht.extractedUrl),this.urlSerializer.serialize(ae.currentUrlTree))),ae.titleStrategy?.updateTitle(Ht.targetRouterState.snapshot),Ht.resolve(!0)},complete:()=>{ut=!0}}),(0,n.x)(()=>{ut||Lt||this.cancelNavigationTransition(Be,"",1),this.currentNavigation?.id===Be.id&&(this.currentNavigation=null)}),(0,ce.K)(Ht=>{if(Lt=!0,Kr(Ht)){Aa(Ht)||(ae.navigated=!0,ae.restoreHistory(Be,!0));const ui=new li(Be.id,this.urlSerializer.serialize(Be.extractedUrl),Ht.message,Ht.cancellationCode);if(this.events.next(ui),Aa(Ht)){const Di=ae.urlHandlingStrategy.merge(Ht.url,ae.rawUrlTree),rn={skipLocationChange:Be.extras.skipLocationChange,replaceUrl:"eager"===ae.urlUpdateStrategy||ma(Be.source)};ae.scheduleNavigation(Di,Dt,null,rn,{resolve:Be.resolve,reject:Be.reject,promise:Be.promise})}else Be.resolve(!1)}else{ae.restoreHistory(Be,!0);const ui=new gi(Be.id,this.urlSerializer.serialize(Be.extractedUrl),Ht,Be.targetSnapshot??void 0);this.events.next(ui);try{Be.resolve(ae.errorHandler(Ht))}catch(Di){Be.reject(Di)}}return L.E}))}))}cancelNavigationTransition(ae,Be,ut){const Lt=new li(ae.id,this.urlSerializer.serialize(ae.extractedUrl),Be,ut);this.events.next(Lt),ae.resolve(!1)}}return ve.\u0275fac=function(ae){return new(ae||ve)},ve.\u0275prov=t.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})();function ma(ve){return ve!==Dt}let ka=(()=>{class ve{buildTitle(ae){let Be,ut=ae.root;for(;void 0!==ut;)Be=this.getResolvedTitleForRoute(ut)??Be,ut=ut.children.find(Lt=>Lt.outlet===U);return Be}getResolvedTitleForRoute(ae){return ae.data[ge]}}return ve.\u0275fac=function(ae){return new(ae||ve)},ve.\u0275prov=t.Yz7({token:ve,factory:function(){return(0,t.f3M)(ha)},providedIn:"root"}),ve})(),ha=(()=>{class ve extends ka{constructor(ae){super(),this.title=ae}updateTitle(ae){const Be=this.buildTitle(ae);void 0!==Be&&this.title.setTitle(Be)}}return ve.\u0275fac=function(ae){return new(ae||ve)(t.LFG(O.Dx))},ve.\u0275prov=t.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),ua=(()=>{class ve{}return ve.\u0275fac=function(ae){return new(ae||ve)},ve.\u0275prov=t.Yz7({token:ve,factory:function(){return(0,t.f3M)(Da)},providedIn:"root"}),ve})();class ra{shouldDetach(we){return!1}store(we,ae){}shouldAttach(we){return!1}retrieve(we){return null}shouldReuseRoute(we,ae){return we.routeConfig===ae.routeConfig}}let Da=(()=>{class ve extends ra{}return ve.\u0275fac=function(){let we;return function(Be){return(we||(we=t.n5z(ve)))(Be||ve)}}(),ve.\u0275prov=t.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})();const Tr=new t.OlP("",{providedIn:"root",factory:()=>({})});let hr=(()=>{class ve{}return ve.\u0275fac=function(ae){return new(ae||ve)},ve.\u0275prov=t.Yz7({token:ve,factory:function(){return(0,t.f3M)(ho)},providedIn:"root"}),ve})(),ho=(()=>{class ve{shouldProcessUrl(ae){return!0}extract(ae){return ae}merge(ae,Be){return ae}}return ve.\u0275fac=function(ae){return new(ae||ve)},ve.\u0275prov=t.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})();function ol(ve){throw ve}function Wo(ve,we,ae){return we.parse("/")}const Ul={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Nc={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ar=(()=>{class ve{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,t.f3M)(t.c2e),this.isNgZoneEnabled=!1,this.options=(0,t.f3M)(Tr,{optional:!0})||{},this.errorHandler=this.options.errorHandler||ol,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Wo,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,t.f3M)(hr),this.routeReuseStrategy=(0,t.f3M)(ua),this.urlCreationStrategy=(0,t.f3M)(_a),this.titleStrategy=(0,t.f3M)(ka),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=Oe((0,t.f3M)(Si,{optional:!0})??[]),this.navigationTransitions=(0,t.f3M)(da),this.urlSerializer=(0,t.f3M)(X),this.location=(0,t.f3M)(V.Ye),this.isNgZoneEnabled=(0,t.f3M)(t.R0b)instanceof t.R0b&&t.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new ht,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Pr(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(ae=>{this.lastSuccessfulId=ae.id,this.currentPageId=this.browserPageId??0},ae=>{this.console.warn(`Unhandled Navigation Error: ${ae}`)})}resetRootComponentType(ae){this.routerState.root.component=ae,this.navigationTransitions.rootComponentType=ae}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const ae=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Dt,ae)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(ae=>{const Be="popstate"===ae.type?"popstate":"hashchange";"popstate"===Be&&setTimeout(()=>{this.navigateToSyncWithBrowser(ae.url,Be,ae.state)},0)}))}navigateToSyncWithBrowser(ae,Be,ut){const Lt={replaceUrl:!0},Ht=ut?.navigationId?ut:null;if(ut){const Di={...ut};delete Di.navigationId,delete Di.\u0275routerPageId,0!==Object.keys(Di).length&&(Lt.state=Di)}const ui=this.parseUrl(ae);this.scheduleNavigation(ui,Be,Ht,Lt)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(ae){this.config=ae.map(wr),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(ae,Be={}){const{relativeTo:ut,queryParams:Lt,fragment:Ht,queryParamsHandling:ui,preserveFragment:Di}=Be,rn=Di?this.currentUrlTree.fragment:Ht;let an=null;switch(ui){case"merge":an={...this.currentUrlTree.queryParams,...Lt};break;case"preserve":an=this.currentUrlTree.queryParams;break;default:an=Lt||null}return null!==an&&(an=this.removeEmptyProps(an)),this.urlCreationStrategy.createUrlTree(ut,this.routerState,this.currentUrlTree,ae,an,rn??null)}navigateByUrl(ae,Be={skipLocationChange:!1}){const ut=vt(ae)?ae:this.parseUrl(ae),Lt=this.urlHandlingStrategy.merge(ut,this.rawUrlTree);return this.scheduleNavigation(Lt,Dt,null,Be)}navigate(ae,Be={skipLocationChange:!1}){return function Gl(ve){for(let we=0;we{const Lt=ae[ut];return null!=Lt&&(Be[ut]=Lt),Be},{})}scheduleNavigation(ae,Be,ut,Lt,Ht){if(this.disposed)return Promise.resolve(!1);let ui,Di,rn,an;return Ht?(ui=Ht.resolve,Di=Ht.reject,rn=Ht.promise):rn=new Promise((fa,ar)=>{ui=fa,Di=ar}),an="computed"===this.canceledNavigationResolution?ut&&ut.\u0275routerPageId?ut.\u0275routerPageId:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:an,source:Be,restoredState:ut,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:ae,extras:Lt,resolve:ui,reject:Di,promise:rn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),rn.catch(fa=>Promise.reject(fa))}setBrowserUrl(ae,Be){const ut=this.urlSerializer.serialize(ae);if(this.location.isCurrentPathEqualTo(ut)||Be.extras.replaceUrl){const Ht={...Be.extras.state,...this.generateNgRouterState(Be.id,this.browserPageId)};this.location.replaceState(ut,"",Ht)}else{const Lt={...Be.extras.state,...this.generateNgRouterState(Be.id,Be.targetPageId)};this.location.go(ut,"",Lt)}}restoreHistory(ae,Be=!1){if("computed"===this.canceledNavigationResolution){const Lt=this.currentPageId-(this.browserPageId??this.currentPageId);0!==Lt?this.location.historyGo(Lt):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===Lt&&(this.resetState(ae),this.browserUrlTree=ae.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(Be&&this.resetState(ae),this.resetUrlToCurrentUrlTree())}resetState(ae){this.routerState=ae.currentRouterState,this.currentUrlTree=ae.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,ae.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(ae,Be){return"computed"===this.canceledNavigationResolution?{navigationId:ae,\u0275routerPageId:Be}:{navigationId:ae}}}return ve.\u0275fac=function(ae){return new(ae||ve)},ve.\u0275prov=t.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),Os=(()=>{class ve{constructor(ae,Be,ut,Lt,Ht,ui){this.router=ae,this.route=Be,this.tabIndexAttribute=ut,this.renderer=Lt,this.el=Ht,this.locationStrategy=ui,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new z.x;const Di=Ht.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===Di||"area"===Di,this.isAnchorElement?this.subscription=ae.events.subscribe(rn=>{rn instanceof vi&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(ae){this._preserveFragment=(0,t.D6c)(ae)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(ae){this._skipLocationChange=(0,t.D6c)(ae)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(ae){this._replaceUrl=(0,t.D6c)(ae)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(ae){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",ae)}ngOnChanges(ae){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(ae){null!=ae?(this.commands=Array.isArray(ae)?ae:[ae],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(ae,Be,ut,Lt,Ht){return!!(null===this.urlTree||this.isAnchorElement&&(0!==ae||Be||ut||Lt||Ht||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const ae=null===this.href?null:(0,t.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",ae)}applyAttributeValue(ae,Be){const ut=this.renderer,Lt=this.el.nativeElement;null!==Be?ut.setAttribute(Lt,ae,Be):ut.removeAttribute(Lt,ae)}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:this.preserveFragment})}}return ve.\u0275fac=function(ae){return new(ae||ve)(t.Y36(Ar),t.Y36(jn),t.$8M("tabindex"),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(V.S$))},ve.\u0275dir=t.lG2({type:ve,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(ae,Be){1&ae&&t.NdJ("click",function(Lt){return Be.onClick(Lt.button,Lt.ctrlKey,Lt.shiftKey,Lt.altKey,Lt.metaKey)}),2&ae&&t.uIk("target",Be.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[t.TTD]}),ve})(),Fc=(()=>{class ve{get isActive(){return this._isActive}constructor(ae,Be,ut,Lt,Ht){this.router=ae,this.element=Be,this.renderer=ut,this.cdr=Lt,this.link=Ht,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new t.vpe,this.routerEventsSubscription=ae.events.subscribe(ui=>{ui instanceof vi&&this.update()})}ngAfterContentInit(){(0,_.of)(this.links.changes,(0,_.of)(null)).pipe((0,W.J)()).subscribe(ae=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const ae=[...this.links.toArray(),this.link].filter(Be=>!!Be).map(Be=>Be.onChanges);this.linkInputChangesSubscription=(0,e.D)(ae).pipe((0,W.J)()).subscribe(Be=>{this._isActive!==this.isLinkActive(this.router)(Be)&&this.update()})}set routerLinkActive(ae){const Be=Array.isArray(ae)?ae:ae.split(" ");this.classes=Be.filter(ut=>!!ut)}ngOnChanges(ae){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const ae=this.hasActiveLinks();this._isActive!==ae&&(this._isActive=ae,this.cdr.markForCheck(),this.classes.forEach(Be=>{ae?this.renderer.addClass(this.element.nativeElement,Be):this.renderer.removeClass(this.element.nativeElement,Be)}),ae&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(ae))})}isLinkActive(ae){const Be=function sl(ve){return!!ve.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return ut=>!!ut.urlTree&&ae.isActive(ut.urlTree,Be)}hasActiveLinks(){const ae=this.isLinkActive(this.router);return this.link&&ae(this.link)||this.links.some(ae)}}return ve.\u0275fac=function(ae){return new(ae||ve)(t.Y36(Ar),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(Os,8))},ve.\u0275dir=t.lG2({type:ve,selectors:[["","routerLinkActive",""]],contentQueries:function(ae,Be,ut){if(1&ae&&t.Suo(ut,Os,5),2&ae){let Lt;t.iGM(Lt=t.CRH())&&(Be.links=Lt)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[t.TTD]}),ve})();class cl{}let Wl=(()=>{class ve{constructor(ae,Be,ut,Lt,Ht){this.router=ae,this.injector=ut,this.preloadingStrategy=Lt,this.loader=Ht}setUpPreloading(){this.subscription=this.router.events.pipe((0,ee.h)(ae=>ae instanceof vi),(0,ie.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(ae,Be){const ut=[];for(const Lt of Be){Lt.providers&&!Lt._injector&&(Lt._injector=(0,t.MMx)(Lt.providers,ae,`Route: ${Lt.path}`));const Ht=Lt._injector??ae,ui=Lt._loadedInjector??Ht;(Lt.loadChildren&&!Lt._loadedRoutes&&void 0===Lt.canLoad||Lt.loadComponent&&!Lt._loadedComponent)&&ut.push(this.preloadConfig(Ht,Lt)),(Lt.children||Lt._loadedRoutes)&&ut.push(this.processRoutes(ui,Lt.children??Lt._loadedRoutes))}return(0,e.D)(ut).pipe((0,W.J)())}preloadConfig(ae,Be){return this.preloadingStrategy.preload(Be,()=>{let ut;ut=Be.loadChildren&&void 0===Be.canLoad?this.loader.loadChildren(ae,Be):(0,_.of)(null);const Lt=ut.pipe((0,me.z)(Ht=>null===Ht?(0,_.of)(void 0):(Be._loadedRoutes=Ht.routes,Be._loadedInjector=Ht.injector,this.processRoutes(Ht.injector??ae,Ht.routes))));if(Be.loadComponent&&!Be._loadedComponent){const Ht=this.loader.loadComponent(Be);return(0,e.D)([Lt,Ht]).pipe((0,W.J)())}return Lt})}}return ve.\u0275fac=function(ae){return new(ae||ve)(t.LFG(Ar),t.LFG(t.Sil),t.LFG(t.lqb),t.LFG(cl),t.LFG(Pi))},ve.\u0275prov=t.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})();const Hc=new t.OlP("");let Ks=(()=>{class ve{constructor(ae,Be,ut,Lt,Ht={}){this.urlSerializer=ae,this.transitions=Be,this.viewportScroller=ut,this.zone=Lt,this.options=Ht,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Ht.scrollPositionRestoration=Ht.scrollPositionRestoration||"disabled",Ht.anchorScrolling=Ht.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(ae=>{ae instanceof Ot?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=ae.navigationTrigger,this.restoredId=ae.restoredState?ae.restoredState.navigationId:0):ae instanceof vi&&(this.lastId=ae.id,this.scheduleScrollEvent(ae,this.urlSerializer.parse(ae.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(ae=>{ae instanceof xi&&(ae.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(ae.position):ae.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(ae.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(ae,Be){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new xi(ae,"popstate"===this.lastSource?this.store[this.restoredId]:null,Be))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return ve.\u0275fac=function(ae){t.$Z()},ve.\u0275prov=t.Yz7({token:ve,factory:ve.\u0275fac}),ve})();var tr=(()=>((tr=tr||{})[tr.COMPLETE=0]="COMPLETE",tr[tr.FAILED=1]="FAILED",tr[tr.REDIRECTING=2]="REDIRECTING",tr))();const Ps=!1;function Jr(ve,we){return{\u0275kind:ve,\u0275providers:we}}const ll=new t.OlP("",{providedIn:"root",factory:()=>!1});function uc(){const ve=(0,t.f3M)(t.zs3);return we=>{const ae=ve.get(t.z2F);if(we!==ae.components[0])return;const Be=ve.get(Ar),ut=ve.get(ts);1===ve.get(uo)&&Be.initialNavigation(),ve.get(Yo,null,t.XFs.Optional)?.setUpPreloading(),ve.get(Hc,null,t.XFs.Optional)?.init(),Be.resetRootComponentType(ae.componentTypes[0]),ut.closed||(ut.next(),ut.complete(),ut.unsubscribe())}}const ts=new t.OlP(Ps?"bootstrap done indicator":"",{factory:()=>new z.x}),uo=new t.OlP(Ps?"initial navigation":"",{providedIn:"root",factory:()=>1});function Vc(){let ve=[];return ve=Ps?[{provide:t.Xts,multi:!0,useFactory:()=>{const we=(0,t.f3M)(Ar);return()=>we.events.subscribe(ae=>{console.group?.(`Router Event: ${ae.constructor.name}`),console.log(function Hi(ve){if(!("type"in ve))return`Unknown Router Event: ${ve.constructor.name}`;switch(ve.type){case 14:return`ActivationEnd(path: '${ve.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${ve.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${ve.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${ve.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${ve.id}, url: '${ve.url}', urlAfterRedirects: '${ve.urlAfterRedirects}', state: ${ve.state}, shouldActivate: ${ve.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${ve.id}, url: '${ve.url}', urlAfterRedirects: '${ve.urlAfterRedirects}', state: ${ve.state})`;case 2:return`NavigationCancel(id: ${ve.id}, url: '${ve.url}')`;case 16:return`NavigationSkipped(id: ${ve.id}, url: '${ve.url}')`;case 1:return`NavigationEnd(id: ${ve.id}, url: '${ve.url}', urlAfterRedirects: '${ve.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${ve.id}, url: '${ve.url}', error: ${ve.error})`;case 0:return`NavigationStart(id: ${ve.id}, url: '${ve.url}')`;case 6:return`ResolveEnd(id: ${ve.id}, url: '${ve.url}', urlAfterRedirects: '${ve.urlAfterRedirects}', state: ${ve.state})`;case 5:return`ResolveStart(id: ${ve.id}, url: '${ve.url}', urlAfterRedirects: '${ve.urlAfterRedirects}', state: ${ve.state})`;case 10:return`RouteConfigLoadEnd(path: ${ve.route.path})`;case 9:return`RouteConfigLoadStart(path: ${ve.route.path})`;case 4:return`RoutesRecognized(id: ${ve.id}, url: '${ve.url}', urlAfterRedirects: '${ve.urlAfterRedirects}', state: ${ve.state})`;case 15:return`Scroll(anchor: '${ve.anchor}', position: '${ve.position?`${ve.position[0]}, ${ve.position[1]}`:null}')`}}(ae)),console.log(ae),console.groupEnd?.()})}}]:[],Jr(1,ve)}const Yo=new t.OlP(Ps?"router preloader":"");function fc(ve){return Jr(0,[{provide:Yo,useExisting:Wl},{provide:cl,useExisting:ve}])}const ir=!1,hl=new t.OlP(ir?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),Bc=[V.Ye,{provide:X,useClass:mt},Ar,Wa,{provide:jn,useFactory:function Ga(ve){return ve.routerState.root},deps:[Ar]},Pi,ir?{provide:ll,useValue:!0}:[]];function ul(){return new t.PXZ("Router",Ar)}let c2=(()=>{class ve{constructor(ae){}static forRoot(ae,Be){return{ngModule:ve,providers:[Bc,ir&&Be?.enableTracing?Vc().\u0275providers:[],{provide:Si,multi:!0,useValue:ae},{provide:hl,useFactory:nr,deps:[[Ar,new t.FiY,new t.tp0]]},{provide:Tr,useValue:Be||{}},Be?.useHash?{provide:V.S$,useClass:V.Do}:{provide:V.S$,useClass:V.b0},{provide:Hc,useFactory:()=>{const ve=(0,t.f3M)(V.EM),we=(0,t.f3M)(t.R0b),ae=(0,t.f3M)(Tr),Be=(0,t.f3M)(da),ut=(0,t.f3M)(X);return ae.scrollOffset&&ve.setOffset(ae.scrollOffset),new Ks(ut,Be,ve,we,ae)}},Be?.preloadingStrategy?fc(Be.preloadingStrategy).\u0275providers:[],{provide:t.PXZ,multi:!0,useFactory:ul},Be?.initialNavigation?Uc(Be):[],[{provide:jo,useFactory:uc},{provide:t.tb,multi:!0,useExisting:jo}]]}}static forChild(ae){return{ngModule:ve,providers:[{provide:Si,multi:!0,useValue:ae}]}}}return ve.\u0275fac=function(ae){return new(ae||ve)(t.LFG(hl,8))},ve.\u0275mod=t.oAB({type:ve}),ve.\u0275inj=t.cJS({imports:[gr]}),ve})();function nr(ve){if(ir&&ve)throw new t.vHH(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Uc(ve){return["disabled"===ve.initialNavigation?Jr(3,[{provide:t.ip1,multi:!0,useFactory:()=>{const we=(0,t.f3M)(Ar);return()=>{we.setUpLocationChangeListener()}}},{provide:uo,useValue:2}]).\u0275providers:[],"enabledBlocking"===ve.initialNavigation?Jr(2,[{provide:uo,useValue:0},{provide:t.ip1,multi:!0,deps:[t.zs3],useFactory:we=>{const ae=we.get(V.V_,Promise.resolve());return()=>ae.then(()=>new Promise(Be=>{const ut=we.get(Ar),Lt=we.get(ts);(function Zo(ve,we){ve.events.pipe((0,ee.h)(ae=>ae instanceof vi||ae instanceof li||ae instanceof gi||ae instanceof mi),(0,Y.U)(ae=>ae instanceof vi||ae instanceof mi?tr.COMPLETE:ae instanceof li&&(0===ae.code||1===ae.code)?tr.REDIRECTING:tr.FAILED),(0,ee.h)(ae=>ae!==tr.REDIRECTING),(0,Q.q)(1)).subscribe(()=>{we()})})(ut,()=>{Be(!0)}),we.get(da).afterPreactivation=()=>(Be(!0),Lt.closed?(0,_.of)(void 0):Lt),ut.initialNavigation()}))}}]).\u0275providers:[]]}const jo=new t.OlP(ir?"Router Initializer":"")},2216:(We,q,m)=>{"use strict";m.d(q,{BN:()=>Wn,uH:()=>ze});var t=m(4650);function e(ne,te){var Ee=Object.keys(ne);if(Object.getOwnPropertySymbols){var tt=Object.getOwnPropertySymbols(ne);te&&(tt=tt.filter(function(Ne){return Object.getOwnPropertyDescriptor(ne,Ne).enumerable})),Ee.push.apply(Ee,tt)}return Ee}function _(ne){for(var te=1;tene.length)&&(te=ne.length);for(var Ee=0,tt=new Array(te);Ee0;)te+=ii[62*Math.random()|0];return te}function ot(ne){for(var te=[],Ee=(ne||[]).length>>>0;Ee--;)te[Ee]=ne[Ee];return te}function ft(ne){return ne.classList?ot(ne.classList):(ne.getAttribute("class")||"").split(" ").filter(function(te){return te})}function St(ne){return"".concat(ne).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function $e(ne){return Object.keys(ne||{}).reduce(function(te,Ee){return te+"".concat(Ee,": ").concat(ne[Ee].trim(),";")},"")}function _t(ne){return ne.size!==$t.size||ne.x!==$t.x||ne.y!==$t.y||ne.rotate!==$t.rotate||ne.flipX||ne.flipY}var Et=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-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-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 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-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: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\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: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\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@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 -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\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 z-index: var(--fa-stack-z-index, auto);\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: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';function At(){var ne=at,te=ye,Ee=$.cssPrefix,tt=$.replacementClass,Ne=Et;if(Ee!==ne||tt!==te){var Rt=new RegExp("\\.".concat(ne,"\\-"),"g"),ni=new RegExp("\\--".concat(ne,"\\-"),"g"),ti=new RegExp("\\.".concat(te),"g");Ne=Ne.replace(Rt,".".concat(Ee,"-")).replace(ni,"--".concat(Ee,"-")).replace(ti,".".concat(tt))}return Ne}var Qt=!1;function zi(){$.autoAddCss&&!Qt&&(function Vt(ne){if(ne&&x){var te=l.createElement("style");te.setAttribute("type","text/css"),te.innerHTML=ne;for(var Ee=l.head.childNodes,tt=null,Ne=Ee.length-1;Ne>-1;Ne--){var Rt=Ee[Ne],ni=(Rt.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(ni)>-1&&(tt=Rt)}l.head.insertBefore(te,tt)}}(At()),Qt=!0)}var Ni={mixout:function(){return{dom:{css:At,insertCss:zi}}},hooks:function(){return{beforeDOMElementCreation:function(){zi()},beforeI2svg:function(){zi()}}}},Mi=f||{};Mi[nt]||(Mi[nt]={}),Mi[nt].styles||(Mi[nt].styles={}),Mi[nt].hooks||(Mi[nt].hooks={}),Mi[nt].shims||(Mi[nt].shims=[]);var Gi=Mi[nt],Xe=[],Se=!1;function Zt(ne){var te=ne.tag,Ee=ne.attributes,tt=void 0===Ee?{}:Ee,Ne=ne.children,Rt=void 0===Ne?[]:Ne;return"string"==typeof ne?St(ne):"<".concat(te," ").concat(function gt(ne){return Object.keys(ne||{}).reduce(function(te,Ee){return te+"".concat(Ee,'="').concat(St(ne[Ee]),'" ')},"").trim()}(tt),">").concat(Rt.map(Zt).join(""),"")}function si(ne,te,Ee){if(ne&&ne[te]&&ne[te][Ee])return{prefix:te,iconName:Ee,icon:ne[te][Ee]}}x&&((Se=(l.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(l.readyState))||l.addEventListener("DOMContentLoaded",function ne(){l.removeEventListener("DOMContentLoaded",ne),Se=1,Xe.map(function(te){return te()})}));var Oi=function(te,Ee,tt,Ne){var bi,Si,Pi,Rt=Object.keys(te),ni=Rt.length,ti=void 0!==Ne?function(te,Ee){return function(tt,Ne,Rt,ni){return te.call(Ee,tt,Ne,Rt,ni)}}(Ee,Ne):Ee;for(void 0===tt?(bi=1,Pi=te[Rt[0]]):(bi=0,Pi=tt);bi=55296&&Ne<=56319&&Ee2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,Ne=void 0!==tt&&tt,Rt=Yt(te);"function"!=typeof Gi.hooks.addPack||Ne?Gi.styles[ne]=_(_({},Gi.styles[ne]||{}),Rt):Gi.hooks.addPack(ne,Yt(te)),"fas"===ne&&qt("fa",te)}var dt,Dt,Bt,Ot=Gi.styles,vi=Gi.shims,li=(d(dt={},Ve,Object.values(lt[Ve])),d(dt,Qe,Object.values(lt[Qe])),dt),mi=null,gi={},Ui={},Un={},Dn={},oa={},Ea=(d(Dt={},Ve,Object.keys(rt[Ve])),d(Dt,Qe,Object.keys(rt[Qe])),Dt);var Jt=function(){var te=function(Rt){return Oi(Ot,function(ni,ti,bi){return ni[bi]=Oi(ti,Rt,{}),ni},{})};gi=te(function(Ne,Rt,ni){return Rt[3]&&(Ne[Rt[3]]=ni),Rt[2]&&Rt[2].filter(function(bi){return"number"==typeof bi}).forEach(function(bi){Ne[bi.toString(16)]=ni}),Ne}),Ui=te(function(Ne,Rt,ni){return Ne[ni]=ni,Rt[2]&&Rt[2].filter(function(bi){return"string"==typeof bi}).forEach(function(bi){Ne[bi]=ni}),Ne}),oa=te(function(Ne,Rt,ni){var ti=Rt[2];return Ne[ni]=ni,ti.forEach(function(bi){Ne[bi]=ni}),Ne});var Ee="far"in Ot||$.autoFetchSvg,tt=Oi(vi,function(Ne,Rt){var ni=Rt[0],ti=Rt[1],bi=Rt[2];return"far"===ti&&!Ee&&(ti="fas"),"string"==typeof ni&&(Ne.names[ni]={prefix:ti,iconName:bi}),"number"==typeof ni&&(Ne.unicodes[ni.toString(16)]={prefix:ti,iconName:bi}),Ne},{names:{},unicodes:{}});Un=tt.names,Dn=tt.unicodes,mi=Hn($.styleDefault,{family:$.familyDefault})};function pi(ne,te){return(gi[ne]||{})[te]}function ri(ne,te){return(oa[ne]||{})[te]}function xi(ne){return Un[ne]||{prefix:null,iconName:null}}function ln(){return mi}(function Ae(ne){ue.push(ne)})(function(ne){mi=Hn(ne.styleDefault,{family:$.familyDefault})}),Jt();var Gn=function(){return{prefix:null,iconName:null,rest:[]}};function Hn(ne){var Ee=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,tt=void 0===Ee?Ve:Ee;return Ke[tt][ne]||Ke[tt][rt[tt][ne]]||(ne in Gi.styles?ne:null)||null}var _a=(d(Bt={},Ve,Object.keys(lt[Ve])),d(Bt,Qe,Object.keys(lt[Qe])),Bt);function Tn(ne){var te,tt=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,Ne=void 0!==tt&&tt,Rt=(d(te={},Ve,"".concat($.cssPrefix,"-").concat(Ve)),d(te,Qe,"".concat($.cssPrefix,"-").concat(Qe)),te),ni=null,ti=Ve;(ne.includes(Rt[Ve])||ne.some(function(Si){return _a[Ve].includes(Si)}))&&(ti=Ve),(ne.includes(Rt[Qe])||ne.some(function(Si){return _a[Qe].includes(Si)}))&&(ti=Qe);var bi=ne.reduce(function(Si,Pi){var qi=function er(ne,te){var Ee=te.split("-"),tt=Ee[0],Ne=Ee.slice(1).join("-");return tt!==ne||""===Ne||function ta(ne){return~it.indexOf(ne)}(Ne)?null:Ne}($.cssPrefix,Pi);if(Ot[Pi]?(Pi=li[ti].includes(Pi)?Ut[ti][Pi]:Pi,ni=Pi,Si.prefix=Pi):Ea[ti].indexOf(Pi)>-1?(ni=Pi,Si.prefix=Hn(Pi,{family:ti})):qi?Si.iconName=qi:Pi!==$.replacementClass&&Pi!==Rt[Ve]&&Pi!==Rt[Qe]&&Si.rest.push(Pi),!Ne&&Si.prefix&&Si.iconName){var tn="fa"===ni?xi(Si.iconName):{},hn=ri(Si.prefix,Si.iconName);tn.prefix&&(ni=null),Si.iconName=tn.iconName||hn||Si.iconName,Si.prefix=tn.prefix||Si.prefix,"far"===Si.prefix&&!Ot.far&&Ot.fas&&!$.autoFetchSvg&&(Si.prefix="fas")}return Si},Gn());return(ne.includes("fa-brands")||ne.includes("fab"))&&(bi.prefix="fab"),(ne.includes("fa-duotone")||ne.includes("fad"))&&(bi.prefix="fad"),!bi.prefix&&ti===Qe&&(Ot.fass||$.autoFetchSvg)&&(bi.prefix="fass",bi.iconName=ri(bi.prefix,bi.iconName)||bi.iconName),("fa"===bi.prefix||"fa"===ni)&&(bi.prefix=ln()||"fas"),bi}var Vn=function(){function ne(){(function y(ne,te){if(!(ne instanceof te))throw new TypeError("Cannot call a class as a function")})(this,ne),this.definitions={}}return function P(ne,te,Ee){te&&h(ne.prototype,te),Ee&&h(ne,Ee),Object.defineProperty(ne,"prototype",{writable:!1})}(ne,[{key:"add",value:function(){for(var Ee=this,tt=arguments.length,Ne=new Array(tt),Rt=0;Rt0&&Pi.forEach(function(qi){"string"==typeof qi&&(Ee[ti][qi]=Si)}),Ee[ti][bi]=Si}),Ee}}]),ne}(),xo=[],zn={},ia={},Co=Object.keys(ia);function xr(ne,te){for(var Ee=arguments.length,tt=new Array(Ee>2?Ee-2:0),Ne=2;Ne1?te-1:0),tt=1;tt0&&void 0!==arguments[0]?arguments[0]:{};return x?(jn("beforeI2svg",te),Ta("pseudoElements2svg",te),Ta("i2svg",te)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Ee=te.autoReplaceSvgRoot;!1===$.autoReplaceSvg&&($.autoReplaceSvg=!0),$.observeMutations=!0,function wt(ne){x&&(Se?setTimeout(ne,0):Xe.push(ne))}(function(){Io({autoReplaceSvgRoot:Ee}),jn("watch",te)})}},wa={noAuto:function(){$.autoReplaceSvg=!1,$.observeMutations=!1,jn("noAuto")},config:$,dom:Yr,parse:{icon:function(te){if(null===te)return null;if("object"===T(te)&&te.prefix&&te.iconName)return{prefix:te.prefix,iconName:ri(te.prefix,te.iconName)||te.iconName};if(Array.isArray(te)&&2===te.length){var Ee=0===te[1].indexOf("fa-")?te[1].slice(3):te[1],tt=Hn(te[0]);return{prefix:tt,iconName:ri(tt,Ee)||Ee}}if("string"==typeof te&&(te.indexOf("".concat($.cssPrefix,"-"))>-1||te.match(ht))){var Ne=Tn(te.split(" "),{skipLookups:!0});return{prefix:Ne.prefix||ln(),iconName:ri(Ne.prefix,Ne.iconName)||Ne.iconName}}if("string"==typeof te){var Rt=ln();return{prefix:Rt,iconName:ri(Rt,te)||te}}}},library:Rr,findIconDefinition:Do,toHtml:Zt},Io=function(){var Ee=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,tt=void 0===Ee?l:Ee;(Object.keys(Gi.styles).length>0||$.autoFetchSvg)&&x&&$.autoReplaceSvg&&wa.dom.i2svg({node:tt})};function no(ne,te){return Object.defineProperty(ne,"abstract",{get:te}),Object.defineProperty(ne,"html",{get:function(){return ne.abstract.map(function(tt){return Zt(tt)})}}),Object.defineProperty(ne,"node",{get:function(){if(x){var tt=l.createElement("div");return tt.innerHTML=ne.html,tt.children}}}),ne}function or(ne){var te=ne.icons,Ee=te.main,tt=te.mask,Ne=ne.prefix,Rt=ne.iconName,ni=ne.transform,ti=ne.symbol,bi=ne.title,Si=ne.maskId,Pi=ne.titleId,qi=ne.extra,tn=ne.watchable,hn=void 0!==tn&&tn,da=tt.found?tt:Ee,ma=da.width,ka=da.height,ha="fak"===Ne,ua=[$.replacementClass,Rt?"".concat($.cssPrefix,"-").concat(Rt):""].filter(function(zr){return-1===qi.classes.indexOf(zr)}).filter(function(zr){return""!==zr||!!zr}).concat(qi.classes).join(" "),ra={children:[],attributes:_(_({},qi.attributes),{},{"data-prefix":Ne,"data-icon":Rt,class:ua,role:qi.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(ma," ").concat(ka)})},Da=ha&&!~qi.classes.indexOf("fa-fw")?{width:"".concat(ma/ka*16*.0625,"em")}:{};hn&&(ra.attributes[xe]=""),bi&&(ra.children.push({tag:"title",attributes:{id:ra.attributes["aria-labelledby"]||"title-".concat(Pi||pt())},children:[bi]}),delete ra.attributes.title);var Ma=_(_({},ra),{},{prefix:Ne,iconName:Rt,main:Ee,mask:tt,maskId:Si,transform:ni,symbol:ti,styles:_(_({},Da),qi.styles)}),Tr=tt.found&&Ee.found?Ta("generateAbstractMask",Ma)||{children:[],attributes:{}}:Ta("generateAbstractIcon",Ma)||{children:[],attributes:{}},ho=Tr.attributes;return Ma.children=Tr.children,Ma.attributes=ho,ti?function pr(ne){var Ee=ne.iconName,tt=ne.children,Ne=ne.attributes,Rt=ne.symbol,ni=!0===Rt?"".concat(ne.prefix,"-").concat($.cssPrefix,"-").concat(Ee):Rt;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:_(_({},Ne),{},{id:ni}),children:tt}]}]}(Ma):function jr(ne){var te=ne.children,Ee=ne.main,tt=ne.mask,Ne=ne.attributes,Rt=ne.styles,ni=ne.transform;if(_t(ni)&&Ee.found&&!tt.found){var Si={x:Ee.width/Ee.height/2,y:.5};Ne.style=$e(_(_({},Rt),{},{"transform-origin":"".concat(Si.x+ni.x/16,"em ").concat(Si.y+ni.y/16,"em")}))}return[{tag:"svg",attributes:Ne,children:te}]}(Ma)}function ao(ne){var te=ne.content,Ee=ne.width,tt=ne.height,Ne=ne.transform,Rt=ne.title,ni=ne.extra,ti=ne.watchable,bi=void 0!==ti&&ti,Si=_(_(_({},ni.attributes),Rt?{title:Rt}:{}),{},{class:ni.classes.join(" ")});bi&&(Si[xe]="");var Pi=_({},ni.styles);_t(Ne)&&(Pi.transform=function He(ne){var te=ne.transform,Ee=ne.width,Ne=ne.height,Rt=void 0===Ne?Ue:Ne,ni=ne.startCentered,ti=void 0!==ni&&ni,bi="";return bi+=ti&&n?"translate(".concat(te.x/Je-(void 0===Ee?Ue:Ee)/2,"em, ").concat(te.y/Je-Rt/2,"em) "):ti?"translate(calc(-50% + ".concat(te.x/Je,"em), calc(-50% + ").concat(te.y/Je,"em)) "):"translate(".concat(te.x/Je,"em, ").concat(te.y/Je,"em) "),(bi+="scale(".concat(te.size/Je*(te.flipX?-1:1),", ").concat(te.size/Je*(te.flipY?-1:1),") "))+"rotate(".concat(te.rotate,"deg) ")}({transform:Ne,startCentered:!0,width:Ee,height:tt}),Pi["-webkit-transform"]=Pi.transform);var qi=$e(Pi);qi.length>0&&(Si.style=qi);var tn=[];return tn.push({tag:"span",attributes:Si,children:[te]}),Rt&&tn.push({tag:"span",attributes:{class:"sr-only"},children:[Rt]}),tn}var ko=Gi.styles;function Aa(ne){var te=ne[0],Ee=ne[1],Rt=L(ne.slice(4),1)[0];return{found:!0,width:te,height:Ee,icon:Array.isArray(Rt)?{tag:"g",attributes:{class:"".concat($.cssPrefix,"-").concat(mt.GROUP)},children:[{tag:"path",attributes:{class:"".concat($.cssPrefix,"-").concat(mt.SECONDARY),fill:"currentColor",d:Rt[0]}},{tag:"path",attributes:{class:"".concat($.cssPrefix,"-").concat(mt.PRIMARY),fill:"currentColor",d:Rt[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:Rt}}}}var Kr={found:!1,width:512,height:512};function Wa(ne,te){var Ee=te;return"fa"===te&&null!==$.styleDefault&&(te=ln()),new Promise(function(tt,Ne){if(Ta("missingIconAbstract"),"fa"===Ee){var ni=xi(ne)||{};ne=ni.iconName||ne,te=ni.prefix||te}if(ne&&te&&ko[te]&&ko[te][ne])return tt(Aa(ko[te][ne]));(function Fr(ne,te){!pe&&!$.showMissingIcons&&ne&&console.error('Icon with name "'.concat(ne,'" and prefix "').concat(te,'" is missing.'))})(ne,te),tt(_(_({},Kr),{},{icon:$.showMissingIcons&&ne&&Ta("missingIconAbstract")||{}}))})}var Hr=function(){},sa=$.measurePerformance&&I&&I.mark&&I.measure?I:{mark:Hr,measure:Hr},za='FA "6.4.2"',gr=function(te){sa.mark("".concat(za," ").concat(te," ends")),sa.measure("".concat(za," ").concat(te),"".concat(za," ").concat(te," begins"),"".concat(za," ").concat(te," ends"))},Cr={begin:function(te){return sa.mark("".concat(za," ").concat(te," begins")),function(){return gr(te)}},end:gr},Oo=function(){};function oo(ne){return"string"==typeof(ne.getAttribute?ne.getAttribute(xe):null)}function Po(ne){return l.createElementNS("http://www.w3.org/2000/svg",ne)}function wo(ne){return l.createElement(ne)}function Va(ne){var Ee=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,tt=void 0===Ee?"svg"===ne.tag?Po:wo:Ee;if("string"==typeof ne)return l.createTextNode(ne);var Ne=tt(ne.tag);return Object.keys(ne.attributes||[]).forEach(function(ni){Ne.setAttribute(ni,ne.attributes[ni])}),(ne.children||[]).forEach(function(ni){Ne.appendChild(Va(ni,{ceFn:tt}))}),Ne}var Qn={replace:function(te){var Ee=te[0];if(Ee.parentNode)if(te[1].forEach(function(Ne){Ee.parentNode.insertBefore(Va(Ne),Ee)}),null===Ee.getAttribute(xe)&&$.keepOriginalSource){var tt=l.createComment(function wr(ne){var te=" ".concat(ne.outerHTML," ");return"".concat(te,"Font Awesome fontawesome.com ")}(Ee));Ee.parentNode.replaceChild(tt,Ee)}else Ee.remove()},nest:function(te){var Ee=te[0],tt=te[1];if(~ft(Ee).indexOf($.replacementClass))return Qn.replace(te);var Ne=new RegExp("".concat($.cssPrefix,"-.*"));if(delete tt[0].attributes.id,tt[0].attributes.class){var Rt=tt[0].attributes.class.split(" ").reduce(function(ti,bi){return bi===$.replacementClass||bi.match(Ne)?ti.toSvg.push(bi):ti.toNode.push(bi),ti},{toNode:[],toSvg:[]});tt[0].attributes.class=Rt.toSvg.join(" "),0===Rt.toNode.length?Ee.removeAttribute("class"):Ee.setAttribute("class",Rt.toNode.join(" "))}var ni=tt.map(function(ti){return Zt(ti)}).join("\n");Ee.setAttribute(xe,""),Ee.innerHTML=ni}};function On(ne){ne()}function lr(ne,te){var Ee="function"==typeof te?te:Oo;if(0===ne.length)Ee();else{var tt=On;$.mutateApproach===he&&(tt=f.requestAnimationFrame||On),tt(function(){var Ne=function cr(){return!0===$.autoReplaceSvg?Qn.replace:Qn[$.autoReplaceSvg]||Qn.replace}(),Rt=Cr.begin("mutate");ne.map(Ne),Rt(),Ee()})}}var Mr=!1;function ya(){Mr=!0}function Ro(){Mr=!1}var Ft=null;function hi(ne){if(v&&$.observeMutations){var te=ne.treeCallback,Ee=void 0===te?Oo:te,tt=ne.nodeCallback,Ne=void 0===tt?Oo:tt,Rt=ne.pseudoElementsCallback,ni=void 0===Rt?Oo:Rt,ti=ne.observeMutationsRoot,bi=void 0===ti?l:ti;Ft=new v(function(Si){if(!Mr){var Pi=ln();ot(Si).forEach(function(qi){if("childList"===qi.type&&qi.addedNodes.length>0&&!oo(qi.addedNodes[0])&&($.searchPseudoElements&&ni(qi.target),Ee(qi.target)),"attributes"===qi.type&&qi.target.parentNode&&$.searchPseudoElements&&ni(qi.target.parentNode),"attributes"===qi.type&&oo(qi.target)&&~X.indexOf(qi.attributeName))if("class"===qi.attributeName&&function Qr(ne){var te=ne.getAttribute?ne.getAttribute(oe):null,Ee=ne.getAttribute?ne.getAttribute(Fe):null;return te&&Ee}(qi.target)){var tn=Tn(ft(qi.target)),da=tn.iconName;qi.target.setAttribute(oe,tn.prefix||Pi),da&&qi.target.setAttribute(Fe,da)}else(function qr(ne){return ne&&ne.classList&&ne.classList.contains&&ne.classList.contains($.replacementClass)})(qi.target)&&Ne(qi.target)})}}),x&&Ft.observe(bi,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function ca(ne){var te=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},Ee=function Ii(ne){var te=ne.getAttribute("data-prefix"),Ee=ne.getAttribute("data-icon"),tt=void 0!==ne.innerText?ne.innerText.trim():"",Ne=Tn(ft(ne));return Ne.prefix||(Ne.prefix=ln()),te&&Ee&&(Ne.prefix=te,Ne.iconName=Ee),Ne.iconName&&Ne.prefix||(Ne.prefix&&tt.length>0&&(Ne.iconName=function Kt(ne,te){return(Ui[ne]||{})[te]}(Ne.prefix,ne.innerText)||pi(Ne.prefix,en(ne.innerText))),!Ne.iconName&&$.autoFetchSvg&&ne.firstChild&&ne.firstChild.nodeType===Node.TEXT_NODE&&(Ne.iconName=ne.firstChild.data)),Ne}(ne),tt=Ee.iconName,Ne=Ee.prefix,Rt=Ee.rest,ni=function nn(ne){var te=ot(ne.attributes).reduce(function(Ne,Rt){return"class"!==Ne.name&&"style"!==Ne.name&&(Ne[Rt.name]=Rt.value),Ne},{}),Ee=ne.getAttribute("title"),tt=ne.getAttribute("data-fa-title-id");return $.autoA11y&&(Ee?te["aria-labelledby"]="".concat($.replacementClass,"-title-").concat(tt||pt()):(te["aria-hidden"]="true",te.focusable="false")),te}(ne),ti=xr("parseNodeAttributes",{},ne),bi=te.styleParser?function ai(ne){var te=ne.getAttribute("style"),Ee=[];return te&&(Ee=te.split(";").reduce(function(tt,Ne){var Rt=Ne.split(":"),ni=Rt[0],ti=Rt.slice(1);return ni&&ti.length>0&&(tt[ni]=ti.join(":").trim()),tt},{})),Ee}(ne):[];return _({iconName:tt,title:ne.getAttribute("title"),titleId:ne.getAttribute("data-fa-title-id"),prefix:Ne,transform:$t,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:Rt,styles:bi,attributes:ni}},ti)}var Wi=Gi.styles;function _n(ne){var te="nest"===$.autoReplaceSvg?ca(ne,{styleParser:!1}):ca(ne);return~te.extra.classes.indexOf(Ge)?Ta("generateLayersText",ne,te):Ta("generateSvgReplacementMutation",ne,te)}var Za=new Set;function ct(ne){var te=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!x)return Promise.resolve();var Ee=l.documentElement.classList,tt=function(qi){return Ee.add("".concat(De,"-").concat(qi))},Ne=function(qi){return Ee.remove("".concat(De,"-").concat(qi))},Rt=$.autoFetchSvg?Za:Pe.map(function(Pi){return"fa-".concat(Pi)}).concat(Object.keys(Wi));Rt.includes("fa")||Rt.push("fa");var ni=[".".concat(Ge,":not([").concat(xe,"])")].concat(Rt.map(function(Pi){return".".concat(Pi,":not([").concat(xe,"])")})).join(", ");if(0===ni.length)return Promise.resolve();var ti=[];try{ti=ot(ne.querySelectorAll(ni))}catch{}if(!(ti.length>0))return Promise.resolve();tt("pending"),Ne("complete");var bi=Cr.begin("onTree"),Si=ti.reduce(function(Pi,qi){try{var tn=_n(qi);tn&&Pi.push(tn)}catch(hn){pe||"MissingIcon"===hn.name&&console.error(hn)}return Pi},[]);return new Promise(function(Pi,qi){Promise.all(Si).then(function(tn){lr(tn,function(){tt("active"),tt("complete"),Ne("pending"),"function"==typeof te&&te(),bi(),Pi()})}).catch(function(tn){bi(),qi(tn)})})}function et(ne){var te=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;_n(ne).then(function(Ee){Ee&&lr([Ee],te)})}Pe.map(function(ne){Za.add("fa-".concat(ne))}),Object.keys(rt[Ve]).map(Za.add.bind(Za)),Object.keys(rt[Qe]).map(Za.add.bind(Za)),Za=D(Za);var kt=function(te){var Ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},tt=Ee.transform,Ne=void 0===tt?$t:tt,Rt=Ee.symbol,ni=void 0!==Rt&&Rt,ti=Ee.mask,bi=void 0===ti?null:ti,Si=Ee.maskId,Pi=void 0===Si?null:Si,qi=Ee.title,tn=void 0===qi?null:qi,hn=Ee.titleId,da=void 0===hn?null:hn,ma=Ee.classes,ka=void 0===ma?[]:ma,ha=Ee.attributes,ua=void 0===ha?{}:ha,ra=Ee.styles,Da=void 0===ra?{}:ra;if(te){var Ma=te.prefix,Tr=te.iconName,hr=te.icon;return no(_({type:"icon"},te),function(){return jn("beforeDOMElementCreation",{iconDefinition:te,params:Ee}),$.autoA11y&&(tn?ua["aria-labelledby"]="".concat($.replacementClass,"-title-").concat(da||pt()):(ua["aria-hidden"]="true",ua.focusable="false")),or({icons:{main:Aa(hr),mask:bi?Aa(bi.icon):{found:!1,width:null,height:null,icon:{}}},prefix:Ma,iconName:Tr,transform:_(_({},$t),Ne),symbol:ni,title:tn,maskId:Pi,titleId:da,extra:{attributes:ua,styles:Da,classes:ka}})})}},wi={mixout:function(){return{icon:(ne=kt,function(te){var Ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},tt=(te||{}).icon?te:Do(te||{}),Ne=Ee.mask;return Ne&&(Ne=(Ne||{}).icon?Ne:Do(Ne||{})),ne(tt,_(_({},Ee),{},{mask:Ne}))})};var ne},hooks:function(){return{mutationObserverCallbacks:function(Ee){return Ee.treeCallback=ct,Ee.nodeCallback=et,Ee}}},provides:function(te){te.i2svg=function(Ee){var tt=Ee.node,Rt=Ee.callback;return ct(void 0===tt?l:tt,void 0===Rt?function(){}:Rt)},te.generateSvgReplacementMutation=function(Ee,tt){var Ne=tt.iconName,Rt=tt.title,ni=tt.titleId,ti=tt.prefix,bi=tt.transform,Si=tt.symbol,Pi=tt.mask,qi=tt.maskId,tn=tt.extra;return new Promise(function(hn,da){Promise.all([Wa(Ne,ti),Pi.iconName?Wa(Pi.iconName,Pi.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(ma){var ka=L(ma,2);hn([Ee,or({icons:{main:ka[0],mask:ka[1]},prefix:ti,iconName:Ne,transform:bi,symbol:Si,maskId:qi,title:Rt,titleId:ni,extra:tn,watchable:!0})])}).catch(da)})},te.generateAbstractIcon=function(Ee){var Si,tt=Ee.children,Ne=Ee.attributes,Rt=Ee.main,ni=Ee.transform,bi=$e(Ee.styles);return bi.length>0&&(Ne.style=bi),_t(ni)&&(Si=Ta("generateAbstractTransformGrouping",{main:Rt,transform:ni,containerWidth:Rt.width,iconWidth:Rt.width})),tt.push(Si||Rt.icon),{children:tt,attributes:Ne}}}},on={mixout:function(){return{layer:function(Ee){var tt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ne=tt.classes,Rt=void 0===Ne?[]:Ne;return no({type:"layer"},function(){jn("beforeDOMElementCreation",{assembler:Ee,params:tt});var ni=[];return Ee(function(ti){Array.isArray(ti)?ti.map(function(bi){ni=ni.concat(bi.abstract)}):ni=ni.concat(ti.abstract)}),[{tag:"span",attributes:{class:["".concat($.cssPrefix,"-layers")].concat(D(Rt)).join(" ")},children:ni}]})}}}},va={mixout:function(){return{counter:function(Ee){var tt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ne=tt.title,Rt=void 0===Ne?null:Ne,ni=tt.classes,ti=void 0===ni?[]:ni,bi=tt.attributes,Si=void 0===bi?{}:bi,Pi=tt.styles,qi=void 0===Pi?{}:Pi;return no({type:"counter",content:Ee},function(){return jn("beforeDOMElementCreation",{content:Ee,params:tt}),function ro(ne){var te=ne.content,Ee=ne.title,tt=ne.extra,Ne=_(_(_({},tt.attributes),Ee?{title:Ee}:{}),{},{class:tt.classes.join(" ")}),Rt=$e(tt.styles);Rt.length>0&&(Ne.style=Rt);var ni=[];return ni.push({tag:"span",attributes:Ne,children:[te]}),Ee&&ni.push({tag:"span",attributes:{class:"sr-only"},children:[Ee]}),ni}({content:Ee.toString(),title:Rt,extra:{attributes:Si,styles:qi,classes:["".concat($.cssPrefix,"-layers-counter")].concat(D(ti))}})})}}}},Ei={mixout:function(){return{text:function(Ee){var tt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ne=tt.transform,Rt=void 0===Ne?$t:Ne,ni=tt.title,ti=void 0===ni?null:ni,bi=tt.classes,Si=void 0===bi?[]:bi,Pi=tt.attributes,qi=void 0===Pi?{}:Pi,tn=tt.styles,hn=void 0===tn?{}:tn;return no({type:"text",content:Ee},function(){return jn("beforeDOMElementCreation",{content:Ee,params:tt}),ao({content:Ee,transform:_(_({},$t),Rt),title:ti,extra:{attributes:qi,styles:hn,classes:["".concat($.cssPrefix,"-layers-text")].concat(D(Si))}})})}}},provides:function(te){te.generateLayersText=function(Ee,tt){var Ne=tt.title,Rt=tt.transform,ni=tt.extra,ti=null,bi=null;if(n){var Si=parseInt(getComputedStyle(Ee).fontSize,10),Pi=Ee.getBoundingClientRect();ti=Pi.width/Si,bi=Pi.height/Si}return $.autoA11y&&!Ne&&(ni.attributes["aria-hidden"]="true"),Promise.resolve([Ee,ao({content:Ee.innerHTML,width:ti,height:bi,transform:Rt,title:Ne,extra:ni,watchable:!0})])}}},An=new RegExp('"',"ug"),so=[1105920,1112319];function Ba(ne,te){var Ee="".concat(Oe).concat(te.replace(":","-"));return new Promise(function(tt,Ne){if(null!==ne.getAttribute(Ee))return tt();var ni=ot(ne.children).filter(function(hr){return hr.getAttribute(fe)===te})[0],ti=f.getComputedStyle(ne,te),bi=ti.getPropertyValue("font-family").match(yt),Si=ti.getPropertyValue("font-weight"),Pi=ti.getPropertyValue("content");if(ni&&!bi)return ne.removeChild(ni),tt();if(bi&&"none"!==Pi&&""!==Pi){var qi=ti.getPropertyValue("content"),tn=~["Sharp"].indexOf(bi[2])?Qe:Ve,hn=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(bi[2])?Ke[tn][bi[2].toLowerCase()]:be[tn][Si],da=function Ws(ne){var te=ne.replace(An,""),Ee=function Yi(ne,te){var Ne,Ee=ne.length,tt=ne.charCodeAt(te);return tt>=55296&&tt<=56319&&Ee>te+1&&(Ne=ne.charCodeAt(te+1))>=56320&&Ne<=57343?1024*(tt-55296)+Ne-56320+65536:tt}(te,0),tt=Ee>=so[0]&&Ee<=so[1],Ne=2===te.length&&te[0]===te[1];return{value:en(Ne?te[0]:te),isSecondary:tt||Ne}}(qi),ma=da.value,ka=da.isSecondary,ha=bi[0].startsWith("FontAwesome"),ua=pi(hn,ma),ra=ua;if(ha){var Da=function Hi(ne){var te=Dn[ne],Ee=pi("fas",ne);return te||(Ee?{prefix:"fas",iconName:Ee}:null)||{prefix:null,iconName:null}}(ma);Da.iconName&&Da.prefix&&(ua=Da.iconName,hn=Da.prefix)}if(!ua||ka||ni&&ni.getAttribute(oe)===hn&&ni.getAttribute(Fe)===ra)tt();else{ne.setAttribute(Ee,ra),ni&&ne.removeChild(ni);var Ma=function aa(){return{iconName:null,title:null,titleId:null,prefix:null,transform:$t,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),Tr=Ma.extra;Tr.attributes[fe]=te,Wa(ua,hn).then(function(hr){var ho=or(_(_({},Ma),{},{icons:{main:hr,mask:Gn()},prefix:hn,iconName:ra,extra:Tr,watchable:!0})),zr=l.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===te?ne.insertBefore(zr,ne.firstChild):ne.appendChild(zr),zr.outerHTML=ho.map(function(ol){return Zt(ol)}).join("\n"),ne.removeAttribute(Ee),tt()}).catch(Ne)}}else tt()})}function ds(ne){return Promise.all([Ba(ne,"::before"),Ba(ne,"::after")])}function Uo(ne){return!(ne.parentNode===document.head||~Me.indexOf(ne.tagName.toUpperCase())||ne.getAttribute(fe)||ne.parentNode&&"svg"===ne.parentNode.tagName)}function Sr(ne){if(x)return new Promise(function(te,Ee){var tt=ot(ne.querySelectorAll("*")).filter(Uo).map(ds),Ne=Cr.begin("searchPseudoElements");ya(),Promise.all(tt).then(function(){Ne(),Ro(),te()}).catch(function(){Ne(),Ro(),Ee()})})}var Ds=!1,Zs=function(te){return te.toLowerCase().split(" ").reduce(function(tt,Ne){var Rt=Ne.toLowerCase().split("-"),ni=Rt[0],ti=Rt.slice(1).join("-");if(ni&&"h"===ti)return tt.flipX=!0,tt;if(ni&&"v"===ti)return tt.flipY=!0,tt;if(ti=parseFloat(ti),isNaN(ti))return tt;switch(ni){case"grow":tt.size=tt.size+ti;break;case"shrink":tt.size=tt.size-ti;break;case"left":tt.x=tt.x-ti;break;case"right":tt.x=tt.x+ti;break;case"up":tt.y=tt.y-ti;break;case"down":tt.y=tt.y+ti;break;case"rotate":tt.rotate=tt.rotate+ti}return tt},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},qn={x:0,y:0,width:"100%",height:"100%"};function ki(ne){return ne.attributes&&(ne.attributes.fill||!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(ne.attributes.fill="black"),ne}!function Pr(ne,te){var Ee=te.mixoutsTo;xo=ne,zn={},Object.keys(ia).forEach(function(tt){-1===Co.indexOf(tt)&&delete ia[tt]}),xo.forEach(function(tt){var Ne=tt.mixout?tt.mixout():{};if(Object.keys(Ne).forEach(function(ni){"function"==typeof Ne[ni]&&(Ee[ni]=Ne[ni]),"object"===T(Ne[ni])&&Object.keys(Ne[ni]).forEach(function(ti){Ee[ni]||(Ee[ni]={}),Ee[ni][ti]=Ne[ni][ti]})}),tt.hooks){var Rt=tt.hooks();Object.keys(Rt).forEach(function(ni){zn[ni]||(zn[ni]=[]),zn[ni].push(Rt[ni])})}tt.provides&&tt.provides(ia)})}([Ni,wi,on,va,Ei,{hooks:function(){return{mutationObserverCallbacks:function(Ee){return Ee.pseudoElementsCallback=Sr,Ee}}},provides:function(te){te.pseudoElements2svg=function(Ee){var tt=Ee.node;$.searchPseudoElements&&Sr(void 0===tt?l:tt)}}},{mixout:function(){return{dom:{unwatch:function(){ya(),Ds=!0}}}},hooks:function(){return{bootstrap:function(){hi(xr("mutationObserverCallbacks",{}))},noAuto:function(){!function Ct(){Ft&&Ft.disconnect()}()},watch:function(Ee){var tt=Ee.observeMutationsRoot;Ds?Ro():hi(xr("mutationObserverCallbacks",{observeMutationsRoot:tt}))}}}},{mixout:function(){return{parse:{transform:function(Ee){return Zs(Ee)}}}},hooks:function(){return{parseNodeAttributes:function(Ee,tt){var Ne=tt.getAttribute("data-fa-transform");return Ne&&(Ee.transform=Zs(Ne)),Ee}}},provides:function(te){te.generateAbstractTransformGrouping=function(Ee){var tt=Ee.main,Ne=Ee.transform,ni=Ee.iconWidth,ti={transform:"translate(".concat(Ee.containerWidth/2," 256)")},bi="translate(".concat(32*Ne.x,", ").concat(32*Ne.y,") "),Si="scale(".concat(Ne.size/16*(Ne.flipX?-1:1),", ").concat(Ne.size/16*(Ne.flipY?-1:1),") "),Pi="rotate(".concat(Ne.rotate," 0 0)"),hn={outer:ti,inner:{transform:"".concat(bi," ").concat(Si," ").concat(Pi)},path:{transform:"translate(".concat(ni/2*-1," -256)")}};return{tag:"g",attributes:_({},hn.outer),children:[{tag:"g",attributes:_({},hn.inner),children:[{tag:tt.icon.tag,children:tt.icon.children,attributes:_(_({},tt.icon.attributes),hn.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(Ee,tt){var Ne=tt.getAttribute("data-fa-mask"),Rt=Ne?Tn(Ne.split(" ").map(function(ni){return ni.trim()})):Gn();return Rt.prefix||(Rt.prefix=ln()),Ee.mask=Rt,Ee.maskId=tt.getAttribute("data-fa-mask-id"),Ee}}},provides:function(te){te.generateAbstractMask=function(Ee){var ne,tt=Ee.children,Ne=Ee.attributes,Rt=Ee.main,ni=Ee.mask,ti=Ee.maskId,Pi=Rt.icon,tn=ni.icon,hn=function vt(ne){var te=ne.transform,tt=ne.iconWidth,Ne={transform:"translate(".concat(ne.containerWidth/2," 256)")},Rt="translate(".concat(32*te.x,", ").concat(32*te.y,") "),ni="scale(".concat(te.size/16*(te.flipX?-1:1),", ").concat(te.size/16*(te.flipY?-1:1),") "),ti="rotate(".concat(te.rotate," 0 0)");return{outer:Ne,inner:{transform:"".concat(Rt," ").concat(ni," ").concat(ti)},path:{transform:"translate(".concat(tt/2*-1," -256)")}}}({transform:Ee.transform,containerWidth:ni.width,iconWidth:Rt.width}),da={tag:"rect",attributes:_(_({},qn),{},{fill:"white"})},ma=Pi.children?{children:Pi.children.map(ki)}:{},ka={tag:"g",attributes:_({},hn.inner),children:[ki(_({tag:Pi.tag,attributes:_(_({},Pi.attributes),hn.path)},ma))]},ha={tag:"g",attributes:_({},hn.outer),children:[ka]},ua="mask-".concat(ti||pt()),ra="clip-".concat(ti||pt()),Da={tag:"mask",attributes:_(_({},qn),{},{id:ua,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[da,ha]},Ma={tag:"defs",children:[{tag:"clipPath",attributes:{id:ra},children:(ne=tn,"g"===ne.tag?ne.children:[ne])},Da]};return tt.push(Ma,{tag:"rect",attributes:_({fill:"currentColor","clip-path":"url(#".concat(ra,")"),mask:"url(#".concat(ua,")")},qn)}),{children:tt,attributes:Ne}}}},{provides:function(te){var Ee=!1;f.matchMedia&&(Ee=f.matchMedia("(prefers-reduced-motion: reduce)").matches),te.missingIconAbstract=function(){var tt=[],Ne={fill:"currentColor"},Rt={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};tt.push({tag:"path",attributes:_(_({},Ne),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var ni=_(_({},Rt),{},{attributeName:"opacity"}),ti={tag:"circle",attributes:_(_({},Ne),{},{cx:"256",cy:"364",r:"28"}),children:[]};return Ee||ti.children.push({tag:"animate",attributes:_(_({},Rt),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:_(_({},ni),{},{values:"1;0;1;1;0;1;"})}),tt.push(ti),tt.push({tag:"path",attributes:_(_({},Ne),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:Ee?[]:[{tag:"animate",attributes:_(_({},ni),{},{values:"1;0;0;0;0;1;"})}]}),Ee||tt.push({tag:"path",attributes:_(_({},Ne),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:_(_({},ni),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:tt}}}},{hooks:function(){return{parseNodeAttributes:function(Ee,tt){var Ne=tt.getAttribute("data-fa-symbol");return Ee.symbol=null!==Ne&&(""===Ne||Ne),Ee}}}}],{mixoutsTo:wa});var lo=wa.parse,Fo=wa.icon,js=m(1481);const Ya=["*"],sn=ne=>{const te={[`fa-${ne.animation}`]:null!=ne.animation&&!ne.animation.startsWith("spin"),"fa-spin":"spin"===ne.animation||"spin-reverse"===ne.animation,"fa-spin-pulse":"spin-pulse"===ne.animation||"spin-pulse-reverse"===ne.animation,"fa-spin-reverse":"spin-reverse"===ne.animation||"spin-pulse-reverse"===ne.animation,"fa-pulse":"spin-pulse"===ne.animation||"spin-pulse-reverse"===ne.animation,"fa-fw":ne.fixedWidth,"fa-border":ne.border,"fa-inverse":ne.inverse,"fa-layers-counter":ne.counter,"fa-flip-horizontal":"horizontal"===ne.flip||"both"===ne.flip,"fa-flip-vertical":"vertical"===ne.flip||"both"===ne.flip,[`fa-${ne.size}`]:null!==ne.size,[`fa-rotate-${ne.rotate}`]:null!==ne.rotate,[`fa-pull-${ne.pull}`]:null!==ne.pull,[`fa-stack-${ne.stackItemSize}`]:null!=ne.stackItemSize};return Object.keys(te).map(Ee=>te[Ee]?Ee:null).filter(Ee=>Ee)};let la=(()=>{class ne{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return ne.\u0275fac=function(Ee){return new(Ee||ne)},ne.\u0275prov=t.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),fs=(()=>{class ne{constructor(){this.definitions={}}addIcons(...Ee){for(const tt of Ee){tt.prefix in this.definitions||(this.definitions[tt.prefix]={}),this.definitions[tt.prefix][tt.iconName]=tt;for(const Ne of tt.icon[2])"string"==typeof Ne&&(this.definitions[tt.prefix][Ne]=tt)}}addIconPacks(...Ee){for(const tt of Ee){const Ne=Object.keys(tt).map(Rt=>tt[Rt]);this.addIcons(...Ne)}}getIconDefinition(Ee,tt){return Ee in this.definitions&&tt in this.definitions[Ee]?this.definitions[Ee][tt]:null}}return ne.\u0275fac=function(Ee){return new(Ee||ne)},ne.\u0275prov=t.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),Rc=(()=>{class ne{constructor(){this.stackItemSize="1x"}ngOnChanges(Ee){if("size"in Ee)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 ne.\u0275fac=function(Ee){return new(Ee||ne)},ne.\u0275dir=t.lG2({type:ne,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[t.TTD]}),ne})(),hc=(()=>{class ne{constructor(Ee,tt){this.renderer=Ee,this.elementRef=tt}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(Ee){"size"in Ee&&(null!=Ee.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${Ee.size.currentValue}`),null!=Ee.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${Ee.size.previousValue}`))}}return ne.\u0275fac=function(Ee){return new(Ee||ne)(t.Y36(t.Qsj),t.Y36(t.SBq))},ne.\u0275cmp=t.Xpm({type:ne,selectors:[["fa-stack"]],inputs:{size:"size"},features:[t.TTD],ngContentSelectors:Ya,decls:1,vars:0,template:function(Ee,tt){1&Ee&&(t.F$t(),t.Hsn(0))},encapsulation:2}),ne})(),Wn=(()=>{class ne{constructor(Ee,tt,Ne,Rt,ni){this.sanitizer=Ee,this.config=tt,this.iconLibrary=Ne,this.stackItem=Rt,this.classes=[],null!=ni&&null==Rt&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}set spin(Ee){this.animation=Ee?"spin":void 0}set pulse(Ee){this.animation=Ee?"spin-pulse":void 0}ngOnChanges(Ee){if(null!=this.icon||null!=this.config.fallbackIcon){if(Ee){const Ne=this.findIconDefinition(null!=this.icon?this.icon:this.config.fallbackIcon);if(null!=Ne){const Rt=this.buildParams();this.renderIcon(Ne,Rt)}}}else(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})()}render(){this.ngOnChanges({})}findIconDefinition(Ee){const tt=((ne,te)=>(ne=>void 0!==ne.prefix&&void 0!==ne.iconName)(ne)?ne:"string"==typeof ne?{prefix:te,iconName:ne}:{prefix:ne[0],iconName:ne[1]})(Ee,this.config.defaultPrefix);return"icon"in tt?tt:this.iconLibrary.getIconDefinition(tt.prefix,tt.iconName)??((ne=>{throw new Error(`Could not find icon with iconName=${ne.iconName} and prefix=${ne.prefix} in the icon library.`)})(tt),null)}buildParams(){const Ee={flip:this.flip,animation:this.animation,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},tt="string"==typeof this.transform?lo.transform(this.transform):this.transform;return{title:this.title,transform:tt,classes:[...sn(Ee),...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(Ee,tt){const Ne=Fo(Ee,tt);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(Ne.html.join("\n"))}}return ne.\u0275fac=function(Ee){return new(Ee||ne)(t.Y36(js.H7),t.Y36(la),t.Y36(fs),t.Y36(Rc,8),t.Y36(hc,8))},ne.\u0275cmp=t.Xpm({type:ne,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(Ee,tt){2&Ee&&(t.Ikx("innerHTML",tt.renderedIconHTML,t.oJD),t.uIk("title",tt.title))},inputs:{icon:"icon",title:"title",animation:"animation",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:[t.TTD],decls:0,vars:0,template:function(Ee,tt){},encapsulation:2}),ne})(),ze=(()=>{class ne{}return ne.\u0275fac=function(Ee){return new(Ee||ne)},ne.\u0275mod=t.oAB({type:ne}),ne.\u0275inj=t.cJS({}),ne})()},2687:(We,q,m)=>{"use strict";m.d(q,{Acd:()=>z0,Aq:()=>Ks,B$L:()=>qn,BDt:()=>c,CgH:()=>Tp,CvI:()=>L3,DL8:()=>Y7,FJU:()=>h_,FVb:()=>Hc,FlN:()=>Lm,FpQ:()=>cu,HLz:()=>S_,KOR:()=>p0,Krp:()=>Vh,Mdf:()=>h3,N2j:()=>ri,NBC:()=>$_,OS1:()=>Df,Psp:()=>D1,Pyt:()=>d_,Sbq:()=>it,SoD:()=>Aa,Ssp:()=>av,SuH:()=>I4,TmZ:()=>j_,USL:()=>h7,Vei:()=>Qo,Vfw:()=>f6,X5K:()=>y0,XsY:()=>qi,aj4:()=>eo,b7W:()=>h8,byT:()=>tn,co4:()=>N6,d63:()=>Oa,dLy:()=>P_,dT$:()=>Cf,eHv:()=>iv,gNZ:()=>Ti,hkK:()=>li,hnx:()=>pv,kXW:()=>eg,kZ_:()=>K_,koM:()=>m1,mh3:()=>V4,nNP:()=>n5,q7m:()=>P8,qO$:()=>w7,r8p:()=>l5,sqG:()=>ym,vqe:()=>R7,wn1:()=>D_,wyP:()=>g1,xf3:()=>Xs});var it={prefix:"fas",iconName:"angles-down",icon:[448,512,["angle-double-down"],"f103","M246.6 470.6c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L224 402.7 361.4 265.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-160 160zm160-352l-160 160c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L224 210.7 361.4 73.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3z"]},li={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3zM625 177L497 305c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L591 143c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},ri={prefix:"fas",iconName:"box-archive",icon:[512,512,["archive"],"f187","M32 32H480c17.7 0 32 14.3 32 32V96c0 17.7-14.3 32-32 32H32C14.3 128 0 113.7 0 96V64C0 46.3 14.3 32 32 32zm0 128H480V416c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V160zm128 80c0 8.8 7.2 16 16 16H336c8.8 0 16-7.2 16-16s-7.2-16-16-16H176c-8.8 0-16 7.2-16 16z"]},Aa={prefix:"fas",iconName:"pen-ruler",icon:[512,512,["pencil-ruler"],"f5ae","M469.3 19.3l23.4 23.4c25 25 25 65.5 0 90.5l-56.4 56.4L322.3 75.7l56.4-56.4c25-25 65.5-25 90.5 0zM44.9 353.2L299.7 98.3 413.7 212.3 158.8 467.1c-6.7 6.7-15.1 11.6-24.2 14.2l-104 29.7c-8.4 2.4-17.4 .1-23.6-6.1s-8.5-15.2-6.1-23.6l29.7-104c2.6-9.2 7.5-17.5 14.2-24.2zM249.4 103.4L103.4 249.4 16 161.9c-18.7-18.7-18.7-49.1 0-67.9L94.1 16c18.7-18.7 49.1-18.7 67.9 0l19.8 19.8c-.3 .3-.7 .6-1 .9l-64 64c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0l64-64c.3-.3 .6-.7 .9-1l45.1 45.1zM408.6 262.6l45.1 45.1c-.3 .3-.7 .6-1 .9l-64 64c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0l64-64c.3-.3 .6-.7 .9-1L496 350.1c18.7 18.7 18.7 49.1 0 67.9L417.9 496c-18.7 18.7-49.1 18.7-67.9 0l-87.4-87.4L408.6 262.6z"]},qn={prefix:"fas",iconName:"unlock-keyhole",icon:[448,512,["unlock-alt"],"f13e","M224 64c-44.2 0-80 35.8-80 80v48H384c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80V144C80 64.5 144.5 0 224 0c57.5 0 107 33.7 130.1 82.3c7.6 16 .8 35.1-15.2 42.6s-35.1 .8-42.6-15.2C283.4 82.6 255.9 64 224 64zm32 320c17.7 0 32-14.3 32-32s-14.3-32-32-32H192c-17.7 0-32 14.3-32 32s14.3 32 32 32h64z"]},qi={prefix:"fas",iconName:"paintbrush",icon:[576,512,[128396,"paint-brush"],"f1fc","M339.3 367.1c27.3-3.9 51.9-19.4 67.2-42.9L568.2 74.1c12.6-19.5 9.4-45.3-7.6-61.2S517.7-4.4 499.1 9.6L262.4 187.2c-24 18-38.2 46.1-38.4 76.1L339.3 367.1zm-19.6 25.4l-116-104.4C143.9 290.3 96 339.6 96 400c0 3.9 .2 7.8 .6 11.6C98.4 429.1 86.4 448 68.8 448H64c-17.7 0-32 14.3-32 32s14.3 32 32 32H208c61.9 0 112-50.1 112-112c0-2.5-.1-5-.2-7.5z"]},tn={prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M144 144v48H304V144c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192V144C80 64.5 144.5 0 224 0s144 64.5 144 144v48h16c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80z"]},Hc={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M144 0a80 80 0 1 1 0 160A80 80 0 1 1 144 0zM512 0a80 80 0 1 1 0 160A80 80 0 1 1 512 0zM0 298.7C0 239.8 47.8 192 106.7 192h42.7c15.9 0 31 3.5 44.6 9.7c-1.3 7.2-1.9 14.7-1.9 22.3c0 38.2 16.8 72.5 43.3 96c-.2 0-.4 0-.7 0H21.3C9.6 320 0 310.4 0 298.7zM405.3 320c-.2 0-.4 0-.7 0c26.6-23.5 43.3-57.8 43.3-96c0-7.6-.7-15-1.9-22.3c13.6-6.3 28.7-9.7 44.6-9.7h42.7C592.2 192 640 239.8 640 298.7c0 11.8-9.6 21.3-21.3 21.3H405.3zM224 224a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zM128 485.3C128 411.7 187.7 352 261.3 352H378.7C452.3 352 512 411.7 512 485.3c0 14.7-11.9 26.7-26.7 26.7H154.7c-14.7 0-26.7-11.9-26.7-26.7z"]},Ks={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"]},z0={prefix:"fas",iconName:"bullhorn",icon:[512,512,[128226,128363],"f0a1","M480 32c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9L381.7 53c-48 48-113.1 75-181 75H192 160 64c-35.3 0-64 28.7-64 64v96c0 35.3 28.7 64 64 64l0 128c0 17.7 14.3 32 32 32h64c17.7 0 32-14.3 32-32V352l8.7 0c67.9 0 133 27 181 75l43.6 43.6c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V300.4c18.6-8.8 32-32.5 32-60.4s-13.4-51.6-32-60.4V32zm-64 76.7V240 371.3C357.2 317.8 280.5 288 200.7 288H192V192h8.7c79.8 0 156.5-29.8 215.3-83.3z"]},eo={prefix:"fas",iconName:"money-bill-wave",icon:[576,512,[],"f53a","M0 112.5V422.3c0 18 10.1 35 27 41.3c87 32.5 174 10.3 261-11.9c79.8-20.3 159.6-40.7 239.3-18.9c23 6.3 48.7-9.5 48.7-33.4V89.7c0-18-10.1-35-27-41.3C462 15.9 375 38.1 288 60.3C208.2 80.6 128.4 100.9 48.7 79.1C25.6 72.8 0 88.6 0 112.5zM288 352c-44.2 0-80-43-80-96s35.8-96 80-96s80 43 80 96s-35.8 96-80 96zM64 352c35.3 0 64 28.7 64 64H64V352zm64-208c0 35.3-28.7 64-64 64V144h64zM512 304v64H448c0-35.3 28.7-64 64-64zM448 96h64v64c-35.3 0-64-28.7-64-64z"]},Xs={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm48 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V352c0-35.3-28.7-64-64-64H64zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},m1={prefix:"fas",iconName:"chart-bar",icon:[512,512,["bar-chart"],"f080","M32 32c17.7 0 32 14.3 32 32V400c0 8.8 7.2 16 16 16H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H80c-44.2 0-80-35.8-80-80V64C0 46.3 14.3 32 32 32zm96 96c0-17.7 14.3-32 32-32l192 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-192 0c-17.7 0-32-14.3-32-32zm32 64H288c17.7 0 32 14.3 32 32s-14.3 32-32 32H160c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 96H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H160c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},g1={prefix:"fas",iconName:"window-restore",icon:[512,512,[],"f2d2","M432 64H208c-8.8 0-16 7.2-16 16V96H128V80c0-44.2 35.8-80 80-80H432c44.2 0 80 35.8 80 80V304c0 44.2-35.8 80-80 80H416V320h16c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16zM0 192c0-35.3 28.7-64 64-64H320c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V192zm64 32c0 17.7 14.3 32 32 32H288c17.7 0 32-14.3 32-32s-14.3-32-32-32H96c-17.7 0-32 14.3-32 32z"]},Qo={prefix:"fas",iconName:"burst",icon:[512,512,[],"e4dc","M37.6 4.2C28-2.3 15.2-1.1 7 7s-9.4 21-2.8 30.5l112 163.3L16.6 233.2C6.7 236.4 0 245.6 0 256s6.7 19.6 16.6 22.8l103.1 33.4L66.8 412.8c-4.9 9.3-3.2 20.7 4.3 28.1s18.8 9.2 28.1 4.3l100.6-52.9 33.4 103.1c3.2 9.9 12.4 16.6 22.8 16.6s19.6-6.7 22.8-16.6l33.4-103.1 100.6 52.9c9.3 4.9 20.7 3.2 28.1-4.3s9.2-18.8 4.3-28.1L392.3 312.2l103.1-33.4c9.9-3.2 16.6-12.4 16.6-22.8s-6.7-19.6-16.6-22.8L388.9 198.7l25.7-70.4c3.2-8.8 1-18.6-5.6-25.2s-16.4-8.8-25.2-5.6l-70.4 25.7L278.8 16.6C275.6 6.7 266.4 0 256 0s-19.6 6.7-22.8 16.6l-32.3 99.6L37.6 4.2z"]},Oa={prefix:"fas",iconName:"arrows-turn-right",icon:[448,512,[],"e4c0","M297.4 9.4c12.5-12.5 32.8-12.5 45.3 0l96 96c12.5 12.5 12.5 32.8 0 45.3l-96 96c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L338.7 160H128c-35.3 0-64 28.7-64 64v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V224C0 153.3 57.3 96 128 96H338.7L297.4 54.6c-12.5-12.5-12.5-32.8 0-45.3zm-96 256c12.5-12.5 32.8-12.5 45.3 0l96 96c12.5 12.5 12.5 32.8 0 45.3l-96 96c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 416H96c-17.7 0-32 14.3-32 32v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V448c0-53 43-96 96-96H242.7l-41.4-41.4c-12.5-12.5-12.5-32.8 0-45.3z"]},Vh={prefix:"fas",iconName:"layer-group",icon:[576,512,[],"f5fd","M264.5 5.2c14.9-6.9 32.1-6.9 47 0l218.6 101c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 149.8C37.4 145.8 32 137.3 32 128s5.4-17.9 13.9-21.8L264.5 5.2zM476.9 209.6l53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 277.8C37.4 273.8 32 265.3 32 256s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0l152-70.2zm-152 198.2l152-70.2 53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 405.8C37.4 401.8 32 393.3 32 384s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0z"]},D1={prefix:"fas",iconName:"question",icon:[320,512,[10067,10068,61736],"3f","M80 160c0-35.3 28.7-64 64-64h32c35.3 0 64 28.7 64 64v3.6c0 21.8-11.1 42.1-29.4 53.8l-42.2 27.1c-25.2 16.2-40.4 44.1-40.4 74V320c0 17.7 14.3 32 32 32s32-14.3 32-32v-1.4c0-8.2 4.2-15.8 11-20.2l42.2-27.1c36.6-23.6 58.8-64.1 58.8-107.7V160c0-70.7-57.3-128-128-128H144C73.3 32 16 89.3 16 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm80 320a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},Cf={prefix:"fas",iconName:"code",icon:[640,512,[],"f121","M392.8 1.2c-17-4.9-34.7 5-39.6 22l-128 448c-4.9 17 5 34.7 22 39.6s34.7-5 39.6-22l128-448c4.9-17-5-34.7-22-39.6zm80.6 120.1c-12.5 12.5-12.5 32.8 0 45.3L562.7 256l-89.4 89.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l112-112c12.5-12.5 12.5-32.8 0-45.3l-112-112c-12.5-12.5-32.8-12.5-45.3 0zm-306.7 0c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3l112 112c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256l89.4-89.4c12.5-12.5 12.5-32.8 0-45.3z"]},Df={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240V16.6c0-9 7-16.6 16-16.6C443.7 0 544 100.3 544 224c0 9-7.6 16-16.6 16H304zM32 272C32 150.7 122.1 50.3 239 34.3c9.2-1.3 17 6.1 17 15.4V288L412.5 444.5c6.7 6.7 6.2 17.7-1.5 23.1C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zm526.4 16c9.3 0 16.6 7.8 15.4 17c-7.7 55.9-34.6 105.6-73.9 142.3c-6 5.6-15.4 5.2-21.2-.7L320 288H558.4z"]},p0={prefix:"fas",iconName:"eject",icon:[448,512,[9167],"f052","M224 32c13.5 0 26.3 5.6 35.4 15.6l176 192c12.9 14 16.2 34.3 8.6 51.8S419 320 400 320H48c-19 0-36.3-11.2-43.9-28.7s-4.3-37.7 8.6-51.8l176-192C197.7 37.6 210.5 32 224 32zM0 432c0-26.5 21.5-48 48-48H400c26.5 0 48 21.5 48 48s-21.5 48-48 48H48c-26.5 0-48-21.5-48-48z"]},I4={prefix:"fas",iconName:"signs-post",icon:[512,512,["map-signs"],"f277","M224 32H64C46.3 32 32 46.3 32 64v64c0 17.7 14.3 32 32 32H441.4c4.2 0 8.3-1.7 11.3-4.7l48-48c6.2-6.2 6.2-16.4 0-22.6l-48-48c-3-3-7.1-4.7-11.3-4.7H288c0-17.7-14.3-32-32-32s-32 14.3-32 32zM480 256c0-17.7-14.3-32-32-32H288V192H224v32H70.6c-4.2 0-8.3 1.7-11.3 4.7l-48 48c-6.2 6.2-6.2 16.4 0 22.6l48 48c3 3 7.1 4.7 11.3 4.7H448c17.7 0 32-14.3 32-32V256zM288 480V384H224v96c0 17.7 14.3 32 32 32s32-14.3 32-32z"]},Tp={prefix:"fas",iconName:"screwdriver-wrench",icon:[512,512,["tools"],"f7d9","M78.6 5C69.1-2.4 55.6-1.5 47 7L7 47c-8.5 8.5-9.4 22-2.1 31.6l80 104c4.5 5.9 11.6 9.4 19 9.4h54.1l109 109c-14.7 29-10 65.4 14.3 89.6l112 112c12.5 12.5 32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3l-112-112c-24.2-24.2-60.6-29-89.6-14.3l-109-109V104c0-7.5-3.5-14.5-9.4-19L78.6 5zM19.9 396.1C7.2 408.8 0 426.1 0 444.1C0 481.6 30.4 512 67.9 512c18 0 35.3-7.2 48-19.9L233.7 374.3c-7.8-20.9-9-43.6-3.6-65.1l-61.7-61.7L19.9 396.1zM512 144c0-10.5-1.1-20.7-3.2-30.5c-2.4-11.2-16.1-14.1-24.2-6l-63.9 63.9c-3 3-7.1 4.7-11.3 4.7H352c-8.8 0-16-7.2-16-16V102.6c0-4.2 1.7-8.3 4.7-11.3l63.9-63.9c8.1-8.1 5.2-21.8-6-24.2C388.7 1.1 378.5 0 368 0C288.5 0 224 64.5 224 144l0 .8 85.3 85.3c36-9.1 75.8 .5 104 28.7L429 274.5c49-23 83-72.8 83-130.5zM56 432a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},y0={prefix:"fas",iconName:"wallet",icon:[512,512,[],"f555","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V192c0-35.3-28.7-64-64-64H80c-8.8 0-16-7.2-16-16s7.2-16 16-16H448c17.7 0 32-14.3 32-32s-14.3-32-32-32H64zM416 272a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},V4={prefix:"fas",iconName:"code-branch",icon:[448,512,[],"f126","M80 104a24 24 0 1 0 0-48 24 24 0 1 0 0 48zm80-24c0 32.8-19.7 61-48 73.3v87.8c18.8-10.9 40.7-17.1 64-17.1h96c35.3 0 64-28.7 64-64v-6.7C307.7 141 288 112.8 288 80c0-44.2 35.8-80 80-80s80 35.8 80 80c0 32.8-19.7 61-48 73.3V160c0 70.7-57.3 128-128 128H176c-35.3 0-64 28.7-64 64v6.7c28.3 12.3 48 40.5 48 73.3c0 44.2-35.8 80-80 80s-80-35.8-80-80c0-32.8 19.7-61 48-73.3V352 153.3C19.7 141 0 112.8 0 80C0 35.8 35.8 0 80 0s80 35.8 80 80zm232 0a24 24 0 1 0 -48 0 24 24 0 1 0 48 0zM80 456a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]},cu={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M512 96c0 50.2-59.1 125.1-84.6 155c-3.8 4.4-9.4 6.1-14.5 5H320c-17.7 0-32 14.3-32 32s14.3 32 32 32h96c53 0 96 43 96 96s-43 96-96 96H139.6c8.7-9.9 19.3-22.6 30-36.8c6.3-8.4 12.8-17.6 19-27.2H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-53 0-96-43-96-96s43-96 96-96h39.8c-21-31.5-39.8-67.7-39.8-96c0-53 43-96 96-96s96 43 96 96zM117.1 489.1c-3.8 4.3-7.2 8.1-10.1 11.3l-1.8 2-.2-.2c-6 4.6-14.6 4-20-1.8C59.8 473 0 402.5 0 352c0-53 43-96 96-96s96 43 96 96c0 30-21.1 67-43.5 97.9c-10.7 14.7-21.7 28-30.8 38.5l-.6 .7zM128 352a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM416 128a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},h3={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},Ti={prefix:"fas",iconName:"user-gear",icon:[640,512,["user-cog"],"f4fe","M224 0a128 128 0 1 1 0 256A128 128 0 1 1 224 0zM178.3 304h91.4c11.8 0 23.4 1.2 34.5 3.3c-2.1 18.5 7.4 35.6 21.8 44.8c-16.6 10.6-26.7 31.6-20 53.3c4 12.9 9.4 25.5 16.4 37.6s15.2 23.1 24.4 33c15.7 16.9 39.6 18.4 57.2 8.7v.9c0 9.2 2.7 18.5 7.9 26.3H29.7C13.3 512 0 498.7 0 482.3C0 383.8 79.8 304 178.3 304zM436 218.2c0-7 4.5-13.3 11.3-14.8c10.5-2.4 21.5-3.7 32.7-3.7s22.2 1.3 32.7 3.7c6.8 1.5 11.3 7.8 11.3 14.8v30.6c7.9 3.4 15.4 7.7 22.3 12.8l24.9-14.3c6.1-3.5 13.7-2.7 18.5 2.4c7.6 8.1 14.3 17.2 20.1 27.2s10.3 20.4 13.5 31c2.1 6.7-1.1 13.7-7.2 17.2l-25 14.4c.4 4 .7 8.1 .7 12.3s-.2 8.2-.7 12.3l25 14.4c6.1 3.5 9.2 10.5 7.2 17.2c-3.3 10.6-7.8 21-13.5 31s-12.5 19.1-20.1 27.2c-4.8 5.1-12.5 5.9-18.5 2.4l-24.9-14.3c-6.9 5.1-14.3 9.4-22.3 12.8l0 30.6c0 7-4.5 13.3-11.3 14.8c-10.5 2.4-21.5 3.7-32.7 3.7s-22.2-1.3-32.7-3.7c-6.8-1.5-11.3-7.8-11.3-14.8V454.8c-8-3.4-15.6-7.7-22.5-12.9l-24.7 14.3c-6.1 3.5-13.7 2.7-18.5-2.4c-7.6-8.1-14.3-17.2-20.1-27.2s-10.3-20.4-13.5-31c-2.1-6.7 1.1-13.7 7.2-17.2l24.8-14.3c-.4-4.1-.7-8.2-.7-12.4s.2-8.3 .7-12.4L343.8 325c-6.1-3.5-9.2-10.5-7.2-17.2c3.3-10.6 7.7-21 13.5-31s12.5-19.1 20.1-27.2c4.8-5.1 12.4-5.9 18.5-2.4l24.8 14.3c6.9-5.1 14.5-9.4 22.5-12.9V218.2zm92.1 133.5a48.1 48.1 0 1 0 -96.1 0 48.1 48.1 0 1 0 96.1 0z"]},f6={prefix:"fas",iconName:"angles-up",icon:[448,512,["angle-double-up"],"f102","M246.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L224 109.3 361.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160zm160 352l-160-160c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L224 301.3 361.4 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3z"]},ym={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},Lm={prefix:"fas",iconName:"dumbbell",icon:[640,512,[],"f44b","M96 64c0-17.7 14.3-32 32-32h32c17.7 0 32 14.3 32 32V224v64V448c0 17.7-14.3 32-32 32H128c-17.7 0-32-14.3-32-32V384H64c-17.7 0-32-14.3-32-32V288c-17.7 0-32-14.3-32-32s14.3-32 32-32V160c0-17.7 14.3-32 32-32H96V64zm448 0v64h32c17.7 0 32 14.3 32 32v64c17.7 0 32 14.3 32 32s-14.3 32-32 32v64c0 17.7-14.3 32-32 32H544v64c0 17.7-14.3 32-32 32H480c-17.7 0-32-14.3-32-32V288 224 64c0-17.7 14.3-32 32-32h32c17.7 0 32 14.3 32 32zM416 224v64H224V224H416z"]},L3={prefix:"fas",iconName:"money-bill-1",icon:[576,512,["money-bill-alt"],"f3d1","M64 64C28.7 64 0 92.7 0 128V384c0 35.3 28.7 64 64 64H512c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64H64zm64 320H64V320c35.3 0 64 28.7 64 64zM64 192V128h64c0 35.3-28.7 64-64 64zM448 384c0-35.3 28.7-64 64-64v64H448zm64-192c-35.3 0-64-28.7-64-64h64v64zM176 256a112 112 0 1 1 224 0 112 112 0 1 1 -224 0zm76-48c0 9.7 6.9 17.7 16 19.6V276h-4c-11 0-20 9-20 20s9 20 20 20h24 24c11 0 20-9 20-20s-9-20-20-20h-4V208c0-11-9-20-20-20H272c-11 0-20 9-20 20z"]},N6=L3,h8={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"]},eg={prefix:"fas",iconName:"network-wired",icon:[640,512,[],"f6ff","M256 64H384v64H256V64zM240 0c-26.5 0-48 21.5-48 48v96c0 26.5 21.5 48 48 48h48v32H32c-17.7 0-32 14.3-32 32s14.3 32 32 32h96v32H80c-26.5 0-48 21.5-48 48v96c0 26.5 21.5 48 48 48H240c26.5 0 48-21.5 48-48V368c0-26.5-21.5-48-48-48H192V288H448v32H400c-26.5 0-48 21.5-48 48v96c0 26.5 21.5 48 48 48H560c26.5 0 48-21.5 48-48V368c0-26.5-21.5-48-48-48H512V288h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H352V192h48c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48H240zM96 448V384H224v64H96zm320-64H544v64H416V384z"]},P8={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V274.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V416c0-35.3-28.7-64-64-64H346.5l-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352H64zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},c={prefix:"fas",iconName:"bolt",icon:[448,512,[9889,"zap"],"f0e7","M349.4 44.6c5.9-13.7 1.5-29.7-10.6-38.5s-28.6-8-39.9 1.8l-256 224c-10 8.8-13.6 22.9-8.9 35.3S50.7 288 64 288H175.5L98.6 467.4c-5.9 13.7-1.5 29.7 10.6 38.5s28.6 8 39.9-1.8l256-224c10-8.8 13.6-22.9 8.9-35.3s-16.6-20.7-30-20.7H272.5L349.4 44.6z"]},d_={prefix:"fas",iconName:"arrows-turn-to-dots",icon:[512,512,[],"e4c1","M249.4 25.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3L269.3 96 416 96c53 0 96 43 96 96v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V192c0-17.7-14.3-32-32-32l-146.7 0 25.4 25.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-80-80c-12.5-12.5-12.5-32.8 0-45.3l80-80zm13.3 256l80 80c12.5 12.5 12.5 32.8 0 45.3l-80 80c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 416 96 416c-17.7 0-32 14.3-32 32v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V448c0-53 43-96 96-96l146.7 0-25.4-25.4c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0zM384 384a64 64 0 1 1 128 0 64 64 0 1 1 -128 0zM64 192A64 64 0 1 1 64 64a64 64 0 1 1 0 128z"]},h_={prefix:"fas",iconName:"user-lock",icon:[640,512,[],"f502","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H392.6c-5.4-9.4-8.6-20.3-8.6-32V352c0-2.1 .1-4.2 .3-6.3c-31-26-71-41.7-114.6-41.7H178.3zM528 240c17.7 0 32 14.3 32 32v48H496V272c0-17.7 14.3-32 32-32zm-80 32v48c-17.7 0-32 14.3-32 32V480c0 17.7 14.3 32 32 32H608c17.7 0 32-14.3 32-32V352c0-17.7-14.3-32-32-32V272c0-44.2-35.8-80-80-80s-80 35.8-80 80z"]},S_={prefix:"fas",iconName:"gauge-high",icon:[512,512,[62461,"tachometer-alt","tachometer-alt-fast"],"f625","M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM256 416c35.3 0 64-28.7 64-64c0-17.4-6.9-33.1-18.1-44.6L366 161.7c5.3-12.1-.2-26.3-12.3-31.6s-26.3 .2-31.6 12.3L257.9 288c-.6 0-1.3 0-1.9 0c-35.3 0-64 28.7-64 64s28.7 64 64 64zM176 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM96 288a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm352-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},n5={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"]},D_={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},P_={prefix:"fas",iconName:"receipt",icon:[384,512,[129534],"f543","M14 2.2C22.5-1.7 32.5-.3 39.6 5.8L80 40.4 120.4 5.8c9-7.7 22.3-7.7 31.2 0L192 40.4 232.4 5.8c9-7.7 22.3-7.7 31.2 0L304 40.4 344.4 5.8c7.1-6.1 17.1-7.5 25.6-3.6s14 12.4 14 21.8V488c0 9.4-5.5 17.9-14 21.8s-18.5 2.5-25.6-3.6L304 471.6l-40.4 34.6c-9 7.7-22.3 7.7-31.2 0L192 471.6l-40.4 34.6c-9 7.7-22.3 7.7-31.2 0L80 471.6 39.6 506.2c-7.1 6.1-17.1 7.5-25.6 3.6S0 497.4 0 488V24C0 14.6 5.5 6.1 14 2.2zM96 144c-8.8 0-16 7.2-16 16s7.2 16 16 16H288c8.8 0 16-7.2 16-16s-7.2-16-16-16H96zM80 352c0 8.8 7.2 16 16 16H288c8.8 0 16-7.2 16-16s-7.2-16-16-16H96c-8.8 0-16 7.2-16 16zM96 240c-8.8 0-16 7.2-16 16s7.2 16 16 16H288c8.8 0 16-7.2 16-16s-7.2-16-16-16H96z"]},j_={prefix:"fas",iconName:"diagram-project",icon:[576,512,["project-diagram"],"f542","M0 80C0 53.5 21.5 32 48 32h96c26.5 0 48 21.5 48 48V96H384V80c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H432c-26.5 0-48-21.5-48-48V160H192v16c0 1.7-.1 3.4-.3 5L272 288h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H272c-26.5 0-48-21.5-48-48V336c0-1.7 .1-3.4 .3-5L144 224H48c-26.5 0-48-21.5-48-48V80z"]},K_={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M208 0H332.1c12.7 0 24.9 5.1 33.9 14.1l67.9 67.9c9 9 14.1 21.2 14.1 33.9V336c0 26.5-21.5 48-48 48H208c-26.5 0-48-21.5-48-48V48c0-26.5 21.5-48 48-48zM48 128h80v64H64V448H256V416h64v48c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48z"]},l5={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},$_={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},h7={prefix:"fas",iconName:"percent",icon:[384,512,[62101,62785,"percentage"],"25","M374.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-320 320c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l320-320zM128 128A64 64 0 1 0 0 128a64 64 0 1 0 128 0zM384 384a64 64 0 1 0 -128 0 64 64 0 1 0 128 0z"]},w7={prefix:"fas",iconName:"clock-rotate-left",icon:[512,512,["history"],"f1da","M75 75L41 41C25.9 25.9 0 36.6 0 57.9V168c0 13.3 10.7 24 24 24H134.1c21.4 0 32.1-25.9 17-41l-30.8-30.8C155 85.5 203 64 256 64c106 0 192 86 192 192s-86 192-192 192c-40.8 0-78.6-12.7-109.7-34.4c-14.5-10.1-34.4-6.6-44.6 7.9s-6.6 34.4 7.9 44.6C151.2 495 201.7 512 256 512c141.4 0 256-114.6 256-256S397.4 0 256 0C185.3 0 121.3 28.7 75 75zm181 53c-13.3 0-24 10.7-24 24V256c0 6.4 2.5 12.5 7 17l72 72c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-65-65V152c0-13.3-10.7-24-24-24z"]},R7={prefix:"fas",iconName:"infinity",icon:[640,512,[8734,9854],"f534","M0 241.1C0 161 65 96 145.1 96c38.5 0 75.4 15.3 102.6 42.5L320 210.7l72.2-72.2C419.5 111.3 456.4 96 494.9 96C575 96 640 161 640 241.1v29.7C640 351 575 416 494.9 416c-38.5 0-75.4-15.3-102.6-42.5L320 301.3l-72.2 72.2C220.5 400.7 183.6 416 145.1 416C65 416 0 351 0 270.9V241.1zM274.7 256l-72.2-72.2c-15.2-15.2-35.9-23.8-57.4-23.8C100.3 160 64 196.3 64 241.1v29.7c0 44.8 36.3 81.1 81.1 81.1c21.5 0 42.2-8.5 57.4-23.8L274.7 256zm90.5 0l72.2 72.2c15.2 15.2 35.9 23.8 57.4 23.8c44.8 0 81.1-36.3 81.1-81.1V241.1c0-44.8-36.3-81.1-81.1-81.1c-21.5 0-42.2 8.5-57.4 23.8L365.3 256z"]},Y7={prefix:"fas",iconName:"scale-balanced",icon:[640,512,[9878,"balance-scale"],"f24e","M384 32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H398.4c-5.2 25.8-22.9 47.1-46.4 57.3V448H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H320 128c-17.7 0-32-14.3-32-32s14.3-32 32-32H288V153.3c-23.5-10.3-41.2-31.6-46.4-57.3H128c-17.7 0-32-14.3-32-32s14.3-32 32-32H256c14.6-19.4 37.8-32 64-32s49.4 12.6 64 32zm55.6 288H584.4L512 195.8 439.6 320zM512 416c-62.9 0-115.2-34-126-78.9c-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1C627.2 382 574.9 416 512 416zM126.8 195.8L54.4 320H199.3L126.8 195.8zM.9 337.1c-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1C242 382 189.7 416 126.8 416S11.7 382 .9 337.1z"]},iv={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},av={prefix:"fas",iconName:"right-left",icon:[512,512,["exchange-alt"],"f362","M32 96l320 0V32c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l96 96c6 6 9.4 14.1 9.4 22.6s-3.4 16.6-9.4 22.6l-96 96c-9.2 9.2-22.9 11.9-34.9 6.9s-19.8-16.6-19.8-29.6V160L32 160c-17.7 0-32-14.3-32-32s14.3-32 32-32zM480 352c17.7 0 32 14.3 32 32s-14.3 32-32 32H160v64c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9l-96-96c-6-6-9.4-14.1-9.4-22.6s3.4-16.6 9.4-22.6l96-96c9.2-9.2 22.9-11.9 34.9-6.9s19.8 16.6 19.8 29.6l0 64H480z"]},pv={prefix:"fas",iconName:"user-clock",icon:[640,512,[],"f4fd","M224 0a128 128 0 1 1 0 256A128 128 0 1 1 224 0zM178.3 304h91.4c20.6 0 40.4 3.5 58.8 9.9C323 331 320 349.1 320 368c0 59.5 29.5 112.1 74.8 144H29.7C13.3 512 0 498.7 0 482.3C0 383.8 79.8 304 178.3 304zM352 368a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-80c-8.8 0-16 7.2-16 16v64c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16s-7.2-16-16-16H512V304c0-8.8-7.2-16-16-16z"]}},493:(We,q,m)=>{"use strict";m.d(q,{eX:()=>O,sQ:()=>qe,GW:()=>i,l4:()=>U});var t=m(6451),e=m(9751),_=m(7579),T=m(8502),s=m(515),y=m(9646),h=m(2843),P=m(576);class w{constructor(zt,xt,Nt){this.kind=zt,this.value=xt,this.error=Nt,this.hasValue="N"===zt}observe(zt){return C(this,zt)}do(zt,xt,Nt){const{kind:Gt,value:ke,error:$}=this;return"N"===Gt?zt?.(ke):"E"===Gt?xt?.($):Nt?.()}accept(zt,xt,Nt){var Gt;return(0,P.m)(null===(Gt=zt)||void 0===Gt?void 0:Gt.next)?this.observe(zt):this.do(zt,xt,Nt)}toObservable(){const{kind:zt,value:xt,error:Nt}=this,Gt="N"===zt?(0,y.of)(xt):"E"===zt?(0,h._)(()=>Nt):"C"===zt?s.E:0;if(!Gt)throw new TypeError(`Unexpected notification kind ${zt}`);return Gt}static createNext(zt){return new w("N",zt)}static createError(zt){return new w("E",void 0,zt)}static createComplete(){return w.completeNotification}}function C(je,zt){var xt,Nt,Gt;const{kind:ke,value:$,error:ue}=je;if("string"!=typeof ke)throw new TypeError('Invalid notification, missing "kind"');"N"===ke?null===(xt=zt.next)||void 0===xt||xt.call(zt,$):"E"===ke?null===(Nt=zt.error)||void 0===Nt||Nt.call(zt,ue):null===(Gt=zt.complete)||void 0===Gt||Gt.call(zt)}w.completeNotification=new w("C");var L=m(4482),D=m(5403),V=m(4004),Y=m(262),j=m(9300),Q=m(8421);function J(je,zt,xt,Nt){return(0,L.e)((Gt,ke)=>{let $;zt&&"function"!=typeof zt?({duration:xt,element:$,connector:Nt}=zt):$=zt;const ue=new Map,Ae=ot=>{ue.forEach(ot),ot(ke)},Je=ot=>Ae(ft=>ft.error(ot));let $t=0,Vt=!1;const ii=new D.Q(ke,ot=>{try{const ft=je(ot);let St=ue.get(ft);if(!St){ue.set(ft,St=Nt?Nt():new _.x);const gt=function pt(ot,ft){const St=new e.y(gt=>{$t++;const $e=ft.subscribe(gt);return()=>{$e.unsubscribe(),0==--$t&&Vt&&ii.unsubscribe()}});return St.key=ot,St}(ft,St);if(ke.next(gt),xt){const $e=(0,D.x)(St,()=>{St.complete(),$e?.unsubscribe()},void 0,void 0,()=>ue.delete(ft));ii.add((0,Q.Xf)(xt(gt)).subscribe($e))}}St.next($?$(ot):ot)}catch(ft){Je(ft)}},()=>Ae(ot=>ot.complete()),Je,()=>ue.clear(),()=>(Vt=!0,0===$t));Gt.subscribe(ii)})}var ee=m(5577);function me(je,zt){return zt?xt=>xt.pipe(me((Nt,Gt)=>(0,Q.Xf)(je(Nt,Gt)).pipe((0,V.U)((ke,$)=>zt(Nt,ke,Gt,$))))):(0,L.e)((xt,Nt)=>{let Gt=0,ke=null,$=!1;xt.subscribe((0,D.x)(Nt,ue=>{ke||(ke=(0,D.x)(Nt,void 0,()=>{ke=null,$&&Nt.complete()}),(0,Q.Xf)(je(ue,Gt++)).subscribe(ke))},()=>{$=!0,!ke&&Nt.complete()}))})}var ie=m(5698),se=m(4650),ce=m(9653);const Ce={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},M="__@ngrx/effects_create__";function i(je,zt={}){const xt=zt.functional?je:je(),Nt={...Ce,...zt};return Object.defineProperty(xt,M,{value:Nt}),xt}function v(je){return Object.getPrototypeOf(je)}function k(je){return"function"==typeof je}function x(je){return je.filter(k)}function n(je,zt,xt){const Nt=v(je).constructor.name,Gt=function l(je){return function a(je){return Object.getOwnPropertyNames(je).filter(Nt=>!(!je[Nt]||!je[Nt].hasOwnProperty(M))&&je[Nt][M].hasOwnProperty("dispatch")).map(Nt=>({propertyName:Nt,...je[Nt][M]}))}(je)}(je).map(({propertyName:ke,dispatch:$,useEffectsErrorHandler:ue})=>{const Ae="function"==typeof je[ke]?je[ke]():je[ke],Je=ue?xt(Ae,zt):Ae;return!1===$?Je.pipe((0,T.l)()):Je.pipe(function z(){return(0,L.e)((je,zt)=>{je.subscribe((0,D.x)(zt,xt=>{zt.next(w.createNext(xt))},()=>{zt.next(w.createComplete()),zt.complete()},xt=>{zt.next(w.createError(xt)),zt.complete()}))})}()).pipe((0,V.U)(Vt=>({effect:je[ke],notification:Vt,propertyName:ke,sourceName:Nt,sourceInstance:je})))});return(0,t.T)(...Gt)}const g=10;function W(je,zt,xt=g){return je.pipe((0,Y.K)(Nt=>(zt&&zt.handleError(Nt),xt<=1?je:W(je,zt,xt-1))))}let O=(()=>{class je extends e.y{constructor(xt){super(),xt&&(this.source=xt)}lift(xt){const Nt=new je;return Nt.source=this,Nt.operator=xt,Nt}}return je.\u0275fac=function(xt){return new(xt||je)(se.LFG(ce.Y$))},je.\u0275prov=se.Yz7({token:je,factory:je.\u0275fac,providedIn:"root"}),je})();function U(...je){return(0,j.h)(zt=>je.some(xt=>"string"==typeof xt?xt===zt.type:xt.type===zt.type))}const ge=new se.OlP("@ngrx/effects Internal Root Guard"),nt=new se.OlP("@ngrx/effects User Provided Effects"),Ue=new se.OlP("@ngrx/effects Internal Root Effects"),at=new se.OlP("@ngrx/effects Internal Root Effects Instances"),ye=new se.OlP("@ngrx/effects Internal Feature Effects"),xe=new se.OlP("@ngrx/effects Internal Feature Effects Instance Groups"),fe=new se.OlP("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>W}),Oe="@ngrx/effects/init";(0,ce.PH)(Oe);const pe="ngrxOnIdentifyEffects",de="ngrxOnInitEffects";function rt(je){return Ke(je,de)}function Ke(je,zt){return je&&zt in je&&"function"==typeof je[zt]}let lt=(()=>{class je extends _.x{constructor(xt,Nt){super(),this.errorHandler=xt,this.effectsErrorHandler=Nt}addEffects(xt){this.next(xt)}toActions(){return this.pipe(J(xt=>function I(je){return"Object"!==je.constructor.name&&"Function"!==je.constructor.name}(xt)?v(xt):xt),(0,ee.z)(xt=>xt.pipe(J(Ut))),(0,ee.z)(xt=>{const Nt=xt.pipe(me(ke=>function ht(je,zt){return xt=>{const Nt=n(xt,je,zt);return function Pe(je){return Ke(je,"ngrxOnRunEffects")}(xt)?xt.ngrxOnRunEffects(Nt):Nt}}(this.errorHandler,this.effectsErrorHandler)(ke)),(0,V.U)(ke=>(function Fe(je,zt){if("N"===je.notification.kind){const xt=je.notification.value;!function De(je){return"function"!=typeof je&&je&&je.type&&"string"==typeof je.type}(xt)&&zt.handleError(new Error(`Effect ${function he({propertyName:je,sourceInstance:zt,sourceName:xt}){const Nt="function"==typeof zt[je];return`"${xt}.${String(je)}${Nt?"()":""}"`}(je)} dispatched an invalid action: ${function Me(je){try{return JSON.stringify(je)}catch{return je}}(xt)}`))}}(ke,this.errorHandler),ke.notification)),(0,j.h)(ke=>"N"===ke.kind&&null!=ke.value),function re(){return(0,L.e)((je,zt)=>{je.subscribe((0,D.x)(zt,xt=>C(xt,zt)))})}()),Gt=xt.pipe((0,ie.q)(1),(0,j.h)(rt),(0,V.U)(ke=>ke.ngrxOnInitEffects()));return(0,t.T)(Nt,Gt)}))}}return je.\u0275fac=function(xt){return new(xt||je)(se.LFG(se.qLn),se.LFG(fe))},je.\u0275prov=se.Yz7({token:je,factory:je.\u0275fac,providedIn:"root"}),je})();function Ut(je){return function Ve(je){return Ke(je,pe)}(je)?je.ngrxOnIdentifyEffects():""}let Ge=(()=>{class je{constructor(xt,Nt){this.effectSources=xt,this.store=Nt,this.effectsSubscription=null}get isStarted(){return!!this.effectsSubscription}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return je.\u0275fac=function(xt){return new(xt||je)(se.LFG(lt),se.LFG(ce.yh))},je.\u0275prov=se.Yz7({token:je,factory:je.\u0275fac,providedIn:"root"}),je})(),yt=(()=>{class je{constructor(xt,Nt,Gt,ke,$,ue,Ae){this.sources=xt,Nt.start();for(const Je of ke)xt.addEffects(Je);Gt.dispatch({type:Oe})}addEffects(xt){this.sources.addEffects(xt)}}return je.\u0275fac=function(xt){return new(xt||je)(se.LFG(lt),se.LFG(Ge),se.LFG(ce.yh),se.LFG(at),se.LFG(ce.cr,8),se.LFG(ce.CK,8),se.LFG(ge,8))},je.\u0275mod=se.oAB({type:je}),je.\u0275inj=se.cJS({}),je})(),be=(()=>{class je{constructor(xt,Nt,Gt,ke){const $=Nt.flat();for(const ue of $)xt.addEffects(ue)}}return je.\u0275fac=function(xt){return new(xt||je)(se.LFG(yt),se.LFG(xe),se.LFG(ce.cr,8),se.LFG(ce.CK,8))},je.\u0275mod=se.oAB({type:je}),je.\u0275inj=se.cJS({}),je})(),qe=(()=>{class je{static forFeature(...xt){const Nt=xt.flat(),Gt=x(Nt);return{ngModule:be,providers:[Gt,{provide:ye,multi:!0,useValue:Nt},{provide:nt,multi:!0,useValue:[]},{provide:xe,multi:!0,useFactory:Ie,deps:[ye,nt]}]}}static forRoot(...xt){const Nt=xt.flat(),Gt=x(Nt);return{ngModule:yt,providers:[Gt,{provide:Ue,useValue:[Nt]},{provide:ge,useFactory:X},{provide:nt,multi:!0,useValue:[]},{provide:at,useFactory:Ie,deps:[Ue,nt]}]}}}return je.\u0275fac=function(xt){return new(xt||je)},je.\u0275mod=se.oAB({type:je}),je.\u0275inj=se.cJS({}),je})();function Ie(je,zt){const xt=[];for(const Nt of je)xt.push(...Nt);for(const Nt of zt)xt.push(...Nt);return xt.map(Nt=>k(Nt)?(0,se.f3M)(Nt):Nt)}function X(){const je=(0,se.f3M)(Ge,{optional:!0,skipSelf:!0}),zt=(0,se.f3M)(Ue,{self:!0});if((1!==zt.length||0!==zt[0].length)&&je)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}},825:(__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__(4650),_ngrx_store__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(9653),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(515),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(9751),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);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,typeof q.type>"u")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,t=!0){this.start=q,this.end=m,this.active=t,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}}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(We){const q={maxAge:!1,monitor:noMonitor,actionSanitizer:void 0,stateSanitizer:void 0,name:DEFAULT_NAME,serialize:!1,logOnly:!1,autoPause:!1,trace:!1,traceLimit:75,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0}},m="function"==typeof We?We():We,_=Object.assign({},q,{features:m.features||!!m.logOnly&&{pause:!0,export:!0,test:!0}||q.features},m);if(_.maxAge&&_.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${_.maxAge}`);return _}function difference(We,q){return We.filter(m=>q.indexOf(m)<0)}function unliftState(We){const{computedStates:q,currentStateIndex:m}=We;if(m>=q.length){const{state:e}=q[q.length-1];return e}const{state:t}=q[m];return t}function unliftAction(We){return We.actionsById[We.nextActionId-1]}function liftAction(We){return new PerformAction(We,+Date.now())}function sanitizeActions(We,q){return Object.keys(q).reduce((m,t)=>{const e=Number(t);return m[e]=sanitizeAction(We,q[e],e),m},{})}function sanitizeAction(We,q,m){return{...q,action:We(q.action,m)}}function sanitizeStates(We,q){return q.map((m,t)=>({state:sanitizeState(We,m.state,t),error:m.error}))}function sanitizeState(We,q,m){return We(q,m)}function shouldFilterActions(We){return We.predicate||We.actionsSafelist||We.actionsBlocklist}function filterLiftedState(We,q,m,t){const e=[],_={},T=[];return We.stagedActionIds.forEach((s,y)=>{const h=We.actionsById[s];h&&(y&&isActionFiltered(We.computedStates[y],h,q,m,t)||(_[s]=h,e.push(s),T.push(We.computedStates[y])))}),{...We,stagedActionIds:e,actionsById:_,computedStates:T}}function isActionFiltered(We,q,m,t,e){const _=m&&!m(We,q.action),T=t&&!q.action.type.match(t.map(y=>escapeRegExp(y)).join("|")),s=e&&q.action.type.match(e.map(y=>escapeRegExp(y)).join("|"));return _||T||s}function escapeRegExp(We){return We.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}let DevtoolsDispatcher=(()=>{class We extends _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO{}return We.\u0275fac=function(){let q;return function(t){return(q||(q=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(We)))(t||We)}}(),We.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:We,factory:We.\u0275fac}),We})();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(We,q,m){this.config=q,this.dispatcher=m,this.devtoolsExtension=We,this.createActionStreams()}notify(We,q){if(this.devtoolsExtension)if(We.type===PERFORM_ACTION){if(q.isLocked||q.isPaused)return;const m=unliftState(q);if(shouldFilterActions(this.config)&&isActionFiltered(m,We,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const t=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,m,q.currentStateIndex):m,e=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,We,q.nextActionId):We;this.sendToReduxDevtools(()=>this.extensionConnection.send(e,t))}else{const m={...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(We=>{const q=this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=q,q.init(),q.subscribe(m=>We.next(m)),q.unsubscribe}):rxjs__WEBPACK_IMPORTED_MODULE_2__.E}createActionStreams(){const We=this.createChangesObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.B)()),q=We.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(s=>s.type===ExtensionActionTypes.START)),m=We.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(s=>s.type===ExtensionActionTypes.STOP)),t=We.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(s=>s.type===ExtensionActionTypes.DISPATCH),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(s=>this.unwrapAction(s.payload)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.b)(s=>s.type===IMPORT_STATE?this.dispatcher.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(y=>y.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)(()=>s),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.K)(()=>(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(s)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.q)(1)):(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(s))),_=We.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(s=>s.type===ExtensionActionTypes.ACTION),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(s=>this.unwrapAction(s.payload))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(m)),T=t.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)(()=>_)),this.liftedActions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>T))}unwrapAction(action){return"string"==typeof action?eval(`(${action})`):action}getExtensionConfig(We){const q={name:We.name,features:We.features,serialize:We.serialize,autoPause:We.autoPause??!1,trace:We.trace??!1,traceLimit:We.traceLimit??75};return!1!==We.maxAge&&(q.maxAge=We.maxAge),q}sendToReduxDevtools(We){try{We()}catch(q){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",q)}}}return DevtoolsExtension.\u0275fac=function We(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})();const INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(We,q,m,t,e){if(t)return{state:m,error:"Interrupted by an error up the chain"};let T,_=m;try{_=We(m,q)}catch(s){T=s.toString(),e.handleError(s)}return{state:_,error:T}}function recomputeStates(We,q,m,t,e,_,T,s,y){if(q>=We.length&&We.length===_.length)return We;const h=We.slice(0,q),P=_.length-(y?1:0);for(let d=q;d-1?L:computeNextEntry(m,C,D,z,s);h.push(Y)}return y&&h.push(We[We.length-1]),h}function liftInitialState(We,q){return{monitorState:q(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:We,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(We,q,m,t,e={}){return _=>(T,s)=>{let{monitorState:y,actionsById:h,nextActionId:P,stagedActionIds:d,skippedActionIds:w,committedState:C,currentStateIndex:L,computedStates:D,isLocked:z,isPaused:V}=T||q;function Y(J){let ee=J,me=d.slice(1,ee+1);for(let re=0;re-1===me.indexOf(re)),d=[0,...d.slice(ee+1)],C=D[ee].state,D=D.slice(ee),L=L>ee?L-ee:0}function j(){h={0:liftAction(INIT_ACTION)},P=1,d=[0],w=[],C=D[L].state,L=0,D=[]}T||(h=Object.create(h));let Q=0;switch(s.type){case LOCK_CHANGES:z=s.status,Q=1/0;break;case PAUSE_RECORDING:V=s.status,V?(d=[...d,P],h[P]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),P++,Q=d.length-1,D=D.concat(D[D.length-1]),L===d.length-2&&L++,Q=1/0):j();break;case RESET:h={0:liftAction(INIT_ACTION)},P=1,d=[0],w=[],C=We,L=0,D=[];break;case COMMIT:j();break;case ROLLBACK:h={0:liftAction(INIT_ACTION)},P=1,d=[0],w=[],L=0,D=[];break;case TOGGLE_ACTION:{const{id:J}=s;w=-1===w.indexOf(J)?[J,...w]:w.filter(me=>me!==J),Q=d.indexOf(J);break}case SET_ACTIONS_ACTIVE:{const{start:J,end:ee,active:me}=s,re=[];for(let ie=J;iee.maxAge&&(D=recomputeStates(D,Q,_,C,h,d,w,m,V),Y(d.length-e.maxAge),Q=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb:if(D.filter(ee=>ee.error).length>0)Q=0,e.maxAge&&d.length>e.maxAge&&(D=recomputeStates(D,Q,_,C,h,d,w,m,V),Y(d.length-e.maxAge),Q=1/0);else{if(!V&&!z){L===d.length-1&&L++;const ee=P++;h[ee]=new PerformAction(s,+Date.now()),d=[...d,ee],Q=d.length-1,D=recomputeStates(D,Q,_,C,h,d,w,m,V)}D=D.map(ee=>({...ee,state:_(ee.state,RECOMPUTE_ACTION)})),L=d.length-1,e.maxAge&&d.length>e.maxAge&&Y(d.length-e.maxAge),Q=1/0}break;default:Q=1/0}return D=recomputeStates(D,Q,_,C,h,d,w,m,V),y=t(y,s),{monitorState:y,actionsById:h,nextActionId:P,stagedActionIds:d,skippedActionIds:w,committedState:C,currentStateIndex:L,computedStates:D,isLocked:z,isPaused:V}}}let StoreDevtools=(()=>{class We{constructor(m,t,e,_,T,s,y,h){const P=liftInitialState(y,h.monitor),d=liftReducerWith(y,P,s,h.monitor,h),w=(0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)(t.asObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.T)(1)),_.actions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(liftAction)),m,_.liftedActions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.Q)(rxjs__WEBPACK_IMPORTED_MODULE_18__.N)),C=e.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(d)),L=new rxjs__WEBPACK_IMPORTED_MODULE_19__.t(1),D=w.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.M)(C),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.R)(({state:j},[Q,J])=>{let ee=J(j,Q);return Q.type!==PERFORM_ACTION&&shouldFilterActions(h)&&(ee=filterLiftedState(ee,h.predicate,h.actionsSafelist,h.actionsBlocklist)),_.notify(Q,ee),{state:ee,action:Q}},{state:P,action:null})).subscribe(({state:j,action:Q})=>{L.next(j),Q.type===PERFORM_ACTION&&T.next(Q.action)}),z=_.start$.subscribe(()=>{this.refresh()}),V=L.asObservable(),Y=V.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(unliftState));this.extensionStartSubscription=z,this.stateSubscription=D,this.dispatcher=m,this.liftedState=V,this.state=Y}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 We.\u0275fac=function(m){return new(m||We)(_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))},We.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:We,factory:We.\u0275fac}),We})();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(We,q){return Boolean(We)||q.monitor!==noMonitor}function createReduxDevtoolsExtension(){const We="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&typeof window[We]<"u"?window[We]:null}function provideStoreDevtools(We={}){return(0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.MR2)([DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:We},{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}])}function createStateObservable(We){return We.state}let StoreDevtoolsModule=(()=>{class We{static instrument(m={}){return{ngModule:We,providers:[provideStoreDevtools(m)]}}}return We.\u0275fac=function(m){return new(m||We)},We.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:We}),We.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({}),We})()},9653:(We,q,m)=>{"use strict";m.d(q,{UO:()=>se,qg:()=>ie,Y6:()=>i,mK:()=>Ve,n$:()=>pe,Y$:()=>rt,FR:()=>lt,yh:()=>yt,CK:()=>oa,Aw:()=>Ea,cr:()=>Dn,wb:()=>Qe,PH:()=>z,ZF:()=>$e,Lq:()=>er,P1:()=>ft,on:()=>ta,Ky:()=>V});var t=m(4650),e=m(1135),_=m(9751),T=m(7579),s=m(233),y=m(5363),h=m(1365),P=m(5026),d=m(4004),C=m(1884);const L={};function z(Jt,pi){if(L[Jt]=(L[Jt]||0)+1,"function"==typeof pi)return j(Jt,(...ri)=>({...pi(...ri),type:Jt}));switch(pi?pi._as:"empty"){case"empty":return j(Jt,()=>({type:Jt}));case"props":return j(Jt,ri=>({...ri,type:Jt}));default:throw new Error("Unexpected config.")}}function V(){return{_as:"props",_p:void 0}}function j(Jt,pi){return Object.defineProperty(pi,"type",{value:Jt,writable:!1})}const ie="@ngrx/store/init";let se=(()=>{class Jt extends e.X{constructor(){super({type:ie})}next(Kt){if("function"==typeof Kt)throw new TypeError("\n Dispatch expected an object, instead it received a function.\n If you're using the createAction function, make sure to invoke the function\n before dispatching the action. For example, someAction should be someAction().");if(typeof Kt>"u")throw new TypeError("Actions must be objects");if(typeof Kt.type>"u")throw new TypeError("Actions must have a type property");super.next(Kt)}complete(){}ngOnDestroy(){super.complete()}}return Jt.\u0275fac=function(Kt){return new(Kt||Jt)},Jt.\u0275prov=t.Yz7({token:Jt,factory:Jt.\u0275fac}),Jt})();const ce=[se],Ce=new t.OlP("@ngrx/store Internal Root Guard"),M=new t.OlP("@ngrx/store Internal Initial State"),i=new t.OlP("@ngrx/store Initial State"),a=new t.OlP("@ngrx/store Reducer Factory"),f=new t.OlP("@ngrx/store Internal Reducer Factory Provider"),l=new t.OlP("@ngrx/store Initial Reducers"),v=new t.OlP("@ngrx/store Internal Initial Reducers"),I=new t.OlP("@ngrx/store Store Features"),k=new t.OlP("@ngrx/store Internal Store Reducers"),x=new t.OlP("@ngrx/store Internal Feature Reducers"),n=new t.OlP("@ngrx/store Internal Feature Configs"),g=new t.OlP("@ngrx/store Internal Store Features"),W=new t.OlP("@ngrx/store Internal Feature Reducers Token"),O=new t.OlP("@ngrx/store Feature Reducers"),U=new t.OlP("@ngrx/store User Provided Meta Reducers"),ge=new t.OlP("@ngrx/store Meta Reducers"),nt=new t.OlP("@ngrx/store Internal Resolved Meta Reducers"),Ue=new t.OlP("@ngrx/store User Runtime Checks Config"),at=new t.OlP("@ngrx/store Internal User Runtime Checks Config"),ye=new t.OlP("@ngrx/store Internal Runtime Checks"),xe=new t.OlP("@ngrx/store Check if Action types are unique");function oe(Jt,pi={}){const Kt=Object.keys(Jt),ri={};for(let Hi=0;HiHi(xi),Kt(pi))}}function he(Jt,pi){return Array.isArray(pi)&&pi.length>0&&(Jt=De.apply(null,[...pi,Jt])),(Kt,ri)=>{const xi=Jt(Kt);return(Hi,ln)=>xi(Hi=void 0===Hi?ri:Hi,ln)}}new t.OlP("@ngrx/store Root Store Provider"),new t.OlP("@ngrx/store Feature State Provider");class pe extends _.y{}class Ve extends se{}const Qe="@ngrx/store/update-reducers";let Pe=(()=>{class Jt extends e.X{constructor(Kt,ri,xi,Hi){super(Hi(xi,ri)),this.dispatcher=Kt,this.initialState=ri,this.reducers=xi,this.reducerFactory=Hi}get currentReducers(){return this.reducers}addFeature(Kt){this.addFeatures([Kt])}addFeatures(Kt){const ri=Kt.reduce((xi,{reducers:Hi,reducerFactory:ln,metaReducers:Gn,initialState:Hn,key:_a})=>{const Tn="function"==typeof Hi?function Me(Jt){const pi=Array.isArray(Jt)&&Jt.length>0?De(...Jt):Kt=>Kt;return(Kt,ri)=>(Kt=pi(Kt),(xi,Hi)=>Kt(xi=void 0===xi?ri:xi,Hi))}(Gn)(Hi,Hn):he(ln,Gn)(Hi,Hn);return xi[_a]=Tn,xi},{});this.addReducers(ri)}removeFeature(Kt){this.removeFeatures([Kt])}removeFeatures(Kt){this.removeReducers(Kt.map(ri=>ri.key))}addReducer(Kt,ri){this.addReducers({[Kt]:ri})}addReducers(Kt){this.reducers={...this.reducers,...Kt},this.updateReducers(Object.keys(Kt))}removeReducer(Kt){this.removeReducers([Kt])}removeReducers(Kt){Kt.forEach(ri=>{this.reducers=function Fe(Jt,pi){return Object.keys(Jt).filter(Kt=>Kt!==pi).reduce((Kt,ri)=>Object.assign(Kt,{[ri]:Jt[ri]}),{})}(this.reducers,ri)}),this.updateReducers(Kt)}updateReducers(Kt){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:Qe,features:Kt})}ngOnDestroy(){this.complete()}}return Jt.\u0275fac=function(Kt){return new(Kt||Jt)(t.LFG(Ve),t.LFG(i),t.LFG(l),t.LFG(a))},Jt.\u0275prov=t.Yz7({token:Jt,factory:Jt.\u0275fac}),Jt})();const de=[Pe,{provide:pe,useExisting:Pe},{provide:Ve,useExisting:se}];let rt=(()=>{class Jt extends T.x{ngOnDestroy(){this.complete()}}return Jt.\u0275fac=function(){let pi;return function(ri){return(pi||(pi=t.n5z(Jt)))(ri||Jt)}}(),Jt.\u0275prov=t.Yz7({token:Jt,factory:Jt.\u0275fac}),Jt})();const Ke=[rt];class lt extends _.y{}let Ut=(()=>{class Jt extends e.X{constructor(Kt,ri,xi,Hi){super(Hi);const _a=Kt.pipe((0,y.Q)(s.N)).pipe((0,h.M)(ri)).pipe((0,P.R)(ht,{state:Hi}));this.stateSubscription=_a.subscribe(({state:Tn,action:Vn})=>{this.next(Tn),xi.next(Vn)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return Jt.INIT=ie,Jt.\u0275fac=function(Kt){return new(Kt||Jt)(t.LFG(se),t.LFG(pe),t.LFG(rt),t.LFG(i))},Jt.\u0275prov=t.Yz7({token:Jt,factory:Jt.\u0275fac}),Jt})();function ht(Jt={state:void 0},[pi,Kt]){const{state:ri}=Jt;return{state:Kt(ri,pi),action:pi}}const Ge=[Ut,{provide:lt,useExisting:Ut}];let yt=(()=>{class Jt extends _.y{constructor(Kt,ri,xi){super(),this.actionsObserver=ri,this.reducerManager=xi,this.source=Kt}select(Kt,...ri){return qe.call(null,Kt,...ri)(this)}lift(Kt){const ri=new Jt(this,this.actionsObserver,this.reducerManager);return ri.operator=Kt,ri}dispatch(Kt){this.actionsObserver.next(Kt)}next(Kt){this.actionsObserver.next(Kt)}error(Kt){this.actionsObserver.error(Kt)}complete(){this.actionsObserver.complete()}addReducer(Kt,ri){this.reducerManager.addReducer(Kt,ri)}removeReducer(Kt){this.reducerManager.removeReducer(Kt)}}return Jt.\u0275fac=function(Kt){return new(Kt||Jt)(t.LFG(lt),t.LFG(se),t.LFG(Pe))},Jt.\u0275prov=t.Yz7({token:Jt,factory:Jt.\u0275fac}),Jt})();const be=[yt];function qe(Jt,pi,...Kt){return function(xi){let Hi;if("string"==typeof Jt){const ln=[pi,...Kt].filter(Boolean);Hi=xi.pipe(function w(...Jt){const pi=Jt.length;if(0===pi)throw new Error("list of properties cannot be empty.");return(0,d.U)(Kt=>{let ri=Kt;for(let xi=0;xiJt(ln,pi)))}return Hi.pipe((0,C.x)())}}const Ie="https://ngrx.io/guide/store/configuration/runtime-checks";function X(Jt){return void 0===Jt}function mt(Jt){return null===Jt}function Tt(Jt){return Array.isArray(Jt)}function xt(Jt){return"object"==typeof Jt&&null!==Jt}function ke(Jt){return"function"==typeof Jt}let Ae=!1;function Vt(Jt,pi){return Jt===pi}function ot(Jt,pi=Vt,Kt=Vt){let Hi,ri=null,xi=null;return{memoized:function _a(){if(void 0!==Hi)return Hi.result;if(!ri)return xi=Jt.apply(null,arguments),ri=arguments,xi;if(!function ii(Jt,pi,Kt){for(let ri=0;ri"function"==typeof pi)}(ri[0])&&(ri=function vt(Jt){const pi=Object.values(Jt),Kt=Object.keys(Jt);return[...pi,(...xi)=>Kt.reduce((Hi,ln,Gn)=>({...Hi,[ln]:xi[Gn]}),{})]}(ri[0]));const xi=ri.slice(0,ri.length-1),Hi=ri[ri.length-1],ln=xi.filter(Tn=>Tn.release&&"function"==typeof Tn.release),Gn=Jt(function(...Tn){return Hi.apply(null,Tn)}),Hn=ot(function(Tn,Vn){return pi.stateFn.apply(null,[Tn,xi,Vn,Gn])});return Object.assign(Hn.memoized,{release:function _a(){Hn.reset(),Gn.reset(),ln.forEach(Tn=>Tn.release())},projector:Gn.memoized,setResult:Hn.setResult,clearResult:Hn.clearResult})}}(ot)(...Jt)}function St(Jt,pi,Kt,ri){if(void 0===Kt){const Hi=pi.map(ln=>ln(Jt));return ri.memoized.apply(null,Hi)}const xi=pi.map(Hi=>Hi(Jt,Kt));return ri.memoized.apply(null,[...xi,Kt])}function $e(Jt){return ft(pi=>{const Kt=pi[Jt];return!function $t(){return Ae}()&&(0,t.X6Q)()&&!(Jt in pi)&&console.warn(`@ngrx/store: The feature name "${Jt}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${Jt}', ...) or StoreModule.forFeature('${Jt}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),Kt},pi=>pi)}function Qt(Jt){return Jt instanceof t.OlP?(0,t.f3M)(Jt):Jt}function zi(Jt,pi){return pi.map((Kt,ri)=>{if(Jt[ri]instanceof t.OlP){const xi=(0,t.f3M)(Jt[ri]);return{key:Kt.key,reducerFactory:xi.reducerFactory?xi.reducerFactory:oe,metaReducers:xi.metaReducers?xi.metaReducers:[],initialState:xi.initialState}}return Kt})}function Ni(Jt){return Jt.map(pi=>pi instanceof t.OlP?(0,t.f3M)(pi):pi)}function Mi(Jt){return"function"==typeof Jt?Jt():Jt}function Gi(Jt,pi){return Jt.concat(pi)}function Xe(){if((0,t.f3M)(yt,{optional:!0,skipSelf:!0}))throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function Se(Jt){Object.freeze(Jt);const pi=ke(Jt);return Object.getOwnPropertyNames(Jt).forEach(Kt=>{if(!Kt.startsWith("\u0275")&&function ue(Jt,pi){return Object.prototype.hasOwnProperty.call(Jt,pi)}(Jt,Kt)&&(!pi||"caller"!==Kt&&"callee"!==Kt&&"arguments"!==Kt)){const ri=Jt[Kt];(xt(ri)||ke(ri))&&!Object.isFrozen(ri)&&Se(ri)}}),Jt}function Zt(Jt,pi=[]){return(X(Jt)||mt(Jt))&&0===pi.length?{path:["root"],value:Jt}:Object.keys(Jt).reduce((ri,xi)=>{if(ri)return ri;const Hi=Jt[xi];return function $(Jt){return ke(Jt)&&Jt.hasOwnProperty("\u0275cmp")}(Hi)?ri:!(X(Hi)||mt(Hi)||function zt(Jt){return"number"==typeof Jt}(Hi)||function je(Jt){return"boolean"==typeof Jt}(Hi)||function it(Jt){return"string"==typeof Jt}(Hi)||Tt(Hi))&&(function Gt(Jt){if(!function Nt(Jt){return xt(Jt)&&!Tt(Jt)}(Jt))return!1;const pi=Object.getPrototypeOf(Jt);return pi===Object.prototype||null===pi}(Hi)?Zt(Hi,[...pi,xi]):{path:[...pi,xi],value:Hi})},!1)}function si(Jt,pi){if(!1===Jt)return;const Kt=Jt.path.join("."),ri=new Error(`Detected unserializable ${pi} at "${Kt}". ${Ie}#strict${pi}serializability`);throw ri.value=Jt.value,ri.unserializablePath=Kt,ri}function Oi(Jt){return(0,t.X6Q)()?{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1,...Jt}:{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function Qi({strictActionSerializability:Jt,strictStateSerializability:pi}){return Kt=>Jt||pi?function wt(Jt,pi){return function(Kt,ri){pi.action(ri)&&si(Zt(ri),"action");const xi=Jt(Kt,ri);return pi.state()&&si(Zt(xi),"state"),xi}}(Kt,{action:ri=>Jt&&!Yi(ri),state:()=>pi}):Kt}function en({strictActionImmutability:Jt,strictStateImmutability:pi}){return Kt=>Jt||pi?function It(Jt,pi){return function(Kt,ri){const xi=pi.action(ri)?Se(ri):ri,Hi=Jt(Kt,xi);return pi.state()?Se(Hi):Hi}}(Kt,{action:ri=>Jt&&!Yi(ri),state:()=>pi}):Kt}function Yi(Jt){return Jt.type.startsWith("@ngrx")}function Yt({strictActionWithinNgZone:Jt}){return pi=>Jt?function Ai(Jt,pi){return function(Kt,ri){if(pi.action(ri)&&!t.R0b.isInAngularZone())throw new Error(`Action '${ri.type}' running outside NgZone. ${Ie}#strictactionwithinngzone`);return Jt(Kt,ri)}}(pi,{action:Kt=>Jt&&!Yi(Kt)}):pi}function qt(Jt){return[{provide:at,useValue:Jt},{provide:Ue,useFactory:dt,deps:[at]},{provide:ye,deps:[Ue],useFactory:Oi},{provide:ge,multi:!0,deps:[ye],useFactory:en},{provide:ge,multi:!0,deps:[ye],useFactory:Qi},{provide:ge,multi:!0,deps:[ye],useFactory:Yt}]}function _e(){return[{provide:xe,multi:!0,deps:[ye],useFactory:Dt}]}function dt(Jt){return Jt}function Dt(Jt){if(!Jt.strictActionTypeUniqueness)return;const pi=Object.entries(L).filter(([,Kt])=>Kt>1).map(([Kt])=>Kt);if(pi.length)throw new Error(`Action types are registered more than once, ${pi.map(Kt=>`"${Kt}"`).join(", ")}. ${Ie}#strictactiontypeuniqueness`)}function Ot(Jt={},pi={}){return[{provide:Ce,useFactory:Xe},{provide:M,useValue:pi.initialState},{provide:i,useFactory:Mi,deps:[M]},{provide:v,useValue:Jt},{provide:k,useExisting:Jt instanceof t.OlP?Jt:v},{provide:l,deps:[v,[new t.tBr(k)]],useFactory:Qt},{provide:U,useValue:pi.metaReducers?pi.metaReducers:[]},{provide:nt,deps:[ge,U],useFactory:Gi},{provide:f,useValue:pi.reducerFactory?pi.reducerFactory:oe},{provide:a,deps:[f,nt],useFactory:he},ce,de,Ke,Ge,be,qt(pi.runtimeChecks),_e()]}function Un(Jt,pi,Kt={}){return[{provide:n,multi:!0,useValue:Jt instanceof Object?{}:Kt},{provide:I,multi:!0,useValue:{key:Jt instanceof Object?Jt.name:Jt,reducerFactory:Kt instanceof t.OlP||!Kt.reducerFactory?oe:Kt.reducerFactory,metaReducers:Kt instanceof t.OlP||!Kt.metaReducers?[]:Kt.metaReducers,initialState:Kt instanceof t.OlP||!Kt.initialState?void 0:Kt.initialState}},{provide:g,deps:[n,I],useFactory:zi},{provide:x,multi:!0,useValue:Jt instanceof Object?Jt.reducer:pi},{provide:W,multi:!0,useExisting:pi instanceof t.OlP?pi:x},{provide:O,multi:!0,deps:[x,[new t.tBr(W)]],useFactory:Ni},_e()]}let Dn=(()=>{class Jt{constructor(Kt,ri,xi,Hi,ln,Gn){}}return Jt.\u0275fac=function(Kt){return new(Kt||Jt)(t.LFG(se),t.LFG(pe),t.LFG(rt),t.LFG(yt),t.LFG(Ce,8),t.LFG(xe,8))},Jt.\u0275mod=t.oAB({type:Jt}),Jt.\u0275inj=t.cJS({}),Jt})(),oa=(()=>{class Jt{constructor(Kt,ri,xi,Hi,ln){this.features=Kt,this.featureReducers=ri,this.reducerManager=xi;const Gn=Kt.map((Hn,_a)=>{const Vn=ri.shift()[_a];return{...Hn,reducers:Vn,initialState:Mi(Hn.initialState)}});xi.addFeatures(Gn)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return Jt.\u0275fac=function(Kt){return new(Kt||Jt)(t.LFG(g),t.LFG(O),t.LFG(Pe),t.LFG(Dn),t.LFG(xe,8))},Jt.\u0275mod=t.oAB({type:Jt}),Jt.\u0275inj=t.cJS({}),Jt})(),Ea=(()=>{class Jt{static forRoot(Kt,ri){return{ngModule:Dn,providers:[...Ot(Kt,ri)]}}static forFeature(Kt,ri,xi={}){return{ngModule:oa,providers:[...Un(Kt,ri,xi)]}}}return Jt.\u0275fac=function(Kt){return new(Kt||Jt)},Jt.\u0275mod=t.oAB({type:Jt}),Jt.\u0275inj=t.cJS({}),Jt})();function ta(...Jt){return{reducer:Jt.pop(),types:Jt.map(ri=>ri.type)}}function er(Jt,...pi){const Kt=new Map;for(const ri of pi)for(const xi of ri.types){const Hi=Kt.get(xi);Kt.set(xi,Hi?(Gn,Hn)=>ri.reducer(Hi(Gn,Hn),Hn):ri.reducer)}return function(ri=Jt,xi){const Hi=Kt.get(xi.type);return Hi?Hi(ri,xi):ri}}},3803:(We,q,m)=>{"use strict";m.d(q,{H5:()=>J4,K$:()=>c3,a4:()=>um});var t=m(4650),e=m(6895),_=m(7582),T=m(4080),s=m(4968),y=m(8372),h=m(7340);function P(){}function d(u){return null==u?P:function(){return this.querySelector(u)}}function L(){return[]}function D(u){return null==u?L:function(){return this.querySelectorAll(u)}}function Y(u){return function(){return this.matches(u)}}function j(u){return function(A){return A.matches(u)}}var Q=Array.prototype.find;function ee(){return this.firstElementChild}var re=Array.prototype.filter;function ie(){return Array.from(this.children)}function M(u){return new Array(u.length)}function a(u,A){this.ownerDocument=u.ownerDocument,this.namespaceURI=u.namespaceURI,this._next=null,this._parent=u,this.__data__=A}function l(u,A,r,b,B,K){for(var st,Te=0,jt=A.length,Wt=K.length;TeA?1:u>=A?0:NaN}a.prototype={constructor:a,appendChild:function(u){return this._parent.insertBefore(u,this._next)},insertBefore:function(u,A){return this._parent.insertBefore(u,A)},querySelector:function(u){return this._parent.querySelector(u)},querySelectorAll:function(u){return this._parent.querySelectorAll(u)}};var Oe="http://www.w3.org/1999/xhtml";const oe={svg:"http://www.w3.org/2000/svg",xhtml:Oe,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Fe(u){var A=u+="",r=A.indexOf(":");return r>=0&&"xmlns"!==(A=u.slice(0,r))&&(u=u.slice(r+1)),oe.hasOwnProperty(A)?{space:oe[A],local:u}:u}function De(u){return function(){this.removeAttribute(u)}}function he(u){return function(){this.removeAttributeNS(u.space,u.local)}}function Me(u,A){return function(){this.setAttribute(u,A)}}function pe(u,A){return function(){this.setAttributeNS(u.space,u.local,A)}}function Ve(u,A){return function(){var r=A.apply(this,arguments);null==r?this.removeAttribute(u):this.setAttribute(u,r)}}function Qe(u,A){return function(){var r=A.apply(this,arguments);null==r?this.removeAttributeNS(u.space,u.local):this.setAttributeNS(u.space,u.local,r)}}function de(u){return u.ownerDocument&&u.ownerDocument.defaultView||u.document&&u||u.defaultView}function rt(u){return function(){this.style.removeProperty(u)}}function Ke(u,A,r){return function(){this.style.setProperty(u,A,r)}}function lt(u,A,r){return function(){var b=A.apply(this,arguments);null==b?this.style.removeProperty(u):this.style.setProperty(u,b,r)}}function ht(u,A){return u.style.getPropertyValue(A)||de(u).getComputedStyle(u,null).getPropertyValue(A)}function Ge(u){return function(){delete this[u]}}function yt(u,A){return function(){this[u]=A}}function be(u,A){return function(){var r=A.apply(this,arguments);null==r?delete this[u]:this[u]=r}}function Ie(u){return u.trim().split(/^|\s+/)}function X(u){return u.classList||new mt(u)}function mt(u){this._node=u,this._names=Ie(u.getAttribute("class")||"")}function Tt(u,A){for(var r=X(u),b=-1,B=A.length;++b=0&&(this._names.splice(A,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(u){return this._names.indexOf(u)>=0}};var en=[null];function Yi(u,A){this._groups=u,this._parents=A}function Yt(){return new Yi([[document.documentElement]],en)}Yi.prototype=Yt.prototype={constructor:Yi,select:function w(u){"function"!=typeof u&&(u=d(u));for(var A=this._groups,r=A.length,b=new Array(r),B=0;B=dn&&(dn=Sn+1);!(Rn=Li[dn])&&++dn=0;)(Te=b[B])&&(K&&4^Te.compareDocumentPosition(K)&&K.parentNode.insertBefore(Te,K),K=Te);return this},sort:function U(u){function A(fi,_i){return fi&&_i?u(fi.__data__,_i.__data__):!fi-!_i}u||(u=ge);for(var r=this._groups,b=r.length,B=new Array(b),K=0;K1?this.each((null==A?rt:"function"==typeof A?lt:Ke)(u,A,r??"")):ht(this.node(),u)},property:function qe(u,A){return arguments.length>1?this.each((null==A?Ge:"function"==typeof A?be:yt)(u,A)):this.node()[u]},classed:function Nt(u,A){var r=Ie(u+"");if(arguments.length<2){for(var b=X(this.node()),B=-1,K=r.length;++B=0&&(r=A.slice(b+1),A=A.slice(0,b)),{type:A,name:r}})}(u+""),K=b.length;if(!(arguments.length<2)){for(st=A?Se:It,B=0;B{}};function Bt(){for(var b,u=0,A=arguments.length,r={};u=0&&(b=r.slice(B+1),r=r.slice(0,B)),r&&!A.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:b}})}(u+"",r),K=-1,Te=b.length;if(!(arguments.length<2)){if(null!=A&&"function"!=typeof A)throw new Error("invalid callback: "+A);for(;++K0)for(var B,K,r=new Array(B),b=0;b>8&15|A>>4&240,A>>4&15|240&A,(15&A)<<4|15&A,1):8===r?Rr(A>>24&255,A>>16&255,A>>8&255,(255&A)/255):4===r?Rr(A>>12&15|A>>8&240,A>>8&15|A>>4&240,A>>4&15|240&A,((15&A)<<4|15&A)/255):null):(A=Hn.exec(u))?new Ia(A[1],A[2],A[3],1):(A=_a.exec(u))?new Ia(255*A[1]/100,255*A[2]/100,255*A[3]/100,1):(A=Tn.exec(u))?Rr(A[1],A[2],A[3],A[4]):(A=Vn.exec(u))?Rr(255*A[1]/100,255*A[2]/100,255*A[3]/100,A[4]):(A=xo.exec(u))?ao(A[1],A[2]/100,A[3]/100,1):(A=zn.exec(u))?ao(A[1],A[2]/100,A[3]/100,A[4]):ia.hasOwnProperty(u)?Do(ia[u]):"transparent"===u?new Ia(NaN,NaN,NaN,0):null}function Do(u){return new Ia(u>>16&255,u>>8&255,255&u,1)}function Rr(u,A,r,b){return b<=0&&(u=A=r=NaN),new Ia(u,A,r,b)}function Yr(u,A,r,b){return 1===arguments.length?function Nr(u){return u instanceof pi||(u=Ta(u)),u?new Ia((u=u.rgb()).r,u.g,u.b,u.opacity):new Ia}(u):new Ia(u,A,r,b??1)}function Ia(u,A,r,b){this.r=+u,this.g=+A,this.b=+r,this.opacity=+b}function wa(){return`#${or(this.r)}${or(this.g)}${or(this.b)}`}function no(){const u=jr(this.opacity);return`${1===u?"rgb(":"rgba("}${pr(this.r)}, ${pr(this.g)}, ${pr(this.b)}${1===u?")":`, ${u})`}`}function jr(u){return isNaN(u)?1:Math.max(0,Math.min(1,u))}function pr(u){return Math.max(0,Math.min(255,Math.round(u)||0))}function or(u){return((u=pr(u))<16?"0":"")+u.toString(16)}function ao(u,A,r,b){return b<=0?u=A=r=NaN:r<=0||r>=1?u=A=NaN:A<=0&&(u=NaN),new Aa(u,A,r,b)}function ro(u){if(u instanceof Aa)return new Aa(u.h,u.s,u.l,u.opacity);if(u instanceof pi||(u=Ta(u)),!u)return new Aa;if(u instanceof Aa)return u;var A=(u=u.rgb()).r/255,r=u.g/255,b=u.b/255,B=Math.min(A,r,b),K=Math.max(A,r,b),Te=NaN,st=K-B,jt=(K+B)/2;return st?(Te=A===K?(r-b)/st+6*(r0&&jt<1?0:Te,new Aa(Te,st,jt,u.opacity)}function Aa(u,A,r,b){this.h=+u,this.s=+A,this.l=+r,this.opacity=+b}function Kr(u){return(u=(u||0)%360)<0?u+360:u}function Fr(u){return Math.max(0,Math.min(1,u||0))}function Wa(u,A,r){return 255*(u<60?A+(r-A)*u/60:u<180?r:u<240?A+(r-A)*(240-u)/60:A)}function Hr(u,A,r,b,B){var K=u*u,Te=K*u;return((1-3*u+3*K-Te)*A+(4-6*K+3*Te)*r+(1+3*u+3*K-3*Te)*b+Te*B)/6}er(pi,Ta,{copy(u){return Object.assign(new this.constructor,this,u)},displayable(){return this.rgb().displayable()},hex:Co,formatHex:Co,formatHex8:function Pr(){return this.rgb().formatHex8()},formatHsl:function xr(){return ro(this).formatHsl()},formatRgb:jn,toString:jn}),er(Ia,Yr,Jt(pi,{brighter(u){return u=null==u?ri:Math.pow(ri,u),new Ia(this.r*u,this.g*u,this.b*u,this.opacity)},darker(u){return u=null==u?.7:Math.pow(.7,u),new Ia(this.r*u,this.g*u,this.b*u,this.opacity)},rgb(){return this},clamp(){return new Ia(pr(this.r),pr(this.g),pr(this.b),jr(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:wa,formatHex:wa,formatHex8:function Io(){return`#${or(this.r)}${or(this.g)}${or(this.b)}${or(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:no,toString:no})),er(Aa,function ko(u,A,r,b){return 1===arguments.length?ro(u):new Aa(u,A,r,b??1)},Jt(pi,{brighter(u){return u=null==u?ri:Math.pow(ri,u),new Aa(this.h,this.s,this.l*u,this.opacity)},darker(u){return u=null==u?.7:Math.pow(.7,u),new Aa(this.h,this.s,this.l*u,this.opacity)},rgb(){var u=this.h%360+360*(this.h<0),A=isNaN(u)||isNaN(this.s)?0:this.s,r=this.l,b=r+(r<.5?r:1-r)*A,B=2*r-b;return new Ia(Wa(u>=240?u-240:u+120,B,b),Wa(u,B,b),Wa(u<120?u+240:u-120,B,b),this.opacity)},clamp(){return new Aa(Kr(this.h),Fr(this.s),Fr(this.l),jr(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const u=jr(this.opacity);return`${1===u?"hsl(":"hsla("}${Kr(this.h)}, ${100*Fr(this.s)}%, ${100*Fr(this.l)}%${1===u?")":`, ${u})`}`}}));const sr=u=>()=>u;function Qr(u,A){var r=A-u;return r?function gr(u,A){return function(r){return u+r*A}}(u,r):sr(isNaN(u)?A:u)}const qr=function u(A){var r=function oo(u){return 1==(u=+u)?Qr:function(A,r){return r-A?function Cr(u,A,r){return u=Math.pow(u,r),A=Math.pow(A,r)-u,r=1/r,function(b){return Math.pow(u+b*A,r)}}(A,r,u):sr(isNaN(A)?r:A)}}(A);function b(B,K){var Te=r((B=Yr(B)).r,(K=Yr(K)).r),st=r(B.g,K.g),jt=r(B.b,K.b),Wt=Qr(B.opacity,K.opacity);return function(ci){return B.r=Te(ci),B.g=st(ci),B.b=jt(ci),B.opacity=Wt(ci),B+""}}return b.gamma=u,b}(1);function cr(u){return function(A){var Te,st,r=A.length,b=new Array(r),B=new Array(r),K=new Array(r);for(Te=0;Te=1?(r=1,A-1):Math.floor(r*A),B=u[b],K=u[b+1];return Hr((r-b/A)*A,b>0?u[b-1]:2*B-K,B,K,br&&(K=A.slice(r,K),st[Te]?st[Te]+=K:st[++Te]=K),(b=b[0])===(B=B[0])?st[Te]?st[Te]+=B:st[++Te]=B:(st[++Te]=null,jt.push({i:Te,x:On(b,B)})),r=ya.lastIndex;return r=0&&u._call.call(void 0,A),u=u._next;--ca}()}finally{ca=0,function Sr(){for(var u,r,A=ct,b=1/0;A;)A._call?(b>A._time&&(b=A._time),u=A,A=A._next):(r=A._next,A._next=null,A=u?u._next=r:ct=r);et=u,Xo(b)}(),kt=0}}function Uo(){var u=on.now(),A=u-Ze;A>Za&&(wi-=A,Ze=u)}function Xo(u){ca||(Wi&&(Wi=clearTimeout(Wi)),u-kt>24?(u<1/0&&(Wi=setTimeout(ds,u-on.now()-wi)),_n&&(_n=clearInterval(_n))):(_n||(Ze=on.now(),_n=setInterval(Uo,Za)),ca=1,va(ds)))}function Ds(u,A,r){var b=new so;return b.restart(B=>{b.stop(),u(B+A)},A=null==A?0:+A,r),b}so.prototype=Ws.prototype={constructor:so,restart:function(u,A,r){if("function"!=typeof u)throw new TypeError("callback is not a function");r=(null==r?Ei():+r)+(null==A?0:+A),!this._next&&et!==this&&(et?et._next=this:ct=this,et=this),this._call=u,this._time=r,Xo()},stop:function(){this._call&&(this._call=null,this._time=1/0,Xo())}};var Pc=gi("start","end","cancel","interrupt"),Zs=[],$o=0,qn=1,ki=2,Ua=3,co=4,Fi=5,No=6;function Mo(u,A,r,b,B,K){var Te=u.__transition;if(Te){if(r in Te)return}else u.__transition={};!function Go(u,A,r){var B,b=u.__transition;function Te(Wt){var ci,fi,_i,Ti;if(r.state!==qn)return jt();for(ci in b)if((Ti=b[ci]).name===r.name){if(Ti.state===Ua)return Ds(Te);Ti.state===co?(Ti.state=No,Ti.timer.stop(),Ti.on.call("interrupt",u,u.__data__,Ti.index,Ti.group),delete b[ci]):+ci$o)throw new Error("too late; already scheduled");return r}function Er(u,A){var r=dr(u,A);if(r.state>Ua)throw new Error("too late; already running");return r}function dr(u,A){var r=u.__transition;if(!r||!(r=r[A]))throw new Error("transition not found");return r}var ks,Ys=180/Math.PI,Fo={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Is(u,A,r,b,B,K){var Te,st,jt;return(Te=Math.sqrt(u*u+A*A))&&(u/=Te,A/=Te),(jt=u*r+A*b)&&(r-=u*jt,b-=A*jt),(st=Math.sqrt(r*r+b*b))&&(r/=st,b/=st,jt/=st),u*b180?ci+=360:ci-Wt>180&&(Wt+=360),_i.push({i:fi.push(B(fi)+"rotate(",null,b)-2,x:On(Wt,ci)})):ci&&fi.push(B(fi)+"rotate("+ci+b)}(Wt.rotate,ci.rotate,fi,_i),function st(Wt,ci,fi,_i){Wt!==ci?_i.push({i:fi.push(B(fi)+"skewX(",null,b)-2,x:On(Wt,ci)}):ci&&fi.push(B(fi)+"skewX("+ci+b)}(Wt.skewX,ci.skewX,fi,_i),function jt(Wt,ci,fi,_i,Ti,Ji){if(Wt!==fi||ci!==_i){var vn=Ti.push(B(Ti)+"scale(",null,",",null,")");Ji.push({i:vn-4,x:On(Wt,fi)},{i:vn-2,x:On(ci,_i)})}else(1!==fi||1!==_i)&&Ti.push(B(Ti)+"scale("+fi+","+_i+")")}(Wt.scaleX,Wt.scaleY,ci.scaleX,ci.scaleY,fi,_i),Wt=ci=null,function(Ti){for(var Li,Ji=-1,vn=_i.length;++Ji=0&&(A=A.slice(0,r)),!A||"start"===A})}(A)?lc:Er;return function(){var Te=K(this,u),st=Te.on;st!==b&&(B=(b=st).copy()).on(A,r),Te.on=B}}(r,u,A))},attr:function ji(u,A){var r=Fe(u),b="transform"===r?us:fs;return this.attrTween(u,"function"==typeof A?(r.local?La:xa)(r,b,la(this,"attr."+u,A)):null==A?(r.local?hc:Rc)(r):(r.local?Xi:Wn)(r,b,A))},attrTween:function Ee(u,A){var r="attr."+u;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==A)return this.tween(r,null);if("function"!=typeof A)throw new Error;var b=Fe(u);return this.tween(r,(b.local?ne:te)(b,A))},style:function Nc(u,A,r){var b="transform"==(u+="")?es:fs;return null==A?this.styleTween(u,function ho(u,A){var r,b,B;return function(){var K=ht(this,u),Te=(this.style.removeProperty(u),ht(this,u));return K===Te?null:K===r&&Te===b?B:B=A(r=K,b=Te)}}(u,b)).on("end.style."+u,zr(u)):"function"==typeof A?this.styleTween(u,function Wo(u,A,r){var b,B,K;return function(){var Te=ht(this,u),st=r(this),jt=st+"";return null==st&&(this.style.removeProperty(u),jt=st=ht(this,u)),Te===jt?null:Te===b&&jt===B?K:(B=jt,K=A(b=Te,st))}}(u,b,la(this,"style."+u,A))).each(function Ul(u,A){var r,b,B,st,K="style."+A,Te="end."+K;return function(){var jt=Er(this,u),Wt=jt.on,ci=null==jt.value[K]?st||(st=zr(A)):void 0;(Wt!==r||B!==ci)&&(b=(r=Wt).copy()).on(Te,B=ci),jt.on=b}}(this._id,u)):this.styleTween(u,function ol(u,A,r){var b,K,B=r+"";return function(){var Te=ht(this,u);return Te===B?null:Te===b?K:K=A(b=Te,r)}}(u,b,A),r).on("end.style."+u,null)},styleTween:function Os(u,A,r){var b="style."+(u+="");if(arguments.length<2)return(b=this.tween(b))&&b._value;if(null==A)return this.tween(b,null);if("function"!=typeof A)throw new Error;return this.tween(b,function Gl(u,A,r){var b,B;function K(){var Te=A.apply(this,arguments);return Te!==B&&(b=(B=Te)&&function Ar(u,A,r){return function(b){this.style.setProperty(u,A.call(this,b),r)}}(u,Te,r)),b}return K._value=A,K}(u,A,r??""))},text:function cl(u){return this.tween("text","function"==typeof u?function sl(u){return function(){var A=u(this);this.textContent=A??""}}(la(this,"text",u)):function Fc(u){return function(){this.textContent=u}}(null==u?"":u+""))},textTween:function Wl(u){var A="text";if(arguments.length<1)return(A=this.tween(A))&&A._value;if(null==u)return this.tween(A,null);if("function"!=typeof u)throw new Error;return this.tween(A,function z1(u){var A,r;function b(){var B=u.apply(this,arguments);return B!==r&&(A=(r=B)&&function H1(u){return function(A){this.textContent=u.call(this,A)}}(B)),A}return b._value=u,b}(u))},remove:function ra(){return this.on("end.remove",function ua(u){return function(){var A=this.parentNode;for(var r in this.__transition)if(+r!==u)return;A&&A.removeChild(this)}}(this._id))},tween:function Ho(u,A){var r=this._id;if(u+="",arguments.length<2){for(var Te,b=dr(this.node(),r).tween,B=0,K=b.length;Bki&&b.stateA?1:u>=A?0:NaN}function rn(u,A){return null==u||null==A?NaN:Au?1:A>=u?0:NaN}function an(u){let A,r,b;function B(st,jt,Wt=0,ci=st.length){if(Wt>>1;r(st[fi],jt)<0?Wt=fi+1:ci=fi}while(WtDi(u(st),jt),b=(st,jt)=>u(st)-jt):(A=u===Di||u===rn?u:fa,r=u,b=u),{left:B,center:function Te(st,jt,Wt=0,ci=st.length){const fi=B(st,jt,Wt,ci-1);return fi>Wt&&b(st[fi-1],jt)>-b(st[fi],jt)?fi-1:fi},right:function K(st,jt,Wt=0,ci=st.length){if(Wt>>1;r(st[fi],jt)<=0?Wt=fi+1:ci=fi}while(Wt=ar?10:K>=ps?5:K>=is?2:1;let st,jt,Wt;return B<0?(Wt=Math.pow(10,-B)/Te,st=Math.round(u*Wt),jt=Math.round(A*Wt),st/WtA&&--jt,Wt=-Wt):(Wt=Math.pow(10,B)*Te,st=Math.round(u/Wt),jt=Math.round(A/Wt),st*WtA&&--jt),jt(u(K=new Date(+K)),K),B.ceil=K=>(u(K=new Date(K-1)),A(K,1),u(K),K),B.round=K=>{const Te=B(K),st=B.ceil(K);return K-Te(A(K=new Date(+K),null==Te?1:Math.floor(Te)),K),B.range=(K,Te,st)=>{const jt=[];if(K=B.ceil(K),st=null==st?1:Math.floor(st),!(K0))return jt;let Wt;do{jt.push(Wt=new Date(+K)),A(K,st),u(K)}while(WtKa(Te=>{if(Te>=Te)for(;u(Te),!K(Te);)Te.setTime(Te-1)},(Te,st)=>{if(Te>=Te)if(st<0)for(;++st<=0;)for(;A(Te,-1),!K(Te););else for(;--st>=0;)for(;A(Te,1),!K(Te););}),r&&(B.count=(K,Te)=>(Yl.setTime(+K),mc.setTime(+Te),u(Yl),u(mc),Math.floor(r(Yl,mc))),B.every=K=>(K=Math.floor(K),isFinite(K)&&K>0?K>1?B.filter(b?Te=>b(Te)%K==0:Te=>B.count(0,Te)%K==0):B:null)),B}const ml=Ka(()=>{},(u,A)=>{u.setTime(+u+A)},(u,A)=>A-u);ml.every=u=>(u=Math.floor(u),isFinite(u)&&u>0?u>1?Ka(A=>{A.setTime(Math.floor(A/u)*u)},(A,r)=>{A.setTime(+A+r*u)},(A,r)=>(r-A)/u):ml:null);const Wc=Ka(u=>{u.setTime(u-u.getMilliseconds())},(u,A)=>{u.setTime(+u+A*Eo)},(u,A)=>(A-u)/Eo,u=>u.getUTCSeconds()),pc=Ka(u=>{u.setTime(u-u.getMilliseconds()-u.getSeconds()*Eo)},(u,A)=>{u.setTime(+u+A*ur)},(u,A)=>(A-u)/ur,u=>u.getMinutes()),D0=Ka(u=>{u.setUTCSeconds(0,0)},(u,A)=>{u.setTime(+u+A*ur)},(u,A)=>(A-u)/ur,u=>u.getUTCMinutes()),Z1=Ka(u=>{u.setTime(u-u.getMilliseconds()-u.getSeconds()*Eo-u.getMinutes()*ur)},(u,A)=>{u.setTime(+u+A*To)},(u,A)=>(A-u)/To,u=>u.getHours()),l2=Ka(u=>{u.setUTCMinutes(0,0,0)},(u,A)=>{u.setTime(+u+A*To)},(u,A)=>(A-u)/To,u=>u.getUTCHours()),Y1=Ka(u=>u.setHours(0,0,0,0),(u,A)=>u.setDate(u.getDate()+A),(u,A)=>(A-u-(A.getTimezoneOffset()-u.getTimezoneOffset())*ur)/$r,u=>u.getDate()-1),K1=(Ka(u=>{u.setUTCHours(0,0,0,0)},(u,A)=>{u.setUTCDate(u.getUTCDate()+A)},(u,A)=>(A-u)/$r,u=>u.getUTCDate()-1),Ka(u=>{u.setUTCHours(0,0,0,0)},(u,A)=>{u.setUTCDate(u.getUTCDate()+A)},(u,A)=>(A-u)/$r,u=>Math.floor(u/$r)));function Qs(u){return Ka(A=>{A.setDate(A.getDate()-(A.getDay()+7-u)%7),A.setHours(0,0,0,0)},(A,r)=>{A.setDate(A.getDate()+7*r)},(A,r)=>(r-A-(r.getTimezoneOffset()-A.getTimezoneOffset())*ur)/fl)}const d2=Qs(0);function Zn(u){return Ka(A=>{A.setUTCDate(A.getUTCDate()-(A.getUTCDay()+7-u)%7),A.setUTCHours(0,0,0,0)},(A,r)=>{A.setUTCDate(A.getUTCDate()+7*r)},(A,r)=>(r-A)/fl)}Qs(1),Qs(2),Qs(3),Qs(4),Qs(5),Qs(6);const gl=Zn(0),$1=(Zn(1),Zn(2),Zn(3),Zn(4),Zn(5),Zn(6),Ka(u=>{u.setDate(1),u.setHours(0,0,0,0)},(u,A)=>{u.setMonth(u.getMonth()+A)},(u,A)=>A.getMonth()-u.getMonth()+12*(A.getFullYear()-u.getFullYear()),u=>u.getMonth())),jl=Ka(u=>{u.setUTCDate(1),u.setUTCHours(0,0,0,0)},(u,A)=>{u.setUTCMonth(u.getUTCMonth()+A)},(u,A)=>A.getUTCMonth()-u.getUTCMonth()+12*(A.getUTCFullYear()-u.getUTCFullYear()),u=>u.getUTCMonth()),qs=Ka(u=>{u.setMonth(0,1),u.setHours(0,0,0,0)},(u,A)=>{u.setFullYear(u.getFullYear()+A)},(u,A)=>A.getFullYear()-u.getFullYear(),u=>u.getFullYear());qs.every=u=>isFinite(u=Math.floor(u))&&u>0?Ka(A=>{A.setFullYear(Math.floor(A.getFullYear()/u)*u),A.setMonth(0,1),A.setHours(0,0,0,0)},(A,r)=>{A.setFullYear(A.getFullYear()+r*u)}):null;const Js=Ka(u=>{u.setUTCMonth(0,1),u.setUTCHours(0,0,0,0)},(u,A)=>{u.setUTCFullYear(u.getUTCFullYear()+A)},(u,A)=>A.getUTCFullYear()-u.getUTCFullYear(),u=>u.getUTCFullYear());function ed(u,A,r,b,B,K){const Te=[[Wc,1,Eo],[Wc,5,5*Eo],[Wc,15,15*Eo],[Wc,30,30*Eo],[K,1,ur],[K,5,5*ur],[K,15,15*ur],[K,30,30*ur],[B,1,To],[B,3,3*To],[B,6,6*To],[B,12,12*To],[b,1,$r],[b,2,2*$r],[r,1,fl],[A,1,Ns],[A,3,3*Ns],[u,1,W1]];function jt(Wt,ci,fi){const _i=Math.abs(ci-Wt)/fi,Ti=an(([,,Li])=>Li).right(Te,_i);if(Ti===Te.length)return u.every(gs(Wt/W1,ci/W1,fi));if(0===Ti)return ml.every(Math.max(gs(Wt,ci,fi),1));const[Ji,vn]=Te[_i/Te[Ti-1][2]isFinite(u=Math.floor(u))&&u>0?Ka(A=>{A.setUTCFullYear(Math.floor(A.getUTCFullYear()/u)*u),A.setUTCMonth(0,1),A.setUTCHours(0,0,0,0)},(A,r)=>{A.setUTCFullYear(A.getUTCFullYear()+r*u)}):null;const[Iu,p2]=ed(Js,jl,gl,K1,l2,D0),[G0,g2]=ed(qs,$1,d2,Y1,Z1,pc);var Kl=new Date,Ql=new Date;function Fs(u,A,r,b){function B(K){return u(K=0===arguments.length?new Date:new Date(+K)),K}return B.floor=function(K){return u(K=new Date(+K)),K},B.ceil=function(K){return u(K=new Date(K-1)),A(K,1),u(K),K},B.round=function(K){var Te=B(K),st=B.ceil(K);return K-Te0))return jt;do{jt.push(Wt=new Date(+K)),A(K,st),u(K)}while(Wt=Te)for(;u(Te),!K(Te);)Te.setTime(Te-1)},function(Te,st){if(Te>=Te)if(st<0)for(;++st<=0;)for(;A(Te,-1),!K(Te););else for(;--st>=0;)for(;A(Te,1),!K(Te););})},r&&(B.count=function(K,Te){return Kl.setTime(+K),Ql.setTime(+Te),u(Kl),u(Ql),Math.floor(r(Kl,Ql))},B.every=function(K){return K=Math.floor(K),isFinite(K)&&K>0?K>1?B.filter(b?function(Te){return b(Te)%K==0}:function(Te){return B.count(0,Te)%K==0}):B:null}),B}const _l=6e4,vl=60*_l*24,gc=7*vl;function Hs(u){return Fs(function(A){A.setUTCDate(A.getUTCDate()-(A.getUTCDay()+7-u)%7),A.setUTCHours(0,0,0,0)},function(A,r){A.setUTCDate(A.getUTCDate()+7*r)},function(A,r){return(r-A)/gc})}var ql=Hs(0),jc=Hs(1),vs=(Hs(2),Hs(3),Hs(4));const _c=(Hs(5),Hs(6),Fs(function(u){u.setUTCHours(0,0,0,0)},function(u,A){u.setUTCDate(u.getUTCDate()+A)},function(u,A){return(A-u)/vl},function(u){return u.getUTCDate()-1}));function vc(u){return Fs(function(A){A.setDate(A.getDate()-(A.getDay()+7-u)%7),A.setHours(0,0,0,0)},function(A,r){A.setDate(A.getDate()+7*r)},function(A,r){return(r-A-(r.getTimezoneOffset()-A.getTimezoneOffset())*_l)/gc})}var id=vc(0),bl=vc(1),Xs=(vc(2),vc(3),vc(4));const yl=(vc(5),vc(6),Fs(u=>u.setHours(0,0,0,0),(u,A)=>u.setDate(u.getDate()+A),(u,A)=>(A-u-(A.getTimezoneOffset()-u.getTimezoneOffset())*_l)/vl,u=>u.getDate()-1));var t1=Fs(function(u){u.setMonth(0,1),u.setHours(0,0,0,0)},function(u,A){u.setFullYear(u.getFullYear()+A)},function(u,A){return A.getFullYear()-u.getFullYear()},function(u){return u.getFullYear()});t1.every=function(u){return isFinite(u=Math.floor(u))&&u>0?Fs(function(A){A.setFullYear(Math.floor(A.getFullYear()/u)*u),A.setMonth(0,1),A.setHours(0,0,0,0)},function(A,r){A.setFullYear(A.getFullYear()+r*u)}):null};const $s=t1;var xl=Fs(function(u){u.setUTCMonth(0,1),u.setUTCHours(0,0,0,0)},function(u,A){u.setUTCFullYear(u.getUTCFullYear()+A)},function(u,A){return A.getUTCFullYear()-u.getUTCFullYear()},function(u){return u.getUTCFullYear()});xl.every=function(u){return isFinite(u=Math.floor(u))&&u>0?Fs(function(A){A.setUTCFullYear(Math.floor(A.getUTCFullYear()/u)*u),A.setUTCMonth(0,1),A.setUTCHours(0,0,0,0)},function(A,r){A.setUTCFullYear(A.getUTCFullYear()+r*u)}):null};const zs=xl;function n1(u){if(0<=u.y&&u.y<100){var A=new Date(-1,u.m,u.d,u.H,u.M,u.S,u.L);return A.setFullYear(u.y),A}return new Date(u.y,u.m,u.d,u.H,u.M,u.S,u.L)}function od(u){if(0<=u.y&&u.y<100){var A=new Date(Date.UTC(-1,u.m,u.d,u.H,u.M,u.S,u.L));return A.setUTCFullYear(u.y),A}return new Date(Date.UTC(u.y,u.m,u.d,u.H,u.M,u.S,u.L))}function Cl(u,A,r){return{y:u,m:A,d:r,H:0,M:0,S:0,L:0}}var sd={"-":"",_:" ",0:"0"},fr=/^\s*\d+/,a1=/^%/,r1=/[\\^$*+?|[\]().{}]/g;function $n(u,A,r){var b=u<0?"-":"",B=(b?-u:u)+"",K=B.length;return b+(K[A.toLowerCase(),r]))}function Q0(u,A,r){var b=fr.exec(A.slice(r,r+1));return b?(u.w=+b[0],r+b[0].length):-1}function s1(u,A,r){var b=fr.exec(A.slice(r,r+1));return b?(u.u=+b[0],r+b[0].length):-1}function q0(u,A,r){var b=fr.exec(A.slice(r,r+2));return b?(u.U=+b[0],r+b[0].length):-1}function w2(u,A,r){var b=fr.exec(A.slice(r,r+2));return b?(u.V=+b[0],r+b[0].length):-1}function wl(u,A,r){var b=fr.exec(A.slice(r,r+2));return b?(u.W=+b[0],r+b[0].length):-1}function c1(u,A,r){var b=fr.exec(A.slice(r,r+4));return b?(u.y=+b[0],r+b[0].length):-1}function cd(u,A,r){var b=fr.exec(A.slice(r,r+2));return b?(u.y=+b[0]+(+b[0]>68?1900:2e3),r+b[0].length):-1}function M2(u,A,r){var b=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(A.slice(r,r+6));return b?(u.Z=b[1]?0:-(b[2]+(b[3]||"00")),r+b[0].length):-1}function ld(u,A,r){var b=fr.exec(A.slice(r,r+1));return b?(u.q=3*b[0]-3,r+b[0].length):-1}function yc(u,A,r){var b=fr.exec(A.slice(r,r+2));return b?(u.m=b[0]-1,r+b[0].length):-1}function dd(u,A,r){var b=fr.exec(A.slice(r,r+2));return b?(u.d=+b[0],r+b[0].length):-1}function J0(u,A,r){var b=fr.exec(A.slice(r,r+3));return b?(u.m=0,u.d=+b[0],r+b[0].length):-1}function hd(u,A,r){var b=fr.exec(A.slice(r,r+2));return b?(u.H=+b[0],r+b[0].length):-1}function X0(u,A,r){var b=fr.exec(A.slice(r,r+2));return b?(u.M=+b[0],r+b[0].length):-1}function $0(u,A,r){var b=fr.exec(A.slice(r,r+2));return b?(u.S=+b[0],r+b[0].length):-1}function po(u,A,r){var b=fr.exec(A.slice(r,r+3));return b?(u.L=+b[0],r+b[0].length):-1}function Xc(u,A,r){var b=fr.exec(A.slice(r,r+6));return b?(u.L=Math.floor(b[0]/1e3),r+b[0].length):-1}function eh(u,A,r){var b=a1.exec(A.slice(r,r+1));return b?r+b[0].length:-1}function S2(u,A,r){var b=fr.exec(A.slice(r));return b?(u.Q=+b[0],r+b[0].length):-1}function th(u,A,r){var b=fr.exec(A.slice(r));return b?(u.s=+b[0],r+b[0].length):-1}function E2(u,A){return $n(u.getDate(),A,2)}function ih(u,A){return $n(u.getHours(),A,2)}function nh(u,A){return $n(u.getHours()%12||12,A,2)}function T2(u,A){return $n(1+yl.count($s(u),u),A,3)}function A2(u,A){return $n(u.getMilliseconds(),A,3)}function ah(u,A){return A2(u,A)+"000"}function rh(u,A){return $n(u.getMonth()+1,A,2)}function L2(u,A){return $n(u.getMinutes(),A,2)}function l1(u,A){return $n(u.getSeconds(),A,2)}function bs(u){var A=u.getDay();return 0===A?7:A}function Ml(u,A){return $n(id.count($s(u)-1,u),A,2)}function ud(u){var A=u.getDay();return A>=4||0===A?Xs(u):Xs.ceil(u)}function D2(u,A){return u=ud(u),$n(Xs.count($s(u),u)+(4===$s(u).getDay()),A,2)}function fd(u){return u.getDay()}function Gu(u,A){return $n(bl.count($s(u)-1,u),A,2)}function I2(u,A){return $n(u.getFullYear()%100,A,2)}function Wu(u,A){return $n((u=ud(u)).getFullYear()%100,A,2)}function md(u,A){return $n(u.getFullYear()%1e4,A,4)}function d1(u,A){var r=u.getDay();return $n((u=r>=4||0===r?Xs(u):Xs.ceil(u)).getFullYear()%1e4,A,4)}function Zu(u){var A=u.getTimezoneOffset();return(A>0?"-":(A*=-1,"+"))+$n(A/60|0,"0",2)+$n(A%60,"0",2)}function oh(u,A){return $n(u.getUTCDate(),A,2)}function pd(u,A){return $n(u.getUTCHours(),A,2)}function sh(u,A){return $n(u.getUTCHours()%12||12,A,2)}function ch(u,A){return $n(1+_c.count(zs(u),u),A,3)}function k2(u,A){return $n(u.getUTCMilliseconds(),A,3)}function lh(u,A){return k2(u,A)+"000"}function O2(u,A){return $n(u.getUTCMonth()+1,A,2)}function h1(u,A){return $n(u.getUTCMinutes(),A,2)}function P2(u,A){return $n(u.getUTCSeconds(),A,2)}function gd(u){var A=u.getUTCDay();return 0===A?7:A}function R2(u,A){return $n(ql.count(zs(u)-1,u),A,2)}function Qa(u){var A=u.getUTCDay();return A>=4||0===A?vs(u):vs.ceil(u)}function _d(u,A){return u=Qa(u),$n(vs.count(zs(u),u)+(4===zs(u).getUTCDay()),A,2)}function dh(u){return u.getUTCDay()}function N2(u,A){return $n(jc.count(zs(u)-1,u),A,2)}function vd(u,A){return $n(u.getUTCFullYear()%100,A,2)}function Yu(u,A){return $n((u=Qa(u)).getUTCFullYear()%100,A,2)}function ju(u,A){return $n(u.getUTCFullYear()%1e4,A,4)}function hh(u,A){var r=u.getUTCDay();return $n((u=r>=4||0===r?vs(u):vs.ceil(u)).getUTCFullYear()%1e4,A,4)}function Ku(){return"+0000"}function F2(){return"%"}function Lr(u){return+u}function uh(u){return Math.floor(+u/1e3)}function yd(u){return null===u?NaN:+u}!function fh(u){(function C2(u){var A=u.dateTime,r=u.date,b=u.time,B=u.periods,K=u.days,Te=u.shortDays,st=u.months,jt=u.shortMonths,Wt=Jc(B),ci=o1(B),fi=Jc(K),_i=o1(K),Ti=Jc(Te),Ji=o1(Te),vn=Jc(st),Li=o1(st),un=Jc(jt),Sn=o1(jt),dn={a:function Na(mn){return Te[mn.getDay()]},A:function vo(mn){return K[mn.getDay()]},b:function ba(mn){return jt[mn.getMonth()]},B:function vr(mn){return st[mn.getMonth()]},c:null,d:E2,e:E2,f:ah,g:Wu,G:d1,H:ih,I:nh,j:T2,L:A2,m:rh,M:L2,p:function br(mn){return B[+(mn.getHours()>=12)]},q:function yr(mn){return 1+~~(mn.getMonth()/3)},Q:Lr,s:uh,S:l1,u:bs,U:Ml,V:D2,w:fd,W:Gu,x:null,X:null,y:I2,Y:md,Z:Zu,"%":F2},Fn={a:function Rl(mn){return Te[mn.getUTCDay()]},A:function Nl(mn){return K[mn.getUTCDay()]},b:function Fl(mn){return jt[mn.getUTCMonth()]},B:function Gs(mn){return st[mn.getUTCMonth()]},c:null,d:oh,e:oh,f:lh,g:Yu,G:hh,H:pd,I:sh,j:ch,L:k2,m:O2,M:h1,p:function bo(mn){return B[+(mn.getUTCHours()>=12)]},q:function Hl(mn){return 1+~~(mn.getUTCMonth()/3)},Q:Lr,s:uh,S:P2,u:gd,U:R2,V:_d,w:dh,W:N2,x:null,X:null,y:vd,Y:ju,Z:Ku,"%":F2},Rn={a:function Fa(mn,Yn,na){var Ki=Ti.exec(Yn.slice(na));return Ki?(mn.w=Ji.get(Ki[0].toLowerCase()),na+Ki[0].length):-1},A:function En(mn,Yn,na){var Ki=fi.exec(Yn.slice(na));return Ki?(mn.w=_i.get(Ki[0].toLowerCase()),na+Ki[0].length):-1},b:function Or(mn,Yn,na){var Ki=un.exec(Yn.slice(na));return Ki?(mn.m=Sn.get(Ki[0].toLowerCase()),na+Ki[0].length):-1},B:function ga(mn,Yn,na){var Ki=vn.exec(Yn.slice(na));return Ki?(mn.m=Li.get(Ki[0].toLowerCase()),na+Ki[0].length):-1},c:function Ha(mn,Yn,na){return Ra(mn,A,Yn,na)},d:dd,e:dd,f:Xc,g:cd,G:c1,H:hd,I:hd,j:J0,L:po,m:yc,M:X0,p:function _o(mn,Yn,na){var Ki=Wt.exec(Yn.slice(na));return Ki?(mn.p=ci.get(Ki[0].toLowerCase()),na+Ki[0].length):-1},q:ld,Q:S2,s:th,S:$0,u:s1,U:q0,V:w2,w:Q0,W:wl,x:function cs(mn,Yn,na){return Ra(mn,r,Yn,na)},X:function Xa(mn,Yn,na){return Ra(mn,b,Yn,na)},y:cd,Y:c1,Z:M2,"%":eh};function bn(mn,Yn){return function(na){var yo,kn,rr,Ki=[],$a=-1,Sa=0,Lo=mn.length;for(na instanceof Date||(na=new Date(+na));++$a53)return null;"w"in Ki||(Ki.w=1),"Z"in Ki?(Lo=(Sa=od(Cl(Ki.y,0,1))).getUTCDay(),Sa=Lo>4||0===Lo?jc.ceil(Sa):jc(Sa),Sa=_c.offset(Sa,7*(Ki.V-1)),Ki.y=Sa.getUTCFullYear(),Ki.m=Sa.getUTCMonth(),Ki.d=Sa.getUTCDate()+(Ki.w+6)%7):(Lo=(Sa=n1(Cl(Ki.y,0,1))).getDay(),Sa=Lo>4||0===Lo?bl.ceil(Sa):bl(Sa),Sa=yl.offset(Sa,7*(Ki.V-1)),Ki.y=Sa.getFullYear(),Ki.m=Sa.getMonth(),Ki.d=Sa.getDate()+(Ki.w+6)%7)}else("W"in Ki||"U"in Ki)&&("w"in Ki||(Ki.w="u"in Ki?Ki.u%7:"W"in Ki?1:0),Lo="Z"in Ki?od(Cl(Ki.y,0,1)).getUTCDay():n1(Cl(Ki.y,0,1)).getDay(),Ki.m=0,Ki.d="W"in Ki?(Ki.w+6)%7+7*Ki.W-(Lo+5)%7:Ki.w+7*Ki.U-(Lo+6)%7);return"Z"in Ki?(Ki.H+=Ki.Z/100|0,Ki.M+=Ki.Z%100,od(Ki)):n1(Ki)}}function Ra(mn,Yn,na,Ki){for(var yo,kn,$a=0,Sa=Yn.length,Lo=na.length;$a=Lo)return-1;if(37===(yo=Yn.charCodeAt($a++))){if(yo=Yn.charAt($a++),!(kn=Rn[yo in sd?Yn.charAt($a++):yo])||(Ki=kn(mn,na,Ki))<0)return-1}else if(yo!=na.charCodeAt(Ki++))return-1}return Ki}return dn.x=bn(r,dn),dn.X=bn(b,dn),dn.c=bn(A,dn),Fn.x=bn(r,Fn),Fn.X=bn(b,Fn),Fn.c=bn(A,Fn),{format:function(mn){var Yn=bn(mn+="",dn);return Yn.toString=function(){return mn},Yn},parse:function(mn){var Yn=Pa(mn+="",!1);return Yn.toString=function(){return mn},Yn},utcFormat:function(mn){var Yn=bn(mn+="",Fn);return Yn.toString=function(){return mn},Yn},utcParse:function(mn){var Yn=Pa(mn+="",!0);return Yn.toString=function(){return mn},Yn}}})(u)}({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 xd=an(Di).right,Vr=(an(yd),xd);function Sl(u,A){return u=+u,A=+A,function(r){return Math.round(u*(1-r)+A*r)}}function B2(u){return+u}var ec=[0,1];function xc(u){return u}function El(u,A){return(A-=u=+u)?function(r){return(r-u)/A}:function V2(u){return function(){return u}}(isNaN(A)?NaN:.5)}function ph(u,A,r){var b=u[0],B=u[1],K=A[0],Te=A[1];return BA&&(r=u,u=A,A=r),function(b){return Math.max(u,Math.min(A,b))}}(u[0],u[_i-1])),st=_i>2?g1:ph,jt=Wt=null,fi}function fi(_i){return null==_i||isNaN(_i=+_i)?K:(jt||(jt=st(u.map(b),A,r)))(b(Te(_i)))}return fi.invert=function(_i){return Te(B((Wt||(Wt=st(A,u.map(b),On)))(_i)))},fi.domain=function(_i){return arguments.length?(u=Array.from(_i,B2),ci()):u.slice()},fi.range=function(_i){return arguments.length?(A=Array.from(_i),ci()):A.slice()},fi.rangeRound=function(_i){return A=Array.from(_i),r=Sl,ci()},fi.clamp=function(_i){return arguments.length?(Te=!!_i||xc,ci()):Te!==xc},fi.interpolate=function(_i){return arguments.length?(r=_i,ci()):r},fi.unknown=function(_i){return arguments.length?(K=_i,fi):K},function(_i,Ti){return b=_i,B=Ti,ci()}}()(xc,xc)}function wc(u,A){switch(arguments.length){case 0:break;case 1:this.range(u);break;default:this.range(A).domain(u)}return this}var Br,vh=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function tl(u){if(!(A=vh.exec(u)))throw new Error("invalid format: "+u);var A;return new wd({fill:A[1],align:A[2],sign:A[3],symbol:A[4],zero:A[5],width:A[6],comma:A[7],precision:A[8]&&A[8].slice(1),trim:A[9],type:A[10]})}function wd(u){this.fill=void 0===u.fill?" ":u.fill+"",this.align=void 0===u.align?">":u.align+"",this.sign=void 0===u.sign?"-":u.sign+"",this.symbol=void 0===u.symbol?"":u.symbol+"",this.zero=!!u.zero,this.width=void 0===u.width?void 0:+u.width,this.comma=!!u.comma,this.precision=void 0===u.precision?void 0:+u.precision,this.trim=!!u.trim,this.type=void 0===u.type?"":u.type+""}function Tl(u,A){if((r=(u=A?u.toExponential(A-1):u.toExponential()).indexOf("e"))<0)return null;var r,b=u.slice(0,r);return[b.length>1?b[0]+b.slice(2):b,+u.slice(r+1)]}function Mc(u){return(u=Tl(Math.abs(u)))?u[1]:NaN}function bh(u,A){var r=Tl(u,A);if(!r)return u+"";var b=r[0],B=r[1];return B<0?"0."+new Array(-B).join("0")+b:b.length>B+1?b.slice(0,B+1)+"."+b.slice(B+1):b+new Array(B-b.length+2).join("0")}tl.prototype=wd.prototype,wd.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 xs={"%":(u,A)=>(100*u).toFixed(A),b:u=>Math.round(u).toString(2),c:u=>u+"",d:function W2(u){return Math.abs(u=Math.round(u))>=1e21?u.toLocaleString("en").replace(/,/g,""):u.toString(10)},e:(u,A)=>u.toExponential(A),f:(u,A)=>u.toFixed(A),g:(u,A)=>u.toPrecision(A),o:u=>Math.round(u).toString(8),p:(u,A)=>bh(100*u,A),r:bh,s:function _1(u,A){var r=Tl(u,A);if(!r)return u+"";var b=r[0],B=r[1],K=B-(Br=3*Math.max(-8,Math.min(8,Math.floor(B/3))))+1,Te=b.length;return K===Te?b:K>Te?b+new Array(K-Te+1).join("0"):K>0?b.slice(0,K)+"."+b.slice(K):"0."+new Array(1-K).join("0")+Tl(u,Math.max(0,A+K-1))[0]},X:u=>Math.round(u).toString(16).toUpperCase(),x:u=>Math.round(u).toString(16)};function Z2(u){return u}var v1,Ll,b1,Y2=Array.prototype.map,Td=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Ch(u){var A=u.domain;return u.ticks=function(r){var b=A();return function mo(u,A,r){if(!((r=+r)>0))return[];if((u=+u)==(A=+A))return[u];const b=A=B))return[];const st=K-B+1,jt=new Array(st);if(b)if(Te<0)for(let Wt=0;Wt0;){if((Wt=Gc(Te,st,r))===jt)return b[B]=Te,b[K]=st,A(b);if(Wt>0)Te=Math.floor(Te/Wt)*Wt,st=Math.ceil(st/Wt)*Wt;else{if(!(Wt<0))break;Te=Math.ceil(Te*Wt)/Wt,st=Math.floor(st*Wt)/Wt}jt=Wt}return u},u}function tc(){var u=Cd();return u.copy=function(){return function $c(u,A){return A.domain(u.domain()).range(u.range()).interpolate(u.interpolate()).clamp(u.clamp()).unknown(u.unknown())}(u,tc())},wc.apply(u,arguments),Ch(u)}function K2(u,A,r){u=+u,A=+A,r=(B=arguments.length)<2?(A=u,u=0,1):B<3?1:+r;for(var b=-1,B=0|Math.max(0,Math.ceil((A-u)/r)),K=new Array(B);++b0&&st>0&&(jt+st+1>b&&(st=Math.max(1,b-jt)),K.push(r.substring(B-=st,B+st)),!((jt+=st+1)>b));)st=u[Te=(Te+1)%u.length];return K.reverse().join(A)}}(Y2.call(u.grouping,Number),u.thousands+""),r=void 0===u.currency?"":u.currency[0]+"",b=void 0===u.currency?"":u.currency[1]+"",B=void 0===u.decimal?".":u.decimal+"",K=void 0===u.numerals?Z2:function Al(u){return function(A){return A.replace(/[0-9]/g,function(r){return u[+r]})}}(Y2.call(u.numerals,String)),Te=void 0===u.percent?"%":u.percent+"",st=void 0===u.minus?"\u2212":u.minus+"",jt=void 0===u.nan?"NaN":u.nan+"";function Wt(fi){var _i=(fi=tl(fi)).fill,Ti=fi.align,Ji=fi.sign,vn=fi.symbol,Li=fi.zero,un=fi.width,Sn=fi.comma,dn=fi.precision,Fn=fi.trim,Rn=fi.type;"n"===Rn?(Sn=!0,Rn="g"):xs[Rn]||(void 0===dn&&(dn=12),Fn=!0,Rn="g"),(Li||"0"===_i&&"="===Ti)&&(Li=!0,_i="0",Ti="=");var bn="$"===vn?r:"#"===vn&&/[boxX]/.test(Rn)?"0"+Rn.toLowerCase():"",Pa="$"===vn?b:/[%p]/.test(Rn)?Te:"",Ra=xs[Rn],_o=/[defgprs%]/.test(Rn);function Fa(En){var Ha,cs,Xa,Or=bn,ga=Pa;if("c"===Rn)ga=Ra(En)+ga,En="";else{var Na=(En=+En)<0||1/En<0;if(En=isNaN(En)?jt:Ra(Math.abs(En),dn),Fn&&(En=function Ed(u){e:for(var B,A=u.length,r=1,b=-1;r0&&(b=0)}return b>0?u.slice(0,b)+u.slice(B+1):u}(En)),Na&&0==+En&&"+"!==Ji&&(Na=!1),Or=(Na?"("===Ji?Ji:st:"-"===Ji||"("===Ji?"":Ji)+Or,ga=("s"===Rn?Td[8+Br/3]:"")+ga+(Na&&"("===Ji?")":""),_o)for(Ha=-1,cs=En.length;++Ha(Xa=En.charCodeAt(Ha))||Xa>57){ga=(46===Xa?B+En.slice(Ha+1):En.slice(Ha))+ga,En=En.slice(0,Ha);break}}Sn&&!Li&&(En=A(En,1/0));var vo=Or.length+En.length+ga.length,ba=vo>1)+Or+En+ga+ba.slice(vo);break;default:En=ba+Or+En+ga}return K(En)}return dn=void 0===dn?6:/[gprs]/.test(Rn)?Math.max(1,Math.min(21,dn)):Math.max(0,Math.min(20,dn)),Fa.toString=function(){return fi+""},Fa}return{format:Wt,formatPrefix:function ci(fi,_i){var Ti=Wt(((fi=tl(fi)).type="f",fi)),Ji=3*Math.max(-8,Math.min(8,Math.floor(Mc(_i)/3))),vn=Math.pow(10,-Ji),Li=Td[8+Ji/3];return function(un){return Ti(vn*un)+Li}}}}(u),Ll=v1.format,b1=v1.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});class Ld extends Map{constructor(A,r=Q2){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),null!=A)for(const[b,B]of A)this.set(b,B)}get(A){return super.get(Dl(this,A))}has(A){return super.has(Dl(this,A))}set(A,r){return super.set(Sc(this,A),r)}delete(A){return super.delete(Cs(this,A))}}class qu extends Set{constructor(A,r=Q2){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),null!=A)for(const b of A)this.add(b)}has(A){return super.has(Dl(this,A))}add(A){return super.add(Sc(this,A))}delete(A){return super.delete(Cs(this,A))}}function Dl({_intern:u,_key:A},r){const b=A(r);return u.has(b)?u.get(b):r}function Sc({_intern:u,_key:A},r){const b=A(r);return u.has(b)?u.get(b):(u.set(b,r),r)}function Cs({_intern:u,_key:A},r){const b=A(r);return u.has(b)&&(r=u.get(b),u.delete(b)),r}function Q2(u){return null!==u&&"object"==typeof u?u.valueOf():u}const Dd=Symbol("implicit");function y1(){var u=new Ld,A=[],r=[],b=Dd;function B(K){let Te=u.get(K);if(void 0===Te){if(b!==Dd)return b;u.set(K,Te=A.push(K)-1)}return r[Te%r.length]}return B.domain=function(K){if(!arguments.length)return A.slice();A=[],u=new Ld;for(const Te of K)u.has(Te)||u.set(Te,A.push(Te)-1);return B},B.range=function(K){return arguments.length?(r=Array.from(K),B):r.slice()},B.unknown=function(K){return arguments.length?(b=K,B):b},B.copy=function(){return y1(A,r).unknown(b)},wc.apply(B,arguments),B}function nl(){var K,Te,u=y1().unknown(void 0),A=u.domain,r=u.range,b=0,B=1,st=!1,jt=0,Wt=0,ci=.5;function fi(){var _i=A().length,Ti=B=1)return+r(u[b-1],b-1,u);var b,B=(b-1)*A,K=Math.floor(B),Te=+r(u[K],K,u);return Te+(+r(u[K+1],K+1,u)-Te)*(B-K)}}function kd(){var b,u=[],A=[],r=[];function B(){var Te=0,st=Math.max(1,A.length);for(r=new Array(st-1);++Te0?r[st-1]:u[0],st1)("ngIfElse",b)}}function R(u,A){if(1&u&&(t.O4$(),t.YNc(0,w1,2,2,"ng-container",5)),2&u){const r=t.oxw(2).$implicit,b=t.oxw();t.Q6J("ngIf",b.tickChunks(r))}}function N(u,A){if(1&u&&(t.O4$(),t._uU(0)),2&u){const r=t.oxw().ngIf,b=t.oxw(2);t.hij(" ",b.tickTrim(r)," ")}}function S(u,A){if(1&u&&(t.O4$(),t.ynx(0),t.TgZ(1,"title"),t._uU(2),t.qZA(),t.TgZ(3,"text",6),t.YNc(4,ic,1,0,"ng-container",7),t.qZA(),t.YNc(5,R,1,1,"ng-template",null,8,t.W1O),t.YNc(7,N,1,1,"ng-template",null,9,t.W1O),t.BQk()),2&u){const r=A.ngIf,b=t.MAs(6),B=t.MAs(8),K=t.oxw(2);t.xp6(2),t.Oqu(r),t.xp6(1),t.Udp("font-size","12px"),t.uIk("dy",K.dy)("x",K.x1)("y",K.y1)("text-anchor",K.textAnchor),t.xp6(1),t.Q6J("ngIf",K.wrapTicks)("ngIfThen",b)("ngIfElse",B)}}function H(u,A){if(1&u&&(t.O4$(),t.TgZ(0,"g",4),t.YNc(1,S,9,10,"ng-container",5),t.qZA()),2&u){const r=A.$implicit,b=t.oxw();t.uIk("transform",b.transform(r)),t.xp6(1),t.Q6J("ngIf",b.tickFormat(r))}}function G(u,A){if(1&u&&(t.O4$(),t._UZ(0,"path",13)),2&u){const r=t.oxw();t.uIk("d",r.referenceAreaPath)("transform",r.gridLineTransform())}}function Le(u,A){if(1&u&&(t.O4$(),t._UZ(0,"line",15)),2&u){const r=t.oxw(3);t.uIk("x2",r.gridLineWidth)}}function Mt(u,A){if(1&u&&(t.O4$(),t._UZ(0,"line",15)),2&u){const r=t.oxw(3);t.uIk("x2",-r.gridLineWidth)}}function Xt(u,A){if(1&u&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Le,1,1,"line",14),t.YNc(2,Mt,1,1,"line",14),t.qZA()),2&u){const r=t.oxw(2);t.uIk("transform",r.gridLineTransform()),t.xp6(1),t.Q6J("ngIf",r.orient===r.Orientation.Left),t.xp6(1),t.Q6J("ngIf",r.orient===r.Orientation.Right)}}function oi(u,A){if(1&u&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Xt,3,3,"g",5),t.qZA()),2&u){const r=A.$implicit,b=t.oxw();t.uIk("transform",b.transform(r)),t.xp6(1),t.Q6J("ngIf",b.showGridLines)}}function Ci(u,A){if(1&u&&(t.O4$(),t.TgZ(0,"g")(1,"title"),t._uU(2),t.qZA(),t.TgZ(3,"text",17),t._uU(4),t.qZA()()),2&u){const r=t.oxw(2).$implicit,b=t.oxw();t.xp6(2),t.Oqu(b.tickTrim(b.tickFormat(r.value))),t.xp6(1),t.uIk("dy",b.dy)("y",-6)("x",b.gridLineWidth)("text-anchor",b.textAnchor),t.xp6(1),t.hij(" ",r.name," ")}}function Zi(u,A){if(1&u&&(t.O4$(),t.TgZ(0,"g"),t._UZ(1,"line",16),t.YNc(2,Ci,5,6,"g",5),t.qZA()),2&u){const r=t.oxw().$implicit,b=t.oxw();t.uIk("transform",b.transform(r.value)),t.xp6(1),t.uIk("x2",b.gridLineWidth)("transform",b.gridLineTransform()),t.xp6(1),t.Q6J("ngIf",b.showRefLabels)}}function Vi(u,A){if(1&u&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Zi,3,4,"g",5),t.qZA()),2&u){const r=t.oxw();t.xp6(1),t.Q6J("ngIf",r.showRefLines)}}const Ln=["ngx-charts-y-axis",""];function In(u,A){if(1&u){const r=t.EpF();t.O4$(),t.TgZ(0,"g",2),t.NdJ("dimensionsChanged",function(B){t.CHM(r);const K=t.oxw();return t.KtG(K.emitTicksWidth(B))}),t.qZA()}if(2&u){const r=t.oxw();t.Q6J("trimTicks",r.trimTicks)("maxTickLength",r.maxTickLength)("tickFormatting",r.tickFormatting)("tickArguments",r.tickArguments)("tickValues",r.ticks)("tickStroke",r.tickStroke)("scale",r.yScale)("orient",r.yOrient)("showGridLines",r.showGridLines)("gridLineWidth",r.dims.width)("referenceLines",r.referenceLines)("showRefLines",r.showRefLines)("showRefLabels",r.showRefLabels)("height",r.dims.height)("wrapTicks",r.wrapTicks)}}function pn(u,A){if(1&u&&(t.O4$(),t._UZ(0,"g",3)),2&u){const r=t.oxw();t.Q6J("label",r.labelText)("offset",r.labelOffset)("orient",r.yOrient)("height",r.dims.height)("width",r.dims.width)}}const Cn=["ngx-charts-svg-linear-gradient",""];function ea(u,A){if(1&u&&(t.O4$(),t._UZ(0,"stop")),2&u){const r=A.$implicit;t.Udp("stop-color",r.color)("stop-opacity",r.opacity),t.uIk("offset",r.offset+"%")}}const kr=["ngx-charts-grid-panel",""],nc=["ngx-charts-grid-panel-series",""];function Qo(u,A){if(1&u&&(t.O4$(),t._UZ(0,"g",1)),2&u){const r=A.$implicit;t.ekj("grid-panel",!0)("odd","odd"===r.class)("even","even"===r.class),t.Q6J("height",r.height)("width",r.width)("x",r.x)("y",r.y)}}const Ms=["tooltipTemplate"],E1=function(u,A){return[u,A]},Ph=".ngx-charts-outer{animation:chartFadeIn linear .6s}@keyframes chartFadeIn{0%{opacity:0}20%{opacity:0}to{opacity:1}}.ngx-charts{float:left;overflow:visible}.ngx-charts .circle,.ngx-charts .cell,.ngx-charts .bar,.ngx-charts .arc{cursor:pointer}.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover,.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .card.active,.ngx-charts .card:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .bar:focus,.ngx-charts .cell:focus,.ngx-charts .arc:focus,.ngx-charts .card:focus{outline:none}.ngx-charts .bar.hidden,.ngx-charts .cell.hidden,.ngx-charts .arc.hidden,.ngx-charts .card.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .line-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .polar-series-path.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .area-series.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:#0000000d}\n",K3=["ngx-charts-bar",""];function Q3(u,A){if(1&u&&(t.O4$(),t.TgZ(0,"defs"),t._UZ(1,"g",2),t.qZA()),2&u){const r=t.oxw();t.xp6(1),t.Q6J("orientation",r.orientation)("name",r.gradientId)("stops",r.gradientStops)}}const q3=["ngx-charts-bar-label",""],d0=["ngx-charts-series-vertical",""];function T1(u,A){if(1&u){const r=t.EpF();t.O4$(),t.TgZ(0,"g",2),t.NdJ("select",function(B){t.CHM(r);const K=t.oxw(2);return t.KtG(K.onClick(B))})("activate",function(B){t.CHM(r);const K=t.oxw(2);return t.KtG(K.activate.emit(B))})("deactivate",function(B){t.CHM(r);const K=t.oxw(2);return t.KtG(K.deactivate.emit(B))}),t.qZA()}if(2&u){const r=A.$implicit,b=t.oxw(2);t.Q6J("@animationState","active")("@.disabled",!b.animations)("width",r.width)("height",r.height)("x",r.x)("y",r.y)("fill",r.color)("stops",r.gradientStops)("data",r.data)("orientation",b.barOrientation.Vertical)("roundEdges",r.roundEdges)("gradient",b.gradient)("ariaLabel",r.ariaLabel)("isActive",b.isActive(r.data))("tooltipDisabled",b.tooltipDisabled)("tooltipPlacement",b.tooltipPlacement)("tooltipType",b.tooltipType)("tooltipTitle",b.tooltipTemplate?void 0:r.tooltipText)("tooltipTemplate",b.tooltipTemplate)("tooltipContext",r.data)("noBarWhenZero",b.noBarWhenZero)("animations",b.animations)}}function i4(u,A){if(1&u&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,T1,1,22,"g",1),t.qZA()),2&u){const r=t.oxw();t.xp6(1),t.Q6J("ngForOf",r.bars)("ngForTrackBy",r.trackBy)}}function Uh(u,A){if(1&u){const r=t.EpF();t.O4$(),t.TgZ(0,"g",2),t.NdJ("select",function(B){t.CHM(r);const K=t.oxw(2);return t.KtG(K.onClick(B))})("activate",function(B){t.CHM(r);const K=t.oxw(2);return t.KtG(K.activate.emit(B))})("deactivate",function(B){t.CHM(r);const K=t.oxw(2);return t.KtG(K.deactivate.emit(B))}),t.qZA()}if(2&u){const r=A.$implicit,b=t.oxw(2);t.Q6J("width",r.width)("height",r.height)("x",r.x)("y",r.y)("fill",r.color)("stops",r.gradientStops)("data",r.data)("orientation",b.barOrientation.Vertical)("roundEdges",r.roundEdges)("gradient",b.gradient)("ariaLabel",r.ariaLabel)("isActive",b.isActive(r.data))("tooltipDisabled",b.tooltipDisabled)("tooltipPlacement",b.tooltipPlacement)("tooltipType",b.tooltipType)("tooltipTitle",b.tooltipTemplate?void 0:r.tooltipText)("tooltipTemplate",b.tooltipTemplate)("tooltipContext",r.data)("noBarWhenZero",b.noBarWhenZero)("animations",b.animations)}}function uf(u,A){if(1&u&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Uh,1,20,"g",1),t.qZA()),2&u){const r=t.oxw();t.xp6(1),t.Q6J("ngForOf",r.bars)("ngForTrackBy",r.trackBy)}}function n4(u,A){if(1&u){const r=t.EpF();t.O4$(),t.TgZ(0,"g",4),t.NdJ("dimensionsChanged",function(B){const Te=t.CHM(r).index,st=t.oxw(2);return t.KtG(st.dataLabelHeightChanged.emit({size:B,index:Te}))}),t.qZA()}if(2&u){const r=A.$implicit,b=t.oxw(2);t.Q6J("barX",r.x)("barY",r.y)("barWidth",r.width)("barHeight",r.height)("value",r.total)("valueFormatting",b.dataLabelFormatting)("orientation",b.barOrientation.Vertical)}}function ff(u,A){if(1&u&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,n4,1,7,"g",3),t.qZA()),2&u){const r=t.oxw();t.xp6(1),t.Q6J("ngForOf",r.barsForDataLabels)("ngForTrackBy",r.trackDataLabelBy)}}function Ud(u,A){if(1&u){const r=t.EpF();t.O4$(),t.TgZ(0,"g",5),t.NdJ("dimensionsChanged",function(B){t.CHM(r);const K=t.oxw();return t.KtG(K.updateXAxisHeight(B))}),t.qZA()}if(2&u){const r=t.oxw();t.Q6J("xScale",r.xScale)("dims",r.dims)("showGridLines",r.showGridLines)("showLabel",r.showXAxisLabel)("labelText",r.xAxisLabel)("trimTicks",r.trimXAxisTicks)("rotateTicks",r.rotateXAxisTicks)("maxTickLength",r.maxXAxisTickLength)("tickFormatting",r.xAxisTickFormatting)("ticks",r.xAxisTicks)("xAxisOffset",r.dataLabelMaxHeight.negative)("wrapTicks",r.wrapTicks)}}function a4(u,A){if(1&u){const r=t.EpF();t.O4$(),t.TgZ(0,"g",6),t.NdJ("dimensionsChanged",function(B){t.CHM(r);const K=t.oxw();return t.KtG(K.updateYAxisWidth(B))}),t.qZA()}if(2&u){const r=t.oxw();t.Q6J("yScale",r.yScale)("dims",r.dims)("showGridLines",r.showGridLines)("showLabel",r.showYAxisLabel)("labelText",r.yAxisLabel)("trimTicks",r.trimYAxisTicks)("maxTickLength",r.maxYAxisTickLength)("tickFormatting",r.yAxisTickFormatting)("ticks",r.yAxisTicks)("wrapTicks",r.wrapTicks)}}function fp(u,A){if(1&u){const r=t.EpF();t.O4$(),t.TgZ(0,"g",6),t.NdJ("dimensionsChanged",function(B){t.CHM(r);const K=t.oxw();return t.KtG(K.updateXAxisHeight(B))}),t.qZA()}if(2&u){const r=t.oxw();t.Q6J("xScale",r.groupScale)("dims",r.dims)("showLabel",r.showXAxisLabel)("labelText",r.xAxisLabel)("trimTicks",r.trimXAxisTicks)("rotateTicks",r.rotateXAxisTicks)("maxTickLength",r.maxXAxisTickLength)("tickFormatting",r.xAxisTickFormatting)("ticks",r.xAxisTicks)("xAxisOffset",r.dataLabelMaxHeight.negative)("wrapTicks",r.wrapTicks)}}function r4(u,A){if(1&u){const r=t.EpF();t.O4$(),t.TgZ(0,"g",7),t.NdJ("dimensionsChanged",function(B){t.CHM(r);const K=t.oxw();return t.KtG(K.updateYAxisWidth(B))}),t.qZA()}if(2&u){const r=t.oxw();t.Q6J("yScale",r.valueScale)("dims",r.dims)("showGridLines",r.showGridLines)("showLabel",r.showYAxisLabel)("labelText",r.yAxisLabel)("trimTicks",r.trimYAxisTicks)("maxTickLength",r.maxYAxisTickLength)("tickFormatting",r.yAxisTickFormatting)("ticks",r.yAxisTicks)("wrapTicks",r.wrapTicks)}}function o4(u,A){if(1&u){const r=t.EpF();t.O4$(),t.TgZ(0,"g",9),t.NdJ("select",function(B){const Te=t.CHM(r).$implicit,st=t.oxw(2);return t.KtG(st.onClick(B,Te))})("activate",function(B){const Te=t.CHM(r).$implicit,st=t.oxw(2);return t.KtG(st.onActivate(B,Te))})("deactivate",function(B){const Te=t.CHM(r).$implicit,st=t.oxw(2);return t.KtG(st.onDeactivate(B,Te))})("dataLabelHeightChanged",function(B){const Te=t.CHM(r).index,st=t.oxw(2);return t.KtG(st.onDataLabelMaxHeightChanged(B,Te))}),t.qZA()}if(2&u){const r=A.$implicit,b=t.oxw(2);t.Q6J("@animationState","active")("activeEntries",b.activeEntries)("xScale",b.innerScale)("yScale",b.valueScale)("colors",b.colors)("series",r.series)("dims",b.dims)("gradient",b.gradient)("tooltipDisabled",b.tooltipDisabled)("tooltipTemplate",b.tooltipTemplate)("showDataLabel",b.showDataLabel)("dataLabelFormatting",b.dataLabelFormatting)("seriesName",r.name)("roundEdges",b.roundEdges)("animations",b.animations)("noBarWhenZero",b.noBarWhenZero),t.uIk("transform",b.groupTransform(r))}}function s4(u,A){if(1&u&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,o4,1,17,"g",8),t.qZA()),2&u){const r=t.oxw();t.xp6(1),t.Q6J("ngForOf",r.results)("ngForTrackBy",r.trackBy)}}function c4(u,A){if(1&u){const r=t.EpF();t.O4$(),t.TgZ(0,"g",9),t.NdJ("select",function(B){const Te=t.CHM(r).$implicit,st=t.oxw(2);return t.KtG(st.onClick(B,Te))})("activate",function(B){const Te=t.CHM(r).$implicit,st=t.oxw(2);return t.KtG(st.onActivate(B,Te))})("deactivate",function(B){const Te=t.CHM(r).$implicit,st=t.oxw(2);return t.KtG(st.onDeactivate(B,Te))})("dataLabelHeightChanged",function(B){const Te=t.CHM(r).index,st=t.oxw(2);return t.KtG(st.onDataLabelMaxHeightChanged(B,Te))}),t.qZA()}if(2&u){const r=A.$implicit,b=t.oxw(2);t.Q6J("activeEntries",b.activeEntries)("xScale",b.innerScale)("yScale",b.valueScale)("colors",b.colors)("series",r.series)("dims",b.dims)("gradient",b.gradient)("tooltipDisabled",b.tooltipDisabled)("tooltipTemplate",b.tooltipTemplate)("showDataLabel",b.showDataLabel)("dataLabelFormatting",b.dataLabelFormatting)("seriesName",r.name)("roundEdges",b.roundEdges)("animations",b.animations)("noBarWhenZero",b.noBarWhenZero),t.uIk("transform",b.groupTransform(r))}}function l4(u,A){if(1&u&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,c4,1,16,"g",8),t.qZA()),2&u){const r=t.oxw();t.xp6(1),t.Q6J("ngForOf",r.results)("ngForTrackBy",r.trackBy)}}function R4(u,A,r){r=r||{};let b,B,K,Te=null,st=0;function jt(){st=!1===r.leading?0:+new Date,Te=null,K=u.apply(b,B)}return function(){const Wt=+new Date;!st&&!1===r.leading&&(st=Wt);const ci=A-(Wt-st);return b=this,B=arguments,ci<=0?(clearTimeout(Te),Te=null,st=Wt,K=u.apply(b,B)):!Te&&!1!==r.trailing&&(Te=setTimeout(jt,ci)),K}}function Gf(u,A){return function(b,B,K){return{configurable:!0,enumerable:K.enumerable,get:function(){return Object.defineProperty(this,B,{configurable:!0,enumerable:K.enumerable,value:R4(K.value,u,A)}),this[B]}}}}var Jn=(()=>{return(u=Jn||(Jn={})).Top="top",u.Bottom="bottom",u.Left="left",u.Right="right",u.Center="center",Jn;var u})();const Lc=7;function Jh(u,A,r){return r===Jn.Top?u.top-Lc:r===Jn.Bottom?u.top+u.height-A.height+Lc:r===Jn.Center?u.top+u.height/2-A.height/2:void 0}function Xh(u,A,r){return r===Jn.Left?u.left-Lc:r===Jn.Right?u.left+u.width-A.width+Lc:r===Jn.Center?u.left+u.width/2-A.width/2:void 0}class Gr{static calculateVerticalAlignment(A,r,b){let B=Jh(A,r,b);return B+r.height>window.innerHeight&&(B=window.innerHeight-r.height),B}static calculateVerticalCaret(A,r,b,B){let K;B===Jn.Top&&(K=A.height/2-b.height/2+Lc),B===Jn.Bottom&&(K=r.height-A.height/2-b.height/2-Lc),B===Jn.Center&&(K=r.height/2-b.height/2);const Te=Jh(A,r,B);return Te+r.height>window.innerHeight&&(K+=Te+r.height-window.innerHeight),K}static calculateHorizontalAlignment(A,r,b){let B=Xh(A,r,b);return B+r.width>window.innerWidth&&(B=window.innerWidth-r.width),B}static calculateHorizontalCaret(A,r,b,B){let K;B===Jn.Left&&(K=A.width/2-b.width/2+Lc),B===Jn.Right&&(K=r.width-A.width/2-b.width/2-Lc),B===Jn.Center&&(K=r.width/2-b.width/2);const Te=Xh(A,r,B);return Te+r.width>window.innerWidth&&(K+=Te+r.width-window.innerWidth),K}static shouldFlip(A,r,b,B){let K=!1;return b===Jn.Right&&A.left+A.width+r.width+B>window.innerWidth&&(K=!0),b===Jn.Left&&A.left-r.width-B<0&&(K=!0),b===Jn.Top&&A.top-r.height-B<0&&(K=!0),b===Jn.Bottom&&A.top+A.height+r.height+B>window.innerHeight&&(K=!0),K}static positionCaret(A,r,b,B,K){let Te=0,st=0;return A===Jn.Right?(st=-7,Te=Gr.calculateVerticalCaret(b,r,B,K)):A===Jn.Left?(st=r.width,Te=Gr.calculateVerticalCaret(b,r,B,K)):A===Jn.Top?(Te=r.height,st=Gr.calculateHorizontalCaret(b,r,B,K)):A===Jn.Bottom&&(Te=-7,st=Gr.calculateHorizontalCaret(b,r,B,K)),{top:Te,left:st}}static positionContent(A,r,b,B,K){let Te=0,st=0;return A===Jn.Right?(st=b.left+b.width+B,Te=Gr.calculateVerticalAlignment(b,r,K)):A===Jn.Left?(st=b.left-r.width-B,Te=Gr.calculateVerticalAlignment(b,r,K)):A===Jn.Top?(Te=b.top-r.height-B,st=Gr.calculateHorizontalAlignment(b,r,K)):A===Jn.Bottom&&(Te=b.top+b.height+B,st=Gr.calculateHorizontalAlignment(b,r,K)),{top:Te,left:st}}static determinePlacement(A,r,b,B){if(Gr.shouldFlip(b,r,A,B)){if(A===Jn.Right)return Jn.Left;if(A===Jn.Left)return Jn.Right;if(A===Jn.Top)return Jn.Bottom;if(A===Jn.Bottom)return Jn.Top}return A}}let N4=(()=>{class u{constructor(r,b,B){this.element=r,this.renderer=b,this.platformId=B}get cssClasses(){let r="ngx-charts-tooltip-content";return r+=` position-${this.placement}`,r+=` type-${this.type}`,r+=` ${this.cssClass}`,r}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,e.NF)(this.platformId))return;const r=this.element.nativeElement,b=this.host.nativeElement.getBoundingClientRect();if(!b.height&&!b.width)return;const B=r.getBoundingClientRect();this.checkFlip(b,B),this.positionContent(r,b,B),this.showCaret&&this.positionCaret(b,B),setTimeout(()=>this.renderer.addClass(r,"animate"),1)}positionContent(r,b,B){const{top:K,left:Te}=Gr.positionContent(this.placement,B,b,this.spacing,this.alignment);this.renderer.setStyle(r,"top",`${K}px`),this.renderer.setStyle(r,"left",`${Te}px`)}positionCaret(r,b){const B=this.caretElm.nativeElement,K=B.getBoundingClientRect(),{top:Te,left:st}=Gr.positionCaret(this.placement,b,r,K,this.alignment);this.renderer.setStyle(B,"top",`${Te}px`),this.renderer.setStyle(B,"left",`${st}px`)}checkFlip(r,b){this.placement=Gr.determinePlacement(this.placement,b,r,this.spacing)}onWindowResize(){this.position()}}return u.\u0275fac=function(r){return new(r||u)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.Lbi))},u.\u0275cmp=t.Xpm({type:u,selectors:[["ngx-tooltip-content"]],viewQuery:function(r,b){if(1&r&&t.Gf(Eh,5),2&r){let B;t.iGM(B=t.CRH())&&(b.caretElm=B.first)}},hostVars:2,hostBindings:function(r,b){1&r&&t.NdJ("resize",function(){return b.onWindowResize()},!1,t.Jf7),2&r&&t.Tol(b.cssClasses)},inputs:{host:"host",showCaret:"showCaret",type:"type",placement:"placement",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(r,b){1&r&&(t.TgZ(0,"div"),t._UZ(1,"span",0,1),t.TgZ(3,"div",2),t.YNc(4,X2,2,4,"span",3),t.YNc(5,Th,1,1,"span",4),t.qZA()()),2&r&&(t.xp6(1),t.Gre("tooltip-caret position-",b.placement,""),t.Q6J("hidden",!b.showCaret),t.xp6(3),t.Q6J("ngIf",!b.title),t.xp6(1),t.Q6J("ngIf",b.title))},dependencies:[e.O5,e.tP],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background: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,_.gn)([Gf(100)],u.prototype,"onWindowResize",null),u})();class F4{constructor(A){this.injectionService=A,this.defaults={},this.components=new Map}getByType(A=this.type){return this.components.get(A)}create(A){return this.createByType(this.type,A)}createByType(A,r){r=this.assignDefaults(r);const b=this.injectComponent(A,r);return this.register(A,b),b}destroy(A){const r=this.components.get(A.componentType);if(r&&r.length){const b=r.indexOf(A);b>-1&&(r[b].destroy(),r.splice(b,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(A){const r=this.components.get(A);if(r&&r.length){let b=r.length-1;for(;b>=0;)this.destroy(r[b--])}}injectComponent(A,r){return this.injectionService.appendComponent(A,r)}assignDefaults(A){const r={...this.defaults.inputs},b={...this.defaults.outputs};return!A.inputs&&!A.outputs&&(A={inputs:A}),r&&(A.inputs={...r,...A.inputs}),b&&(A.outputs={...b,...A.outputs}),A}register(A,r){this.components.has(A)||this.components.set(A,[]),this.components.get(A).push(r)}}let Wf=(()=>{class u{constructor(r,b,B){this.applicationRef=r,this.componentFactoryResolver=b,this.injector=B}static setGlobalRootViewContainer(r){u.globalRootViewContainer=r}getRootViewContainer(){if(this._container)return this._container;if(u.globalRootViewContainer)return u.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(r){this._container=r}getComponentRootNode(r){return function $h(u){return u.element}(r)?r.element.nativeElement:r.hostView&&r.hostView.rootNodes.length>0?r.hostView.rootNodes[0]:r.location.nativeElement}getRootViewContainerNode(r){return this.getComponentRootNode(r)}projectComponentBindings(r,b){if(b){if(void 0!==b.inputs){const B=Object.getOwnPropertyNames(b.inputs);for(const K of B)r.instance[K]=b.inputs[K]}if(void 0!==b.outputs){const B=Object.getOwnPropertyNames(b.outputs);for(const K of B)r.instance[K]=b.outputs[K]}}return r}appendComponent(r,b={},B){B||(B=this.getRootViewContainer());const K=this.getComponentRootNode(B),Te=new T.u0(K,this.componentFactoryResolver,this.applicationRef,this.injector),st=new T.C5(r),jt=Te.attach(st);return this.projectComponentBindings(jt,b),jt}}return u.globalRootViewContainer=null,u.\u0275fac=function(r){return new(r||u)(t.LFG(t.z2F),t.LFG(t._Vd),t.LFG(t.zs3))},u.\u0275prov=t.Yz7({token:u,factory:u.\u0275fac}),u})(),_0=(()=>{class u extends F4{constructor(r){super(r),this.type=N4}}return u.\u0275fac=function(r){return new(r||u)(t.LFG(Wf))},u.\u0275prov=t.Yz7({token:u,factory:u.\u0275fac}),u})();var Dc=(()=>{return(u=Dc||(Dc={})).Right="right",u.Below="below",Dc;var u})(),Ss=(()=>{return(u=Ss||(Ss={})).ScaleLegend="scaleLegend",u.Legend="legend",Ss;var u})(),xn=(()=>{return(u=xn||(xn={})).Time="time",u.Linear="linear",u.Ordinal="ordinal",u.Quantile="quantile",xn;var u})();let Bs=(()=>{class u{constructor(){this.horizontal=!1}ngOnChanges(r){const b=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${b})`}gradientString(r,b){b.push(1);const B=[];return r.reverse().forEach((K,Te)=>{B.push(`${K} ${Math.round(100*b[Te])}%`)}),B.join(", ")}}return u.\u0275fac=function(r){return new(r||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["ngx-charts-scale-legend"]],inputs:{valueRange:"valueRange",colors:"colors",height:"height",width:"width",horizontal:"horizontal"},features:[t.TTD],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(r,b){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"span"),t._uU(3),t.qZA()(),t._UZ(4,"div",2),t.TgZ(5,"div",1)(6,"span"),t._uU(7),t.qZA()()()),2&r&&(t.Udp("height",b.horizontal?void 0:b.height,"px")("width",b.width,"px"),t.ekj("horizontal-legend",b.horizontal),t.xp6(3),t.Oqu(b.valueRange[1].toLocaleString()),t.xp6(1),t.Udp("background",b.gradient),t.xp6(3),t.Oqu(b.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}),u})();function Jd(u){return u instanceof Date?u.toLocaleDateString():u.toLocaleString()}let Us=(()=>{class u{constructor(){this.isActive=!1,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.toggle=new t.vpe}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return u.\u0275fac=function(r){return new(r||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(r,b){1&r&&t.NdJ("mouseenter",function(){return b.onMouseEnter()})("mouseleave",function(){return b.onMouseLeave()})},inputs:{color:"color",label:"label",formattedLabel:"formattedLabel",isActive:"isActive"},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(r,b){1&r&&(t.TgZ(0,"span",0),t.NdJ("click",function(){return b.select.emit(b.formattedLabel)}),t.TgZ(1,"span",1),t.NdJ("click",function(){return b.toggle.emit(b.formattedLabel)}),t.qZA(),t.TgZ(2,"span",2),t._uU(3),t.qZA()()),2&r&&(t.ekj("active",b.isActive),t.Q6J("title",b.formattedLabel),t.xp6(1),t.Udp("background-color",b.color),t.xp6(2),t.hij(" ",b.trimmedLabel," "))},encapsulation:2,changeDetection:0}),u})(),Es=(()=>{class u{constructor(r){this.cd=r,this.horizontal=!1,this.labelClick=new t.vpe,this.labelActivate=new t.vpe,this.labelDeactivate=new t.vpe,this.legendEntries=[]}ngOnChanges(r){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const r=[];for(const b of this.data){const B=Jd(b);-1===r.findIndex(Te=>Te.label===B)&&r.push({label:b,formattedLabel:B,color:this.colors.getColor(b)})}return r}isActive(r){return!!this.activeEntries&&void 0!==this.activeEntries.find(B=>r.label===B.name)}activate(r){this.labelActivate.emit(r)}deactivate(r){this.labelDeactivate.emit(r)}trackBy(r,b){return b.label}}return u.\u0275fac=function(r){return new(r||u)(t.Y36(t.sBO))},u.\u0275cmp=t.Xpm({type:u,selectors:[["ngx-charts-legend"]],inputs:{data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries",horizontal:"horizontal"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[t.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(r,b){1&r&&(t.TgZ(0,"div"),t.YNc(1,Ah,3,1,"header",0),t.TgZ(2,"div",1)(3,"ul",2),t.YNc(4,$2,2,4,"li",3),t.qZA()()()),2&r&&(t.Udp("width",b.width,"px"),t.xp6(1),t.Q6J("ngIf",(null==b.title?null:b.title.length)>0),t.xp6(2),t.Udp("max-height",b.height-45,"px"),t.ekj("horizontal-legend",b.horizontal),t.xp6(1),t.Q6J("ngForOf",b.legendEntries)("ngForTrackBy",b.trackBy))},dependencies:[Us,e.O5,e.sg],styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{white-space:nowrap;overflow:hidden;margin-left:10px;margin-bottom:5px;font-size:14px;font-weight:700}.chart-legend ul,.chart-legend li{padding:0;margin:0;list-style:none}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{line-height:85%;list-style:none;text-align:left;float:left;width:100%;border-radius:3px;overflow-y:auto;overflow-x:hidden;white-space:nowrap;background: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}),u})(),ss=(()=>{class u{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new t.vpe,this.legendLabelActivate=new t.vpe,this.legendLabelDeactivate=new t.vpe,this.LegendPosition=Dc,this.LegendType=Ss}ngOnChanges(r){this.update()}update(){let r=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||this.legendOptions.position===Dc.Right)&&(r=this.legendType===Ss.ScaleLegend?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-r)/12),this.legendWidth=this.legendOptions&&this.legendOptions.position!==Dc.Right?this.chartWidth:Math.floor(this.view[0]*r/12)}getLegendType(){return this.legendOptions.scaleType===xn.Linear?Ss.ScaleLegend:Ss.Legend}}return u.\u0275fac=function(r){return new(r||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["ngx-charts-chart"]],inputs:{view:"view",showLegend:"showLegend",legendOptions:"legendOptions",legendType:"legendType",activeEntries:"activeEntries",animations:"animations"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[t._Bn([_0]),t.TTD],ngContentSelectors:t0,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(r,b){1&r&&(t.F$t(),t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1),t.Hsn(2),t.qZA(),t.YNc(3,Lh,1,5,"ngx-charts-scale-legend",2),t.YNc(4,e0,1,7,"ngx-charts-legend",3),t.qZA()),2&r&&(t.Udp("width",b.view[0],"px")("height",b.view[1],"px"),t.xp6(1),t.uIk("width",b.chartWidth)("height",b.view[1]),t.xp6(2),t.Q6J("ngIf",b.showLegend&&b.legendType===b.LegendType.ScaleLegend),t.xp6(1),t.Q6J("ngIf",b.showLegend&&b.legendType===b.LegendType.Legend))},dependencies:[Bs,Es,e.O5],encapsulation:2,changeDetection:0}),u})(),Zf=(()=>{class u{constructor(r,b){this.element=r,this.zone=b,this.visible=new t.vpe,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const r=()=>{if(!this.element)return;const{offsetHeight:b,offsetWidth:B}=this.element.nativeElement;b&&B?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>r(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>r())})}}return u.\u0275fac=function(r){return new(r||u)(t.Y36(t.SBq),t.Y36(t.R0b))},u.\u0275dir=t.lG2({type:u,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),u})();function eu(u){return"[object Date]"===toString.call(u)}let tu=(()=>{class u{constructor(r,b,B,K){this.chartElement=r,this.zone=b,this.cd=B,this.platformId=K,this.scheme="cool",this.schemeType=xn.Ordinal,this.animations=!0,this.select=new t.vpe}ngOnInit(){(0,e.PM)(this.platformId)&&(this.animations=!1)}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new Zf(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(r){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const r=this.getContainerDims();r&&(this.width=r.width,this.height=r.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let r,b;const B=this.chartElement.nativeElement;if((0,e.NF)(this.platformId)&&null!==B.parentNode){const K=B.parentNode.getBoundingClientRect();r=K.width,b=K.height}return r&&b?{width:r,height:b}:null}formatDates(){for(let r=0;r{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=b}cloneData(r){const b=[];for(const B of r){const K={name:B.name};if(void 0!==B.value&&(K.value=B.value),void 0!==B.series){K.series=[];for(const Te of B.series){const st=Object.assign({},Te);K.series.push(st)}}void 0!==B.extra&&(K.extra=JSON.parse(JSON.stringify(B.extra))),b.push(K)}return b}}return u.\u0275fac=function(r){return new(r||u)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(t.Lbi))},u.\u0275cmp=t.Xpm({type:u,selectors:[["base-chart"]],inputs:{results:"results",view:"view",scheme:"scheme",schemeType:"schemeType",customColors:"customColors",animations:"animations"},outputs:{select:"select"},features:[t.TTD],decls:1,vars:0,template:function(r,b){1&r&&t._UZ(0,"div")},encapsulation:2}),u})();var Wr=(()=>{return(u=Wr||(Wr={})).Top="top",u.Bottom="bottom",u.Left="left",u.Right="right",Wr;var u})();let iu=(()=>{class u{constructor(r){this.textHeight=25,this.margin=5,this.element=r.nativeElement}ngOnChanges(r){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case Wr.Top:case Wr.Bottom:this.y=this.offset,this.x=this.width/2;break;case Wr.Left:this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case Wr.Right:this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return u.\u0275fac=function(r){return new(r||u)(t.Y36(t.SBq))},u.\u0275cmp=t.Xpm({type:u,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[t.TTD],attrs:Dh,decls:2,vars:6,template:function(r,b){1&r&&(t.O4$(),t.TgZ(0,"text"),t._uU(1),t.qZA()),2&r&&(t.uIk("stroke-width",b.strokeWidth)("x",b.x)("y",b.y)("text-anchor",b.textAnchor)("transform",b.transform),t.xp6(1),t.hij(" ",b.label," "))},encapsulation:2,changeDetection:0}),u})();function Xd(u,A=16){return"string"!=typeof u?"number"==typeof u?u+"":"":(u=u.trim()).length<=A?u:`${u.slice(0,A)}...`}function P1(u,A){if(u.length>A){const r=[],b=Math.floor(u.length/A);for(let B=0;B{const st=(K.pop()||"")+" ";return st.length+Te.length>A?[...K,st.trim(),Te.trim()]:[...K,st+Te]},[]);else{let K=0;for(;Kr&&(B=B.splice(0,r),B[B.length-1]+="..."),B}var Ts=(()=>{return(u=Ts||(Ts={})).Start="start",u.Middle="middle",u.End="end",Ts;var u})();let Yf=(()=>{class u{constructor(r){this.platformId=r,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.wrapTicks=!1,this.dimensionsChanged=new t.vpe,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor=Ts.Middle,this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.approxHeight=10,this.maxPossibleLengthForTickIfWrapped=16}get isWrapTicksSupported(){return this.wrapTicks&&this.scale.step}ngOnChanges(r){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,e.NF)(this.platformId))return void this.dimensionsChanged.emit({height:this.approxHeight});const r=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);r!==this.height&&(this.height=r,this.dimensionsChanged.emit({height:this.height}),setTimeout(()=>this.updateDims()))}update(){const r=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:r.tickFormat?r.tickFormat.apply(r,this.tickArguments):function(B){return"Date"===B.constructor.name?B.toLocaleDateString():B.toLocaleString()};const b=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(B){return this.scale(B)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",b&&0!==b?(this.textTransform=`rotate(${b})`,this.textAnchor=Ts.End,this.verticalSpacing=10):this.textAnchor=Ts.Middle,setTimeout(()=>this.updateDims())}getRotationAngle(r){let b=0;this.maxTicksLength=0;for(let fi=0;fithis.maxTicksLength&&(this.maxTicksLength=Ti)}const Te=7*Math.min(this.maxTicksLength,this.maxAllowedLength);let st=Te;const jt=Math.floor(this.width/r.length);for(;st>jt&&b>-90;)b-=30,st=Math.cos(b*(Math.PI/180))*Te;let Wt=14;if(this.isWrapTicksSupported){const fi=this.ticks.reduce((Ti,Ji)=>Ji.length>Ti.length?Ji:Ti,"");Wt=14*(this.tickChunks(fi).length||1),this.maxPossibleLengthForTickIfWrapped=this.getMaxPossibleLengthForTick(fi)}const ci=0!==b?Math.max(Math.abs(Math.sin(b*Math.PI/180))*this.maxTickLength*7,10):Wt;return this.approxHeight=Math.min(ci,200),b}getTicks(){let r;const b=this.getMaxTicks(20),B=this.getMaxTicks(100);return this.tickValues?r=this.tickValues:this.scale.ticks?r=this.scale.ticks.apply(this.scale,[B]):(r=this.scale.domain(),r=P1(r,b)),r}getMaxTicks(r){return Math.floor(this.width/r)}tickTransform(r){return"translate("+this.adjustedScale(r)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(r){return this.trimTicks?Xd(r,this.maxTickLength):r}getMaxPossibleLengthForTick(r){if(this.scale.bandwidth){const B=Math.floor(this.scale.bandwidth()/7),K=r.slice(0,B);return Math.max(K.length,this.maxTickLength)}return this.maxTickLength}tickChunks(r){if(r.toString().length>this.maxTickLength&&this.scale.bandwidth){let B=this.rotateTicks?Math.floor(this.scale.step()/14):5;if(B<=1)return[this.tickTrim(r)];let K=Math.max(this.maxPossibleLengthForTickIfWrapped,this.maxTickLength);return(0,e.NF)(this.platformId)||(K=Math.floor(Math.min(this.approxHeight/5,Math.max(this.maxPossibleLengthForTickIfWrapped,this.maxTickLength)))),B=Math.min(B,5),nu(r,K,B<1?1:B)}return[this.tickTrim(r)]}}return u.\u0275fac=function(r){return new(r||u)(t.Y36(t.Lbi))},u.\u0275cmp=t.Xpm({type:u,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(r,b){if(1&r&&t.Gf(x1,5),2&r){let B;t.iGM(B=t.CRH())&&(b.ticksElement=B.first)}},inputs:{scale:"scale",orient:"orient",tickArguments:"tickArguments",tickValues:"tickValues",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",gridLineHeight:"gridLineHeight",width:"width",rotateTicks:"rotateTicks",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[t.TTD],attrs:Nn,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],[4,"ngIf"],["stroke-width","0.01","font-size","12px"],[4,"ngIf","ngIfThen","ngIfElse"],["tmplMultilineTick",""],["tmplSinglelineTick",""],["x","0",4,"ngFor","ngForOf"],["x","0"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(r,b){1&r&&(t.O4$(),t.TgZ(0,"g",null,0),t.YNc(2,n0,2,2,"g",1),t.qZA(),t.YNc(3,r0,2,2,"g",2)),2&r&&(t.xp6(2),t.Q6J("ngForOf",b.ticks),t.xp6(1),t.Q6J("ngForOf",b.ticks))},dependencies:[e.sg,e.O5],encapsulation:2,changeDetection:0}),u})(),jf=(()=>{class u{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient=Wr.Bottom,this.xAxisOffset=0,this.wrapTicks=!1,this.dimensionsChanged=new t.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=Wr}ngOnChanges(r){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,typeof this.xAxisTickCount<"u"&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:r}){const b=r+25+5;b!==this.labelOffset&&(this.labelOffset=b,setTimeout(()=>{this.dimensionsChanged.emit({height:r})},0))}}return u.\u0275fac=function(r){return new(r||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(r,b){if(1&r&&t.Gf(Yf,5),2&r){let B;t.iGM(B=t.CRH())&&(b.ticksComponent=B.first)}},inputs:{xScale:"xScale",dims:"dims",trimTicks:"trimTicks",rotateTicks:"rotateTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickCount:"xAxisTickCount",xOrient:"xOrient",xAxisOffset:"xAxisOffset",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[t.TTD],attrs:o0,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","wrapTicks","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","wrapTicks","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(r,b){1&r&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Xu,1,13,"g",0),t.YNc(2,Hd,1,5,"g",1),t.qZA()),2&r&&(t.uIk("class",b.xAxisClassName)("transform",b.transform),t.xp6(1),t.Q6J("ngIf",b.xScale),t.xp6(1),t.Q6J("ngIf",b.showLabel))},dependencies:[Yf,iu,e.O5],encapsulation:2,changeDetection:0}),u})();function Ic(u,A,r,b,B,[K,Te,st,jt]){let Wt="";return Wt=`M${[u+B,A]}`,Wt+="h"+((r=0===(r=Math.floor(r))?1:r)-2*B),Wt+=Te?`a${[B,B]} 0 0 1 ${[B,B]}`:`h${B}v${B}`,Wt+="v"+((b=0===(b=Math.floor(b))?1:b)-2*B),Wt+=jt?`a${[B,B]} 0 0 1 ${[-B,B]}`:`v${B}h${-B}`,Wt+="h"+(2*B-r),Wt+=st?`a${[B,B]} 0 0 1 ${[-B,-B]}`:`h${-B}v${-B}`,Wt+="v"+(2*B-b),Wt+=K?`a${[B,B]} 0 0 1 ${[B,-B]}`:`v${-B}h${B}`,Wt+="z",Wt}let au=(()=>{class u{constructor(r){this.platformId=r,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.wrapTicks=!1,this.dimensionsChanged=new t.vpe,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor=Ts.Middle,this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.Orientation=Wr}ngOnChanges(r){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,e.NF)(this.platformId))return this.width=this.getApproximateAxisWidth(),void this.dimensionsChanged.emit({width:this.width});const r=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);r!==this.width&&(this.width=r,this.dimensionsChanged.emit({width:r}),setTimeout(()=>this.updateDims()))}update(){const r=this.scale,b=this.orient===Wr.Top||this.orient===Wr.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:r.tickFormat?r.tickFormat.apply(r,this.tickArguments):function(B){return"Date"===B.constructor.name?B.toLocaleDateString():B.toLocaleString()},this.adjustedScale=r.bandwidth?B=>{const K=r(B)+.5*r.bandwidth();if(this.wrapTicks&&B.toString().length>this.maxTickLength){const Te=this.tickChunks(B).length;if(1===Te)return K;const Wt=.5*r.bandwidth()-8*Te*.5;return r(B)+Wt}return K}:r,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case Wr.Top:case Wr.Bottom:this.transform=function(B){return"translate("+this.adjustedScale(B)+",0)"},this.textAnchor=Ts.Middle,this.y2=this.innerTickSize*b,this.y1=this.tickSpacing*b,this.dy=b<0?"0em":".71em";break;case Wr.Left:this.transform=function(B){return"translate(0,"+this.adjustedScale(B)+")"},this.textAnchor=Ts.End,this.x2=this.innerTickSize*-b,this.x1=this.tickSpacing*-b,this.dy=".32em";break;case Wr.Right:this.transform=function(B){return"translate(0,"+this.adjustedScale(B)+")"},this.textAnchor=Ts.Start,this.x2=this.innerTickSize*-b,this.x1=this.tickSpacing*-b,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(r=>r.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(r=>r.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=Ic(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let r;const b=this.getMaxTicks(20),B=this.getMaxTicks(50);return this.tickValues?r=this.tickValues:this.scale.ticks?r=this.scale.ticks.apply(this.scale,[B]):(r=this.scale.domain(),r=P1(r,b)),r}getMaxTicks(r){return Math.floor(this.height/r)}tickTransform(r){return`translate(${this.adjustedScale(r)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(r){return this.trimTicks?Xd(r,this.maxTickLength):r}getApproximateAxisWidth(){return 7*Math.max(...this.ticks.map(B=>this.tickTrim(this.tickFormat(B)).length))}tickChunks(r){if(r.toString().length>this.maxTickLength&&this.scale.bandwidth){const b=this.maxTickLength,B=Math.floor(this.scale.bandwidth()/15);return B<=1?[this.tickTrim(r)]:nu(r,b,Math.min(B,5))}return[this.tickFormat(r)]}}return u.\u0275fac=function(r){return new(r||u)(t.Y36(t.Lbi))},u.\u0275cmp=t.Xpm({type:u,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(r,b){if(1&r&&t.Gf(x1,5),2&r){let B;t.iGM(B=t.CRH())&&(b.ticksElement=B.first)}},inputs:{scale:"scale",orient:"orient",tickArguments:"tickArguments",tickValues:"tickValues",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[t.TTD],attrs:zd,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],[4,"ngIf"],["stroke-width","0.01"],[4,"ngIf","ngIfThen","ngIfElse"],["tmplMultilineTick",""],["tmplSinglelineTick",""],[4,"ngIf","ngIfElse"],["x","0",4,"ngFor","ngForOf"],["x","0"],[1,"reference-area"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(r,b){1&r&&(t.O4$(),t.TgZ(0,"g",null,0),t.YNc(2,H,2,2,"g",1),t.qZA(),t.YNc(3,G,1,2,"path",2),t.YNc(4,oi,2,2,"g",3),t.YNc(5,Vi,2,1,"g",3)),2&r&&(t.xp6(2),t.Q6J("ngForOf",b.ticks),t.xp6(1),t.Q6J("ngIf",b.referenceLineLength>1&&b.refMax&&b.refMin&&b.showRefLines),t.xp6(1),t.Q6J("ngForOf",b.ticks),t.xp6(1),t.Q6J("ngForOf",b.referenceLines))},dependencies:[e.sg,e.O5],encapsulation:2,changeDetection:0}),u})(),R1=(()=>{class u{constructor(){this.showGridLines=!1,this.yOrient=Wr.Left,this.yAxisOffset=0,this.wrapTicks=!1,this.dimensionsChanged=new t.vpe,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(r){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),this.yOrient===Wr.Right?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):this.transform=`translate(${this.offset} , 0)`,void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:r}){r!==this.labelOffset&&this.yOrient===Wr.Right?(this.labelOffset=r+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:r})},0)):r!==this.labelOffset&&(this.labelOffset=r,setTimeout(()=>{this.dimensionsChanged.emit({width:r})},0))}}return u.\u0275fac=function(r){return new(r||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(r,b){if(1&r&&t.Gf(au,5),2&r){let B;t.iGM(B=t.CRH())&&(b.ticksComponent=B.first)}},inputs:{yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showGridLines:"showGridLines",showLabel:"showLabel",labelText:"labelText",yAxisTickCount:"yAxisTickCount",yOrient:"yOrient",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels",yAxisOffset:"yAxisOffset",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[t.TTD],attrs:Ln,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","wrapTicks","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(r,b){1&r&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,In,1,15,"g",0),t.YNc(2,pn,1,5,"g",1),t.qZA()),2&r&&(t.uIk("class",b.yAxisClassName)("transform",b.transform),t.xp6(1),t.Q6J("ngIf",b.yScale),t.xp6(1),t.Q6J("ngIf",b.showLabel))},dependencies:[au,iu,e.O5],encapsulation:2,changeDetection:0}),u})(),Kf=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[e.ez]]}),u})();var al=(()=>{return(u=al||(al={})).popover="popover",u.tooltip="tooltip",al;var u})(),oc=(()=>{return(u=oc||(oc={}))[u.all="all"]="all",u[u.focus="focus"]="focus",u[u.mouseover="mouseover"]="mouseover",oc;var u})();let $d=(()=>{class u{constructor(r,b,B){this.tooltipService=r,this.viewContainerRef=b,this.renderer=B,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Jn.Top,this.tooltipAlignment=Jn.Center,this.tooltipType=al.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=oc.all,this.tooltipImmediateExit=!1,this.show=new t.vpe,this.hide=new t.vpe}get listensForFocus(){return this.tooltipShowEvent===oc.all||this.tooltipShowEvent===oc.focus}get listensForHover(){return this.tooltipShowEvent===oc.all||this.tooltipShowEvent===oc.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(r){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(r))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(r){if(this.component||this.tooltipDisabled)return;const b=r?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?400:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const B=this.createBoundOptions();this.component=this.tooltipService.create(B),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},b)}addHideListeners(r){this.mouseEnterContentEvent=this.renderer.listen(r,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(r,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",b=>{r.contains(b.target)||this.hideTooltip()}))}hideTooltip(r=!1){if(!this.component)return;const b=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),r?b():this.timeout=setTimeout(b,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return u.\u0275fac=function(r){return new(r||u)(t.Y36(_0),t.Y36(t.s_b),t.Y36(t.Qsj))},u.\u0275dir=t.lG2({type:u,selectors:[["","ngx-tooltip",""]],hostBindings:function(r,b){1&r&&t.NdJ("focusin",function(){return b.onFocus()})("blur",function(){return b.onBlur()})("mouseenter",function(){return b.onMouseEnter()})("mouseleave",function(K){return b.onMouseLeave(K.target)})("click",function(){return b.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipTemplate:"tooltipTemplate",tooltipShowEvent:"tooltipShowEvent",tooltipContext:"tooltipContext",tooltipImmediateExit:"tooltipImmediateExit"},outputs:{show:"show",hide:"hide"}}),u})(),N1=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({providers:[Wf,_0],imports:[[e.ez]]}),u})();const b0={};function rl(){let u=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return u=`a${u}`,b0[u]?rl():(b0[u]=!0,u)}var Ja=(()=>{return(u=Ja||(Ja={})).Vertical="vertical",u.Horizontal="horizontal",Ja;var u})();let e2=(()=>{class u{constructor(){this.orientation=Ja.Vertical}ngOnChanges(r){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%",this.orientation===Ja.Horizontal?this.x2="100%":this.orientation===Ja.Vertical&&(this.y1="100%")}}return u.\u0275fac=function(r){return new(r||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[t.TTD],attrs:Cn,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(r,b){1&r&&(t.O4$(),t.TgZ(0,"linearGradient",0),t.YNc(1,ea,1,5,"stop",1),t.qZA()),2&r&&(t.Q6J("id",b.name),t.uIk("x1",b.x1)("y1",b.y1)("x2",b.x2)("y2",b.y2),t.xp6(1),t.Q6J("ngForOf",b.stops))},dependencies:[e.sg],encapsulation:2,changeDetection:0}),u})(),x0=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{width:"width",height:"height",x:"x",y:"y"},attrs:kr,decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(r,b){1&r&&(t.O4$(),t._UZ(0,"rect",0)),2&r&&t.uIk("height",b.height)("width",b.width)("x",b.x)("y",b.y)},encapsulation:2,changeDetection:0}),u})();var Ol=(()=>{return(u=Ol||(Ol={})).Odd="odd",u.Even="even",Ol;var u})();let ru,qf=(()=>{class u{ngOnChanges(r){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(r=>{let b,B,K,Te,st,jt=Ol.Odd;if(this.orient===Ja.Vertical){const Wt=this.xScale(r.name);Number.parseInt((Wt/this.xScale.step()).toString(),10)%2==1&&(jt=Ol.Even),b=this.xScale.bandwidth()*this.xScale.paddingInner(),B=this.xScale.bandwidth()+b,K=this.dims.height,Te=this.xScale(r.name)-b/2,st=0}else if(this.orient===Ja.Horizontal){const Wt=this.yScale(r.name);Number.parseInt((Wt/this.yScale.step()).toString(),10)%2==1&&(jt=Ol.Even),b=this.yScale.bandwidth()*this.yScale.paddingInner(),B=this.dims.width,K=this.yScale.bandwidth()+b,Te=0,st=this.yScale(r.name)-b/2}return{name:r.name,class:jt,height:K,width:B,x:Te,y:st}})}}return u.\u0275fac=function(r){return new(r||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["g","ngx-charts-grid-panel-series",""]],inputs:{data:"data",dims:"dims",xScale:"xScale",yScale:"yScale",orient:"orient"},features:[t.TTD],attrs:nc,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(r,b){1&r&&t.YNc(0,Qo,1,10,"g",0),2&r&&t.Q6J("ngForOf",b.gridPanels)},dependencies:[x0,e.sg],encapsulation:2,changeDetection:0}),u})();typeof window<"u"?ru=window:typeof global<"u"&&(ru=global);let As=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[e.ez,Kf,N1],e.ez,Kf,N1]}),u})();function n3({width:u,height:A,margins:r,showXAxis:b=!1,showYAxis:B=!1,xAxisHeight:K=0,yAxisWidth:Te=0,showXLabel:st=!1,showYLabel:jt=!1,showLegend:Wt=!1,legendType:ci=xn.Ordinal,legendPosition:fi=Dc.Right,columns:_i=12}){let Ti=r[3],Ji=u,vn=A-r[0]-r[2];return Wt&&fi===Dc.Right&&(_i-=ci===xn.Ordinal?2:1),Ji=Ji*_i/12,Ji=Ji-r[1]-r[3],b&&(vn-=5,vn-=K,st&&(vn-=30)),B&&(Ji-=5,Ji-=Te,Ti+=Te,Ti+=10,jt&&(Ji-=30,Ti+=30)),Ji=Math.max(0,Ji),vn=Math.max(0,vn),{width:Math.floor(Ji),height:Math.floor(vn),xOffset:Math.floor(Ti)}}const a3=[{name:"vivid",selectable:!0,group:xn.Ordinal,domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:xn.Ordinal,domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:xn.Ordinal,domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:xn.Ordinal,domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:xn.Linear,domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:xn.Linear,domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:xn.Linear,domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:xn.Ordinal,domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:xn.Ordinal,domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:xn.Ordinal,domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:xn.Ordinal,domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:xn.Ordinal,domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:xn.Ordinal,domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:xn.Ordinal,domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:xn.Ordinal,domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class su{constructor(A,r,b,B){"string"==typeof A&&(A=a3.find(K=>K.name===A)),this.colorDomain=A.domain,this.scaleType=r,this.domain=b,this.customColors=B,this.scale=this.generateColorScheme(A,r,this.domain)}generateColorScheme(A,r,b){let B;switch("string"==typeof A&&(A=a3.find(K=>K.name===A)),r){case xn.Quantile:B=kd().range(A.domain).domain(b);break;case xn.Ordinal:B=y1().range(A.domain).domain(b);break;case xn.Linear:{const K=[...A.domain];1===K.length&&(K.push(K[0]),this.colorDomain=K);const Te=K2(0,1,1/K.length);B=tc().range(K).domain(Te)}}return B}getColor(A){if(null==A)throw new Error("Value can not be null");if(this.scaleType===xn.Linear){const r=tc().domain(this.domain).range([0,1]);return this.scale(r(A))}{if("function"==typeof this.customColors)return this.customColors(A);const r=A.toString();let b;return this.customColors&&this.customColors.length>0&&(b=this.customColors.find(B=>B.name.toLowerCase()===r.toLowerCase())),b?b.value:this.scale(A)}}getLinearGradientStops(A,r){void 0===r&&(r=this.domain[0]);const b=tc().domain(this.domain).range([0,1]),B=nl().domain(this.colorDomain).range([0,1]),K=this.getColor(A),Te=b(r),st=this.getColor(r),jt=b(A);let Wt=1,ci=Te;const fi=[];for(fi.push({color:st,offset:Te,originalOffset:Te,opacity:1});ci=(jt-B.bandwidth()).toFixed(4))break;fi.push({color:_i,offset:Ti,opacity:1}),ci=Ti,Wt++}}if(fi[fi.length-1].offset<100&&fi.push({color:K,offset:jt,opacity:1}),jt===Te)fi[0].offset=0,fi[1].offset=100;else if(100!==fi[fi.length-1].offset)for(const _i of fi)_i.offset=(_i.offset-Te)/(jt-Te)*100;return fi}}let Pl=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[As]]}),u})(),o3=(()=>{class u{constructor(r){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.hasGradient=!1,this.hideBar=!1,this.element=r.nativeElement}ngOnChanges(r){r.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+rl().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl(),this.checkToHideBar()}loadAnimation(){this.path=this.getStartingPath(),setTimeout(this.update.bind(this),100)}updatePathEl(){const r=function dt(u){return"string"==typeof u?new Yi([[document.querySelector(u)]],[document.documentElement]):new Yi([[u]],en)}(this.element).select(".bar"),b=this.getPath();this.animations?r.transition().duration(500).attr("d",b):r.attr("d",b)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.getStartOpacity()},{offset:100,color:this.fill,opacity:1}]}getStartingPath(){if(!this.animations)return this.getPath();let b,r=this.getRadius();return this.roundEdges?this.orientation===Ja.Vertical?(r=Math.min(this.height,r),b=Ic(this.x,this.y+this.height,this.width,1,0,this.edges)):this.orientation===Ja.Horizontal&&(r=Math.min(this.width,r),b=Ic(this.x,this.y,1,this.height,0,this.edges)):this.orientation===Ja.Vertical?b=Ic(this.x,this.y+this.height,this.width,1,0,this.edges):this.orientation===Ja.Horizontal&&(b=Ic(this.x,this.y,1,this.height,0,this.edges)),b}getPath(){let b,r=this.getRadius();return this.roundEdges?this.orientation===Ja.Vertical?(r=Math.min(this.height,r),b=Ic(this.x,this.y,this.width,this.height,r,this.edges)):this.orientation===Ja.Horizontal&&(r=Math.min(this.width,r),b=Ic(this.x,this.y,this.width,this.height,r,this.edges)):b=Ic(this.x,this.y,this.width,this.height,r,this.edges),b}getRadius(){let r=0;return this.roundEdges&&this.height>5&&this.width>5&&(r=Math.floor(Math.min(5,this.height/2,this.width/2))),r}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let r=[!1,!1,!1,!1];return this.roundEdges&&(this.orientation===Ja.Vertical?r=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:this.orientation===Ja.Horizontal&&(r=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),r}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&(this.orientation===Ja.Vertical&&0===this.height||this.orientation===Ja.Horizontal&&0===this.width)}}return u.\u0275fac=function(r){return new(r||u)(t.Y36(t.SBq))},u.\u0275cmp=t.Xpm({type:u,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(r,b){1&r&&t.NdJ("mouseenter",function(){return b.onMouseEnter()})("mouseleave",function(){return b.onMouseLeave()})},inputs:{fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",stops:"stops",animations:"animations",ariaLabel:"ariaLabel",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[t.TTD],attrs:K3,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(r,b){1&r&&(t.YNc(0,Q3,2,3,"defs",0),t.O4$(),t.TgZ(1,"path",1),t.NdJ("click",function(){return b.select.emit(b.data)}),t.qZA()),2&r&&(t.Q6J("ngIf",b.hasGradient),t.xp6(1),t.ekj("active",b.isActive)("hidden",b.hideBar),t.uIk("d",b.path)("aria-label",b.ariaLabel)("fill",b.hasGradient?b.gradientFill:b.fill))},dependencies:[e2,e.O5],encapsulation:2,changeDetection:0}),u})();var sc=(()=>{return(u=sc||(sc={})).Standard="standard",u.Normalized="normalized",u.Stacked="stacked",sc;var u})(),Jo=(()=>{return(u=Jo||(Jo={})).positive="positive",u.negative="negative",Jo;var u})();let Op=(()=>{class u{constructor(r){this.dimensionsChanged=new t.vpe,this.horizontalPadding=2,this.verticalPadding=5,this.element=r.nativeElement}ngOnChanges(r){this.update()}getSize(){return{height:this.element.getBoundingClientRect().height,width:this.element.getBoundingClientRect().width,negative:this.value<0}}ngAfterViewInit(){this.dimensionsChanged.emit(this.getSize())}update(){this.formatedValue=this.valueFormatting?this.valueFormatting(this.value):Jd(this.value),"horizontal"===this.orientation?(this.x=this.barX+this.barWidth,this.value<0?(this.x=this.x-this.horizontalPadding,this.textAnchor="end"):(this.x=this.x+this.horizontalPadding,this.textAnchor="start"),this.y=this.barY+this.barHeight/2):(this.x=this.barX+this.barWidth/2,this.y=this.barY+this.barHeight,this.value<0?(this.y=this.y+this.verticalPadding,this.textAnchor="end"):(this.y=this.y-this.verticalPadding,this.textAnchor="start"),this.transform=`rotate(-45, ${this.x} , ${this.y})`)}}return u.\u0275fac=function(r){return new(r||u)(t.Y36(t.SBq))},u.\u0275cmp=t.Xpm({type:u,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:[t.TTD],attrs:q3,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(r,b){1&r&&(t.O4$(),t.TgZ(0,"text",0),t._uU(1),t.qZA()),2&r&&(t.uIk("text-anchor",b.textAnchor)("transform",b.transform)("x",b.x)("y",b.y),t.xp6(1),t.hij(" ",b.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),u})(),Mn=(()=>{class u{constructor(r){this.platformId=r,this.type=sc.Standard,this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.dataLabelHeightChanged=new t.vpe,this.barsForDataLabels=[],this.barOrientation=Ja,this.isSSR=!1}ngOnInit(){(0,e.PM)(this.platformId)&&(this.isSSR=!0)}ngOnChanges(r){this.update()}update(){let r;this.updateTooltipSettings(),this.series.length&&(r=this.xScale.bandwidth()),r=Math.round(r);const b=Math.max(this.yScale.domain()[0],0),B={[Jo.positive]:0,[Jo.negative]:0};let Te,K=Jo.positive;this.type===sc.Normalized&&(Te=this.series.map(st=>st.value).reduce((st,jt)=>st+jt,0)),this.bars=this.series.map((st,jt)=>{let Wt=st.value;const ci=this.getLabel(st),fi=Jd(ci);K=Wt>0?Jo.positive:Jo.negative;const Ti={value:Wt,label:ci,roundEdges:this.roundEdges,data:st,width:r,formattedLabel:fi,height:0,x:0,y:0};if(this.type===sc.Standard)Ti.height=Math.abs(this.yScale(Wt)-this.yScale(b)),Ti.x=this.xScale(ci),Ti.y=this.yScale(Wt<0?0:Wt);else if(this.type===sc.Stacked){const vn=B[K],Li=vn+Wt;B[K]+=Wt,Ti.height=this.yScale(vn)-this.yScale(Li),Ti.x=0,Ti.y=this.yScale(Li),Ti.offset0=vn,Ti.offset1=Li}else if(this.type===sc.Normalized){let vn=B[K],Li=vn+Wt;B[K]+=Wt,Te>0?(vn=100*vn/Te,Li=100*Li/Te):(vn=0,Li=0),Ti.height=this.yScale(vn)-this.yScale(Li),Ti.x=0,Ti.y=this.yScale(Li),Ti.offset0=vn,Ti.offset1=Li,Wt=(Li-vn).toFixed(2)+"%"}this.colors.scaleType===xn.Ordinal?Ti.color=this.colors.getColor(ci):this.type===sc.Standard?(Ti.color=this.colors.getColor(Wt),Ti.gradientStops=this.colors.getLinearGradientStops(Wt)):(Ti.color=this.colors.getColor(Ti.offset1),Ti.gradientStops=this.colors.getLinearGradientStops(Ti.offset1,Ti.offset0));let Ji=fi;return Ti.ariaLabel=fi+" "+Wt.toLocaleString(),null!=this.seriesName&&(Ji=`${this.seriesName} \u2022 ${fi}`,Ti.data.series=this.seriesName,Ti.ariaLabel=this.seriesName+" "+Ti.ariaLabel),Ti.tooltipText=this.tooltipDisabled?void 0:`\n ${function v0(u){return u.toLocaleString().replace(/[&'`"<>]/g,A=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[A]))}(Ji)}\n ${this.dataLabelFormatting?this.dataLabelFormatting(Wt):Wt.toLocaleString()}\n `,Ti}),this.updateDataLabels()}updateDataLabels(){if(this.type===sc.Stacked){this.barsForDataLabels=[];const r={};r.series=this.seriesName;const b=this.series.map(K=>K.value).reduce((K,Te)=>Te>0?K+Te:K,0),B=this.series.map(K=>K.value).reduce((K,Te)=>Te<0?K+Te:K,0);r.total=b+B,r.x=0,r.y=0,r.height=this.yScale(r.total>0?b:B),r.width=this.xScale.bandwidth(),this.barsForDataLabels.push(r)}else this.barsForDataLabels=this.series.map(r=>{const b={};return b.series=this.seriesName??r.label,b.total=r.value,b.x=this.xScale(r.label),b.y=this.yScale(0),b.height=this.yScale(b.total)-this.yScale(0),b.width=this.xScale.bandwidth(),b})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:Jn.Top,this.tooltipType=this.tooltipDisabled?void 0:al.tooltip}isActive(r){return!!this.activeEntries&&void 0!==this.activeEntries.find(B=>r.name===B.name&&r.value===B.value)}onClick(r){this.select.emit(r)}getLabel(r){return r.label?r.label:r.name}trackBy(r,b){return b.label}trackDataLabelBy(r,b){return r+"#"+b.series+"#"+b.total}}return u.\u0275fac=function(r){return new(r||u)(t.Y36(t.Lbi))},u.\u0275cmp=t.Xpm({type:u,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{dims:"dims",type:"type",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipDisabled:"tooltipDisabled",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",animations:"animations",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},features:[t.TTD],attrs:d0,decls:3,vars:3,consts:[[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar","","ngx-tooltip","",3,"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(r,b){1&r&&(t.YNc(0,i4,2,2,"g",0),t.YNc(1,uf,2,2,"g",0),t.YNc(2,ff,2,2,"g",0)),2&r&&(t.Q6J("ngIf",!b.isSSR),t.xp6(1),t.Q6J("ngIf",b.isSSR),t.xp6(1),t.Q6J("ngIf",b.showDataLabel))},dependencies:[o3,Op,e.O5,e.sg,$d],encapsulation:2,data:{animation:[(0,h.X$)("animationState",[(0,h.eR)(":leave",[(0,h.oB)({opacity:1}),(0,h.jt)(500,(0,h.oB)({opacity:0}))])])]},changeDetection:0}),u})(),c3=(()=>{class u extends tu{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=Dc.Right,this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.wrapTicks=!1,this.activate=new t.vpe,this.deactivate=new t.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=n3({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 r=this.xDomain.length/(this.dims.width/this.barPadding+1);return nl().range([0,this.dims.width]).paddingInner(r).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const r=tc().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?r.nice():r}getXDomain(){return this.results.map(r=>r.label)}getYDomain(){const r=this.results.map(K=>K.value);let b=this.yScaleMin?Math.min(this.yScaleMin,...r):Math.min(0,...r);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(b=Math.min(b,...this.yAxisTicks));let B=this.yScaleMax?Math.max(this.yScaleMax,...r):Math.max(0,...r);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(B=Math.max(B,...this.yAxisTicks)),[b,B]}onClick(r){this.select.emit(r)}setColors(){let r;r=this.schemeType===xn.Ordinal?this.xDomain:this.yDomain,this.colors=new su(this.scheme,this.schemeType,r,this.customColors)}getLegendOptions(){const r={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return r.scaleType===xn.Ordinal?(r.domain=this.xDomain,r.colors=this.colors,r.title=this.legendTitle):(r.domain=this.yDomain,r.colors=this.colors.scale),r}updateYAxisWidth({width:r}){this.yAxisWidth=r,this.update()}updateXAxisHeight({height:r}){this.xAxisHeight=r,this.update()}onDataLabelMaxHeightChanged(r){r.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,r.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,r.size.height),r.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(r,b=!1){r=this.results.find(K=>b?K.label===r.name:K.name===r.name),!(this.activeEntries.findIndex(K=>K.name===r.name&&K.value===r.value&&K.series===r.series)>-1)&&(this.activeEntries=[r,...this.activeEntries],this.activate.emit({value:r,entries:this.activeEntries}))}onDeactivate(r,b=!1){r=this.results.find(K=>b?K.label===r.name:K.name===r.name);const B=this.activeEntries.findIndex(K=>K.name===r.name&&K.value===r.value&&K.series===r.series);this.activeEntries.splice(B,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:r,entries:this.activeEntries})}}return u.\u0275fac=function(){let A;return function(b){return(A||(A=t.n5z(u)))(b||u)}}(),u.\u0275cmp=t.Xpm({type:u,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(r,b,B){if(1&r&&t.Suo(B,Ms,5),2&r){let K;t.iGM(K=t.CRH())&&(b.tooltipTemplate=K.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",gradient:"gradient",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero",wrapTicks:"wrapTicks"},outputs:{activate:"activate",deactivate:"deactivate"},features:[t.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","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","wrapTicks","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","wrapTicks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","wrapTicks","dimensionsChanged"]],template:function(r,b){1&r&&(t.TgZ(0,"ngx-charts-chart",0),t.NdJ("legendLabelClick",function(K){return b.onClick(K)})("legendLabelActivate",function(K){return b.onActivate(K,!0)})("legendLabelDeactivate",function(K){return b.onDeactivate(K,!0)}),t.O4$(),t.TgZ(1,"g",1),t.YNc(2,Ud,1,12,"g",2),t.YNc(3,a4,1,10,"g",3),t.TgZ(4,"g",4),t.NdJ("activate",function(K){return b.onActivate(K)})("deactivate",function(K){return b.onDeactivate(K)})("select",function(K){return b.onClick(K)})("dataLabelHeightChanged",function(K){return b.onDataLabelMaxHeightChanged(K)}),t.qZA()()()),2&r&&(t.Q6J("view",t.WLB(22,E1,b.width,b.height))("showLegend",b.legend)("legendOptions",b.legendOptions)("activeEntries",b.activeEntries)("animations",b.animations),t.xp6(1),t.uIk("transform",b.transform),t.xp6(1),t.Q6J("ngIf",b.xAxis),t.xp6(1),t.Q6J("ngIf",b.yAxis),t.xp6(1),t.Q6J("xScale",b.xScale)("yScale",b.yScale)("colors",b.colors)("series",b.results)("dims",b.dims)("gradient",b.gradient)("tooltipDisabled",b.tooltipDisabled)("tooltipTemplate",b.tooltipTemplate)("showDataLabel",b.showDataLabel)("dataLabelFormatting",b.dataLabelFormatting)("activeEntries",b.activeEntries)("roundEdges",b.roundEdges)("animations",b.animations)("noBarWhenZero",b.noBarWhenZero))},dependencies:[ss,jf,R1,Mn,e.O5],styles:[Ph],encapsulation:2,changeDetection:0}),u})(),J4=(()=>{class u extends tu{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=Dc.Right,this.tooltipDisabled=!1,this.scaleType=xn.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.wrapTicks=!1,this.activate=new t.vpe,this.deactivate=new t.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0},this.isSSR=!1,this.barOrientation=Ja,this.trackBy=(r,b)=>b.name}ngOnInit(){(0,e.PM)(this.platformId)&&(this.isSSR=!0)}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=n3({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.groupScale=this.getGroupScale(),this.innerScale=this.getInnerScale(),this.valueScale=this.getValueScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}onDataLabelMaxHeightChanged(r,b){r.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,r.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,r.size.height),b===this.results.length-1&&setTimeout(()=>this.update())}getGroupScale(){const r=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return nl().rangeRound([0,this.dims.width]).paddingInner(r).paddingOuter(r/2).domain(this.groupDomain)}getInnerScale(){const r=this.groupScale.bandwidth(),b=this.innerDomain.length/(r/this.barPadding+1);return nl().rangeRound([0,r]).paddingInner(b).domain(this.innerDomain)}getValueScale(){const r=tc().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?r.nice():r}getGroupDomain(){const r=[];for(const b of this.results)r.includes(b.label)||r.push(b.label);return r}getInnerDomain(){const r=[];for(const b of this.results)for(const B of b.series)r.includes(B.label)||r.push(B.label);return r}getValueDomain(){const r=[];for(const K of this.results)for(const Te of K.series)r.includes(Te.value)||r.push(Te.value);return[Math.min(0,...r),this.yScaleMax?Math.max(this.yScaleMax,...r):Math.max(0,...r)]}groupTransform(r){return`translate(${this.groupScale(r.label)}, 0)`}onClick(r,b){b&&(r.series=b.name),this.select.emit(r)}setColors(){let r;r=this.schemeType===xn.Ordinal?this.innerDomain:this.valueDomain,this.colors=new su(this.scheme,this.schemeType,r,this.customColors)}getLegendOptions(){const r={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return r.scaleType===xn.Ordinal?(r.domain=this.innerDomain,r.colors=this.colors,r.title=this.legendTitle):(r.domain=this.valueDomain,r.colors=this.colors.scale),r}updateYAxisWidth({width:r}){this.yAxisWidth=r,this.update()}updateXAxisHeight({height:r}){this.xAxisHeight=r,this.update()}onActivate(r,b,B=!1){const K=Object.assign({},r);b&&(K.series=b.name);const Te=this.results.map(st=>st.series).flat().filter(st=>B?st.label===K.name:st.name===K.name&&st.series===K.series);this.activeEntries=[...Te],this.activate.emit({value:K,entries:this.activeEntries})}onDeactivate(r,b,B=!1){const K=Object.assign({},r);b&&(K.series=b.name),this.activeEntries=this.activeEntries.filter(Te=>B?Te.label!==K.name:!(Te.name===K.name&&Te.series===K.series)),this.deactivate.emit({value:K,entries:this.activeEntries})}}return u.\u0275fac=function(){let A;return function(b){return(A||(A=t.n5z(u)))(b||u)}}(),u.\u0275cmp=t.Xpm({type:u,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(r,b,B){if(1&r&&t.Suo(B,Ms,5),2&r){let K;t.iGM(K=t.CRH())&&(b.tooltipTemplate=K.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",scaleType:"scaleType",gradient:"gradient",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",groupPadding:"groupPadding",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero",wrapTicks:"wrapTicks"},outputs:{activate:"activate",deactivate:"deactivate"},features:[t.qOj],decls:7,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","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","wrapTicks","dimensionsChanged",4,"ngIf"],[4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","wrapTicks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","wrapTicks","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",4,"ngFor","ngForOf","ngForTrackBy"],["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(r,b){1&r&&(t.TgZ(0,"ngx-charts-chart",0),t.NdJ("legendLabelActivate",function(K){return b.onActivate(K,void 0,!0)})("legendLabelDeactivate",function(K){return b.onDeactivate(K,void 0,!0)})("legendLabelClick",function(K){return b.onClick(K)}),t.O4$(),t.TgZ(1,"g",1),t._UZ(2,"g",2),t.YNc(3,fp,1,11,"g",3),t.YNc(4,r4,1,10,"g",4),t.YNc(5,s4,2,2,"g",5),t.qZA(),t.YNc(6,l4,2,2,"g",5),t.qZA()),2&r&&(t.Q6J("view",t.WLB(15,E1,b.width,b.height))("showLegend",b.legend)("legendOptions",b.legendOptions)("activeEntries",b.activeEntries)("animations",b.animations),t.xp6(1),t.uIk("transform",b.transform),t.xp6(1),t.Q6J("xScale",b.groupScale)("yScale",b.valueScale)("data",b.results)("dims",b.dims)("orient",b.barOrientation.Vertical),t.xp6(1),t.Q6J("ngIf",b.xAxis),t.xp6(1),t.Q6J("ngIf",b.yAxis),t.xp6(1),t.Q6J("ngIf",!b.isSSR),t.xp6(1),t.Q6J("ngIf",b.isSSR))},dependencies:[ss,qf,jf,R1,Mn,e.O5,e.sg],styles:[Ph],encapsulation:2,data:{animation:[(0,h.X$)("animationState",[(0,h.eR)(":leave",[(0,h.oB)({opacity:1,transform:"*"}),(0,h.jt)(500,(0,h.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),u})(),l3=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[As]]}),u})();Sh();let d3=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[As]]}),u})(),u3=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[As]]}),u})(),im=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[As]]}),u})(),m3=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[As]]}),u})();Math;let S0=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[As]]}),u})(),_3=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[As,S0,m3]]}),u})(),b3=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[As]]}),u})(),lm=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[As]]}),u})(),x3=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[As,S0,l3]]}),u})(),um=(()=>{class u{constructor(){!function hm(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[As,Pl,l3,d3,u3,im,m3,_3,b3,S0,lm,x3]}),u})()},658:(We,q,m)=>{"use strict";function t(L,D,z,V,Y,j,Q){try{var J=L[j](Q),ee=J.value}catch(me){return void z(me)}J.done?D(ee):Promise.resolve(ee).then(V,Y)}m.d(q,{uU:()=>w,OF:()=>C});var _=m(4650),T=m(6895),s=m(3259);function y(L,D){if(1&L&&_._UZ(0,"canvas",1),2&L){const z=_.oxw();_.Q6J("qrCode",z.value)("qrCodeErrorCorrectionLevel",z.errorCorrectionLevel)("qrCodeCenterImageSrc",z.centerImageSrc)("qrCodeCenterImageWidth",z.centerImageSize)("qrCodeCenterImageHeight",z.centerImageSize)("qrCodeMargin",z.margin)("width",z.size)("height",z.size)("darkColor",z.darkColor)("lightColor",z.lightColor)}}const h=/^#(?:[0-9a-fA-F]{3,4}){1,2}$/;let P=(()=>{class L{constructor(z){this.viewContainerRef=z,this.errorCorrectionLevel=L.DEFAULT_ERROR_CORRECTION_LEVEL,this.darkColor="#000000FF",this.lightColor="#FFFFFFFF",this.margin=16}ngOnChanges(){var z=this;return function e(L){return function(){var D=this,z=arguments;return new Promise(function(V,Y){var j=L.apply(D,z);function Q(ee){t(j,V,Y,Q,J,"next",ee)}function J(ee){t(j,V,Y,Q,J,"throw",ee)}Q(void 0)})}}(function*(){if(!z.value)return;z.version&&z.version>40?(console.warn("[qrCode] max version is 40, clamping"),z.version=40):z.version&&z.version<1?(console.warn("[qrCode] min version is 1, clamping"),z.version=1):void 0!==z.version&&isNaN(z.version)&&(console.warn("[qrCode] version should be set to a number, defaulting to auto"),z.version=void 0);const V=z.viewContainerRef.element.nativeElement;if(!V)return;const Y=V.getContext("2d");Y&&Y.clearRect(0,0,Y.canvas.width,Y.canvas.height);const j=z.errorCorrectionLevel??L.DEFAULT_ERROR_CORRECTION_LEVEL,Q=h.test(z.darkColor)?z.darkColor:void 0,J=h.test(z.lightColor)?z.lightColor:void 0;(0,_.X6Q)()&&(!Q&&z.darkColor&&console.error("[ng-qrcode] darkColor set to invalid value, must be RGBA hex color string, eg: #3050A1FF"),!J&&z.lightColor&&console.error("[ng-qrcode] lightColor set to invalid value, must be RGBA hex color string, eg: #3050A130")),yield s.toCanvas(V,z.value,{version:z.version,errorCorrectionLevel:j,width:z.width,margin:z.margin,color:{dark:Q,light:J}});const ee=z.centerImageSrc,me=d(z.centerImageWidth,L.DEFAULT_CENTER_IMAGE_SIZE),re=d(z.centerImageHeight,L.DEFAULT_CENTER_IMAGE_SIZE);if(ee&&Y){z.centerImage||(z.centerImage=new Image(me,re));const ie=z.centerImage;ee!==z.centerImage.src&&(ie.src=ee),me!==z.centerImage.width&&(ie.width=me),re!==z.centerImage.height&&(ie.height=re);const se=()=>{Y.drawImage(ie,V.width/2-me/2,V.height/2-re/2,me,re)};ie.onload=se,ie.complete&&se()}})()}}return L.DEFAULT_ERROR_CORRECTION_LEVEL="M",L.DEFAULT_CENTER_IMAGE_SIZE=40,L.\u0275fac=function(z){return new(z||L)(_.Y36(_.s_b))},L.\u0275dir=_.lG2({type:L,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:[_.TTD]}),L})();function d(L,D){return void 0===L||""===L?D:"string"==typeof L?parseInt(L,10):L}let w=(()=>{class L{}return L.\u0275fac=function(z){return new(z||L)},L.\u0275cmp=_.Xpm({type:L,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(z,V){1&z&&_.YNc(0,y,1,10,"canvas",0),2&z&&_.Q6J("ngIf",V.value)},dependencies:[T.O5,P],encapsulation:2}),L})(),C=(()=>{class L{}return L.\u0275fac=function(z){return new(z||L)},L.\u0275mod=_.oAB({type:L}),L.\u0275inj=_.cJS({imports:[T.ez]}),L})()},6839:(We,q,m)=>{"use strict";m.d(q,{op:()=>Gt,Vv:()=>$t,$V:()=>Je,Xd:()=>ii});var t=m(7579),e=m(4968),_=m(6451),T=m(3601),s=m(2722),y=m(1884),h=m(9718),P=m(4650),d=m(6895);function w(pt){return getComputedStyle(pt)}function C(pt,ot){for(var ft in ot){var St=ot[ft];"number"==typeof St&&(St+="px"),pt.style[ft]=St}return pt}function L(pt){var ot=document.createElement("div");return ot.className=pt,ot}var D=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function z(pt,ot){if(!D)throw new Error("No element matching method supported");return D.call(pt,ot)}function V(pt){pt.remove?pt.remove():pt.parentNode&&pt.parentNode.removeChild(pt)}function Y(pt,ot){return Array.prototype.filter.call(pt.children,function(ft){return z(ft,ot)})}var j={main:"ps",rtl:"ps__rtl",element:{thumb:function(pt){return"ps__thumb-"+pt},rail:function(pt){return"ps__rail-"+pt},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(pt){return"ps--active-"+pt},scrolling:function(pt){return"ps--scrolling-"+pt}}},Q={x:null,y:null};function J(pt,ot){var ft=pt.element.classList,St=j.state.scrolling(ot);ft.contains(St)?clearTimeout(Q[ot]):ft.add(St)}function ee(pt,ot){Q[ot]=setTimeout(function(){return pt.isAlive&&pt.element.classList.remove(j.state.scrolling(ot))},pt.settings.scrollingThreshold)}var re=function(ot){this.element=ot,this.handlers={}},ie={isEmpty:{configurable:!0}};re.prototype.bind=function(ot,ft){typeof this.handlers[ot]>"u"&&(this.handlers[ot]=[]),this.handlers[ot].push(ft),this.element.addEventListener(ot,ft,!1)},re.prototype.unbind=function(ot,ft){var St=this;this.handlers[ot]=this.handlers[ot].filter(function(gt){return!(!ft||gt===ft)||(St.element.removeEventListener(ot,gt,!1),!1)})},re.prototype.unbindAll=function(){for(var ot in this.handlers)this.unbind(ot)},ie.isEmpty.get=function(){var pt=this;return Object.keys(this.handlers).every(function(ot){return 0===pt.handlers[ot].length})},Object.defineProperties(re.prototype,ie);var se=function(){this.eventElements=[]};function ce(pt){if("function"==typeof window.CustomEvent)return new CustomEvent(pt);var ot=document.createEvent("CustomEvent");return ot.initCustomEvent(pt,!1,!1,void 0),ot}function Ce(pt,ot,ft,St,gt){var $e;if(void 0===St&&(St=!0),void 0===gt&&(gt=!1),"top"===ot)$e=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==ot)throw new Error("A proper axis should be provided");$e=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function M(pt,ot,ft,St,gt){var $e=ft[0],_t=ft[1],vt=ft[2],He=ft[3],Et=ft[4],At=ft[5];void 0===St&&(St=!0),void 0===gt&&(gt=!1);var Qt=pt.element;pt.reach[He]=null,Qt[vt]<1&&(pt.reach[He]="start"),Qt[vt]>pt[$e]-pt[_t]-1&&(pt.reach[He]="end"),ot&&(Qt.dispatchEvent(ce("ps-scroll-"+He)),ot<0?Qt.dispatchEvent(ce("ps-scroll-"+Et)):ot>0&&Qt.dispatchEvent(ce("ps-scroll-"+At)),St&&function me(pt,ot){J(pt,ot),ee(pt,ot)}(pt,He)),pt.reach[He]&&(ot||gt)&&Qt.dispatchEvent(ce("ps-"+He+"-reach-"+pt.reach[He]))}(pt,ft,$e,St,gt)}function i(pt){return parseInt(pt,10)||0}se.prototype.eventElement=function(ot){var ft=this.eventElements.filter(function(St){return St.element===ot})[0];return ft||(ft=new re(ot),this.eventElements.push(ft)),ft},se.prototype.bind=function(ot,ft,St){this.eventElement(ot).bind(ft,St)},se.prototype.unbind=function(ot,ft,St){var gt=this.eventElement(ot);gt.unbind(ft,St),gt.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(gt),1)},se.prototype.unbindAll=function(){this.eventElements.forEach(function(ot){return ot.unbindAll()}),this.eventElements=[]},se.prototype.once=function(ot,ft,St){var gt=this.eventElement(ot),$e=function(_t){gt.unbind(ft,$e),St(_t)};gt.bind(ft,$e)};var l={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator&&navigator.userAgent)};function v(pt){var ot=pt.element,ft=Math.floor(ot.scrollTop),St=ot.getBoundingClientRect();pt.containerWidth=Math.round(St.width),pt.containerHeight=Math.round(St.height),pt.contentWidth=ot.scrollWidth,pt.contentHeight=ot.scrollHeight,ot.contains(pt.scrollbarXRail)||(Y(ot,j.element.rail("x")).forEach(function(gt){return V(gt)}),ot.appendChild(pt.scrollbarXRail)),ot.contains(pt.scrollbarYRail)||(Y(ot,j.element.rail("y")).forEach(function(gt){return V(gt)}),ot.appendChild(pt.scrollbarYRail)),!pt.settings.suppressScrollX&&pt.containerWidth+pt.settings.scrollXMarginOffset=pt.railXWidth-pt.scrollbarXWidth&&(pt.scrollbarXLeft=pt.railXWidth-pt.scrollbarXWidth),pt.scrollbarYTop>=pt.railYHeight-pt.scrollbarYHeight&&(pt.scrollbarYTop=pt.railYHeight-pt.scrollbarYHeight),function k(pt,ot){var ft={width:ot.railXWidth},St=Math.floor(pt.scrollTop);ft.left=ot.isRtl?ot.negativeScrollAdjustment+pt.scrollLeft+ot.containerWidth-ot.contentWidth:pt.scrollLeft,ot.isScrollbarXUsingBottom?ft.bottom=ot.scrollbarXBottom-St:ft.top=ot.scrollbarXTop+St,C(ot.scrollbarXRail,ft);var gt={top:St,height:ot.railYHeight};ot.isScrollbarYUsingRight?gt.right=ot.isRtl?ot.contentWidth-(ot.negativeScrollAdjustment+pt.scrollLeft)-ot.scrollbarYRight-ot.scrollbarYOuterWidth-9:ot.scrollbarYRight-pt.scrollLeft:gt.left=ot.isRtl?ot.negativeScrollAdjustment+pt.scrollLeft+2*ot.containerWidth-ot.contentWidth-ot.scrollbarYLeft-ot.scrollbarYOuterWidth:ot.scrollbarYLeft+pt.scrollLeft,C(ot.scrollbarYRail,gt),C(ot.scrollbarX,{left:ot.scrollbarXLeft,width:ot.scrollbarXWidth-ot.railBorderXWidth}),C(ot.scrollbarY,{top:ot.scrollbarYTop,height:ot.scrollbarYHeight-ot.railBorderYWidth})}(ot,pt),pt.scrollbarXActive?ot.classList.add(j.state.active("x")):(ot.classList.remove(j.state.active("x")),pt.scrollbarXWidth=0,pt.scrollbarXLeft=0,ot.scrollLeft=!0===pt.isRtl?pt.contentWidth:0),pt.scrollbarYActive?ot.classList.add(j.state.active("y")):(ot.classList.remove(j.state.active("y")),pt.scrollbarYHeight=0,pt.scrollbarYTop=0,ot.scrollTop=0)}function I(pt,ot){return pt.settings.minScrollbarLength&&(ot=Math.max(ot,pt.settings.minScrollbarLength)),pt.settings.maxScrollbarLength&&(ot=Math.min(ot,pt.settings.maxScrollbarLength)),ot}function g(pt,ot){var ft=ot[0],St=ot[1],gt=ot[2],$e=ot[3],_t=ot[4],vt=ot[5],He=ot[6],Et=ot[7],At=ot[8],Qt=pt.element,zi=null,Ni=null,Mi=null;function Gi(Se){Se.touches&&Se.touches[0]&&(Se[gt]=Se.touches[0].pageY),Qt[He]=zi+Mi*(Se[gt]-Ni),J(pt,Et),v(pt),Se.stopPropagation(),Se.type.startsWith("touch")&&Se.changedTouches.length>1&&Se.preventDefault()}function Xe(){ee(pt,Et),pt[At].classList.remove(j.state.clicking),pt.event.unbind(pt.ownerDocument,"mousemove",Gi)}function It(Se,wt){zi=Qt[He],wt&&Se.touches&&(Se[gt]=Se.touches[0].pageY),Ni=Se[gt],Mi=(pt[St]-pt[ft])/(pt[$e]-pt[vt]),wt?pt.event.bind(pt.ownerDocument,"touchmove",Gi):(pt.event.bind(pt.ownerDocument,"mousemove",Gi),pt.event.once(pt.ownerDocument,"mouseup",Xe),Se.preventDefault()),pt[At].classList.add(j.state.clicking),Se.stopPropagation()}pt.event.bind(pt[_t],"mousedown",function(Se){It(Se)}),pt.event.bind(pt[_t],"touchstart",function(Se){It(Se,!0)})}var nt={"click-rail":function x(pt){pt.event.bind(pt.scrollbarY,"mousedown",function(ft){return ft.stopPropagation()}),pt.event.bind(pt.scrollbarYRail,"mousedown",function(ft){var St=ft.pageY-window.pageYOffset-pt.scrollbarYRail.getBoundingClientRect().top;pt.element.scrollTop+=(St>pt.scrollbarYTop?1:-1)*pt.containerHeight,v(pt),ft.stopPropagation()}),pt.event.bind(pt.scrollbarX,"mousedown",function(ft){return ft.stopPropagation()}),pt.event.bind(pt.scrollbarXRail,"mousedown",function(ft){var St=ft.pageX-window.pageXOffset-pt.scrollbarXRail.getBoundingClientRect().left;pt.element.scrollLeft+=(St>pt.scrollbarXLeft?1:-1)*pt.containerWidth,v(pt),ft.stopPropagation()})},"drag-thumb":function n(pt){g(pt,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),g(pt,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function W(pt){var ot=pt.element;pt.event.bind(pt.ownerDocument,"keydown",function($e){if(!($e.isDefaultPrevented&&$e.isDefaultPrevented()||$e.defaultPrevented)&&(z(ot,":hover")||z(pt.scrollbarX,":focus")||z(pt.scrollbarY,":focus"))){var _t=document.activeElement?document.activeElement:pt.ownerDocument.activeElement;if(_t){if("IFRAME"===_t.tagName)_t=_t.contentDocument.activeElement;else for(;_t.shadowRoot;)_t=_t.shadowRoot.activeElement;if(function a(pt){return z(pt,"input,[contenteditable]")||z(pt,"select,[contenteditable]")||z(pt,"textarea,[contenteditable]")||z(pt,"button,[contenteditable]")}(_t))return}var vt=0,He=0;switch($e.which){case 37:vt=$e.metaKey?-pt.contentWidth:$e.altKey?-pt.containerWidth:-30;break;case 38:He=$e.metaKey?pt.contentHeight:$e.altKey?pt.containerHeight:30;break;case 39:vt=$e.metaKey?pt.contentWidth:$e.altKey?pt.containerWidth:30;break;case 40:He=$e.metaKey?-pt.contentHeight:$e.altKey?-pt.containerHeight:-30;break;case 32:He=$e.shiftKey?pt.containerHeight:-pt.containerHeight;break;case 33:He=pt.containerHeight;break;case 34:He=-pt.containerHeight;break;case 36:He=pt.contentHeight;break;case 35:He=-pt.contentHeight;break;default:return}pt.settings.suppressScrollX&&0!==vt||pt.settings.suppressScrollY&&0!==He||(ot.scrollTop-=He,ot.scrollLeft+=vt,v(pt),function gt($e,_t){var vt=Math.floor(ot.scrollTop);if(0===$e){if(!pt.scrollbarYActive)return!1;if(0===vt&&_t>0||vt>=pt.contentHeight-pt.containerHeight&&_t<0)return!pt.settings.wheelPropagation}var He=ot.scrollLeft;if(0===_t){if(!pt.scrollbarXActive)return!1;if(0===He&&$e<0||He>=pt.contentWidth-pt.containerWidth&&$e>0)return!pt.settings.wheelPropagation}return!0}(vt,He)&&$e.preventDefault())}})},wheel:function O(pt){var ot=pt.element;function $e(_t){var vt=function St(_t){var vt=_t.deltaX,He=-1*_t.deltaY;return(typeof vt>"u"||typeof He>"u")&&(vt=-1*_t.wheelDeltaX/6,He=_t.wheelDeltaY/6),_t.deltaMode&&1===_t.deltaMode&&(vt*=10,He*=10),vt!=vt&&He!=He&&(vt=0,He=_t.wheelDelta),_t.shiftKey?[-He,-vt]:[vt,He]}(_t),He=vt[0],Et=vt[1];if(!function gt(_t,vt,He){if(!l.isWebKit&&ot.querySelector("select:focus"))return!0;if(!ot.contains(_t))return!1;for(var Et=_t;Et&&Et!==ot;){if(Et.classList.contains(j.element.consuming))return!0;var At=w(Et);if(He&&At.overflowY.match(/(scroll|auto)/)){var Qt=Et.scrollHeight-Et.clientHeight;if(Qt>0&&(Et.scrollTop>0&&He<0||Et.scrollTop0))return!0}if(vt&&At.overflowX.match(/(scroll|auto)/)){var zi=Et.scrollWidth-Et.clientWidth;if(zi>0&&(Et.scrollLeft>0&&vt<0||Et.scrollLeft0))return!0}Et=Et.parentNode}return!1}(_t.target,He,Et)){var At=!1;pt.settings.useBothWheelAxes?pt.scrollbarYActive&&!pt.scrollbarXActive?(Et?ot.scrollTop-=Et*pt.settings.wheelSpeed:ot.scrollTop+=He*pt.settings.wheelSpeed,At=!0):pt.scrollbarXActive&&!pt.scrollbarYActive&&(He?ot.scrollLeft+=He*pt.settings.wheelSpeed:ot.scrollLeft-=Et*pt.settings.wheelSpeed,At=!0):(ot.scrollTop-=Et*pt.settings.wheelSpeed,ot.scrollLeft+=He*pt.settings.wheelSpeed),v(pt),At=At||function ft(_t,vt){var He=Math.floor(ot.scrollTop),Et=0===ot.scrollTop,At=He+ot.offsetHeight===ot.scrollHeight,Qt=0===ot.scrollLeft,zi=ot.scrollLeft+ot.offsetWidth===ot.scrollWidth;return!(Math.abs(vt)>Math.abs(_t)?Et||At:Qt||zi)||!pt.settings.wheelPropagation}(He,Et),At&&!_t.ctrlKey&&(_t.stopPropagation(),_t.preventDefault())}}typeof window.onwheel<"u"?pt.event.bind(ot,"wheel",$e):typeof window.onmousewheel<"u"&&pt.event.bind(ot,"mousewheel",$e)},touch:function U(pt){if(l.supportsTouch||l.supportsIePointer){var ot=pt.element,gt={},$e=0,_t={},vt=null;l.supportsTouch?(pt.event.bind(ot,"touchstart",At),pt.event.bind(ot,"touchmove",zi),pt.event.bind(ot,"touchend",Ni)):l.supportsIePointer&&(window.PointerEvent?(pt.event.bind(ot,"pointerdown",At),pt.event.bind(ot,"pointermove",zi),pt.event.bind(ot,"pointerup",Ni)):window.MSPointerEvent&&(pt.event.bind(ot,"MSPointerDown",At),pt.event.bind(ot,"MSPointerMove",zi),pt.event.bind(ot,"MSPointerUp",Ni)))}function St(Mi,Gi){ot.scrollTop-=Gi,ot.scrollLeft-=Mi,v(pt)}function He(Mi){return Mi.targetTouches?Mi.targetTouches[0]:Mi}function Et(Mi){return!(Mi.pointerType&&"pen"===Mi.pointerType&&0===Mi.buttons||!(Mi.targetTouches&&1===Mi.targetTouches.length||Mi.pointerType&&"mouse"!==Mi.pointerType&&Mi.pointerType!==Mi.MSPOINTER_TYPE_MOUSE))}function At(Mi){if(Et(Mi)){var Gi=He(Mi);gt.pageX=Gi.pageX,gt.pageY=Gi.pageY,$e=(new Date).getTime(),null!==vt&&clearInterval(vt)}}function zi(Mi){if(Et(Mi)){var Gi=He(Mi),Xe={pageX:Gi.pageX,pageY:Gi.pageY},It=Xe.pageX-gt.pageX,Se=Xe.pageY-gt.pageY;if(function Qt(Mi,Gi,Xe){if(!ot.contains(Mi))return!1;for(var It=Mi;It&&It!==ot;){if(It.classList.contains(j.element.consuming))return!0;var Se=w(It);if(Xe&&Se.overflowY.match(/(scroll|auto)/)){var wt=It.scrollHeight-It.clientHeight;if(wt>0&&(It.scrollTop>0&&Xe<0||It.scrollTop0))return!0}if(Gi&&Se.overflowX.match(/(scroll|auto)/)){var Zt=It.scrollWidth-It.clientWidth;if(Zt>0&&(It.scrollLeft>0&&Gi<0||It.scrollLeft0))return!0}It=It.parentNode}return!1}(Mi.target,It,Se))return;St(It,Se),gt=Xe;var wt=(new Date).getTime(),Zt=wt-$e;Zt>0&&(_t.x=It/Zt,_t.y=Se/Zt,$e=wt),function ft(Mi,Gi){var Xe=Math.floor(ot.scrollTop),It=ot.scrollLeft,Se=Math.abs(Mi),wt=Math.abs(Gi);if(wt>Se){if(Gi<0&&Xe===pt.contentHeight-pt.containerHeight||Gi>0&&0===Xe)return 0===window.scrollY&&Gi>0&&l.isChrome}else if(Se>wt&&(Mi<0&&It===pt.contentWidth-pt.containerWidth||Mi>0&&0===It))return!0;return!0}(It,Se)&&Mi.preventDefault()}}function Ni(){pt.settings.swipeEasing&&(clearInterval(vt),vt=setInterval(function(){pt.isInitialized?clearInterval(vt):_t.x||_t.y?Math.abs(_t.x)<.01&&Math.abs(_t.y)<.01?clearInterval(vt):pt.element?(St(30*_t.x,30*_t.y),_t.x*=.8,_t.y*=.8):clearInterval(vt):clearInterval(vt)},10))}}},Ue=function(ot,ft){var St=this;if(void 0===ft&&(ft={}),"string"==typeof ot&&(ot=document.querySelector(ot)),!ot||!ot.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var gt in this.element=ot,ot.classList.add(j.main),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},ft)this.settings[gt]=ft[gt];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var At,Et,$e=function(){return ot.classList.add(j.state.focus)},_t=function(){return ot.classList.remove(j.state.focus)};this.isRtl="rtl"===w(ot).direction,!0===this.isRtl&&ot.classList.add(j.rtl),this.isNegativeScroll=(Et=ot.scrollLeft,ot.scrollLeft=-1,At=ot.scrollLeft<0,ot.scrollLeft=Et,At),this.negativeScrollAdjustment=this.isNegativeScroll?ot.scrollWidth-ot.clientWidth:0,this.event=new se,this.ownerDocument=ot.ownerDocument||document,this.scrollbarXRail=L(j.element.rail("x")),ot.appendChild(this.scrollbarXRail),this.scrollbarX=L(j.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",$e),this.event.bind(this.scrollbarX,"blur",_t),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var vt=w(this.scrollbarXRail);this.scrollbarXBottom=parseInt(vt.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=i(vt.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=i(vt.borderLeftWidth)+i(vt.borderRightWidth),C(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=i(vt.marginLeft)+i(vt.marginRight),C(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=L(j.element.rail("y")),ot.appendChild(this.scrollbarYRail),this.scrollbarY=L(j.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",$e),this.event.bind(this.scrollbarY,"blur",_t),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var He=w(this.scrollbarYRail);this.scrollbarYRight=parseInt(He.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=i(He.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function f(pt){var ot=w(pt);return i(ot.width)+i(ot.paddingLeft)+i(ot.paddingRight)+i(ot.borderLeftWidth)+i(ot.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=i(He.borderTopWidth)+i(He.borderBottomWidth),C(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=i(He.marginTop)+i(He.marginBottom),C(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:ot.scrollLeft<=0?"start":ot.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:ot.scrollTop<=0?"start":ot.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(Et){return nt[Et](St)}),this.lastScrollTop=Math.floor(ot.scrollTop),this.lastScrollLeft=ot.scrollLeft,this.event.bind(this.element,"scroll",function(Et){return St.onScroll(Et)}),v(this)};Ue.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,C(this.scrollbarXRail,{display:"block"}),C(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=i(w(this.scrollbarXRail).marginLeft)+i(w(this.scrollbarXRail).marginRight),this.railYMarginHeight=i(w(this.scrollbarYRail).marginTop)+i(w(this.scrollbarYRail).marginBottom),C(this.scrollbarXRail,{display:"none"}),C(this.scrollbarYRail,{display:"none"}),v(this),Ce(this,"top",0,!1,!0),Ce(this,"left",0,!1,!0),C(this.scrollbarXRail,{display:""}),C(this.scrollbarYRail,{display:""}))},Ue.prototype.onScroll=function(ot){this.isAlive&&(v(this),Ce(this,"top",this.element.scrollTop-this.lastScrollTop),Ce(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Ue.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),V(this.scrollbarX),V(this.scrollbarY),V(this.scrollbarXRail),V(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},Ue.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(ot){return!ot.match(/^ps([-_].+|)$/)}).join(" ")};const at=Ue;var ye=function(){if(typeof Map<"u")return Map;function pt(ot,ft){var St=-1;return ot.some(function(gt,$e){return gt[0]===ft&&(St=$e,!0)}),St}return function(){function ot(){this.__entries__=[]}return Object.defineProperty(ot.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),ot.prototype.get=function(ft){var St=pt(this.__entries__,ft),gt=this.__entries__[St];return gt&>[1]},ot.prototype.set=function(ft,St){var gt=pt(this.__entries__,ft);~gt?this.__entries__[gt][1]=St:this.__entries__.push([ft,St])},ot.prototype.delete=function(ft){var St=this.__entries__,gt=pt(St,ft);~gt&&St.splice(gt,1)},ot.prototype.has=function(ft){return!!~pt(this.__entries__,ft)},ot.prototype.clear=function(){this.__entries__.splice(0)},ot.prototype.forEach=function(ft,St){void 0===St&&(St=null);for(var gt=0,$e=this.__entries__;gt<$e.length;gt++){var _t=$e[gt];ft.call(St,_t[1],_t[0])}},ot}()}(),xe=typeof window<"u"&&typeof document<"u"&&window.document===document,fe=typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")(),Oe="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(fe):function(pt){return setTimeout(function(){return pt(Date.now())},1e3/60)},oe=2,De=20,he=["top","right","bottom","left","width","height","size","weight"],Me=typeof MutationObserver<"u",pe=function(){function pt(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function Fe(pt,ot){var ft=!1,St=!1,gt=0;function $e(){ft&&(ft=!1,pt()),St&&vt()}function _t(){Oe($e)}function vt(){var He=Date.now();if(ft){if(He-gt0},pt.prototype.connect_=function(){!xe||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Me?(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)},pt.prototype.disconnect_=function(){!xe||!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)},pt.prototype.onTransitionEnd_=function(ot){var ft=ot.propertyName,St=void 0===ft?"":ft;he.some(function($e){return!!~St.indexOf($e)})&&this.refresh()},pt.getInstance=function(){return this.instance_||(this.instance_=new pt),this.instance_},pt.instance_=null,pt}(),Ve=function(pt,ot){for(var ft=0,St=Object.keys(ot);ft"u")&&Element instanceof Object){if(!(ot instanceof Qe(ot).Element))throw new TypeError('parameter 1 is not of type "Element".');var ft=this.observations_;ft.has(ot)||(ft.set(ot,new Ie(ot)),this.controller_.addObserver(this),this.controller_.refresh())}},pt.prototype.unobserve=function(ot){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(ot instanceof Qe(ot).Element))throw new TypeError('parameter 1 is not of type "Element".');var ft=this.observations_;ft.has(ot)&&(ft.delete(ot),ft.size||this.controller_.removeObserver(this))}},pt.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},pt.prototype.gatherActive=function(){var ot=this;this.clearActive(),this.observations_.forEach(function(ft){ft.isActive()&&ot.activeObservations_.push(ft)})},pt.prototype.broadcastActive=function(){if(this.hasActive()){var ot=this.callbackCtx_,ft=this.activeObservations_.map(function(St){return new X(St.target,St.broadcastRect())});this.callback_.call(ot,ft,ot),this.clearActive()}},pt.prototype.clearActive=function(){this.activeObservations_.splice(0)},pt.prototype.hasActive=function(){return this.activeObservations_.length>0},pt}(),Tt=typeof WeakMap<"u"?new WeakMap:new ye,it=function pt(ot){if(!(this instanceof pt))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var ft=pe.getInstance(),St=new mt(ot,ft,this);Tt.set(this,St)};["observe","unobserve","disconnect"].forEach(function(pt){it.prototype[pt]=function(){var ot;return(ot=Tt.get(this))[pt].apply(ot,arguments)}});const zt=typeof fe.ResizeObserver<"u"?fe.ResizeObserver:it;function xt(pt,ot){if(1&pt&&(P.TgZ(0,"div",3),P._UZ(1,"div",4)(2,"div",5)(3,"div",6)(4,"div",7),P.qZA()),2&pt){const ft=P.oxw();P.ekj("ps-at-top",ft.states.top)("ps-at-left",ft.states.left)("ps-at-right",ft.states.right)("ps-at-bottom",ft.states.bottom),P.xp6(1),P.ekj("ps-indicator-show",ft.indicatorY&&ft.interaction),P.xp6(1),P.ekj("ps-indicator-show",ft.indicatorX&&ft.interaction),P.xp6(1),P.ekj("ps-indicator-show",ft.indicatorX&&ft.interaction),P.xp6(1),P.ekj("ps-indicator-show",ft.indicatorY&&ft.interaction)}}const Nt=["*"],Gt=new P.OlP("PERFECT_SCROLLBAR_CONFIG");class ke{constructor(ot,ft,St,gt){this.x=ot,this.y=ft,this.w=St,this.h=gt}}class ${constructor(ot,ft){this.x=ot,this.y=ft}}const ue=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class Ae{constructor(ot={}){this.assign(ot)}assign(ot={}){for(const ft in ot)this[ft]=ot[ft]}}let Je=(()=>{class pt{constructor(ft,St,gt,$e,_t){this.zone=ft,this.differs=St,this.elementRef=gt,this.platformId=$e,this.defaults=_t,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new t.x,this.disabled=!1,this.psScrollY=new P.vpe,this.psScrollX=new P.vpe,this.psScrollUp=new P.vpe,this.psScrollDown=new P.vpe,this.psScrollLeft=new P.vpe,this.psScrollRight=new P.vpe,this.psYReachEnd=new P.vpe,this.psYReachStart=new P.vpe,this.psXReachEnd=new P.vpe,this.psXReachStart=new P.vpe}ngOnInit(){if(!this.disabled&&(0,d.NF)(this.platformId)){const ft=new Ae(this.defaults);ft.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new at(this.elementRef.nativeElement,ft)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new zt(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{ue.forEach(St=>{const gt=St.replace(/([A-Z])/g,$e=>`-${$e.toLowerCase()}`);(0,e.R)(this.elementRef.nativeElement,gt).pipe((0,T.e)(20),(0,s.R)(this.ngDestroy)).subscribe($e=>{this[St].emit($e)})})})}}ngOnDestroy(){(0,d.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&typeof window<"u"&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&(0,d.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(ft){ft.disabled&&!ft.disabled.isFirstChange()&&(0,d.NF)(this.platformId)&&ft.disabled.currentValue!==ft.disabled.previousValue&&(!0===ft.disabled.currentValue?this.ngOnDestroy():!1===ft.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){typeof window<"u"&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{if(!this.disabled&&this.configDiff)try{this.zone.runOutsideAngular(()=>{this.instance&&this.instance.update()})}catch{}},0))}geometry(ft="scroll"){return new ke(this.elementRef.nativeElement[ft+"Left"],this.elementRef.nativeElement[ft+"Top"],this.elementRef.nativeElement[ft+"Width"],this.elementRef.nativeElement[ft+"Height"])}position(ft=!1){return!ft&&this.instance?new $(this.instance.reach.x||0,this.instance.reach.y||0):new $(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(ft="any"){const St=this.elementRef.nativeElement;return"any"===ft?St.classList.contains("ps--active-x")||St.classList.contains("ps--active-y"):"both"===ft?St.classList.contains("ps--active-x")&&St.classList.contains("ps--active-y"):St.classList.contains("ps--active-"+ft)}scrollTo(ft,St,gt){this.disabled||(null==St&&null==gt?this.animateScrolling("scrollTop",ft,gt):(null!=ft&&this.animateScrolling("scrollLeft",ft,gt),null!=St&&this.animateScrolling("scrollTop",St,gt)))}scrollToX(ft,St){this.animateScrolling("scrollLeft",ft,St)}scrollToY(ft,St){this.animateScrolling("scrollTop",ft,St)}scrollToTop(ft,St){this.animateScrolling("scrollTop",ft||0,St)}scrollToLeft(ft,St){this.animateScrolling("scrollLeft",ft||0,St)}scrollToRight(ft,St){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(ft||0),St)}scrollToBottom(ft,St){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(ft||0),St)}scrollToElement(ft,St,gt){if("string"==typeof ft&&(ft=this.elementRef.nativeElement.querySelector(ft)),ft){const $e=ft.getBoundingClientRect(),_t=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",$e.left-_t.left+this.elementRef.nativeElement.scrollLeft+(St||0),gt),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",$e.top-_t.top+this.elementRef.nativeElement.scrollTop+(St||0),gt)}}animateScrolling(ft,St,gt){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),!gt||typeof window>"u")this.elementRef.nativeElement[ft]=St;else if(St!==this.elementRef.nativeElement[ft]){let $e=0,_t=0,vt=performance.now(),He=this.elementRef.nativeElement[ft];const Et=(He-St)/2,At=Qt=>{_t+=Math.PI/(gt/(Qt-vt)),$e=Math.round(St+Et+Et*Math.cos(_t)),this.elementRef.nativeElement[ft]===He&&(_t>=Math.PI?this.animateScrolling(ft,St,0):(this.elementRef.nativeElement[ft]=$e,He=this.elementRef.nativeElement[ft],vt=Qt,this.animation=window.requestAnimationFrame(At)))};window.requestAnimationFrame(At)}}}return pt.\u0275fac=function(ft){return new(ft||pt)(P.Y36(P.R0b),P.Y36(P.aQg),P.Y36(P.SBq),P.Y36(P.Lbi),P.Y36(Gt,8))},pt.\u0275dir=P.lG2({type:pt,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:[P.TTD]}),pt})(),$t=(()=>{class pt{constructor(ft,St,gt){this.zone=ft,this.cdRef=St,this.platformId=gt,this.states={},this.indicatorX=!1,this.indicatorY=!1,this.interaction=!1,this.scrollPositionX=0,this.scrollPositionY=0,this.scrollDirectionX=0,this.scrollDirectionY=0,this.usePropagationX=!1,this.usePropagationY=!1,this.allowPropagationX=!1,this.allowPropagationY=!1,this.stateTimeout=null,this.ngDestroy=new t.x,this.stateUpdate=new t.x,this.disabled=!1,this.usePSClass=!0,this.autoPropagation=!1,this.scrollIndicators=!1,this.psScrollY=new P.vpe,this.psScrollX=new P.vpe,this.psScrollUp=new P.vpe,this.psScrollDown=new P.vpe,this.psScrollLeft=new P.vpe,this.psScrollRight=new P.vpe,this.psYReachEnd=new P.vpe,this.psYReachStart=new P.vpe,this.psXReachEnd=new P.vpe,this.psXReachStart=new P.vpe}ngOnInit(){(0,d.NF)(this.platformId)&&(this.stateUpdate.pipe((0,s.R)(this.ngDestroy),(0,y.x)((ft,St)=>ft===St&&!this.stateTimeout)).subscribe(ft=>{this.stateTimeout&&typeof window<"u"&&(window.clearTimeout(this.stateTimeout),this.stateTimeout=null),"x"===ft||"y"===ft?(this.interaction=!1,"x"===ft?(this.indicatorX=!1,this.states.left=!1,this.states.right=!1,this.autoPropagation&&this.usePropagationX&&(this.allowPropagationX=!1)):"y"===ft&&(this.indicatorY=!1,this.states.top=!1,this.states.bottom=!1,this.autoPropagation&&this.usePropagationY&&(this.allowPropagationY=!1))):("left"===ft||"right"===ft?(this.states.left=!1,this.states.right=!1,this.states[ft]=!0,this.autoPropagation&&this.usePropagationX&&(this.indicatorX=!0)):("top"===ft||"bottom"===ft)&&(this.states.top=!1,this.states.bottom=!1,this.states[ft]=!0,this.autoPropagation&&this.usePropagationY&&(this.indicatorY=!0)),this.autoPropagation&&typeof window<"u"&&(this.stateTimeout=window.setTimeout(()=>{this.indicatorX=!1,this.indicatorY=!1,this.stateTimeout=null,this.interaction&&(this.states.left||this.states.right)&&(this.allowPropagationX=!0),this.interaction&&(this.states.top||this.states.bottom)&&(this.allowPropagationY=!0),this.cdRef.markForCheck()},500))),this.cdRef.markForCheck(),this.cdRef.detectChanges()}),this.zone.runOutsideAngular(()=>{if(this.directiveRef){const ft=this.directiveRef.elementRef.nativeElement;(0,e.R)(ft,"wheel").pipe((0,s.R)(this.ngDestroy)).subscribe(St=>{!this.disabled&&this.autoPropagation&&this.checkPropagation(St,St.deltaX,St.deltaY)}),(0,e.R)(ft,"touchmove").pipe((0,s.R)(this.ngDestroy)).subscribe(St=>{if(!this.disabled&&this.autoPropagation){const gt=St.touches[0].clientX,$e=St.touches[0].clientY;this.checkPropagation(St,gt-this.scrollPositionX,$e-this.scrollPositionY),this.scrollPositionX=gt,this.scrollPositionY=$e}}),(0,_.T)((0,e.R)(ft,"ps-scroll-x").pipe((0,h.h)("x")),(0,e.R)(ft,"ps-scroll-y").pipe((0,h.h)("y")),(0,e.R)(ft,"ps-x-reach-end").pipe((0,h.h)("right")),(0,e.R)(ft,"ps-y-reach-end").pipe((0,h.h)("bottom")),(0,e.R)(ft,"ps-x-reach-start").pipe((0,h.h)("left")),(0,e.R)(ft,"ps-y-reach-start").pipe((0,h.h)("top"))).pipe((0,s.R)(this.ngDestroy)).subscribe(St=>{!this.disabled&&(this.autoPropagation||this.scrollIndicators)&&this.stateUpdate.next(St)})}}),window.setTimeout(()=>{ue.forEach(ft=>{this.directiveRef&&(this.directiveRef[ft]=this[ft])})},0))}ngOnDestroy(){(0,d.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.unsubscribe(),this.stateTimeout&&typeof window<"u"&&window.clearTimeout(this.stateTimeout))}ngDoCheck(){if((0,d.NF)(this.platformId)&&!this.disabled&&this.autoPropagation&&this.directiveRef){const ft=this.directiveRef.elementRef.nativeElement;this.usePropagationX=ft.classList.contains("ps--active-x"),this.usePropagationY=ft.classList.contains("ps--active-y")}}checkPropagation(ft,St,gt){this.interaction=!0;const $e=St<0?-1:1,_t=gt<0?-1:1;(this.usePropagationX&&this.usePropagationY||this.usePropagationX&&(!this.allowPropagationX||this.scrollDirectionX!==$e)||this.usePropagationY&&(!this.allowPropagationY||this.scrollDirectionY!==_t))&&(ft.preventDefault(),ft.stopPropagation()),St&&(this.scrollDirectionX=$e),gt&&(this.scrollDirectionY=_t),this.stateUpdate.next("interaction"),this.cdRef.detectChanges()}}return pt.\u0275fac=function(ft){return new(ft||pt)(P.Y36(P.R0b),P.Y36(P.sBO),P.Y36(P.Lbi))},pt.\u0275cmp=P.Xpm({type:pt,selectors:[["perfect-scrollbar"]],viewQuery:function(ft,St){if(1&ft&&P.Gf(Je,7),2&ft){let gt;P.iGM(gt=P.CRH())&&(St.directiveRef=gt.first)}},hostVars:4,hostBindings:function(ft,St){2&ft&&P.ekj("ps-show-limits",St.autoPropagation)("ps-show-active",St.scrollIndicators)},inputs:{disabled:"disabled",usePSClass:"usePSClass",autoPropagation:"autoPropagation",scrollIndicators:"scrollIndicators",config:"config"},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],ngContentSelectors:Nt,decls:4,vars:5,consts:[[2,"position","static",3,"perfectScrollbar","disabled"],[1,"ps-content"],["class","ps-overlay",3,"ps-at-top","ps-at-left","ps-at-right","ps-at-bottom",4,"ngIf"],[1,"ps-overlay"],[1,"ps-indicator-top"],[1,"ps-indicator-left"],[1,"ps-indicator-right"],[1,"ps-indicator-bottom"]],template:function(ft,St){1&ft&&(P.F$t(),P.TgZ(0,"div",0)(1,"div",1),P.Hsn(2),P.qZA(),P.YNc(3,xt,5,16,"div",2),P.qZA()),2&ft&&(P.ekj("ps",St.usePSClass),P.Q6J("perfectScrollbar",St.config)("disabled",St.disabled),P.xp6(3),P.Q6J("ngIf",St.scrollIndicators))},dependencies:[Je,d.O5],styles:["perfect-scrollbar{position:relative;display:block;overflow:hidden;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar[hidden]{display:none}perfect-scrollbar[fxflex]{display:flex;flex-direction:column;height:auto;min-width:0;min-height:0}perfect-scrollbar[fxflex]>.ps{flex:1 1 auto;width:auto;height:auto;min-width:0;min-height:0;-webkit-box-flex:1}perfect-scrollbar[fxlayout]>.ps,perfect-scrollbar[fxlayout]>.ps>.ps-content{display:flex;flex:1 1 auto;flex-direction:inherit;align-items:inherit;align-content:inherit;justify-content:inherit;width:100%;height:100%;-webkit-box-align:inherit;-webkit-box-flex:1;-webkit-box-pack:inherit}perfect-scrollbar[fxlayout=row]>.ps,perfect-scrollbar[fxlayout=row]>.ps>.ps-content{flex-direction:row!important}perfect-scrollbar[fxlayout=column]>.ps,perfect-scrollbar[fxlayout=column]>.ps>.ps-content{flex-direction:column!important}perfect-scrollbar>.ps{position:static;display:block;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar>.ps textarea{-ms-overflow-style:scrollbar}perfect-scrollbar>.ps>.ps-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:block;overflow:hidden;pointer-events:none}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{position:absolute;opacity:0;transition:opacity .3s ease-in-out}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{left:0;min-width:100%;min-height:24px}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{top:0;min-width:24px;min-height:100%}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left{left:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{right:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{bottom:0}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y{top:0!important;right:0!important;left:auto!important;width:10px;cursor:default;transition:width .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y:hover,perfect-scrollbar>.ps.ps--active-y>.ps__rail-y.ps--clicking{width:15px}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x{top:auto!important;bottom:0!important;left:0!important;height:10px;cursor:default;transition:height .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x:hover,perfect-scrollbar>.ps.ps--active-x>.ps__rail-x.ps--clicking{height:15px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-y{margin:0 0 10px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-x{margin:0 10px 0 0}perfect-scrollbar>.ps.ps--scrolling-y>.ps__rail-y,perfect-scrollbar>.ps.ps--scrolling-x>.ps__rail-x{opacity:.9;background-color:#eee}perfect-scrollbar.ps-show-always>.ps.ps--active-y>.ps__rail-y,perfect-scrollbar.ps-show-always>.ps.ps--active-x>.ps__rail-x{opacity:.6}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-top) .ps-indicator-top{opacity:1;background:linear-gradient(to bottom,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-bottom) .ps-indicator-bottom{opacity:1;background:linear-gradient(to top,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-left) .ps-indicator-left{opacity:1;background:linear-gradient(to right,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-right) .ps-indicator-right{opacity:1;background:linear-gradient(to left,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top{background:linear-gradient(to bottom,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom{background:linear-gradient(to top,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left{background:linear-gradient(to right,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right{background:linear-gradient(to left,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right.ps-indicator-show{opacity:1}\n",".ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;height:15px;bottom:0px;position:absolute}.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;width:15px;right:0;position:absolute}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y,.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y{opacity:.6}.ps .ps__rail-x:hover,.ps .ps__rail-y:hover,.ps .ps__rail-x:focus,.ps .ps__rail-y:focus,.ps .ps__rail-x.ps--clicking,.ps .ps__rail-y.ps--clicking{background-color:#eee;opacity:.9}.ps__thumb-x{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px;position:absolute}.ps__thumb-y{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px;position:absolute}.ps__rail-x:hover>.ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x.ps--clicking .ps__thumb-x{background-color:#999;height:11px}.ps__rail-y:hover>.ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y.ps--clicking .ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style: none){.ps{overflow:auto!important}}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){.ps{overflow:auto!important}}\n"],encapsulation:2}),pt})(),ii=(()=>{class pt{}return pt.\u0275fac=function(ft){return new(ft||pt)},pt.\u0275mod=P.oAB({type:pt}),pt.\u0275inj=P.cJS({imports:[[d.ez],d.ez]}),pt})()},7582:(We,q,m)=>{"use strict";function s(n,g,W,O){var nt,U=arguments.length,ge=U<3?g:null===O?O=Object.getOwnPropertyDescriptor(g,W):O;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ge=Reflect.decorate(n,g,W,O);else for(var Ue=n.length-1;Ue>=0;Ue--)(nt=n[Ue])&&(ge=(U<3?nt(ge):U>3?nt(g,W,ge):nt(g,W))||ge);return U>3&&ge&&Object.defineProperty(g,W,ge),ge}function L(n,g,W,O){return new(W||(W=Promise))(function(ge,nt){function Ue(xe){try{ye(O.next(xe))}catch(fe){nt(fe)}}function at(xe){try{ye(O.throw(xe))}catch(fe){nt(fe)}}function ye(xe){xe.done?ge(xe.value):function U(ge){return ge instanceof W?ge:new W(function(nt){nt(ge)})}(xe.value).then(Ue,at)}ye((O=O.apply(n,g||[])).next())})}function me(n){return this instanceof me?(this.v=n,this):new me(n)}function re(n,g,W){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var U,O=W.apply(n,g||[]),ge=[];return U={},nt("next"),nt("throw"),nt("return"),U[Symbol.asyncIterator]=function(){return this},U;function nt(Oe){O[Oe]&&(U[Oe]=function(oe){return new Promise(function(Fe,De){ge.push([Oe,oe,Fe,De])>1||Ue(Oe,oe)})})}function Ue(Oe,oe){try{!function at(Oe){Oe.value instanceof me?Promise.resolve(Oe.value.v).then(ye,xe):fe(ge[0][2],Oe)}(O[Oe](oe))}catch(Fe){fe(ge[0][3],Fe)}}function ye(Oe){Ue("next",Oe)}function xe(Oe){Ue("throw",Oe)}function fe(Oe,oe){Oe(oe),ge.shift(),ge.length&&Ue(ge[0][0],ge[0][1])}}function se(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var W,g=n[Symbol.asyncIterator];return g?g.call(n):(n=function Y(n){var g="function"==typeof Symbol&&Symbol.iterator,W=g&&n[g],O=0;if(W)return W.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&O>=n.length&&(n=void 0),{value:n&&n[O++],done:!n}}};throw new TypeError(g?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),W={},O("next"),O("throw"),O("return"),W[Symbol.asyncIterator]=function(){return this},W);function O(ge){W[ge]=n[ge]&&function(nt){return new Promise(function(Ue,at){!function U(ge,nt,Ue,at){Promise.resolve(at).then(function(ye){ge({value:ye,done:Ue})},nt)}(Ue,at,(nt=n[ge](nt)).done,nt.value)})}}}m.d(q,{FC:()=>re,KL:()=>se,gn:()=>s,mG:()=>L,qq:()=>me}),"function"==typeof SuppressedError&&SuppressedError},4946:We=>{"use strict";We.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:We=>{"use strict";We.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:We=>{"use strict";We.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:We=>{"use strict";We.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:We=>{"use strict";We.exports={i8:"6.5.4"}},2562:We=>{"use strict";We.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"}')}},We=>{We(We.s=5415)}]); \ No newline at end of file diff --git a/frontend/runtime.c2bb514ce598134b.js b/frontend/runtime.2e7609321c648793.js similarity index 96% rename from frontend/runtime.c2bb514ce598134b.js rename to frontend/runtime.2e7609321c648793.js index 33524dde..e82011bb 100644 --- a/frontend/runtime.c2bb514ce598134b.js +++ b/frontend/runtime.2e7609321c648793.js @@ -1 +1 @@ -(()=>{"use strict";var e,v={},m={};function r(e){var o=m[e];if(void 0!==o)return o.exports;var t=m[e]={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=(o,t,i,f)=>{if(!t){var a=1/0;for(n=0;n=f)&&Object.keys(r.O).every(b=>r.O[b](t[l]))?t.splice(l--,1):(c=!1,f0&&e[n-1][2]>f;n--)e[n]=e[n-1];e[n]=[t,i,f]},r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((o,t)=>(r.f[t](e,o),o),[])),r.u=e=>e+"."+{167:"28293ff5a3323208",267:"3050ada6a6d9afd8",315:"25112d0bface4bf2",636:"b883c00cebb300aa"}[e]+".js",r.miniCssF=e=>{},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={},o="RTLApp:";r.l=(t,i,f,n)=>{if(e[t])e[t].push(i);else{var a,c;if(void 0!==f)for(var l=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(y=>y(b)),g)return g(b)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),c&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&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:o=>o},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(i,f)=>{var n=r.o(e,i)?e[i]:void 0;if(0!==n)if(n)f.push(n[2]);else if(666!=i){var a=new Promise((u,s)=>n=e[i]=[u,s]);f.push(n[2]=a);var c=r.p+r.u(i),l=new Error;r.l(c,u=>{if(r.o(e,i)&&(0!==(n=e[i])&&(e[i]=void 0),n)){var s=u&&("load"===u.type?"missing":u.type),p=u&&u.target&&u.target.src;l.message="Loading chunk "+i+" failed.\n("+s+": "+p+")",l.name="ChunkLoadError",l.type=s,l.request=p,n[1](l)}},"chunk-"+i,i)}else e[i]=0},r.O.j=i=>0===e[i];var o=(i,f)=>{var l,d,[n,a,c]=f,u=0;if(n.some(p=>0!==e[p])){for(l in a)r.o(a,l)&&(r.m[l]=a[l]);if(c)var s=c(r)}for(i&&i(f);u{"use strict";var e,v={},m={};function r(e){var o=m[e];if(void 0!==o)return o.exports;var t=m[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=(o,t,i,f)=>{if(!t){var a=1/0;for(n=0;n=f)&&Object.keys(r.O).every(b=>r.O[b](t[l]))?t.splice(l--,1):(c=!1,f0&&e[n-1][2]>f;n--)e[n]=e[n-1];e[n]=[t,i,f]},r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((o,t)=>(r.f[t](e,o),o),[])),r.u=e=>e+"."+{167:"08268ac8336448ff",267:"3050ada6a6d9afd8",315:"25112d0bface4bf2",636:"b883c00cebb300aa"}[e]+".js",r.miniCssF=e=>{},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={},o="RTLApp:";r.l=(t,i,f,n)=>{if(e[t])e[t].push(i);else{var a,c;if(void 0!==f)for(var l=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(y=>y(b)),g)return g(b)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),c&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&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:o=>o},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(i,f)=>{var n=r.o(e,i)?e[i]:void 0;if(0!==n)if(n)f.push(n[2]);else if(666!=i){var a=new Promise((u,s)=>n=e[i]=[u,s]);f.push(n[2]=a);var c=r.p+r.u(i),l=new Error;r.l(c,u=>{if(r.o(e,i)&&(0!==(n=e[i])&&(e[i]=void 0),n)){var s=u&&("load"===u.type?"missing":u.type),p=u&&u.target&&u.target.src;l.message="Loading chunk "+i+" failed.\n("+s+": "+p+")",l.name="ChunkLoadError",l.type=s,l.request=p,n[1](l)}},"chunk-"+i,i)}else e[i]=0},r.O.j=i=>0===e[i];var o=(i,f)=>{var l,d,[n,a,c]=f,u=0;if(n.some(p=>0!==e[p])){for(l in a)r.o(a,l)&&(r.m[l]=a[l]);if(c)var s=c(r)}for(i&&i(f);u { outgoingEvent.shortChannelId = ''; }); } - rlEvent.amountIn = rlEvent.incoming?.reduce((acc, curr) => acc + curr.amount, 0) || 0; + const amountInTotalmSats = rlEvent.incoming?.reduce((acc, curr) => acc + curr.amount, 0) || 0; + rlEvent.amountIn = Math.round(amountInTotalmSats / 1000); rlEvent.fromChannelId = rlEvent.incoming && rlEvent.incoming.length ? rlEvent.incoming[0].channelId : ''; rlEvent.fromChannelAlias = rlEvent.incoming && rlEvent.incoming.length ? rlEvent.incoming[0].channelAlias : ''; rlEvent.fromShortChannelId = rlEvent.incoming && rlEvent.incoming.length ? rlEvent.incoming[0].shortChannelId : ''; - rlEvent.amountOut = rlEvent.outgoing?.reduce((acc, curr) => acc + curr.amount, 0) || 0; + const amountOutTotalmSats = rlEvent.outgoing?.reduce((acc, curr) => acc + curr.amount, 0) || 0; + rlEvent.amountOut = Math.round(amountOutTotalmSats / 1000); rlEvent.toChannelId = rlEvent.outgoing && rlEvent.outgoing.length ? rlEvent.outgoing[0].channelId : ''; rlEvent.toChannelAlias = rlEvent.outgoing && rlEvent.outgoing.length ? rlEvent.outgoing[0].channelAlias : ''; rlEvent.toShortChannelId = rlEvent.outgoing && rlEvent.outgoing.length ? rlEvent.outgoing[0].shortChannelId : '';